query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Tries to transfer 1 of the given Resource from one player to another | private static boolean transfer(Player taken, Player given, String resource){
switch (resource) {
case "WOOD":
if(taken.getInventory().getWood() > 0){
taken.getInventory().removeWood(1);
given.getInventory().addWood(1);
retu... | [
"public void switchPlayer(){\n // Menukar giliran player dalam bermain\n Player temp = this.currentPlayer;\n this.currentPlayer = this.oppositePlayer;\n this.oppositePlayer = temp;\n }",
"public void giveMeResource(Resource resource, float amount) throws CallbackAIException;",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets SSO platform id value. | public String getSSOPlatformIdVal()
{
return getProperty(CONFIG_KEY_SSO_PLATFORM_ID_VALUE);
} | [
"public Integer getPlatformId() {\r\n return platformId;\r\n }",
"public String getSSOPlatformIdKey()\n {\n return getProperty(CONFIG_KEY_SSO_PLATFORM_ID_KEY);\n }",
"public int getPlatformID() {\n return platformID;\n }",
"public int getPlatformId() {\n\t\treturn platformId;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'updated' field has been set | public boolean hasUpdated() {
return fieldSetFlags()[5];
} | [
"public boolean isUpdated() {\n return updated;\n }",
"public boolean isSetUpdatedAttrs() {\n return this.updatedAttrs != null;\n }",
"public boolean checkAnyFieldUpdated() {\n return startDate != null || endDate != null;\n }",
"boolean isUpdated();",
"public boolean isUpdated();",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add field / value to the submit Form for registration | private void addField(String field, String value)
{
FormField formField = new FormField(field);
formField.addValue(value);
submitForm.addField(formField);
} | [
"void register() {\n // handles invalid form\n if ((viewModel.isValidForm == null) || !viewModel.isValidForm.getValue()) {\n return;\n }\n // handles the registration request using an interactor\n RegistrationInteractor.sendRegisterRequest(viewModel.email.getValue(),\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Help method that returns the description for given class. This method reads from class annotations if existing. Otherwise it returns the simple class name. | public static String getDescriptionOf(Class<? extends Object> clazz) {
if (clazz.isAnnotationPresent(ClassDescription.class)) {
return clazz.getAnnotation(ClassDescription.class).value();
}
return clazz.getSimpleName();
} | [
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getClassDescription();",
"String getClassJavadoc();",
"@Override\n public String getDescription() {\n return getClass().getName();\n }",
"public String getClassDescription() {\n return classDescription;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to check top task is floating task and bottom task has start or end date. | private boolean isTopTaskFloatingAndBottomTaskWithDate(Task topTask, Task bottomTask) {
return ((topTask.getStartDate() == null && topTask.getEndDate() == null)
&& (((bottomTask.getStartDate() != null)) || (bottomTask.getEndDate() != null)));
} | [
"private boolean hasTopTaskStartDateIsAfterBottomTaskStartDate(Task topTask, Task bottomTask) {\n\n\t\treturn ((topTask.getStartDate() != null && bottomTask.getStartDate() != null) \n\t\t\t\t&& topTask.getStartDate().isAfter(bottomTask.getStartDate()));\n\t}",
"private boolean hasTopTaskStartDateIsAfterBottomTask... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
COLLECTION REFERENCE Recupere la reference de la collection racine "courses" en utilisant le singleton de FirebasFirestore. | public static CollectionReference getCoursesCollection() {
return FirebaseFirestore.getInstance().collection(COLLECTION_NAME);
} | [
"public void setCourses(List<ObjectId> courses) {\n this.courses = courses;\n\n }",
"private NotesCollection getCollection() {\n\t\t\n\t\tif (collection == null || collection.isRecycled() ) {\n\t\t\tNotesDatabase db = new NotesDatabase(ExtLibUtil.getCurrentSession(), \"\", fakenamesPath);\n\t\t\tcollect... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column ecs_supplier_street.supplier_type | public byte[] getSupplierType() {
return supplierType;
} | [
"public void setSupplierType(byte[] supplierType) {\n this.supplierType = supplierType;\n }",
"java.lang.String getPostalType();",
"java.lang.String getAddressType();",
"private SupplierPartyType getSupplier(Party supplier) {\r\n SupplierPartyType result = new SupplierPartyType();\r\n\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new time series which starts at 'first' point and last up to no more than 'last' point (exclusive if step size so dictates) with data points generated every 'step' hours. Times values in output timeseries can be rounded according to xOutputRound to keep timepoint in 'crisp' accuracy despite double precession an... | public List<Timepoint> makeInterpolation(double step,double first,double last,ROUNDING_TYPE xOutputRound); | [
"public List<Timepoint> makeInterpolation(double step,ROUNDING_TYPE xOutputRound);",
"public interface TimeSeriesInterpolator {\r\n \r\n \r\n /**\r\n * Creates new time series which starts at original timeseries 'first' point and last up to original 'last' point \r\n * (exclusive if step size so dict... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert the contents of the block header into a human readable string. This is mostly helpful for debugging. This assumes that the block has minor version > 0. | static String toStringHeader(ByteBuffer buf) throws IOException {
int offset = buf.arrayOffset();
byte[] b = buf.array();
long magic = Bytes.toLong(b, offset);
BlockType bt = BlockType.read(buf);
offset += Bytes.SIZEOF_LONG;
int compressedBlockSizeNoHeader = Bytes.toInt(b, offset);
offset +=... | [
"com.toasttab.receipts.LineProtos.Line getHeader();",
"public interface IBlockHeader {\n /**\n * The magic number, should be the value of <code>magicNumber</code>.\n */\n public static final int MAGIC_NUMBER = 0xc0da0100;\n\n /**\n\t * Get the size of the block (physical record).\n\t *\n\t * @ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Search'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseMOMoTSearch(MOMoTSearch object)
{
return null;
} | [
"RSearch getSearch();",
"Search getSearch();",
"public T caseBundleSearch(BundleSearch object) {\n\t\treturn null;\n\t}",
"public T caseSearchParameter(SearchParameter object) {\n\t\treturn null;\n\t}",
"public T caseSearchParamType(SearchParamType object) {\n\t\treturn null;\n\t}",
"public T caseSearchOr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a list of the key–value pairs of this map node. Iterating over the list will traverse the KV pairs in the order in which they were added to this map node. Modifying the value of a KV pair (for example, changing the parent of a node) will affect this map node. | public List<Pair> getPairList()
{
List<Pair> pairs = new ArrayList<>();
for (Map.Entry<String, AbstractNode> entry : this.pairs.entrySet())
pairs.add(new Pair(entry.getKey(), entry.getValue()));
return pairs;
} | [
"@Override\n public List<V> getValues()\n {\n List<V> values = new ArrayList<V>();\n Iterator<Entry<K, V>> it = new InOrder();\n // Iterate over the tree using the in order iterator,\n // adding each value\n while (it.hasNext())\n {\n //System.out.println... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Cheak barcode category and count it | public void cheakCategory(String category) {
if (category.equals("1")) {
url_count += 1;
} else if (category.equals("4")) {
sms_count += 1;
} else if (category.equals("2")) {
text_count += 1;
} else if (category.equals("3")) {
contact_coun... | [
"public void countCategory()\n\t{\n\t\t\n\t\tfor(String category: NBtableList.keySet())\n\t\t{\n\t\t\tHashtable<String, Integer> tempTable = NBtableList.get(category);\n\t\t\tInteger count= 0;\n\t\t\tfor(String temptext: tempTable.keySet())\n\t\t\t{\n\t\t\t\tcount = count+ tempTable.get(temptext);\n\t\t\t}\n\t\t co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a list element to the html String containing the gallery html. May become a more general purpose html utility method later on but for now it's quite specific for the purpose of creating a gallery. I need to think how best to manage the html string (e.g. pass it in then the result back or just get the additional St... | private String addLItoULelement(String galleryName, String imageName) {
String fs = File.separator;
String thumbPath = galleryName + fs + galleryManagerConfiguration.getThumbnailRelPath() + fs + imageName;
String imagePath = galleryName + fs + imageName;
String thumbRelPath = getHTMLRel... | [
"private String unorderedList(String result){\r\n if(!nolist){ //lists only get processed if not forbidden (see code for [= and <pre>). [MN]\r\n int p0 = 0;\r\n int p1 = 0;\r\n //contributed by [AS]\r\n if(result.startsWith(ListLevel + \"*\")){ //more stars... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
On delete songtoattributes cascades | @Override
public void delete(Song song) {
create.deleteFrom(T_SONG)
.where(T_SONG.SONGID.eq(song.getId()))
.execute();
} | [
"void cascade(Attributes attributes);",
"public void delete(Song song){ repository.delete(song);}",
"private void removeAlbumFromCollection() {\n //\n }",
"public void deleteSong(Song song) {\n\t\t\n\t\t\n\t\tString sql =\"DELETE FROM album_song WHERE fk_album_id = ? AND fk_song_id = ?;\";\n\t\ttry ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleArrayRange" $ANTLR start "ruleArrayRange" InternalJsonParser.g:1853:1: ruleArrayRange returns [EObject current=null] : ( () otherlv_1= LeftSquareBracket ( (lv_lowerBound_2_0= ruleINTVALUE ) ) (otherlv_3= FullStopFullStop ( (lv_upperBound_4_0= ruleINTVALUE ) ) )? otherlv_5= RightSquareBracket ) ; | public final EObject ruleArrayRange() throws RecognitionException {
EObject current = null;
Token otherlv_1=null;
Token otherlv_3=null;
Token otherlv_5=null;
AntlrDatatypeRuleToken lv_lowerBound_2_0 = null;
AntlrDatatypeRuleToken lv_upperBound_4_0 = null;
en... | [
"public final EObject ruleArrayRange() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n AntlrDatatypeRuleToken lv_lowerBound_2_0 = null;\n\n AntlrDatatypeRuleToken lv_upperBound_4_0 = null;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the file content as List | public List<String> getFileContent() {
TextFileProcessor proc = new TextFileProcessor();
this.processFile(proc);
return proc.strList;
} | [
"public ArrayList<String> getFileContent(){\n\t\tArrayList<String> content = new ArrayList<String>(); \n\t\tfor (Task task: taskList){\n\t\t\tcontent.add(task.getContent());\n\t\t}\n\t\treturn content;\n\t}",
"private static List<String> readFileContent(String filePath) {\n List<String> linesList = new Arr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks the dirty status of the 'unionRecursive' field. A field is dirty if it represents a change that has not yet been written to the database. | public boolean isUnionRecursiveDirty(org.apache.gora.cascading.test.storage.TestRow value) {
return isDirty(3);
} | [
"public boolean isUnionRecursiveDirty(org.apache.gora.cascading.test.storage.TestRow value) {\n\t throw new java.lang.UnsupportedOperationException(\"IsDirty is not supported on tombstones\");\n\t }",
"public boolean hasUnionRecursive() {\n return fieldSetFlags()[3];\n }",
"public boolean isUnionLon... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the return type of the last node/method in case the last node is a fluent structure. In this case recursive calls may be needed to find the really last methods. | private String getReturnType(Tree lastNode) {
if (lastNode.getModifier() == Node.ONCE) {
var list = lastNode.getList();
return getReturnType(list.get(list.size() - 1));
}
if (lastNode.getModifier() == Node.ONE_OF || lastNode.getModifier() == Node.ONE_TERMINAL_OF) {
... | [
"private String getReturnType(Terminal lastNode) {\n if (lastNode.getModifier() == Node.ONCE) {\n methods.exitNode(lastNode.getMethod());\n return methods.get(lastNode.getMethod()).getGenericReturnType().getTypeName();\n }\n if (lastNode.getModifier() == Node.ONE_OF) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns top margin of divider. | int dividerTopMargin(int position, RecyclerView parent); | [
"@VTID(17)\r\n double topMargin();",
"float getTopMargin();",
"Drawable getTopDivider(int section, int position);",
"Rect topDividerOffset(int section, int position);",
"int dividerBottomMargin(int position, RecyclerView parent);",
"double getHeaderMargin();",
"@VTID(21)\r\n double bottomMargin();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new Collection containing all the values in the Collection coll that are greater than or equal to low and less than or equal to high, as defined by the Comparator comp. The returned collection must contain only these values and no others. The values low and high themselves do not have to be in coll. Any dupli... | public static <T> Collection<T> range(Collection<T> coll, T low, T high,
Comparator<T> comp) {
if ((coll == null) || (comp == null)) {
throw new IllegalArgumentException();
}
if (coll.isEmpty()) {
throw new NoSuchElementException();
}
... | [
"public static <T> T floor(Collection<T> coll, T key, Comparator<T> comp) {\n if ((coll == null) || (comp == null)) {\n throw new IllegalArgumentException();\n }\n if (coll.isEmpty()) {\n throw new NoSuchElementException();\n }\n Collection<T> range = range(coll, (min(coll, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the trialPeriod value for this UpdateRecurringPaymentsProfileRequestDetailsType. | public eBLBaseComponents.apis.ebay.BillingPeriodDetailsType_Update getTrialPeriod() {
return trialPeriod;
} | [
"public void setTrialPeriod(eBLBaseComponents.apis.ebay.BillingPeriodDetailsType_Update trialPeriod) {\r\n this.trialPeriod = trialPeriod;\r\n }",
"public int getTrial_period() {\n return trial_period;\n }",
"public eBLBaseComponents.apis.ebay.BillingPeriodDetailsType_Update getPaymentPeriod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the test object. This method is left abstract, since nonabstract subclasses will set the test object in the constructor. | protected abstract Object getTestObject(); | [
"@Override\n public SeleniumTestObject getTestObject() {\n return ScenarioContext.get(ScenarioContext.JMAQS_HOLDER, BaseSeleniumTest.class).getTestObject();\n }",
"CMProxyTestObject getM_TestObject();",
"public static Testing returnObject() {\r\n\t\t\r\n\t\tTesting t = new Testing();\r\n\t\t\r\n\t\treturn ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
func_ClickEditUserByEmailId This will click on edit button for a particular user by its Email Id Created By: Rohan Macwan Created On: 20 January 2016 Modified By | Description of Modification: | public void func_ClickEditUserByEmailId(String UserEmailId) throws InterruptedException,
ParseException {
func_TypeSearchCriteria(UserEmailId, "User");
func_ClickElement("FirstEditButton");
} | [
"public void func_ClickEditUserByNumber(int iUserOrder) {\n userList.get(iUserOrder).findElement(By.xpath(\"header/div[7]/button\")).click();\n }",
"public void clickingOnViewEditUsersLink(WebDriver driver)\r\n\t {\r\n\t\t try\r\n\t\t {\r\n\t\t\t driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the active button. | public void setActiveButton(TaskButton btn) {
// TODO: Provide implementation, v2 did not provide full support
} | [
"public void setActive(boolean isActive) {\n if (this.isActive != isActive) {\n resetColors();\n }\n this.isActive = isActive;\n if (isActive) {\n button.setIdleColor(SELECTED_COLOR);\n icon.getMaterial().setColor(\"Color\", SELECTED_ICON_COLOR);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the sum of integers within two arraylists. | public Integer addStuffTogether(ArrayList<Integer> original1, ArrayList<Integer> original2) {
Integer sum = 0;
for (Integer i : original1) {
sum += i;
}
for (Integer i : original2) {
sum += i;
}
return sum;
} | [
"public static void sum(int[] arrOne, int[] arrTwo){\n int sum=0;\n/*Check both arrays for common element and increment sum counter*/\n for(int i=0; i<arrOne.length; i++){\n for(int j=0;j< arrTwo.length;j++){\n if(arrOne[i]==arrTwo[j])\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Creates the breeding population by selecting all max fitness individuals | private Population<Lion> generateBreedingPopulation() {
//Step 1. Evaluate all Fitness, choose N best lions
ArrayList<Float> fitnessScores = evaluateFitness();
Population<Lion> lionsTryingToMate = getPopulation();
Population<Lion> lionBreedingPool = new Population<>();
while (l... | [
"private <T> GeneticResult<T> maxFitness(List<Chromosome<T>> chromosomes, int totalBreedings){\n\t\tChromosome<T> bestFit = fittestChromosome(chromosomes);\n\t\treturn new GeneticResult<T>(bestFit, bestFit.getFitness(), totalBreedings);\n\t}",
"public abstract ElitisticListPopulation getRandomPopulation(int size,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Let the user modify the content and load in in po and ltf | public void reloadContent(PersistentObject po, InputData ltf); | [
"public void displayContent(PersistentObject po, InputData ltf);",
"public void updateContents() {\n\t\tif (getDocument() == null) {\n\t\t\treturn ;\n\t\t}\n\t\tInputStream codeStream = new ByteArrayInputStream(getDocument().get().getBytes());\n\t\ttry {\n\n\t\t\tfile = BuildExpressionEditorDataSturcture.INSTANCE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Collapses all the nodes back to the root node collapses all the nodes back to the root | public void collapseAll() {
int width;
for(int i = tree.getRowCount()-1; i >= 0; i--){
tree.collapseRow(i);
}
//resizes the JScrollPane
if(layout == DEFAULT_LAYOUT) {
width = 350;
}
else {
width = getLongestString((DefaultMutableTreeNode) tree.getModel().getRoot(),... | [
"public void collapseTree() {\n for (int i = 1; i < resultsTree.getRowCount(); ++i) {\n resultsTree.collapseRow(i);\n }\n }",
"public void collapseAllNodes(){\n mExpandAll=false;\n for(int i=0; i<mTree.getRowCount(); i++)\n mTree.collapseRow(i);\n }",
"pri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints the game is saved | void gameSaved() {
System.out.println("\n\nGame saved.");
} | [
"public String saveGame() {\n\t\tString s = \"\";\n\t\ts += this.nbCastle + \" \\n\";\n\t\tfor (int i = 0; i < this.nbCastle; i++) {\n\t\t\ts += castle[i].saveGame() + \" \\n\";\n\t\t}\n\t\treturn s;\n\t}",
"public static void save(){\n\t\ttry{\n\t\t\tFile f=new File(Constants.PATH+\"\\\\InitializeData\\\\battles... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether the enemy base location has been found | public boolean foundEnemyBase()
{
if (enemyStartLocation == null)
{
return false;
}
else
{
return true;
}
} | [
"private boolean findTarget() {\r\n for (MapTile tile : activeArea) {\r\n if (tile.getEnemy() != null) {\r\n target = tile.getEnemy();\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean hasLocation()\n {\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all suported currencies by all shops. | Collection<String> getAllSupportedCurrenciesByShops(); | [
"List<Stock> getStocksOfAllProducts();",
"Set<Category> getShopCategories(Shop shop);",
"public Iterable<Shop> getAllShops() {\n return this.shopRepository.findAll();\n }",
"public java.util.List<com.gleo.plugins.hexiagon.model.Currency> findAll()\n throws com.liferay.portal.kernel.exception.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets (as xml) the "DigestValue" element | public void xsetDigestValue(org.w3.x2000.x09.xmldsig.DigestValueType digestValue)
{
synchronized (monitor())
{
check_orphaned();
org.w3.x2000.x09.xmldsig.DigestValueType target = null;
target = (org.w3.x2000.x09.xmldsig.DigestValueType)get_store().find_eleme... | [
"public void setDigestValue(byte[] digestValue)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DIGESTVALUE$0, 0);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Scan for all cluster.xml files & merge into a single hazelcast.xml file | @SuppressWarnings("unchecked")
public void beforeBeanDiscovery( @Observes BeforeBeanDiscovery type )
{
try {
configFile = File.createTempFile( "hazelcast", ".xml" );
configFile.deleteOnExit();
System.setProperty( HAZELCAST_CONFIG_LOCATION, configFile.getCanonicalPath(... | [
"private void scanXMLFiles() {\n\t\tFile[] jobBeansFiles = FileLocator.findFiles(BatchFrameworkConstants.SPRING_BATCH_CONFIG);\t\t\t\t\t\n\t\tfor (File jobBeansFile : jobBeansFiles) {\n\t\t\tfor(String jobName: ConfigFileUtils.getJobName(new FileSystemResource(jobBeansFile))) {\n\t\t\t\tthis.jobXMLFile.put(jobName,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getUserHistoryRecordList get the list of history record | public String getUserHistoryRecordList(){
try{
historyRecordList = userHitoryLog.getHistoryRecord((String) ServletActionContext.getContext().getSession().get("user"),sortType);
if (historyRecordList==null){
throw new Exception("get historyRecordlist error.");
}
}catch(Exception e){
log.error(... | [
"java.util.List<hr.client.appuser.CouponCenter.ExchangeRecord> \n getExchangeHistoryListList();",
"public List<History> getLast10ByUser(String user);",
"public List<DataGroupInfoActiveHistoryRecord> getActiveHistoryList()\n {\n return myActiveSetConfig.getActivityHistory();\n }",
"List<Mai... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a landing pad to the checks. A landing pad is the location information for a jump caused by an exception on the system. A table of landing pads is stored for an exception to determine where to jump (search for matching detect to jump to). | public void addLandingPad(String detectTypeName, DetectInfo detectInfo){
if(!landingPads.containsKey(detectTypeName)){
landingPads.put(detectTypeName, detectInfo);
if(!detectTypeName.equals("Always") || (detectTypeName.equals("Always") && detectInfo.getDetectParameter() != null)){
... | [
"@Test\n\tpublic void landingPreventedWhenFull() throws Exception {\n\t\tException e = new Exception();\n\n\t\ttry {\n\t\t\theathrow.landing(tap);\n\t\t\theathrow.landing(ba);\n\t\t} catch (Exception exception) {\n\t\t\te = exception;\n\t\t}\n\n\t\tassertEquals(\"Airport is full\", e.getMessage());\n\n\t\tassertEqu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a mplus_test_data.getdrugdetail table reference | public Getdrugdetail() {
this(DSL.name("getdrugdetail"), null);
} | [
"tbls createtbls();",
"public Getdrugdetail(Name alias) {\n this(alias, GETDRUGDETAIL);\n }",
"public Getdrugdetail(String alias) {\n this(DSL.name(alias), GETDRUGDETAIL);\n }",
"@Test\n public void testCreateTable() {\n final String tableDDL = \"create table emp_new3( \" +\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set as the last element of the processor chain | @Override
public void setToLast(Processor processor) {
if (nextProcessor == null) {
this.nextProcessor = processor;
} else {
this.nextProcessor.setToLast(processor);
}
} | [
"public void last() {\n if (hasAny()) {\n moveTo(size() - 1);\n } else {\n reset();\n }\n }",
"public process get_last() {\n\t\treturn queue.getLast();\n\t}",
"void setLastElement(ListElement lastElement);",
"@Override\r\n public final BlockStep getLastBlockStep() { return laststep;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A root span can be a clientoriginated trace or a server receipt which knows its peer. In these cases, the peer is known and kind establishes the direction. | @Test
public void linksSpansDirectedByKind() {
List<Span> validRootSpans = asList(
span2("a", null, "a", Kind.SERVER, "server", "client", false),
span2("a", null, "a", Kind.CLIENT, "client", "server", false)
.toBuilder().shared(true).build()
);
for (Span span : validRootSpans) {
... | [
"@Test\n public void producerLinksToServer_childSpan() {\n List<Span> trace = asList(\n span2(\"a\", null, \"a\", Kind.PRODUCER, \"producer\", null, false),\n span2(\"a\", \"a\", \"b\", Kind.SERVER, \"server\", null, false)\n );\n\n assertThat(new DependencyLinker().putTrace(trace).link()).conta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that initializes recorder localization | private void initializeRecorderLocalization() {
try {
recorderTab.setText(bundle.getString("recorderTab"));
// Following methods have been commented out because the strings were replaced
// by images
/*
* recorderToggleButtonStartRecording.setText(bundle.getString("recorderRecord")
* ); recorder... | [
"@Override\n protected void init() {\n resourceBundle = ResourceBundle.getBundle(\"org.wso2.carbon.event.output.adaptor.jms.i18n.Resources\", Locale.getDefault());\n }",
"public Localizer() {\n processor = new ComponentProcessor();\n }",
"public static void initTranslator(Locale locale)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check current network type is connected. | public static boolean isConnected(Context context, int netWorkType) {
try {
ConnectivityManager connManager = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo info = connManager.getNetworkInfo(netWorkType);
return info != null && info.isConnected();
} catch (E... | [
"private boolean isConnectedToNetwork() {\n ConnectivityManager cManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = cManager.getActiveNetworkInfo();\n return activeNetworkInfo != null;\n }",
"private int haveN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add the node state to the writer. | private void add(Node node, JDOMXMLWriter writer) {
if (node.hasChildren()) {
writer.add(node.getName());
writeNodes(writer, node.getChildrens());
} else {
writer.add(node.getName(), node.getText());
}
if (node.hasAttribute()) {
... | [
"@Override\n\tpublic void writeCell(XMLStreamWriter myWriter, Cell cell) throws XMLStreamException {\n\t\tmyWriter.writeAttribute(\"state\", Integer.toString(cell.getState()));\n\t}",
"void appendState(PointState newState){\n state |= newState.ordinal;\n }",
"public void writeNode() throws IOException... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the todo with the primary key or throws a NoSuchTodoException if it could not be found. | public Todo findByPrimaryKey(long todoId) throws NoSuchTodoException; | [
"public Todo getTodo(Long todoId) throws TodoNotFoundException {\n return todoRepository.findById(todoId).orElseThrow(() -> new TodoNotFoundException(todoId));\n }",
"public TodoItem getTodoItemById(Long id) throws RecordNotFoundException {\n Optional<TodoItem> todoItem = todoItemRepository.findB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all rows from the promociones table that match the criteria 'Producto_ID_producto = :productoIdProducto'. | public Promociones[] findWhereProductoIdProductoEquals(String productoIdProducto) throws PromocionesDaoException; | [
"public Promociones[] findByProducto(String productoIdProducto) throws PromocionesDaoException;",
"@Override\r\n public ProductosPuntoVenta[] findByProducto(Integer idProducto)\r\n throws ProductosPuntoVentaDaoException {\r\n return findByDynamicSelect(SQL_SELECT + \" WHERE id_producto = ?\",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the bankses before and after the current banks in the ordered set where uuid = &63;. | public static banks[] findByUuid_PrevAndNext(
com.infosys.serviceBuilder.service.persistence.banksPK banksPK,
String uuid, OrderByComparator<banks> orderByComparator)
throws com.infosys.serviceBuilder.exception.NoSuchbanksException {
return getPersistence().findByUuid_PrevAndNext(
banksPK, uuid, orderByCo... | [
"public static List<banks> findByUuid(String uuid, int start, int end) {\n\t\treturn getPersistence().findByUuid(uuid, start, end);\n\t}",
"public static List<banks> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tOrderByComparator<banks> orderByComparator) {\n\n\t\treturn getPersistence().findByUuid(uuid,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XMultiplicativeExpression__Group__0__Impl" $ANTLR start "rule__XMultiplicativeExpression__Group__1" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6401:1: rule__XMultiplicativeExpression__Group__1 : rule__XMultiplicativeExpression__Group__1_... | public final void rule__XMultiplicativeExpression__Group__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:6405:1: ( rule__XMultiplicativeEx... | [
"public final void rule__XMultiplicativeExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:5696:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the algorithm: algStageEarliestStart | public IterativePlanner setAlgStageEarliestStart(StageEarliestStart alg) {
this.algStageEarliestStart = alg;
return this; // To allow concatenation of setAlg() functions
} | [
"private void setEarliestStart(){ \n\tLinkedList<Task> startTasks = new LinkedList<Task>();\n\t\n\tfor(Task u : tasks.values())\n\t if(u.inDegree == 0)\n\t\tstartTasks.add(u);\n\t\n\twhile(!startTasks.isEmpty()){\n\t Task t = startTasks.poll();\n\t int dist = 0;\n\n\t for(Task u : t.dependants){\n\t\tu.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of field 'wrapper'. | public boolean isWrapper(
) {
return this._wrapper;
} | [
"public java.lang.String getWrapper() {\r\n return this.wrapper;\r\n }",
"public boolean getWrapper(\n ) {\n return this._wrapper;\n }",
"public PlayerPluginWrapperType getWrapperType() {\n return wrapperType;\n }",
"public void setWrapper(final java.lang.String wrapper) {\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
create an instance: InstanceDto. Title: InstanceDto | public InstanceDto()
{
super();
} | [
"@PostMapping(\"/exercise-instances\")\n @Timed\n public ResponseEntity<ExerciseInstanceDTO> createExerciseInstance(@Valid @RequestBody ExerciseInstanceDTO exerciseInstanceDTO) throws URISyntaxException {\n log.debug(\"REST request to save ExerciseInstance : {}\", exerciseInstanceDTO);\n if (exe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return max number from the array of integer | public static int max(int[] array){
int max = array[0];
for(int each: array) {
max= Math.max(each, max);
}
return max;
} | [
"private static int max(int[] array) {\n int result = array[0];\n for (int x : array)\n result = Math.max(x, result);\n return result;\n }",
"static int getBiggestInt( int array[] )\n {\n return 0; // TODO\n }",
"public int findMax(int array[]){\n \n max = a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Extract data sets based on a element from the config. A filter might return data from more that one dataset. | private List<Dataset> getDataset(Element filter) {
List<Dataset> dataset_list = new ArrayList<Dataset>();
Dataset container_dataset = null;
String action = filter.getAttributeValue("action");
String name_contains = filter.getAttributeValue("contains");
String name_equals = filter.g... | [
"private List<Dataset> getDatasets(Element filter) throws LASException {\n List<Dataset> container_datasets = new ArrayList<Dataset>();\n String action = filter.getAttributeValue(\"action\");\n\n String name_contains = filter.getAttributeValue(\"contains\");\n String name_equals = filter... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the score of a node. | public Double score (CyNode node) {
Objects.requireNonNull(node, "Node cannot be null");
return nodeScores.get(node);
} | [
"public int scoreLeafNode();",
"IAStarScore<N> getScore(@Nullable N parent, N node);",
"float getScore();",
"long getScore();",
"public double getScore();",
"public Double score (Integer index) {\n Objects.requireNonNull(index, \"Index cannot be null\");\n return score(sortedNodes.get(index)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for the domain name. | public String getDomainName() {
return domainName;
} | [
"public java.lang.String getDomainName() {\r\n return domainName;\r\n }",
"public java.lang.String getDomainName() {\n return domainName;\n }",
"public YangString getDomainNameValue() throws JNCException {\n return (YangString)getValue(\"domain-name\");\n }",
"public String getDo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copy Criteria without Selection. | public static void copyCriteriaNoSelection(CriteriaQuery<?> from, CriteriaQuery<?> to) {
copyCriteriaWithoutSelectionAndOrder(from, to, true);
to.orderBy(from.getOrderList());
} | [
"public static void copyCriteriaNoSelection(CriteriaQuery<?> from, CriteriaQuery<?> to) {\n\n\t// Copy Roots\n\tfor (Root<?> root : from.getRoots()) {\n\t Root<?> dest = to.from(root.getJavaType());\n\t dest.alias(getOrCreateAlias(root));\n\t copyJoins(root, dest);\n\t}\n\n\tto.groupBy(from.getGroupList())... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
print texte debug si condition vraie | private void debugOK() {
if (debug) {
System.out.println(sDebug + " ***OK*** ");
}
sDebug = "";
} | [
"public void KosarajuPrint() {\n long start = System.currentTimeMillis();\n io.println(\"The given statement is \");\n if (kosaraju.checkSatisfiability()) {\n io.println(\"satisfiable.\");\n } else {\n io.println(\"not satisfiable.\");\n }\n io.println... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Gets the prompt index for this entity. | public int getPromptIndex() {
return this.index;
} | [
"public int getPromptID() {\n return promptID;\n }",
"public int getIndex() {\n return -1 + Integer.parseInt(this.command.replaceAll(\"[\\\\D]\", \"\"));\n }",
"public String getPromptId() {\n return promptId;\n }",
"public String getPromptText() {\n return promptText;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicates whether the layer is active based on arbitrary criteria. The method implemented here is a default indicating the layer is active if the current altitude is within the layer's min and max active altitudes. Subclasses able to consider more criteria should override this implementation. | public boolean isLayerActive(DrawContext dc)
{
if (dc == null)
{
String message = Logging.getMessage("nullValue.DrawContextIsNull");
Logging.logger().severe(message);
throw new IllegalStateException(message);
}
if (null == dc.getView())
{
... | [
"@Test\n\tpublic void testCheckLevelRestrictionsActive() {\n\t\tTestHelper.load();\n\t\tassertTrue(Inventory.checkLevelRestrictionsActive(1, 0));\n\t\tassertTrue(Inventory.checkLevelRestrictionsActive(1, 1));\n\t\tassertTrue(Inventory.checkLevelRestrictionsActive(1, 2));\n\t\tassertTrue(Inventory.checkLevelRestrict... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes "_meta" entry from the node's Map. | @SuppressWarnings("rawtypes")
protected void moveMeta() {
if (isMap()) {
meta = ((Map) value).remove(Config.META);
}
} | [
"private void clearMetaInfo()\r\n\t{\r\n\t amiMap.clear();\r\n\t}",
"void removeEntryMeta(ClipboardMetaDTO meta) throws QClipboardException;",
"public void unsetMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(METADATA$0, 0)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To validate the invalid ClientloyeeFirstName by passing the value as trailing space | @Test(groups = {"All"})
public void R2858_TC93150_AltEVV_ClientFirstName_valid_trailing_space() throws InterruptedException, java.text.ParseException, IOException, ParseException, SQLException, ClassNotFoundException
{
// logger = extent.startTest("R2858_TC93150_AltEVV_ClientFirstName_valid_trailing_space");
lo... | [
"boolean validateFirstName(String First_name) {\n\t\treturn true;\n\n\t}",
"protected void validateFirstName(){\n Boolean firstName = Pattern.matches(\"[A-Z][a-z]{2,}\",getFirstName());\n System.out.println(nameResult(firstName));\n }",
"private String validateFirstName(String firstName)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get List from Json Array | public static List<Object> getListFromJsonArray(JSONArray jArray) throws JSONException {
List<Object> returnList = new ArrayList<Object>();
for (int i = 0; i < jArray.length(); i++) {
returnList.add(convertJsonItem(jArray.get(i)));
}
return returnList;
} | [
"List<String> toList(@NonNull JsonArray array) throws Exception;",
"private List<Object> parseList(JSONArray arr) throws JSONException {\n List<Object> result = new ArrayList<>(arr.length());\n for (int i = 0; i < arr.length(); ++i) {\n result.add(parseObject(arr.get(i)));\n }\n return result;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TvShowList= new ArrayList(); Iterate through the favourites and copy them to the TvShowlist | private void copyFavouritesFromDB(List<TvShow> TvShowFavouritesList) {
Iterator<TvShow> TvShowIterator = TvShowFavouritesList.iterator();
while (TvShowIterator.hasNext()) {
// tempTvShow will hold a temporary version of the current favourite before is copied to the list
TvShow te... | [
"public ArrayList<Show> getFavShows() {\n /*IMPLEMENT CHECK FOR FAVORITE*/\n ArrayList<Show> result = new ArrayList<Show>();\n Iterator iterator = showList.entrySet().iterator();\n while (iterator.hasNext()) {\n Map.Entry pair = (Map.Entry) iterator.next();\n if(((S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For you to do: Write a program to take user name, age and mobile number First Output: "Enter your name" Second Output: "Enter your mobile number" (please use xxxxxxxxxx format) Third Output: "Enter your age" Example Output: Enter your name Enter your mobile number Enter your age Your name is Weqas, your age is 45 and y... | public static void main (String[] args){
Scanner input=new Scanner(System.in);
System.out.println("Enter your name");
String name=input.nextLine();
System.out.println("Enter your mobile number");
String mobileNumber=input.nextLine();
System.out.println("Enter your age");
int age=input.nextInt();
Syst... | [
"public static void main(String[] args) {\n\t\t\n\tScanner input=new Scanner(System.in);\n\tint age;\n\tString name;\n\t\n\tSystem.out.println(\"Please enter your name.\");\n\tname=input.nextLine();\n\tSystem.out.println(\"Please enter your age.\");\n\tage=input.nextInt();\n\t\n\tif (age>=1 && age <=3) {\n\t\tSyste... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the parent of given item. | public String getParent(String anItem) { return null; } | [
"public TreeNode parent(T item){\n if(root == null || root.val.equals(item))\n return null;\n\n return parent(root, item);\n }",
"@Override\n public Object getParent(Object itemId) {\n return ((Container.Hierarchical) items).getParent(itemId);\n }",
"public abstract T ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
verify a nonempty task list can be cleared | @Test
public void clearTask() {
TestTask[] currentTaskList = tt.getTypicalTasks();
TestTask[] filteredTaskList = TestUtil.getFilteredTestTasks(currentTaskList);
assertTrue(taskListPanel.isListMatching(filteredTaskList));
assertClearTaskCommandSuccess();
//verify other comman... | [
"@Test\r\n\tvoid testClear() {\r\n\t\tSortedList list = new SortedList(\"List\");\r\n\t\tlist.insert(toDoItem1);\r\n\t\tlist.insert(toDoItem2);\r\n\t\tlist.insert(toDoItem3);\r\n\t\tlist.insert(toDoItem4);\r\n\r\n\t\tlist.clear();\r\n\t\tif (list.getSize() != 0 || list.getHead() != null || list.getTail() != null) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value associated with the column: TCINTMSUPPLIERNAME | public java.lang.String getTcintmsuppliername()
{
return _tcintmsuppliername;
} | [
"public void setTcintmsuppliername(java.lang.String _tcintmsuppliername)\r\n {\r\n this._tcintmsuppliername = _tcintmsuppliername;\r\n }",
"public java.lang.Integer getTcintmsupplierid()\r\n {\r\n return _tcintmsupplierid;\r\n }",
"java.lang.String getTu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Restores a backed up secret to a vault. (asynchronously) Restores a backed up secret, and all its versions, to a vault. This operation requires the secrets/restore permission. | public com.squareup.okhttp.Call restoreSecretAsync(SecretRestoreParameters parameters, String apiVersion, final ApiCallback<SecretBundle> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = ... | [
"public SecretBundle restoreSecret(SecretRestoreParameters parameters, String apiVersion) throws ApiException {\n ApiResponse<SecretBundle> resp = restoreSecretWithHttpInfo(parameters, apiVersion);\n return resp.getData();\n }",
"@ServiceMethod(returns = ReturnType.SINGLE)\n public Mono<Void> ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Tests with queries which cannot be executed with directSQL, because of type mismatch. The type of the num column is string, but the parameters used in the where clause are numbers. After falling back to ORM, the number of partitions can be fetched by the ObjectStore.getNumPartitionsViaOrmFilter method. | @Test
public void testQueryWithFallbackToORM1() throws Exception {
String queryString = "select value from %s where num!=25 and num!=35 and num!=40";
executeQuery(queryString, "value2", "value6", "value10");
} | [
"@Test\n public void testSimpleQueryWithDirectSqlTooManyPartitions() throws Exception {\n String queryString = \"select value from %s where ds>'2008-04-20'\";\n executeQueryExceedPartitionLimit(queryString, 8);\n }",
"int getNumPartitions(String type) throws PIRException;",
"Integer findGene... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check if the player has possible card to play regarding to previous card has being played | public boolean havePossibleCard(Card previous) {
for (Card card : cards)
if (card.isCompatible(previous) || card.getNum().equals("B"))
return true;
return false;
} | [
"private boolean isPlayerAllowedToPlayAgain(final Player player) {\n final CardSet cardSet = playedCards.get(player);\n if (cardSet == null) {\n return true;\n }\n if (cardSet.containsCard(Figure.FOOL)) {\n return true;\n }\n return cardSet.size() >= 1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the sex of this person. | @Override
public void setSex(java.lang.String sex) {
_person.setSex(sex);
} | [
"public void setSex(Sex sex) {\n this.sex = sex;\n }",
"public void setSex(String sex) {\n this.sex = sex;\n }",
"public void setSex(java.lang.String sex)\n {\n this._sex = sex;\n }",
"public void setSex(String value) {\n setAttributeInternal(SEX, value);\n }",
"@O... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Listener for receiving activity/service lifecycle events. | public interface LifecycleEventListener {
/**
* Called when host (activity/service) receives resume event (e.g. {@link Activity#onResume}
*/
void onHostResume();
/**
* Called when host (activity/service) receives pause event (e.g. {@link Activity#onPause}
*/
void onHostPause();
/**
* Called ... | [
"void registerApplicationLifeCycleEventListener(\n ApplicationLifeCycleEventListener listener);",
"public interface AppLifecycleListener {\n /** Called after critical loading has completed but before Feed is rendered. */\n void onEnterForeground();\n\n /** Called when the app is backgrounded, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Registers context chain into cluster singleton service. | void registerServices(ClusterSingletonServiceProvider clusterSingletonServiceProvider); | [
"@Test\n\tpublic void bootstrap() {\n\t\t\n\t\tMemoryNodeStore mount = new MemoryNodeStore();\n\t\tMemoryNodeStore global = new MemoryNodeStore();\n\t\t\n\t\tMountInfoProvider mip = Mounts.newBuilder().readOnlyMount(\"libs\", \"/libs\", \"/apps\").build();\n\t\t\n\t\tctx.registerService(MountInfoProvider.class, mip... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create the Questions with an existing ID | @Test
@Transactional
void createQuestionsWithExistingId() throws Exception {
questions.setId(1L);
QuestionsDTO questionsDTO = questionsMapper.toDto(questions);
int databaseSizeBeforeCreate = questionsRepository.findAll().size();
// An entity with an existing ID cannot be create... | [
"public com.vportal.portlet.vfaq.model.FAQQuestion createFAQQuestion(long id);",
"public void createExistingQuestion(final String questionId) {\n // get Data from Parse\n ParseQuery<ParseObject> query = ParseQuery.getQuery(PARSE_CLASS);\n query.getInBackground(questionId, new GetCallback<Pars... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the first todo in the ordered set where todoDateTime = &63;. | public Todo fetchByTodoDateTime_First(
Date todoDateTime,
com.liferay.portal.kernel.util.OrderByComparator<Todo>
orderByComparator); | [
"public Todo findByTodoDateTime_First(\n\t\t\tDate todoDateTime,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchTodoException;",
"public java.util.List<Todo> findByTodoDateTime(Date todoDateTime);",
"public Todo fetchByTodoId_First(\n\t\tlong todoId,\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the current sort order list. | public List<SortOrder> getSortOrder() {
return Collections.unmodifiableList(sortOrder);
} | [
"public String getOrderList() {\n\t\treturn orderList.get();\n\t}",
"public List getOrder() {\n return order;\n }",
"public List<Menu> getOrderList() {\n\t\treturn orderList;\n\t}",
"public ArrayList<Order> getOrderList(){\r\n\t\treturn this.orderList;\r\n\t}",
"public Order[] getOrderList() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the nameplate text and repositions it, if no slot is hovered the nameplate will be hidden. | protected void updateNameplate() {
if (getSlotHovered() != null && !getItemHovered().isEmpty() && getHolding().isEmpty()) {
nameplate.getTextNode().setText(getItemHovered().getName());
Vector2i mpos = getLocalMousePosition();
nameplate.setLocalPosition(mpos.x + namepl... | [
"private void updateText() {\n\t\tspecialSymbol.setText(game.displaySpecialTileSlot());\n\n\t}",
"private void setLandscapeName(){\n \t\tLog.i(TAG, \"setLandscapeName() called\");\n \t\tnamelandtext.setText(provide.getCurItem().getName());\n \t}",
"protected void updateAbstract() {\r\n Rectangle re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This class is interface of Group service. | public interface IGroupService {
/**
* This method is used for getting list Groups.
*
* @Description: .
* @author: NNDuy
* @create_date: May 28, 2020
* @version: 1.0
* @modifer: NNDuy
* @modifer_date: May 28, 2020
* @return
* @throws SQLException
* @throws IOException
* @throws ... | [
"public interface IGroupService {\n /**\n * Add group group.\n *\n * @param group the group\n * @return the group\n */\n public Group addGroup(Group group);\n\n /**\n * Edit group group.\n *\n * @param group the group\n * @return the group\n */\n public Group edit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update originalTable with new columns information found in the updatedTable | public PhysicalTable updateTable(PhysicalTable originalTable, PhysicalTable updatedTable) {
EList<PhysicalColumn> originalColumns = originalTable.getColumns();
EList<PhysicalColumn> updatedColumns = updatedTable.getColumns();
// 1 - Find new columns not present in the originalTable
List<PhysicalColumn> co... | [
"public void updateColumnsFromTap(String fullTableName, Map<String, ColumnConfig> configs);",
"private void updateTable() {\n transformTableModel.setData(world.getEvents(), currentFrame);\n }",
"private void updateTables() {\n\t\t\tcatalogTableModel.updateData();\n\t\t\tscheduleTableModel.updateData()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of zeroSpanMB | public zeroSpanMB() {
} | [
"Span create(Span span);",
"Span createSpan();",
"private ByteBuffer zero() {\n memory.clear();\n for (int i = 0; i < memory.limit(); i++) {\n memory.put(i, (byte) 0);\n }\n return memory;\n }",
"public ByteBuffer() {\n this(DEFAULT_EXPAND_FACTOR, DEFAULT_INITI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validates the validateQuestionaireHeaderAuthorAssignedAuthorAuthoringDeviceManufacturerModelName constraint of 'Questionaire Header'. | public boolean validateQuestionaireHeader_validateQuestionaireHeaderAuthorAssignedAuthorAuthoringDeviceManufacturerModelName(
QuestionaireHeader questionaireHeader, DiagnosticChain diagnostics, Map<Object, Object> context) {
return questionaireHeader.validateQuestionaireHeaderAuthorAssignedAuthorAuthoringDeviceMan... | [
"public boolean validateQuestionaireHeader_validateQuestionaireHeaderAuthorAssignedAuthorAuthoringDeviceSoftwareName(\n\t\t\tQuestionaireHeader questionaireHeader, DiagnosticChain diagnostics, Map<Object, Object> context) {\n\t\treturn questionaireHeader.validateQuestionaireHeaderAuthorAssignedAuthorAuthoringDevice... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ActivationConstraints__Group__5__Impl" $ANTLR start "rule__ActivationConstraints__Group__6" InternalComponentDefinition.g:4161:1: rule__ActivationConstraints__Group__6 : rule__ActivationConstraints__Group__6__Impl rule__ActivationConstraints__Group__7 ; | public final void rule__ActivationConstraints__Group__6() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalComponentDefinition.g:4165:1: ( rule__ActivationConstraints__Group__6__Impl rule__ActivationConstraints__Group__7 )
// InternalCo... | [
"public final void rule__ActivationConstraints__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalComponentDefinition.g:4138:1: ( rule__ActivationConstraints__Group__5__Impl rule__ActivationConstraints__Group__6 )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for the language file service that receives a loc file parser instance | public LanguageFileService(LOCFileParser locFileParser, FileFilter fileFilter) {
super();
this.locFileParser = locFileParser;
this.fileFilter = fileFilter;
} | [
"public FileParser() {\r\n\t\t\r\n\t}",
"public LdifFile()\n {\n }",
"public ParserFileSystem() {\n }",
"public LocalFileService() {\n }",
"public ParserCPL(){\n }",
"public TextAnalyzer (String analyzeFileLoc)\n\t{\n\t\tsetAnalyzeFile(analyzeFileLoc);\n\t}",
"public Interpreter(String file... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test execute unknown command from cli in local mode. | @Test
public void testExecuteUnknownCommandFromCliLocal() throws UnsupportedEncodingException, TException {
BaseCliThriftClient cli = new BaseCliThriftClient();
int result = cli.processLine("fakeCommand");
Assert.assertEquals(result, 0);
String output = systemOut.toString("UTF-8");
... | [
"@Test\n public void testExecuteUnknownCommand() throws TException {\n cliConnect();\n CommandResult commandResult = cliSession.getClient().executeCommand(\"fakeCommand\");\n Assert.assertNotNull(commandResult);\n Assert.assertEquals(commandResult.getStatus(), OK);\n Assert.ass... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creation of a new host name change event. | public HostNameEvent( HostModel host, String name )
{
super( host );
m_name = name;
} | [
"public void setHostName(java.lang.CharSequence value) {\n this.hostName = value;\n }",
"protected void nameChanged ()\n {\n\tsuper.nameChanged ();\n\tsetDescription (makeDescription (getName (), getTargetSystem ()));\n }",
"private void respondToNameChange () {\n String text = nameField.getText();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called at the start of grid traversal. Override to perform traversal setup, default is NOOP. | public void traverseStart(GridDatatype gridDatatype) {} | [
"public void preOrderTraversal() {\n beginAnimation();\n treePreOrderTraversal(root);\n stopAnimation();\n\n }",
"protected void runBeforeIteration() {}",
"public void preorderTraversal()\r\n {\r\n preorder(root);\r\n }",
"public void setAsStartingPoint() {\n\t\tnodeStatu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'JZ Track'. | JZTrack createJZTrack(); | [
"public static Track createTrack() {\n\n Track track = new Track();\n\n // Morning\n Session morning = new Session();\n morning.setBeginTime(LocalTime.of(9,0));\n morning.setFinishTime(LocalTime.of(12,0));\n track.addSession(morning);\n\n // Lunch\n Session lu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Runtime: 2 ms, faster than 78.74% of Java online submissions for Intersection of Three Sorted Arrays. Memory Usage: 39.1 MB, less than 100.00% of Java online submissions for Intersection of Three Sorted Arrays. improved version | public List<Integer> arraysIntersectionV2(int[] arr1, int[] arr2, int[] arr3) {
List<Integer> result = new ArrayList<>();
int i = 0;
int j = 0;
int k = 0;
while (i < arr1.length && j < arr2.length && k < arr3.length) {
if (arr1[i] == arr2[j] && arr2[j] == arr3[k]) {
result.add(arr1[i])... | [
"public List<Integer> arraysIntersection(int[] arr1, int[] arr2, int[] arr3) {\n\n Map<Integer, Integer> map = new HashMap<>();\n for (int n : arr1) {\n map.put(n, map.getOrDefault(n, 0) + 1);\n }\n for (int n : arr2) {\n map.put(n, map.getOrDefault(n, 0) + 1);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return payment method by paymet UUID | public PaymentEntity getMethodbyId(final String uuid){
try{
return entityManager.createNamedQuery("getMethodbyId", PaymentEntity.class)
.setParameter("paymentUUID", uuid).getSingleResult();
}catch(NoResultException nre){
return null;
}
} | [
"PaymentMethod getPaymentMethod();",
"io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod();",
"String getDataPaymentMethod(String paymentMethod);",
"@org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.PaymentMethod getPaymentMethod();",
"public String getPayment... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo que genera una sentencia para entrar a la BD | public void crearSentencia()
{
try {
stm = connect.createStatement();
} catch (SQLException e) {
e.printStackTrace();
}
} | [
"public void crearPrescripcionMueble(PrescripcionMueble receta) {\n try {\n\n PreparedStatement statement = Conexion.obtenerConexion().prepareStatement(\"INSERT INTO prescripcion_mueble \"\n + \"(tipo_pieza, modelo_mueble, cantidad_pieza) VALUES (?,?,?);\");\n stateme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parses humanreadable string representation of data object. | public static DataObject parseFromString (String string)
{
if (string == null)
throw new IllegalArgumentException ("String is null");
DataObjectParser parser =
new DataObjectParser (new StringReader (string));
try
{
return parser... | [
"public Record (String data) throws Exception {\n parser(data);\n }",
"private static DataSerializable objectFromString(String string) throws IOException, NoSuchCodingTypeException, InvalidInputException {\n \tBase64 ab = new Base64();\n \tbyte[] data = ab.decodeStringToByteArray(string);\n \tD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
MP: realtime simulations MP: Constructor, takes linked list of all simulations | public Ranking_Generator( LinkedList< Simulation > sims )
{
nSimulations = new LinkedList< Simulation >();
rSimulations = new LinkedList< Simulation >();
for( Simulation s: sims )
{
if( s.getSimulationType() == Sim_Type.Realtime )
rSimulations.add(s);
else
nSimulations.add( s );
}
} | [
"listOfSimulations createlistOfSimulations();",
"public Polynom() {\n\t\tlist_monom = new ArrayList<Monom>();\n\t\tlist_monom.add(new Monom(\"0\"));\n\t\tcomp = new Monom_Comperator();\t\t\n\t}",
"public Simulator( )\r\n\t{\r\n\t\tif (SCHEDULING_ALGORITHM.equals(\"STCF\")) {\r\n\t\t\tTIME_QUANTUM = 1;\r\n\t\t}\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Class name conflict resolver. | public interface ClassNameConflictResolver {
/**
* Changes the JClass' internal class name, as a result of an XPATH
* expression uniquely identifying an XML artefact within an XML schema.
*
* @param jClass
* The {@link JClass} instance whose local name should be
* ... | [
"public interface IConflictResolutionStrategyType {\n\n}",
"@Override\r\n void visitClassDefnNameNode(List<SourceModification> identifierList, ParseTreeNode classNameNode) {\r\n classNameNode.verifyType(CALTreeParserTokenTypes.CONS_ID);\r\n String className = classNameNode.getText();\r\n \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets (as xml) the "HorizontalResolution" element | void xsetHorizontalResolution(com.microsoft.schemas.office.x2006.digsig.STPositiveInteger horizontalResolution); | [
"void setHorizontalResolution(int horizontalResolution);",
"void setHResolution(short resolution);",
"int getHorizontalResolution();",
"SoGallery setResolution(String resolution);",
"void setVResolution(short resolution);",
"void setVerticalResolution(int verticalResolution);",
"com.microsoft.schemas.of... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ When autonomous is initialized, start compressor loop and run the init function in the Autonomous class | public void autonomousInit() {
compressor.setClosedLoopControl(true);
Autonomous.init(robot);
} | [
"public void autonomousInit() {\n\t\tSystem.out.println(\"Auto Init\");\n//\t\tint autonStep = 0;\t//step that autonomous is executing\n\t\tclaw = new Claw();\n\t\televator = new Elevator();\n//\t\televator.elevator();\n\t\tdecode = new Decode();\n//\t\tdecode.decode();\n\t}",
"public void teleopInit() {\n\t\tco... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
list objects of kind ClusterOperator | @HTTP(
method = "GET",
path = "/apis/config.openshift.io/v1/clusteroperators"
)
@Headers({
"Accept: */*"
})
KubernetesListCall<ClusterOperatorList, ClusterOperator> listClusterOperator(
@QueryMap ListClusterOperator queryParameters); | [
"@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/clusteroperators\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<ClusterOperatorList, ClusterOperator> listClusterOperator();",
"public SME_Cluster[] getClusters();",
"public List<UiClusterMember> getAllInstances() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the latest event from the given room (to update summary for example) | public Event getLatestEvent(String roomId) {
Event event = null;
if (null != roomId) {
synchronized (mRoomEvents) {
LinkedHashMap<String, Event> events = mRoomEvents.get(roomId);
if (events != null) {
Iterator<Event> it = events.values().... | [
"public Room getEventRoom(String id){\n return this.eventMap.get(getEvent(id)).getRoom();\n }",
"public Room getLastRoom() // from my understanding this pops the last entry and replaces it with the one before\n { // might need a if test to prevent a null return and say there are no rooms previous.\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes a tree whose root node contains rootData and whose child subtrees are leftTree, middleTree, and rightTree | public TernaryTree(T rootData, TernaryTree<T> leftTree, TernaryTree<T> middleTree, TernaryTree<T> rightTree)
{
privateSetTree(rootData, leftTree, middleTree, rightTree);
} | [
"private void initTree(E data, TernaryTree<E> leftTree, TernaryTree<E> middleTree, TernaryTree<E> rightTree) {\n /**\n * We have to create a new node here for the case where one of the input trees\n * is this. If we simply set node = new TernaryNode..., and one of the input\n * trees is this, then we... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ServiceManager sets the service context thread local when dispatch is called. this method will return null or the service context | @CheckForNull
public static ServiceContext get() {
return THREAD_LOCAL_INSTANCE.get();
} | [
"protected AbstractApplicationContext getServicesContext() {\r\n\t\treturn this.servicesContext;\r\n\t}",
"public ServiceContext getServiceContext()\n {\n return m_contextMain;\n }",
"public ServiceContext ensureServiceContext()\n {\n ServiceContext ctx = m_contextMain;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Drawer izbornik ce se zatvoriti ako pritisnemo "Back" tipku | @Override
// Poziva se kad korisnik pritisne Back tipku
public void onBackPressed() {
DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
if (drawer.isDrawerOpen(GravityCompat.START)) {
drawer.closeDrawer(GravityCompat.START);
} else {
super.onB... | [
"void onBackButtonClicked();",
"public void goBack() {\r\n currentScreen.goBack();\r\n }",
"@Override\n public void onBackPressed(){\n if (mNavDrawer.isDrawerOpen(GravityCompat.START)){\n mNavDrawer.closeDrawer(GravityCompat.START);\n }\n else {\n super.onBackPr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Access to the encoded data | public byte[] getEncodedData() {
return this.encodedData;
} | [
"String getDataEncoding();",
"java.lang.String getData();",
"byte[] getData();",
"public String getDecodedContent();",
"com.google.protobuf.ByteString getData();",
"public String getData() {\n \n String str = new String();\n int aux;\n\n for(int i = 0; i < this.buffer.size(); i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a shallow clone of the card. Shallow means all values are present, but no views. This is useful for saving/restoring in the case of configuration changes, like screen rotation. | public Card createShallowClone() {
Card cloneCard = new Card();
// Outer card values
cloneCard.mTitle = mTitle;
cloneCard.mDescription = mDescription;
cloneCard.mTag = mTag;
cloneCard.mLayoutId = mLayoutId;
cloneCard.mCardState = mCardState;
// Progress
... | [
"public Card makeCopy(){\n return new Card(vimage);\n }",
"public Object clone(){ \r\n\t\tBaseballCard cloned = new BaseballCard();\r\n\t\tcloned.name = this.getName();\r\n\t\tcloned.manufacturer=this.getManufacturer();\r\n\t\tcloned.year = this.getYear();\r\n\t\tcloned.price = this.getPrice();\r\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |