query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Converts rrule from VCal to ICal | String RRule_VCalToICal(String rrule) {
if(rrule == null)
return null;
if (rrule.toUpperCase().indexOf("FREQ=") >= 0) {
// already is ical
return rrule;
}
Log.d(TAG, "RRule_VCalToICal: "+rrule);
String array[] = new String[]{};
StringBuffer result = new StringBuffer("F... | [
"public void convertToRules(ClusRun cr, ClusModelInfo model) throws ClusException, IOException {\n\t\tClusNode tree_root = (ClusNode)model.getModel();\n\t\tClusRulesFromTree rft = new ClusRulesFromTree(true, getSettings().rulesFromTree());\n\t\tClusRuleSet rule_set = null;\n\t\tboolean compDis = getSettings().compu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true is email exists, excluding provided user name, otherwise false | @Override
public boolean isUserEmailExists(String email, String exludeUserName) {
Map params = new HashMap<String, Object>();
params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_EMAIL_EXCLUDE_USERNAME);
params.put(User.PARAM_EMAIL, email);
params.put(User.PARAM_USERNAME, ... | [
"public boolean existEmail(User user);",
"boolean isEmailExist(String email);",
"Boolean existsByEmail(String email);",
"public boolean checkUserNameAndEmail(String userName, String email) {\n return getUserByUserName(userName) == null && getUserByEmail(email) == null;\n //That's All! done!! Enj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the resourceVersion value. | public String resourceVersion() {
return this.resourceVersion;
} | [
"public String getResourceVersion() {\r\n\t\treturn getTextValue(this.resourceVersionText);\r\n\t}",
"public Long getResourceVersion() {\n return this.resourceVersion;\n }",
"public String getVersionValue()\r\n {\r\n return getSemanticObject().getProperty(swb_versionValue);\r\n }",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Action listener , aggiunge la foto | @Override
public void actionPerformed(ActionEvent e)
{
path = getLinkOfFoto();
if(path.equals(""))
return;
actualCat.addFoto(path,actualCat.pathToImage(path));
redraw(actualCat, panel);
} | [
"@FXML\n private void evtBtFoto(ActionEvent event) {\n FileChooser fc = new FileChooser(); //abrir janela\n\n //filtros\n FileChooser.ExtensionFilter jpgFilter = new FileChooser.ExtensionFilter(\"Arquivo Imagem(*.JPG)\", \"*.JPG\");\n\n fc.getExtensionFilters().addAll(jpgFilter); //ad... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Strips a given identifier to a profiling identifier. | public String stripToProfilingIdentifier(String identifier); | [
"void discardProfile( String profileId );",
"protected String trimID(String id)\r\n\t{\r\n\t\tString trimmed = id.replaceFirst(\"^(.+)\\\\..+\", \"$1\");\r\n\t\treturn trimmed;\r\n\t}",
"private static String forceIdentifier(String id) {\r\n\tif (id.startsWith(\"'\")) {\r\n\t return id.substring(1, id.length... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Web service endpoint for handling event registration. | @WebService
public interface HandlingEventServiceEndpoint {
/**
* Register an cargo handling event.
*
* @param completionTime time when event occured, for example a the loading of cargo was completed
* @param trackingId tracking id of the cargo
* @param carrierMovementId carrier move... | [
"void register(EventHandler<? extends EventsApiPayload<?>> handler);",
"@WebService\npublic interface HandlingEventServiceEndpoint\n{\n\n /**\n * Register an cargo handling event.\n *\n * @param completionTime time when event occured, for example a the loading of cargo was completed\n * @par... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
!be notified the GameCharacter object removes updater /! \param _sender the object calls this method \param _updater the updater object | void OnRemoveGameCharacterUpdater(GameCharacter _sender,GameCharacterUpdater _updater); | [
"protected void NotifyRemoveGameCharacterUpdater(GameCharacterUpdater _updater) {\n\t\tfor(Listener i : listeners ) {\n\t\t\ti.OnRemoveGameCharacterUpdater(this, _updater);\n\t\t}\n\t}",
"public boolean RemoveGameCharacterUpdater(GameCharacterUpdater _updater) {\n\t\tif(_updater==null)return false;\n\t\tboolean r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Email received by a sender when connection is approved. | private void sendApprovedEmail(ConnectionVO cvo, CampaignMessageSender emailer, RezDoxNotifier notifyUtil) {
Map<String, Object> dataMap = new HashMap<>();
Map<String, String> emailMap = new HashMap<>();
// Pass the email map for the user we want to send the email/notification to
addUserToMap(cvo.getSenderMemb... | [
"private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }",
"public void replyEmail1(){\n\t\tMap<String, String> receivers = new HashMap<String, String>();\n\t\t//receivers.put(\"mike@mail.com\", \"To\");\n\t\t// TODO: stop evert hierin\n\t\tString afzender = \"vincent@mail.com\";\n\t\t// TODO: labels uit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Shuffle the array a in place in linear time | private int[] shuffle(int[] a)
{
for(int i = 0; i < a.length; i++)
{
int ri = rn.nextInt(a.length);
int temp = a[i];
a[i] = a[ri];
a[ri] = temp;
}
return a;
} | [
"private static void shuffleArray(final int[] a) {\n for (int i = 1; i < a.length; i++) {\n int j = random.nextInt(i);\n int temp = a[i];\n a[i] = a[j];\n a[j] = temp;\n }\n }",
"private static void shuffle(Comparable[] a) {\n int N = a.length;\n for (int i = 0; i < N; i++... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ HikariCP docs: MysqlDataSource is known to be broken, use jdbcUrl configuration instead. Note that you do not need this property if you are using jdbcUrl for "oldschool" DriverManagerbased JDBC driver configuration. Default: none | @Bean(name="dataSource", destroyMethod="close")
public HikariDataSource dataSource(){
HikariConfig config = new HikariConfig();
// config.setDriverClassName("com.mysql.jdbc.Driver"); //"com.mysql.cj.jdbc.Driver"
config.setDataSourceClassName("com.microsoft.sqlserver.jdbc.SQLServerDataSource");
//config.... | [
"public String getJdbcURL();",
"public void setJdbcUrl(String jdbcUrl)\r\n {\r\n this.jdbcUrl = jdbcUrl;\r\n }",
"public String getJdbcUrl()\r\n {\r\n return jdbcUrl;\r\n }",
"@Bean(name = \"oracleDataSourceQA\")\n public DataSource dataSource() {\n\n HikariConfig hikariConfig = new Hikari... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end of sara driving, Keith driving now compute (a^b mod n) | private static int fastExponentiation(long a, int b, long n){
long c = 1;
// get binary rep of b
ArrayList<Boolean> binaryB = new ArrayList<Boolean>();
// fill binaryB
for(int mask = 0x1; mask <= Integer.highestOneBit(b); mask <<= 1){
binaryB.add((mask & b) != 0);
}
for(int i = binaryB.siz... | [
"private static int modExp(int a, int b, int n) {\n\n // get a char array of the bits in b\n char[] k = (Integer.toBinaryString(b)).toCharArray();\n\n // initialize variables\n int c = 0, f = 1;\n // loop over every bit in k\n for (int i = 0; i < k.length; i ++) {\n\n // for every bit, i.e. i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method getWindSpeed executes an API request to obtain wind speed data. | @Override
@Cacheable("darkSkyWindSpeed")
public WeatherDataDto getWindSpeed(@NonNull String city, @NonNull String countryCode) {
ResponseEntity<String> response = getWeather(city, countryCode);
if (response.getStatusCode() == HttpStatus.OK) {
JSONObject jsonObject = new JSONObject(re... | [
"public String getWindSpeed() {\n\t\treturn windSpeed;\n\t}",
"public int getWindSpeed(){\n return windSpeed;\n }",
"public void setWindSpeed(Double windSpeed) {\n this.windSpeed = windSpeed;\n }",
"public Double getTrueWindSpeed() {\n return trueWindSpeed;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if (debug) if (index=size) checkIndex(index); return elements[index(index)]; manually inlined: | @Override
public double getQuick(int index) {
return elements[offset + offsets[zero + index * stride]];
} | [
"public Element get(int index) {\n return null; // placeholder so the code compliles\n }",
"private E getElement(int index) {\n if (index >= contents.size()) {\n return null;\n } else {\n return contents.get(index);\n }\n }",
"public DomainElement elementFo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle a meta page. | public void handleMeta () {
status = "Handling meta page";
MetaHandlerHandler mhh = new MetaHandlerHandler ();
try {
mhh.handleMeta (this, request, tlh.getProxy (), tlh.getClient ());
} catch (IOException ex) {
logAndClose (null);
}
} | [
"public void setMeta(String meta) {\n this.meta = meta;\n }",
"public void addPageMeta(PageMeta pageMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException {\n pageMeta.addMetadata(\"title\").addContent(T_title);\n pageMeta.addTrailLink(contextP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method checks whether is the caret behind the hashmark of the last line or not. | private boolean isCaretWhereItShouldBe() {
String split[] = getText().split("\n");
int lastRowLength = split[split.length - 1].length();
int totalLength = getDocument().getLength();
if (getCaretPosition() < totalLength - lastRowLength + shell.getConsolePrefix().length()) {
r... | [
"private void checkBackspace(VerifyEvent event, int caretOffset) {\r\n String line = getLineWithoutRCEPROMPT(currentLine);\r\n if (caretLinePosition < caretOffset && !line.isEmpty()) {\r\n event.doit = true;\r\n } else {\r\n event.doit = false;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Invoked just after updating a RoomstatusBean record in the database. | public void afterUpdate(RoomstatusBean pObject) throws SQLException; | [
"public void beforeUpdate(RoomstatusBean pObject) throws SQLException;",
"public void afterInsert(RoomstatusBean pObject) throws SQLException;",
"void updateRoomStatus(long roomId, int status);",
"void updateRoomStatus(String username, long roomId, int status);",
"void documentModifyStatusUpdated(SingleDocu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Increments the age of every guppy in the pool. | public int incrementAges() {
int deadGuppyCount = 0;
Iterator<Guppy> it = guppiesInPool.iterator();
while (it.hasNext()) {
Guppy currentGuppy = it.next();
currentGuppy.incrementAge();
if (!currentGuppy.getIsAlive()) {
deadGuppyCount++;
... | [
"public int incrementAges() {\n Iterator<Guppy> guppyIterator = guppiesInPool.iterator();\n int numDiedOfOldAge = 0;\n while (guppyIterator.hasNext()) {\n Guppy guppy = guppyIterator.next();\n if (guppy.getIsAlive()) {\n guppy.incrementAge();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .speech.multilang.SemanticLangidParams semantic_langid_params = 3; | @java.lang.Override
public speech.multilang.Params.SemanticLangidParams getSemanticLangidParams() {
return semanticLangidParams_ == null ? speech.multilang.Params.SemanticLangidParams.getDefaultInstance() : semanticLangidParams_;
} | [
"speech.multilang.Params.SemanticLangidParams getSemanticLangidParams();",
"speech.multilang.Params.SemanticLangidParamsOrBuilder getSemanticLangidParamsOrBuilder();",
"public speech.multilang.Params.SemanticLangidParams getSemanticLangidParams() {\n if (semanticLangidParamsBuilder_ == null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a MAC key component | byte[] generateMACKeyComponent() throws NoSuchAlgorithmException; | [
"@RestrictedApi(\n explanation = \"Accessing parts of keys can produce unexpected incompatibilities\",\n link = \"https://developers.google.com/tink/design/access_control#accessing_partial_keys\",\n allowedOnPath = \".*Test\\\\.java\",\n allowlistAnnotations = {AccessesPartialKey.class})\n publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
removeUpload: Removes the given upload (by id) from the persistence. The id of the upload can not be UNSET_ID, but the other fields do not matter. Exception Handling: Any SqlException or DBConnectionException should be wrapped in a UploadPersistenceException. Implementation: Open a database connection. Execute the uplo... | public void removeUpload(Upload upload) throws UploadPersistenceException {
updateUpload(upload);
} | [
"public void removeUpload(Upload upload) throws UploadPersistenceException {\n LOGGER.log(Level.INFO, new LogMessage(\"Upload\", getIdFromEntity(upload), null, \"Remove Upload.\"));\n\n Helper.assertObjectNotNull(upload, \"upload\", LOGGER);\n Helper.assertIdNotUnset(upload.getId(), \"upload id... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Clones currently selected question from the question table into the create fields | public void cloneQuestion(ActionEvent event)
{
Question questionClone = ((Question) QuestionTable.getSelectionModel().getSelectedItem());
DescriptionText.setText(questionClone.Description);
TypeText.setValue(questionClone.QuestionType);
AnswerText.setText(questionClone.CorrectAnswer);
... | [
"private void creatingNewQuestion() {\r\n AbstractStatement<?> s;\r\n ListQuestions lq = new ListQuestions(ThemesController.getThemeSelected());\r\n switch ((String) typeQuestion.getValue()) {\r\n case \"TrueFalse\":\r\n // just to be sure the answer corresponds to the... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return portfolio state as List of IStock at present. | List<IStock> getPortfolioState(); | [
"List<IStock> getPortfolioStateByDate(LocalDate date);",
"public List<State> getStateList();",
"List<Integer> getState()\n\t{\n\t\treturn state;\n\t}",
"@Override\n public List<List<Integer>> getStateInfo() {\n List<List<Integer>> currStateConfig = getVisualInfoFromPieces(STATE_INFO_IDENTIFIER);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Locates the payload in a message | private static MbElement locatePayload(MbMessage msg) throws MbException {
MbElement elm = msg.getRootElement().getFirstElementByPath("/MRM");
return elm;
} | [
"java.lang.String getPayload();",
"protected abstract Object getPayload(I azureMessage);",
"void parsePayload(){\n byte[] idBytes = new byte[4];\n int i = 0;\n int index = 0;\n for(; i < 4; i++){\n idBytes[index] = this.messagePayload[i];\n index++;\n }\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reset the SMS locks. | void resetSMSLocks(SMS.Status status, SMS.Status newStatus)
throws SMSServiceException; | [
"public void reset(){\n\t\topen[0]=false;\n\t\topen[1]=false;\n\t\topen[2]=false;\n\t\tcount = 0;\n\t\t//System.out.println(\"The lock has been reset.\");\n\t}",
"public void reset() {\n\t\tthis.rolls = 0;\n\t\tthis.balance = 0;\n\t\tthis.bet = 0;\n\t\tthis.playChecker = false;\n\t\tthis.balanceEntrymessage = \"E... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the reference of the space and fallback on parent space or wiki in case nothing is found. If the property is not set on any level then defaultValue is returned. | public String getSpacePreferenceFor(String preference, String space, String defaultValue)
{
return this.xwiki.getSpacePreference(preference, space, defaultValue, getXWikiContext());
} | [
"public String getSpacePreferenceFor(String preference, SpaceReference spaceReference, String defaultValue)\n {\n return this.xwiki.getSpacePreference(preference, spaceReference, defaultValue, getXWikiContext());\n }",
"public DN getDefaultParentDN()\n {\n return defaultParentDN;\n }",
"protec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of setIncludeLabels method, of class PluginsCMDWorker. | @Test
public void testSetIncludeLabels() {
System.out.println("setIncludeLabels");
String string = "";
instance.setIncludeLabels(string);
} | [
"@Test\n public void testSetExcludeLabels() {\n System.out.println(\"setExcludeLabels\");\n String string = \"\";\n instance.setExcludeLabels(string);\n }",
"public void setLabels(String labels) {\n this.labels = labels;\n }",
"public void setLabels(Object labels) {\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been cleared to be reused) | public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_)
{
return null;
} | [
"Rectangle getBoundingBox();",
"public Rectangle boundingBox() {\n // corners of the descriptor window\n Point[] corners = new Point[4];\n corners[0] = new Point(center.x-size/2,center.y+size/2).rotate(theta,center);\n corners[1] = new Point(center.x+size/2,center.y+size/2).rotate(thet... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the amount of visible blocks in the timeline for the active resolution. Day blocks for Day/Week, hour blocks for Hour resolution. | public int getVisibleResolutionBlockCount() {
return resolutionBlockCount;
} | [
"private void createTimelineElementsOnVisibleArea() {\n int blocks = resolutionBlockCount;\n if (isTimelineOverflowingHorizontally()) {\n blocks = (int) (GanttUtil.getBoundingClientRectWidth(getElement().getParentElement())\n / calculateMinimumResolutionBlockWidth());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the passenger's nationality | public String getNationality() {
return nationality;
} | [
"public java.lang.String getPassengerNationality() {\r\n return passengerNationality;\r\n }",
"public String getNationality(){\n\t\treturn nationality;\n\t}",
"public Nationality getNationality() {\n return nationality;\n }",
"public String getNationality() {\r\n\t\treturn nationality;\r\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Verify that the invited partner user displays correct info when filtering report for 'All Active', 'Recently Added', 'Watch List', 'Contract Ending Soon' and 'Suspended' | @Test
public void TC060DCL_09() {
Reporter.log("ID TC060DCL_09 : Verify that the invited partner user displays correct info when filtering report for 'All Active', 'Recently Added', 'Watch List', 'Contract Ending Soon' and 'Suspended'");
/*
1. Navigate to DTS portal
2. Log into DTS portal as a DTS user succe... | [
"@Test\n\tpublic void TC060DCL_10() {\n\t\tcompanyControl.addLog(\"ID TC060DCL_10 : Verify that the invited partner user displays correct info when filtering report for 'All Active', 'Recently Added', 'Watch List', 'Contract Ending Soon' and 'Suspended'\");\n\t\tcompanyControl.addErrorLog(\"PDPP-1321: Failed by bug... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the decimal separator. Note that this separator defines the decimal separator for all decimal numbers that appear in the MPX file. | public char getDecimalSeparator()
{
return (m_decimalSeparator);
} | [
"public String getDecimalSeparator() {\n NumberFormat nf = NumberFormat.getInstance(getLocalCurrency().getLocale());\n if (nf instanceof DecimalFormat) {\n DecimalFormatSymbols sym = ((DecimalFormat) nf).getDecimalFormatSymbols();\n return Character.toString(sym.getDecimalSeparat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a value to property Shorttitle as an RDF2Go node | public static void addbiboShorttitle( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {
Base.add(model, instanceResource, SHORTTITLE, value);
} | [
"public void addbiboShorttitle( org.ontoware.rdf2go.model.node.Node value) {\n\t\tBase.add(this.model, this.getResource(), SHORTTITLE, value);\n\t}",
"public void setbiboShorttitle( org.ontoware.rdf2go.model.node.Node value) {\n\t\tBase.set(this.model, this.getResource(), SHORTTITLE, value);\n\t}",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Agrega un elemento al final de la secuencia | public void agregar_final(T elemento) {
Caja caja = new Caja(elemento);
if (this.tam == 0) {
this.primero = caja;
}
if (this.tam > 0) {
caja.prev = this.ultimo;
this.ultimo.sig = caja;
}
this.ultimo = caja;
this.tam++;
} | [
"public void agregarElementoAlFinal(int dato){\n\t\tNodo nodoNuevo = new Nodo(dato);\n\n\t\tif (nodoFin == null) {\n\t\t\tnodoFin = nodoInicio = nodoNuevo;\n\t\t}else {\n\t\t\tnodoFin.setEnlace(nodoNuevo);\n\t\t\tnodoFin = nodoNuevo;\n\t\t}\n\n\t}",
"public void agregarAlFinal(String valor){\r\n // Define ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return if status is notfound. | public static boolean isStatusNotFound(JsonNode node) {
return status(node).equalsIgnoreCase("NOTFOUND");
} | [
"private void foundNonExistent() {\n\t\tstate = BridgeState.NON_EXISTENT;\n\t}",
"private boolean notFound(JSONArray json) {\n return jxString(json, \".[1]\").equals(\"Nothing found.\"); \n }",
"public boolean isRemoteExists()\n {\n if(STATUS_CODE_ABSENT != getStatusCode())\n return tru... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column mall_item.shelf_status | public void setShelfStatus(Byte shelfStatus) {
this.shelfStatus = shelfStatus;
} | [
"public void setItemStatus(Boolean itemStatus) {\n }",
"@Override\n\tpublic void setStatus(long status) {\n\t\t_buySellProducts.setStatus(status);\n\t}",
"public void setSaleStatus(Integer saleStatus) {\n this.saleStatus = saleStatus;\n }",
"public void setItemStatus(Integer itemStatus) {\n\t\tth... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to set the size of the brush that is used last | public void setLastBrushSize(float lastSize) {
lastBrushSize = lastSize;
} | [
"public void setLastBrushSize(float lastSize)\n {\n lastBrushSize=lastSize;\n }",
"public void setBrushSize(int size)\n {\n brushSize = size;\n }",
"public void setBrushSize(float newSize) {\n float pixelSize = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, newSize, getResour... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle the AJAX request to "/basket" URL to add one item of the particular product to the basket. | @GetMapping(value = "/basket", produces = {MediaType.APPLICATION_JSON_VALUE})
@ResponseBody
public ResponseEntity<Integer> addToBasketAjax(@RequestParam(name = "item") int id,
HttpSession session) {
Integer shop_basket = basketService.prepareProductsFor... | [
"@OnEvent(value=ECommerceConstants.ADD_TO_BASKET)\n public Object onAddToBasket(Long productId)\n {\n basket.addToBasket(productId);\n return this;\n }",
"@PostMapping(value = \"/basketItems\", consumes = {MediaType.APPLICATION_JSON_VALUE})\n public ResponseEntity<String> addBasketItem(@Re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to initialize the addNewClass Action and call the appropriate method for add a new class item in the tree | private void doAddNewClass( )
{
addNewClass = new Action( ) {
public void run( )
{
addNewClass( );
}
};
addNewClass.setText( SASConstants.DATAOBJECT_TREE_MENU_CLASS_s );
addNewClass.setToolTipText( SASConstants.DATAOBJECT_TREE_MENU_CLASS_s );
addNewClass.setImageDescriptor( PlatformUI.getWorkben... | [
"private void addNewClass( )\n\t{\n\t\tArrayList classNames = new ArrayList();\n\t\tIStructuredSelection select = ( IStructuredSelection ) viewer_s\n\t\t\t\t.getSelection( );\n\t\tTreeParent parent = ( TreeParent ) select.getFirstElement( );\n//\t\t//for testing\n//\t\tSystem.out.println(\"parent.getParent ::::\"+p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo per creare un pannello con un certo numero di pulsanti. | protected void creaPanelPulsanti(JPanel panel, int numeroColonne, HashMap<Integer, JButton> Bottoni) {
// Setto layout
panel.setLayout(new GridLayout(1, numeroColonne, 0, 5));
// Lista dei pannelli
JPanel[] panelHolder = new JPanel[numeroColonne];
// Aggiungo un pannello per ogni colonna che si vuole us... | [
"private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets names of the collected items | public ArrayList<String> getCollectedItemNames()
{
ArrayList<String> collectedItemNames = new ArrayList<String>();
collectedItemNames.addAll(collectedItems.keySet());
return collectedItemNames;
} | [
"public String[] getItemNames()\r\n\t{\r\n\t\treturn itemNames;\r\n\t}",
"public List<String> getAllItemNames() {\n\n ArrayList<String> arrLst = new ArrayList<>();\n\n for (Item each: regularItems) {\n arrLst.add(each.getName());\n }\n for (Item each: onSaleItems) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the name and data duplicate an existing column. | protected boolean isDuplicateColumn(String name, double[] data) {
Iterator<Dataset> it = dataManager.getDatasets().iterator();
while(it.hasNext()) {
Dataset next = it.next();
double[] y = next.getYPoints();
if(name.equals(next.getYColumnName())&&isDuplicate(data, next.getYPoints())) {
... | [
"public boolean hasDuplicateColumnNames() {\n\t\tint nmbrOfColumns = this.getAllSelectColumnNames().size();\n\t\tint nmbrOfcolumnsRemovedDuplicatedColumns = new HashSet<String>(getAllSelectColumnNames()).size();\n\t\tif (nmbrOfColumns == nmbrOfcolumnsRemovedDuplicatedColumns) {\n\t\t\treturn false;\n\t\t}\n\t\tretu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Simplified method form for invoking the CreateQueue operation with an AsyncHandler. | @Override
public java.util.concurrent.Future<CreateQueueResult> createQueueAsync(String queueName,
com.amazonaws.handlers.AsyncHandler<CreateQueueRequest, CreateQueueResult> asyncHandler) {
return createQueueAsync(new CreateQueueRequest().withQueueName(queueName), asyncHandler);
} | [
"AsyncEventQueue create(String id, AsyncEventListener listener);",
"public static void createQueue() {\r\n try {\r\n SQSConnection connection = connectionFactory.createConnection();\r\n AmazonSQSMessagingClientWrapper client = connection.getWrappedAmazonSQSClient();\r\n Sys... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
varga los libros de manera individual con su codigo | public void cargarLibros(String codigo){
try{
ObjectInputStream cargarLibro = new ObjectInputStream(new FileInputStream("libros/"+codigo+".bin"));
tmpL = (Libro) cargarLibro.readObject();
cargarLibro.close();
}catch(Exception e){
System.out.print... | [
"public void obtenerDatosListaDeLibros(){\r\n for(Libro unlibro : libros){\r\n System.out.println(\"\");\r\n unlibro.mostrarDatosLibro();\r\n System.out.println(\"\");\r\n } \r\n }",
"Libreria crearLibro(Libreria libro);",
"private void cargarSitiosLibres... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends a lowlevel MathLink message. To abort a Mathematica computation, use putMessage(MLABORTMESSAGE). If a computation is successfully aborted, it will return the symbol $Aborted. Do not confuse this type of message, used mainly for communicating requests to interrupt or abort computations, with Mathematica warning me... | public void putMessage(int msg) throws MathLinkException; | [
"public boolean messageReady() throws MathLinkException;",
"public byte[] abortMessage() {\n\tbyte msg[] = new byte[30];\n\tinitCommonFields(msg);\n\tmsg[MSG_TYPE_B] = DEL_MSG;\n\t\n\treturn msg;\n }",
"public void abortMission(String mission) {\n\n// sendToServer(mission, ABORT_MISSION);\n\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public static List getConvertedDevicesObjectMapFromCache(String orgId, List devTrimLst) | public static List<Devices> getConvertedDevicesObjectMapFromCache(String orgId, Map<Integer, DevicesTrimObject> devTrimMap)
{
List<Devices> devFullLst = new ArrayList<Devices>();
List<DevicesTrimObject> devTrimLst = new ArrayList<DevicesTrimObject>();
DevicesObject devObj = null;
Devices dev = null;
... | [
"@SuppressWarnings(\"unchecked\")\n public Optional<RoomDeviceList> getCachedRoomDeviceListMap() {\n if (cachedRoomList != null || fileStoreNotFilled) {\n return Optional.fromNullable(cachedRoomList);\n }\n synchronized (this) {\n if (cachedRoomList != null || fileStore... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the light's current state | public LightState getState() { return state; } | [
"public Light.State getState() { return this.state; }",
"public Light getActiveLight()\n {\n return (activeLight);\n }",
"boolean getLightOn();",
"public boolean getCallLightState() {\n\t\treturn this.isCallLightOn;\n\t}",
"public Light getLight() {\n return light;\n }",
"STATE g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete access IP address | @Test
public void accessIpAddressAccessIpAddressIdDeleteTest() throws ApiException {
//String accessIpAddressId = null;
//AccessIPAddressResponseSchema response = api.accessIpAddressAccessIpAddressIdDelete(accessIpAddressId);
// TODO: test validations
} | [
"public void markIpAddressDelete() throws JNCException {\n markLeafDelete(\"ipAddress\");\n }",
"public void deleteIP(String ip) throws IOException {\n for(String ipAdd : ipAddresses){\n if(ipAdd.equals(ip))\n ipAddresses.remove(ip);\n }\n storeIP();\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an ordered range of all the plano saudes where descricao = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will re... | public java.util.List<PlanoSaude> findBydescricao(
String descricao, int start, int end,
OrderByComparator<PlanoSaude> orderByComparator); | [
"public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);",
"public java.util.List<PlanoSaude> findBydescricao(\n\t\tString descricao, int start, int end);",
"public java.util.List<PlanoSaude> findAll(int start, int end);",
"@Override\n\tpublic List... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a new selection provider to delegate to. Selection listeners registered with the previous delegate are removed before. | public void setSelectionProviderDelegate(ISelectionProvider newDelegate) {
if (newDelegate == delegate) {
return;
}
if (delegate != null) {
delegate.removeSelectionChangedListener(selectionListener);
if (delegate instanceof IPostSelectionProvider) {
((IPostSelectionProvider)... | [
"public void setSelectionProvider(final SelectionProvider selectionProvider) {\n\t\tthis.selectionProvider = selectionProvider;\n\t}",
"@Override\n public void setSelection(ISelection selection) {\n }",
"public void install(ISelectionProvider selectionProvider) {\n if (selectionProvider == nul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Make a decorator of the same subtype as pd | public abstract PointDecorator<NP,EP,HG,WG,SG,N,E> makeDecorator(PointDecorator<NP,EP,HG,WG,SG,N,E> pd,
HigraphView<NP,EP,HG,WG,SG,N,E> view, BTTimeManager tm); | [
"public interface ChartDecorator extends Chart\r\n{\r\n\t/**\r\n\t * \r\n\t * @return the chart \r\n\t */\r\n\tpublic Chart getChart();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param chart the char\r\n\t */\r\n\tpublic void setChart(Chart chart);\r\n}",
"Decorator decorator(String name);",
"public interface ProductDeco... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
General interface for a storage/store | public interface Storage<T> {
/**
* Saves a data object in the store.
*
* @param data the object to be saved
*/
public void save(T data);
/**
* Loads the data object stored in this store. This can return null.
*
* @return the stored data object.
*/
public T load... | [
"public interface DataStore {\n\n Bucket loadBucket(String bucketName);\n\n List<Bucket> loadBuckets();\n\n void saveBucket(Bucket bucket);\n\n void deleteBucket(String bucketName);\n\n Blob loadBlob(String bucketName, String blobKey);\n\n List<Blob> loadBlobs(String bucketName);\n\n void saveB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
parseWeatherRecord parse weather data input line and generated WeatherDataDto | public WeatherDataDto parseWeatherRecord(String weatherline) {
String[] weathersplit = weatherline
.split(WeatherConstants.ROW_SPLIT_SEPERATOR);
WeatherDataDto objWeatherDto = new WeatherDataDto();
if (weathersplit.length == 7) {
objWeatherDto.setLocation(weathersplit[0]);
objWeatherDto.setPosition(weat... | [
"public WeatherDataDto parseWeatherTimezoneRecord(String weatherline,\n\t\t\tHashMap<String, String> tzlonglatMap) throws ParseException {\n\t\tWeatherDataDto objWeatherDto = parseWeatherRecord(weatherline);\n\t\tString lookupline = tzlonglatMap.get(objWeatherDto.getPosition());\n\t\tobjWeatherDto = parseTimeZoneRe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Blocks the calling thread until the Engine is in a specified state. All state bits specified in the state parameter must be set in order for the method to return, as defined for the testEngineState method. If the state parameter defines an unreachable state (e.g. PAUSED | RESUMED) an exception is thrown. The waitEngine... | public void waitEngineState(final long state)
throws java.lang.InterruptedException {
if (synthesizer == null) {
LOGGER.warn("no synthesizer: cannot wait for engine state");
return;
}
if (true) {
LOGGER.debug("waiting for synthesizer engine state ... | [
"boolean waitForState(int state)\r\n\t{\r\n\t\tsynchronized (waitSync)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\twhile (p.getState() < state && stateTransitionOK)\r\n\t\t\t\t\twaitSync.wait();\r\n\t\t\t} catch (Exception e)\r\n\t\t\t{\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn stateTransitionOK;\r\n\r\n\t}",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds all UI Elements and connects them to the fragment's fields. | public void findUIElements() {
nameField = (EditText) findViewById(R.id.NAMEFIELD);
nameField.setHintTextColor(getResources().getColor(R.color.colorPrimary));
enterButton = (Button) findViewById(R.id.ENTER);
enterButton.setOnClickListener(new View.OnClickListener() {
@Overrid... | [
"private void populateInterfaceElements() {\n tagNameTextView.setTypeface(Default.sourceSansProBold);\n tagPostCountTextView.setTypeface(Default.sourceSansProLight);\n\n setupTagItemLayout();\n fetchPostsCountUnderTag();\n }",
"void fillInnerParts() {\n in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the isUsingLocalDate property. | void setIsUsingLocalDate(boolean value); | [
"boolean isIsUsingLocalDate();",
"void setFilterByDate(boolean isFilterByDate);",
"void setCardStartDate(final LocalDate cardStartDate);",
"public void setUsesStartDateAsFiscalYearName(java.lang.Boolean usesStartDateAsFiscalYearName) {\n this.usesStartDateAsFiscalYearName = usesStartDateAsFiscalYearNam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Layout Parameter based on MQuery | private void layoutParameter() throws WriteException {
if (m_query == null || !m_query.isActive()) {
return;
}
Label label = new Label(0, 0, Msg.getMsg(m_printCtx, "Parameter") + ":");
sheet.addCell(label);
for (int r = 0; r < m_query.getRestrictionCount(); r++) {
... | [
"Long getLayout();",
"public void setLayout(Integer layout) {\n\t\tthis.layout = layout;\n\t}",
"public void doLayout() {\n validateSeqQueryPanel();\n super.doLayout();\n }",
"public void setLayout(int l) {\r\n\t\tlayout = l;\r\n\t}",
"public abstract int setLayout();",
"abstract public int getLayo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR start "join_type" /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:520:1: join_type : QUOTEDSTRING ; | public final AstValidator.join_type_return join_type() throws RecognitionException {
AstValidator.join_type_return retval = new AstValidator.join_type_return();
retval.start = input.LT(1);
CommonTree root_0 = null;
CommonTree _first_0 = null;
CommonTree _last = null;
... | [
"public final QueryParser.join_type_return join_type() throws RecognitionException {\n QueryParser.join_type_return retval = new QueryParser.join_type_return();\n retval.start = input.LT(1);\n\n\n Object root_0 = null;\n\n Token QUOTEDSTRING407=null;\n\n Object QUOTEDSTRING407_tre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column webhook_log.status_code | public void setStatusCode(Integer statusCode) {
this.statusCode = statusCode;
} | [
"public void setStatus_code(java.math.BigInteger status_code) {\n this.status_code = status_code;\n }",
"public void setStatusCode(String statusCode);",
"void setStatusCode(int status);",
"private void setStatusCode(int code)\n {\n if(null == m_ElementStatus)\n m_ElementStatus = PSFUD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Allows for restaurants to be retrieved by providing users coordinates takes latitude, longitude and radius for the search as method parameter returns up to 20 matching places | public ArrayList<ParsedRestaurant> searchNearby(double lat, double lang, int radius){
typeSearch = "/nearbysearch";
HttpURLConnection conn = null;
StringBuilder jsonResults = new StringBuilder();
try{
StringBuilder request = new StringBuilder(PLACES_API_SOURCE);
request.append(typeSearch);
req... | [
"private void search_restaurants(double lat1, double lon1, int metres) {\n try {\n searchEngine = new SearchEngine(); // We create a searchEngine.\n } catch (InstantiationErrorException e) {\n System.out.println(\"Initialization of SearchEngine failed: \" + e.error.name());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends all the bronze items from the bronze item array, and put them on our Smithing interface. | public static void initializeBronzeItems(Player player) {
player.getActionSender().sendUpdateItems(SMITHING_INTERFACE, 146, 93,
BRONZE_ITEMS[0]);
player.getActionSender().sendUpdateItems(SMITHING_INTERFACE, 147, 93,
BRONZE_ITEMS[1]);
player.getActionSender().sendUpdateItems(SMITHING_INTERFACE, 148, 93,
... | [
"public void sendNameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDNM\" + lobby.getNameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads OpenPGP public keyring from this file (1p). | public static PGPPublicKeyRing readPublicKeyRing(String filePath)
throws IOException {
// TODOdone: implement
FileInputStream in = new FileInputStream(filePath);
PGPPublicKeyRing ring = new PGPPublicKeyRing(in, new BcKeyFingerprintCalculator());
return ring;
} | [
"public void readPublicKey(String filename){\n FileHandler fh = new FileHandler();\n Map<String, BigInteger> pkMap= fh.getKeyFromFile(filename);\n this.n = pkMap.get(\"n\");\n this.e = pkMap.get(\"key\");\n }",
"public static PGPPublicKeyRingCollection readPublicKeyRingCollection(St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called when the exportMultipleFiles radio button is selected. | private void exportMultipleFilesSelected()
{
exportMultipleFilesRadio.setSelection( true );
exportMultipleFilesLabel.setEnabled( true );
exportMultipleFilesText.setEnabled( true );
exportMultipleFilesButton.setEnabled( true );
exportSingleFileRadio.setSelection( false );
... | [
"private void exportSingleFileSelected()\n {\n exportMultipleFilesRadio.setSelection( false );\n exportMultipleFilesLabel.setEnabled( false );\n exportMultipleFilesText.setEnabled( false );\n exportMultipleFilesButton.setEnabled( false );\n\n exportSingleFileRadio.setSelection(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all players where the number of players is determined by the limit. List of players is ordered by points desc. | public List<Player> getAllPlayersLimit(int limit) {
return repository.findAll(limit);
} | [
"public ArrayList<Player> getPlayers() {\n\n int totalPlayers = 0;\n int maxPlayers = teamMaximum * teamSize;\n int minPlayer = teamMinimum * teamSize;\n ArrayList<Player> players = new ArrayList<Player>();\n //Runs while the amount of players being grabbed is less than the max a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
create your own Cart class to suit your app and call this update method to update the paypal panel | public void update(Object cart) {
wrapper.clear();
wrapper.add(createPanel(cart));
} | [
"private void payWithPaypal() {\r\n\t\tfinal ProgressDialog dialog = new ProgressDialog(getParent());\r\n\t\tdialog.setCancelable(false);\r\n\t\tdialog.setMessage(MobicartCommonData.keyValues.getString(\r\n\t\t\t\t\"key.iphone.LoaderText\", \"Loading\") + \"...\");\r\n\t\tdialog.setProgressStyle(ProgressDialog.STYL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method that synchronizes rowSet position with selected contact | private boolean selectContactInRowSet() {
int index = getContactSelection().getMinSelectionIndex();
if (index != -1) {
try {
rowSet.absolute(index+1);
} catch (SQLException sqlex) {
sqlex.printStackTrace();
}
}
... | [
"public void setPositionRow(int value){this.positionRow = value;}",
"private void btnToModifiedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnToModifiedActionPerformed\n\n /*What is selected*/\n int[] ids = jtbOriginal.getSelectedRows();\n\n /*Move it*/\n for (in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "selectClause" $ANTLR start "fromClause" SQL.g:67:1: fromClause : 'from' fromList ; | public final void fromClause() throws RecognitionException {
try {
// SQL.g:68:2: ( 'from' fromList )
// SQL.g:68:4: 'from' fromList
{
match(input,12,FOLLOW_12_in_fromClause132);
pushFollow(FOLLOW_fromList_in_fromClause134);
fromLis... | [
"static final public void FromClause() throws ParseException {\n /*@bgen(jjtree) dbFromClause */\n SimpleNode jjtn000 = new SimpleNode(JJTDBFROMCLAUSE);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);\n try {\n jj_consume_token(FROM);\n TableClause();\n switch ((jj_ntk==-1)?jj_ntk():... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Encrypts .class files starting from current or specified directory If no directory is specified, the current working directory is the root The option r causes recursive descent below the root directory The option d causes deletion of the .class file after it is encrypted | public static void main(String[] args)
throws SecurityException,FileNotFoundException, IOException {
// Parse optional args
String dirString = "";
boolean recurse = false, delete = false;
for(int k=0;k<args.length;k++) {
if(args[k].startsWith("-")) { // option string follows
String options = args[k]... | [
"public String dcryptFile(String filename) {\n\t\tEncryption encryptFile = new Encryption();\r\n\t\tencryptFile\r\n\t\t\t\t.decrypt(directoryPath + filename, directoryPath2 + filename);\r\n\t\tdcryptedFilePath = directoryPath2 + filename;\r\n\t\t\r\n\t\tFileService service=new FileService();\r\n\t\tservice.delete(d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Spring Data Elasticsearch repository for the CustomerIncome entity. | public interface CustomerIncomeSearchRepository extends ElasticsearchRepository<CustomerIncome, Long> {
} | [
"public interface FeeInvoiceSearchRepository extends ElasticsearchRepository<FeeInvoice, Long> {\n}",
"public interface AmountSearchRepository extends ElasticsearchRepository<Amount, Long> {\n}",
"public interface CustomerPostOfficeSearchRepository extends ElasticsearchRepository<CustomerPostOffice, Long> {\n}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stops a script execution on a robot. | public void stopExecutingProgramOnRobot() {
manageCommandAsync(new Command("stop", ""));
} | [
"public void stop() {\n\t\tbotSession.stop();\n\t}",
"private void safeStop() {\n getRobotDrive().stop();\n //pneumatics.stop();\n }",
"public void stopDriver();",
"public void stop() {\n\t\tthis.stopped = true;\n\t\tthis.sendRawMessage(\"Stopping\"); //so that the bot has one message to proc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns percent of maximum output of crossbow rotator motor | public double getRotatorPercent()
{
return rotator.getMotorOutputPercent();
} | [
"@Override\n\tpublic double getMaxOutput() {\n\t\treturn RobotMap.DRIVE_PAN_MAX_OUTPUT;\n\t}",
"public double getClimbMotorPercentPower() {\n\t\treturn climbMotor2.getMotorOutputPercent();\n\t}",
"double getProgressMax();",
"public void setYMaxOutput(double maxOutput)\r\n {\r\n YMaxSpeedPercent = ma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copy value to target | @SuppressWarnings("unchecked")
private void copyToTarget(SRC source, TRG target) {
final Object value = srcKey.of(source);
trgKey.setValue(target, (V) value);
} | [
"@Override\r\n\tpublic LogicalValue copy() {\r\n\t\treturn new Pointer(target);\r\n\t}",
"private <V> void copyPropertyConditionally(ScalarPropertyAccessor<V> propertyAccessor, Entry sourceAccount, Entry targetAccount) {\n \t\tV targetValue = targetAccount.getPropertyValue(propertyAccessor);\n \t\tV sourceValue =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Begins and returns a new arena setup session for the provided user UUID | public ArenaSetupSession startSetupSession(String UUID, String arenaName) throws ArenaSetupSessionAlreadyInProgress
{
if (!doesUserHaveActiveSession(UUID))
{
ArenaSetupSession newSession = new ArenaSetupSession(UUID, arenaName);
playerSetupSessions.put(UUID, newSession);... | [
"public ArenaSetupSession getPlayerSetupSession(String UUID)\r\n {\r\n return playerSetupSessions.get(UUID);\r\n }",
"public void createSession(int uid);",
"private void startSession(String userPin) {\n\t\tPunchInEvent punchIn = new PunchInEvent(this, CommonUtils.selectUserId(userPin));\n\n\t\tpunc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unsubscribe a executed trades channel | public void unsubscribeExecutedTrades(final BitfinexExecutedTradeSymbol tradeSymbol) {
final int channel = bitfinexApiBroker.getChannelForSymbol(tradeSymbol);
if(channel == -1) {
throw new IllegalArgumentException("Unknown symbol: " + tradeSymbol);
}
final UnsubscribeChannelCommand command = new Uns... | [
"public void unsubscribe(HashMap<String, Object> args) {\n String channel = (String) args.get(\"channel\");\n for (ChannelStatus it : subscriptions) {\n if (it.channel.equals(channel) && it.connected) {\n it.connected = false;\n it.first = false;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add floor request to pick up a person | public void addFloorRequest(Request r) throws InvalidParameterException {
if (r != null) {
int floor = r.getFloor();
Direction direction = r.getDirection();
// don't duplicate the request if already in the list
if (!floorRequests.isEmpty()) {
for (Request fr : floorRequests) {
if (fr.g... | [
"@Override\n public void requestPickup(int floor, int direction) {\n // Pick an elevator at rest\n for (Elevator elevator : elevators) {\n if (elevator.getDirection() == 0) {\n elevator.getRequests().offer(floor);\n return;\n }\n }\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the review status of an event with the given mediapackage id | ReviewStatus getReviewStatus(String mediapackageId) throws NotFoundException, SchedulerServiceDatabaseException; | [
"void updateEventReviewStatus(String mediapackageId, ReviewStatus reviewStatus, Date modificationDate)\n throws NotFoundException, SchedulerServiceDatabaseException;",
"Date getReviewDate(String mediapackageId) throws NotFoundException, SchedulerServiceDatabaseException;",
"public java.lang.String getR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check the operation of the server | public static final String getQuery_CheckServerOperation() { return URL.CHECK_SERVER_OPERATION ; } | [
"private boolean checkBackend() {\n \ttry{\n \t\tif(sendRequest(generateURL(0,\"1\")) == null ||\n \tsendRequest(generateURL(1,\"1\")) == null)\n \t\treturn true;\n \t} catch (Exception ex) {\n \t\tSystem.out.println(\"Exception is \" + ex);\n\t\t\tr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the ball is touching the bottom of the brick. | private boolean isTouchingBottom(Ball theBall)
{
int brickLeft = left;
int brickRight = left + width - 1;
int brickBottom = top + height - 1;
int ballTop = theBall.getY() - theBall.getRadius() + 1;
return (hits != 0) && (ballTop <= brickBottom + 1) && (ballTop >= brickBottom - 5)
&& (theBall.getX... | [
"public boolean touchingBottom(Ball theBall)\r\n\t{\t\r\n\t\treturn (theBall.getY() - theBall.getRadius()) + 1 <= (getTop() + getHeight())\r\n\t\t\t\t&& (theBall.getY() - theBall.getRadius()) + 1 >= (getTop() + getHeight() - 5)\r\n\t\t\t\t&& (theBall.getX()) >= getLeft() - 6\r\n\t\t\t\t&& (theBall.getX()) <= (getLe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
override getChildren(path, watch), so we can record all getChildren requests | @Override
protected List<String> getChildren(final String path, final boolean watch) {
long startT = System.currentTimeMillis();
try {
List<String> children = retryUntilConnected(new Callable<List<String>>() {
@Override
public List<String> call() throws Exception {
return _conn... | [
"public List<String> getChildren(String path, boolean watch) throws KeeperException, InterruptedException {\n return getChildren(path, getDefaultWatcher(watch));\n }",
"public List<String> getChildren(\n String path,\n boolean watch,\n Stat stat) throws KeeperException, InterruptedE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method returns Driver file for Chrome Driver If is in mentioned in config.yml then set that as system property otherwise, use the defaults Chromedriver from library based on the given platform | public File getChromeDriverFile(){
File file=null;
if(testBed.getBrowser().getDriverLocation()!=null){
file =new File(testBed.getBrowser().getDriverLocation());
}else{
if(ConfigUtil.isWindows(testBed))
{
//TODO have to remove the hard coded values
//file = new File("..\\test-... | [
"public static String getchromedriver() {\n\t\treturn prop.getProperty(\"chromedriverpath\");\n\t}",
"public static void loadConfig()\n {\n if (!isWindows()) {\n System.setProperty(\"webdriver.chrome.driver\", cwd + \"/externalVendors/chromedriver\");\n } else {\n System.set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is starting position of a move selected | public boolean isFromSelected() {
return moveFrom != null;
} | [
"boolean getInitialMovePassed();",
"public final boolean isMoving() {\r\n\t\treturn moveStart > 0;\r\n\t}",
"boolean getInitialMoveCompleted();",
"boolean hasMoveSelectionEvent();",
"boolean getInitialMoveTaken();",
"boolean isSetBeginPosition();",
"public boolean isStart () {\n if (this.equals(S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/Metodo para modificar una Entidad Conocida | public void modificarEntidadConocida(int identificador, String nombre, String localidad, String domicilio, int telf1, int telf2, int cp, String provincia, String email) {
ec = new EntidadesConocidas(identificador, nombre, localidad, domicilio, telf1, telf2, cp, provincia, email);
try {
ec... | [
"public void modificar(Concurso concurso) {\r\n\t\tConexionDB conexion_db = new ConexionDB();\r\n\t\ttry (Connection connect = conexion_db.obtenerConexionBD();\r\n\t\t\tPreparedStatement statement = connect.prepareStatement(this.modificar)) {\r\n\t\t\tstatement.setString(1, concurso.getCodigo());\r\n\t\t\tstatement... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Normalizes this tree starting in this node to sum up to 1. This object is modified with the method. | void normalize(long totalSize) {
double total;
total = sum(totalSize);
if (var == null) { // probability node
if (total > 0.0) {
value /= total;
if (Double.isNaN(value) || Double.isInfinite(value)) {
value = 0.0;
}... | [
"public void normalize() {\n\t\tscale(0d, 1d);\n\t}",
"public void normalize(long totalSize) {\n \n double total;\n int i, nv;\n \n total = sum(totalSize);\n \n if (label == PROBAB_NODE)\n value /= total;\n else {\n nv = var.getNumStates();\n for (i=0 ; i<nv ; i++)\n getChild(i).normalizeAux(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A new field has been added to the document. | void fieldAdded(final DBObject object, final String field); | [
"private void addNewField( )\n\t{\n\t\tArrayList clsFieldList = new ArrayList();\n\t\tIStructuredSelection select = ( IStructuredSelection ) viewer_s\n\t\t\t\t.getSelection( );\n\t\tTreeParent parent = ( TreeParent ) select.getFirstElement( );\n\t\tString value = parent.getValue( );\n\t\tif(parent.hasChildren())\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .protobuf.selectedStocks_req reqs = 1; | protobuf.Protobuf.selectedStocks_reqOrBuilder getReqsOrBuilder(
int index); | [
"protobuf.Protobuf.selectedStocks_req getReqs(int index);",
"java.util.List<protobuf.Protobuf.selectedStocks_req> \n getReqsList();",
"java.util.List<? extends protobuf.Protobuf.selectedStocks_reqOrBuilder> \n getReqsOrBuilderList();",
"private selectedStocks_req(com.google.protobuf.GeneratedMes... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the type of trade good | public TradeGood getType() {
return type;
} | [
"public String getTradeType() {\n return tradeType;\n }",
"public String getGoodsType() {\n return goodsType;\n }",
"public Integer getTradeType() {\n\t\treturn tradeType;\n\t}",
"public BigDecimal getTRADE_TYPE() {\r\n return TRADE_TYPE;\r\n }",
"PriceTypeType getPriceType();"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the organism to be associated with this session. | public void setOrganism(Organism organism); | [
"public void setOrganismName (java.lang.String organismName) {\n\t\tthis.organismName = organismName;\n\t}",
"public void setOrgan(String organ) {\n\t\tthis.organ = organ;\n\t}",
"public void setOrganismDao(final OrganismDao organismDao) {\n \t\tthis.organismDao = organismDao;\n \t}",
"public void setOrganism... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempt to assign all the files in a directory to an episode of a show | public int assignFilesInDirectory( int showId, String folder ) throws OpenMMMidtierException; | [
"public void assignFile( int episodeId, String file, long size ) throws OpenMMMidtierException;",
"private List<File> acquireEpisodeFileList(File targetFile) {\n\t\treturn Arrays.asList(targetFile.listFiles(new FilenameFilter() {\n\n\t\t\tprivate Pattern pattern = Pattern.compile(\"episode\\\\-\\\\d+\\\\.csv\");\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to add gear | public void addGear(int number, double ratio){
//if gearnumber is betweeen ...
if (number > 0 && number <= maxGears){
//adds a new gear instnce values to gears Array list.
this.gears.add(new Gear(number,ratio));
}
} | [
"public void addGearToGearList(Gear gear) {\n gearList.add(gear);\n }",
"private void addGear() {\r\n while (!_finishing) {\r\n try {\r\n Thread.sleep((int) (5000 * (Math.random()) + 1000));\r\n } catch (InterruptedException ex) {\r\n _logger.lo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getMultipleSelectValues method, of class SOAPinputField. | @Test
public void testGetMultipleSelectValues()
{
System.out.println("getMultipleSelectValues");
SOAPinputField instance = new SOAPinputField("prueba");
List<String> result = instance.getMultipleSelectValues();
} | [
"@Test\n public void testAddMultipleSelectValue()\n {\n System.out.println(\"addMultipleSelectValue\");\n String value = \"\";\n SOAPinputField instance = new SOAPinputField(\"prueba\",\"prueba\"); \n instance.addMultipleSelectValue(value); \n }",
"@Override\n\tpublic ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unsets the "Value" element | public void unsetValue()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(VALUE$4, 0);
}
} | [
"public void unsetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(VALUE$2, 0);\n }\n }",
"public void unsetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve the filter component. | public Filter getFilterComponent()
{
return filterComponent;
} | [
"public Filter getFilter() {\n return this.filter;\n }",
"public Filter getFilter() {\n\t\treturn (filter);\n\t}",
"Filter getFilter();",
"FilterContainer getFilterContainer();",
"public CommFilter getFilter() {\n \treturn mFilter;\n }",
"public Capabilities getFilter() {\n return m_F... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Replaces the selection at the caret with the specified text. If there is no selection at the caret, the text is inserted at the caret position. | public void setSelectedText(String selectedText)
{
int newCaret = replaceSelection(selectedText);
if(newCaret != -1)
moveCaretPosition(newCaret);
selectNone();
} | [
"@Override\n public void replaceSelection(String text) {\n if (validate(text)) {\n super.replaceSelection(text);\n if (getText().length() > 1) {\n setText(getText().substring(0, 1));\n positionCaret(1);\n }\n }\n }",
"public void s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generated method Getter of the AmazonConfig.paymentWidgetWidth attribute. | public Integer getPaymentWidgetWidth()
{
return getPaymentWidgetWidth( getSession().getSessionContext() );
} | [
"public Integer getPaymentWidgetWidth(final SessionContext ctx)\n\t{\n\t\treturn (Integer)getProperty( ctx, PAYMENTWIDGETWIDTH);\n\t}",
"public int getPaymentWidgetWidthAsPrimitive()\n\t{\n\t\treturn getPaymentWidgetWidthAsPrimitive( getSession().getSessionContext() );\n\t}",
"public void setPaymentWidgetWidth(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set up the stage for the Help page | private void setupInitialStage(){
helpPage = new ImageView();
buttons = new Group();
helpStage = new Stage();
helpStage.initStyle(StageStyle.UNDECORATED);
helpStage.setWidth(600);
helpStage.setHeight(750);
Rectangle2D screenBounds = Screen.getPrimary().getVisualBounds();
helpStage.setX((screenBo... | [
"public void showHelpPage(){\r\n\t\tchangeToFirstPage();\r\n\t\thelpStage.show();\r\n\t}",
"private void initializeHelpMenuItems() {\n helpMenuItem.setOnAction((event) -> {\n WebView webby = new WebView();\n WebEngine wE = webby.getEngine();\n String url = \"https://github.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when a QR is decoded "text" : the text encoded in QR "points" : points where QR control points are placed in View | @Override
public void onQRCodeRead(String text, PointF[] points) {
QRParser qrParser = new QRParser().gsonToQRParser(gson, text);
final SweetAlertDialog pDialog = new SweetAlertDialog(ScanActivity.this, SweetAlertDialog.SUCCESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseCol... | [
"@Override public void onQRCodeRead(String text, PointF[] points) {\n resultTextView.setText(text);\n pointsOverlayView.setPoints(points);\n }",
"@Override\n public void onQRCodeRead(String text, PointF[] points) {\n\n int width = mydecoderview.getWidth();\n int height = mydecoderview.getH... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'var59' field. | public com.dj.model.avro.LargeObjectAvro.Builder clearVar59() {
var59 = null;
fieldSetFlags()[60] = false;
return this;
} | [
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar58() {\n var58 = null;\n fieldSetFlags()[59] = false;\n return this;\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar23() {\n var23 = null;\n fieldSetFlags()[24] = false;\n return this;\n }",
"public co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the reOccured property. | public int getReOccured() {
return reOccured;
} | [
"public void setReOccured(int value) {\n this.reOccured = value;\n }",
"public int getReTry() {\n\t\treturn reTry;\n\t}",
"public Number getRecalledCount() {\n return (Number)getAttributeInternal(RECALLEDCOUNT);\n }",
"public String getIS_RENEWED() {\r\n return IS_RENEWED;\r\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'supportedDataObjects' field. | public Energistics.Etp.v12.Protocol.Core.RequestSession.Builder setSupportedDataObjects(java.util.List<Energistics.Etp.v12.Datatypes.SupportedDataObject> value) {
validate(fields()[4], value);
this.supportedDataObjects = value;
fieldSetFlags()[4] = true;
return this;
} | [
"public void setSupportedDataObjects(java.util.List<Energistics.Etp.v12.Datatypes.SupportedDataObject> value) {\n this.supportedDataObjects = value;\n }",
"public java.util.List<Energistics.Etp.v12.Datatypes.SupportedDataObject> getSupportedDataObjects() {\n return supportedDataObjects;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Draws the text block annotations for position, size, and raw value on the supplied canvas. | @Override
public void draw(final Canvas canvas) {
if (textBlock == null) {
m = "";
name = "";
return;
}
// Draws the bounding box around the TextBlock.
if (!m.equals("")) {
//RectF rect = new RectF(currentText.getBoundingBox());
... | [
"@Override\r\n public void draw(Canvas canvas) {\r\n if (text == null) {\r\n throw new IllegalStateException(\"Attempting to draw a null text.\");\r\n }\r\n\r\n // Draws the bounding box around the TextBlock.\r\n RectF rect = new RectF(text.getBoundingBox());\r\n rec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update specification name exists test. | @Test
public void updateSpecificationNameExistsTest() throws Exception {
String uri = "/v1/api/specification";
RequestBuilder req = MockMvcRequestBuilders.post(uri).accept(MediaType.APPLICATION_JSON)
.content(RestUtil.convertObjectToJsonBytes(specificationDTO)).contentType(MediaType.APPLICATION_JSON);
MvcRes... | [
"@Test\n\tpublic void createSpecificationNameExistsTest() throws Exception {\n\t\tString uri = \"/v1/api/specification\";\n\t\tRequestBuilder req = MockMvcRequestBuilders.post(uri).accept(MediaType.APPLICATION_JSON)\n\t\t\t\t.content(RestUtil.convertObjectToJsonBytes(specificationDTO)).contentType(MediaType.APPLICA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |