query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Optional. The initial taints assigned to nodes of this node pool. repeated .google.cloud.gkemulticloud.v1.NodeTaint taints = 10 [(.google.api.field_behavior) = OPTIONAL]; | @java.lang.Override
public java.util.List<? extends com.google.cloud.gkemulticloud.v1.NodeTaintOrBuilder>
getTaintsOrBuilderList() {
return taints_;
} | [
"@java.lang.Override\n public java.util.List<com.google.cloud.gkemulticloud.v1.NodeTaint> getTaintsList() {\n return taints_;\n }",
"@java.lang.Override\n public com.google.cloud.gkemulticloud.v1.NodeTaint getTaints(int index) {\n return taints_.get(index);\n }",
"@java.lang.Override\n public int get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the specified headers to the packet. | final void packetAddHeaders(HeaderSetImpl headers)
throws IOException {
if (DEBUG) {
System.out.println("packetAddHeaders()");
}
headerOverflow = false;
newHeader.sendAllQueued();
if (headers == null) {
return;
}
int[] idList = he... | [
"public void addHeader(Header h);",
"void addHeader(String... headers) throws CSVGeneratorException;",
"public DataTable addHeaders(String... headers) {\n if (!rows.isEmpty())\n throw new TableException(\n \"Headers may only be added to an empty table.\");\n\n int headerI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the ignore method does absolutely nothing, but it helps to shut up warnings by pmd and other reporting tools complaining about empty catch methods. | static void ignore() {
} | [
"public static void ignore(Throwable t) {\n\t\tif(logIgnoredExceptions) {\n\t\t\tt.printStackTrace();\n\t\t}\n\t}",
"@Ignore\r\n\tpublic void ignoreTest() {\r\n\t\tSystem.out.println(\"in ignore test\");\r\n\t}",
"@Ignore\n\t public void ignoreTest() {\n\t System.out.println(\"in ignore test\");\n\t }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Asserts that the value of at least one selected option of the given select element matches the given pattern. | public void assertSelectedValue(final String selectLocator, final String valuePattern); | [
"public static boolean checkValidSelect(WebDriver driver,String epath,String[] values){\n\t\tWebElement ele = driver.findElement(By.xpath(epath));\n\t\tif(ele.getTagName().toLowerCase().equals(\"select\"))\n\t\t{\n\t\t\tString[] opts = ele.getText().split(\"\\\\\\n\");\t\t\t\n\t\t\tif(opts.length != values.length){... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
appends text to the textLogArea | public void appendTextToTextArea(String text) {
textLogArea.append(text);
} | [
"private void appendText(String text) {\n textArea.appendText(text);\n }",
"public static void addTextToLog(String str, TextArea txtAreaMsg) {\n\t\tPlatform.runLater(() -> txtAreaMsg.appendText(str));\n\t}",
"public void append(String text)\n{\n\ttextArea().append(text);\n}",
"public void appendToLo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Takes in the current time, used after startTimer() in order to keep a running count. | public void countTimer() {
timerEnd = System.currentTimeMillis();
} | [
"public void incrementTime() {\r\n\t\tcur_time++;\r\n\t}",
"private void countTime()\n {\n time--;\n showTime();\n if (time == 0)\n {\n showEndMessage();\n Greenfoot.stop();\n }\n }",
"private void startCountTime() {\n\t\tRunnable timerRunnable = ()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add change listener to fullscreen checkbox | public void addFullscreenClickListener(CheckBox checkBox) {
checkBox.setChecked(Gdx.app.getGraphics().isFullscreen());
checkBox.addListener(new ChangeListener() {
@Override
public void changed(ChangeEvent event, Actor actor) {
if (checkBox.isChecked()) {
... | [
"public void onFullScreenChanged(boolean fullScreen);",
"@Override\n\tpublic void fullscreenChanged(boolean fullscreen) {\n\t\tfullscreenButton.setIcon(getIcon(fullscreen ? \"normalscreenicon.png\" : \"fullscreenicon.png\" ));\n\t}",
"public void setOnFullScreenListener(OnFullScreenListener l) {\n mProvi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
"Establish" a connection to the supplier integrator and get a singleton instance for retrieving information. This will fail and throw an exception in 1% of all cases to simulate the chance of not being able to establish a connection. | public static SupplierIntegrator getInstance() throws TimeoutException {
//Connection error in 20% of all cases
if (Math.random() > .8) throw new TimeoutException("Connection could not be established, try again later");
//Otherwise, lazily initialize supplier integrator and return instance
if (instance == null... | [
"private void reconnectSupplier() {\n try {\n Registry registry = LocateRegistry.getRegistry(host, port);\n supplier = (SupplierInterface) registry.lookup(remoteName);\n connected = true;\n System.out.println(\"Connected to \"+supplierName);\n } catch (NotBo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests that the getUserId method returns a valid user Id | @Test
public void testGetUserIdValid() throws PersistenceServiceException {
assertTrue("get valid user id", (userDAO.getUserId(CONNALL) > 0));
} | [
"@Test\n public void testGetUserIdInvalid() throws PersistenceServiceException {\n assertFalse(\"get invalid user id\", (userDAO.getUserId(\"\") > 0));\n }",
"@Test\n public void testGetUserId() {\n System.out.println(\"getUserId Test (Passing value)\");\n Long expResult = 1l;\n Long result... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column bjwg_withdrawals.auditing_man_id | public void setAuditingManId(Long auditingManId) {
this.auditingManId = auditingManId;
} | [
"public Long getAuditingManId() {\r\n return auditingManId;\r\n }",
"public void setAuditingMan(String auditingMan) {\r\n this.auditingMan = auditingMan == null ? null : auditingMan.trim();\r\n }",
"public void setBorrower_Id(long borrower_Id);",
"public String getSalesManId() {\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reset the true frequency test, trueFreq true if yData values are true frequencies, e.g. in a fit to Gaussian; false if not if true chiSquarePoisson (see above) is also calculated | public void setTrueFreq(final boolean trFr) {
final boolean trFrOld = trueFreq;
trueFreq = trFr;
if (trFr) {
final boolean flag = setTrueFreqWeights(yData, weight);
if (flag) {
trueFreq = true;
weightOpt = true;
} else {
... | [
"public boolean getTrueFreq() {\n return trueFreq;\n }",
"public void setFreqY(float freqY) {\n this.freqY = freqY;\n }",
"public edu.pa.Rat.Builder clearFrequency() {\n fieldSetFlags()[1] = false;\n return this;\n }",
"public influent.idl.FL_Frequency.Builder clearFrequency()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
e.g 5 5 / \ / \ 3 6 => if considering NULL(x) => 3 6 / \ \ / \ / \ 2 4 7 2 4 x 7 / \ / \ / \ x x x x x x preorder serialize into string: 5,3,2,X,X,4,X,X,6,X,7,X,X, Style 1 | private void serializeHelper(TreeNode root, StringBuilder sb) {
// Base case: Handle NULL
if(root == null) {
sb.append(NA).append(spliter);
return;
}
// Preorder traversal
sb.append(root.val).append(spliter);
serializeHelper(root.left, sb);... | [
"public String toStringPreOrder()\r\n\t{\r\n\t\tString output = \"\";\r\n\t\t\r\n\t\toutput = buildStringPreOrder(root);\r\n\t\t\r\n\t\treturn output;\r\n\t}",
"public String preorderToString() {\r\n StringBuilder sb = new StringBuilder();\r\n\tpreorderToString(sb, root);\r\n\treturn sb.toString();\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets (as xml) the "WindowsVersion" element | com.microsoft.schemas.office.x2006.digsig.STVersion xgetWindowsVersion(); | [
"java.lang.String getWindowsVersion();",
"java.lang.String getWkversion();",
"public String getXmlVersion() {\n if (config.getXMLVersion() == Configuration.XML10) {\n return \"1.0\";\n } else {\n return \"1.1\";\n }\n }",
"public String getXliffVersion()\n\t{\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method creates the gridPane which is used for the layout. | private GridPane initializeGrid() {
final GridPane grid = new GridPane();
grid.setPadding(new javafx.geometry.Insets(
GRID_MARGIN, GRID_MARGIN, GRID_MARGIN, GRID_MARGIN));
grid.setVgap(GRID_GAP);
grid.setHgap(GRID_GAP);
Style.setBackground(getBackgroundPath(), gri... | [
"private GridPane inicializarPanelGrid() {\n GridPane gridPane = new GridPane();\n\n // Position the pane at the center of the screen, both vertically and horizontally\n gridPane.setAlignment(Pos.CENTER);\n\n // Set a padding of 20px on each side\n gridPane.setPadding(new Insets(4... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that loads the memento selected by the user by calling the loadSaved method. | private void manageMementoToLoad(String toLoad, List<Memento> mementos) {
Iterator<Memento> mIter = mementos.iterator();
Memento actual = null;
while (mIter.hasNext()) {
actual = mIter.next();
if (actual.getName().equals(toLoad)) {
//When the memento is found all the windows needs to be closed
... | [
"public void restoreFromMemento(Memento memento){\n nombre = memento.getSavedState();\n }",
"private void initializeMementoAndSelection()\r\n\t{\r\n\t\tif (memento != null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t} else\r\n\t\t{\r\n\t\t\tmemento = loadMementoState();\r\n\t\t\tif (memento == null)\r\n\t\t\t{\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method create the lines of object's path | private void Create_Path() {
lines = new Line[getPoints().size()];
for (int i = 1; i < getLines().length; i++) {
lines[i] = new Line(getPoints().get(way[i]).getX(), getPoints().get(way[i]).getY(), getPoints().get(way[i - 1]).getX(), getPoints().get(way[i - 1]).getY());
}
line... | [
"private String createPathLines(Pacman p) {\n\t\tString s = \"\";\n\t\ts += \"<name>\" + \"Paths\" + \"</name>\" + \"<Style id=\\\"yellowLineGreenPoly\\\">\" + \"<LineStyle>\"\n\t\t\t\t+ \"<color>ffff0000</color>\" + \"<width>8</width>\" + \" </LineStyle>\" + \"<PolyStyle>\"\n\t\t\t\t+ \"<color>7f00ff00</color>\" +... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the ngay bat dau of this ke hoach kiem dem nuoc. | @Override
public java.util.Date getNgayBatDau() {
return _keHoachKiemDemNuoc.getNgayBatDau();
} | [
"public int getDanhgia() {\n return danhgia;\n }",
"public String getDENNGAY()\n {\n return this.DENNGAY;\n }",
"public String getDUONG_DUNG()\n {\n return this.DUONG_DUNG;\n }",
"public String getMA_DUONG_DUNG()\n {\n return this.MA_DUONG_DUNG;\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
detect if user presses enter, change theta accordingly | public boolean onKey(View view, int key, KeyEvent event){
if((event.getAction() == KeyEvent.ACTION_DOWN) && (key == KeyEvent.KEYCODE_ENTER)){
if(!theta_input.getText().toString().equals("")){
theta = Double.parseDouble(theta_input.getText().toString());
... | [
"public void updateCoordinates(KeyEvent event){\n\t\tif (event.getCode() == KeyCode.ENTER){\n\t\t\ttry{\n\t\t\t Double x = Double.parseDouble(originX.getText());\n\t\t\t\tDouble y = Double.parseDouble(originY.getText());\n\t\t\t\tcontroller.ACTIONS.push(new MoveUMLNode(note, x, y));\n\t\t event.consume();\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a the value of the entry masked if its considered as a password There are two cases when passwords are masked: 1. The key contains the string "pass". In this case, the entire value is considered a password and replaced completely with a masking string. 2. The value matches a regular expression. Strings like "HA... | private String mask(String key, String value) {
if (key == null || value == null || value.isEmpty()) {
return value;
}
if (isPasswordKey(key)) {
return PASSWORD_MASK;
}
return maskPasswordsIfNecessary(value);
} | [
"private String extractPassword() {\n return SwingUtil.extract(passwordJPasswordField, Boolean.TRUE);\n }",
"NamespacedProperty getPasswordExpression();",
"public String getPassword()\n {\n String info=userInfo;\n \n if (info==null) \n return null; \n \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
General list model to be use from UI Event Thread This will be automatically updated in UI Event Thread with changes and listeners if any will be notified | public interface ListModel {
/**
* Returns the length of the list.
* @return the length of the list
*/
int getSize();
/**
* Returns the value at the specified index.
* @param index the requested index
* @return the value at <code>index</code>
*/
Object getElementA... | [
"public interface ListModel\n{\n /** Register an object that will be notified when the list contents\n * change.\n */\n public void addListDataListener(ListDataListener l);\n\n /** Returns the value at the specified index.\n */\n public Object getElementAt(int index);\n\n /** Returns the ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Create the host classloader. | private ClassLoader createHostClassLoader() throws MojoExecutionException {
Set<URL> hostClasspath = artifactHelper.resolve("org.codehaus.fabric3", "fabric3-api", runtimeVersion, Artifact.SCOPE_RUNTIME, "jar");
hostClasspath.addAll(artifactHelper.resolve("org.codehaus.fabric3", "fabric3-host-ap... | [
"private ClassLoader createBootClassLoader(ClassLoader hostClassLoader) throws MojoExecutionException {\n \n Set<URL> bootClassPath = artifactHelper.resolve(\"org.codehaus.fabric3\", \"fabric3-test-runtime\", runtimeVersion, Artifact.SCOPE_RUNTIME, \"jar\");\n return new URLClassLoader(bootClas... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the paymentDetails value for this DoExpressCheckoutPaymentRequestDetailsType. | public void setPaymentDetails(eBLBaseComponents.apis.ebay.PaymentDetailsType[] paymentDetails) {
this.paymentDetails = paymentDetails;
} | [
"public void setPersonalDetails(PersonalDetails details)\n\t{\n\t\taccountInformation = details;\n\t}",
"void setAsicPaymentDetails(au.gov.asic.types.fss.InvoiceType.AsicPaymentDetails asicPaymentDetails);",
"public void setDEAL_TRANS_DETAILS(byte[] DEAL_TRANS_DETAILS)\r\n {\r\n\tthis.DEAL_TRANS_DETAILS = DE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Is it okay to assume that (precision,scale) parameters == (precision,scale) of the decimal type and return a Decimal with (precision,scale) of the decimal type? | @Override
public Decimal getDecimal(int rowId, int precision, int scale) {
return (Decimal) primitiveValueReader.read(vector, getRowIndex(rowId));
} | [
"public int getDecimalScale() {\n return decimalScale;\n }",
"BigDecimal getDecimalValue();",
"private static DecimalData toDecimalFromBytes(\n int precision, int scale, byte[] bytes, int offset, int sizeInBytes) {\n int i = 0;\n\n // Remove white spaces at the beginning\n by... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the field index for a given fieldName and prefix where given an ePath Person.Address.city , fieldName=city and prefix=Person.Address, will return 1 if the field does not exist in the object definition | public int getFieldIndex(String fieldName, String prefix) {
if(lookupMap.get(prefix) == null)
return -1;
Integer i = lookupMap.get(prefix).get(fieldName);
if (i == null)
return -1;
else
return i.intValue();
} | [
"public int getFieldCount(String fieldName);",
"int[] getFieldIndex();",
"public static int getJFieldValue(\n final String fieldSpec\n ) throws NotFoundException {\n for (int jx = 0; jx < J_FIELD_NAMES.length; ++jx) {\n String[] split = J_FIELD_NAMES[jx].split(\"/\");\n fo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the continuation manager that is used by this site. | public ContinuationManager getContinuationManager()
{
return mData.mContinuationManager;
} | [
"public ContestManager getContestManager() {\r\n return this.delegate.getContestManager();\r\n }",
"public Account getContinuationAccount() {\n return continuationAccount;\n }",
"public Continuation getContinuation() {\r\n final String continuStr = this.attributesMap.get(\"continuatio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the location of the item. Remark : If loc and loc_data different from database, say datas not uptodate | public void setLocation(ItemLocation loc, int loc_data)
{
if (loc == _loc && loc_data == _locData)
return;
_loc = loc;
_locData = loc_data;
_storedInDb = false;
} | [
"public void setLocation(ItemLocation loc)\n\t{\n\t\tsetLocation(loc, 0);\n\t}",
"@Override\n public void setLocation(Point3D loc) throws InvalidDataException {\n myMovable.setLocation(loc);\n }",
"public void setLocation(Location loc){\n locationSelected = loc;\n }",
"private void setI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the row of a desired PSM. | private int getPsmRow(long psmKey) {
int modelIndex = IntStream.range(0, psmKeys.length)
.filter(i -> psmKeys[i] == psmKey)
.findAny()
.orElse(-1);
return modelIndex == -1 ? -1 : ((SelfUpdatingTableModel) psmTable.getModel()).getRowNumber(modelInd... | [
"public int getRow ()\r\n {\r\n return row;\r\n }",
"public int getRow(){\n\t\treturn this.row;\n\t}",
"io.dstore.engine.procedures.MiGetProcedureParameters.Response.Row getRow(int index);",
"public Object getObject(int row);",
"public int getRow() {\n\t\treturn row_index;\n\t}",
"public int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the specified Process was successfully removed from the list of processes to destroy upon VM exit. | public boolean remove( Process process )
{
return processes.remove( process );
} | [
"public boolean removeJob(Process p)\n {\n \tif(activeJob != null && activeJob.equals(p))\n \t{\n \t\tactiveJob = null;\n \t\treturn true;\n \t}\n \treturn processes.remove(p);\n }",
"public boolean removeJob(Process p) {\n // Remove the next lines to start your implementation\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads formulated console input and removed any duplicates from the LL. Input: First line of input contains number of test cases T. For each test case, first line of input contains length of linked list and next line contains the linked list data. Output: For each test case, there will be a single line of output which c... | public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
while (t > 0) {
int n = sc.nextInt();
RemoveDuplicateFromSortedLL llist = new RemoveDuplicateFromSortedLL();
int a1 = sc.nextInt();
LLNode he... | [
"public void test()\n {\n\n\n ListNode l1 = new ListNode(1);\n ListNode l2 = new ListNode(2);\n ListNode l3 = new ListNode(3);\n ListNode l4 = new ListNode(3);\n ListNode l5 = new ListNode(4);\n ListNode l6 = new ListNode(5);\n\n l1.next = l2;\n l2.next = l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the next reference from this node in list i. | public SkipListNode<K> next(int i)
{
return next.get(i);
} | [
"public L2ListElem getNext() { \r\n return next;\r\n }",
"public E next() {\r\n\r\n\t\tE result = null;\r\n\t\tif (hasNext()) {\r\n\t\t\tresult = links.get(counter);\r\n\t\t\tcounter++;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public DNode getNext() {\n\t\t\tif (!hasNext())\n\t\t\t\treturn null;\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize a newly created scope builder to generate a scope that will report errors to the given listener. | private ScopeBuilder(AnalysisErrorListener errorListener) {
this.errorListener = errorListener;
} | [
"public void addScopeRegistrationListener(ScopeEventListener listener);",
"public Builder setScope(\n com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.Builder builderForValue) {\n if (scopeBuilder_ == null) {\n scope_ = builderForValue.build();\n } else {\n scopeBuilder_.s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns singleton instance of CustomerDatabaseHelper | public static CustomerDatabaseHelper getInstance(Context context){
if(_instance == null){
_instance = new CustomerDatabaseHelper(context);
}
return _instance;
} | [
"public synchronized CustomerDAO getCustomerDAO() {\n\t\treturn new CustomerDAO(this);\n\t}",
"static DbHelper getInstance(Context context) {\n if (dbInstance == null) {\n dbInstance = new DbHelper(context);\n }\n return dbInstance;\n }",
"public synchronized CustomerAccountDA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Disposes the joystick class and all of its resources. | public void dispose()
{
// dispose these when the class is called to dispose
sprites.clear();
joystickInner.dispose();
joystickOuter.dispose();
} | [
"public void destroy() {\n gui.dispose();\n }",
"@Override\n public void dispose() {\n if ( spriteComponent != null )\n spriteComponent.dispose();\n if ( bulletPhysicsComponent != null )\n bulletPhysicsComponent.dispose();\n }",
"@Override\n public void dis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__EnumerationElement__Group__2__Impl" $ANTLR start "rule__EnumerationElement__Group_1__0" InternalCommunicationObject.g:2884:1: rule__EnumerationElement__Group_1__0 : rule__EnumerationElement__Group_1__0__Impl rule__EnumerationElement__Group_1__1 ; | public final void rule__EnumerationElement__Group_1__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalCommunicationObject.g:2888:1: ( rule__EnumerationElement__Group_1__0__Impl rule__EnumerationElement__Group_1__1 )
// InternalCommu... | [
"public final void rule__EnumerationElement__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalCommunicationObject.g:2807:1: ( rule__EnumerationElement__Group__0__Impl rule__EnumerationElement__Group__1 )\n // Inter... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes all values of property AlbumTitle [Generated from RDFReactor template rule removeall1dynamic] | public void removeAllAlbumTitle() {
Base.removeAll(this.model, this.getResource(), ALBUMTITLE);
} | [
"public void removeAllOriginalAlbumTitle() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ORIGINALALBUMTITLE);\r\n\t}",
"public void removeAlbumTitle( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}",
"public void removeOriginal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / Returns the ECI position of the satellite. / / The time of position calculation, in minutespastepoch. / The ECI location of the satellite at the given time. | public EciTime PositionEci(double mpe) {
return orbit.positionEci(mpe);
} | [
"public static Coord3D getSunPosition(ZonedDateTime time) {\r\n final double ASTRONOMICAL_UNIT_METERS = 149597870700.0;\r\n\r\n // Get the right ascension and declination (lat/lon)\r\n double[] latLon = calcSubsolarPoint(calcJulianDate(time));\r\n GeoCoord3D sunPosition = GeoCoord3D.from... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
print all cities between the one in which payer built and asks what city bonus wants | public int askWhatCityBonus(List<City> cities); | [
"public void printAllCities()\n { // to be implemented in part (d) }\n }",
"private void showCities() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"[\");\n for (int i=0;i<cities.size()-1;i++) {\n sb.append(cities.get(i));\n if (i<cities.size()-2)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the Graphics this GameCanvas uses. | public Graphics getGraphics()
{
return g;
} | [
"public Graphics getGraphics() {\r\n\t\treturn this.graphics;\r\n\t}",
"public Graphics getGraphics();",
"public Graphics getBuffer(){\n\t\tif (graphics == null){\n\t\t\ttry{\n\t\t\t\tgraphics = strategy.getDrawGraphics();\n\t\t\t} catch(IllegalStateException e){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tretur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Named_arguments__Group_1__0" $ANTLR start "rule__Named_arguments__Group_1__0__Impl" ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/srcgen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:4970:1: rule__Named_arguments__Group_1__0__Impl : (... | public final void rule__Named_arguments__Group_1__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/in... | [
"public final void rule__Named_arguments__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/content... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unregister a observer (listener) to be informed about progress and completion. | public void unregisterFileObserver(FileProgressListener observer) {
int i = 0;
while (i < fileObservers.size()) {
WeakReference<FileProgressListener> observerRef = fileObservers.get(i);
if (observerRef == null || observerRef.get() == observer) {
fileObservers.remo... | [
"public void unregisterListener() {\n\t\tthis.listener = null;\n\t}",
"protected abstract void unregisterObserver();",
"protected void unregisterObserver(Observer.GraphAttributeChanges observer) {\n observers.remove(observer);\n }",
"public void unregisterAsObserver() {\n\t\tmyList.deleteObserver(th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Switches the wizard to the given step. The step number must be between 0 (introduction) and 3. | public void goToStep (int step)
{
if (step < 0 || step > 4)
return;
if (mCurrentStep == step)
return;
// Hide the current step.
switch (mCurrentStep)
{
case 0:
mPanelZero.setVisible(false);
break;
case 1:
mPanelOne.setVisible(false);
break;
case 2:
mPanelT... | [
"public void setStep(int step) {\n\t\tthis.step = step;\n\t}",
"public void setStep(Integer step) {\n this.step = step;\n }",
"public void setStep(int step) {\n this.step = step;\n }",
"public void setStep(Number stepArg)\r\n {\r\n dialog.setStep(stepArg);\r\n }",
"public vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
gets all customers ids | public synchronized int[] getIds() throws SQLException{
int[] ids = new int[getNumberOfCustomers()];
int place = 0;
try{
data.DbConCustomer();
dba = "SELECT id FROM customers";
ps = data.DbConCustomer().prepareStatement(... | [
"private static ArrayList<Integer> getCustomerIDs() {\r\n ArrayList<Integer> ids = new ArrayList<>();\r\n String query = \"SELECT DISTINCT customer_id FROM transactions\";\r\n Connection conn = lpConnection();\r\n try {\r\n Statement st = conn.createStatement();\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use RequestPrivateScore.newBuilder() to construct. | private RequestPrivateScore(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
} | [
"private RequestPushScore(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"private RequestGlobalScores(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"private ResponseScores(com.google.protobuf.GeneratedMessage.Builder<?> bui... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the sMemFax value for this EntityResMain. | public String getSMemFax() {
return sMemFax;
} | [
"public void setSMemFax(String sMemFax) {\n this.sMemFax = sMemFax;\n }",
"public java.lang.String getFax()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the student_dob of this primary school student. | public void setStudent_dob(java.lang.String student_dob) {
_primarySchoolStudent.setStudent_dob(student_dob);
} | [
"@Override\n public void setDob(long dob) {\n _teacher.setDob(dob);\n }",
"public void testSetDob() {\n System.out.println(\"setDob\");\n LocalDate dob = null;\n Student instance = null;\n instance.setDob(dob);\n // TODO review the generated test code and remove the... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column t_house_business_msg.house_addr | public String getHouseAddr() {
return houseAddr;
} | [
"public String getAddrhouseid() {\n return addrhouseid;\n }",
"public String getHouseAddress() {\n return houseAddress;\n }",
"public java.lang.String getAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bytes snapshot_err = 3; | public com.google.protobuf.ByteString getSnapshotErr() {
return snapshotErr_;
} | [
"com.google.protobuf.ByteString getSnapshotErr();",
"public com.google.protobuf.ByteString getSnapshotErr() {\n return snapshotErr_;\n }",
"int getSnapshotExitcode();",
"void uploadFailed(long bytes);",
"public anywheresoftware.b4j.objects.ImageViewWrapper.ImageWrapper _snapshot() throws Exception{... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the collisionBox of the Gold object. | public Rectangle2D.Double getCollisionBox() {
return this.collisionBox;
} | [
"public CollisionBox getcBox() {\n\t\treturn this.enemyCollisionBox;\n\t}",
"private void generateCollisionBox() {\n collisionBox = new CollisionBox(this.getX(), this.getY(), this.getWidth(), this.getHeight());\n }",
"private GObject getCollidingObject(){\n\t\t\tdouble ballX = ball.getX();\n\t\t\tdoub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get heat of this cell. Heat is get as an average heat of all the heat cells under. | public double getHeat() {
double numberOfHeatCells = 0;
double heatSum = 0;
for (Area area : Areas.listOfAreas) {
if (area.getGrid() == null) {
continue;
}
for (HeatCell heatCell : area.getGrid().getCells()) {
if (co... | [
"public float getHeatCapacity(){\n\t\treturn heatCapacity;\n\t}",
"int getHeatGenerated();",
"public Point getHeatMapC() {\n return heatMapC;\n }",
"public double getDeltaReactionHeat() {\n return deltaReactionHeat;\n }",
"public int getheat_setting()\n {\n return heat_setting;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to find the Function that corresponds to Polysilicon on a given layer. | public static Function getPoly(int level)
{
Function func = (Function)polyLayers.get(new Integer(level));
return func;
} | [
"private Layer geometricLayer(Layer layer)\n \t{\n \t\t// layers from an alternate technology are accepted as-is\n \t\tif (layer.getTechnology() != tech) return layer;\n \n \t\tLayer.Function fun = layer.getFunction();\n \n \t\t// convert gate to poly1\n \t\tif (fun == Layer.Function.GATE)\n \t\t{\n \t\t\tLayer pol... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end truncate stripDash strips dash and following characters off a string (i.e. 123401 to 1234) | private final static String stripDash( String s ) {
StringTokenizer tokDash = new StringTokenizer(s, "-");
if (tokDash.countTokens() > 1) {
return tokDash.nextToken();
} else {
return s;
}
} | [
"private void transNumberToJustDigits(String number) {\n String[] justDigits = number.split(\"-\");\n\n for (String justDigit : justDigits) {\n numberWithoutDashes += justDigit;\n }\n\n }",
"private static String trimInitialHyphen(String in)\r\n\t{\r\n\t\tString str;\r\n\t\tif (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines a composite's QName. This method preserves backward compatibility for specifying SCDL location in an iTest plugin configuration. | private QName parseCompositeQName(URL url) throws IOException, XMLStreamException {
XMLStreamReader reader = null;
InputStream stream = null;
try {
stream = url.openStream();
XMLFactory xmlFactory = getSystemComponent(XMLFactory.class, XML_FACTORY_URI);
reader... | [
"public abstract QName getSecurityElementQName();",
"public static QName getQName(Document document, String qname)\n {\n qname = StringUtil.notNull(qname).trim();\n\n String[] nameParts = qname.split(\":\");\n\n if (nameParts.length == 1)\n {\n if (!StringUtil.isNullOrEmpty(document.getNamespace... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Waits for completion of a process. | @GET
@ApiOperation("Wait for a process to finish")
@Produces(MediaType.APPLICATION_JSON)
@javax.ws.rs.Path("/{id}/waitForCompletion")
public ProcessEntry waitForCompletion(@ApiParam @PathParam("id") UUID instanceId,
@ApiParam @QueryParam("timeout") @DefaultValue... | [
"public void waitForCompletion()\n {\n if ( null != process )\n {\n try\n {\n final int rc = process.waitFor();\n setReturnCode(rc);\n setError(errorGobbler.getResult());\n setResultat(outputGobbler.getResult());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fits a polygon to the provided sequence of connected points. The found polygon is returned as a list of vertices. Each point in the original sequence is guaranteed to be within "toleranceDist' of a line segment. Internally a splitandmerge algorithm is used. See referenced classes for more information. Consider using in... | public static List<PointIndex_I32> fitPolygon(List<Point2D_I32> sequence, boolean loop,
double toleranceDist, double toleranceAngle, int iterations) {
GrowQueue_I32 splits;
if( loop ) {
SplitMergeLineFitLoop alg = new SplitMergeLineFitLoop(toleranceDist,toleranceAngle,iterations);
alg.process(... | [
"private List<Geometry> splitPolygon(final Polygon aPolygon) {\n\n \t\t \tthis.geometryFactory = aPolygon.getFactory();\n \n \t\t \tfinal UsefulSplitLineBuilder splitLine = getSplitLine();\n\t\t\tSplitGraphBuilder graphBuilder = new SplitGraphBuilder(aPolygon, splitLine);\n\t\t\tgraphBuilder.build();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a single hashcode from the io's name, id and type | @Override
public int hashCode() {
return Objects.hash(name, type, id);
} | [
"public int getId() {\n // some code goes here\n return this.file.getAbsoluteFile().hashCode();\n }",
"public String getHashType() {\n\t\treturn _hash_type;\n\t}",
"public int getId() {\n // some code goes here\n \treturn m_f.getAbsoluteFile().hashCode();\n }",
"public int getId(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DELETE /aurestobills/:id : delete the "id" auRestoBill. | @DeleteMapping("/au-resto-bills/{id}")
@Timed
public ResponseEntity<Void> deleteAuRestoBill(@PathVariable Long id) {
log.debug("REST request to delete AuRestoBill : {}", id);
auRestoBillRepository.delete(id);
auRestoBillSearchRepository.delete(id);
return ResponseEntity.ok().head... | [
"@DeleteMapping(\"/bebidas/{id}\")\n @Timed\n public ResponseEntity<Void> deleteBebida(@PathVariable Long id) {\n log.debug(\"REST request to delete Bebida : {}\", id);\n bebidaRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets calories burned text. | @GET
@Produces(MediaType.TEXT_PLAIN)
@Path("/text/{activity}/{weight}/{duration}/{unit}")
public Response getCaloriesBurnedText(
@PathParam("activity") int activityID,
@PathParam("weight") double weight,
@PathParam("duration") double duration,
@PathParam("unit... | [
"String getPastTense();",
"public String getStory(){\r\n return String.format(storyText);\r\n }",
"public String getCardText(){\n return chanceCard.getCardText();\n }",
"@NotNull\n public String getDivinationText()\n {\n if (divinationText.size() < 1)\n {\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a InflatableMap with the same mappings as the given map. | public InflatableMap(Map<? extends K, ? extends V> map)
{
putAll(map);
} | [
"public InflatableMap()\n {\n }",
"public static <K, V> IModel<Map<K, V>> ofMap(final Map<K, V> map)\n\t{\n\t\treturn new MapModel<>(map);\n\t}",
"protected abstract Map<?,?> createMap(Map<?,?> input);",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the codigoReserva value for this CarroFinalizar. | public java.lang.String getCodigoReserva() {
return codigoReserva;
} | [
"public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }",
"public void setCodigoReserva(java.lang.String codigoReserva) {\n this.codigoReserva = codigoReserva;\n }",
"public java.lang.String getCodigo() {\n return codigo;\n }",
"public String getCodVendedor() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test for addCourse() with invalid inputs | @Test
public void testAddCourseInValidInput() throws Exception{
Course course = new Course(11,null,"Full Stack",0);
when(service.addCourse(Mockito.any(Course.class))).thenThrow(InvalidValueException.class);
mockMvc.perform(post("/course/add").accept(MediaType.APPLICATION_JSON)
.content(mapper.writeValueA... | [
"@Override\n\tpublic void addCourse() {\n\t\t// TODO Auto-generated method stub\n\t\t//// Exception related to existing course ID\n\t\ttry {\n\t\t\tlogger.info(\"In addCourse method\");\n\t\t\tCourse course = new Course();\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tlogger.info(\"Enter Course Name\");\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the error message dialog to notify SD card is mounted mid trace or before start of ARO Data Collector trace | private void createAROSDCardMountedErrorDialog(boolean isMidtrace) {
setContentView(R.layout.arocollector_errormessage);
final TextView mAroErrorText = (TextView) findViewById(R.id.aro_error_message_text);
final Button buttonOK = (Button) findViewById(R.id.dialog_button_ok);
if (isMidtr... | [
"private void createAROSDCardErrorDialog() {\n setContentView(R.layout.arocollector_errormessage);\n final TextView mAroErrorText = (TextView) findViewById(R.id.aro_error_message_text);\n final Button buttonOK = (Button) findViewById(R.id.dialog_button_ok);\n mAroErrorText.setText(R.stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this method rounds the specified time to the nearest interval passed. It is useful in the schedule to round times to the nearest 5 minutes for example | public static long roundTimeUp(long time, long toNearest)
{
long extraTime = time % toNearest;
if (extraTime == 0)
{
return time;
}
else
{
return time - (time % toNearest) + toNearest;
}
} | [
"public void roundTimes() {\n\t\tint n = 0; // number of \"substract one minute\" iterations\n\t\tTimePair tp = null; // a temporary timepair\n\t\tfor (int i = 0; i < alTimePairs.size(); i++) {\n\t\t\t// get the time pair\n\t\t\ttp = alTimePairs.get(i);\n\t\t\tif (tp.getStrType() == PERIOD_TYPE_REST) {\n\t\t\t\tlon... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return name of newsletter field | public String getNewsletterFieldName() {
return getStringProperty(NEWSLETTER_FIELD_NAME_KEY);
} | [
"public void setNewsletterFieldName(final String value) {\n setProperty(NEWSLETTER_FIELD_NAME_KEY, value);\n }",
"public Text getNameField()\n\t{\n\t\treturn fNameText;\n\t}",
"public String getName(){\n return field.getName();\n }",
"public String getNameFieldText() {\n return name... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the sound section name string. | public final String getSoundSectionName() {
return (String) shieldSoundSection[0];
} | [
"public String getSection_name() {\n return section_name;\n }",
"public String getSectionName() {\n return sectionName;\n }",
"public String getSectionName() {\n return mSectionName;\n }",
"public final String getCooldownSectionName() {\r\n\t\treturn (String) cooldownSection[0];\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the image who's center is closest to screen center. We can't just get the closest image to center from the sorted pan image list, because that list is also sorted by image type, whereas here we just want the closest. Also, if the selected image is sufficiently close to the "closest" image, want to return the selec... | private PanImageEntry findPanImageEntryClosestToCenter() {
findProjectedZs();
PanImageEntry closestEntry = null;
for (int n=0; n<panImageList.length; n++) {
PanImageEntry entry = panImageList[n];
if (entry.draw) {
if (closestEntry == null) {
closestEntry = entry;
}
else if (entry.project... | [
"private void findSelectedImageEntry() {\n\t\tPanImageEntry oldSelected = selectedPanImageEntry;\n\t\tPanImageEntry panImageEntry = findPanImageEntryClosestToCenter();\n\t\tif ((panImageEntry != null) && (panImageEntry != oldSelected)) {\n\t\t\tselectedPanImageEntry = panImageEntry;\n\t\t\teditor.setSelectedImage(s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests that exporting a conversation will export the conversation correctly. | @Test
public void testExportingConversationExportsConversation() throws IOException {
ConversationExporter exporter = new ConversationExporter();
String[] option = { "", "" };
String inputFilePath = "chat.txt";
String outputFilePath = "chat.json";
exporter.exportConversation(inputFilePath, outputFilePath, o... | [
"@Test\n\tpublic void testMultipleOptions() throws IOException {\n\t\tConversationExporter exporter = new ConversationExporter();\n\n\t\tString[] option = { \"-obf\", \"-hidewords\", \"pie\", \"-hidenum\" };\n\t\tString inputFilePath = \"chat.txt\";\n\t\tString outputFilePath = \"chat_multiple.json\";\n\t\texporter... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
RC channel 8 value | @MavlinkFieldInfo(
position = 9,
unitSize = 2,
description = "RC channel 8 value"
)
public final int chan8Raw() {
return this.chan8Raw;
} | [
"@MavlinkFieldInfo(\n position = 12,\n unitSize = 2,\n description = \"RC channel 11 value\"\n )\n public final int chan11Raw() {\n return this.chan11Raw;\n }",
"@MavlinkFieldInfo(\n position = 10,\n unitSize = 2,\n description = \"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Extract integer values of specified length of bits at the specified offset within a bit representation of an IPv4 address. | public int extract( long key, int offset, int len ) {
// Determine how far into the bit representation
// we must shift
long shift = 31 - len - offset + 1;
// Construct a mask that shall extract the desired bits
long left = ( ( 1L << len ) - 1 ) << shift;
// Apply the mask
long and = key & left;
... | [
"private int extractInt(byte[] value, int offset) {\r\n int r = 0;\r\n if (reverseEndian) {\r\n for (int i = offset + 3; i >= offset; i--) {\r\n r = r << 8;\r\n r += 0x000000FF & value[i];\r\n }\r\n } else {\r\n for (int i = offset;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the integer value from the specified (singlevalued) attribute. | public static Integer getIntegerValue(Attribute attr) {
Object obj = getSingleValue(attr);
return obj != null ? (Integer) obj : null;
} | [
"public Integer getIntegerAttribute();",
"int getSingleAttrInt();",
"int getIntAttribute2();",
"int getIntAttribute1();",
"protected int getValue(Element element,\n String attribute) {\n int value = 0;\n String stringValue = element.getAttributeValue(attri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets up a collection list workflow. | private void setupWorkflowCollectionListPaired() {
try {
Path workflowFile = Paths.get(LocalGalaxy.class.getResource(
"workflow_collection_list_paired.ga").toURI());
// build workflow
worklowCollectionListId = constructTestWorkflow(workflowFile);
workflowCollectionListLabel = "input_list";
... | [
"private void setupLists()\n {\n goToProjectHome();\n //TODO: This archive has not been updated to match some of the newer BTC & dynamic schema changes\n // specifically: SurveyId is now dynamically named in sub-lists to match the parent-list\n _listHelper.importListArchive(Test... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Represents no style key. | @objid ("40a7a5a2-a090-4f81-bee0-a716ddb565d5")
@Override
public StyleKey getStyleKey() {
return null;
} | [
"@objid (\"ae2a9112-4b98-402b-ae80-dfd042850848\")\n @Override\n public StyleKey getStyleKey() {\n return null;\n }",
"static KeyExtractor.Factory noKey() {\n return KeyExtractors.NoKey::new;\n }",
"static <K extends Comparable<? super K>, V> KeyValue<K, V> makeNoValue(K key)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Start execution Example POST /graph/1234/start | @RequestMapping(value = "/graph/{graphId}/start", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
public String startExecutingGraph(@PathVariable long graphId) {
logger.debug("POST /graph/" + graphId + "/start");
GraphEntity graph = graphDao.get(graphId);
if (graph == null) ... | [
"@PostMapping(value = \"/start\")\n @ResponseStatus(value = HttpStatus.OK)\n public void startSimulation() {\n simulationContextService.startSimulation();\n }",
"void startedBuildingGraph();",
"Node start();",
"@Test\n public void initAndStartExecutionTest() throws ApiException {\n E... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method updates the filtered annotations due to the respective selected checkboxes. | protected void filterAnnotations() {
if ((annotations != null) && !annotations.isEmpty()) {
specPnl.setAnnotations(this.filterAnnotations(annotations));
specPnl.validate();
specPnl.repaint();
}
} | [
"private void UpdateTagsList()\r\n\t{ \r\n\t\t // for every element in our checkboxes from the view array\r\n\t\t for (CheckBox checkBox : this.CBlist) \r\n\t\t {\r\n\t\t\t // if it is checked\r\n\t\t\t if(checkBox.isChecked())\r\n\t\t\t {\r\n\t\t\t\t // Update the values on the local indication array\r\n\t\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
write a table to a csv file. | void writeCsv(Table table, String file_name, Database d) {
File f = new File(d.getName() + "/" + file_name);
FileWriter out = null;
try {
out = new FileWriter(f);
writeFields(table.selectFieldNames(), out);
for (ArrayList<String> key : table.getKeys()) {
writeFields(table.selectR... | [
"public void exportTableToCsv() {\n\n }",
"public void exportToCSV();",
"WriteCsv createWriteCsv();",
"public boolean convertToCSV (Table table) {\n HashMap <Integer, String []> content = table.getContent();\n String title = table.getTitle();\n String extractionType = table.getExtracti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if this path begin with the entirety of ancestorPath | public boolean isSubpath(MutableNodePath ancestorPath) {
if (ancestorPath.size() > size()) {
return false;
}
for (int i=0; i<ancestorPath.size(); i++) {
if (!pathParts.get(i).equals(ancestorPath.getPart(i))) {
return false;
}
}
return true;
} | [
"@Override\r\n public boolean isAncestor(final FileName ancestor) {\r\n if (!ancestor.getRootURI().equals(getRootURI())) {\r\n return false;\r\n }\r\n return checkName(ancestor.getPath(), getPath(), NameScope.DESCENDENT);\r\n }",
"public boolean isPath() {\r\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'field217' field | public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField217(java.lang.CharSequence value) {
validate(fields()[217], value);
this.field217 = value;
fieldSetFlags()[217] = true;
return this;
} | [
"public void setField217(java.lang.CharSequence value) {\n this.field217 = value;\n }",
"public void setField210(java.lang.CharSequence value) {\n this.field210 = value;\n }",
"public void setField483(java.lang.CharSequence value) {\n this.field483 = value;\n }",
"public void setField214(java.lang... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will give Gallaries Id and name in List, when we pass candidateId as Argument. | public List<SelectOptionVO> getCandidateGallarySelectList(Long candidateId,String contentType)
{
try{
log.debug("Entered into getCandidateGallarySelectList() Method");
List<SelectOptionVO> gallarySelectList = null;
List<Object[]> list = gallaryDAO.getGallariesByCandidateId(candidateId,contentType)... | [
"public List<GallaryVO> getCandidateProfileInfo(Long candidateId)\r\n\t{\r\n\t\tlog.debug(\"Entered into getCandidateProfileInfo() Method\");\r\n\t\t\r\n\t\tList<GallaryVO> gallaryVO = new ArrayList<GallaryVO>();\r\n\tList<Object[]> list = candidateProfileDescriptionDAO.getCandidateProfileInfo(candidateId);\r\n\t\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets all keyvalue pairs in a collection. | public ArrayList<Pair<String, String>> getAll(String collection) {
ArrayList<Pair<String, String>> result = new ArrayList<>();
SQLiteDatabase db = getReadableDatabase();
Cursor cursor = db.query(collection, null, null, null, null, null, null);
while (cursor.moveToNext()) {
St... | [
"public synchronized Collection<Map.Entry<K,V>> getAll() {\n return new ArrayList<Map.Entry<K,V>>(map.entrySet()); }",
"Iterable<V> getAllValues(T key);",
"public Collection<String> valuesOfMap() {\n Map<String, String> tempMap = createSimpleMap(\"Fondue\",\"Cheese\");\n\t\treturn tempMap.values();\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Distribui 3 cartas para cada jogador | public void distribuirJog () {
for (int i = 0; i < this.qtdJogadores; i++) {
for (int j = 0; j < 3; j++) {
this.jogadores.get(i).receberCarta(this.bar.comprar());
}
}
} | [
"private void distribuirCartas() {\n\t\tfor (int i = 0; i < 3; i++) {\n\n\t\t\tfor (Jogador jogador : jogadores) {\n\t\t\t\tCarta carta = baralho.retirarCarta();\n\t\t\t\tjogador.recebeCarta(carta);\n\t\t\t}\n\t\t}\n\n\t\t// vira ultima carta do baralho\n\t\tvira = baralho.retirarCarta();\n\t\t\n\t\tbroadcastVira()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Method setAcct() input: Bank bank Constructor which hold the accounts. totalAccountsReadIn number of active accounts fName first Name lName last Name SSN Social Security Number acctNum The account Number acctType the type of account(Checking, Saving, or CD) acctBal the account balance. Process: adds a new account to ... | public void setAccts(Bank bank, int totalAccountsReadIn, String fName, String lName,
String SSN, int acctNum, String acctType, Double acctBal) {
bank.accounts[totalAccountsReadIn] = new Account(fName, lName, SSN, acctNum, acctType,acctBal);
} | [
"public void addAccount(Account anAcct){\n this.accounts.add(anAcct);\n\n }",
"public void createAccount(String accountType, double balance){\r\n // check what is the type of the account being created\r\n /* update the list each time an account is being created and then put it into the has... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The ad group extension setting referenced in the query. .google.ads.googleads.v1.resources.AdGroupExtensionSetting ad_group_extension_setting = 112; | com.google.ads.googleads.v1.resources.AdGroupExtensionSetting getAdGroupExtensionSetting(); | [
"com.google.ads.googleads.v6.resources.AdGroupExtensionSetting getAdGroupExtensionSetting();",
"com.google.ads.googleads.v13.resources.AdGroupExtensionSetting getAdGroupExtensionSetting();",
"com.google.ads.googleads.v1.resources.AdGroupExtensionSettingOrBuilder getAdGroupExtensionSettingOrBuilder();",
"com.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the invariant epcUltimateccdtr. | @Test
public void testEpcUltimateccdtr03() throws Throwable {
List<IInterpretationResult> results;
results = super.interpretConstraintsForInstance(CONSTRAINT_DIRECTORY
+ "/epcUltimateccdtr", MODELINSTANCE_NAME_03, Arrays
.asList(new String[] { "PaymentInstructionInformation2" }));
ass... | [
"@Test\r\n \tpublic void testEpcUltimateccdtr01() throws Throwable {\r\n \t\r\n \t\tList<IInterpretationResult> results;\r\n \t\tresults = super.interpretConstraintsForInstance(CONSTRAINT_DIRECTORY\r\n \t\t\t\t+ \"/epcUltimateccdtr\", MODELINSTANCE_NAME_01, Arrays\r\n \t\t\t\t.asList(new String[] { \"PaymentInstruc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Activities Type'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseActivitiesType(ActivitiesType object) {
return null;
} | [
"public T caseActivityType(ActivityType object) {\r\n\t\treturn null;\r\n\t}",
"public T caseResourceActivityType(ResourceActivityType object) {\r\n\t\treturn null;\r\n\t}",
"public T caseDeploymentActivityType(DeploymentActivityType object) {\r\n\t\treturn null;\r\n\t}",
"String getCaseActivityType();",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the encryption of the value p. | public int crypt(int p){
int c;
c = r0.mapForward(p);
c = ref.map(c);
c = r0.mapBackward(c);
return c;
} | [
"String getEncryptedPsw();",
"java.lang.String getEncryptKey();",
"java.lang.String getPasswordEncryptionKey();",
"public String getEncrypt() {\n return encrypt;\n }",
"public Encryptor getEnc() { return this.enc; }",
"BigInteger encryption(String value, Key publicKey) throws NullPointerExceptio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the object stored in the "lefthand" side of the duple. | public final L getFst() {
return leftMember;
} | [
"public GameObject getLeft() {\n\t\tif (this.getColumn() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn this.level.objectAtIndexes(this.row, this.column - 1);\n\t}",
"public L getLeft() {\n return left;\n }",
"public Entity getShoulderEntityLeft ( ) {\n\t\treturn extract ( handle -> handle.getShoulderEn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
java.lang.String getWorkgroup_name() Returns the value of field 'workgroupcall'. The field 'workgroupcall' has the following description: Schluessel des AK | public long getWorkgroupcall()
{
return this._workgroupcall;
} | [
"public java.lang.String getWorkgroup_name()\n {\n return this._workgroup_name;\n }",
"public String getWorkgroupName() {\n return this.workgroupName;\n }",
"public String getWorkGroupName() {\n return this.workGroupName;\n }",
"public Workgroup getWorkgroup() {\r\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Function Description : Function for selecting the All Sources option under Browse Menu Function Name : navigateToAllSources Author : Seetha Date Created : Feb'15 | public Sources navigateToAllSources() {
Boolean blnFirst = false;
WebElement btnIdBrowse = commonLibrary.isExist(UIMAP_Home.btnIdBrowse, 20);
commonLibrary.clickButtonParentWithWait(btnIdBrowse, "Browse");
try {
commonLibrary.sleep(3000);
} catch (Exception e) {
System.out.println(e.toString());
thro... | [
"public Sources selectchildoptioninSources(String option) {\n\t\tBoolean blnSecond = false;\n\t\t/*\n\t\t * WebElement btnIdBrowse =\n\t\t * commonLibrary.isExist(UIMAP_Home.btnIdBrowse, 20);\n\t\t * commonLibrary.clickButton_Parent_WithWait(btnIdBrowse, \"Browse\"); try\n\t\t * { commonLibrary.sleep(Mwait); } catc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns number of "financialStatements" element | public int sizeOfFinancialStatementsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(FINANCIALSTATEMENTS$16);
}
} | [
"public static int financialCount() {\r\n\t\tString item = \" financial institution \";\r\n\t\tString texts = doc.text();\r\n\t\tint count = 0;\r\n\t\tint fromIndex = 0;\r\n\t\twhile( fromIndex != -1) {\r\n\t\t\tfromIndex = texts.indexOf(item, fromIndex);\r\n\t\t\t\r\n\t\t\tif(fromIndex != -1) {\r\n\t\t\t\tcount++... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the position of the separator in adapter | int getSeparatorPos(); | [
"double getDividerPosition();",
"public interface SeparatorPositionListener {\n\n /**\n * Return the position of the separator in adapter\n * @return the position of the separator in adapter\n */\n int getSeparatorPos();\n\n /**\n * Return the maximum item coun... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check automationName capability with android < 6 | @Test(groups={"ut"})
public void testCreateCapabilitiesWithApplicationOldAndroid2() {
SeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());
context.setMobilePlatformVersion("5.0");
context.setPlatform("android");
context.setDeviceName("Samsung Galasy S5")... | [
"@Test(groups={\"ut\"})\r\n\tpublic void testCreateDefaultCapabilitiesWithAutomationName() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setMobilePlatformVersion(\"8.0\");\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string reviewsUrl = 4; | boolean hasReviewsUrl(); | [
"@javax.annotation.Nullable\n @ApiModelProperty(example = \"https://github.com/CircleCI-Public/api-preview-docs/pull/123\", value = \"The code review URL.\")\n public String getReviewUrl() {\n return reviewUrl;\n }",
"public void setReviewImageurl(String url) {\n this.rev_img_url = url;\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Switch to landscape view | void landscape() ; | [
"void setLandscapeMode(boolean portrait);",
"void setLandscape(boolean ls);",
"public void onLayoutOrientationChanged(boolean isLandscape);",
"boolean getLandscape();",
"void portrait() ;",
"private void setUpLandscapeView() {\n int[] numberPickerValues = getNumberPickersValues();\n setConte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Move to specified page index. | public void moveTo(int pageIndex); | [
"public void moveItemToNextPage(int pageIndex, int itemIndex);",
"void setPage(int index) throws IndexOutOfBoundsException;",
"void setCurrentPageIndex(\n int index);",
"abstract public void goToIndex(int index);",
"void setCurrentPage(int index);",
"public void moveItemToPreviousPage(int pageIndex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor that takes a BoardGuiController and Persons enum as arguments. The Persons can either be PLAYER or OPPONENT. | public HeroGUI(BoardGuiController boardController, Persons ENUM) {
this.boardController = boardController;
this.ENUM = ENUM;
if(this.ENUM==Persons.PLAYER){
laneENUM=Lanes.PLAYER_HERO;
}else{
laneENUM=Lanes.ENEMY_HERO;
}
this.boardController.addHeroListener(this, ENUM);
b1 = BorderFactory.createEmpt... | [
"public LobbyController() {\n this.lastIndex = 0;\n this.playerBoxes = new EnumMap<>(GameCharacter.class);\n }",
"public GameController() \n\t{\n\t\tthis._playerX = new Player('X', \"Player X\");\n\t\tthis._playerO = new Player('O', \"Player O\");\n\t\t_board = new Board();\n\t}",
"public Perso... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of readFile method, of class GraphFactory. | @Test
public void testReadFile() {
Graph<Integer> g = GraphFactory.readFile("trial.txt");
System.out.println(g.toString());
} | [
"void readGraphFromFile();",
"@Test\n public void testReadFromFileRelations() throws Exception {\n System.out.println(\"readFromFileRelations\");\n String filename = \"susers.txt\";\n String filename1 = \"srelationships.txt\";\n RedeSocial instance = new RedeSocial();\n insta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AstActor__NameAssignment_2" $ANTLR start "rule__AstActor__ParametersAssignment_4_0" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23407:1: rule__AstActor__ParametersAssignment_4_0 : ( ruleAstParameter ) ; | public final void rule__AstActor__ParametersAssignment_4_0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23411:1: ( ( ruleAstParameter ) )
... | [
"public final void rule__AstActor__ParametersAssignment_4_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:23426:1: ( ( ruleAstPar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A function to modify the playground price, cancellation period,or available hours, it has to extra option whether to return to the playground owner menu or exit | private static void modifyPlayground() {
System.out.println("Please select one option: \n\t1. Modify price\n\t2. Modify cancellation period\n\t3. available hours\n\t4. back to Playground owner menu\n\t5. exit");
int choice = scanner.nextInt();
switch (choice) {
case 1:
... | [
"private static void modifyAvaliableHours() {\n System.out.println(\"Please select one option: \\n\\t1. Add available hour\\n\\t2. remove available hour\\n\\t3. back to playground owner menu\");\n int choice = scanner.nextInt();\n switch (choice) {\n case 1:\n if (play... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sorts the dataset according to the given columns and the given range. Will sort input and output analogously. | public void sort(Swapper swapper, int from, int to, boolean ascending, int... columns) {
checkRegistry();
registry.sort(this, swapper, from, to, ascending, columns);
} | [
"public void sort(int from, int to, boolean ascending, int... columns) {\n checkRegistry();\n registry.sort(this, from, to, ascending, columns);\n }",
"private Dataset<Row> sort(Dataset<Row> dataset, List<String> sortColumns) {\n if (CollectionUtils.isNotEmpty(sortColumns)) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for the default position of the panel | public int getDefaultPosition() {
return ITool.LEFTPOSITION;
} | [
"public int getPanelXLocation() {\n\t\treturn panel.getX();\n\t}",
"public int getPositionX( ) {\n\n return defaultX;\n }",
"public int getDefaultInitialPositionY( ) {\r\n\r\n return scene.getPositionY( );\r\n }",
"public int getPositionY( ) {\n\n return defaultY;\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Q1: Given accept type is Json Path param value US When users sends request to /countries Then status code is 200 And Content Type is Json And country_id is US And Country_name is United States of America | @Test
public void Tcase1() {
Response response = given().accept(ContentType.JSON)
.pathParam("value", "US")
.when().get("countries/{value");
assertEquals(response.statusCode(),200);
assertEquals(response.contentType(),"application/json");
String id ... | [
"@Test\n\tpublic void validateCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tgiven().get(Endpoint.GET_COUNTRY).then().statusCode(200).\n\t\tand().contentType(ContentType.JSON).\n\t\tand().body(\"name\", hasItem(\"India\")).\n\t\tand().body(\"find { d -> d.nam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |