query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
adds all needed pages to the wizard | @Override
public void addPages() {
super.addPages();
page1 = new NewReviewWizardPage();
addPage(page1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addPages() {\n\t\tpage = new NewTotoriWizardPage(selection);\n\t\taddPage(page);\n\t}",
"public void addPages() {\n\t\t\n\t\tProjectUtils projectUtils = new ProjectUtils();\n\t\tIProject proj = projectUtils.getProject(selection);\n\t\t\n\t\t\n\t\t\n\t\tDb db = loadDBParams();\n\t\tDBConnection dbConn... | [
"0.8638198",
"0.84264386",
"0.83334357",
"0.8307058",
"0.81527466",
"0.7981221",
"0.77797395",
"0.7066763",
"0.68962777",
"0.6708258",
"0.6478707",
"0.63958395",
"0.63934386",
"0.614566",
"0.61270106",
"0.60879123",
"0.6056499",
"0.6041039",
"0.59841186",
"0.59583014",
"0.590... | 0.8196548 | 4 |
Execute the actual wizard command after all information was collected | @Override
public boolean performFinish() {
boolean result = false;
try {
Review newRev = ReviewAccess.getInstance().createNewReview(this.page1.getReviewID());
if (newRev != null) {
newRev.setReferenceId(this.page1.getReviewReference());
newRev.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void runAfterStep() {}",
"@Override\n\tpublic boolean performFinish() {\n\t\tIWizardPage[] pages = this.getPages();\n\t\tBindFlowWizardPage bindpage = (BindFlowWizardPage) pages[0];\n\t\tString flowName = bindpage.getFlowName();\n\t\tcompositeService.setFlowname(flowName);\n\t\tIWorkspaceRoot root = Re... | [
"0.66812074",
"0.6450394",
"0.63233685",
"0.62334025",
"0.616961",
"0.61651415",
"0.6162697",
"0.6104862",
"0.60598326",
"0.595039",
"0.5875062",
"0.58549815",
"0.5850369",
"0.5840452",
"0.579423",
"0.57891184",
"0.57528645",
"0.5695875",
"0.5688407",
"0.5653565",
"0.5645086"... | 0.0 | -1 |
============================================================================= MINIMAL IMPLEMENTATION ============================================================================= | public OwSimpleUserInfo(String user_p, String password_p)
{
m_username = user_p;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"Petunia() {\r\n\t\t}",
"Reproducible newInstance();",
"@Override\n public void perish() {\n \n }",
"private SBomCombiner()\n\t{}",
"private Main() {\n\n super();\n }",
"pr... | [
"0.6470129",
"0.6267546",
"0.62115824",
"0.619868",
"0.6119777",
"0.60920554",
"0.6066129",
"0.6062243",
"0.6055374",
"0.59958565",
"0.5985451",
"0.59669614",
"0.5953932",
"0.59385633",
"0.5936971",
"0.59218854",
"0.59146804",
"0.58827955",
"0.5880886",
"0.58779824",
"0.58641... | 0.0 | -1 |
============================================================================= OPTIONAL IMPLEMENTATION ============================================================================= | public Collection getGroups() throws Exception
{
// TODO Auto-generated method stub
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic... | [
"0.64054745",
"0.63164645",
"0.63164127",
"0.62808937",
"0.6189956",
"0.61822927",
"0.6168661",
"0.6131931",
"0.6110878",
"0.6014687",
"0.6014687",
"0.6005092",
"0.5993368",
"0.5993368",
"0.59825945",
"0.59187",
"0.59144396",
"0.589905",
"0.589905",
"0.589905",
"0.589905",
... | 0.0 | -1 |
TODO Autogenerated method stub | public Collection getRoleNames() throws Exception
{
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public String getUserEmailAdress() throws Exception
{
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public String getUserDisplayName() throws Exception
{
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | public String getUserShortName() throws Exception
{
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Add function to get sessions for customer and for service | public Map<Long, Session> list() throws DAOException {
HashMap<Long, Session> result = new HashMap<Long, Session>();
TypedQuery<Session> query = em.createQuery(SQL_SELECT, Session.class);
try {
List<Session> sessions = query.getResultList();
for (Session session : sessions)
result.put(session.getId(), s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract I_SessionInfo[] getSessions();",
"int getActiveSessions();",
"@Override\n\tpublic void createSession(String customer) {\n\t\t\n\t}",
"public Session[] findSessions();",
"public int getActiveSessions();",
"List<Session> getAllSessions();",
"@RequestMapping(method = RequestMethod.GET)\n ... | [
"0.6478293",
"0.6470507",
"0.64123064",
"0.6383367",
"0.635591",
"0.62945986",
"0.6122754",
"0.6098324",
"0.60268265",
"0.5951479",
"0.5926686",
"0.59111094",
"0.58414024",
"0.58403635",
"0.58288985",
"0.5825845",
"0.5824936",
"0.5752939",
"0.57460123",
"0.57361674",
"0.57292... | 0.0 | -1 |
this method is a singleton that creates a unique (single) instance of this class | public static OOoCombinedChartController getInstance() {
return instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static SingleObject getInstance(){\n return instance;\n }",
"public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }",
"private Singleton(){}",
"public static Uniqueid getInstance() {\n if (u... | [
"0.74347955",
"0.7412178",
"0.73736405",
"0.7282143",
"0.7279669",
"0.72777706",
"0.7259854",
"0.7257833",
"0.72122484",
"0.7162431",
"0.7126441",
"0.71200126",
"0.71161056",
"0.7057867",
"0.69879663",
"0.6964696",
"0.69313353",
"0.69134974",
"0.6906668",
"0.6906165",
"0.6898... | 0.0 | -1 |
controller method dispatchs path execution to specific methods depending on openoffice path | public void execute(String path) {
if (path.equals("OpenOfficeCombinedChart")) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
try {
SpreadsheetInfo sheetInfo = document.getRangeSelection();
// Uno... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void dispatch(CallContext context, HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n\n CmisService service = null;\n try {\n // get the service\n service = getServiceFactory().getService(context);\n\n // analyze the pa... | [
"0.55777013",
"0.5482914",
"0.5422192",
"0.5364552",
"0.5273891",
"0.5236953",
"0.5215377",
"0.5206222",
"0.5153383",
"0.5122118",
"0.5083921",
"0.5076866",
"0.5074371",
"0.50721794",
"0.50696146",
"0.5054322",
"0.50515825",
"0.5040245",
"0.49980715",
"0.49685207",
"0.4958580... | 0.0 | -1 |
Creates a new instance. | public FilmCategoryId() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Instance createInstance();",
"public void create(){}",
"public Instance() {\n }",
"private Instantiation(){}",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"void create(T instance) throws IOException;",
"public v... | [
"0.7834167",
"0.72893584",
"0.70771503",
"0.7048765",
"0.70209944",
"0.6839274",
"0.67782235",
"0.6770133",
"0.67429745",
"0.6701039",
"0.6690158",
"0.6630354",
"0.66046286",
"0.6600776",
"0.6600776",
"0.6597608",
"0.6592152",
"0.6564594",
"0.65268713",
"0.652679",
"0.6475239... | 0.0 | -1 |
Returns a string representation of the object. | @Override
public String toString() {
return super.toString() + "{"
+ "film=" + film
+ ",category=" + category
+ "}";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the ... | [
"0.81259614",
"0.79603577",
"0.7928343",
"0.7912789",
"0.78890985",
"0.78890985",
"0.77969325",
"0.7732954",
"0.7731923",
"0.765436",
"0.7644027",
"0.7640679",
"0.7614636",
"0.7579365",
"0.75507635",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767"... | 0.0 | -1 |
Returns a hash code value for the object. | @Override
public int hashCode() {
return Objects.hash(getFilm(), getCategory());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int hashcode();",
"public String getHashCode();",
"int computeHashCode(byte val);",
"public native int __hashCode( long __swiftObject );",
"static int getHash(Object obj) {\n return getHash(new HashSet<Class>(), obj, 0);\n }",
"public int hashCode() {\n\t\treturn hash(objects); //return the ha... | [
"0.76449054",
"0.73088753",
"0.7261483",
"0.71133703",
"0.7103625",
"0.7090243",
"0.70857835",
"0.70527387",
"0.7048462",
"0.7046565",
"0.70438284",
"0.70373434",
"0.7036318",
"0.7023926",
"0.702284",
"0.6984816",
"0.6976884",
"0.6976884",
"0.6976884",
"0.6976884",
"0.6933037... | 0.0 | -1 |
/BaseClass b=new BaseClass(); b.show(); System.out.println(b.age); | public static void main(String[] args) {
System.out.println("------------------");
/*IntermediateClass i =new IntermediateClass();
i.insert();
i.show();
System.out.println(i.age);*/
DerivedClass d = new DerivedClass();
d.display();
d.insert();
d.show();
System.out.println(d.age);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args){\n System.out.println(SubClass.age);\n }",
"public static void display() {\n System.out.println(\"Static or class method from Base\");\n }",
"public static void main(String[] args) {\n Test.show();\n// t.fun();\n/*System.out.println(t.age1)... | [
"0.6649836",
"0.64494455",
"0.6441584",
"0.6422233",
"0.6220339",
"0.621798",
"0.62119544",
"0.62088495",
"0.61197037",
"0.61062807",
"0.6096263",
"0.60750425",
"0.6067427",
"0.6061777",
"0.6049238",
"0.6047407",
"0.60365397",
"0.6028946",
"0.599672",
"0.59239656",
"0.5917119... | 0.688494 | 0 |
This method was generated by MyBatis Generator. This method corresponds to the database table catelog | public Catelog(Integer id, String name, Integer number, Byte status) {
this.id = id;
this.name = name;
this.number = number;
this.status = status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);",
"@Select({\n \"select\",\n \"JNL... | [
"0.5747329",
"0.57229537",
"0.5722367",
"0.5712652",
"0.5680771",
"0.564192",
"0.5639416",
"0.56313926",
"0.56197953",
"0.5618387",
"0.5614252",
"0.55793905",
"0.5561455",
"0.5544208",
"0.5531167",
"0.5485558",
"0.544701",
"0.54446566",
"0.5443865",
"0.543267",
"0.54291236",
... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table catelog | public Catelog() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);",
"@Override\n\tprotected String getTableName() ... | [
"0.57490474",
"0.57275724",
"0.57245195",
"0.57144785",
"0.5682192",
"0.5646745",
"0.5639592",
"0.56344396",
"0.562342",
"0.5622294",
"0.5618264",
"0.55778426",
"0.55647475",
"0.55453324",
"0.55358297",
"0.5487853",
"0.5452469",
"0.5447981",
"0.5446364",
"0.54348403",
"0.5434... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column catelog.id | public Integer getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getLogid() {\n return logid;\n }",
"public Long getId()\r\n\t{\r\n\t\treturn idContrat;\r\n\t}",
"public int getLogid() {\n\treturn logid;\n}",
"int getLogId();",
"public String getLogId() {\r\n return logId;\r\n }",
"public Integer getId()\r\n\t\t{ return mapping.getId... | [
"0.6820547",
"0.6593914",
"0.6573603",
"0.6505373",
"0.6420907",
"0.6334334",
"0.62147194",
"0.62147194",
"0.62147194",
"0.62147194",
"0.6201299",
"0.61345196",
"0.61134124",
"0.61134124",
"0.61134124",
"0.6082385",
"0.60799277",
"0.6058139",
"0.60396534",
"0.6035131",
"0.603... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column catelog.id | public void setId(Integer id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setId(Long id){\n this.id = id;\n }",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) \n {\n this.id = id;\n }",
"public void... | [
"0.6225426",
"0.62030184",
"0.62030184",
"0.62030184",
"0.62022156",
"0.6187197",
"0.6187197",
"0.618225",
"0.6175976",
"0.6158496",
"0.6158496",
"0.6147879",
"0.6142892",
"0.6138408",
"0.61016184",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column catelog.name | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getName() {\n return columnInfo.getName();\n }",
"public StrColumn getName() {\n return delegate.getColumn(\"name\", DelegatingStrColumn::new);\n }",
"public StrColumn getName() {\n return delegate.getColumn(\"name\", DelegatingStrColumn::new);\n }",
... | [
"0.6600828",
"0.65785205",
"0.65785205",
"0.65536934",
"0.6545595",
"0.65320146",
"0.6504462",
"0.6357683",
"0.6286942",
"0.6138684",
"0.60355765",
"0.60156405",
"0.5940092",
"0.5940092",
"0.58937687",
"0.5845069",
"0.5830101",
"0.5794637",
"0.57896304",
"0.5785306",
"0.57740... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column catelog.name | public void setName(String name) {
this.name = name == null ? null : name.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_expandoColumn.setName(name);\n\t}",
"public void setColumnName (String ColumnName);",
"public void setName(final java.lang.String name) {\r\n this.name = name;\r\n this.values.put(UserInfoTable.NAME, name);\r\n }",
"public Datab... | [
"0.65691715",
"0.60650253",
"0.58701694",
"0.5814758",
"0.5712908",
"0.5705775",
"0.567797",
"0.56379384",
"0.56330425",
"0.5632078",
"0.56237173",
"0.560671",
"0.5596794",
"0.5595789",
"0.5581459",
"0.55741894",
"0.5571294",
"0.5571294",
"0.5571294",
"0.55665076",
"0.5564286... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column catelog.number | public Integer getNumber() {
return number;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getNumber() {\n return (String) get(\"number\");\n }",
"public String getNumber() {\n\t\treturn getValue(\"number\");\n\t}",
"public String getNumber() {\n return number;\n }",
"public String getNumber() {\n return number;\n }",
"public String getNumber() {\n ... | [
"0.6033413",
"0.59370273",
"0.59140134",
"0.59140134",
"0.59140134",
"0.59140134",
"0.59036547",
"0.59022224",
"0.5890208",
"0.5873154",
"0.5831029",
"0.58258784",
"0.5817923",
"0.5796052",
"0.5793877",
"0.5750116",
"0.5750116",
"0.5750116",
"0.57403994",
"0.567369",
"0.56637... | 0.56637925 | 20 |
This method was generated by MyBatis Generator. This method sets the value of the database column catelog.number | public void setNumber(Integer number) {
this.number = number;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNumber(int number)\n {\n this.number = number;\n }",
"public void setNumber(int number) {\r\n\t\tthis.num = number;\r\n\t}",
"public void setNumber(int number) {\n this.number = number;\n }",
"public void setNumber(String number) {\n this.number = number;\n }",
"... | [
"0.623051",
"0.62023723",
"0.6198679",
"0.61774313",
"0.617548",
"0.6143674",
"0.6140257",
"0.6140257",
"0.6140257",
"0.6129526",
"0.61269015",
"0.6117052",
"0.60480636",
"0.602416",
"0.5945171",
"0.59117717",
"0.58595026",
"0.5617447",
"0.5612063",
"0.55757636",
"0.55643475"... | 0.60841036 | 12 |
This method was generated by MyBatis Generator. This method returns the value of the database column catelog.status | public Byte getStatus() {
return status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }",
"public String getAccessionStatus() {\n\t\tString t = doc.get(\"collaccessionstatus\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}",
"public String getStatus(){\... | [
"0.6704308",
"0.64311314",
"0.6422204",
"0.64080817",
"0.64034873",
"0.63698274",
"0.6358327",
"0.6351284",
"0.6351284",
"0.6351284",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column catelog.status | public void setStatus(Byte status) {
this.status = status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"@IcalProperty(pindex = PropertyInfoIndex.STATUS,\n eventProperty = true,\n ... | [
"0.6235348",
"0.61008626",
"0.60624325",
"0.60160387",
"0.5982382",
"0.5950591",
"0.59286946",
"0.59286946",
"0.5905005",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968"... | 0.0 | -1 |
Creates a new banker troop | public BankerTroop(int health, int creditsPerTile) {
super(health);
this.credidsPerTile = creditsPerTile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void createNewBankTest() {\n\t\tBank bank = data.createNewBank();\n\t\tassertEquals(bankTest, bank);\n\t}",
"private Borrower createBorrower() {\n Borrower bor = null;\n try {\n bor = new Borrower(Integer.parseInt(tfBorrowerID.getText()), driver);\n } catch (Number... | [
"0.6033934",
"0.5967239",
"0.5923128",
"0.58927256",
"0.5887714",
"0.58703804",
"0.5861849",
"0.58151865",
"0.5654007",
"0.5646876",
"0.5607376",
"0.5605344",
"0.56044203",
"0.5598577",
"0.5597412",
"0.55946773",
"0.55821484",
"0.5521495",
"0.55138355",
"0.54917246",
"0.54845... | 0.55431277 | 17 |
When tile has been entered more credits are added to the player | @Override
public void onEnterNewTile(EntityTroop entity, World world, Player owner) {
super.onEnterNewTile(entity, world, owner);
owner.addCredits(credidsPerTile);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void AddCredits(int credits)\n {\n this.credits += credits;\n }",
"public void credits() {\n\t}",
"public void setCredits(double credits) {\n this.credits = credits;\n }",
"private void addPlayerSheild() {\n this.playerShield += 1;\n }",
"public void action(Player myPlay... | [
"0.68790364",
"0.67378974",
"0.626681",
"0.6209249",
"0.6134309",
"0.6028722",
"0.5903999",
"0.5852908",
"0.58465785",
"0.58342445",
"0.5810326",
"0.5794777",
"0.57749647",
"0.5773041",
"0.57675475",
"0.5739764",
"0.5736466",
"0.57301944",
"0.57239175",
"0.5689891",
"0.567368... | 0.695411 | 0 |
hello world without aop | @Test
public void test() throws Exception {
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("tinyioc.xml");
HelloWorldService helloWorldService = (HelloWorldService) applicationContext.getBean("helloWorldService");
helloWorldService.helloWorld();
//hello world with aop
//1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\n\t\thello();\n\t}",
"@Override\r\n\tpublic void hello() {\n\t\tSystem.out.println(\"in Hello\");\r\n\t}",
"void hello();",
"void hello();",
"void hello();",
"static void sayHello() {\r\n System.out.println(\"Hello World\");\r\n }",
"public static vo... | [
"0.6493886",
"0.6489275",
"0.6477313",
"0.6477313",
"0.6477313",
"0.6467294",
"0.6372151",
"0.6291044",
"0.6280902",
"0.6275441",
"0.62654907",
"0.6255156",
"0.6252272",
"0.6236052",
"0.6229554",
"0.6176392",
"0.6168815",
"0.6146425",
"0.61461574",
"0.6139534",
"0.6139198",
... | 0.631388 | 7 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent intent = new Intent();
intent.putExtra("actid", actid);
intent.setClass(Activity_detail.this, BaoMing.class);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Time: O(n + r + b), Space: O(n + r + b), Faster: 72.68% | public int[] shortestAlternatingPaths(int n, int[][] redEdges, int[][] blueEdges) {
List<Integer>[][] next = new List[2][n];
for (int i = 0; i < 2; i++) {
for (int j = 0; j < n; j++) {
next[i][j] = new ArrayList<>();
}
}
for (int[] edge : redEdges)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) ... | [
"0.63912386",
"0.6025675",
"0.5966317",
"0.5926358",
"0.58178973",
"0.5762225",
"0.574333",
"0.56870615",
"0.5649743",
"0.5644484",
"0.55936867",
"0.5578121",
"0.5547647",
"0.5526564",
"0.5458172",
"0.5449623",
"0.542417",
"0.5422753",
"0.5412742",
"0.54070985",
"0.5403717",
... | 0.0 | -1 |
Update new potential and potential panel | @Override public void undoableEditHappened(UndoableEditEvent event) {
if (event.getEdit() instanceof PotentialChangeEdit) {
newPotential.setMean(meanDummyNode.getPotentials().get(0));
newPotential.setVariance(varianceDummyNode.getPotentials().get(0));
//update();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updatePanel() {\n\t\tProbeUtilities.updateModelProbePanel();\n\t}",
"private void update()\n {\n // update the grid square panels\n Component[] components = pnlIsland.getComponents();\n for ( Component c : components )\n {\n // all components in the panel ar... | [
"0.701449",
"0.6485436",
"0.64014727",
"0.63272965",
"0.6267548",
"0.62156594",
"0.6206595",
"0.6158183",
"0.61138827",
"0.6113367",
"0.6080941",
"0.6038098",
"0.5924382",
"0.5924382",
"0.5924382",
"0.5924382",
"0.5906986",
"0.58994555",
"0.5889594",
"0.58884215",
"0.5884014"... | 0.0 | -1 |
Provides characteristic language independent and language dependent names as well as characteristic values from knowledgebase | public interface ProductCsticAndValueParameterProvider
{
/**
* Retrieves characteristic language independent and language dependent names as well as characteristic values from
* knowledgebase.
*
* @param productCode
* product code for which the data is retrieved
* @return Map with characteristic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface MetaData {\r\n\r\n\tpublic static final String CV_SBML = \"SBML\";\r\n\r\n\tpublic static final String ET_SBML = \"SBML_import\";\r\n\r\n\tpublic static final String AN_SBO = \"SBO\";\r\n\r\n\tpublic static final String RT_CONSUMED_BY = \"cs_by\";\r\n\r\n\tpublic static final String RT_PRODUCED_BY... | [
"0.6296796",
"0.5919558",
"0.58602154",
"0.58503675",
"0.5776832",
"0.5638855",
"0.55984193",
"0.5553416",
"0.55421257",
"0.55315053",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111"... | 0.55451316 | 8 |
Retrieves characteristic language independent and language dependent names as well as characteristic values from knowledgebase. | Map<String, CsticParameterWithValues> retrieveProductCsticsAndValuesParameters(final String productCode); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getCharacteristicNames() throws DataExchangeException;",
"io.dstore.values.StringValue getCharacteristicDescription();",
"public Map<String,Object> getCharacteristics(String[] names) throws DataExchangeException;",
"public String getCharacteristics() {\n return characteristics;\n }"... | [
"0.6090375",
"0.59350234",
"0.5867149",
"0.58192885",
"0.5736933",
"0.56664354",
"0.55446506",
"0.5473581",
"0.5457411",
"0.54204124",
"0.54001296",
"0.5364155",
"0.5356696",
"0.5339516",
"0.52685493",
"0.52241623",
"0.5218679",
"0.51689553",
"0.51425695",
"0.51171666",
"0.51... | 0.0 | -1 |
TODO Autogenerated method stub | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doGet(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
This testcase is for requested VM_DEATH event. It starts EventDebuggee class, send request for VM_DEATH event, receives events and verifies that: requested VM_DEATH event is received with the expected RequestID, returned by EventRequest.Set command; automatic VM_DEATH event is received with th... | public void testVMDeathRequest() {
logWriter.println("==> testVMDeathRequest started");
//check capability, relevant for this test
logWriter.println("=> Check capability: canRequestVMDeathEvent");
debuggeeWrapper.vmMirror.capabilities();
boolean isCapability = debuggeeWrapper.vm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testDeleteEvent() {\n\t\tEvent event = new Event();\n\t\ttry {\n\t\t\trequest.setParameter(\"eventId\",\"1001\");\n\t\t\trequest.setParameter(\"sessionId\",\"10001\");\n\t\t\tcontroller.deleteEvent(request, response);\n\t\t\tevent = eventDao.getEvent(1001, 10001);\n\t\t\tassertEquals(0,event.g... | [
"0.54850334",
"0.5473978",
"0.5362181",
"0.534112",
"0.53367066",
"0.531839",
"0.5244352",
"0.51866055",
"0.51066315",
"0.5101656",
"0.5068643",
"0.5049315",
"0.5033444",
"0.4992045",
"0.498024",
"0.49761045",
"0.49703425",
"0.4957606",
"0.49538514",
"0.49495623",
"0.4946936"... | 0.9011671 | 0 |
Instantiates a new catch event node. | public EbgConnectedCatchEventNode(String uniqueProcessId,
String uniqueFlowNodeId, EventDefinition eventDefinition,
List<ActorRef> outgoingNodes, DataObjectService dataObjectHandling) {
this.setUniqueProcessId(uniqueProcessId);
this.setUniqueFlowNodeId(uniqueFlowNodeId);
this.setEventDefinition(eventDe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"CatchingEvent createCatchingEvent();",
"IntermediateCatchEvent createIntermediateCatchEvent();",
"public NodeEvent() {\n\t\tthis(new Note(), DEFAULT_LIKELIHOOD);\n\t}",
"public Event() {}",
"public Event() {\r\n\r\n\t}",
"public Event() {\n\t}",
"public Event() {\n }",
"public Event() {\n ... | [
"0.6497667",
"0.61773205",
"0.60796547",
"0.6043618",
"0.58540773",
"0.58313566",
"0.5787394",
"0.5787394",
"0.57663435",
"0.57663435",
"0.57585657",
"0.5627342",
"0.55781835",
"0.55249727",
"0.5521066",
"0.5459342",
"0.5456117",
"0.54536283",
"0.54468775",
"0.54407215",
"0.5... | 0.49263638 | 48 |
Implements reaction to a TriggerMessage. The node will send a fire message to the gateway connected to (backwards) and wait for the approval in form of a winning message. | @Override
protected void trigger(TriggerMessage message) {
this.getDataObjectService().saveObject(this.getUniqueProcessId(), message.getProcessInstanceId(), message.getPayload());
eventDefinition.trigger(message);
this.getNodeInstanceMediatorService().setNodeInstanceEndTime(message.getProcessInstance... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void trigger(PromiseManager pm) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:15949:DetectorEvent methodsFor: 'triggering'!\n{void} trigger: pm {PromiseManager}\n\t\"Send the message across the wire.\"\n\t\n\tself subclassResponsibility!\n*/\n}",
"public abstract void onTrigger();",... | [
"0.59319776",
"0.5690602",
"0.5626071",
"0.5624569",
"0.5579641",
"0.5571802",
"0.5557959",
"0.5416057",
"0.5414719",
"0.5413073",
"0.5379838",
"0.5374086",
"0.53598076",
"0.5353152",
"0.53305215",
"0.52863187",
"0.5280814",
"0.52697855",
"0.5247464",
"0.5243073",
"0.5237781"... | 0.66921467 | 0 |
Reaction to a winning message. If the gateway this node is connected to reacts with a winning message, the element is allowed to trigger and activate its following nodes. | protected void winning(WinningMessage message) {
this.getNodeInstanceMediatorService().setState(
message.getProcessInstanceId(), NodeInstaceStates.PASSED_STATE);
this.getNodeInstanceMediatorService().persistChanges();
this.sendMessageToNodeActors(
new ActivationMessage(message.getProcessInsta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void win()\r\n\t{\r\n\t\tmWon = true;\r\n\t}",
"void win() {\n if (_game.isWon()) {\n showMessage(\"Congratulations you win!!\", \"WIN\", \"plain\");\n }\n }",
"public boolean isWon() {\r\n\t\tif (winner(CROSS) || winner(NOUGHT))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\tret... | [
"0.58592826",
"0.5639338",
"0.5446133",
"0.5437107",
"0.5383866",
"0.53534544",
"0.5299314",
"0.51925975",
"0.51876336",
"0.51869667",
"0.5180659",
"0.5180352",
"0.5146136",
"0.5106281",
"0.5077418",
"0.5057171",
"0.5055834",
"0.5050418",
"0.5041995",
"0.5022583",
"0.5010417"... | 0.68803066 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
String cadena1 = " She sells sea shells on the sea shore ";
System.out.println("Cadena: " + cadena1);
//String cadena2 = "";
cadena1 = cadena1.substring(1,10);
System.out.println("Cadena recortada: " + cadena1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
Constructor. Creates a new lobby controller with a lobby manager, that helps the controller in handling the interactions of the clients with the model | public LobbyController(LobbyManager lobbyManager) throws RemoteException {
super();
this.lobbyManager = lobbyManager;
this.lobbyNetworkManager = lobbyManager.getLobbyNetworkManager();
networkGetItem = new ServerGetMessage();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"GameController makeGameController(LobbyController lobbyController);",
"public LobbyScreen(GuiRenderer guiRenderer) {\n this.guiRenderer = guiRenderer;\n lobby = new Lobby();\n }",
"public ClientController() {\n }",
"public void setLobby(Lobby lobby)\r\n\t{\r\n\t\treceiver.setLobby(lobby);\t\r\n\t}"... | [
"0.6610085",
"0.6212033",
"0.6113343",
"0.6048665",
"0.60402286",
"0.60066336",
"0.59484285",
"0.5936908",
"0.59016997",
"0.5815318",
"0.57994723",
"0.5794082",
"0.57767373",
"0.5765",
"0.5752687",
"0.57179546",
"0.5712675",
"0.5659526",
"0.565041",
"0.5649102",
"0.56392866",... | 0.8628191 | 0 |
PRIVATE METHODS Returns true if token matches username, false otherwise. | private boolean isAuthorize(String token, String username) {
User user;
user = lobbyManager.getUserByToken(token);
return !user.getName().equals(username);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"public boolean validateToken(String token, String username) {\n\t\tString tokenUserName = getUsername(token);\n\t\treturn username.equals(tokenUser... | [
"0.74317664",
"0.74317664",
"0.74317664",
"0.74317664",
"0.74317664",
"0.74317664",
"0.7252239",
"0.7210176",
"0.7203496",
"0.72013634",
"0.71794814",
"0.7164081",
"0.7110775",
"0.70376927",
"0.6915253",
"0.6794008",
"0.6792437",
"0.678926",
"0.67891175",
"0.67887515",
"0.677... | 0.7603431 | 0 |
Converts a time given in milliseconds to a String in format mm:ss. | private String formatTimeout(long timeout) {
Date date = new Date(timeout);
DateFormat formatter = new SimpleDateFormat("mm:ss");
return formatter.format(date);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String formatTime(final long ms){\n long s = ms / 1000, m = s / 60, h = m / 60;\n s %= 60; m %= 60; h %= 24;\n return String.format(\"%02d:%02d:%02d\", h, m, s);\n }",
"public static String millisToStr(long time) {\r\n long ms = time;\r\n long h = ms / 3600000;\r\n ... | [
"0.79023236",
"0.7647747",
"0.7611258",
"0.75731593",
"0.7565012",
"0.7359373",
"0.72313964",
"0.72124153",
"0.7148324",
"0.7148324",
"0.71193045",
"0.7108625",
"0.7064808",
"0.70553166",
"0.70368683",
"0.7031835",
"0.69784045",
"0.69671583",
"0.69517297",
"0.688351",
"0.6881... | 0.65247315 | 48 |
TODO: Autogenerated Javadoc The Interface ClientHandler. | public interface ClientHandler {
/**
* Handle client.
*
* @param inFromClient the in from client
* @param outToServer the out to server
*/
public void handleClient(InputStream inFromClient, OutputStream outToServer);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void handleClient(Client conn);",
"public abstract Client getClient();",
"public EchoClientHandler() {\n firstMessage = Unpooled.buffer(EchoClient.SIZE);\n for (int i = 0; i < firstMessage.capacity(); i ++) {\n firstMessage.writeByte((byte) i);\n }\n }",
"pr... | [
"0.67958695",
"0.6766999",
"0.66853577",
"0.65617687",
"0.64957",
"0.644465",
"0.62876195",
"0.6258584",
"0.62516564",
"0.62407404",
"0.623616",
"0.61984164",
"0.61734587",
"0.61495763",
"0.6120225",
"0.6116145",
"0.60966706",
"0.6080684",
"0.6030411",
"0.6028894",
"0.6023665... | 0.6266869 | 7 |
check if file still exists (the tmp may have been removed, file may have been removed there is still a race change, but we do not want to keep cached records for invalid files | @Override
public boolean handle(LruCache<String, CachedHandler> cache,
Http.Method method,
ServerRequest request,
ServerResponse response,
String requestedResource) throws IOException {
if (!Files.exists(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean deleteIfState(File file) {\n if (file.exists()) {\n Duration itemAge = Duration.ofMillis(file.lastModified());\n if (!itemAge.plus(duration).minusMillis(System.currentTimeMillis()).isNegative()) {\n return file.delete();\n }\n }\n\n ... | [
"0.6554806",
"0.65343297",
"0.6465328",
"0.646381",
"0.64128536",
"0.6386362",
"0.6376408",
"0.63568",
"0.6340106",
"0.6338064",
"0.62603265",
"0.62565804",
"0.6250887",
"0.61830956",
"0.61408633",
"0.6121118",
"0.6114681",
"0.60934407",
"0.60418546",
"0.5984287",
"0.59801596... | 0.0 | -1 |
Get data from transition grid | public Set<Transition> getGridSectionDataAsTransitionSet(String sectionName) {
ListGridRecord[] records = super.getGridData(sectionName);
if (records != null) {
Set<Transition> transitions = new HashSet<Transition>();
for (ListGridRecord r : records) {
TransitionRecord record = (TransitionRecord) r;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DataImpl getData() {\n RealTupleType domain = overlay.getDomainType();\n TupleType range = overlay.getRangeType();\n \n float[][] setSamples = nodes;\n float r = color.getRed() / 255f;\n float g = color.getGreen() / 255f;\n float b = color.getBlue() / 255f;\n float[][] rangeSampl... | [
"0.541398",
"0.5375457",
"0.53138185",
"0.5221334",
"0.5136964",
"0.50903744",
"0.5055671",
"0.5029679",
"0.5021821",
"0.50090635",
"0.49950287",
"0.49901137",
"0.4987638",
"0.49581993",
"0.4944357",
"0.4941231",
"0.4934024",
"0.49160638",
"0.48969477",
"0.489608",
"0.4887087... | 0.55843526 | 0 |
TODO Autogenerated method stub | @Override
public void onGridMultiRecordsEditorExit(final String sectionName, final ListGrid grid, final EditorRecord[] records, final ConfirmButton button) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onGridCellEditorEnter(String sectionName, ListGrid grid, int row, int col, Object value) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onGridCellEditorExit(String sectionName, ListGrid grid, int row, int col, Object newValue) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onGridRecordEditorEnter(String sectionName, ListGrid grid, GridRecordEditor editor) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public GridRecordEditor getGridRecordEditor(String sectionName, ListGrid grid) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Returns whether null is allowed by the schema. | private static boolean nullOk(Schema schema) {
if (Schema.Type.NULL == schema.getType()) {
return true;
} else if (Schema.Type.UNION == schema.getType()) {
for (Schema possible : schema.getTypes()) {
if (nullOk(possible)) {
return true;
}
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isNull_fields_allowed() {\n return null_fields_allowed;\n }",
"public boolean canProcessNull() {\n return false;\n }",
"public boolean allowsNull() {\n return this.allowsNullValue;\n }",
"@Override\n public boolean isMaybeNull() {\n checkNotPolymorphicO... | [
"0.76883423",
"0.7590312",
"0.7560029",
"0.7478895",
"0.7286974",
"0.71524286",
"0.7083695",
"0.7041443",
"0.7001046",
"0.7001046",
"0.7001046",
"0.6991056",
"0.6936174",
"0.68632156",
"0.6834531",
"0.6831872",
"0.6789854",
"0.67761207",
"0.67498314",
"0.6691162",
"0.6670461"... | 0.7011705 | 8 |
Returns a the value as the first matching schema type or null. Note that if the value may be null even if the schema does not allow the value to be null. | private static Object makeValue(String string, Schema schema) {
if (string == null) {
return null;
}
try {
switch (schema.getType()) {
case BOOLEAN:
return Boolean.valueOf(string);
case STRING:
return string;
case FLOAT:
return Float.valueOf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Optional<ValueType> getSingle(KeyType key);",
"org.apache.calcite.avatica.proto.Common.TypedValue getValue();",
"IfaceValue findAnyValue(IfaceType typ);",
"<V> V getValue(final URI keyedSchemaUri);",
"private boolean isValidSchemaForValue(@Nullable Schema schema, Object value) throws RecordConvertorExcepti... | [
"0.59763134",
"0.5902457",
"0.56087905",
"0.55954385",
"0.5566499",
"0.5545862",
"0.55321515",
"0.55045927",
"0.5482679",
"0.54590803",
"0.5422133",
"0.53946245",
"0.5380756",
"0.5379855",
"0.5373037",
"0.5365734",
"0.5345773",
"0.53385377",
"0.5320639",
"0.5300383",
"0.52897... | 0.58238214 | 2 |
image2 = (ImageView) itemView.findViewById(R.id.detail_gambar); | @Override
public void onClick(View view) {
int position = getAdapterPosition();
Review reviewsarapan = this.list.get(position);
Intent intent = new Intent(ctx, ReviewDetails.class);
intent.putExtra("detail_id", reviewsarapan.getId_review());
intent.pu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void findViewById() {\n ivGraffit = (ImageView) findView(R.id.ivGraffit);\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n imgView = (ImageView)findViewById(... | [
"0.7213043",
"0.6743205",
"0.6652796",
"0.662352",
"0.6500526",
"0.641296",
"0.6367756",
"0.6366082",
"0.6358048",
"0.63573086",
"0.63271",
"0.6325199",
"0.63172615",
"0.6271471",
"0.6231522",
"0.6226843",
"0.62239116",
"0.62156093",
"0.6212796",
"0.6207967",
"0.6198222",
"... | 0.0 | -1 |
Tests positive cases for relation loading for all types One to One One to Many Many to One Many to Many Also test cases where join table is specified. Test cases where child is loaded first and then child and vise versa. Join tables when column names are specified and when they are not specified | @Test(dataProvider = "repositoryFactories")
public void testRelationLoading(RepositoryFactory factory)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testJoinTypeLeftWhenParentEffectiveJoinTypeIsLeftEvenWhenOnlyIdSelected() {\n Person parent = query.from(Person.class);\n Relation relation = query.join(parent.getChildRelations(), JoinType.Left);\n \n query.select(relation.getChild().getId());\n \n ... | [
"0.699409",
"0.6832691",
"0.6147836",
"0.6047594",
"0.6045613",
"0.5669342",
"0.5585474",
"0.555907",
"0.5557896",
"0.55536264",
"0.5548778",
"0.54901934",
"0.5476718",
"0.54636914",
"0.5457454",
"0.54175895",
"0.53419",
"0.5340484",
"0.53362787",
"0.53001815",
"0.5268601",
... | 0.48244825 | 69 |
For each relation type, error test cases when collection is found when not expected and vise versa | @Test(dataProvider = "repositoryFactories")
public void testError_unexpectedCollection(RepositoryFactory factory)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testAddLinkInvalidSameLinkTwiceArrayList() {\n\t\tAddress adr = new Address();\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tTypePropertyCollection proptype = (TypePropertyCollection) adr.getProperty(\"inhabitants\").getType();\n\t\tClass<?> colClass... | [
"0.59734505",
"0.5868523",
"0.5529754",
"0.5426777",
"0.53827333",
"0.53769565",
"0.53471524",
"0.5322658",
"0.5278089",
"0.5223896",
"0.5211869",
"0.5205548",
"0.520009",
"0.51874954",
"0.5176224",
"0.5171575",
"0.51515853",
"0.51503044",
"0.5146733",
"0.51337665",
"0.512937... | 0.5146708 | 19 |
For each relation, error test cases when mappedBy is mentioned on both sides of relation and cases where it is not specified on both sides | @Test(dataProvider = "repositoryFactories")
public void testError_doubleMapping(RepositoryFactory factory)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkMappedByManyToMany(DeployBeanPropertyAssocMany<?> prop) {\n // get the bean descriptor that holds the mappedBy property\n String mappedBy = prop.getMappedBy();\n if (mappedBy == null) {\n if (targetDescriptor(prop).isDraftable()) {\n prop.setIntersectionDraftTable();\n }... | [
"0.6477317",
"0.6353538",
"0.6345973",
"0.60613",
"0.5870598",
"0.5532938",
"0.54267335",
"0.5364086",
"0.52818596",
"0.522627",
"0.519965",
"0.5140627",
"0.5072981",
"0.5061582",
"0.5047727",
"0.5023508",
"0.49990422",
"0.49497157",
"0.494788",
"0.4939484",
"0.49152577",
"... | 0.4749508 | 33 |
Test cases where join table is not specified for manytomany relation | @Test(dataProvider = "repositoryFactories")
public void testError_missingJoinTable(RepositoryFactory factory)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkMappedByManyToMany(DeployBeanPropertyAssocMany<?> prop) {\n // get the bean descriptor that holds the mappedBy property\n String mappedBy = prop.getMappedBy();\n if (mappedBy == null) {\n if (targetDescriptor(prop).isDraftable()) {\n prop.setIntersectionDraftTable();\n }... | [
"0.64476895",
"0.63116044",
"0.58323705",
"0.58018047",
"0.57777184",
"0.57749414",
"0.5701947",
"0.56552297",
"0.5585271",
"0.55600226",
"0.5506672",
"0.5497707",
"0.5492782",
"0.547106",
"0.54305166",
"0.5385605",
"0.5373586",
"0.5372331",
"0.53118384",
"0.52868843",
"0.527... | 0.48220685 | 59 |
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If `disk` does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the zone ... | java.lang.String getDisk(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDisk(String disk) {\n this.disk = disk == null ? null : disk.trim();\n }",
"public String getDisk() {\n return disk;\n }",
"com.google.protobuf.ByteString getDiskBytes();",
"public static void create(Disks disk){\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tHibernateUtilMastere.... | [
"0.7743976",
"0.6753175",
"0.6292509",
"0.603951",
"0.5740002",
"0.55382645",
"0.55009204",
"0.5492795",
"0.5415784",
"0.54142267",
"0.53722787",
"0.53612006",
"0.53399366",
"0.533395",
"0.533187",
"0.5273443",
"0.5238664",
"0.51920706",
"0.5164652",
"0.51422596",
"0.51397544... | 0.6841348 | 1 |
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If `disk` does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the zone ... | com.google.protobuf.ByteString getDiskBytes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDisk(String disk) {\n this.disk = disk == null ? null : disk.trim();\n }",
"java.lang.String getDisk();",
"public String getDisk() {\n return disk;\n }",
"public static void create(Disks disk){\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tHibernateUtilMastere.getSession().save(d... | [
"0.7744181",
"0.6842017",
"0.6753809",
"0.6039366",
"0.5740262",
"0.55389833",
"0.5501614",
"0.5492198",
"0.54161155",
"0.5414249",
"0.537294",
"0.5361823",
"0.5340353",
"0.533443",
"0.5330867",
"0.5273384",
"0.5238559",
"0.51914907",
"0.5164863",
"0.5142564",
"0.5140073",
... | 0.62935585 | 3 |
Palindrome = A word that is the same forward and backwards (racecar) | public static void main(String[] args) {
System.out.println(isPalindrome("Racecaf"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isPalindrome( String s ) {\n// two indexes --> front and back to move toowards each other\n if (s.length() == 0 || s.length() == 1)\n return false;\n int i = 0;\n int j = s.length() - 1;\n while (i != j && i < j ) {\n if (s.charAt(i) == s.charAt(j)) {\n ... | [
"0.7547118",
"0.7540193",
"0.74555224",
"0.73867625",
"0.7376771",
"0.7364086",
"0.7359717",
"0.7357423",
"0.73090017",
"0.72795737",
"0.72444236",
"0.71697795",
"0.7166088",
"0.71613777",
"0.71476674",
"0.71171314",
"0.7085651",
"0.70699805",
"0.7062087",
"0.70590293",
"0.70... | 0.0 | -1 |
Interface for interest rate pricing methods. | public interface CapFloorIborSABRCapMethodInterface {
/**
* Computes the present value of the instrument.
*
* @param cap
* The cap/floor on Ibor.
* @param sabr
* The SABR cap/floor data and multi-curves provider.
* @return The present value.
*/
MultipleCurrencyAmount pres... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface IYieldCurve {\r\n public double getInterestRate(double time);\r\n public double getForwardRate(double t0, double t1);\r\n public double getDiscountFactor(double t);\r\n\r\n public void addBond(Bond bond);\r\n public void calculate();\r\n}",
"public interface IRate {\n\t\n\t//writi... | [
"0.68802476",
"0.6840562",
"0.6699877",
"0.6688072",
"0.6631971",
"0.66284716",
"0.66144764",
"0.6548098",
"0.64812446",
"0.64244527",
"0.6417862",
"0.6413097",
"0.6412662",
"0.64055336",
"0.63574624",
"0.6303268",
"0.62708795",
"0.6261347",
"0.62205577",
"0.62186795",
"0.618... | 0.5774056 | 53 |
Computes the present value of the instrument. | MultipleCurrencyAmount presentValue(CapFloorIbor cap, SABRCapProviderInterface sabr); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getValue();",
"double getValue();",
"double getValue();",
"public double getValue()\n\t{\n\t\treturn ifD1.getValue();// X100 lux\n\t}",
"@VTID(14)\r\n double getValue();",
"public double getValue();",
"private double getValue() {\n return value;\n }",
"@Override\r\n prote... | [
"0.6770469",
"0.6770469",
"0.6770469",
"0.6705535",
"0.67048633",
"0.665411",
"0.6404109",
"0.63960266",
"0.6355643",
"0.6300834",
"0.62824214",
"0.6266896",
"0.6265342",
"0.6262162",
"0.62576866",
"0.62576866",
"0.62576866",
"0.6246582",
"0.6245436",
"0.62439585",
"0.6238794... | 0.0 | -1 |
Creates a new xforms error indication. | public XFormsErrorIndication(String message, Exception cause, EventTarget target, Object info) {
super(message, cause);
this.target = target;
this.info = info;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void test112() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.radio(\"-1kj9%E7\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\... | [
"0.6012028",
"0.5921286",
"0.5884488",
"0.5845584",
"0.583714",
"0.5802867",
"0.58009297",
"0.5779453",
"0.5758173",
"0.57316536",
"0.5666769",
"0.56420076",
"0.5635601",
"0.5629675",
"0.56289464",
"0.5626999",
"0.5626999",
"0.56150484",
"0.56145686",
"0.5590789",
"0.55885094... | 0.6047289 | 0 |
Specifies wether this error indication is fatal or nonfatal. | public abstract boolean isFatal(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ExceptionHit exceptionFatal(Boolean value) {\n setBoolean(EXCEPTION_FATAL, value);\n return this;\n }",
"public void fatal(String message);",
"public void fatal(Exception ex) {\n\t\t\n\t}",
"public boolean isFatalEnabled()\n/* */ {\n/* 266 */ return getLogger().isFatalErrorE... | [
"0.6958026",
"0.6111474",
"0.6098331",
"0.6060648",
"0.6034688",
"0.5961061",
"0.595872",
"0.5924303",
"0.591636",
"0.5915374",
"0.58895105",
"0.5872893",
"0.5871825",
"0.58585227",
"0.58504504",
"0.5849312",
"0.5848845",
"0.5845144",
"0.5843463",
"0.5843393",
"0.5840759",
... | 0.63490564 | 1 |
Checks wether this error indication is handled or not. | public final boolean isHandled() {
return this.handled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean handlesThrowable() {\n\t\treturn false;\n\t}",
"@Override\n public boolean isHandled() {\n return handled;\n }",
"public boolean isHandled() {\r\n return handled;\r\n }",
"@Override\r\n\tpublic boolean isHandled() {\n\t\treturn true;\r\n\t}",
"public boole... | [
"0.6752197",
"0.6651528",
"0.647092",
"0.63384044",
"0.6311389",
"0.6259447",
"0.622843",
"0.6124638",
"0.6124638",
"0.593765",
"0.59198153",
"0.58910567",
"0.58910024",
"0.58425856",
"0.5831806",
"0.57751745",
"0.5762513",
"0.57318383",
"0.5726343",
"0.5703443",
"0.5703178",... | 0.6237409 | 6 |
Sets the error indication state to handled. | public final void setHandled() {
this.handled = true;
this.target = null;
this.info = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setError();",
"protected abstract void setErrorCode();",
"void error() {\n status = ERROR;\n System.out.println(\"error\");\n stateChanged();\n }",
"public void setErrorHandler(ErrorHandler handler)\n {\n if (handler == null)\n {\n handler = base;\n }\n ... | [
"0.65825766",
"0.62591547",
"0.6257812",
"0.6245702",
"0.62439406",
"0.61428094",
"0.60780436",
"0.6066035",
"0.59891915",
"0.59417385",
"0.59311354",
"0.5844318",
"0.582152",
"0.5800887",
"0.57975096",
"0.57573587",
"0.5752674",
"0.57404834",
"0.57106304",
"0.56944907",
"0.5... | 0.55651885 | 32 |
Returns the event type of this error indication. | public final String getEventType() {
return this.id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String event_type () throws BaseException;",
"public java.lang.String getEventtype() {\n\treturn eventtype;\n}",
"public String getTypeEvent() {\n\t\treturn typeEvent;\n\t}",
"public String getExceptionType() {\n return this.excType;\n }",
"public EventType type() {\n return _type;... | [
"0.744027",
"0.72252333",
"0.7133309",
"0.69821244",
"0.68674",
"0.6830121",
"0.6825492",
"0.67875546",
"0.6779538",
"0.6772894",
"0.67616445",
"0.67482275",
"0.67181116",
"0.66875696",
"0.665775",
"0.6656431",
"0.66429555",
"0.66299313",
"0.6576891",
"0.6559364",
"0.6540866"... | 0.6216956 | 31 |
Returns the event target of this error indication. | public final EventTarget getEventTarget() {
return this.target;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getViolationTarget() {\n return this.violationTarget;\n }",
"public String getTarget() {\n return this.target;\n }",
"public String getTarget()\r\n\t{\r\n\t\treturn _target;\r\n\t}",
"String getTarget() {\r\n return this.target;\r\n }",
"public String getTarget()... | [
"0.64277405",
"0.63267714",
"0.6249262",
"0.62066597",
"0.6192292",
"0.6192292",
"0.61229265",
"0.61191124",
"0.6087025",
"0.60213566",
"0.60213566",
"0.60213566",
"0.6006764",
"0.60060376",
"0.6002957",
"0.5904638",
"0.59040034",
"0.58913344",
"0.58868814",
"0.5825835",
"0.5... | 0.6624299 | 0 |
Returns the context information of this error indication. | public final Object getContextInfo() {
return this.info;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DiagnosticInfo getInnerDiagnosticInfo();",
"public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n ... | [
"0.64536506",
"0.6380919",
"0.61184716",
"0.60604537",
"0.6028776",
"0.60274893",
"0.6019215",
"0.6015519",
"0.5971979",
"0.5967242",
"0.595027",
"0.595027",
"0.595027",
"0.5946694",
"0.59417397",
"0.5939057",
"0.59341717",
"0.5929372",
"0.5925682",
"0.5890668",
"0.58844393",... | 0.58879536 | 20 |
Constructor file, adding in all the evaluations for the Naive Bayes and SMO. | public ExportResults()
{
this.evalNaiveBayesList = new ArrayList<Evaluation>();
this.evalSMOList = new ArrayList<Evaluation>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void init() {\n initGate(); // 1. initialize Gate library\n loadAnnie(); // 2. load Annie plugin\n addPR(); // 3. initialise ANNIE\n setCorpus(); // 4. set corpus and extract with files.\n execute(); // 5. run the PR through the corpus in the ANNIE\n Out.prln(\"annot... | [
"0.6045545",
"0.58968276",
"0.5890767",
"0.5866457",
"0.5851411",
"0.5838114",
"0.5822892",
"0.58097327",
"0.58082056",
"0.5776386",
"0.5772393",
"0.57478976",
"0.5746296",
"0.57377017",
"0.5716189",
"0.571207",
"0.57088846",
"0.5689491",
"0.5670311",
"0.5665523",
"0.56603724... | 0.596008 | 1 |
Similar to Weka, this function outputs the results for each category and each event. | public void wekaCalculate()
{
for (int categoryStep = 0; categoryStep < 6; categoryStep++)
{
String trainString = "Train";
String testString = "Test";
String categoryString;
String resultString = "Results";
String textString;
String eventString;
switch (categoryStep)
{
case 0: categoryS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printDecisionPointEvents() throws Exception\r\n\t{\r\n\t\tOWLClass firstSystemDPE = this.getOWLClass(EFBO_FRC_URI, \"DecisionPointEvent\");\r\n\t\tOWLClass nextOfDPE = this.getOWLClass(EFBO_V_URI, \"System-1_Event\");\r\n\t\t\r\n\t\tOWLClass secondSystemDPE = this.getOWLClass(EFBO_FRC_URI, \"DecisionPo... | [
"0.51405984",
"0.5123723",
"0.50407606",
"0.50275016",
"0.4976762",
"0.49565938",
"0.4925689",
"0.48898265",
"0.48815152",
"0.4857147",
"0.48102447",
"0.48098075",
"0.48009676",
"0.47757423",
"0.4772276",
"0.47428858",
"0.47260776",
"0.47254658",
"0.4713377",
"0.47118357",
"0... | 0.5982682 | 0 |
This function outputs results for aggregates for all categories. | public void aggregateResults()
{
try {
AggregateableEvaluation aggContNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(0));
AggregateableEvaluation aggContSMO = new AggregateableEvaluation(this.evalSMOList.get(0));
AggregateableEvaluation aggDonaNaive = new AggregateableEvaluation(this.evalNa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void aggregate() {\n\t\tIAggregate selectedAggregation = this.gui.getSelectedAggregation();\n\t\tthis.output(selectedAggregation.aggregate(satelliteList));\n\t}",
"@Override\n protected void printAggregates() {\n printRetrieveStudyAggregates(queryInstancesAggregates, firstResponseAggregates,\n ... | [
"0.59796476",
"0.5759626",
"0.5557928",
"0.54696316",
"0.5334468",
"0.52804357",
"0.5271008",
"0.5175097",
"0.516696",
"0.516161",
"0.51604426",
"0.5154858",
"0.5125532",
"0.51134676",
"0.50832856",
"0.50783473",
"0.507171",
"0.5049889",
"0.5003992",
"0.49854285",
"0.49753642... | 0.6166986 | 0 |
Created by zhangxin on 2016817. | public interface OnStateChangedListener {
/**
*
* @param state 1:下拉中;2:此处松开刷新:
* @param scaleOfLayout 下拉出的高度与header的比
*/
void onStateChanged(int state, float scaleOfLayout);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Over... | [
"0.6144028",
"0.6053132",
"0.602139",
"0.60209215",
"0.6001795",
"0.5971979",
"0.5971979",
"0.59507",
"0.5883727",
"0.58740705",
"0.5873793",
"0.5861278",
"0.58606577",
"0.58508134",
"0.58439904",
"0.582459",
"0.58125216",
"0.579799",
"0.5787127",
"0.57849574",
"0.5780199",
... | 0.0 | -1 |
Tests the creation of an admin | @Test
void createTest() {
Admin anAdmin = new Admin();
anAdmin.setEmail("g.gialli1@wlbadmin.it");
anAdmin.setName("Giovanni");
anAdmin.setSurname("Gialli");
anAdmin.setPassword("Ciao1234.");
Admin created = adminJpa.create(anAdmin);
assertEquals("g.gialli1@wlb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testAdminCreate() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(05, \"new acc\", 00001, 100.00, \"A\"));\n\t\ttransacti... | [
"0.78374326",
"0.68639016",
"0.67980564",
"0.6757476",
"0.6717361",
"0.6687709",
"0.6632534",
"0.66236293",
"0.66093796",
"0.66061187",
"0.6553331",
"0.6531315",
"0.6499642",
"0.6468018",
"0.6462315",
"0.6441693",
"0.6360258",
"0.6345785",
"0.63143533",
"0.6314231",
"0.627974... | 0.6547876 | 11 |
Tests the update done to an admin | @Test
void updateTest() {
admin.setSurname("Rossini");
Admin modifyied = adminJpa.update(admin);
assertEquals("Rossini", modifyied.getSurname());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic boolean updateAdminInfo(Admin admin) {\n\t\tint i = adminDao.updateAdminInfo(admin);\r\n\t\treturn i > 0?true:false;\r\n\t}",
"boolean adminUpdate(int userId, int statusId, int reimbId);",
"public boolean update(Admin admin) {\n\t\treturn adminDao.update(admin);\n\t}",
"@Override\n\tpub... | [
"0.72934574",
"0.7052753",
"0.681542",
"0.6764732",
"0.66746885",
"0.65047127",
"0.6477783",
"0.642376",
"0.64199084",
"0.6390714",
"0.63638043",
"0.63504654",
"0.6348177",
"0.63414806",
"0.63403714",
"0.63025784",
"0.62995905",
"0.62882453",
"0.62876254",
"0.6283448",
"0.626... | 0.7285293 | 1 |
Tests the removal of an admin | @Test
void removeTest() {
Admin anAdmin = new Admin();
anAdmin.setEmail("g.gialli1@wlbadmin.it");
anAdmin.setName("Giovanni");
anAdmin.setSurname("Gialli");
anAdmin.setPassword("Ciao1234.");
try {
entityManager = factor.createEntityManager();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testAdminDelete() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\tAccount acc2 = new Account(00001, \"temp\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\t\taccounts.add(acc2);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"... | [
"0.7446809",
"0.73201543",
"0.7276163",
"0.7010901",
"0.6838662",
"0.67228353",
"0.6629324",
"0.65626186",
"0.65359235",
"0.6535195",
"0.6520973",
"0.6492383",
"0.6487834",
"0.6476434",
"0.64154005",
"0.6387167",
"0.6382858",
"0.6344385",
"0.6340712",
"0.6335072",
"0.6325692"... | 0.7179059 | 3 |
Tests the retrieve of all admins | @Test
void retrieveAllTest() {
boolean check1 = false;
boolean check2 = false;
List<Admin> adminList = adminJpa.retrieveAll();
for (Admin anAdmin : adminList) {
String email = anAdmin.getEmail();
if (email.equals("m.rossi1@wlbadmin.it"))
check1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void getAdminsTest() throws ApiException {\n String scope = null;\n AdminResponse response = api.getAdmins(scope);\n\n // TODO: test validations\n }",
"@Override\n\tpublic List<Admin> getAdmins() {\n\t\treturn ar.findAll();\n\t}",
"@Override\r\n\tpublic List<Admins> ge... | [
"0.82454765",
"0.7027672",
"0.6884147",
"0.6730823",
"0.65765345",
"0.65366507",
"0.6518574",
"0.6471828",
"0.6465565",
"0.6451677",
"0.64258397",
"0.641563",
"0.6408329",
"0.6391977",
"0.6388417",
"0.6383294",
"0.6350321",
"0.6327062",
"0.63137466",
"0.62935513",
"0.62817943... | 0.6851139 | 3 |
Tests the retrieve of an admin using his email and password | @Test
void retrieveByEmailPasswordTest() {
Admin retrieved = adminJpa.retrieveByEmailPassword("m.rossi1@wlbadmin.it", "Ciao1234.");
assertEquals("m.rossi1@wlbadmin.it", retrieved.getEmail());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic AdminDetails checkAdmin(String email, String password) {\n\t\tfor (AdminDetails checkAdmin : Repository.ADMIN_DETAILS) {\n\t\t\tif ((checkAdmin.getEmailId().equalsIgnoreCase(email)) && (checkAdmin.getPassword().equals(password))) {\n\t\t\t\treturn checkAdmin;\n\t\t\t}\n\t\t}\n\t\tthrow new Air... | [
"0.72676414",
"0.71583277",
"0.7129745",
"0.7026554",
"0.68930364",
"0.68904746",
"0.67646277",
"0.67599285",
"0.67347926",
"0.6709231",
"0.67017365",
"0.6671975",
"0.66183937",
"0.6607471",
"0.66051465",
"0.6579017",
"0.65533715",
"0.6507372",
"0.64995813",
"0.6487931",
"0.6... | 0.76624465 | 0 |
boolean ans = detect1(head); | public static boolean main(String[] args, ListNode head) {
boolean ans = detect2(head);
return ans;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);",
"boolean hasDecision();",
"boolean hasDecision();",
"private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);",
"boolean hasRecognizer();",
"boolean hasS1();... | [
"0.58317274",
"0.57102305",
"0.57102305",
"0.56850946",
"0.557037",
"0.55073225",
"0.5486719",
"0.5477478",
"0.5477478",
"0.5477478",
"0.5477478",
"0.5477478",
"0.5477478",
"0.5473881",
"0.5400344",
"0.5368041",
"0.5350945",
"0.5338093",
"0.53341174",
"0.5301044",
"0.52607715... | 0.68035126 | 0 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_product_detail, container, false);
unbinder = ButterKnife.bind(this, view);
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
this fuction displays an alert dialog box regarding the instructions of the game. | private void pop(){
AlertDialog.Builder start = new AlertDialog.Builder(this);
start.setTitle("THE ADVANCED HANGMAN - INSTRUCTIONS");
start.setMessage("The advanced hangman is an advanced version of the traditional hangman game. \nThe objective of the game is to guess the correct word within six... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void gameOverAlert() {\n \tAlert alert = new Alert(AlertType.INFORMATION);\n \t\n \talert.setTitle(\"Game Over!\");\n \talert.setHeaderText(\"You Did Not Get A New High Score!\\nYour High Score: \" + level.animal.getPoints());\n \talert.setContentText(\"Try Again Next Time!\");\n \talert.... | [
"0.7212688",
"0.71935713",
"0.7167933",
"0.71604216",
"0.7106242",
"0.706826",
"0.7026761",
"0.6916976",
"0.6908124",
"0.68516314",
"0.6766359",
"0.6741624",
"0.6738511",
"0.6702895",
"0.6688617",
"0.66812575",
"0.6673046",
"0.66721404",
"0.6640191",
"0.6638211",
"0.6637263",... | 0.65130836 | 35 |
this function is the main backbone of the game. | private void play() {
//play a new game
g=rando.nextInt(database.length);
String newWord = database[g];
while(newWord.equals(currentWord))
{
g=rando.nextInt(database.length); //random word is chosen diffferent from prev. word.
newWord = database[g];
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void beginGame() {\n }",
"@Override\n public void loadGame() {\n\n }",
"public void preGame() {\n\n\t}",
"@Override\n public void newGame() {\n //TODO Implement this method\n }",
"public void createGame();",
"void gameStarted();",
"void gameStarted();",
"pu... | [
"0.7318875",
"0.72109747",
"0.7152492",
"0.7129654",
"0.71135473",
"0.7057894",
"0.7057894",
"0.7033014",
"0.7033014",
"0.7033014",
"0.69775456",
"0.69592625",
"0.6929441",
"0.6929441",
"0.6929441",
"0.6890873",
"0.68908113",
"0.68908113",
"0.6861525",
"0.6841544",
"0.6807936... | 0.0 | -1 |
function when button is pressed. | public void lPressed(View v) {
//user has pressed a letter to guess
String ltr=((TextView)v).getText().toString();
char letterChar = ltr.charAt(0);
v.setEnabled(false);
// v.setBackgroundResource(R.drawable.l_down);
int hang=0;
int k=0;
while(k!=currentW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"public void buttonClicked();",
"public void onButtonAPressed();",
"void mainButtonPressed();",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"void buttonGo_actionPerformed(ActionEvent e) {\n\n... | [
"0.80308574",
"0.8001093",
"0.7798994",
"0.76383406",
"0.7634376",
"0.75651324",
"0.7513075",
"0.7391325",
"0.7325586",
"0.7317071",
"0.7271666",
"0.72709525",
"0.7256598",
"0.72396904",
"0.7229542",
"0.7218973",
"0.7156508",
"0.7156508",
"0.7156508",
"0.7156508",
"0.7156508"... | 0.0 | -1 |
/ dialog for choosing the arriving time if garKey = 0 and non current day | private void showChooseNonCurNonGarTimeDialog(){
alertDialog = new AlertDialog.Builder(this);
alertDialog.setTitle("请选择添到店时间");
timeString = new String[] { "20:00", "23:59","次日06:00"};
final ArrayList<String> arrayList = new ArrayList<String>();
//final ArrayList<String> arrayListType = new ArrayList<String>(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showChooseCurNonGarTimeDialog2(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] {\"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new Arra... | [
"0.6698729",
"0.6647923",
"0.6575501",
"0.6574944",
"0.6480958",
"0.64342666",
"0.6410434",
"0.63815314",
"0.63493013",
"0.6339778",
"0.630559",
"0.62950456",
"0.62844425",
"0.6283278",
"0.6281982",
"0.62764096",
"0.6254616",
"0.62541837",
"0.62512517",
"0.6250857",
"0.624540... | 0.66920745 | 1 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
System.out.println("***被点击***"+which);
dialog.toString();
switch (which) {
case 0:
arrivingTime = "14:00-20:00";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"14... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
/ dialog for choosing the arriving time if garKey = 0 and current day | private void showChooseCurNonGarTimeDialog2(){
alertDialog = new AlertDialog.Builder(this);
alertDialog.setTitle("请选择添到店时间");
timeString = new String[] {"23:59","次日06:00"};
final ArrayList<String> arrayList = new ArrayList<String>();
//final ArrayList<String> arrayListType = new ArrayList<String>();
for (i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showChooseNonCurNonGarTimeDialog(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] { \"20:00\", \"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListT... | [
"0.6714547",
"0.6693776",
"0.66215605",
"0.6603256",
"0.6533787",
"0.65114045",
"0.64764655",
"0.64604414",
"0.6431885",
"0.64099616",
"0.64015925",
"0.63842624",
"0.6372471",
"0.6358816",
"0.63586193",
"0.63578635",
"0.63403153",
"0.63380843",
"0.6331999",
"0.63301027",
"0.6... | 0.6751674 | 0 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
System.out.println("***被点击***"+which);
dialog.toString();
switch (which) {
case 0:
arrivingTime = (getTimeCurrentHr()+1)+":00"+"-"+"23:59";
timeTextView.setText(arrivingTime);
postArrivalEarl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
/ dialog for choosing the arriving time if garKey = 0 and current day | private void showChooseCurNonGarTimeDialog3(){
alertDialog = new AlertDialog.Builder(this);
alertDialog.setTitle("请选择添到店时间");
timeString = new String[] {"次日06:00"};
final ArrayList<String> arrayList = new ArrayList<String>();
//final ArrayList<String> arrayListType = new ArrayList<String>();
for (int i = 0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showChooseCurNonGarTimeDialog2(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] {\"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new Arra... | [
"0.6751233",
"0.67141443",
"0.6693516",
"0.66042006",
"0.6533895",
"0.65121746",
"0.6477284",
"0.6460993",
"0.64327383",
"0.6410795",
"0.64014524",
"0.63845664",
"0.6373141",
"0.63595265",
"0.63585323",
"0.63585186",
"0.63410497",
"0.6338725",
"0.633258",
"0.6330783",
"0.6318... | 0.6621072 | 3 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
System.out.println("***被点击***"+which);
dialog.toString();
switch (which) {
case 0:
arrivingTime = "23:59-次日06:00";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
/ dialog for choosing the arriving time if garKey = 0 and current day | private void showChooseCurNonGarTimeDialog1(){
alertDialog = new AlertDialog.Builder(this);
alertDialog.setTitle("请选择添到店时间");
timeString = new String[] { "20:00", "23:59","次日06:00"};
final ArrayList<String> arrayList = new ArrayList<String>();
//final ArrayList<String> arrayListType = new ArrayList<String>();... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showChooseCurNonGarTimeDialog2(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] {\"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new Arra... | [
"0.6751674",
"0.6714547",
"0.66215605",
"0.6603256",
"0.6533787",
"0.65114045",
"0.64764655",
"0.64604414",
"0.6431885",
"0.64099616",
"0.64015925",
"0.63842624",
"0.6372471",
"0.6358816",
"0.63586193",
"0.63578635",
"0.63403153",
"0.63380843",
"0.6331999",
"0.63301027",
"0.6... | 0.6693776 | 2 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
System.out.println("***被点击***"+which);
dialog.toString();
switch (which) {
case 0:
arrivingTime = (getTimeCurrentHr()+1)+":00"+"-"+"20:00";
postArrivalEarlyTime = liveTimeString + " " + (getTimeCu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onPreExecute() {
super.onPreExecute();
progressDialog1 = ProgressDialogTripg.show(HotelOrderYuDingMain.this, null, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onPostExecute(String result) {
super.onPostExecute(result);
progressDialog1.dismiss();
if (result.length() != 0) {
progressDialog1.dismiss();
Log.e("http response is ", result);
System.out.println("order request result -----> " + result);
checkingStat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected String doInBackground(Void... params) {
String rev1 = null;
JSONObject jsonObject = null;
try {
jsonObject = jsonObjectDict();
} catch (UnsupportedEncodingException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
String jsonString = "OrderRe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Get the current application context. | CTX_Context getContext(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Context getContext(){\n return appContext;\n }",
"public static Context getAppContext() {\n return _BaseApplication.context;\n }",
"Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }"... | [
"0.8570261",
"0.8120062",
"0.8080129",
"0.80475014",
"0.8044616",
"0.80201423",
"0.79891825",
"0.79891825",
"0.7949089",
"0.7880647",
"0.77298087",
"0.76782435",
"0.765452",
"0.765452",
"0.76466715",
"0.76337916",
"0.76245236",
"0.76138496",
"0.7562518",
"0.7562518",
"0.75625... | 0.0 | -1 |
Save the current context onto the disk. | void saveContext(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}",
"public void context_save(long context) {\n context_save(nativeHandle, context);\n }",
"private void saveToStorage() {\n FileOutputStream fos = null;\n try {\n fos = context.openFileOutput(\"GeoFences\",... | [
"0.6834548",
"0.6827745",
"0.67305815",
"0.66628814",
"0.65591675",
"0.64892733",
"0.6429795",
"0.6398996",
"0.6316169",
"0.6302374",
"0.62264717",
"0.62241274",
"0.6150962",
"0.6108685",
"0.6094163",
"0.6092613",
"0.60917443",
"0.6091669",
"0.6060919",
"0.60413957",
"0.60400... | 0.7909229 | 0 |
for Loops Loopcondition for(datatype variable = whereToStart;whereToFinish;Increment/Decrement) | public static void main(String[] args) {
for (int m =0; m<9;m++) {
System.out.println("kona");
}
for (int y=0; y<6; y++) {
System.out.println(y +"veer");
}
//Inner for loop
// print selenium 5 times,and for each time you print selenium,print java... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"For(int first, int last, int step) {\n\t\tthis.first = first;\n\t\tthis.step = step;\n\t\tthis.last = last;\n\t\tcountFor++;\n\t}",
"private void fletcher_loop(){\r\n\t\tfor(; i.getPosition() < array1.getLength(); i.increment(null, duration)){\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(2,3);... | [
"0.55993736",
"0.5557373",
"0.53799736",
"0.5280635",
"0.52715385",
"0.5264535",
"0.52073973",
"0.5199744",
"0.5172965",
"0.5168002",
"0.51437366",
"0.5143114",
"0.5061783",
"0.5033584",
"0.5006571",
"0.49972522",
"0.4993235",
"0.49647975",
"0.49617773",
"0.49541545",
"0.4944... | 0.0 | -1 |
Created by Shivani on 2/9/2018. | public interface PatientRegisterContracts extends BaseContract {
interface PatientRegisterView extends BaseContract.BaseView {
void onRegisterPatient(UserRegisterResponse userRegisterResponse);
}
interface PatientRegisterPresenter {
void registerPatient(PatientRegisterRequest patientRegsite... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.6026255",
"0.58438456",
"0.57457256",
"0.56951314",
"0.568626",
"0.568626",
"0.5649277",
"0.5631987",
"0.5564456",
"0.55499274",
"0.55256003",
"0.55195177",
"0.5517523",
"0.5497504",
"0.54931355",
"0.5476722",
"0.54662645",
"0.5452878",
"0.5452878",
"0.5452878",
"0.5452878... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
cmbFC = new javax.swing.JComboBox();
jScrollPane1 = ne... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.7319573",
"0.72908455",
"0.72908455",
"0.72908455",
"0.7286827",
"0.7248724",
"0.7213511",
"0.7208325",
"0.7195998",
"0.7190202",
"0.7184771",
"0.7158966",
"0.7147921",
"0.7093225",
"0.7080275",
"0.7057302",
"0.69875276",
"0.6977057",
"0.6955658",
"0.6953942",
"0.69454855"... | 0.0 | -1 |
Conversion .svg to .png for create a format more standard and print it | public void convert() throws Exception {
String svg_URI_input = Paths.get("library.svg").toUri().toURL().toString();
TranscoderInput input_svg_image = new TranscoderInput(svg_URI_input);
this.setNewImage(generate(20));// Define the name of the file
try (OutputStream png_ostream = new FileOutputStream(newIma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void outputSvg(String fileName){\n\t\ttry {\n\t\t\tFileWriter fw = new FileWriter(new File(fileName));\n\t\t\tfw.write(output);\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t}",
"public ImageWriterSVG(String format)\n\t{\n\t\tif (!(\... | [
"0.68905544",
"0.6500637",
"0.64500946",
"0.6410647",
"0.6118219",
"0.60256726",
"0.58314246",
"0.58228576",
"0.5707507",
"0.57000995",
"0.5697547",
"0.5691737",
"0.5684019",
"0.565718",
"0.56317323",
"0.54907537",
"0.54891735",
"0.54799753",
"0.54532087",
"0.5450165",
"0.542... | 0.6536556 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.