query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Creates a string representing the current query string, or an empty string if there are no parameters. Will not work if there are binary attachments! | protected String createQueryString() {
assert !this.hasBinaryAttachments;
if (this.params.isEmpty())
return "";
StringBuilder bld = null;
for (Map.Entry<String, Object> param: this.params.entrySet()) {
if (bld == null)
bld = new StringBuilder();
else
bld.append('&');
... | [
"public String createQueryString() {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\r\n\t\tSet<Map.Entry<String, Object>> set = queryParams.entrySet();\r\n\t\tEnumeration<Map.Entry<String, Object>> en = Collections.enumeration(set);\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile (en.hasMoreElements())\r\n\t\t\t{\r\n\t\t\t\tM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove a given reification from this model. Other reifications of the same statement are untouched. | public void removeReification( ReifiedStatement rs )
{ ReifierStd.remove( model.getGraph(), rs.asNode(), rs.getStatement().asTriple() ); } | [
"public void remove() {\n Model from = resource.getModel();\n\n Model what = ModelFactory.createDefaultModel();\n what.add(from.listStatements(resource, null, (RDFNode) null));\n what.add(from.listStatements(null, null, resource));\n\n from.remove(what);\n }",
"public void re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the l 2 range min. | public void setL2_range_min(Double l2_range_min) {
this.l2_range_min = l2_range_min;
} | [
"public Double getL2_range_min() {\n\t\treturn l2_range_min;\n\t}",
"void setMinRange(int minRange);",
"public void setL1_range_min(Double l1_range_min) {\n\t\tthis.l1_range_min = l1_range_min;\n\t}",
"public void setLowerRange(double lower);",
"public Double getL1_range_min() {\n\t\treturn l1_range_min;\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the stepExpectedOutcome value for this TestCaseStepExecution. | public java.lang.String getStepExpectedOutcome() {
return stepExpectedOutcome;
} | [
"public java.lang.String getExpectedOutcome() {\n return expectedOutcome;\n }",
"public void setStepExpectedOutcome(java.lang.String stepExpectedOutcome) {\n this.stepExpectedOutcome = stepExpectedOutcome;\n }",
"public String getExpectedResults() {\r\n return expectedResult;\r\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
retrieve particular .ini file entrys as a string array Usage: String s=getStrsStarting(p,"TAG"); | public final String[][] getStrsStarting(String tagStartersToGet) {
final PairVector<String, String> strBag = new PairVector<String, String>();
tagStartersToGet = tagStartersToGet.toUpperCase();
for (final Enumeration<?> e = propertyNames(); e.hasMoreElements(); ) {
final String propN... | [
"public String[] getInsertionStrings() {\n\t\treturn super.getProperty(\"InsertionStrings\", String[].class);\n\t}",
"public String[] getStrings(String name);",
"public List getStartPathName();",
"java.lang.String[] getStringelementArray();",
"String getStart_in();",
"private List<String> getNames(String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the paquete personaje. | public void setPaquetePersonaje(final PaquetePersonaje paquetePersonaje) {
this.paquetePersonaje = paquetePersonaje;
} | [
"public void setPaquetePersonaje(final PaquetePersonaje paquetePersonaje) {\r\n this.paquetePersonaje = paquetePersonaje;\r\n }",
"public void setAutor (Pessoa p){\n }",
"public void setProprietaire(SystemeAmendesInt.Personne proprietaire) {\n this.proprietaire = proprietaire;\n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resets the game with the requested number of decks. | public void resetGame(int nbrOfDecks) {
initiateCardGame(nbrOfDecks);
} | [
"public void resetDeck() {\n\t\tclearDeck();\n\t\tmakeDeck();\n\t\tshuffle();\n\n\t}",
"private void ResetGame(){\n this.deck = new Deck();\n humanPlayer.getHand().clear();\n humanPlayer.setWager(0);\n dealer.getHand().clear();\n }",
"public void reset()\r\n {\r\n // imp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column T_SB_ZWYC_ZSZHHGQ.EDDLB | public String getEddlb() {
return eddlb;
} | [
"public BigDecimal getEddlkddl() {\n return eddlkddl;\n }",
"public java.lang.String getYDHBJDM() {\r\n return YDHBJDM;\r\n }",
"public BigDecimal getEddl() {\n return eddl;\n }",
"public java.lang.String getYDLB() {\r\n return YDLB;\r\n }",
"public int getBd_code() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the text fields of the Ingredient browse pane | public void clearIngredientBrowseFields(){
ingredFiberInputBrowse.clear();
ingredFatInputBrowse.clear();
ingredCarbsInputBrowse.clear();
ingredCalorieInputBrowse.clear();
ingredProteinInputBrowse.clear();
ingredSugarInputBrowse.clear();
ingredQuantityAmountInputBr... | [
"public void clearMealBrowserFields(){\n mealMethod.clear();\n browseMealNutritionOne.setText(\"\");\n browseMealNutritionTwo.setText(\"\");\n mealIngred.getItems().clear();\n comboMealSelection.getSelectionModel().clearSelection();\n }",
"void clearTextFields();",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets the dmg to 0 | public void resetDmg(){
this.dmgTaken = new ArrayList<>();
updateAll(this);
} | [
"public void setDmg(int dmg) {\n\t\tthis.dmg = dmg;\n\t}",
"void unsetDamage();",
"public void setDamage(int dmg) {\n damage = dmg;\n }",
"public void lowerHealth(int dmg){\n this.health = health - dmg;\n }",
"public void resetAmountSold() { amountSold = 0; }",
"public int getDmg() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getInstance method, of class ChannelController. | @Test
public void testGetInstance() {
System.out.println("getInstance test ---");
ChannelController expResult = ChannelController.getInstance();
ChannelController result = ChannelController.getInstance();
assertTrue(expResult == result);
} | [
"public static ChannelService getInstance(){\n return channelService;\n }",
"public static Controller getInstance() { return INSTANCE; }",
"@Test\n public void testGetInstance() {\n System.out.println(\"getInstance\");\n ConnectionManager result = ConnectionManager.getInstance();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Signals that another item is processed. | public void processedOne() {
processedItems.incrementAndGet();
} | [
"public void processItem() {\n this.product = ((IntrinsicMachine)this.getIntrinsicSelf())\n .getProcessedItem(this.itemToProcess);\n this.itemToProcess = null;\n this.phase = 0; //- for every machine, the 0th image should be for a finished product.\n }",
"void fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'vehicleInfo' field. | public com.datawhisperers.restfulexample.avromodel.VehicleInfoAvro getVehicleInfo() {
return vehicleInfo;
} | [
"public com.datawhisperers.restfulexample.avromodel.VehicleInfoAvro getVehicleInfo() {\n return vehicleInfo;\n }",
"@ApiModelProperty(required = true, value = \"More information about the type of vehicle on offer.\")\n public VehicleInfo getVehicleInfo() {\n return vehicleInfo;\n }",
"public String get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Builds Take Ticket Panel | private void buildTakeTicketPanel() {
JPanel startPanel = new JPanel();
this.add(startPanel, "Start");
startPanel.setLayout(null);
JButton btnTakeTicket = new JButton("Take Ticket");
btnTakeTicket.setActionCommand(RetrieveTicketPanel.TAKE_TICKET_COMMAND);
btnTakeTicket.addActionListener(this);
btnTakeTic... | [
"private void buildTicketDispensedPanel() {\n\t\tJPanel dispensedPanel = new JPanel();\n\t\tthis.add(dispensedPanel, \"Dispensed\");\n\t\tdispensedPanel.setLayout(null);\n\n\t\tJLabel lblPleaseTakeYour = new JLabel(\n\t\t\t\t\"Please Take Your Ticket From the Dispenser.\");\n\t\tlblPleaseTakeYour.setHorizontalAlign... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a new CarMovement instance from a prototype | public CarMovement(CarMovement proto) {
super(proto);
this.pathFinder = proto.pathFinder;
} | [
"Vehicle createVehicle();",
"public abstract IHantoMover createPlaceMover(HantoCoordinate at);",
"Move createMove();",
"private Entity createPlayerCar() {\n float deacceleration = 10;\n float acceleration = 10;\n float maxSpeed = 400;\n float rotationSpeed = 3;\n float x = 5... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The organizer creation date in the site timezone | @ApiModelProperty(value = "The organizer creation date in the site timezone")
public String getDate() {
return date;
} | [
"@Override\n\tpublic java.util.Date getCreatedDate() {\n\t\treturn _locMstLocation.getCreatedDate();\n\t}",
"public String getCreatedDate() {\n\t\treturn this.getProperty(\"fedora-view:createdDate\");\n\t}",
"@Override\n\tpublic Date getCreateDate() {\n\t\treturn _location.getCreateDate();\n\t}",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Disposes of this pioneering mission. | public void dispose() {
abandonTileImprovementPlan();
super.dispose();
} | [
"public void dispose() {\r\n\t\tquit();\r\n\t}",
"public void dispose()\r\n {\r\n for (int y = 0; y < VERTICALLY_SIMULTANEOUS_PARTS; y++)\r\n {\r\n for (int x = 0; x < HORIZONTALLY_SIMULTANEOUS_PARTS; x++)\r\n {\r\n MapPart part = loadedParts[x][y];\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get modification total count | public int getTotalModification() {
return getDatabaseTableSaveInformation().stream().mapToInt(DatabaseTableSaveInformation::getModification).sum();
} | [
"long getModificationCount();",
"public int getModificationCount() {\n return modificationCount;\n }",
"public int getTotalAddsAndRevisions()\n {\n return newStudentCount + revisedStudentCount;\n }",
"public int getTotalChanges()\n {\n return newStudentCoun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempt to verify the contents of text against the contents of the URL specified. Performs a trim on both ends | public static boolean compare(URL url, String text) throws Exception {
/*
compare the trimmed values of each buffer and make sure they're
equivalent. however, let's make sure to normalize the strings first
to account for line termination differences between platforms.
*/
... | [
"String checkAndTrimUrl(String url);",
"public static boolean verifyPDFContent(URL url, String expectedText, int pageStart, int pageEnd) throws IOException {\n \n \tvar flag = false;\n\n BufferedInputStream file = null;\n PDFTextStripper pdfStripper = null;\n PDDocument pdDoc = null... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A list of IPs autoallocated for NAT that are in drain mode. Example: ["1.1.1.1", "179.12.26.133"]. repeated string drain_auto_allocated_nat_ips = 309184557; | public com.google.protobuf.ProtocolStringList getDrainAutoAllocatedNatIpsList() {
return drainAutoAllocatedNatIps_;
} | [
"public com.google.protobuf.ProtocolStringList getDrainAutoAllocatedNatIpsList() {\n drainAutoAllocatedNatIps_.makeImmutable();\n return drainAutoAllocatedNatIps_;\n }",
"public com.google.protobuf.ProtocolStringList getDrainUserAllocatedNatIpsList() {\n return drainUserAllocatedNatIps_;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ELIST__Group__4__Impl" $ANTLR start "rule__ELIST__Group_3__0" InternalAADMParser.g:19082:1: rule__ELIST__Group_3__0 : rule__ELIST__Group_3__0__Impl rule__ELIST__Group_3__1 ; | public final void rule__ELIST__Group_3__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalAADMParser.g:19086:1: ( rule__ELIST__Group_3__0__Impl rule__ELIST__Group_3__1 )
// InternalAADMParser.g:19087:2: rule__ELIST__Group_3__0__Impl ... | [
"public final void rule__ELIST__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:19044:1: ( ( ( rule__ELIST__Group_3__0 )* ) )\n // InternalAADMParser.g:19045:1: ( ( rule__ELIST__Group_3__0 )* )\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column user_information.continue_days | public void setContinueDays(Integer continueDays) {
this.continueDays = continueDays;
} | [
"public Integer getContinueDays() {\n return continueDays;\n }",
"public void setEscalationDays(java.lang.Integer value);",
"public void setInfectionDay(int day) {\r\n this.dayOfInfection = day;\r\n }",
"public void setIncDays(Integer incDays) {\r\n this.incDays = incDays;\r\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method identifies the elite among this population so they can be cloned into next generation | public boolean[] identifyElites() {
boolean[] elites = new boolean[this.POPULATION_SIZE];
for (int z = 0; z < this.ELITE_SIZE; z++) {
double highestFitness = 0.0;
int eliteIndex = 0;
for (int i = 0; i < this.POPULATION_SIZE; i++) {
if (this.calcu... | [
"private int[] getElite(int[][] population) {\n\t\tfloat[] fitnesses = new float[population.length];\n\n\t\tfor (int i = 0; i < population.length; i++) {\n\t\t\tfitnesses[i] = getFitness(population[i]);\n\t\t\tif (fitnesses[i] < eliteFitness) {\n\t\t\t\tSystem.out.println(getFitness(eliteChromosome) + \" old\" + ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new NameValueModel with the specified name. | public NameValueModel(String namespace, String name) {
super(new QName(namespace, name));
} | [
"public NameValueModel(Configuration config) {\n super(config);\n }",
"public ModelMessage addName(String value) {\n super.addName(value);\n return this;\n }",
"Attribute createAttribute(String name);",
"public TFSABuilder createName(String name);",
"public ModelMessage addName... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
WARNING: do not extract downloadBatchStatus.status() as a local variable, this will invalidate the checks when a batch is deleted from the main thread, as this code runs in a thread and its status can change at any point. deleteBatchIfNeeded() is an expensive task that will take few milliseconds, after that time the st... | private static boolean shouldAbortStartingBatch(ConnectionChecker connectionChecker,
DownloadBatchStatusCallback callback,
InternalDownloadBatchStatus downloadBatchStatus,
... | [
"void deleteJobs(BatchEntity batch);",
"java.util.concurrent.Future<DeleteBatchPredictionResult> deleteBatchPredictionAsync(DeleteBatchPredictionRequest deleteBatchPredictionRequest);",
"ResponseMessage delete(int recalculateBatchId) throws ServiceException;",
"int getIndividualBatchDeleteStatusesCount();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is a mehod which parses report string from queue and process it. | public void parseString(Participant participant , String reportText, SpecimenCollectionGroup scg)throws Exception
{
Logger.out.info("Inside parseString method");
String[] lines=null;
StringTokenizer st=null;
String token = null;
Map reportMap=null;
try
{
lines=reportText.split("\n");... | [
"public abstract void parseReport();",
"public void sendReport(String report) \n {\n if (!isStarted()) \n return;\n try {\n Matcher matcher = regexpPattern.matcher(report);\n if (matcher.matches()) {\n Record rec = deliveryReceiptSchema.createRecord... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add the set dumpFileStream to the tree | private void addDumpFile() {
addDumpFile(dumpFile);
} | [
"private void addDumpFiles(String[] files) {\n for (int i = 0; i < files.length; i++) {\n try {\n dumpCounter = 1;\n addDumpStream(new FileInputStream(files[i]), files[i], true);\n } catch (FileNotFoundException ex) {\n JOptionPane.showMessag... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
m = Factor by which to multiple x component of velocity. | public void multVelocityX(float m)
{
// The function multiplies the x component of the velocity vector by the passed parameter.
// The function gets used to change velocity when the ball hits a brick -- reversing direction.
// Multiplying by -1 reverses direction.
/... | [
"public void multVelocityY(float m)\n {\n \n // The function multiplies the y component of the velocity vector by the passed parameter.\n // The function gets used to change velocity when the ball hits a brick -- reversing direction.\n // Multiplying by -1 reverses direction.\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verifies specified jsp element and stores all its params | private boolean doParams(Element el) throws JspParseException {
if (el instanceof JspElement) {
JspElement jspelement = (JspElement) el;
if (jspelement.type == PARAMS) {
jspelement.verify(PARAMS);
params.putAll(jspelement.params);
} else {
return false;
}
ret... | [
"private boolean checkBodyForParams(JspElement jspelement) {\n boolean hasParam = false;\n\n if( jspelement.body != null && jspelement.body.elements != null ){\n\t for (int i = 0; i < jspelement.body.elements.length; i++) {\n\t if( jspelement.body.elements[i] instanceof ParamTag){\n\t hasParam ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the localized error length message of this form item in the language. Uses the default language if no localization exists for the requested language. | @Override
public java.lang.String getErrorLengthMessage(java.lang.String languageId) {
return _formItem.getErrorLengthMessage(languageId);
} | [
"@Override\n\tpublic java.lang.String getErrorLengthMessage(java.util.Locale locale) {\n\t\treturn _formItem.getErrorLengthMessage(locale);\n\t}",
"@Override\n\tpublic java.lang.String getErrorLengthMessage(java.lang.String languageId,\n\t\tboolean useDefault) {\n\t\treturn _formItem.getErrorLengthMessage(languag... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Abstract Content Element'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseAbstractContentElement(AbstractContentElement object) {
return null;
} | [
"public T caseContentElement(ContentElement object) {\n\t\treturn null;\n\t}",
"public T caseAbstractStructureElement(AbstractStructureElement object) {\n\t\treturn null;\n\t}",
"public T caseAbstractDataElement(AbstractDataElement object) {\n\t\treturn null;\n\t}",
"public T caseContent(Content object)\n {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Given a location, take a whack at that location if true > update score+10, number of attempts 1, moleleft 1 if false> number of attempts left 1 | public boolean whack (int x, int y) {
if( x<0 || y<0) { // Enter positive number
System.out.println("Please enter a valid number ");
return false;
}
else if ((moleGrid)[x][y]=='W') { // If coordinate entered = W, then it is already whacked, enter another coordinate
System.out.println("Alea... | [
"private void checkForShift() { \n\t\tint startY = (int) (getHeight() - PADDLE_Y_OFFSET - paddle.getHeight() - (BRICK_HEIGHT*2));\n\t\tif (counterHits % 5 ==0) {\n\t\t\tfor (int y = startY; y > 0; y-=(BRICK_HEIGHT+BRICK_SEP)) {\n\t\t\t\tfor (int x = (int) (spaceBefore + 5); x < getWidth(); x += (BRICK_WIDTH+BRICK_S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called to delete any expired rows in the downloads table. This is basically cleaning up any singleuse download links that were never "clicked". | void deleteAllExpiredDownloads() throws RegistryStorageException; | [
"public static void purgeExpired()\n {\n Date now = new Date();\n List<DealWatchRecord> allRecords = getAllRecords(null);\n for (int i = 0; i < allRecords.size(); i++)\n {\n DealWatchRecord record = allRecords.get(i);\n if (record != null && record.expiration != ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the workgroup associated with this ChatSession. | public Workgroup getWorkgroup() {
return workgroup;
} | [
"public java.lang.String getWorkgroup_name()\n {\n return this._workgroup_name;\n }",
"public String getWorkgroupName() {\n return this.workgroupName;\n }",
"public long getWorkgroupcall()\n {\n return this._workgroupcall;\n }",
"public MultiUserChat getGroupChat() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the organizationNameHistCreateDate value for this TCRMOrganizationNameBObjType. | public java.lang.String getOrganizationNameHistCreateDate() {
return organizationNameHistCreateDate;
} | [
"public void setOrganizationNameHistCreateDate(java.lang.String organizationNameHistCreateDate) {\n this.organizationNameHistCreateDate = organizationNameHistCreateDate;\n }",
"public java.lang.String getOrganizationNameHistEndDate() {\n return organizationNameHistEndDate;\n }",
"public java... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test object update. First create a OrderFormCommodity instance and save it by preUpdate. Then delegate the update operation to method doUpdate. In the end do assert in afterUpdate to verify if update succeeds. User can modify these methods to customize the test procedure. | public void testUpdate() throws Exception {
logger.debug("Test update begins!");
OrderFormCommodity orderFormCommodity = null;
// Create and insert new instance
orderFormCommodity = preUpdate();
// Alter values of properties except its identifier attribut(s). Then
// perf... | [
"@Test\n public void testUpdateOrder() {\n Order addedOrder = new Order();\n\n addedOrder.setOrderNumber(1);\n addedOrder.setOrderDate(LocalDate.parse(\"1900-01-01\"));\n addedOrder.setCustomer(\"Update Test\");\n addedOrder.setTax(new Tax(\"OH\", new BigDecimal(\"6.25\")));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Executes a request for a carrierFlights | public void loadCarrierFlightsForCarrier(Carrier entry)
{
try
{
// get the query from the entry
ODataQuery query = entry.carrierFlightsQuery();
// put in the map
this.requestsIdentifierMap.put(RMTSAMPLEFLIGHTRequestID.LOAD_CARRIERFLIGH... | [
"public void loadFlightCarrierForFlight(Flight entry)\n {\n \t try\n {\n // get the query from the entry\n ODataQuery query = entry.FlightCarrierQuery();\n \n // put in the map\n this.requestsIdentifierMap.put(RMTSAMPLEFLIGHTRequestID.LOAD_FL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Recursively search parents to find the Frame component. | private Frame getFrame() {
Component c = this;
while (!(c instanceof Frame))
c = c.getParent();
return (Frame)c;
} | [
"static public Frame getTopLevelParent (Component component) {\n Component c = component;\n while (c.getParent() != null)\n c = c.getParent();\n if (c instanceof Frame)\n return (Frame)c;\n else\n return null;\n }",
"public ReferenceFrame getParent()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return digital tab window content as image | public Image getDigitalTabContentAsImage() {
return this.digitalTabItem.getContentAsImage();
} | [
"public void copyTabContentAsImage() {\r\n\t\tImage graphicsImage = null;\r\n\t\tint tabSelectionIndex = this.displayTab.getSelectionIndex();\r\n\t\tif (tabSelectionIndex == 0) {\r\n\t\t\tgraphicsImage = this.graphicsTabItem.getContentAsImage();\r\n\t\t}\r\n\t\telse if (DataExplorer.this.displayTab.getItem(tabSelec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GET /dreams/:id : get the "id" dream. | @GetMapping("/dreams/{id}")
@Timed
public ResponseEntity<Dream> getDream(@PathVariable Long id) {
log.debug("REST request to get Dream : {}", id);
Dream dream = dreamRepository.findOneWithEagerRelationships(id);
return ResponseUtil.wrapOrNotFound(Optional.ofNullable(dream));
} | [
"@RequestMapping(value=\"dorms/{id}\", method=RequestMethod.GET, produces=\"application/json\")\r\n\tpublic Dorm dorm(@PathVariable(\"id\") Long id) {\r\n\t\tDorm dorm = apiService.findDorm(id);\r\n\t\treturn dorm;\r\n\t}",
"@GetMapping(\"/episodes/{id}\")\n @Timed\n public ResponseEntity<Episode> getEpisod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an empty grid (filled with zeroes). | public int[][] createEmptyGrid() {
int[][] emptyGrid = new int[9][9];
for (int row = 0; row < 9; row++) {
for (int col = 0; col < 9; col++) {
emptyGrid[row][col] = 0;
}
}
return emptyGrid;
} | [
"private void initializeGrid()\n {\n \t\n // initialize grid as a 2D ARRAY OF THE APPROPRIATE DIMENSIONS\n \tgrid = new int [NUM_ROWS][NUM_COLS];\n\n\n //INITIALIZE ALL ELEMENTS OF grid TO THE VALUE EMPTY\n \tfor(int row = 0; row < NUM_ROWS; row++){\n \t\tfor(int col = 0; col < NUM_COLS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets true if the info window must be shown on map loading. | public boolean isInfoWindowVisible() {
return infoWindowVisible;
} | [
"public abstract boolean isMapLoaded();",
"public boolean isRequestInfoPageOpened() {\r\n\t\treturn title.getText().contains(\"Get in Touch\");\r\n\t}",
"public boolean isMapLoaded()\r\n {\r\n return loadedMap;\r\n }",
"boolean isReadyForShowing();",
"boolean isInfoEnabled();",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The offset rect of nodes. Only available when includeDOMRects is set to true | public List<Double> getOffsetRects() {
return offsetRects;
} | [
"public abstract Rect getRectForNodeHighlight();",
"@Override\r\n\tpublic Point getLocationOnScreen() {\r\n\t\tInsets offset = (Insets) $(outerNode).offset();\r\n\t\treturn new Point(offset.left, offset.top);\r\n\t}",
"protected int[] getRemoveUpdateRebuildOffsetRange(DocumentEvent evt) {\n DocumentEvent... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set the interaction pairs | void SetInteractionList(List<List<Integer>> interactionSet); | [
"public void SetPair(TeleportGate tg){\n pair = tg;\n }",
"public void testSetPairs () {\n // test setPairs method\n List<Object> li = new ArrayList<Object>();\n li.addAll (Arrays.asList (INSTANCES));\n ic.set (li, null);\n \n Lookup.Result<Object> res = lookup.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Abator for iBATIS. This method returns the value of the database column IFSAPP.SDIC_INDEX_DATA.MEASURE_PERIOD | public String getMeasurePeriod() {
return measurePeriod;
} | [
"long getSamplePeriod();",
"public int getPeriod() {\r\n return period;\r\n }",
"x0101.oecdStandardAuditFileTaxPT1.PeriodDocument.Period xgetPeriod();",
"protected long getPeriod()\n {\n return 0;\n }",
"long getPeriod();",
"public double getPeriod() {\n return period;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
hashCode delegates to the contained .value hashCode implemenation | @Override
public int hashCode()
{
return this.value.hashCode();
} | [
"@Override\n public int hashCode() {\n int hash = 7;\n hash = 97 * hash + Objects.hashCode(this.value);\n return hash;\n }",
"@Override\n public int hashCode() {\n // name's hashCode is multiplied by an arbitrary prime number (13)\n // in order to make sure there is a difference in the has... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the key codes for the numeric keys (VK_0, VK_1, VK_2, VK_3, VK_4, VK_5, VK_6, VK_7, VK_8, VK_9). Any key codes already in the repository will not be added again. After calling this method, the keycodes shall be present for both the KEY_PRESSED and KEY_RELEASED modes. | public void addAllNumericKeys()
{
synchronized (store)
{
for (int i = KeyEvent.VK_0; i <= KeyEvent.VK_9; ++i)
addKey(i);
}
} | [
"public static void addKeyCode(final KeyEvent e) {\r\n final KeyboardShortcutField ksf = (KeyboardShortcutField) e.getSource();\r\n final String newCode = Integer.toString(e.getKeyCode());\r\n final String codestring = ksf.getCodeString();\r\n List<String> existingCodes;\r\n\r\n i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 45 / 3 covered goals: Goal 1. org.objectweb.cjdbc.driver.ResultSetMetaData.(Lorg/objectweb/cjdbc/driver/DriverResultSet;)V: rootBranch Goal 2. org.objectweb.cjdbc.driver.ResultSetMetaData.getColumnType(I)I: I4 Branch 29 IF_ICMPLT L203 false Goal 3. org.objectweb.cjdbc.driver.ResultSetMetaData.getColum... | @Test(timeout=300000)
public void test45() throws Throwable {
Field[] fieldArray0 = new Field[1];
DatabaseProcedure databaseProcedure0 = new DatabaseProcedure("4+q@\nsVq{ZWVHn", "4+q@\nsVq{ZWVHn", 5172);
ArrayList arrayList0 = databaseProcedure0.getParameters();
DriverResultSet driverResul... | [
"@Test(timeout=300000)\n public void test47() throws Throwable {\n Field[] fieldArray0 = new Field[6];\n Driver driver0 = new Driver();\n ArrayList arrayList0 = driver0.pendingConnectionClosing;\n DriverResultSet driverResultSet0 = new DriverResultSet(fieldArray0, (ArrayList) arrayList0);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column CST_LOST.LST_LOST_DATE | public void setLstLostDate(Date lstLostDate) {
this.lstLostDate = lstLostDate;
} | [
"public Date getLstLostDate() {\n return lstLostDate;\n }",
"public void setReceiveDate (java.sql.Date receiveDate) {\r\n\t\tthis.receiveDate = receiveDate;\r\n\t}",
"public void setLBR_OwnDateDelivered (Timestamp LBR_OwnDateDelivered);",
"public void setLateDate(String lateDate) {\n this.lat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column trade_order.postage | public Integer getPostage() {
return postage;
} | [
"public Long getPostage() {\n return postage;\n }",
"public Integer getPostage() {\n return postage;\n }",
"public void setPostage(Long postage) {\n this.postage = postage;\n }",
"public Long getPayamount() {\n return payamount;\n }",
"public java.lang.Long getPostage... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field umangCost is set (has been assigned a value) and false otherwise | public boolean isSetUmangCost() {
return EncodingUtils.testBit(__isset_bitfield, __UMANGCOST_ISSET_ID);
} | [
"public boolean isSetRmangCost() {\n return EncodingUtils.testBit(__isset_bitfield, __RMANGCOST_ISSET_ID);\n }",
"public boolean isSetShouldMangCost() {\n return EncodingUtils.testBit(__isset_bitfield, __SHOULDMANGCOST_ISSET_ID);\n }",
"public boolean isSetUotherCost() {\n return EncodingUtils.testBi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bool isSentByPrimary = 4; | @java.lang.Override
public boolean getIsSentByPrimary() {
return isSentByPrimary_;
} | [
"@java.lang.Override\n public boolean getIsSentByPrimary() {\n return isSentByPrimary_;\n }",
"boolean isTransmitting();",
"public boolean wasSentByPrimary(PBFTServerMessage m){\n return isPrimary(m.getReplicaID(), getCurrentViewNumber());\n }",
"boolean getIsPerMsg();",
"public boolean isSe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rulePoint" $ANTLR start "entryRuleName" InternalSymboleoide.g:778:1: entryRuleName : ruleName EOF ; | public final void entryRuleName() throws RecognitionException {
try {
// InternalSymboleoide.g:779:1: ( ruleName EOF )
// InternalSymboleoide.g:780:1: ruleName EOF
{
before(grammarAccess.getNameRule());
pushFollow(FOLLOW_1);
ruleName();
... | [
"public final void entryRuleName() throws RecognitionException {\n try {\n // ../br.com.levysiqueira.dsl.textualusecase.ui/src-gen/br/com/levysiqueira/dsl/textualusecase/ui/contentassist/antlr/internal/InternalTextualUseCase.g:435:1: ( ruleName EOF )\n // ../br.com.levysiqueira.dsl.text... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
EntityReference nodes may be used to represent an entity reference in the tree. Note that character references and references to predefined entities are considered to be expanded by the HTML or XML processor so that characters are represented by their Unicode equivalent rather than by an entity reference. Moreover, the... | public interface EntityReference extends Node {
} | [
"EntityReference getEntityReference();",
"public EntityReference createEntityReference(String name)\n throws DOMException;",
"public /*virtual*/ XmlEntityReference CreateEntityReference( String name ) { \r\n return new XmlEntityReference( name, this );\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Single line comment Printing my name | public static void main(String[] args)
{
System.out.println("Mehedi Hasan Nirob");
//multiple line comment
/*
At first printing my phone number
then print my address
then print my university name
*/
System.out.println("01736121659\nJamalpur\nDhaka International Universi... | [
"public void putComment( String comment ) // -------------------------------\n{\n putLine( \"# \" + comment );\n}",
"private static String authorLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, NAME_STR, NAME);\n }",
"public void getComment() {\n System.out.println(\"The target... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
setLocalScale sets the local scale of this node. | public void setLocalScale(float localScale) {
localTransform.setScale(localScale);
worldTransform.setScale(localTransform.getScale());
setTransformRefresh();
} | [
"public void setLocalScale(Vector3f localScale) {\r\n localTransform.setScale(localScale);\r\n worldTransform.setScale(localTransform.getScale());\r\n setTransformRefresh();\r\n }",
"public void setLocalScale(float x, float y, float z) {\r\n localTransform.setScale(x, y, z);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use Bid.newBuilder() to construct. | private Bid(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
} | [
"public BidBuilder() {\n propertyId = new PropertyId(DEFAULT_PROPERTY_ID);\n bidderId = new BidderId(DEFAULT_BIDDER_ID);\n bidAmount = new Price(DEFAULT_BID_AMOUNT);\n }",
"private BidRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unkn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns if predicates are equal or could be made equal via instantiation of not instantiated arguments: | public boolean isCompatibleTo(Predicate other) {
if (!this.identifier.equals(other.identifier)) {
return false;
}
if (this.getValence() != other.getValence()) {
return false;
}
for (int i = 0; i < this.getValence(); i++) {
Variable thisVar = this.arguments.get(i);
Variable otherVar = other.argumen... | [
"private boolean arePredicatesEqual(List<Predicate<Patient>> predicates1, List<Predicate<Patient>> predicates2) {\n if (predicates1.size() != predicates2.size()) {\n return false;\n }\n HashSet<Predicate<Patient>> predicatesSet = new HashSet<>(predicates1);\n predicatesSet.rem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
create GUROBI Model given the coefficient matrix and the variables | public GRBModel createModel(PLI pli) throws GRBException {
//create the model
GRBModel model = new GRBModel(grbEnv);
//create the list of GUROBI model variables
List<GRBVar> variables = createVariables(model, pli.getVariables());
//create the objective function
createO... | [
"public CPModel createCPModel(List<Constraint> inputs) {\r\n\t\t\tCPModel cpmodel = new CPModel();\r\n\t\t\tfor (int i=0;i<this.nbRows;i++) {\r\n\t\t\t\t// inputs\r\n\t\t\t\tcpmodel.addVariable(productionCosts[i]);\r\n\t\t\t\tcpmodel.addVariable(salesPrizes[i]);\r\n\t\t\t\tfor (int j=0;j<12;j++) {\r\n\t\t\t\t\tcpmo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.out.println(" perform(" + arg1 + "," + arg2 + "," + arg3 + "," + arg4 + "," + arg5 + "," + selector + ") " + this); | public PrimObject perform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, PrimObject arg5, String selector) {
return perform0(selector, arg1, arg2, arg3, arg4, arg5);
} | [
"public PrimObject superPerform(PrimObject arg1, PrimObject arg2, PrimObject arg3, PrimObject arg4, PrimObject arg5, PrimObject arg6, PrimObject arg7, String selector) {\n return perform0s(selector, arg1, arg2, arg3, arg4, arg5, arg6, arg7);\n }",
"public PrimObject superPerform(PrimObject arg1, String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub Pname_branch,Paddress_branch,Pphone_branch | @Transactional
@Override
public void createBranch(Branch branch) {
call = new SimpleJdbcCall(jdbcTemplate).withProcedureName("create_branch");
Map<String, Object> culoMap = new HashMap<String, Object>();
culoMap.put("Pname_branch", branch.getNameBranch());
culoMap.put("Paddress_branch", branch.getAddressBranc... | [
"public void setBranchNo(String branchNo) {\r\n this.branchNo = branchNo;\r\n }",
"public void setBranchAddress(Address tempAddress){\n BranchAddress=tempAddress;\n }",
"public void setBranch(String branch) {\r\n this.branch = branch;\r\n }",
"public void setBranchNo(String branc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Renders margin table cell for tab label | private Element renderLabelMarginTds(DOMOutputBuffer buffer, Styles styles,
StyleProperty property) {
Element marginTd = null;
if (null == styles) {
return null;
}
StyleValue marginValue = styles.getPropertyValues().getComputedValue(
property);
... | [
"public void testHorizontalTabSpacing()\n {\n doValuesTest(new int[] { 0, 8, 56, 144, 200 }, null, false, new ValueAccess()\n {\n public int get()\n {\n return dvbtlm.getHorizontalTabSpacing();\n }\n\n public void set(int value)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the current guess index, a number beteween 0 and 25 which represents the letter to be guessed. | public int getGuessIndex()
{
return _guessIndex;
} | [
"public int getCurrentGuess(NumberGuesser guess)\n\t{\n\t\treturn midpoint = (guess.lower + guess.upper) / 2;\n\t}",
"public int getGuessNum()\n\t{\n\t\treturn guessNum;\n\t}",
"public int getGuess() {\n\t\tif (accusation) {\n\t\t\tJOptionPane.showMessageDialog(parent, panel, \"Make an accusation:\", JOptionPan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Perform the test for the given matrix column (A119) and row (B53). | public void testA119_B53() {
test_id = getTestId("A119", "B53", "27");
NonRootModelElement src = selectA("A119");
NonRootModelElement dest = selectB("B53");
A_B_Action(src, dest);
assertTrue("Paste menu item was available even though destination was invalid", checkResult_paste... | [
"@Test\r\n public void testColumns() {\r\n int expResult=2;\r\n int result=matrixA.columns();\r\n assertEquals(expResult, result);\r\n }",
"@Test\n public void testGetMatrixColumn() {\n final Matrix33d m = getMatrix();\n final Vector3d expected = V2;\n final Vect... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns array representing piece availability. Altering array will not influence availability in this object. | public boolean[] getAdvertisedPieceAvailability() {
return advertisedPieceAvailability.clone();
} | [
"private int[] getRoyalAvailability() throws InterruptedException {\n ArrayList<Integer> retSet = new ArrayList<>();\n for(int i = 0; i < 3; i++) {\n if (mGL.getCaptureService().colorIs(SPTList(\"char100NPChars\").get(i)))\n retSet.add(i);\n }\n\n if (retSet.siz... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct test live agent. | public TestLiveAgent(Configuration config) {
super(config);
addHandler(Actions.GET_AGENT_DESC, this);
addHandler(Actions.ADD_AGENT, this);
addHandler(Actions.REMOVE_AGENT, this);
addHandler(Actions.GROUP_LIVE_BIND, this);
addHandler(Actions.LIVE_BIND, this);
addHandler(Actions.LIVE_UNBIND, this);
} | [
"Agent createAgent();",
"private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ remove() is used to remove the nodes with the key value STEP1: CREATE ll and assign head to it, create a boolean flag and previous node STEP2: check if the node to be removed is head node and remove head if it is matched and also recursively check if after removal of head new head node also contains same node value o... | public void remove(int key) {
// STEP1:
Node current = new Node(null);
current = head.getNext();
Node previous = new Node(null);
boolean flag = true;
// STEP2:
while (flag) {
if (current.getData() == key) {
removeHead(current);
current = current.getNext();
} else {
flag = fal... | [
"public void remove(T key) {\n Node<T> previous = null;\n Node<T> current = First;\n\n if (current == null) {\n return;\n }\n\n while (current != null) {\n if (current.item == key) {\n if (previous == null) { //第一个就是要找的\n //r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the current directory in a string representation | static String getCurrentDirectory() {
return workingDirectory.toString();
} | [
"public final String getCurrentDirectory() {\n\tFile dir = new File (\".\");\n\tString returnDir = null;\n\ttry {\n\t returnDir = dir.getCanonicalPath();\n\t} catch (IOException ex) {\n\t log(\"Error getting current directory\");\n\t returnDir = \".\";\n\t}\n\treturn returnDir;\n }",
"final private st... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generated method Getter of the SslOrderSteppedMultiBuyDiscountPromotion.qualifyingValueAndBundleDiscounts attribute. | public Collection<PromotionValueAndDiscountRow> getQualifyingValueAndBundleDiscounts(final SessionContext ctx)
{
Collection<PromotionValueAndDiscountRow> coll = (Collection<PromotionValueAndDiscountRow>)getProperty( ctx, QUALIFYINGVALUEANDBUNDLEDISCOUNTS);
return coll != null ? coll : Collections.EMPTY_LIST;
... | [
"public Collection<PromotionValueAndDiscountRow> getQualifyingValueAndBundleDiscounts()\r\n\t{\r\n\t\treturn getQualifyingValueAndBundleDiscounts( getSession().getSessionContext() );\r\n\t}",
"public void setQualifyingValueAndBundleDiscounts(final SessionContext ctx, final Collection<PromotionValueAndDiscountRow>... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if(filter_popup==null) filter_popup = new Popup_Filter(this, R.style.alert_dialog); filter_popup.setUpLayout(); | public void createFilterPopup()
{
Toast.makeText(this,"Filter To be Added",Toast.LENGTH_SHORT).show();
} | [
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View parentView = getActivity().getLayoutInflater().inflate(R.layout.filter_popup_fragment, null);\n final WebtmsFilter webtmsFilter = Parcels.unwrap(getArguments().getParcelable(\"filter\"));\n\n //setup filter for e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column tbl_patient_request_xray.OCCLUSAL_VIEW | public void setOcclusalView(String occlusalView) {
this.occlusalView = occlusalView == null ? null : occlusalView.trim();
} | [
"public String getOcclusalView() {\n\t\treturn occlusalView;\n\t}",
"public void setVIEW_DORMANT_ACC(String VIEW_DORMANT_ACC) {\r\n this.VIEW_DORMANT_ACC = VIEW_DORMANT_ACC == null ? null : VIEW_DORMANT_ACC.trim();\r\n }",
"public void setOC_AGREEMENT(String OC_AGREEMENT) {\r\n this.OC_AGREEMEN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required string productNumber = 1; | public Builder setProductNumber(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
productNumber_ = value;
onChanged();
return this;
} | [
"java.lang.String getProductNumber();",
"public void setProductNum(Integer productNum) {\n this.productNum = productNum;\n }",
"public void setProductNum(Integer productNum) {\n\tthis.productNum = productNum;\n }",
"void setProductNumberCode(java.lang.String productNumberCode);",
"java.lang.Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a list of variant orientations | OrientedVariant[] orientations(Variant variant); | [
"protected Orientation[] getOrientations() {\n return orientations;\n }",
"@VTID(61)\r\n @ReturnValue(type=NativeType.VARIANT)\r\n java.lang.Object getOrientation();",
"String getOrientation();",
"public Iterator<Orientation> orientationIterator() {\r\n return orientations.iterator();\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.dstore.values.IntegerValue only_cond_parts_with_node_charac_id = 6; | io.dstore.values.IntegerValueOrBuilder getOnlyCondPartsWithNodeCharacIdOrBuilder(); | [
"io.dstore.values.IntegerValue getOnlyCondPartsWithNodeCharacId();",
"io.dstore.values.IntegerValue getOnlyCondPartsWithDomTNodeId1();",
"io.dstore.values.IntegerValue getOnlyCondPartsWithDomTNodeId3();",
"io.dstore.values.IntegerValue getOnlyCondPartsWithDomTNodeId2();",
"io.dstore.values.IntegerValueOrBui... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the esPersonaJuridica property. | public boolean isEsPersonaJuridica() {
return esPersonaJuridica;
} | [
"public java.lang.String getNombreJuridico() {\n return nombreJuridico;\n }",
"public Long getIdPersonaVoto() {\n return idPersonaVoto;\n }",
"public void setEsPersonaJuridica(boolean value) {\n this.esPersonaJuridica = value;\n }",
"public String getNombreJugador() {\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
int32 oneof_2561 = 2561; | public int getOneof2561() {
if (hugeOneofCase_ == 2561) {
return (java.lang.Integer) hugeOneof_;
}
return 0;
} | [
"int getTestFixed32();",
"int getOneof2256();",
"public int getOneof2561() {\n if (hugeOneofCase_ == 2561) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }",
"int getOneof2562();",
"int getTestUint32();",
"int getOneof2128();",
"int getOneof2563();",
"i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Extracts medicine object from the medicine XML node. | private static Medicine getMedicine(Node mNode) {
Medicine medicine = new Medicine();
Element mElement = (Element) mNode;
Node nameNode = mElement.getElementsByTagName(Names.NAME).item(0);
Node pharmNode = mElement.getElementsByTagName(Names.PHARM).item(0);
Node groupNode = mEle... | [
"IMedicine getMedicine();",
"private static void parseMETS() throws IOException, XMLStreamException {\r\n\r\n\t\tFile metsFile = new File(additionalDir, metsPath);\r\n\r\n\t\tif (!metsFile.exists()) {\r\n\t\t\tthrow new IOException(\"File does not exist. Current path is \"\r\n\t\t\t\t\t+ metsFile.getAbsolutePath(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Uses Cypher to evaluate a friendship between two nodes | public static ExecutionResult lookupFriendship(Universe universe, Node person, Node friend) {
ExecutionEngine engine = new ExecutionEngine(universe.getGraphDb());
String query = "START p=node(" + person.getId() + "), s=node(" + friend.getId() + ") MATCH (p)-[r:" + RelationshipTypes.FRIENDS_WITH + "]->s RETURN s... | [
"private StatementResult makeFriends( final Transaction tx, final String person1, final String person2 )\n {\n return tx.run( \"MATCH (a:Person {name: $person_1}) \" +\n \"MATCH (b:Person {name: $person_2}) \" +\n \"MERGE (a)-[:KNOWS]->(b)\",\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The document log Public method / Document() Constructor to create a new instance of a document. Parameter: DOCUMENT_NAME String name of the document create. | public Document(final String DOCUMENT_NAME)
{
this.docName = DOCUMENT_NAME;
this.docContents = new List();
this.docLog = new Log();
} | [
"public Document() {}",
"public Document() {\n }",
"public MyDocument() {\r\n }",
"Document createDocument();",
"public Document() {\n super(0, null, null);\n }",
"public DocumentBuilder() {\n this.document = new Document();\n }",
"public DTDdocument(String name) {\r\n this();\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__PrimitiveTypes__NumIDAssignment_2_1" $ANTLR start "rule__PrimitiveTypes__NumberAssignment_2_2" InternalJSchema.g:2828:1: rule__PrimitiveTypes__NumberAssignment_2_2 : ( ruleNumber ) ; | public final void rule__PrimitiveTypes__NumberAssignment_2_2() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalJSchema.g:2832:1: ( ( ruleNumber ) )
// InternalJSchema.g:2833:2: ( ruleNumber )
{
// InternalJSchem... | [
"public final void rule__PrimitiveTypes__Group_2__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalJSchema.g:1907:1: ( ( ( rule__PrimitiveTypes__NumberAssignment_2_2 )? ) )\n // InternalJSchema.g:1908:1: ( ( rule__P... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fill helper with stacks from given ingredient | private static void accountStacks(Ingredient ingredient){
for(ItemStack stack : ingredient.getMatchingStacks()){
HELPER.accountStack(stack);
}
} | [
"ItemStack createStack(int amount);",
"ItemStack createStack(int amount, int metadata);",
"public static void addRecipes(RecipeSimpleFluid recipe) {\n recipe.add(new ItemStack(Items.water_bucket, 1), new ItemStack(Items.stick, 1), new FluidStack(SSFluids.drinkingWater, 1000));\n\n recipe.add(new I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for the string array which contain the information of last things | public String[] getLastThings() {
return lastThings;
} | [
"public String[][] getLastResult() {\r\n\t\treturn lastResult;\r\n\t}",
"public E getLast() {\r\n return array[size - 1];\r\n }",
"public String getLast()\n {\n return lastItem;\n }",
"public String[][][] getLastResults() {\r\n\t\treturn lastResults;\r\n\t}",
"public String to... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes sure setCoins() doesn't accept a negative values. | @Test(expected = IllegalArgumentException.class)
public void testCoinsNegative() {
profile.setCoins(-1);
} | [
"public void setIncorrectCoins(int incorrectCoins) {\n this.incorrectCoins = incorrectCoins;\n }",
"public void warningCoins(int coins);",
"public void emptyCoins() {\n\tcoins = 0;\n\tvalue=0;\n}",
"public void setCorrectCoins(int correctCoins) {\n this.correctCoins = correctCoins;\n }",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getPenalty method used to obtain the penalty value | public int getPenalty(){
return penalty;
} | [
"double getPenalty() {\n return objectiveResult.getPenalty();\n }",
"private double getPenalty() {\n return (cofImportanceSla * getPartPenalty(getSlaViolationTimeList()) + cofImportancePower * getPartPenalty(getPowerConsumptionList()));\n }",
"public double getScore() {\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parser para todas las comparaciones | private Parser<GAL_InterpreterNode> comparer(){
return Parsers.or(lessThan(),moreThan(),equalThan(),lessOrEqualThan(),moreOrEqualThan(),notEqualThan());
} | [
"final public void Compare() throws ParseException {\r\n jj_consume_token(COMPARE);\r\n jj_consume_token(EQUAL);\r\n YesNo();\r\n }",
"private Term parseComparison(final boolean required) throws ParseException {\n Term t1 = parseBitwiseOr(required);\n while (t1 != null) {\n i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
helper function for updateAvailMovesInLineInBox. This removes all the "num" in line horizontally that are not in the box | void updateAvailMovesInLineInBoxHorizontal(int num, int line, int box) {
for (int i = 0; i < boardSize; i++) {
if (availMoves[i][line][num-1] == true) {
// we don't want to remove the elements from the box we are inside so we do this check.
if (i/boxSize != box) {
//System.out.println("removing " + nu... | [
"void updateAvailMovesInLineInBox(int num) {\n\t\tint counter;\n\t\t//for loop through each box\n\t\t\n\t\tfor (int i = 0; i < boxSize; i++) {\n\t\t\tfor (int j = 0; j < boxSize; j++) {\n\t\t\t\t// here we count the amount/number of the inserted num inside the box\n\t\t\t\tcounter = 0;\n\t\t\t\tfor (int k = boxSize... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.go.micro.runtime.ListOptions options = 1; | public go.micro.runtime.RuntimeOuterClass.ListOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
} | [
"go.micro.runtime.RuntimeOuterClass.ListOptions getOptions();",
"go.micro.runtime.RuntimeOuterClass.ListOptionsOrBuilder getOptionsOrBuilder();",
"go.micro.runtime.RuntimeOuterClass.CreateOptions getOptions();",
"go.micro.runtime.RuntimeOuterClass.ReadOptions getOptions();",
"go.micro.runtime.RuntimeOuterCl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
copy a child file to a new destination | private void copy(File childFile, Directory destination) {
Directory temp = driver.JShell.getCurrDir();
driver.JShell.setCurrDir(destination);
try {
File f1 = new File(childFile.getName(), childFile.getContents());
destination.addFile(f1);
} catch (Exception e) {
}
JShell.setCurrDir(temp);
} | [
"public static void copyFile(String from, String to) throws IOException{\r\n Path src = Paths.get(from); // set path of source directory from parent function\r\n Path dest = Paths.get(to); // set path of destination directory from parent function\r\n Files.copy(src, dest); //inbuilt funct... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copy all nonoverridden rules, vocabulary, and options into this grammar from supergrammar chain. The change is made in place; e.g., this grammar's vector of rules gets bigger. This has sideeffects: all grammars on path to root of hierarchy are expanded also. | public void expandInPlace() {
// if this grammar already expanded, just return
if ( alreadyExpanded ) {
return;
}
// Expand super grammar first (unless it's a predefined or subgrammar of predefined)
Grammar superG = getSuperGrammar();
if ( superG == null ) return; // error (didn't provide superclas... | [
"private void grammar() {\n _original_lexer = S.lexer;\n S.lexer = _grammar_lexer;\n\n // add predefined terminals\n for (int i = 0; i < MINUSERTERM; i++) {\n _terms[i] = new SYMBOL();\n _terms[i].val = i;\n }\n\n // parse grammar\n S.expect(LBR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Devuelve un Set de todos los atributos almacenados en el repositorio | public Set<String> Atributos()
{
return this.repositorio.keySet();
} | [
"private static Set<String> ignoreExactSet() {\r\n Set<String> set = new HashSet<String>();\r\n set.add(\"mailto:obi-users@googlegroups.com\");\r\n set.add(\"http://purl.obolibrary.org/obo/obi\");\r\n set.add(\"http://purl.obolibrary.org/obo/obi.owl\");\r\n set.add(\"http://purl.obolibrary.org/obo/ob... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Utility method to display a product summary | public String getProductSummary() {
if (getProducts() != null) {
if (getProducts().size() == 1) {
return getProducts().get(0);
}
if (getProducts().size() > 1) {
StringBuilder sb = new StringBuilder();
sb.append(getProducts().get(0))
.append( " (plus ")
.append(getProducts... | [
"public void printSummaryProducts() {\n\t\t\n\t\tSystem.out.println(\"Summary of products:\\n * Nbr. of products : \" + this.products.size());\n\t\t\n\t\tSet<String> set = products.keySet().stream().map(p -> p.getClass().getSimpleName()).collect(Collectors.toSet());\n\t\tSystem.out.println(\" * List of types : \" +... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the focus into the editor file determined by the selected node given as a parameter. | private void setFocusEditorFile(TreePath currentSelection) {
// If there is a selected node
if (currentSelection != null) {
// Gets the file path from the selected node in the explorer tree
String filePath = currentSelection.getLastPathComponent()
.toString();
// Updates the status message... | [
"private void setCurrentlySelectedFileFromActiveEditor() {\n\t\tshell.getDisplay().syncExec(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\topenedEditor = PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getActiveWorkbenchWindow().getActivePage()\n\t\t\t\t\t\t.getActiveEditor();\n\t\t\t\t// get IFile from editor\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a comment to this treebank. | public abstract void addComment(String comment); | [
"public void addComment(String comment);",
"public void addComment(Comment comment){\n commentRepository.createComments(comment);\n }",
"public void addComment(CommentInfo comment) {\n \tcomments.add(comment);\n }",
"public void addComment(Comment comment) {\n\t\t//comments.add(comment);\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicate that we have, or are about to send the client create message on this connection. | boolean sendClientReady() {
return sentClientReady.compareAndSet(false, true);
} | [
"public boolean isCreated() {\n\t\treturn mqttClient != null;\n\t}",
"public boolean isAllowNewClients() {\n return allowNewClients;\n }",
"public boolean isCreate() {\r\n\t\treturn controller.closedByCreate;\r\n\t}",
"public Boolean canCreateOnServer() {\n\t\treturn true;\n\t}",
"boolean hasClien... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Specifies the max total capacity of the executor under test, the sum of running and queued tasks. | public ExecutorTestSuiteBuilder<E> withMaxCapacity(int maxCapacity) {
checkArgument(maxCapacity == ExecutorTestSubjectGenerator.UNASSIGNED || maxCapacity >= 3, "A couple of tests assume capacity larger than 3. Please pick a larger value.");
getSubjectGenerator().withMaxCapicity(maxCapacity);
ret... | [
"@Override\n public int getMaxCapacity() {\n return 156250000;\n }",
"@Override\n public int getMaxJobsPerAcquisition() {\n return myMaxJobsPerAcquisition;\n }",
"public int getThreadPoolMaxSize() {\n return threadPoolMaxSize;\n }",
"int getExecutorMaximumPoolSize();",
"Integer getThre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the inactiveCount attribute of the Message object | public void setInactiveCount(int tmp) {
this.inactiveCount = tmp;
} | [
"public void setInactiveCount(String tmp) {\n this.inactiveCount = Integer.parseInt(tmp);\n }",
"public int getInactiveCount() {\n return inactiveCount;\n }",
"public void setMsgCount(int value) {\n this.msgCount = value;\n }",
"public void setNumInactiveReceivers(Long NumInactiveReceivers) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for LocalFlag, using the alias name LocalFlag. | public String getLocalFlag() {
return (String)getAttributeInternal(LOCALFLAG);
} | [
"public String getLocalFlag() {\n return (String) getAttributeInternal(LOCALFLAG);\n }",
"private Instruction getlocal ()\n {\n assert (this.isLocalDef) : \"not a local Binding:\" + this;\n if (this.getlocalIns == null)\n {\n this.getlocalIns = Inst... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Methods // Gets the Kendo UI widget | public String widget()
{
return KendoUIBehavior.widget(this, ListViewBehavior.METHOD);
} | [
"public T getWidget() {\r\n\t\treturn widget;\r\n\t}",
"public String getWidgetId();",
"@Override\n public Widget getWidget() {\n if (widget == null) {\n if (Profiler.isEnabled()) {\n Profiler.enter(\"AbstractComponentConnector.createWidget for \"\n + g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find all bad notes | public int[] badNotes(){
int j = 0;
for(int i = 0; i < this.note.length; i++){
this.note[i]= roundNote(this.note[i]);
}
for(int i = 0; i < this.note.length; i++){
if(this.note[i] < 40){
j++;
}
}
this.badNotes = new int[j... | [
"List<ZuluWarning> notes();",
"public List<Selection> getMisspelledWords(Buffer buffer) {\n /** Transform buffer into Map<Selection, String>. */\n Map<Selection, String> words = getWords(buffer);\n\n /**\n * Iterate over every map entry and filter them by misspelled words. The\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AdditiveOp__Alternatives" $ANTLR start "rule__MultiplicativeOp__Alternatives" InternalReflex.g:2252:1: rule__MultiplicativeOp__Alternatives : ( ( ( '' ) ) | ( ( '/' ) ) | ( ( '%' ) ) ); | public final void rule__MultiplicativeOp__Alternatives() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalReflex.g:2256:1: ( ( ( '*' ) ) | ( ( '/' ) ) | ( ( '%' ) ) )
int alt25=3;
switch ( input.LA(1) ) {
case 69... | [
"public final void rule__OpMulti__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:2766:1: ( ( '*' ) | ( '**' ) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |