query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Try to parse a string into a float returning null if a parse error occurs | public static Float tryParseFloat(String string) {
try {
return Float.parseFloat(string);
} catch (NumberFormatException t) {
return null;
}
} | [
"private static float parseFloat(String s) {\n try {\n return Float.parseFloat(s);\n } catch (NumberFormatException ex) {\n throw new CacheXmlException(\n String.format(\"Malformed float %s\", s), ex);\n }\n }",
"static float parseFloat(String val) throws SVGParseException\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string myPubKey = 1; | public java.lang.String getMyPubKey() {
java.lang.Object ref = myPubKey_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8()... | [
"java.lang.String getMyPubKey();",
"public java.lang.String getMyPubKey() {\n java.lang.Object ref = myPubKey_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the domain UID associated with the specified pod. | public static String getPodDomainUid(V1Pod pod) {
return KubernetesUtils.getDomainUidLabel(Optional.ofNullable(pod).map(V1Pod::getMetadata).orElse(null));
} | [
"public String podName() {\n return getMetadata().getName() + \"-pod\";\n }",
"public static int extractPodId(long internalOrExternalUserId)\n {\n return (int)((internalOrExternalUserId & USER_ID_POD_MASK) >> USER_ID_POD_SHIFT);\n }",
"Object getDomainObjectId(T domainObject);",
"UID getUid(Rep... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all the items where requestId = &63;. | public static List<Item> findByitems(long requestId) {
return getPersistence().findByitems(requestId);
} | [
"private ArrayList<Message> getMessagesByRequestId(String requestId){\n ArrayList<Message> myMessages = new ArrayList<Message>();\n for(Message msg : queue){\n if (msg.values.get(\"requestid\").equals(requestId)){\n myMessages.add(msg);\n }\n queue.remov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
creates a new Transaction that stores a bid to cancel | public TaskCancelBidTransaction(Task task, Bid bid) {
super(task, Task.class);
this.bid = bid;
} | [
"Transaction newTransaction(TransactionOptions options);",
"public void createTransaction(Transaction trans);",
"Transaction newTransaction();",
"public void createTransaction (String uuid, int bid) {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tDate date = new Date();\n\t\t// Check... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves a random binomial between 1 and 1 | public static float randomBinomial(){
return (float) (Math.random() - Math.random());
} | [
"private Binomial(int n) {\n N = n;\n }",
"private ArrayList<Integer> sample_value_use_binomial() {\n BinomialDistribution binom = null;\n int cur = 0;\n double cdf = 0;\n ArrayList<Integer> result = new ArrayList<Integer>(k);\n for (int i = 0; i < k - 1; i++) {\n if (n == cur) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the authentication provider from the session or null if no authentication provider is set. | public static AuthenticationProvider getAuthenticationProvider(BindingSession session) {
assert session != null;
return (AuthenticationProvider) session.get(AUTHENTICATION_PROVIDER_OBJECT);
} | [
"private Authentication getSessionAuthentication(HttpServletRequest request) {\r\n SecurityContext securityContext = (SecurityContext) request.getSession().getAttribute(\r\n HttpSessionSecurityContextRepository.SPRING_SECURITY_CONTEXT_KEY);\r\n if (securityContext == null) {\r\n return null;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Limpia el array de zonas | public void LimpiarZonas(UnselectEvent e) {
zonas = new ArrayList<>();
} | [
"org.landxml.schema.landXML11.NoPassingZoneDocument.NoPassingZone getNoPassingZoneArray(int i);",
"public void makeArray () {\n\t\tanimals = new ArrayList<Animal>();\n\t}",
"private void arrayCreator() {\r\n\t\t//Main Array\r\n\t\tarray = new int[30][arrayLength];\r\n\t\t//Copy of the Array used to perserve dat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the specific SQL CLI type number of type, if it exists, otherwise the HSQLDB type | public abstract int getSQLSpecificTypeNumber(); | [
"int getSqlType();",
"Integer getSqlType();",
"DatabaseType getType();",
"public abstract String toHiveType(int sqlType);",
"public abstract int getJDBCTypeNumber();",
"public static String toHCatType(int sqlType) {\n switch (sqlType) {\n\n // Ideally TINYINT and SMALLINT should be mapped to their\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the LRU cache with given size. | private void initializeCache(int cacheSize){
lruCache = new LRUCache(cacheSize);
} | [
"public LRUCache (int cacheSize) {\n this.cacheSize = cacheSize;\n int hashTableCapacity = (int)Math.ceil(cacheSize / hashTableLoadFactor) + 1;\n map = new LinkedHashMap<K,V>(hashTableCapacity, hashTableLoadFactor, true) {\n // (an anonymous inner class)\n private static final long serialVersionUID ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Marca todos los concursos como reservados | public void marcarTodos() {
for (int i = 0; i < listaPlantaCargoDto.size(); i++) {
PlantaCargoDetDTO p = new PlantaCargoDetDTO();
p = listaPlantaCargoDto.get(i);
if (!obtenerCategoria(p.getPlantaCargoDet())
.equals("Sin Categoria"))
p.setReservar(true);
listaPlantaCargoDto.set(i, p);
}
... | [
"private void creaRecursos() {\r\n\t EList<visitas.Recurso> recursos = this.visita.getRecursosVisita();\r\n\t\tfor(int contRecursos=0; contRecursos<recursos.size(); contRecursos++){\r\n\t\t\tvisitas.Recurso r = recursos.get(contRecursos);\r\n\t\t\tthis.tablaRecursos.put(r.toString(), \r\n\t\t\t\t\tnew modelo.Recu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove all of the receipts | public void clearReceipts() {
synchronized( _receipts ) {
_receipts.clear();
}
} | [
"@DeleteMapping(\"/users/{userId}/receipts\")\n public void removeAllReceiptsFromUser(@PathVariable Long userId){\n userReceiptItemService.deleteAllUserReceipts(userId);\n }",
"public void clearReceipt( String receipt_id ) {\n synchronized( _receipts ) {\n for (Iterator i=_receipts.iterator()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the parameter exists in the FormComponent. | private boolean parameterExist(FormComponent<?> formComponent)
{
String parameter = baseWicketTester.getServletRequest().getParameter(
formComponent.getInputName());
return parameter != null && parameter.trim().length() > 0;
} | [
"public boolean hasParam(String paramName);",
"public boolean isSetParam() {\n return this.param != null;\n }",
"protected boolean hasParameter(String paramName) {\r\n return (null != request.getParameter(paramName));\r\n }",
"public boolean hasParameter(){\n\t\tif (parameterType==null)\n\t\t\treturn ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field packageId is set (has been assigned a value) and false otherwise | public boolean isSetPackageId() {
return __isset_vector[__PACKAGEID_ISSET_ID];
} | [
"public boolean isSetPackageID() {\n return __isset_vector[__PACKAGEID_ISSET_ID];\n }",
"public boolean isSetPackagename() {\n return this.packagename != null;\n }",
"public boolean isSetProductGroupID() {\n return this.productGroupID != null;\n }",
"public boolean isSetItemId() {\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of doors (numOfDoors) field value of this vehicle . | public int getNumOfDoors() {
return this.numOfDoors;
} | [
"public int getDoorCount() {\r\n return _numDoors;\r\n }",
"public int getNumberOfDoors() {\r\n return this.doors.length;\r\n //your implementation goes here\r\n }",
"public int getNrDoors(){\r\n return nrDoors;\r\n }",
"public int getNrDoors(){\n return nrDoors;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Here we test internal method (getRouteOnTheLine) from GetShortestRoute (use 1 line) | @Test
public void testGetShortestRouteOneLine() {
Line line1 = testStationIndex.getLine(1);
Station fromStation = testStationIndex.getStation("GreenOne_S");
Station toStation = testStationIndex.getStation("GreenThree_S");
List<Station> actual = testRouteCalculate.getShortestRoute(f... | [
"@Test\n public void testGetShortestRouteTwoLines() {\n Line line1 = testStationIndex.getLine(1);\n Line line2 = testStationIndex.getLine(2);\n\n\n Station fromStation = testStationIndex.getStation(\"GreenOne_S\");\n Station toStation = testStationIndex.getStation(\"OrangeOne_S\");\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verify that the book service invokes the method findAll() in the repository. Mocking allows to run the tests without the need for an actual db/repository functionality underneath. | @Test
void getAllBooks() {
//when
testBookServiceImpl.getAllBooks();
//then
verify(bookRepository).findAll();
} | [
"@org.junit.Test\n public void testListAllBooks() throws Exception {\n System.out.println(\"listAllBooks\");\n repositoryCore instance = null;\n String expResult = \"\";\n String result = instance.listAllBooks();\n assertEquals(expResult, result);\n // TODO review the ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests adding a User with a null password value This test sets a User's password to null, then attempts to add it to the database. As password is a nonnullable field, the test receives a Constraint Violation exception. | @Test(expected = ConstraintViolationException.class)
@Transactional
public void testAddNullPassword() {
newUser.setPassword(null);
userService.save(newUser);
// rollback previous password
newUser.setPassword(NEW_USER_PASSWORD);
} | [
"@Test\n public void invalidNullFieldUserCreation() {\n testUser.setUsername(null);\n\n Assertions.assertFalse(this.userDAO.insertNewUser(testUser));\n }",
"@Test(expected = IllegalArgumentException.class)\r\n public void testStoreOnNullPassword() {\r\n service.store(new User(1, \"\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tells the user whether or not the month has changed | public boolean getMonthChange() {
return monthChange;
} | [
"public void resetMonthChange() {\n\t\tmonthChange = false;\n\t}",
"private void updateMonth() {\n switch (month) {\n case JANUARY:\n month = Month.FEBRUARY;\n daysInMonth = leapYear() ? 29 : 28;\n break;\n case FEBRUARY:\n m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
and csol_order is null | public M csolOrderNull(){if(this.get("csolOrderNot")==null)this.put("csolOrderNot", "");this.put("csolOrder", null);return this;} | [
"public M cstOrderNull(){if(this.get(\"cstOrderNot\")==null)this.put(\"cstOrderNot\", \"\");this.put(\"cstOrder\", null);return this;}",
"public M csrOrderNull(){if(this.get(\"csrOrderNot\")==null)this.put(\"csrOrderNot\", \"\");this.put(\"csrOrder\", null);return this;}",
"public M cspReorderNull(){if(this.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the function value accuracy. This is used to determine whan an evaluated function value or some other value which is used as divisor is zero. This is a safety guard and it shouldn't be necesary to change this in general. | void setFunctionValueAccuracy(double accuracy); | [
"double getFunctionValueAccuracy();",
"void resetFunctionValueAccuracy();",
"void setAbsoluteAccuracy(double accuracy);",
"void setRelativeAccuracy(double accuracy);",
"public void setAccuracy(double accuracy) {\r\n this.accuracy = accuracy;\r\n }",
"public void setAccuracy(Integer accuracy) {\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Select all id params for sortstandalone | @Options(resultSetType = ResultSetType.FORWARD_ONLY, fetchSize = Integer.MIN_VALUE)
Cursor<SortIdInfo> selectAllIdParams(); | [
"private String[] selectByIdArgs(long id){\n return new String[]{\"\"+id};\n }",
"Orderall selectByPrimaryKey(String orderid);",
"List<StatementsWithSorting> selectAll();",
"public void setOrderbyid(Integer orderbyid) {\r\n this.orderbyid = orderbyid;\r\n }",
"public List<Integer> select... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of setPoints method, of class PointsSerialize. | @Test
public void testSetPoints() {
System.out.println("setPoints");
Board.getInstance().resetPoints();
p.setPoints(100);
assertEquals(100, p.getPoints(),0);
} | [
"public void setPoints(String points);",
"public void setPoints(int points) {\n this.points = points;\n }",
"public void setPoints(int points) {\n pointsInt = points;\n }",
"public void setPoints(int points) {\n if (points >= 0) {\n this.points = points;\n }\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
END of Navigation Tests as a User Test navigation to H2 Console (Admin specific) | @Test // Navigation H2 Console
public void testPageNavigationAsAdminH2Console() {
loginAsAdmin();
vinyardApp.navigateToUrl("http://localhost:8080/h2");
driver.findElement(By.className("button")).click();
WebElement element = driver.findElement(By.className("login"));
String ... | [
"@Test(groups ={Slingshot,Regression})\n\tpublic void MuMV_ViewAndEditSuperUserNavigation() {\n\t\tReport.createTestLogHeader(\"MuMv_viewandedituser\", \"Verify link navigations in the breadcrumb in Edit user page when user type is selected as super user\"); \t \t \t \n\t\tUserProfile userProfile = new TestData... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns jobDetail for specified contentHash. | JobDetail findByContentHash(String contentHash); | [
"public Job getJob(String jobId){\n\t\tJob response = null;\n\t\ttry {\n\t\t\tif (htJobs!=null) {\n\t\t\t\tresponse = (Job)this.htJobs.get(jobId);\n\t\t\t} \n\t\t} catch(Exception e) {\n\t\t\tresponse = null;\n\t\t}\n\t\treturn response;\n\t}",
"public QuartzQueueJobDetails getQuartzQueueJobDetails(final UUID key... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Load json file 'itsmaProducts.json' as a List of ItsmaProduct. | public void loadProducts(InputStream is) throws IOException {
Gson gson = new Gson();
JSONObject jsonObject = new JSONObject(IOUtils.toString(is, "UTF-8"));
JSONArray products = (JSONArray) jsonObject.get("itsmaServices");
for (int i = 0; i < products.length(); i++) {
ItsmaProduct product = gson.f... | [
"public static Product[] parseJsonFile()\n {\n\n JSONParser jsonParser = new JSONParser();\n String input = \"\";\n\n try {\n\n JSONObject jsonObject = (JSONObject) jsonParser.parse(new FileReader(System.getProperty(\"user.dir\") + \"\\\\src\\\\main\\\\java\\\\ex44\\\\exercise44_i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a range of all the gdf tender sub sched detailses where scheduleNumber = &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 QueryUtilA... | public java.util.List<GDFTenderSubSchedDetails>
findByGDF_Tender_Schedule_Number(
long scheduleNumber, int start, int end); | [
"public java.util.List<GDFTenderSubSchedDetails> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<GDFTenderSubSchedDetails> orderByComparator);",
"public java.util.List<GDFTenderSubSchedDetails> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.Or... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mutator for the loyaltyPoints field | public void setLoyaltyPoints(Integer loyaltyPoints) {
this.loyaltyPoints = loyaltyPoints;
} | [
"public double getLoyaltyPoints() {\n return this.LoyaltyPoints;\n }",
"public void setLoyalty(int loyalty) {\r\n\tthis.loyalty = loyalty;\r\n }",
"@Basic(fetch = FetchType.EAGER, optional = false)\r\n @Column(name = \"LOYALTY_POINTS\", nullable = false, columnDefinition = \"INTEGER\")\r\n public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write the double value stored in this holder to an OutputStream. | public void _write(OutputStream output) {
output.write_double(value);
} | [
"void writeDouble(double value);",
"void writeDouble(double v) throws IOException;",
"public final void writeDouble(double val) {\n \tthrow new IllegalStateException(\"unimplemented\");\n }",
"void writeDouble(String name, double value);",
"@Override\n public void serialize(MemoryWriter writer, Dou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Interaction__Group_2_1__1" $ANTLR start "rule__Interaction__Group_2_1__1__Impl" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:11603:1: rule__Interaction__Group_2_1__1__Impl : ( ( rule__Interaction__Process_defAssignment_2_1_1 ) ) ; | public final void rule__Interaction__Group_2_1__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:11607:1: ( ( ( rule__Interactio... | [
"public final void rule__Interaction__Group_2__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:11159:1: ( ( ( r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AstTransition__Group__1" $ANTLR start "rule__AstTransition__Group__1__Impl" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12047:1: rule__AstTransition__Group__1__Impl : ( '(' ) ; | public final void rule__AstTransition__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12051:1: ( ( '(' ) )
// ../org... | [
"public final void rule__AstTransition__Group__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:12039:1: ( rule__AstTransition__Grou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Merges the alwayscomparable antecedents (if any) into each of the other sets of antecedents. Also removes the alwayscomparable set of antecedents as a separate set (since it is now merged into each of the other sets). Updates comp_ants accordingly. In general, in implicit comparability, the variables at a program point... | @RequiresNonNull("NIS.suppressor_map")
static void merge_always_comparable(Map<VarComparability, Antecedents> comp_ants) {
// Find the antecedents that are always comparable (if any)
Antecedents compare_all = null;
for (VarComparability vc : comp_ants.keySet()) {
if (vc.alwaysComparable()) {
... | [
"@RequiresNonNull(\"suppressor_map\")\n static void store_antecedents_by_comparability(\n Iterator<PptSlice> slice_iterator, Map<VarComparability, Antecedents> comp_ants) {\n\n for (Iterator<PptSlice> i = slice_iterator; i.hasNext(); ) {\n PptSlice slice = i.next();\n\n if (NIS.dkconfig_skip_hash... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get block corresponding to the given ID | public Block getBlock(String id) {
return this.blocks.get(Long.valueOf(id));
} | [
"Block getBlock(int id) {\n return getBlock(id, 0);\n }",
"public ProductionBlock getSpecificProductionBlock(int id);",
"public Block getBlockByID(Integer blockID){\n for (Block block : this.blocks) {\n if(block.getID().equals(blockID))\n {\n return block;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to switch to Tab using title. | public void switchToTabUsingTitle(String titleName)
{
Set<String> windowhandle = driver.getWindowHandles();
for(String handle:windowhandle)
{
WebDriver windowDriver = driver.switchTo().window(handle);
String aTitle = windowDriver.getTitle();
if(aTitle.equals(title... | [
"public void setTabTitle(String t);",
"public void setTabTitle(String title){\n window.setTabTitle(title);\n }",
"public void transferTabFocus(String tabTitle) {\n\t\tmainTabbedGUI.setSelectedIndex(mainTabbedGUI.indexOfTab(tabTitle));\n\t}",
"TabContext openTab();",
"public void setTabTitle(String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getGravityForce method, of class Step. | @Test
public void testGetGravityForce() {
System.out.println("getGravityForce");
Measure expResult = new Measure(22.2, "km");
this.step.setGravityForce(expResult);
assertEquals(expResult, this.step.getGravityForce());
} | [
"@Test\n\tpublic void testSetGravityForce() {\n\t\tSystem.out.println(\"setGravityForce\");\n\t\tMeasure expResult = new Measure(22.2, \"km\");\n\t\tthis.step.setGravityForce(expResult);\n\t\tassertEquals(expResult, this.step.getGravityForce());\n\t}",
"@Test\n\tpublic void testGetCarForce() {\n\t\tSystem.out.pri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 26 / 2 covered goals: Goal 1. org.objectweb.cjdbc.driver.ResultSetMetaData.(Lorg/objectweb/cjdbc/driver/DriverResultSet;)V: rootBranch Goal 2. org.objectweb.cjdbc.driver.ResultSetMetaData.getColumnName(I)Ljava/lang/String;: I4 Branch 17 IF_ICMPLT L143 true | @Test(timeout=300000)
public void test26() throws Throwable {
ResultSetMetaData resultSetMetaData0 = new ResultSetMetaData((DriverResultSet) null);
try {
resultSetMetaData0.getColumnName((-8));
fail("Expecting exception: SQLException");
} catch(SQLException e) {
//... | [
"@Test(timeout=300000)\n public void test27() throws Throwable {\n Field[] fieldArray0 = new Field[5];\n Driver driver0 = new Driver();\n ArrayList arrayList0 = driver0.pendingConnectionClosing;\n DriverResultSet driverResultSet0 = new DriverResultSet(fieldArray0, (ArrayList) arrayList0);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get an array of strings representing all the user scores in sorted order | public String[] getPrintedScores() {
String[] result = new String[size()];
int i = 0;
Iterator<SessionScore> it = iterator();
while (it.hasNext()) {
result[i++] = it.next().toString();
}
return result;
} | [
"int[] getScores();",
"public List<String> getEntriesByScore() {\r\n // entries is TreeMap so already in lexi order and then stream sorts\r\n // in descending order by value\r\n // TODO: 11/24/19 Look at alternative way to stream (shorter)\r\n Stream<Map.Entry<String, Integer>> descStr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method for testGetXPath. Gets the XPath for the node and evaluates it, checking if the same node is returned. DocumentType nodes are ignored as they cannot be identified by an XPath | private void testXPathForNode(final Node n, final XPath xp) {
if (n.getNodeType() != Node.DOCUMENT_TYPE_NODE) {
String xpath = NodeOps.getXPath(n);
//Uncomment for debug info
//System.out.println("Node: " + DOMOps.getNodeAsString(n)
// + " XPath:" + x... | [
"@Test\n public final void testGetXPath() {\n //Create an XML doc, loop through nodes, confirming that doing a\n //getXPath then a select returns the node\n XPathFactory xPathFac = XPathFactory.newInstance();\n XPath xpath = xPathFac.newXPath();\n \n Document testDoc = T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/! It sets whether the stimulation configuration data is present in the current StarStim beacon frame. \param status True if the stimulation configuration data is present, false otherwise. | public void isStimConfigPresent(boolean status){
_isStimConfigPresent = status;
} | [
"public void isStimDataPresent(boolean status){\n \t_isStimDataPresent = status;\n }",
"public void isStimImpedancePresent(boolean status){\n \t_isStimImpedancePresent = status;\n }",
"public void isEEGConfigPresent(boolean status){\n \t_isEEGConfigPresent = status;\n }",
"public void setSta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of removeOrcamento method, of class OrcamentoService. | @Test
public void testRemoveOrcamento() throws Exception {
System.out.println("removeOrcamento");
Orcamento orc = null;
EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();
OrcamentoService instance = (OrcamentoService)container.getContext().lookup("java:g... | [
"@Test\n public void testRemove() {\n System.out.println(\"remove\");\n Repositorio repo = new RepositorioImpl();\n Persona persona = new Persona();\n persona.setNombre(\"Ismael\");\n persona.setApellido(\"González\");\n persona.setNumeroDocumento(\"4475199\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The Windows Process extension specifies a default extension for capturing properties specific to Windows processes. | @Value.Immutable @Serial.Version(1L)
@DefaultTypeValue(value = "windows-process-ext", groups = {DefaultValuesProcessor.class})
@Value.Style(typeAbstract="*Ext", typeImmutable="*", validationMethod = Value.Style.ValidationMethod.NONE, additionalJsonAnnotations = {JsonTypeName.class}, passAnnotations = {AllowedParents.cl... | [
"public ProcessItem getProcess();",
"private Map<String, Object> buildProcessExtendedProperties(Process process) {\n Map<String, Object> extendedProperties = new HashMap<>();\n\n String formula = process.getFormula();\n String implementationLanguage = process.getImplementationLanguage();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines the content type for the given public ID. | public static MediaType getMediaTypeForPublicID(final String publicID) {
return getMediaTypesByPublicId().get(publicID); //return the content type corresponding to the given public ID, if we have one
} | [
"ContentType getType();",
"int getContentTypeValue();",
"public int getTypeId()\n {\n return (int) getKeyPartLong(KEY_CONTENTTYPEID, -1);\n }",
"Content.Type getContentType();",
"private static ContentType contentTypeForNavigationResource(int id){\n for(ContentType type : ContentType.values(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new ShadowMap. | public ShadowMap() throws Exception{
// Create a FBO to render the depth map
depthMapFBO = glGenFramebuffers();
// Create the depth map texture
depthMap = new Texture(SHADOW_MAP_WIDTH, SHADOW_MAP_HEIGHT, GL_DEPTH_COMPONENT);
// Attach the the depth map texture to the FBO
... | [
"public ShadowMap( int size ) { \n depthFBOSize = new Dimension(size,size);\n }",
"public Map() {\n setup3x3Map();\n }",
"public ShadowFactory() {\n\n }",
"public MapPanel() {\r\n\t\tthis(EarthFlat.class);\r\n\t}",
"public Map() {\r\n\t\tmapName = \"Very small Labyrinth of Doom... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ AI main function Parameters:int player, the player in turn (1 tai 1, PLAYER1 or PLAYER2) Returns: instance of BestMove class The principle is to traverse down all possible moves recursively, that is, making a move and calling the function again while alternating players until at the end a solution is reached (win, lo... | private BestMove bMove (int player) {
int opponent; // PLAYER1 or PLAYER2
BestMove move; // Opponents best choice
int eval; // win, lose or draw
int best = 0; //
int value; //
eval = evaluatePosition(); // did we found a solution
if (eval != GOAHEAD) return new BestMove (eval); // if ye... | [
"@Override\n public Move move() {\n\n MoveManager tmpMove;\n MoveManager bestMove = null;\n double alpha = Double.NEGATIVE_INFINITY;\n double beta = Double.POSITIVE_INFINITY;\n\n int depth; // for minimax search\n\n if (this.gameBoard.getPlayerHLocations().size() <= 2 &&... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set up the person's pronouns preference. | public void setPronouns(String pronouns)
{
this.pronouns = pronouns;
} | [
"void setNoun(java.lang.String noun);",
"public String getPronouns()\n {\n return pronouns;\n }",
"public String getPronoun() {\r\n return pronoun;\r\n }",
"private static boolean isPronoun(CoreLabel pronoun) {\n return pronoun.get(CoreAnnotations.PartOfSpeechAnnotation.class).co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Disables a Role (effectively rendering it as removed). | public synchronized void disableRole(Role role) throws DataBackendException, UnknownEntityException {
getPersistenceHelper().disableEntity(role);
} | [
"void removeRole(Role role);",
"public void removeAllRole() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ROLE);\r\n\t}",
"public void leaveRole()\n {\n roleTaken = false;\n playerRole = null;\n }",
"public void removeAllRole()\n {\n _roleList.removeAllElements();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the visit info data | public void setVisit_info(String visit_info) {
this.visit_info = visit_info;
} | [
"public void setVisit(Integer visit) {\n this.visit = visit;\n }",
"public String getVisit_info() {\n return visit_info;\n }",
"public void setVisit ( final OfficeVisit visit ) {\n this.visit = visit;\n }",
"private void setInfo(){\n setStorageInfo();\n setBatteryIn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Visit an ConceptDef. This method will be called for every node in the tree that is an ConceptDef. | T visitConceptDef(ConceptDef elm, C context); | [
"T visitConcept(Concept elm, C context);",
"public void visit(DefNode node);",
"T visitConceptRef(ConceptRef elm, C context);",
"public interface IFlexoOntologyConcept<TA extends TechnologyAdapter<TA>> extends IFlexoOntologyObject<TA> {\n\t/**\n\t * Ontology of Concept.\n\t * \n\t * @return\n\t */\n\tpublic I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .cn.wsds.gamemaster.pb.UserFeedback list = 1; | public cn.wsds.gamemaster.pb.Proto.UserFeedbackOrBuilder getListOrBuilder(
int index) {
return list_.get(index);
} | [
"cn.wsds.gamemaster.pb.Proto.UserFeedback getList(int index);",
"java.util.List<cn.wsds.gamemaster.pb.Proto.UserFeedback> \n getListList();",
"cn.wsds.gamemaster.pb.Proto.UserFeedbackReply getList(int index);",
"java.util.List<? extends cn.wsds.gamemaster.pb.Proto.UserFeedbackOrBuilder> \n getLi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Integer Literal Exp'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseEcore_IntegerLiteralExp(org.eclipse.ocl.ecore.IntegerLiteralExp object) {
return null;
} | [
"public <C> T caseIntegerLiteralExp(IntegerLiteralExp<C> object) {\n return null;\n }",
"public T caseIntegerLiteralExpCS(IntegerLiteralExpCS object) {\r\n return null;\r\n }",
"public T caseIntegerLiteral(IntegerLiteral object)\n {\n return null;\n }",
"public T caseIntLiteral(IntLiteral o... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constants with JDBC drivers. Created: 14.05.2009 | public interface JdbcDrivers {
public static final String DERBY_EMBEDDED = "org.apache.derby.jdbc.EmbeddedDriver";
public static final String MYSQL = "com.mysql.jdbc.Driver";
} | [
"public String getJdbcDrivers();",
"String getJdbcDriverClassName();",
"public abstract String getJDBCClassName();",
"DataSourceJdbcRuntimeConfig jdbc();",
"public String getJdbcURL();",
"protected String getJdbcStatementInterfaceName() {\n return \"java.sql.PreparedStatement\";\n }",
"private... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set the render layer factory function | public DynamicModelPart layerFactory(Function<Identifier, RenderLayer> layerFactory) {
this.layerFactory = layerFactory;
return this;
} | [
"Layer createLayer();",
"private void initRenderFactory() {\n\t\tif (forUpload()) {\n\t\t\t// uploading to S3: the baseref is the URL to the s3 bucket\n\t\t\tRenderFactory.setBaseRef(\"https://s3-us-west-2.amazonaws.com/\" + computeS3BucketName()\n\t\t\t\t\t+ (getS3ObjectPrefix() == null ? \"\" : \"/\" + getS3Obj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the indegree for the specified vertex. The indegree is the total count of edges that terminate at the specified vertex. | public int inDegree(V vertex); | [
"public int degree(Object vertex) {\n if (!isVertex(vertex)) return 0;\n DListNode node = (DListNode) verticesMap.find(vertex).value();\n return ((InnerVertex) node.item).degree;\n }",
"public int indegree(int v) {\n validateVertex(v);\n return indegree[v];\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Provides handy Extended Wylieinspired names for Unicode codepoints commonly used to represent Tibetan. The consonant that the Extended Wylie text "ka" refers to is named EWC_ka as in "The Extended Wylie Consonant ka", the vowel represented in Extended Wylie by "i" is EWV_i, and so on. There is at least one exception to... | public interface UnicodeConstants {
/** Refers to unnormalized Unicode: */
static final byte NORM_UNNORMALIZED = 0;
/** Refers to Normalization Form C: */
static final byte NORM_NFC = 1;
/** Refers to Normalization Form KC: */
static final byte NORM_NFKC = 2;
/** Refers to Normalization For... | [
"public String getPhonetic ()\n {\n return joinSyllables ( Phonetics.wylieToStandardPhonetic ( keyWord.getWylie () ) ) ;\n }",
"public void hoofdletters() {\r\n System.out.println(\"1. Hele tekst in hoofdletters: \" + tekst.toUpperCase( ) );\r\n }",
"private static String toPigLatin(String word) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initalizes this node value with an empty Map. | protected void createEmptyNode() {
value = new LinkedHashMap<String, Object>();
} | [
"public BSTMap() {\n key = null;\n value = null;\n size = 0;\n }",
"public BSTMap() {\n clear();\n }",
"public NodeMap()\n {\n nodeMap = new HashMap<String, ArrayList<Node>>();\n nodeData = new HashMap<String, byte[]>();\n }",
"public BSTMap() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the active groups. | public List<DataGroupInfo> getActiveGroups()
{
return New.list(myActiveGroups);
} | [
"public Set<String> getActiveGroupIds()\n {\n return myActiveGroups.stream().filter(g -> !g.activationProperty().isActivatingOrDeactivating()).map(g -> g.getId())\n .collect(Collectors.toSet());\n }",
"public Group[] getGroups() {\n return LightingDirector.get().getGroups(getGro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set value of MessagesFirstChunk | public final void setMessagesFirstChunk(java.lang.Boolean messagesfirstchunk)
{
setMessagesFirstChunk(getContext(), messagesfirstchunk);
} | [
"public final void setMessagesFirstChunk(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Boolean messagesfirstchunk)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.MessagesFirstChunk.toString(), messagesfirstchunk);\r\n\t}",
"public final void setMessagesIsFirstChunk(java.lang.Bool... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the Peer corresponding to the given key | public Peer getPeer(Integer key){
return peers.get(key);
} | [
"PeerEndpoint getPeerEndpoint(String key);",
"@Override\n public Thing42orNull<K, D> getOnePeer(K key) {\n\n for (Thing42orNull<K, D> peer : peers) {\n if (peer.getKey().equals(key))\n return peer;\n }\n return null;\n }",
"public Peer getNextPeer(Integer key... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the amount saved (total of all applied discounts) | public final double calcAmtSaved(){
double amtSaved = 0.00;
for (LineItem l : lineItems){
amtSaved += l.findDiscountAmt();
}
return amtSaved;
} | [
"private double getTotalSaveMoney() {\n ArrayList<Double> payments;\n ArrayList<Double> withdrawalls;\n\n payments = db.getSaveAllPayment(idInstance);\n withdrawalls = db.getSaveAllWithdrawal(idInstance);\n\n double totalPayment = 0;\n double totalWithdrawall = 0;\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST /parkingLocationImages > Create a new parkingSpaceImage. | @RequestMapping(value = "/parkingLocationImages",
method = RequestMethod.POST,
produces = MediaType.APPLICATION_JSON_VALUE)
@Timed
public ResponseEntity<Void> create(@Valid @RequestBody ParkingLocationImage parkingSpaceImage) throws URISyntaxException {
log.debug("REST request to... | [
"@RequestMapping(value = \"/parkingLocationImages\",\n method = RequestMethod.PUT,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> update(@Valid @RequestBody ParkingLocationImage parkingSpaceImage) throws URISyntaxException {\n log.debug(\"REST reques... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
close method find the closest legitimate weightFac | private float getClosestWeightFac(float weightFac[][], int Ix, int Iy) {
int n_wide = weightFac.length;
int n_tall = weightFac[0].length;
float sum = 0.0f;
int n_sum = 0;
float new_weightFac=-1.0f;
int step = 1;
int Ix_test, Iy_test;
boolean done = false... | [
"double getWeightFactor();",
"public double getMaxWeight ();",
"private UnconstrainedBidElement getClosest(double demandWatt) {\n UnconstrainedBidElement best = null;\n double bestDistance = Double.MAX_VALUE;\n for (UnconstrainedBidElement e : elements) {\n double distance = Math... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for poLine to set. | public void setPoLine(Integer poLine) {
this.poLine = poLine;
} | [
"public void setLine(Line line1) {\n line = line1;\n }",
"public void setLine (int Line);",
"public void setLine(ShoppingCartLine line)\n\t{\n\t\tthis.line = line;\n\t}",
"void changeLine(Line line) {\n this.line = line;\n // TODO: check whether there is really some change\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to make connection to javaassignment database table. | private void makeConnection()
{
// Make connection to javaassignment database. Report an
// error message if there is a problem and exit
// system
if ( DBHandler.makeConnectionToDB() == -1 )
{
// Display an error message
JOptionPane.showMessageDial... | [
"public Connection createDBConnection();",
"public void establishConnection() {\n try {\n conn = DriverManager.getConnection(url, usernameDerby, passwordDerby);\n System.out.println(url + \" connected....\");\n\n } catch (SQLException ex) {\n Logger.getLogger(DBEas... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the ideal path. That is, the path calculated based on the PathConfig used to construct the iterator. | List<PathSetpoint> getIdealPath(); | [
"public String getCurrentPath() {\n if (mPath.size() == 0) {\n return \"\";\n }\n\n Iterator<String> iter = mPath.iterator();\n\n StringBuilder sb = new StringBuilder(iter.next());\n\n while (iter.hasNext()) {\n sb.append(\"/\").append(iter.next());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
same as strip terminals except keep record of what is deleted find all oneconnected atoms then remove its neighbour if it will become terminal rpt till reach dead end repeat for all oneconnected atoms problem as deleting messes up position numbers so delete bonds instead | private static void stripMolecule(
IAtomContainer mol,
IAtomContainer subgraph,
IAtom a, IAtom b,
int[][] atomfragmatrix, int numfrags) {
int numbonds = 0;
IAtomContainer terminalatoms = DefaultChemObjectBuilder.getInstance().newAtomContainer();
for(IAtom iatom1 : mol.atoms())
... | [
"public static void stripTerminalAtoms (IAtomContainer mol)\n\t{\n\t\t\n\t\tint numbonds = 0;\n\t\tIAtomContainer terminalatoms = \tDefaultChemObjectBuilder.getInstance().newAtomContainer();\t\n\t\t\n \tfor(IAtom iatom1 : mol.atoms())\n { \t\n \t//iatom1 = mol.getAtom(k);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an instance of PricePointLittleType | public com.vodafone.global.er.decoupling.binding.request.PricePointLittleType createPricePointLittleType()
throws javax.xml.bind.JAXBException
{
return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointLittleTypeImpl();
} | [
"public com.vodafone.global.er.decoupling.binding.request.CatalogPackageLittleType.PricePointsType createCatalogPackageLittleTypePricePointsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageLittleTypeImpl.PricePointsTy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method initializes jButtonRemoveLastVertex | private JButton getJButtonRemoveLastVertex() {
if (jButtonRemoveLastVertex == null) {
jButtonRemoveLastVertex = new JButton();
jButtonRemoveLastVertex.setText("Undo");
jButtonRemoveLastVertex.setEnabled(false);
jButtonRemoveLastVertex.setPreferredSize(new Dimension(100, 30));
jButtonRemoveLastVertex.ad... | [
"private JButton getJButtonAddVertex() {\n\t\tif (jButtonAddVertex == null) {\n\t\t\tjButtonAddVertex = new JButton();\n\t\t\tjButtonAddVertex.setText(\"Add Vertex\");\n\t\t\tjButtonAddVertex.setEnabled(false);\n\t\t\tjButtonAddVertex.setPreferredSize(new Dimension(100, 30));\n\t\t\tjButtonAddVertex.addActionListen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch the Car entry from database for the matching carId and not set as deleted | @Query("SELECT c FROM Car c WHERE c.carId=:carId AND c.carDeleted = false")
public Car findByCarId(@Param("carId") Long carId); | [
"public Car findCarById(int id);",
"public Car findById(Long carId) {\n return carRepository.findById(carId).orElseThrow(CarNotFound::new);\n }",
"@Query(\"SELECT c FROM Car c WHERE c.carDeleted = true\")\r\n\tpublic List<Car> allDeletedCar();",
"public Car findCarByID (Long id) {\r\n TypedQu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the misc cost. | public void setMisc(double misc) {
this.misc = misc;
} | [
"void setCost(double cost);",
"double setCost(double cost);",
"public void setCost(){\n\n\t\t//set the cost of a tent to the following equation. 3 is the\n\t\t//daily rate.\n\t\tthis.cost = (3 * duration) * numTenters;\n\n\t}",
"public void setRepairCost(int cost);",
"public abstract void setCost(double arg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The stage of the job definition allowing to specify TensorFlowSettings. | interface WithTensorFlowSettings {
/**
* Specifies tensorFlowSettings.
* @param tensorFlowSettings the tensorFlowSettings parameter value
* @return the next definition stage
*/
WithCreate withTensorFlowSettings(TensorFlowSettings tensorFlowSett... | [
"interface WithTensorFlowSettings {\n /**\n * Specifies tensorFlowSettings.\n * @param tensorFlowSettings the tensorFlowSettings parameter value\n * @return the next update stage\n */\n Update withTensorFlowSettings(TensorFlowSettings tensorFlowS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of mode method, of class MaxwellBoltzmann. | @Test
public void testMode() {
System.out.println("mode");
ContinuousDistribution dist = new MaxwellBoltzmann(0.5);
assertEquals(0.7071067811882024, dist.mode(), 1e-10);
dist = new MaxwellBoltzmann(2);
assertEquals(2.828427124743843, dist.mode(), 1e-10);
dist = new Ma... | [
"@Test\n public void getMode() {\n System.out.println(\"getMode\");\n BBDParameterMetaData instance = new BBDParameterMetaData(1,\"test\",2);\n int expResult = 1;\n int result = instance.getMode();\n assertEquals(expResult, result);\n \n }",
"MeasuringMode getMode();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "param_decl" $ANTLR start "var_decl" parser/flatzinc/FlatzincFullExtWalker.g:714:1: var_decl : ^( VAR IDENTIFIER vt= var_type anns= annotations (e= expr )? ) ; | public final void var_decl() throws RecognitionException {
CommonTree IDENTIFIER6 = null;
Declaration vt = null;
List<EAnnotation> anns = null;
Expression e = null;
try {
// parser/flatzinc/FlatzincFullExtWalker.g:715:2: ( ^( VAR IDENTIFIER vt= var_type anns= anno... | [
"public void visit(VarDeclaration decl);",
"public final void param_decl() throws RecognitionException {\n CommonTree IDENTIFIER5 = null;\n Declaration pt = null;\n\n Expression e = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:706:2: ( ^( PAR IDENTIFIER pt=... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Deletes all the Scheduled Rooms | public int deleteScheduledRooms(String prefix); | [
"public int deleteScheduledRoomByRoomKey(String roomKey);",
"public void deleteAllTeams() {\n FixtureDatabase.databaseExecutor.execute(new Runnable() {\n @Override\n public void run() {\n teamsDAO.deleteAllTeams();\n }\n });\n }",
"public void del... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates or finds a MicrosoftGraphDeviceManagementExchangeAccessStateReason from its string representation. | @JsonCreator
public static MicrosoftGraphDeviceManagementExchangeAccessStateReason fromString(String name) {
return fromString(name, MicrosoftGraphDeviceManagementExchangeAccessStateReason.class);
} | [
"public static Collection<MicrosoftGraphDeviceManagementExchangeAccessStateReason> values() {\n return values(MicrosoftGraphDeviceManagementExchangeAccessStateReason.class);\n }",
"public Builder setAccessReason(com.google.ads.googleads.v14.enums.AccessReasonEnum.AccessReason value) {\n if (value =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set visited link color. | public void setVisitedLinkColor(Color colorNew)
{
Color colorOld = visitedLinkColor;
visitedLinkColor = colorNew;
firePropertyChange("visitedLinkColor", colorOld, colorNew);
repaint();
} | [
"public Color getVisitedLinkColor()\n {\n return visitedLinkColor;\n }",
"public void setLinkColor(Color color)\n {\n Color colorOld = linkColor;\n linkColor = color;\n firePropertyChange(\"linkColor\", colorOld, color);\n repaint();\n }",
"public void setVisited(b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use TradedGoods.newBuilder() to construct. | private TradedGoods(Builder builder) {
super(builder);
} | [
"private stock_tradeDetail_req(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"public TOfferGoodsRecord() {\n super(TOfferGoods.T_OFFER_GOODS);\n }",
"private Trade(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Query query = em.createNativeQuery("select tp. from trans_promo_article tpa inner join trans_promo tp on tpa.trans_promo_id =tp.trans_promo_id inner join mst_promo mp on tp.promo_id=mp.promo_id where tp.status_id=31 and tpa.mc_code IN (" + McList + ") and tpa.article IN (" + articleList + ") and mp.category=? and mp.ev... | public List<TransPromo> searchTransPromoByValidityDatesEventCategoryMCArticle(String startDate, String endDate, int startIndex, long eventTypeId, String category, String McList, String articleList) {
Query query = em.createNativeQuery("select tp.* from trans_promo_article tpa inner join trans_promo tp on tpa.tr... | [
"public Long searchTransPromoByValidityDatesEventCategoryMCCountArticle(String startDate, String endDate, long eventTypeId, String category, String McList, String articleList) {\n Query query = em.createNativeQuery(\"select count(DISTINCT tp.trans_promo_id) from trans_promo_article tpa inner join trans_promo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the service to the list of uddi4j business services. This is not exposed on the interface to the caller and therefore should not be used outside of this framework. | public void addToServicesList(List uddiBusinessServices)
{
// check if this service already exists
Iterator iter = uddiBusinessServices.iterator();
while (iter.hasNext())
{
org.uddi4j.datatype.service.BusinessService service = (org.uddi4j.datatype.service.BusinessService)... | [
"public void addService(Service service);",
"public void addService(UpnpService service)\n\t{\n\t\tthis.services.add(service);\n\t}",
"public void addService(InvService service) {\n // System.out.println(\"--add dataset service= \"+service.getName());\n servicesLocal.add(service);\n services.add(servic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Apache iBATIS ibator. This method sets the value of the database column MONITOR_KPI_3G_MAIL.HOUR_13 | public void setHour13(Integer hour13) {
this.hour13 = hour13;
} | [
"public void setHourmb13(Integer hourmb13) {\r\n this.hourmb13 = hourmb13;\r\n }",
"public void setHouriops13(Integer houriops13) {\r\n this.houriops13 = houriops13;\r\n }",
"public void setHour3(Integer hour3) {\r\n this.hour3 = hour3;\r\n }",
"public void setHourmbin13(Integer ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles the removal form of a refcertificationlevel | @Action( ACTION_REMOVE_REFCERTIFICATIONLEVEL )
public String doRemoveRefCertificationLevel( HttpServletRequest request )
{
int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_REFCERTIFICATIONLEVEL ) );
try
{
RefCertificationLevelHome.remove( nId );
}
... | [
"void remove(int level) {\n if (containsKey(level)) {\n set(level, null);\n }\n }",
"synchronized void removeLevel(Integer level) {\n levelMap.remove(level);\n }",
"public void removeByLevel(int level)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This class extends Hippo's builtin encoding functionality to escape periods/full stops. This is used when creating node/folder names. Periods are replaced with hyphens. Hippo's page [1] explains how the builtin encoding works, and their javadoc [2] states that periods are removed. However, this is not the case as of 12... | @Override
public String encode(final String input) {
String encoded = super.encode(input);
// replace all periods with hyphens:
char[] chars = Normalizer.normalize(encoded, Normalizer.Form.NFC).toCharArray();
StringBuilder sb = new StringBuilder();
for (int i = 0; i < chars... | [
"private String escape(String name) {\n return name.replaceAll(\"[^a-zA-Z0-9.-]\", \"_\");\n }",
"public static String toDotSeparatedName(String name) {\n return name.replace(ConstPool.SLASH, ConstPool.DOT);\n }",
"private String formatPropertyName(String property) {\r\n property = pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to get the HashSet of large project heads within the group | public HashSet<Person> getLargeProjectHeads()
{
return this.largeProjectHeadsList;
} | [
"public HashSet<Person> getGroupHeads()\t{\n\t\treturn this.heads;\n\t}",
"public Set<IProject> getProjectsWithoutHomepage() throws SimalRepositoryException;",
"public ImmutableSet<ChangeHandle> heads() {\n return ImmutableSet.copyOf(this.headCommits);\n }",
"private Set<String> getManagedServersThatConta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks payment group note lines does not exceed the maximum allowed | protected boolean validatePaymentGroup(PaymentGroup paymentGroup) {
// Check to see if the payment group has too many note lines to be printed on a check
List<PaymentDetail> payDetails = paymentGroup.getPaymentDetails();
int noteLines = 0;
for (PaymentDetail paymentDetail : payDeta... | [
"public void NotesMaxLimit() {\n\t\tcommon.isElementDiplayed(notesButtonInExam);\n\t\tnotesButtonInExam.click();\n\t\tnotesTextField.click();\n\t\tnotesTextField.clear();\n\t\tnotesTextField.sendKeys(TestUtils.notesMaxCharacters);\n\t\tcommon.waitFor(100);\n\t\tString num = notesTextField.getText();\n\t\tnumInt = n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a new WriteTask that will send messages from the given MessageQueue via the given MessageWriter. | public WriteTask(MessageQueue<T> messageQueue, MessageWriter messageWriter) {
this.messageQueue = messageQueue;
this.messageWriter = messageWriter;
} | [
"public MessageBuilder(WriterQueue writerQueue) {\n if (writerQueue == null) {\n throw new NullPointerException();\n }\n this.writerQueue = writerQueue;\n }",
"private void initWriter(int queueSize) {\n\t\tthis.writer = new RoutingWriter(this.myName, this.remoteName, new Writer(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Merge the error state from the error handler of another sheet. Implementations are only required to merge boolean state of NSAC errors and warnings. Merging other state is optional. | void mergeState(SheetErrorHandler other); | [
"@Override\n\tpublic void mergeState(SheetErrorHandler other) {\n\t\tsacWarningMergedState = sacWarningMergedState || other.hasSacWarnings();\n\t\tsacErrorMergedState = sacErrorMergedState || other.hasSacErrors();\n\t\tomErrorMergedState = omErrorMergedState || other.hasOMErrors();\n\t\tomWarningMergedState = omWar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of products where numberOfProducts = &63;. | public int countByNumberOfProducts(int numberOfProducts); | [
"public int getNumberOfProducts (){\n int numberOfProducts = products.size();\n return numberOfProducts;\n }",
"int getProductCount();",
"int getTotalProductCount();",
"public java.util.List<Product> findByNumberOfProducts(int numberOfProducts);",
"@Override\n public int getNumOfProducts... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Implements a method to show 'NO DATA' view and hide it at least one data. | public void showNoDataView(RelativeLayout inc_message_view, ImageView ivMessageSymbol, TextView tvMessageTitle, TextView tvMessageDesc, boolean hasData) {
if (hasData) {
inc_message_view.setVisibility(View.GONE);
} else {
inc_message_view.setVisibility(View.VISIBLE);
... | [
"private void showNoResultFound() {\r\n\t\t//-.-off\r\n\t\tthis.searchResultList.add(HBoxBuilder.create()\r\n\t\t\t\t\t\t\t\t\t\t\t\t.noText(TextBuilder.create()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.bigText(NORESULT)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.build())\r\n\t\t\t\t\t\t\t\t\t\t\t\t.build());\r\n\t\t//-.-o... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the method to remove the usage record 7 days ago | public static void removeUsage() {
Calendar now = Calendar.getInstance();
int today = now.get(Calendar.DAY_OF_YEAR);
for (int i = 0; i < usageArrayList.size(); i++) {
if (today - usageArrayList.get(i).getDate() > 7) {
usageArrayList.remove(i);
}
}
} | [
"private void removeOlderGigs() {\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tint currentHr = cal.get(Calendar.HOUR_OF_DAY);\r\n\t\t\r\n\t\tif ((currentHr >= 0 && currentHr <= 7)) {\r\n\t\t\t//Log.d(TAG, \"deleting older gigs\");\r\n\t\t\tmGigsDbHelper.deleteOlderGigs();\r\n\t\t}\r\n\t\t\r\n\t}",
"private ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
insertionSort: Sorts array of Shapes using the insertion sort | public void insertionSort () {
for (int index = 1; index < shapes.length; index++) {
Shape key = shapes[index];
int position = index;
// shift larger values to the right
while (position > 0 && compareShapes(shapes[position-1], key) > 0) {
shapes[position] = sh... | [
"private void insertionSort() {\r\n\t\t//Runs through the 30 arrays.\r\n\t\tfor (int i = 0; i < 30; i++)\r\n\t\t\tSorting.insertionSort(array[i]);\r\n\t}",
"public void insertionSort() {\n Comparable p = (Comparable) array[0];\n Comparable[] sorted = new Comparable[array.length];\n sorted[0] = p;\n fo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ExStart ExFor:DocumentBuilder.InsertDocument(Document, ImportFormatMode) ExFor:ImportFormatMode ExSummary:Shows how to insert a document into another document. | @Test(enabled = false, description = "Bug: does not insert headers and footers, all lists (bullets, numbering, multilevel) breaks")
public void insertDocument() throws Exception {
Document doc = new Document(getMyDir() + "Document.docx");
DocumentBuilder builder = new DocumentBuilder(doc);
... | [
"@Override\n\tpublic void insertDocument(T document, OutputStrategy<T> outputStrategy) throws GDAServiceException {\n\t\tif (document.getUuid() == null) {\n\t\t\tinsertId(document);\t\n\t\t} else {\n\t\t\t//Override existing document\n\t\t\tdeleteDocument(document.getUuid());\n\t\t}\n\t\ttry {\n\t\t\tgetFileService... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
CASE 2 input : 1/1/1/1/1/1/1/1/1/1/2 (11 spare and last 2) expected score equal to 111 | @Test
public void allSpareAndLast_2_Expected_111(){
String input = "1/1/1/1/1/1/1/1/1/1/2";
assertEquals(game.scoreOfGame(input),111);
} | [
"private int ruleBasedDecision(boolean isFirst, Card cardOnTable, ArrayList<Card> hand, ArrayList<Card> possibleOpponentsCards, Card trump) {\n if (isFirst) {\n float minRisk = Float.MAX_VALUE;\n int minRiskIdx = 0;\n for (int i = 0; i < hand.size(); i++) {\n f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the attribute object IDs. | public int[] getAttributeObjectIDs(){
return _groupNodeData.getAttributeObjectIDs();
} | [
"public int[] getAttributeObjectIDs(){\n\t\treturn _lodNodeData.getAttributeObjectIDs();\n\t}",
"public int[] getObjectIds() {\n\t\t\treturn objects;\n\t\t}",
"public int[] getAttrIdxs(Instances instances) {\n int [] attrIdxs;\n\n attrIdxs = new int[instances.numAttributes()];\n for (int i = 0; i < at... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test inciarEstacionamiento Fallido porque se pasa del limite de franja Con hora local 12:00) | @Test
void testIniciarFallido() throws Exception {
// Set up especifico
when(sem.getHoraDeFinDeFranja()).thenReturn(LocalTime.of(20, 0));
// Excersice - Verify
assertThrows(Exception.class, () -> puntoDeVenta.iniciarEstacionamientoPuntual("TRE475", 9));
} | [
"@Test\n public void doEftShouldReturnTrueWhenCurrentHourBetween9and17() {\n UntestableEftService untestableEftService = new UntestableEftService();\n\n Boolean result = untestableEftService.doEft(EftObjectMother.newValidEft());\n\n assertTrue(result);\n }",
"@Test(expected = IllegalArg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__RadarChart__Group__0__Impl" $ANTLR start "rule__RadarChart__Group__1" InternalMyDsl.g:7619:1: rule__RadarChart__Group__1 : rule__RadarChart__Group__1__Impl rule__RadarChart__Group__2 ; | public final void rule__RadarChart__Group__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalMyDsl.g:7623:1: ( rule__RadarChart__Group__1__Impl rule__RadarChart__Group__2 )
// InternalMyDsl.g:7624:2: rule__RadarChart__Group__1__Impl ... | [
"public final void rule__RadarChart__Group_12__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8460:1: ( rule__RadarChart__Group_12__1__Impl )\n // InternalMyDsl.g:8461:2: rule__RadarChart__Group_12__1__Impl\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set up a date time interpreter which will show short date values when in week view and long date values otherwise. | private void setupDateTimeInterpreter(final boolean shortDate) {
calendarView.setDateTimeInterpreter(new DateTimeInterpreter() {
@Override
public String interpretDate(Calendar date) {
SimpleDateFormat weekdayNameFormat = new SimpleDateFormat("EEE", Locale.getDefault()... | [
"private void setupDateTimeInterpreter(final boolean shortDate) {\n mWeekView.setDateTimeInterpreter(new DateTimeInterpreter() {\n @Override\n public String interpretDate(Calendar date) {\n\n date.set(Calendar.MONTH, 4);\n date.set(Calendar.DAY_OF_MONTH, 19... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compute exclusive or of subject with clipping polygon. | public static Polygon XOR(Polygon subject, Polygon clipping) {
return new BooleanOperation(subject, clipping, XOR).execute();
} | [
"public static Polygon DIFFERENCE(Polygon subject, Polygon clipping) {\n return new BooleanOperation(subject, clipping, DIFFERENCE).execute();\n }",
"public static Polygon INTERSECTION(Polygon subject, Polygon clipping) {\n return new BooleanOperation(subject, clipping, INTERSECTION).execute();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Quando atinge o limite de cartas evocadas, o jogador tem a opcao de substituir. Retorna true se essa opcao for selecionada Retorna false do contrario. | private boolean substituirCartas(Jogador jogando){
System.out.printf("Atingiu o limite de cartas evocadas\n");
System.out.printf("Deseja substituir uma carta?\n[1] Sim [2] Não\n");
int entrada = Leitor.lerInt();
boolean trocou = false;
boolean finished = false;
while(!finished){
finished = true;
if(... | [
"private boolean confQuantVar(String equacao, int quantVariaveis) {\n int quantMais = 0;\n for (int i = 0; i < equacao.length(); i++) {\n if (equacao.charAt(i) == '+') {\n quantMais++;\n }\n }\n if (quantMais != quantVariaveis - 1) {\n thro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the image managed under the given key in this registry. | public static Image get(String key) {
return IMAGE_REGISTRY.get(key);
} | [
"public Image getImage(String key)\n {\n return imageRegistry.get(key);\n }",
"public Image getImage(String key) {\n\t\treturn imageRegistry.get(key);\n\t}",
"public static final Image get(final String key) {\n\t\treturn IMAGE_REGISTRY.get(key);\n\t}",
"public static Image getImageFromRegistry(String key... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor. Initializes the factory with the diagram and the target document, the generated BPEL elements will be contained in. Also passes the BPEL process element because of namespace issues. | public BasicActivityFactory(BPMNDiagram diagram, Document document, Output output, Element processElement) {
this.diagram = diagram;
this.document = document;
this.output = output;
this.supportingFactory = new SupportingFactory(diagram, document, this.output, processElement);
this.structuredElementsFactory = ... | [
"public BPELDocumentParseFactoryImpl() {\n }",
"public Document createDocument(Prozess process, boolean addNamespace) {\n \n \t\tElement processElm = new Element(\"process\");\n \t\tDocument doc = new Document(processElm);\n \n \t\tprocessElm.setAttribute(\"processID\", String.valueOf(process.getId()));\n \n \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get the empty cell | public abstract AwtCell getEmpty(); | [
"public String getEmptyCells();",
"public int getEmptyCellValue(){ return EMPTY_CELL; }",
"public boolean isEmpty() {\n return cell == null;\n }",
"public CrosstabCell getWhenNoDataCell()\r\n {\r\n for (int i=0; i<getCrosstabElement().getCells().size(); ++i)\r\n {\r\n Cro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |