query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
If notification channels are supported this method will try to create a channel with information from the message if it doesn't exist and return NotificationCompat.Builder for this channel. In the case where no channel information inside the message, we will try to get a channel with default channel id. If notification... | @SuppressWarnings("deprecation")
static NotificationCompat.Builder getNotificationCompatBuilder(Context context, Bundle message) {
NotificationCompat.Builder builder = null;
// If we are targeting API 26, try to find supplied channel to post notification.
if (BuildUtil.isNotificationChannelSupported(conte... | [
"private static Notification.Builder getNotificationBuilder(Context context, Bundle message) {\n Notification.Builder builder = null;\n // If we are targeting API 26, try to find supplied channel to post notification.\n if (BuildUtil.isNotificationChannelSupported(context)) {\n try {\n String c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether to stop the drive motors before disconnecting. | @SimpleProperty(description = "Whether to stop the drive motors before disconnecting.",
category = PropertyCategory.BEHAVIOR)
public boolean StopBeforeDisconnect() {
return stopBeforeDisconnect;
} | [
"public boolean isStopping() {\n return stopping;\n }",
"public Boolean isTurnedOff();",
"public boolean stopUDPConnection() {\n\t\tif(isStarted) {\n\t\t\tcomm.stopConnection();\n\t\t\tisStarted = false;\n\t\t\treturn true;\n\t\t} else return false;\n\t}",
"public boolean shouldStop() {\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether the function is an aggregate function or not. | public final boolean isAggregate(QueryContext context) {
if (is_aggregate) {
return true;
}
else {
// Check if arguments are aggregates
for (int i = 0; i < params.length; ++i) {
Expression exp = params[i];
if (exp.hasAggregateFunction(context)) {
return true;
... | [
"public boolean isAggregation()\r\n\t{\r\n\t\tif(groupingAtt != null)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tif(exprsToSelect == null)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tfor(Expression e : exprsToSelect)\r\n\t\t{\r\n\t\t\tif(e.includesAggregateFunction())\r\n\t\t\t{\r\n\t\t\t\treturn tr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicates whether an instance is in a virtual private cloud (VPC). | public Boolean isVpc() {
return this.vpc;
} | [
"public Boolean getVpc() {\n return this.vpc;\n }",
"private boolean isVsdManagedVpc(long vpcId) {\n Map<String, String> vpcDetails = _vpcDetailsDao.listDetailsKeyPairs(vpcId, false);\n return vpcDetails.get(NuageVspManager.NETWORK_METADATA_VSD_MANAGED) != null && vpcDetails.get(NuageVspMa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
void setIndPublicAdoptn(java.lang.String) Sets the value of field 'indSingleParAdpt'. | public void setIndSingleParAdpt(java.lang.String indSingleParAdpt)
{
this._indSingleParAdpt = indSingleParAdpt;
} | [
"public void setIndPublicAdoptn(java.lang.String indPublicAdoptn)\r\n {\r\n this._indPublicAdoptn = indPublicAdoptn;\r\n }",
"public java.lang.String getIndPublicAdoptn()\r\n {\r\n return this._indPublicAdoptn;\r\n }",
"public java.lang.String getIndSingleParAdpt()\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Start the launcher activity in the test app to make it foreground. | private void startLauncherActivityInTestApp() throws Exception {
startActivitySync(LAUNCHER_ACTIVITY.flattenToString());
} | [
"public void launchApp() throws RemoteException, UiObjectNotFoundException, IOException {\r\n\r\n setCurrentTestName(\"testLaunchTestApp\");\r\n base.trace_start(this.currentTestName);\r\n \r\n // good to start with this\r\n getUiDevice().pressHome();\r\n Runtime.getRuntime... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Multiplication in F2m z=xy Baesd on Algorithm 11.34 in Handbook of Elliptic and HyperElliptic Curve Cryptography | protected static BigInteger F2x_mul(BigInteger x,BigInteger y)
{
BigInteger z=BigInteger.valueOf(0);
for(int i=0;i<x.bitLength();i++)
{
if(x.testBit(i))
z=z.xor(y);
y=y.shiftLeft(1);
}
return z;
} | [
"private static int[] kmul(final int[] x, final int[] y, final int off, final int n) {\n // x = x1*B^m + x0\n // y = y1*B^m + y0\n // xy = z2*B^2m + z1*B^m + z0\n // z2 = x1*y1, z0 = x0*y0, z1 = (x1+x0)(y1+y0)-z2-z0\n if (n <= 32) //Basecase\n {\n final int[] z =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parse the syntactic category and store it in canonical form. | public static CcgCategory parseFromJson(JsonNode node) {
HeadedSyntacticCategory syntax = HeadedSyntacticCategory.parseFrom(node.get("syntax").asText());
Map<Integer, Integer> relabeling = Maps.newHashMap();
syntax = syntax.getCanonicalForm(relabeling);
Expression2 logicalForm = null;
String expres... | [
"public static CcgCategory parseFrom(String[] categoryParts) {\n HeadedSyntacticCategory syntax = HeadedSyntacticCategory.parseFrom(categoryParts[0]);\n Map<Integer, Integer> relabeling = Maps.newHashMap();\n syntax = syntax.getCanonicalForm(relabeling);\n\n Expression logicalForm = null;\n if (categ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Draws all of the impacts. | public void drawImpacts(Graphics g) {
for (int i = 0; i < numImpacts; i++)
impacts[i].draw(g);
} | [
"void draw() {\n\t\t\tif(visible) {\n\t\t\t\tfor(Entity e : entities)\n\t\t\t\t\te.draw();\n\t\t\t}\n\t\t}",
"public void draw() {\n\t\tfor(Entity e : entities.values()) {\n\t\t\te.draw();\n\t\t}\n\t\t\n\t\tfor(Group g : groups.values()) {\n\t\t\tg.draw();\n\t\t}\n\t}",
"private void drawEntities() {\n \tdra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column line.d_arrivedcity | public String getdArrivedcity() {
return dArrivedcity;
} | [
"java.lang.String getArrivalAirportCity();",
"public String getdArrivedcityid() {\n return dArrivedcityid;\n }",
"java.lang.String getDepartureAirportCity();",
"public String getDestinationcity() {\n return destinationcity;\n }",
"public String getdDestinationcity() {\n return dDe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Statechart Root'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseStatechartRoot(StatechartRoot object) {
return null;
} | [
"public T caseStateRoot(StateRoot object) {\r\n\t\treturn null;\r\n\t}",
"public final EObject entryRuleStatechartRoot() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleStatechartRoot = null;\r\n\r\n\r\n try {\r\n // ../org.yakindu.sct.model.stext/s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Task1:ur a loan specialist u need to ask user what is the amt of loan needed. if loan is less than 200,000 then u would lent the money otherwise u would reject the client Logic use if.Else statement | public static void main(String[] args) {
int loan;
Scanner scan=new Scanner(System.in);
System.out.println("Please enter loan amount");
loan=scan.nextInt();
if (loan<200000) {
System.out.println("give loan");
}else {
System.out.println("don't give loan");
}
} | [
"public static void main(String[] args) {\n int salary=45000;\n short creditscore=750;\n byte jobhistory=1;\n\n if(salary>50000){\n\n }if (creditscore>650){\n //eligible for loan\n }else {//not eligible\n System.out.println(\"you do not have good credi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST /projecthours : Create a new projectHour. | @RequestMapping(value = "/project-hours",
method = RequestMethod.POST,
produces = MediaType.APPLICATION_JSON_VALUE)
@Timed
public ResponseEntity<ProjectHour> createProjectHour(@RequestBody ProjectHour projectHour) throws URISyntaxException {
log.debug("REST request to save ProjectHour : ... | [
"LayerTaskHours createLayerTaskHours();",
"LayerTaskHoursItem createLayerTaskHoursItem();",
"@RequestMapping(value = \"/hrProjectInfos\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<HrProjectInfo> createHrProjectInfo(@Valid @... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check the total value of the patron's brokerage account throw AuthenticationException if the SS, username, and password don't match a bank patron throw UnauthorizedActionException if the given patron does not have a brokerage account | public double checkTotalBalanceBrokerage(long socialSecurityNumber, String userName, String password) throws AuthenticationException,UnauthorizedActionException{
if(security(socialSecurityNumber, userName, password)){
throw new AuthenticationException();
}
if(getPatron(socialSecu... | [
"public double checkCashInBrokerage(long socialSecurityNumber, String userName, String password) throws AuthenticationException,UnauthorizedActionException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(soc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string a24 = 24; | java.lang.String getA24(); | [
"public Builder setA24(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00800000;\n a24_ = value;\n onChanged();\n return this;\n }",
"public void setField24(java.lang.CharSequence value) {\n this.field2... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a command object to add deadline task to the list. | public AddDeadlineCommand(String taskName, LocalDateTime date) {
super(taskName);
this.date = date;
} | [
"private Command addDeadline(String[] input) throws InvalidInputException {\n assert input != null : \"addDeadline: input cannot be null\";\n\n try {\n String[] taskAndTime = input[1].split(DEADLINE_MARKER, 2);\n if (taskAndTime.length > 1) {\n DeadlineTask deadlin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
load the employee's availability templates into memory | private void initAvailabilityTemplates() {
try {
for(AvailabilityTemplateModel atm : getDAO(AvailabilityTemplateDAO.class).listByEmployee(getID()).execute()) {
_availabilityTemplates.add(AvailabilityTemplate.load(getCache(), atm.getId()));
}
} catch(Exception e) {... | [
"public void loadTemplates()\n {\n for (PageTemplate template : templates.values())\n {\n template.load(pageDirectory);\n }\n }",
"private void getTemplates(){\n homeTemplateBuffer =ioManager.getTextResource(\"template.html\");\n //homeTemplateBuffer =ioManager.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find an id of an attribute from chm62edt_info_quality table. | public static Integer findIDInfoQuality(String name) {
Integer ret = -1;
if (null == name) {
return ret;
}
try {
Chm62edtInfoQualityDomain finder = new Chm62edtInfoQualityDomain();
List resList = finder.findWhere("DESCRIPTION='" + name + "'");
... | [
"String getIdAttribute();",
"public Attribute fetchAttributeById(int attribId);",
"public CardAttribute getAtrributeByCardID(int id) {\n\t\tfor(CardUnitController t: database) {\n\t\t\tif(t.getCardID()==id)return t.getAttribute();\n\t\t}\n\t\treturn null;\n\t}",
"protected Long getExistingAttributeId(final St... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the associated RowIterator using masterdetail link SgaexpedlbultoView | public oracle.jbo.RowIterator getSgaexpedlbultoView()
{
return (oracle.jbo.RowIterator)getAttributeInternal(SGAEXPEDLBULTOVIEW);
} | [
"public Iterator getDetailEntries();",
"public RowIterator getDetailpermisView() {\n return (RowIterator) getAttributeInternal(DETAILPERMISVIEW);\n }",
"public RowIterator getDetailpermisView1() {\n return (RowIterator) getAttributeInternal(DETAILPERMISVIEW1);\n }",
"public RowIterator get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the earliest starting date of this job. For simple jobs, this is their assigned start date , for complex jobs this is the latest earliest finishing date of all jobs this job depends on. | public Date getEarliestStartDate(); | [
"public java.util.Calendar getJobStartDate()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(JOBSTARTDATE$0, 0);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return String.format("INSERT INTO keyinfo(bid, gid, kvalue) VALUES(%d, %d, '%s');\n", batchid, batchGenid, cdkey); | private static String createCDKeyInsertSql(int batchid, int batchGenid, String cdkey)
{
return String.format("INSERT INTO keyinfo(kvalue) VALUES('%s');\n", cdkey);
} | [
"@Insert({\n \"insert into t_apikey (id, key, \",\n \"name, api_id, des_key, \",\n \"parkIds)\",\n \"values (#{id,jdbcType=INTEGER}, #{key,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{apiId,jdbcType=VARCHAR}, #{desKey,jdbcType=VARCHAR}, \",\n \"#{parkids,jdbcType=... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For Project Part III (gold points) Collect all locations that match a cleaned locationName, and return information about each node that matches. | public List<Map<String, Object>> getLocations(String locationName) {
List<Map<String, Object>> result = new ArrayList<>();
for (Node node: cleanMatch.get(cleanString(locationName))) {
Map<String, Object> temp = new HashMap<>();
temp.put("lat", node.lat());
temp.put("l... | [
"private static void translateLocations(String owner) {\r\n\t\tNode locationsNode;\t\t\t\t\t//The only <Locations> nodes in the XML query\r\n\t\tArrayList<Node> locations;\t\t\t//The location definitions in the XML query\r\n\t\tLocationDefinition location;\t\t//One of the location definitions\r\n\t\tString location... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Signs a transaction with the private key of the wallet. | public void signTransaction(Transaction transaction) {
if (transaction.getSender().equals(this.publicKey)) {
transaction.generateSignature(this.privateKey);
}
} | [
"public SignedTransaction signWithAddress(Transaction tx, Address addr) throws com.algorand.algosdk.kmd.client.ApiException, NoSuchAlgorithmException {\n ExportKeyRequest req = new ExportKeyRequest();\n req.setAddress(addr.toString());\n req.setWalletHandleToken(handle);\n req.setWalletP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get one dealHistory by id. | @Transactional(readOnly = true)
public Optional<DealHistoryDTO> findOne(Long id) {
log.debug("Request to get DealHistory : {}", id);
return dealHistoryRepository.findById(id)
.map(dealHistoryMapper::toDto);
} | [
"public OrderHistory getHistoryById(String id) throws Exception;",
"@Override\n @Transactional(readOnly = true)\n public BenchCommentHistory findOne(Long id) {\n log.debug(\"Request to get BenchCommentHistory : {}\", id);\n return benchCommentHistoryRepository.findOne(id);\n }",
"public H... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Convenient implementation of Wsdl11Definition that creates a SOAP 1.1 or 1.2 binding based on naming conventions in one or more inlined XSD schemas. Delegates to InliningXsdSchemaTypesProvider, DefaultMessagesProvider, SuffixBasedPortTypesProvider, SoapProvider underneath; effectively equivalent to using a ProviderBa... | @Bean(name = "CalculatorService")
public Wsdl11Definition defaultWsdl11Definition() {
SimpleWsdl11Definition wsdl11Definition = new SimpleWsdl11Definition(); //As per comment on top, it does support SOAP 1.2 despite the Object Name!
wsdl11Definition.setWsdl(new ClassPathResource("/wsdl/Calculator.wsdl"));
ret... | [
"com.sun.java.xml.ns.j2Ee.XsdQNameType addNewWsdlBinding();",
"public interface Definition extends WSDLElement\n{\n /**\n * Set the document base URI of this definition. Can be used to\n * represent the origin of the Definition, and can be exploited\n * when resolving relative URIs (e.g. in <import>s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
remove this DeferredResourceReference from its ResourceDictionary /internal | public /*virtual*/ void RemoveFromDictionary()
{
if (_dictionary != null)
{
_dictionary.DeferredResourceReferences.Remove(this);
_dictionary = null;
}
} | [
"public void removeResourceCollection()\r\n {\r\n getSemanticObject().removeProperty(swb_resourceCollectionInv);\r\n }",
"public void removeResources() {\n\t\tresources.clear();\n\t}",
"public void unsetResource()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets exclusive minimum value. | @JsonIgnore
BigDecimal getExclusiveMinimumValue(); | [
"Object getMinInclusive();",
"Number getMin();",
"public Number getMinValue() {return min_value;}",
"public int getMinimumValue() {\n return range.min;\n }",
"public double getMinValueFromThisSequence() {\n return min;\n }",
"public Number getMinimumAccessibleValue() {\n return ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the wcrws property. | public void setWcrws(int value) {
this.wcrws = value;
} | [
"public int getWcrws() {\r\n\t\treturn wcrws;\r\n\t}",
"public void setWsID(int value) {\n this.wsID = value;\n }",
"public void setWCCost(entity.WCCost value);",
"public void setWzwd(String wzwd) {\r\n this.wzwd = wzwd;\r\n }",
"public void setW(java.lang.Integer value) {\n this.w = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sort the query result by porInstance. | HistoryQuery orderByPorInstance(SortDirection sortDirection); | [
"com.vitessedata.llql.llql_proto.LLQLQuery.Sort getSort();",
"public void sortQueries(){\n\t\tif (queries == null || queries.isEmpty()) {\n\t\t\treturn;\n\t\t} else {\n\t\t Collections.sort(queries, new Comparator<OwnerQueryStatsDTO>() {\n @Override\n public int compare(OwnerQuery... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .com.bingo.server.msg.GetSettingsRequest GetSettingsRequest = 13; | public com.bingo.server.msg.Settings.GetSettingsRequest getGetSettingsRequest() {
if (getSettingsRequestBuilder_ == null) {
return getSettingsRequest_ == null ? com.bingo.server.msg.Settings.GetSettingsRequest.getDefaultInstance() : getSettingsRequest_;
} else {
return getSettingsReq... | [
"com.bingo.server.msg.Settings.GetSettingsRequest getGetSettingsRequest();",
"com.bingo.server.msg.Settings.SettingsRequest getSettingsRequest();",
"com.bingo.server.msg.Settings.GetSettingsRequestOrBuilder getGetSettingsRequestOrBuilder();",
"com.bingo.server.msg.Settings.SettingsRequestOrBuilder getSettings... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
while defining new father, it will automatically update the father about his new son | private void sonUpdate() {
if (father != null) {
if (data < father.getData()) {
father.setLeftSon(this);
} else {
father.setRightSon(this);
}
}
} | [
"public void setfather(Person f) {\r\n\tif (this.father() != null) {\r\n\t\tPerson a= this.father();\r\n\t\ta.setnumChildren(a.numChildren()-1);\r\n\t}\r\n\tfather= f;\r\n\tf.setnumChildren(f.numChildren()+1);\r\n}",
"public void UpdateRelations() {\r\n \r\n for(int i=0; i<children.size(); i++) {\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the individual binding with the given property name. | public Binding getBinding(String aPropertyName)
{
// Iterate over bindings and return the first that matches given property name
for(int i=0, iMax=getBindingCount(); i<iMax; i++)
if(getBinding(i).getPropertyName().equals(aPropertyName))
return getBinding(i);
return null; // Return null s... | [
"public Binding getBinding(QName name);",
"public Binding getBinding(int anIndex) { return getBindings(true).get(anIndex); }",
"String getBindingName();",
"Binding getBinding();",
"public Object get(String key)\n {\n return bindings.get(key);\n }",
"Property getProperty(String propertyName);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a randomnumber in the range from..to. | private int random(int from, int to) {
return from + (int) (Math.random() * (to - from + 1));
} | [
"public static int random(int from, int to)\n {\n return new Random().nextInt(to-from+1)+from;\n }",
"public static int getRandomNumber(int from, int to) {\n if (from == to) {\n return from;\n }\n else {\n return from + generator.nextInt(to - from);\n }\n }",
"public static int rando... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method initializes cmdDel | private JButton getCmdDel() {
if (cmdDel == null) {
cmdDel = new JButton();
cmdDel.setText("");
cmdDel.setToolTipText("Delete selected proxy");
cmdDel.setIcon(new ImageIcon(getClass().getResource("/delete.png")));
cmdDel.addActionListener(new java.awt.event.ActionListener() {
public void act... | [
"private void setDel() {\n\t\tDelOpt.add(\"-d\");\n\t\tDelOpt.add(\"/d\");\n\t\tDelOpt.add(\"delete\");\n\n\t}",
"private void initDelButt() {\n\t\tbuttDel = (Button) findViewById(R.id.buttDel);\n\t\tbuttDel.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if the Node father is father, for each one of its children evaluate the index and remove the value from the treeMap, then add the children to the CategoryTree recursively | private void populate(Node father, TreeMap<Integer, TreeMap<Integer, Category>> categoriesMap){
if (categoriesMap.containsKey(father.getCategory().getId())) {
List<Category> temp = new ArrayList<Category>(categoriesMap.get(father.getCategory().getId()).values());
for (Category c : temp) {
Node t = n... | [
"public void removeFromNonLeaf(int idx) \r\n\t{ \r\n \r\n\t\tT k = (T)keys[idx]; \r\n\r\n\t\r\n\t\t// If the child that precedes k (C[idx]) has atleast ts keys, \r\n\t\t// find the predecessor 'pred' of k in the subtree rooted at \r\n\t\t// C[idx]. Replace k by pred. Recursively delete pred \r\n\t\t// in C[idx] \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns an arraylist of books that are due on some day | public ArrayList<Book> booksDueOnDate(String date) {
ArrayList<Book> bookieTookie = new ArrayList<Book>();
for (int i = 0; i < libraryBooks.size(); i++)
{
if (libraryBooks.get(i).getDueDate() == date) {
bookieTookie.add(libraryBooks.get(i));
}
}
return bookieTookie;
} | [
"public Book[] overDueBooks(int[] date){\n Book[] overdue = new Book[0];\n for (LibraryBook book : this.books) {\n if (book.isCheckedOut()) {\n if (book.dueDate()[2] == date[2]) {\n if (book.dueDate()[1] == date[1]) {\n if (book.dueDate()[0] == d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value cd. | public void setValueCd(String valueCd) {
this.valueCd = valueCd;
} | [
"public void setCd(String aCd)\n {\n cd = aCd;\n setItDirty(true);\n }",
"public void setCDVAL(java.lang.String CDVAL) {\n this.CDVAL = CDVAL;\n }",
"public void setCdSystemCd(String aCdSystemCd)\n {\n cdSystemCd = aCdSystemCd;\n setItDirty(true);\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to read multiple Model from data store based on the model's ID | <T> List<T> read(List<T> models) throws NotFoundException; | [
"private static final void loadFromDBPlusRelatedModels(long modelId) {\n \t\tModel currentModel = fromDb(modelId);\n \t\t\n \t\t//load related card models\n \t\tCardModel.fromDb(currentModel.id, currentModel.cardModelsMap);\n \t\t\n \t\t//load related field models\n \t\tFieldModel.fromDb(modelId, currentModel.field... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets the status of this HiddencardPanel. A repaint will be done if necessary. | public void setStatus(int status) {
if ( this.status == ENABLED && status == DISABLED
|| this.status == DISABLED && status == ENABLED)
{
this.status = status; // avoid repainting
}
else
super.setStatus(status);
} | [
"public void setStatus() {\r\n status = true;\r\n }",
"public void setStatus(Status givenStatus)\n { \n status = givenStatus;\n if (observer != null)\n {\n observer.update(this);\n }\n }",
"private void setStatus() {\n\n mHealthStatus.setText(\"HP: \" + mHitPoints);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a new request execution time gauge to the collection of gauges name of the gauge will be computed as key.toString() | public void addGauge(T key) {
String gaugeName;
if(key instanceof Class) {
Class ckey = (Class)key;
gaugeName = ckey.getSimpleName();
} else if(key instanceof Method){
Method mkey = (Method)key;
// use '|' as delimiter to keep JMX happy
... | [
"public void addRequestTimer() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"request-timer\",\n null,\n childrenNames());\n }",
"public synchronized void addCounter(T key, String name) {\n if(counters.containsKey(key)) {\n return;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new key for values of the given class. | public Key(final Class<?> classe) {
this(classe.getName());
valueClass = classe;
} | [
"public ClassKey(final Class<?> classe) {\n super(classe);\n }",
"Class<?> getKeyClass();",
"public interface Key<T> {\n String getName();\n Class<T> getType();\n\n static <T> Key<T> of(Class<T> type) {\n return of(type.getName(), type);\n }\n\n st... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the danh gia hai long remote service. | public void setDanhGiaHaiLongService(
com.alpha.portlet.danh_gia_hai_long.service.DanhGiaHaiLongService danhGiaHaiLongService) {
this.danhGiaHaiLongService = danhGiaHaiLongService;
} | [
"public void setDanhGiaHaiLongLocalService(\n\t\tcom.alpha.portlet.danh_gia_hai_long.service.DanhGiaHaiLongLocalService danhGiaHaiLongLocalService) {\n\t\tthis.danhGiaHaiLongLocalService = danhGiaHaiLongLocalService;\n\t}",
"private void setService(Service service) {\n this.service = service;\n }",
"v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the zerorelative index of the item which is currently selected in the receiver, or 1 if no item is selected. Note that this only returns useful results if this NatCombo supports single selection or only one item is selected. | public int getSelectionIndex() {
if (!this.dropdownList.isDisposed()) {
return this.dropdownList.getSelectionIndex();
} else if (!this.text.isDisposed()) {
return this.itemList.indexOf(this.text.getText());
}
return -1;
} | [
"public int getIndexOfSelectedItem() {\n\n return currentSelection.get(selectedJumpType);\n\n }",
"public int getSelectedItemIndex() {\n // The index of the currently selected item can only be\n // obtained if the menu is showing.\n AbstractListItem selectedItem = getSelectedItem();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Number of times the SSL session id was not found in the cache. | public int getSslSessionIDMemCacheMiss() throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[222]);
_call.setUseSOAPAc... | [
"public int getNumCacheMiss() {\n return cacheHandler.getCountCacheMiss();\n }",
"public int getSslSessionIDMemCacheHit() throws java.rmi.RemoteException {\n if (super.cachedEndpoint == null) {\n throw new org.apache.axis.NoEndPointException();\n }\n org.apache.axis.clien... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the note of this dm port harbour. | public void setNote(java.lang.String note) {
_dmPortHarbour.setNote(note);
} | [
"private void setNote() {\n\t\tNoteOpt.add(\"-nd\");\n\t\tNoteOpt.add(\"/nd\");\n\t\tNoteOpt.add(\"notedetails\");\n\n\t}",
"public void setNote(String note);",
"public void setDocumentNote (String DocumentNote);",
"@Override\n public void setNote(java.lang.String Note) {\n _auditReport.setNote(Note... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Writes an ARFF (Weka) representation of an instanceList | public static void convert2ARFF(InstanceList instances, PrintWriter pWriter, String description) {
Alphabet dataAlphabet = instances.getDataAlphabet();
Alphabet targetAlphabet = instances.getTargetAlphabet();
pWriter.write("@Relation " + description + "\n\n");
int size ... | [
"public static void writePlainInstanceList(InstanceList instanceList,\n String file, String encoding) {\n\n Writer writer = null;\n try {\n writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(\n file), encod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Define o atributo codOperacao | public void setCodOperacao(Integer codOperacao) {
this.codOperacao = codOperacao;
} | [
"public void setCodigoOperador(java.lang.String codigoOperador) {\n this.codigoOperador = codigoOperador;\n }",
"public void setOperador(final String operador) {\n this.operador = operador;\n }",
"public java.lang.String getCodigoOperador() {\n return codigoOperador;\n }",
"priva... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the view accessor RowSet IssueToStitchLov1. | public RowSet getIssueToStitchLov1() {
return (RowSet)getAttributeInternal(ISSUETOSTITCHLOV1);
} | [
"public RowSet getPermisView1() {\n return (RowSet) getAttributeInternal(PERMISVIEW1);\n }",
"public RowSet getUsersView1() {\n return (RowSet) getAttributeInternal(USERSVIEW1);\n }",
"public RowSet getSystemIdLov1() {\n return (RowSet)getAttributeInternal(SYSTEMIDLOV1);\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets the patient ID combobox values | public void SetCombValues(){
ArrayList<String> a = new ArrayList<String>();
for (int i = 0; i < SystemDatabase.appointmentArray.size(); i++) {
if ("Unverified".equals(SystemDatabase.appointmentArray.get(i).getStatus())) {
a.add(SystemDatabase.appointmentArray.get(... | [
"private void setStudentIdCombobox() {\n for (int i = 0; i < resultList.size(); i++) {\n String userId = resultList.get(i).getUserId();\n cmbStudentId.addItem(userId);\n }\n }",
"public void setClientsIdComboBox(Object[] allID)\n\t{\n\t\tfor (Object id : allID)\n\t\t{\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a new PitchShiftBlock with an initial shift shift | PitchShiftBlock(MusicManager musicManager, int shift) {
super(musicManager);
this.shift = shift;
} | [
"public PitchShiftBlock(MusicManager musicManager) {\n super(musicManager);\n /* Default shift */\n this.shift = 0;\n }",
"public ShiftTemplate() {\n }",
"public DigitalNetBase2IteratorShiftGenerators() {\n super(); \n dimS = dim + 1;\n if (digitalShift != null... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unique MD5 hash that represents the configuration item's state. You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource. Returns a reference to this object so that method calls can be chained together. | public ConfigurationItem withConfigurationItemMD5Hash(String configurationItemMD5Hash) {
this.configurationItemMD5Hash = configurationItemMD5Hash;
return this;
} | [
"public String getConfigurationItemMD5Hash() {\n return this.configurationItemMD5Hash;\n }",
"public String getConfigurationItemMD5Hash() {\n return configurationItemMD5Hash;\n }",
"public String getMd5Hash() {\n return md5Hash;\n }",
"public int getHash(){\r\n return stateList.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the number of environments. | public static int getEnvironmentsCount() {
return getService().getEnvironmentsCount();
} | [
"int getSecretEnvironmentVariablesCount();",
"public long countSites() {\n\t\treturn siteOids.size();\n\t}",
"public int size() {\n\treturn productions.size();\n }",
"public int numberOfOpenSites() {\r\n\r\n\t\treturn count;\r\n\t}",
"public int getNumberOfConfigurations()\n {\n return configur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return true if not all key layouts have the same width. This method must be called when the device is in landscape mode. | private boolean shouldAdjustKeyWidths() {
Assert.checkState(isLandscapeMode);
DialpadKeyButton dialpadKeyButton = (DialpadKeyButton) findViewById(BUTTON_IDS[0]);
LinearLayout keyLayout =
(LinearLayout) dialpadKeyButton.findViewById(R.id.dialpad_key_layout);
final int width = keyLayout... | [
"private boolean shouldAdjustDigitKeyHeights() {\n Assert.checkState(!isLandscapeMode);\n\n DialpadKeyButton dialpadKey = (DialpadKeyButton) findViewById(BUTTON_IDS[0]);\n LinearLayout keyLayout = (LinearLayout) dialpadKey.findViewById(R.id.dialpad_key_layout);\n final int height = keyLayout.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/////////////////////////////////////////////////////////////////////////// DELETE /////////////////////////////////////////////////////////////////////////// Delete a site Deletes the site with siteId. | @DELETE(CoreConstant.CORE_PUBLIC_API_V1 + "/sites/{siteId}")
Call<Void> deleteSiteCall(@Path("siteId") String siteId); | [
"DeleteSiteResult deleteSite(DeleteSiteRequest deleteSiteRequest);",
"@DELETE\t\n\t@Produces(\"application/json\")\n\t@Path(\"/{ID}\")\n\tpublic List<Site> deleteSite(@PathParam(\"ID\") int siteId){\n\t\treturn siteDaoObj.removeSite(siteId);\t\t\n\t}",
"@Test\n\t@DatabaseSetup(\"site-test/create-site-data-initi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
In some situations, FCM may not deliver a message. This occurs when there are too many messages (>100) pending for your app on a particular device at the time it connects or if the device hasn't connected to FCM in more than one month. In these cases, you may receive a callback to FirebaseMessagingService.onDeletedMess... | @Override
public void onDeletedMessages() {
} | [
"@Override\n protected void onDeletedMessages(Context context, int total) {\n Log.i(TAG, \"Received deleted messages notification\");\n }",
"long getDurableMessageCount();",
"@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n Log.d(TagUtils.getTag(), \"From: \" + r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Simulates battle and produces BattleInfo for GameView. Initializes BattleInfo. Survivor party attacks zombie party, the zombies attack survivors. Loops until either party has no remaining characters. | public BattleInfo getBattleInfo(Party[] parties) {
BattleInfo battleInfo = new BattleInfo();
Party survivorParty = parties[0];
Party zombieParty = parties[1];
int remainingSurvivors;
int remainingZombies;
do {
survivorParty.attack(zombieParty, battleI... | [
"private void combatPhase() {\n \t\n \tpause();\n \tDice.setFinalValMinusOne();\n\n \t// Go through each battle ground a resolve each conflict\n \tfor (Coord c : battleGrounds) {\n \t\t\n \tClickObserver.getInstance().setTerrainFlag(\"\");\n \t\n \tSystem.out.println(\"Enterin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the path for eclipse plugins. | public void setEclipsePath(String eclipsePath) {
if (null != eclipsePath) {
this.eclipsePath = eclipsePath;
System.out.println("Eclipse Path is: " + eclipsePath);
}
} | [
"abstract public void setMspluginsDir(String path);",
"void setPlugins(String plugins);",
"public void \n setPluginDirectory\n (\n File dir\n ) \n throws IllegalConfigException\n {\n pProfile.put(\"PluginDirectory\", \n validateAbsolutePath(dir, \"Plugin Directory\").getPath());\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
1. If the term map has a specified language tag, then return a plain literal with that language tag and with the natural RDF lexical form corresponding to value. | private Value generateLiteralTermType(TermMap termMap, String value)
throws R2RMLDataError, SQLException {
if (termMap.getLanguageTag() != null) {
if (!RDFDataValidator.isValidLanguageTag(termMap.getLanguageTag()))
throw new R2RMLDataError(
"[R2RMLEngine:generateLiteralTermType] This language tag... | [
"public interface Literal extends RDFTerm {\n\n /**\n * The lexical form of this literal, represented by a\n * <a href=\"http://www.unicode.org/versions/latest/\">Unicode string</a>.\n *\n * @return The lexical form of this literal.\n * @see <a href=\n * \"http://www.w3.org/TR/rdf11-... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the position of the closing bracket after startPosition. | protected int searchForClosingBracket( int startPosition, char openBracket, char closeBracket, IDocument document ) throws BadLocationException {
int stack = 1;
int closePosition = startPosition + 1;
int length = document.getLength();
char nextChar;
// Scan forward for the closi... | [
"public int getEndPosition();",
"public int getEndPosition() {\n return getStartPosition() + getLength();\n }",
"public int getEnd() {\n switch(getType()) {\n case Insertion:\n case SNP:\n case InterDup:\n case TandemDup:\n case TransDup:\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'vehicleInfo' field. | public com.datawhisperers.restfulexample.avromodel.OEMVehicleDataAvro.Builder clearVehicleInfo() {
vehicleInfo = null;
vehicleInfoBuilder = null;
fieldSetFlags()[6] = false;
return this;
} | [
"public com.datawhisperers.restfulexample.avromodel.VehicleInfoAvro.Builder clearVehicleType() {\n vehicleType = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"public no.ruter.avro.entity.actual.call.key.EntityPartition.Builder clearVehicleRef() {\n VehicleRef = null;\n fiel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column payment_transaction.partner_zip | public void setPartnerZip(String partnerZip) {
this.partnerZip = partnerZip == null ? null : partnerZip.trim();
} | [
"public String getPartnerZip() {\n return partnerZip;\n }",
"public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);",
"public void setZip(int value) {\n this.zip = value;\n }",
"public void setZipCode(String zipCode){\n\n this.zipCode = zipCode;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value associated with the column: DgSampleCollectionDetails | public java.util.Set<jkt.hms.masters.business.DgSampleCollectionDetails> getDgSampleCollectionDetails() {
return dgSampleCollectionDetails;
} | [
"public java.util.Set<jkt.hms.masters.business.DgSampleCollectionDetails> getDgSampleCollectionDetails () {\n\t\treturn dgSampleCollectionDetails;\n\t}",
"public StrColumn getVectorDetails() {\n return delegate.getColumn(\"vector_details\", DelegatingStrColumn::new);\n }",
"DataCollectionInfo getInfo(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
root2b(a,b,c,eps) = root(a,2b,c,eps) , eps = 1 or +1 | public static double root2b(double a, double b, double c,int eps) {
if (a == 0 && b == 0)
return Double.NaN;
else if (a == 0)
return -c/(2*b);
else {
double sqb = sq(b);
double ac = a*c;
if (almost_equals(sqb,ac) || sqb > ac)
return (-b + eps*sqrt_safe(sqb-ac))/a;
... | [
"static void bisection(double a, double b) \n { \n if (func(a) * func(b) >= 0) \n { \n System.out.println(\"You have not assumed\"\n + \" right a and b\"); \n return; \n } \n \n double c = a; \n while ((b-a) >= EPSILON) \n { ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the phone number of Programmatic Point Of Contact at originator. | public String getOriginatorPhone() {
return originatorPhone;
} | [
"public java.lang.String getContactPhoneNumber()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTACTPHONENUMBER$0, 0);\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns number of "SubInfo" element | public int sizeOfSubInfoArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SUBINFO$4);
}
} | [
"public int sizeOfSubArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SUB$2);\n }\n }",
"public int subResourceCount() {\r\n int res = 0;\r\n boolean _notEquals = (!Objects.equal(this.subResources, null));\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resumes a skat series at a table | public void resumeSkatSeries(String tableName) {
SkatTable table = data.getSkatTable(tableName);
if (table.isSeriesRunning()) {
table.resumeSkatSeries();
}
} | [
"public void resumeSkatSeries() {\n\n\t\tlog.debug(data.getActiveTable());\n\n\t\tresumeSkatSeries(data.getActiveTable());\n\t}",
"public void resumeSkatGame(String tableName) {\n\n\t\tSkatTable table = data.getSkatTable(tableName);\n\n\t\tif (table.isSeriesRunning()) {\n\n\t\t\ttable.resumeSkatGame();\n\t\t}\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks two time frames for intersection. Interpret as follows: one timeframe is delimited by d1Left on the right and d1Right on the right, this is the reference frame. the second timeframe is delimited by d2Left/Right. This method checks, if any part of the second timeframe is contained within the first timeframe. | protected static boolean intersects(Date d1Left, Date d1Right, Date d2Left, Date d2Right) {
if(d2Left.after(d1Left)) {
if(d2Left.before(d1Right)) {
return true;
} else {
return false;
}
} else if(d2Right.after(d1Left)) {
return true;
} else {
return false;
}
} | [
"private boolean intersects(LocalDateTime time1, LocalDateTime time2) {\n if (time1.compareTo(time2) <= 0 && time1.plusHours(1).compareTo(time2) > 0) return true;\n if (time2.compareTo(time1) <= 0 && time2.plusHours(1).compareTo(time1) > 0) return true;\n return false;\n }",
"private stati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is crucial to update the [b2dViewport] when a resize event occurs. | void resize(int width, int height) {
b2dViewport.update(width, height);
} | [
"@Override\n\tpublic void onResized(Dimension windowSize) {\n\t\t\n\t\tupdateViewport( (int)windowSize.getWidth(), (int)windowSize.getHeight() );\n\t}",
"public void recalculateViewport() {\r\n glViewport(0, 0, getWidth(), getHeight());\r\n spriteBatch.recalculateViewport(getWidth(), getHeight());\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Used to build a new coupon using fields that are taken from a given result set. | public Coupon buildCouponFromRS(ResultSet resultSet) throws DaoCouponException {
Coupon coupon = new Coupon();
try {
coupon.setCouponId(resultSet.getLong(1));
coupon.setCouponName(resultSet.getString(2));
coupon.setStartDate(resultSet.getDate(3));
coupon.setEndDate(resultSet.getDate(4));
coupo... | [
"private Cart makeFromResultSet(ResultSet resultSet) throws SQLException {\n Cart cart = new Cart();\n cart.setCartId(resultSet.getLong(1));\n cart.setUserId(resultSet.getLong(2));\n cart.setItemId(resultSet.getLong(3));\n cart.setOrderId(resultSet.getLong(4));\n cart.setCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
decreaseHealthCount() Decrements the numerical value for the bird's health by 1. This method is called when the bird hits a GameObject that it shouldn't hit | public void decreaseHealthCount() {
if (this.healthCount > LOWEST_HEALTH_COUNT)
this.healthCount = this.healthCount - HEALTH_DECREMENT;
} | [
"public void decreaseHealth() {\n setHealth(getHealth()-1);\n }",
"public void decreaseHealth() {\n\t\tthis.health--;\n\t\tthis.attacked = true;\n\t}",
"public void hit(){\n health --;\n }",
"public void reduceHealth(int damage){\n health -= damage;\n }",
"public void loseHealt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For this new nextWindow, we may have a new row and/or col connection or no connection. If we have any new connection, then split our bounded connection interval at the new nextWindow and move the interval down to this new interval. If the nextWindow was cloned, we need to use the original nextWindow (nextWindow.clonedP... | private void processNewConnections(CorrelationWindow window, Connection colConnection, Connection rowConnection)
{
try
{
// if we have a new row and/or col connection, split the connection interval
// by inserting this connection into it
if (colConnection != null)
{
colConnection = addPatchConnecti... | [
"public Connection addPatchConnection(Connection connection, ConnectionList connectionList)\n\t{\n\t\tStsPatchGrid patchGrid;\n\n\t\tif(connectionList.connectionsCross(connection)) return null;\n\n\t\tPatchPoint newPatchPoint = connection.getNextPoint();\n\t\tPatchPoint otherPatchPoint = connection.getPrevPoint();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method encodes the given log into character streams | private void encodeLog(){
/*
* activitySet accumulates the set of distinct
* activities/events in the event log; it doesn't store the trace
* identifier for encoding; Encoding trace identifier is required only
* when any of the maximal repeat (alphabet) features is selected
*/
Set<String> activitySe... | [
"public LogWriter()\n\t{\n\t\tlogBuffer = new byte[8192];//allocate 8192 bytes to the log buffer\n\t\tencoding = StandardCharsets.UTF_8;//encode characters with the UTF8 standard\n\t}",
"private void encodeMessage() {\n encodedMessage = \"\";\n try(BufferedReader inputBuffer = Files.newBufferedReade... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the database engine specific string to fetch sequence next value. | public String getSequenceNextValString(final String seqName) {
if (_factory == null) { return seqName + ".nextval"; }
return _factory.getSequenceNextValString(seqName);
} | [
"public String getNextMasterVal(){\r\n\t\tString sql = \"INSERT INTO master_sequence (nothing) VALUES ('value')\";\r\n\t\tsqlUpdate(sql);\r\n\t\t\r\n\t\tsql = \"SELECT * FROM master_sequence ORDER BY id DESC\";\r\n\t\tDBResult value = sqlCommand(sql);\r\n\t\t\r\n\t\tHashtable<String, String> table = value.next();\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set the table size to the first prime number p >= capacity | public PHashtable (int capacity) {
if (!isPrime(capacity)) {
this.table = new ArrayList[getNextPrime(capacity)];
this.capacity = getNextPrime(capacity);
} else {
table = new ArrayList[capacity];
this.capacity = capacity;
}
Arrays.fill(tabl... | [
"private void initializeTable(int capacity) {\n this.table = new Object[capacity << 1];\n this.mask = table.length - 1;\n this.clean = 0;\n this.maximumLoad = capacity * 2 / 3; // 2/3\n }",
"private void resize() {\n if ((double) size / buckets.length > LO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a source name comparator | private Comparator<SourceVo> sourceNameComparator(String lang) {
return (s1, s2) -> {
String n1 = s1.getDesc(lang) != null ? s1.getDesc(lang).getName() : null;
String n2 = s2.getDesc(lang) != null ? s2.getDesc(lang).getName() : null;
return TextUtils.compareIgnoreCase(n1, n2)... | [
"protected Comparator getNameComparator()\n {\n if(nameComparator == null)\n {\n nameComparator = new SMComponentNameComparator();\n }\n\n return nameComparator;\n }",
"public static JwComparator<AcInputChannel> getNameComparator()\n {\n return AcInputChannel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The method returned map contain domens and names. | private Map<String, String> getDomensAndNames() {
List<String> lEmails = parceAndGetString("([\\w-\\.]+)@" + "((?:[\\w]+\\.)+)([a-zA-Z]{2,4})");
Map<String, String> mNamesAndDomens = new HashMap<>();
for (int i = 0; i <= lEmails.size() - 1; i++) {
String sEmail = lEmails.get(i);
String[] aNameAndDomen = s... | [
"public Map<Node, Node> getIdoms() {\n\t\treturn this.idom;\n\t}",
"public HashMap<String, Door> getDoors() {\n return (doors);\n }",
"public Map<String, String> getNamesAndDepartmentsOfEmployees() {\n HashMap<String, String> nameDpt = new HashMap<>();\n List<String> names = getNamesFromAl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method for sharing profile | private void shareProfile() {
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
String shareBody = "Check out this awesome developer @" + mUserId + " " + mUrl;
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Lagos De... | [
"public SharingProfile sharingProfile() {\n return this.sharingProfile;\n }",
"public DelegatingSharingProfile(SharingProfile sharingProfile) {\n this.sharingProfile = sharingProfile;\n }",
"public ModeledSharingProfile() {\n }",
"private IProfile getProfile() {\n \t\treturn profileRegi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prepare the FreeMarker configuration; Load templates from the WEBINF/templates directory of the Web app. | public void init() {
cfg = new Configuration();
cfg.setServletContextForTemplateLoading(getServletContext(), "WEB-INF/templates");
} | [
"public void init() \n { Prepare the FreeMarker configuration;\n // - Load templates from the WEB-INF/templates directory of the Web app.\n //\n cfg = new Configuration();\n cfg.setServletContextForTemplateLoading(\n getServletContext(), \n \"WEB-INF/temp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case for getTitle method of TvShow | @Test
public void test_getTitle() {
TvShow t1 = new TvShow("Sherlock","BBC");
assertEquals("Sherlock",t1.getTitle());
} | [
"String getTitle();",
"@Test\n\tpublic void testGetTitle(){\n\t\tArticleEntry ae = new ArticleEntry();\n\t\tString expResult = \"NP-complete Problems Simplified on Tree Schemas.\";\n\t\tae.setTitle(\"NP-complete Problems Simplified on Tree Schemas.\");\n\t\tString result = ae.getTitle();\n\t\tassertEquals(expResu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
mock a simple response with the JSON Content | private static MockResponse buildPositiveMockResponse() throws JSONException {
final MockResponse response = new MockResponse();
final JSONObject jsonContent = buildJsonResponse();
response.setBody(jsonContent.toString());
response.setHeader("Content-Type", "application/json; charset=utf-8");
return... | [
"@Test\n public void getItem_fromService() throws Exception {\n\n Mockito.when(itemService.getHardcodedValues()).thenReturn(new Item(2L, \"test 2\", 20.0, 2L));\n RequestBuilder requestBuilder = MockMvcRequestBuilders.get(\"/api/dummy-item-from-service\")\n .accept(MediaType.APPLICAT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional float normalized_word_duration = 9 [default = 0]; | @java.lang.Override
public boolean hasNormalizedWordDuration() {
return ((bitField0_ & 0x00000020) != 0);
} | [
"@java.lang.Override\n public float getNormalizedWordDuration() {\n return normalizedWordDuration_;\n }",
"@java.lang.Override\n public float getNormalizedWordDuration() {\n return normalizedWordDuration_;\n }",
"public Builder setNormalizedWordDuration(float value) {\n bitField0_ |= 0x0000... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This test will return total of 1 result, for unit "Custom Retail" filtered by amount from "24" to "27" with documentStatus "Open". | @Test
public void shouldReturnPagedOpenDocumentsForCustomRetailFilteredByAmountRange()
{
final SearchPageData<B2BDocumentModel> result = pagedB2BDocumentDao.getPagedDocumentsForUnit(UNIT_CUSTOM_RETAIL,
createPageableData(0, 10, StringUtils.EMPTY), Collections.singletonList(AccountSummaryAddonUtils
.create... | [
"@Test\n\tpublic void shouldReturnPagedOpenDocumentsForCustomRetailFilteredByDateRange() throws ParseException\n\t{\n\n\t\tfinal SearchPageData<B2BDocumentModel> result = pagedB2BDocumentDao.getPagedDocumentsForUnit(UNIT_CUSTOM_RETAIL,\n\t\t\t\tcreatePageableData(0, 10, StringUtils.EMPTY), Collections.singletonList... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints the given tree as an indented structure, with the given node indented by the given amount. | private static void print(Tree<?> node, String indent) {
Stack<Tree<?>> stack = new Stack<Tree<?>>();
String s="" ;
StringBuilder count = new StringBuilder();
stack.push(node);
while(!stack.empty()){
if(stack.peek().value.toString().equals("open")){
stac... | [
"public void prettyPrintTree() {\r\n\t\tSystem.out.print(\"prettyPrintTree starting\");\r\n\t\tfor (int i = 0; i <= this.getTreeDepth(); i++) {\r\n\t\t\tprettyPrintTree(root, 0, i);\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"public void printTree();",
"private void printTree(CharacterNode node, int inden... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an OCIL checklist (which can also include the results) from a stream. | public static IChecklist createChecklist(InputStream in) throws OcilException {
return new Checklist(in);
} | [
"private static List<Statement> loadStream(InputStream stream)\n throws IOException, ExecutionFacade.OperationFailed {\n final RDFParser reader = Rio.createParser(RDFFormat.JSONLD,\n SimpleValueFactory.getInstance());\n final List<Statement> statements = new ArrayList<>(64);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Abator for iBATIS. This method sets the value of the database column MITEST.MI626.FREEUSE2 | public void setFreeuse2(String freeuse2) {
this.freeuse2 = freeuse2;
} | [
"public void setFreeuse2(String freeuse2) {\n\t\tthis.freeuse2 = freeuse2 == null ? null : freeuse2.trim();\n\t}",
"public void setFreeuse2(String freeuse2) {\n this.freeuse2 = freeuse2 == null ? null : freeuse2.trim();\n }",
"public void setFreeuse1(String freeuse1) {\n\t\tthis.freeuse1 = freeuse1;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the size of inactiveHand | public int inactiveHandSize()
{
return inactiveHand.size();
} | [
"public int getHandSize(){\n\t\treturn hand.size();\n\t\t\t\t\n\t}",
"int getHandSize ()\n {\n return hand.size();\n }",
"public int \tgetSize() { return this.hand.size(); }",
"public int GetSizeOfHumanHand(){\n System.out.println(\"SIZE \" + handHuman.size() );\n return handHuman.s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Pop up a dialog for the detail result. | public void popResultDialog(int index) {
JFrame frame = (JFrame) SwingUtilities.windowForComponent(this);
if (frame != null && index > 0 && index < listRank.size()) {
Record record = listRank.get(index);
ResultDetailDialog dialog = new ResultDetailDialog(frame, record);
... | [
"private void showDetailsDialog() {\n // If the keywords JList has a selection.\n if (!this.lstKeywords.isSelectionEmpty()) {\n // Checks whether the selected JList value is a Message object.\n if (this.lstKeywords.getSelectedValue() instanceof Message) {\n new Vie... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validates the validateQuestionHelpTextPatternObservationCodeP constraint of 'Question Help Text Pattern Observation'. | public boolean validateQuestionHelpTextPatternObservation_validateQuestionHelpTextPatternObservationCodeP(
QuestionHelpTextPatternObservation questionHelpTextPatternObservation, DiagnosticChain diagnostics,
Map<Object, Object> context) {
return questionHelpTextPatternObservation.validateQuestionHelpTextPatternO... | [
"public boolean validateQuestionHelpTextPatternObservation_validateQuestionHelpTextPatternObservationCode(\n\t\t\tQuestionHelpTextPatternObservation questionHelpTextPatternObservation, DiagnosticChain diagnostics,\n\t\t\tMap<Object, Object> context) {\n\t\treturn questionHelpTextPatternObservation.validateQuestionH... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the processSteps value for this Pcmsys__Journal_Entries__c. | public void setProcessSteps(com.sforce.soap.enterprise.QueryResult processSteps) {
this.processSteps = processSteps;
} | [
"public void setProcessSteps(com.sforce.soap.enterprise.QueryResult processSteps) {\r\n this.processSteps = processSteps;\r\n }",
"public void setSteps(final List<Step> steps) {\n this.steps = steps;\n }",
"public void setSteps(List<Step> steps) {\n mSteps = steps;\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
setAdapter creates an instance of the MessageAdapter. It populates the recyclerView with the meetings by using the adapter. | private void setAdapter() {
adapter = new MessageAdapter(messages);
RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());
recyclerView.setLayoutManager(mLayoutManager);
recyclerView.setItemAnimator(new DefaultItemAnimator());
recyclerView.s... | [
"private void initList(){\n List<Meeting> meetings = mApiService.getMeetings();\n mRecyclerView.setAdapter(new MyMeetingRecyclerViewAdapter(meetings));\n }",
"private void setRecyclerView() {\n // use a linear layout manager\n chatLinearLayout = new LinearLayoutManager(this);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Move the tasks from the given queue to this one. | public void enqueueAll(final GameTaskQueue queue) {
_queue.addAll(queue._queue);
queue._queue.clear();
} | [
"public void executeQueue() {\n\tLog.d(TaskExecutor.class.getName(), \"Execute \" + mQueue.size() + \" Tasks\");\n\tfor (Task task : mQueue) {\n\t if (!mTaskExecutor.getQueue().contains(task))\n\t\texecuteTask(task);\n\t}\n }",
"public void setQueue ( Queue queue )\r\n {\r\n setDestination ( queue... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'field16' field has been set | public boolean hasField16() {
return fieldSetFlags()[16];
} | [
"public boolean hasField17() {\n return fieldSetFlags()[17];\n }",
"public boolean hasField168() {\n return fieldSetFlags()[168];\n }",
"public boolean hasVar16() {\n return fieldSetFlags()[17];\n }",
"public boolean hasField112() {\n return fieldSetFlags()[112];\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Create a playlist | public void create(String name){
Playlist pl = new Playlist(name,this.playlists.size(),this.centralStore);
this.playlists.add(pl);
pl.PlaylistMenu();
} | [
"public void createPlaylist(Playlist newPlaylist) {\n\t}",
"public void createPlaylist(String playlist)\n {\n new Thread(() -> {\n JsonObject reply =\n proxy.synchExecution(\"createPlaylist\", new String[]{username, playlist});\n\n Platform.runLater(() -> loadPla... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the "SearchWindowStart" element | void setSearchWindowStart(java.util.Calendar searchWindowStart); | [
"void xsetSearchWindowStart(org.apache.xmlbeans.XmlDateTime searchWindowStart);",
"void setNilSearchWindowStart();",
"boolean isSetSearchWindowStart();",
"java.util.Calendar getSearchWindowStart();",
"org.apache.xmlbeans.XmlDateTime xgetSearchWindowStart();",
"void unsetSearchWindowStart();",
"void xset... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleAddition2" $ANTLR start "ruleAddition2" ../../intellij/org.eclipse.xtext.core.idea.tests/srcgen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:569:1: ruleAddition2 : ( ruleMultiplication2 ( () otherlv_2= '+' ( (lv_right_3_0= ruleMultiplication2 )... | public final void ruleAddition2() throws RecognitionException {
Token otherlv_2=null;
try {
// ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:569:14: ( ( ruleMultiplication2 ( () ot... | [
"public final void ruleAddition2() throws RecognitionException {\n Token otherlv_2=null;\n\n try {\n // ../../intellij/org.eclipse.xtext.core.idea.tests/src-gen/org/eclipse/xtext/serializer/idea/parser/antlr/internal/PsiInternalSyntacticSequencerTestLanguage.g:557:14: ( ( ruleMultiplication... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changed the method name loansRemainingForMember to getLoansRemainingForMember by Malinga | public int getLoansRemainingForMember(member member) {
return LOAN_LIMIT - member.getNumberOfCurrentLoans();
} | [
"List<Loan> getNotReturnedLoans();",
"@Override\n\tpublic double getPendingLoans() {\n\t\tString qStr = \"SELECT loan_Amount FROM Account\";\n\t\tTypedQuery<Double> query = entityManager.createQuery(qStr, Double.class);\n\t\tList<Double> pendingLoan_List= query.getResultList();\n\t\t\n\t\tif(!pendingLoan_List.isE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method converts a String to a date using the datePattern | public static Date convertStringToDate(String strDate)
throws ParseException {
Date aDate = null;
try {
if (log.isDebugEnabled()) {
log.debug("converting date with pattern: " + datePattern);
}
aDate = convertStringToDate(datePattern, strDate);
... | [
"public static Date convertStringToDate( String strDate )\r\n throws ParseException\r\n {\r\n Date aDate = null;\r\n\r\n try\r\n {\r\n if ( log.isDebugEnabled() )\r\n {\r\n log.debug( \"converting date with pattern: \" + getDatePattern() );\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column t_operating_record.actual_bid_price | public void setActualBidPrice(BigDecimal actualBidPrice) {
this.actualBidPrice = actualBidPrice;
} | [
"public void setActualPrice(BigDecimal actualPrice) {\r\n this.actualPrice = actualPrice;\r\n }",
"public void setActualSellingPrice(BigDecimal actualSellingPrice) {\n this.actualSellingPrice = actualSellingPrice;\n }",
"public void setPRICE_OLD(BigDecimal PRICE_OLD) {\r\n this.PRICE_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the last login appid. | public void setLastLoginAppid(int lastLoginAppid) {
this.lastLoginAppid = lastLoginAppid;
} | [
"public int getLastLoginAppid() {\n\t\t\treturn lastLoginAppid;\n\t\t}",
"void setLoginId(long loginId);",
"@Override\n\tpublic void setApplicationId(long applicationId) {\n\t\t_userSync.setApplicationId(applicationId);\n\t}",
"public void setLastLogin(int lastLogin) { \n\t\t this.lastLogin = lastLogin; \n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find TnAnuncio entity by its identifier or primary key value. | @FindById(TnAnuncio.class)
TnAnuncio getById(java.lang.Integer id); | [
"<T> T find(String entity, Object id);",
"AceEntity findEntity (String id) {\n\t\tfor (int i=0; i<entities.size(); i++) {\n\t\t\tAceEntity entity = (AceEntity) entities.get(i);\n\t\t\tif (entity.id.equals(id)) {\n\t\t\t\treturn entity;\n\t\t\t}\n\t\t}\n\t\tSystem.err.println (\"*** unable to find entity with id \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |