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 |
|---|---|---|---|---|---|---|
TODO Autogenerated method stub | @Override
public User selectUserByName(String userName) {
return userDao.selectUserByName(userName);
} | {
"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 List<User> selectLimit() {
return userDao.selectLimit();
} | {
"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 int modifyPassword(User user) {
return userDao.modifyPassword(user);
} | {
"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 List<User> findAllUser() {
return userDao.findAllUser();
} | {
"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 int addUser(User user) {
return userDao.addUser(user);
} | {
"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 int deleteUser(Integer id) {
return userDao.deleteUser(id);
} | {
"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 int updateUser(User user) {
return userDao.updateUser(user);
} | {
"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 static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String readLine = reader.readLine();
reader.close();
String[] split = readLine.split(" ");
int num=Integer.valueOf(split[1])-Integer.valueOf(split[0]);
int rs=(int)Math.rint((double)num/100.0);
int s=rs%60;
int m=(rs/60)%60;
int h=rs/3600;
System.out.println((h<10?("0"+h):h)+":"+(m<10?("0"+m):m)+":"+(s<10?("0"+s):s));
} | {
"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 |
User cancelled the dialog | public void onClick(DialogInterface dialog, int id) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cancelDialog() {dispose();}",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }",
"@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t... | [
"0.84252524",
"0.81816214",
"0.81397384",
"0.80922073",
"0.7927849",
"0.79160905",
"0.78777075",
"0.78763556",
"0.7856008",
"0.7849157",
"0.7848072",
"0.7838308",
"0.7804249",
"0.77992254",
"0.7796975",
"0.7796975",
"0.77921396",
"0.7792013",
"0.77904165",
"0.77860636",
"0.77... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table area_info | public AreaInfoExample() {
oredCriteria = new ArrayList<Criteria>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getArea_id() {\n return area_id;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\... | [
"0.6211476",
"0.6118926",
"0.6118926",
"0.6027834",
"0.5944427",
"0.59369814",
"0.59259844",
"0.59259844",
"0.5895778",
"0.5844656",
"0.58268017",
"0.5801868",
"0.5800546",
"0.57694465",
"0.57557356",
"0.56665033",
"0.5663364",
"0.56605303",
"0.5632387",
"0.5612579",
"0.56125... | 0.579016 | 13 |
This method was generated by MyBatis Generator. This method corresponds to the database table area_info | public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getArea_id() {\n return area_id;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\... | [
"0.62127465",
"0.6120584",
"0.6120584",
"0.602881",
"0.5946163",
"0.5939068",
"0.59278303",
"0.59278303",
"0.5897159",
"0.58465576",
"0.5828366",
"0.5803375",
"0.5802427",
"0.5789962",
"0.57720095",
"0.5757679",
"0.5668102",
"0.5664908",
"0.56620866",
"0.5633982",
"0.5612919"... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table area_info | public String getOrderByClause() {
return orderByClause;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getArea_id() {\n return area_id;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\... | [
"0.6211476",
"0.6118926",
"0.6118926",
"0.6027834",
"0.5944427",
"0.59369814",
"0.59259844",
"0.59259844",
"0.5895778",
"0.5844656",
"0.58268017",
"0.5801868",
"0.5800546",
"0.579016",
"0.57694465",
"0.57557356",
"0.56665033",
"0.5663364",
"0.56605303",
"0.5632387",
"0.561257... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table area_info | public void setDistinct(boolean distinct) {
this.distinct = distinct;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getArea_id() {\n return area_id;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\... | [
"0.6211476",
"0.6118926",
"0.6118926",
"0.6027834",
"0.5944427",
"0.59369814",
"0.59259844",
"0.59259844",
"0.5895778",
"0.5844656",
"0.58268017",
"0.5801868",
"0.5800546",
"0.579016",
"0.57694465",
"0.57557356",
"0.56665033",
"0.5663364",
"0.56605303",
"0.5632387",
"0.561257... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table area_info | public boolean isDistinct() {
return distinct;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getArea_id() {\n return area_id;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\... | [
"0.6211476",
"0.6118926",
"0.6118926",
"0.6027834",
"0.5944427",
"0.59369814",
"0.59259844",
"0.59259844",
"0.5895778",
"0.5844656",
"0.58268017",
"0.5801868",
"0.5800546",
"0.579016",
"0.57694465",
"0.57557356",
"0.56665033",
"0.5663364",
"0.56605303",
"0.5632387",
"0.561257... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table area_info | public List<Criteria> getOredCriteria() {
return oredCriteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getArea_id() {\n return area_id;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\... | [
"0.62127465",
"0.6120584",
"0.6120584",
"0.602881",
"0.5946163",
"0.5939068",
"0.59278303",
"0.59278303",
"0.5897159",
"0.58465576",
"0.5828366",
"0.5803375",
"0.5802427",
"0.5789962",
"0.57720095",
"0.5757679",
"0.5668102",
"0.5664908",
"0.56620866",
"0.5633982",
"0.5612919"... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table area_info | public void or(Criteria criteria) {
oredCriteria.add(criteria);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getArea_id() {\n return area_id;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\... | [
"0.6211476",
"0.6118926",
"0.6118926",
"0.6027834",
"0.5944427",
"0.59369814",
"0.59259844",
"0.59259844",
"0.5895778",
"0.5844656",
"0.58268017",
"0.5801868",
"0.5800546",
"0.579016",
"0.57694465",
"0.57557356",
"0.56665033",
"0.5663364",
"0.56605303",
"0.5632387",
"0.561257... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table area_info | public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getArea_id() {\n return area_id;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\... | [
"0.6211476",
"0.6118926",
"0.6118926",
"0.6027834",
"0.5944427",
"0.59369814",
"0.59259844",
"0.59259844",
"0.5895778",
"0.5844656",
"0.58268017",
"0.5801868",
"0.5800546",
"0.579016",
"0.57694465",
"0.57557356",
"0.56665033",
"0.5663364",
"0.56605303",
"0.5632387",
"0.561257... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table area_info | public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getArea_id() {\n return area_id;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\... | [
"0.6211476",
"0.6118926",
"0.6118926",
"0.6027834",
"0.5944427",
"0.59369814",
"0.59259844",
"0.59259844",
"0.5895778",
"0.5844656",
"0.58268017",
"0.5801868",
"0.5800546",
"0.579016",
"0.57694465",
"0.57557356",
"0.56665033",
"0.5663364",
"0.56605303",
"0.5632387",
"0.561257... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table area_info | protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getArea_id() {\n return area_id;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\... | [
"0.62127465",
"0.6120584",
"0.6120584",
"0.602881",
"0.5946163",
"0.5939068",
"0.59278303",
"0.59278303",
"0.5897159",
"0.58465576",
"0.5828366",
"0.5803375",
"0.5802427",
"0.5789962",
"0.57720095",
"0.5757679",
"0.5668102",
"0.5664908",
"0.56620866",
"0.5633982",
"0.5612919"... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table area_info | public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getArea_id() {\n return area_id;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public Integer getAreaId() {\n return areaId;\n }",
"public ArrayList<AreaInfo> queryAreas(){\n\t\tArrayList<AreaInfo> areaInfos = new ArrayList<AreaInfo>();\n\t\t\... | [
"0.6211476",
"0.6118926",
"0.6118926",
"0.6027834",
"0.5944427",
"0.59369814",
"0.59259844",
"0.59259844",
"0.5895778",
"0.5844656",
"0.58268017",
"0.5801868",
"0.5800546",
"0.579016",
"0.57694465",
"0.57557356",
"0.56665033",
"0.5663364",
"0.56605303",
"0.5632387",
"0.561257... | 0.0 | -1 |
Mutate a tour using swap mutation | public static void mutate(Chromosome chrome) {
// Loop through tour cities
for(int rosterNursePos1=0; rosterNursePos1 < chrome.ChromosomeRowSize(); rosterNursePos1++){
for (int rosterDayPos1=0; rosterDayPos1<chrome.chromosomeColumnCount();rosterDayPos1++){
if(RosterManager.isPreviousShift(chrome.getShift(rosterNursePos1, rosterDayPos1))==false || RosterManager.isNextShift(chrome.getShift(rosterNursePos1, rosterDayPos1))==false || chrome.getShift(rosterNursePos1, rosterDayPos1).getHours()!=0 ){
if(Math.random() < mutationRate){
// Get a second random position in the tour
int rosterNursePos2= rosterNursePos1;
int rosterDayPos2 = returnValidPos(rosterNursePos2, randomizeShiftGeneration(chrome), chrome );
// Get the cities at target position in tour
Gene gene1 = chrome.retrieveGene(rosterNursePos1, rosterDayPos1);
Gene gene2 = chrome.retrieveGene(rosterNursePos2, rosterDayPos2);
// Swap them around
chrome.saveGene(rosterNursePos1, rosterDayPos1, gene2);
chrome.saveGene(rosterNursePos2, rosterDayPos2, gene1);
}
}
// Apply mutation rate
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void mutate(Tour tour) {\n // Loop through tour cities\n for(int tourPos1=0; tourPos1 < tour.tourSize(); tourPos1++){\n // Apply mutation rate\n if(Math.random() < mutationRate){\n // Get a second random position in the tour\n int tou... | [
"0.6961127",
"0.6376514",
"0.61003244",
"0.57670134",
"0.5744586",
"0.57325387",
"0.5705627",
"0.5662177",
"0.5656746",
"0.5653727",
"0.56515425",
"0.56339693",
"0.56099063",
"0.5595342",
"0.5592343",
"0.55616355",
"0.55568814",
"0.55544573",
"0.55452",
"0.5539677",
"0.553736... | 0.0 | -1 |
This method will be executed once the timer is over Start the app main activity | @Override
public void run() {
Intent i = new Intent(getBaseContext(), HomeActivity.class);
startActivity(i);
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void run() {\n // This method will be executed once the timer is over\n // Start your app main activity\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(i);\n Log.i(\"going ... | [
"0.807211",
"0.79716164",
"0.79587513",
"0.76407665",
"0.761142",
"0.7559602",
"0.7546117",
"0.74112004",
"0.7320499",
"0.72840554",
"0.7211744",
"0.72001016",
"0.71805525",
"0.70911676",
"0.7016919",
"0.6983901",
"0.6970407",
"0.6937751",
"0.68917346",
"0.6877359",
"0.687494... | 0.0 | -1 |
boolean shouldall = true; | @Override
protected void onResume() {
super.onResume();
if (hasBeenSecurity) {
if (KeyguardSetting.isAccessibilityEnable(this)) {
Util.putPreferenceBoolean(mContext, NOTIFICATION_CHECK, true);
mCheckBoxToggle.setChecked(true);
} else {
mCheckBoxToggle.setChecked(false);
}
} else {
if (KeyguardSetting.isAccessibilityEnable(this)
&& Util.getPreferenceBoolean(mContext, NOTIFICATION_CHECK,
false)) {
// TODO 修改逻辑
mCheckBoxToggle.setChecked(true);
} else {
mCheckBoxToggle.setChecked(false);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasAll();",
"boolean hasAll();",
"public boolean hasAll() {\n return all_ != null;\n }",
"public boolean hasAll() {\n return all_ != null;\n }",
"public void initializeBoolean(){\n\t\tisEndTime = false;\n\t\tdisplayTimeCount = true;\n\t\tmoveDistanceCount = true;\n\t\tguessCounter =... | [
"0.66595685",
"0.66595685",
"0.65282834",
"0.65282834",
"0.63995767",
"0.63514656",
"0.62853897",
"0.62726396",
"0.62698966",
"0.626934",
"0.626934",
"0.6264747",
"0.6146346",
"0.6138795",
"0.60844094",
"0.607476",
"0.6040238",
"0.6039004",
"0.6037433",
"0.59724385",
"0.59628... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onStop() {
super.onStop();
mInstalledLayout4Notification.saveData();
} | {
"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 |
Go Back when Back button is clicked. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == android.R.id.home) {
finish();
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onGoBackButtonClick();",
"public void back() {\n Views.goBack();\n }",
"public void goBack() {\n goBackBtn();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}",
"public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}",
... | [
"0.8747207",
"0.8731754",
"0.8636483",
"0.8605507",
"0.84957194",
"0.84650594",
"0.84347105",
"0.8413632",
"0.83999604",
"0.8383273",
"0.83175117",
"0.83058184",
"0.82877785",
"0.82877785",
"0.8247843",
"0.8213869",
"0.8213869",
"0.8202563",
"0.81930596",
"0.81930596",
"0.819... | 0.0 | -1 |
Switches between Add screen and Edit screen according to Intent Extras. If Intent has StringExtra(NOTE_UID) > Note's Uid has been passed > Screen is Edit. | private void switchBetweenAddEdit() {
String uid = getIntent().getStringExtra(NOTE_UID);
if (uid != null) {
Objects.requireNonNull(getSupportActionBar()).setTitle(R.string.edit_note);
Note note = Arrays.stream(firebase.getNotes().getValue()).filter(note1 -> uid.equals(note1.getUid())).findFirst().get();
Calendar cal = Calendar.getInstance();
cal.setTime(note.getDate());
date.init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null);
title.setText(note.getTitle());
body.setText(note.getBody());
addBtn.setVisibility(View.GONE);
editBtnsLyot.setVisibility(View.VISIBLE);
saveBtn.setOnClickListener(view -> {
prepareNote(note1 -> {
note1.setUid(uid);
setNoteOnFirebaseManager(note1, true);
});
});
deleteBtn.setOnClickListener(view -> {
deleteNoteOnFirebaseManager(note);
});
}
addBtn.setOnClickListener(view -> {
prepareNote(note -> {
setNoteOnFirebaseManager(note, false);
});
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void contactEdit() {\n Intent editIntent = new Intent(viewContacts.this, editContact.class); //start the intent to go back to edit contact\n editIntent.putExtra(\"MyID\", edit_intent);\n\n startActivity(editIntent); //start the activity\n\n\n\n }",
"public void onPressEdit() {\r\n ... | [
"0.6501269",
"0.6217641",
"0.60169595",
"0.58384055",
"0.5720122",
"0.5707604",
"0.5674256",
"0.56476706",
"0.5630249",
"0.5604869",
"0.55949485",
"0.5580037",
"0.5567516",
"0.5565828",
"0.55411506",
"0.5485628",
"0.54791725",
"0.54690784",
"0.5465793",
"0.54393846",
"0.54358... | 0.6906896 | 0 |
Handle deleting note on FirebaseManager and display a Toast for Success/Failure. | private void deleteNoteOnFirebaseManager(Note note){
firebase.deleteNoteOnDB(note, unused -> {
Toast.makeText(this, R.string.note_deletion_success, Toast.LENGTH_LONG).show();
finish();
}, e -> {
Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void handleDeletePressed() {\n if (mCtx == Context.CREATE) {\n finish();\n return;\n }\n\n DialogFactory.deletion(this, getString(R.string.dialog_note), () -> {\n QueryService.awaitInstance(service -> deleteNote(service, mNote.id()));\n }).show()... | [
"0.71904755",
"0.6908492",
"0.6894954",
"0.6849478",
"0.6762148",
"0.66902727",
"0.6664408",
"0.6656127",
"0.66543937",
"0.6634081",
"0.6634081",
"0.6623552",
"0.6535859",
"0.6531844",
"0.652852",
"0.6527487",
"0.6481261",
"0.6449666",
"0.6416715",
"0.64147645",
"0.64134115",... | 0.8279309 | 0 |
Add/Update Note on FirebaseManager and display a Toast for Success/Failure. | private void setNoteOnFirebaseManager(Note note, boolean isUpdate){
firebase.setNoteOnDB(note, unused -> {
Toast.makeText(this, isUpdate ? R.string.note_update_success : R.string.note_addition_success, Toast.LENGTH_LONG).show();
finish();
}, e -> {
Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addNote(){\n DatabaseReference noteRef = mDB.getReference(\"Notes\");\n\n Long time = System.currentTimeMillis();\n\n Bundle bundleNote = new Bundle();\n bundleNote.putString(\"notesDetail\", notes.getText().toString());\n bundleNote.putString(\"notesTime\", time.toS... | [
"0.6882696",
"0.6729398",
"0.65132415",
"0.632295",
"0.62829435",
"0.62368894",
"0.6082585",
"0.6038207",
"0.6020993",
"0.5967148",
"0.5947215",
"0.5894952",
"0.58772653",
"0.58713305",
"0.58689076",
"0.58301896",
"0.58271194",
"0.5821109",
"0.57719874",
"0.5756876",
"0.57272... | 0.7391046 | 0 |
Create a Note instance and get Current Location to pass NoteReadyListener.OnReady Callback with Note instance. | private void prepareNote(NoteReadyListener listener) {
progressBar.setVisibility(View.VISIBLE);
Date dateO = getDate(date.getYear(), date.getMonth(), date.getDayOfMonth());
String titleS = title.getText().toString();
String bodyS = body.getText().toString();
getLocation(location -> {
GeoPoint geoPoint = new GeoPoint(location.getLatitude(), location.getLongitude());
Note note = new Note(titleS, bodyS, geoPoint, dateO);
listener.OnReady(note);
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Note() {\n //uig = new UniqueIdGenerator();\n noteId = UUIDGenerator.getUUID();\n created_on = new Date();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n LayoutInflaterCompat.setFactory2(getLayoutInflater(), new IconicsLayoutInflater2(getDelegat... | [
"0.62142175",
"0.5677622",
"0.55250597",
"0.54413486",
"0.5437657",
"0.5391671",
"0.5369244",
"0.5363626",
"0.5343486",
"0.5319977",
"0.5172984",
"0.5154798",
"0.5154798",
"0.5154798",
"0.51491225",
"0.5128009",
"0.51056707",
"0.50940514",
"0.5089962",
"0.50684226",
"0.506513... | 0.6485386 | 0 |
Get Current Device Location, Throws an exception if fails. | private void getLocation(LocationListener listener){
FusedLocationProviderClient fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);
try {
if (locationPermissionGranted){
Task<Location> locationResult = fusedLocationClient.getLastLocation();
locationResult.addOnCompleteListener(this, task -> {
if (task.isSuccessful()) {
// Set the map's camera position to the current location of the device.
listener.onSuccess(task.getResult());
} else {
Toast.makeText(this, task.getException().getMessage(), Toast.LENGTH_LONG).show();
}
progressBar.setVisibility(View.GONE);
});
}
} catch (SecurityException e){
Log.e("Exception: %s", e.getMessage(), e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getDeviceLocation(){\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n\n try {\n if (mLocationPermissionsGranted) {\n\n final Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnC... | [
"0.7682202",
"0.73755306",
"0.7356885",
"0.7336927",
"0.7334721",
"0.7331082",
"0.72833073",
"0.72305703",
"0.72242856",
"0.72067475",
"0.71910065",
"0.71322244",
"0.70948964",
"0.70836765",
"0.7018398",
"0.69808006",
"0.6977543",
"0.69685495",
"0.6940709",
"0.68781275",
"0.6... | 0.0 | -1 |
Prompts the user for permission to use the device location. | private void getLocationPermission() {
/*
* Request location permission, so that we can get the location of the
* device. The result of the permission request is handled by a callback,
* onRequestPermissionsResult.
*/
if (ContextCompat.checkSelfPermission(this.getApplicationContext(), ACCESS_FINE_LOCATION) == PERMISSION_GRANTED &&
ContextCompat.checkSelfPermission(this.getApplicationContext(), ACCESS_COARSE_LOCATION) == PERMISSION_GRANTED) {
locationPermissionGranted = true;
} else {
ActivityCompat.requestPermissions(this,
new String[]{
ACCESS_FINE_LOCATION,
ACCESS_COARSE_LOCATION
}, PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void askForLocationPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //this code will be executed on devices running on DONUT (NOT ICS) or later\n askForPermission(Manifest.permission.ACCESS_FINE_LOCATION, Extra.LOCATION);\n }\n }",
"private v... | [
"0.776698",
"0.7651568",
"0.7638665",
"0.76210517",
"0.74222696",
"0.7376342",
"0.72495216",
"0.7231457",
"0.72216654",
"0.72000766",
"0.7024308",
"0.7022187",
"0.7013939",
"0.6992729",
"0.6987125",
"0.6987125",
"0.6986646",
"0.69855034",
"0.698384",
"0.69819254",
"0.69819254... | 0.6848028 | 33 |
Handles the result of the request for location permissions. | @Override
public void onRequestPermissionsResult(int requestCode,
@NonNull String[] permissions,
@NonNull int[] grantResults) {
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
locationPermissionGranted = false;
if (requestCode == PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION) {// If request is cancelled, the result arrays are empty.
if (grantResults.length > 0
&& grantResults[0] == PERMISSION_GRANTED) {
locationPermissionGranted = true;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n Log.d(TAG, \"Permission Result\");\n ... | [
"0.71567273",
"0.7141907",
"0.71304005",
"0.7114405",
"0.7099874",
"0.69807446",
"0.6941455",
"0.6903116",
"0.6890953",
"0.68448895",
"0.683298",
"0.6827792",
"0.6819534",
"0.68057734",
"0.68019074",
"0.6792721",
"0.67802286",
"0.6773205",
"0.67676735",
"0.67322105",
"0.67148... | 0.64514107 | 68 |
Objeto que vem do JSON | public Venda(int idProduto, double valorUnitarioProduto, int quantidadeUnitarioProduto, double valorTotalProduto, int idEndereco, double valorFrete, int idPagamento) {
this.idProduto = idProduto;
this.valorUnitarioProduto = valorUnitarioProduto;
this.quantidadeUnitarioProduto = quantidadeUnitarioProduto;
this.valorTotalProduto = valorTotalProduto;
this.idEndereco = idEndereco;
this.valorFrete = valorFrete;
this.idPagamento = idPagamento;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract T zzb(JSONObject jSONObject);",
"public abstract Object toJson();",
"void mo28373a(JSONObject jSONObject);",
"private JSON() {\n\t}",
"public String getJson();",
"String getJson();",
"String getJson();",
"String getJson();",
"public static <T> T pasarAObjeto(String json, Class<T> ti... | [
"0.659613",
"0.6573268",
"0.6561883",
"0.65355045",
"0.6523522",
"0.6457104",
"0.6457104",
"0.6457104",
"0.63792866",
"0.63289136",
"0.6270627",
"0.6262346",
"0.6262346",
"0.6224346",
"0.6223217",
"0.62025523",
"0.6176329",
"0.61660594",
"0.6159065",
"0.6158491",
"0.615787",
... | 0.0 | -1 |
Objeto salvo na tbl_produtos_venda | public Venda(int idVenda, int idProduto, int quantidadeUnitarioProduto) {
this.idVenda = idVenda;
this.idProduto = idProduto;
this.quantidadeUnitarioProduto = quantidadeUnitarioProduto;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Venta(Producto producto,Cliente comprador,Cliente vendedor){\n this.fechaCompra=fechaCompra.now();\n this.comprador=comprador;\n this.vendedor=vendedor;\n this.producto=producto;\n \n }",
"private static void CrearVenda (BaseDades bd, int idpro... | [
"0.6774045",
"0.6659908",
"0.6575948",
"0.65391904",
"0.6538935",
"0.6479089",
"0.64679486",
"0.6424482",
"0.6368855",
"0.6283101",
"0.6227033",
"0.62218213",
"0.6191298",
"0.6159226",
"0.6154608",
"0.61457914",
"0.61373705",
"0.61319697",
"0.61222506",
"0.6110135",
"0.609895... | 0.6266095 | 10 |
Objeto salvo na tbl_venda | public Venda(String codigoVenda, int quantidadeTotalVenda, int valorFrete, double valorTotalVenda, String dataVenda, int idEndereco, int idUsuario, int idStatus, int idPagamento) {
this.codigoVenda = codigoVenda;
this.quantidadeTotalVenda = quantidadeTotalVenda;
this.valorFrete = valorFrete;
this.valorTotalVenda = valorTotalVenda;
this.dataVenda = dataVenda;
this.idEndereco = idEndereco;
this.idUsuario = idUsuario;
this.idStatus = idStatus;
this.idPagamento = idPagamento;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void listar_mais_vendeu(String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_MaisVendidas.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getMaisVendeu... | [
"0.6953625",
"0.68755054",
"0.6816847",
"0.6798281",
"0.6794865",
"0.6721765",
"0.66080683",
"0.657117",
"0.6570226",
"0.65419006",
"0.6498764",
"0.6473636",
"0.64666885",
"0.64042294",
"0.6370643",
"0.6360809",
"0.63476896",
"0.6341352",
"0.6293113",
"0.62902814",
"0.628017"... | 0.6333164 | 18 |
add an applicationlevel listener to receive messages from the server (as in replies to requests). | public void addListener(CommListener listener) {
comm.addListener(listener);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addMessageListener(SocketListener sl_arg){\n\t\tsl = sl_arg;\n\t}",
"@Override\n\tpublic void addMessageReceivedListener(MessageReceivedListener messageReceivedListener) {\n\n\t}",
"public int addListener(Value listener) {\n\n IApplication adapter = new IApplication() {\n private ... | [
"0.6770818",
"0.66756076",
"0.6518579",
"0.6461353",
"0.63458544",
"0.6330864",
"0.6325686",
"0.62993973",
"0.62214786",
"0.6122037",
"0.60794646",
"0.60603696",
"0.60456246",
"0.60392547",
"0.60312593",
"0.6029598",
"0.6022335",
"0.60095316",
"0.6000972",
"0.5979026",
"0.597... | 0.0 | -1 |
Our network's equivalent to ping | public void poke(String tag, int num) {
// data to send
Ping.Builder f = eye.Comm.Ping.newBuilder();
f.setTag(tag);
f.setNumber(num);
// payload containing data
Request.Builder r = Request.newBuilder();
eye.Comm.Payload.Builder p = Payload.newBuilder();
p.setPing(f.build());
r.setBody(p.build());
// header with routing info
eye.Comm.Header.Builder h = Header.newBuilder();
h.setOriginator("client");
h.setTag("test finger");
h.setTime(System.currentTimeMillis());
h.setRoutingId(eye.Comm.Header.Routing.PING);
r.setHeader(h.build());
eye.Comm.Request req = r.build();
try {
comm.sendMessage(req);
} catch (Exception e) {
logger.warn("Unable to deliver message, queuing");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean ping();",
"public static void ping() {}",
"public static void ping() {}",
"@Override\n public String ping() {\n return super.ping();\n }",
"public Boolean ping() throws CallError, InterruptedException {\n return (Boolean)service.call(\"ping\").get();\n }",
"boolean ping(Stri... | [
"0.8182322",
"0.7572776",
"0.7572776",
"0.74539006",
"0.7396804",
"0.7359288",
"0.72047687",
"0.7107047",
"0.7003843",
"0.695754",
"0.6942168",
"0.68713915",
"0.68669355",
"0.6816827",
"0.6794988",
"0.67769134",
"0.67526186",
"0.67232245",
"0.6716543",
"0.66833156",
"0.659244... | 0.0 | -1 |
Sign up data to be send | public void signup(String name, String uname, String passwd) {
NameValueSet.Builder value = NameValueSet.newBuilder();
value.setName("SignUp_name");
value.setValue("SignUp_value");
JobDesc.Builder desc = JobDesc.newBuilder();
desc.setNameSpace("SignUp_namespace");
desc.setJobId("Zero");
desc.setOwnerId(0);
desc.setStatus(JobCode.JOBUNKNOWN);
desc.setOptions(value.build());
JobOperation.Builder j = eye.Comm.JobOperation.newBuilder();
j.setAction(JobAction.ADDJOB);
j.setJobId("Zero");
j.setData( desc.build());
SignUp.Builder sb= eye.Comm.SignUp.newBuilder();
sb.setFullName(name);
sb.setUserName(uname);
sb.setPassword(passwd);
// Payload containing data
Request.Builder r = Request.newBuilder();
eye.Comm.Payload.Builder p = Payload.newBuilder();
p.setSignUp(sb.build());
p.setJobOp(j.build());
r.setBody(p.build());
// header with routing info
eye.Comm.Header.Builder h = Header.newBuilder();
h.setOriginator("client");
h.setTag("Sign up");
h.setTime(System.currentTimeMillis());
h.setRoutingId(eye.Comm.Header.Routing.JOBS);
r.setHeader(h.build());
eye.Comm.Request req = r.build();
try {
comm.sendMessage(req);
} catch (Exception e) {
logger.warn("Unable to deliver message, queuing");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void signUp(SignUpRequest signupRequest);",
"private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pas... | [
"0.71086025",
"0.692406",
"0.6819431",
"0.67457986",
"0.6708956",
"0.6707951",
"0.6650367",
"0.6646354",
"0.66016954",
"0.6526932",
"0.64834934",
"0.64468783",
"0.64234793",
"0.64019126",
"0.6358378",
"0.63528407",
"0.6324773",
"0.6283275",
"0.62740576",
"0.6269697",
"0.62488... | 0.6408304 | 13 |
Sign up data to be send | public void reqlist()
{
NameValueSet.Builder value = NameValueSet.newBuilder();
value.setName("ReqCourseList_Name");
value.setValue("ReqCourseList_value");
JobDesc.Builder desc = JobDesc.newBuilder();
desc.setNameSpace("ReqCourseList_namespace");
desc.setJobId("Zero");
desc.setOwnerId(0);
desc.setStatus(JobCode.JOBUNKNOWN);
desc.setOptions(value.build());
JobOperation.Builder j = eye.Comm.JobOperation.newBuilder();
j.setAction(JobAction.ADDJOB);
j.setJobId("Zero");
j.setData( desc.build());
GetCourse.Builder gb=eye.Comm.GetCourse.newBuilder();
gb.setCourseId(-1);
RequestList.Builder sb= eye.Comm.RequestList.newBuilder();
sb.addCourseList(gb.build());
// Payload containing data
Request.Builder r = Request.newBuilder();
eye.Comm.Payload.Builder p = Payload.newBuilder();
p.setReqList(sb.build());
p.setJobOp(j.build());
r.setBody(p.build());
// header with routing info
eye.Comm.Header.Builder h = Header.newBuilder();
h.setOriginator("client");
h.setTag("ReqCourseList");
h.setTime(System.currentTimeMillis());
h.setRoutingId(eye.Comm.Header.Routing.JOBS);
r.setHeader(h.build());
eye.Comm.Request req = r.build();
try {
comm.sendMessage(req);
} catch (Exception e) {
logger.warn("Unable to deliver message, queuing");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void signUp(SignUpRequest signupRequest);",
"private void registration() {\n\t\tif (ur_name.getText().length() > 0 && email.getText().length() > 0\r\n\t\t\t\t&& pass.getText().length() > 0\r\n\t\t\t\t&& re_pass.getText().length() > 0) {\r\n\t\t\tif (pass.getText().toString()\r\n\t\t\t\t\t.equalsIgnoreCase(re_pas... | [
"0.71086025",
"0.692406",
"0.6819431",
"0.67457986",
"0.6708956",
"0.6707951",
"0.6650367",
"0.6646354",
"0.66016954",
"0.6526932",
"0.64834934",
"0.64468783",
"0.64234793",
"0.6408304",
"0.64019126",
"0.6358378",
"0.63528407",
"0.6324773",
"0.6283275",
"0.62740576",
"0.62696... | 0.0 | -1 |
METHODS PrePersist method for adding two fields (createdOn, createdBy) automatically before each time Notification object is created into database. For evidence of creation in future investigations. | @PrePersist
public void prePersist() {
createdOn = LocalDateTime.now();
createdBy = ApplicationUtils.getUserName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@PrePersist\n\t protected void onCreate(){\n\t this.createdAt = new Date();\n\t }",
"@PrePersist\n protected void onCreate(){\n this.createdAt = new Date();\n }",
"@PrePersist\r\n void createdAt() {\r\n setDateRecordAdded();\r\n setDateRecordUpdated();\r\n }",
"@Pre... | [
"0.75416315",
"0.7395089",
"0.7299612",
"0.68871826",
"0.66076833",
"0.6365053",
"0.62408495",
"0.61896974",
"0.6159285",
"0.6118618",
"0.6004161",
"0.59798753",
"0.5958723",
"0.5881812",
"0.58809745",
"0.58271",
"0.58176357",
"0.5807924",
"0.5767105",
"0.5733952",
"0.5658791... | 0.8147038 | 0 |
PreUpdate method for adding two fields (updatedOn, updatedBy) automatically before each time Notification object is changed in database. For evidence of creation in future investigations. | @PreUpdate
public void preUpdate() {
updatedOn = LocalDateTime.now();
updatedBy = ApplicationUtils.getUserName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@PreUpdate\n private void beforeUpdate() {\n updatedDate = new Date();\n }",
"@PreUpdate\r\n void updatedAt() {\r\n setDateRecordUpdated();\r\n }",
"@PreUpdate\r\n public void preUpdate() {\r\n\r\n }",
"@DISPID(-2147412091)\n @PropGet\n java.lang.Object onbeforeupdate();",
"@PrePe... | [
"0.70130235",
"0.6606864",
"0.64810133",
"0.6352893",
"0.6186673",
"0.6150234",
"0.61186635",
"0.60431784",
"0.5907362",
"0.5883234",
"0.5875438",
"0.58668256",
"0.58640116",
"0.5806887",
"0.57912683",
"0.5736375",
"0.56452775",
"0.5624949",
"0.5515747",
"0.5509396",
"0.54840... | 0.79021865 | 0 |
Method for adding Employee to the instance and in other way after adding to the Notification addint to voter list. | public void addVoter(Employee voter) {
voters.add(voter);
voter.getVotes().add(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addEmployee(Employee emp) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void addEmployee(Employee employee) {\n\t\temployees.add(employee);\r\n\t\t\r\n\t}",
"@Override\n\tpublic void addEmployee(Employee employee) {\n\t\tem.getTransaction().begin();\n\t\tem.persist(employee);\n\t\tem.getTransaction().com... | [
"0.7694234",
"0.76637274",
"0.7160193",
"0.7136346",
"0.7006233",
"0.6955079",
"0.69480866",
"0.69132084",
"0.6912665",
"0.68417877",
"0.68328685",
"0.6827033",
"0.67954254",
"0.6782504",
"0.6779839",
"0.67770994",
"0.67681074",
"0.6748279",
"0.67381173",
"0.6717754",
"0.6651... | 0.6929402 | 7 |
ONLY GETTERS FOR FIELDS THAT SHOULDN'T BE CHANGED | public long getNotification_id() {
return notification_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getField1025();",
"public Value restrictToGetter() {\n checkNotPolymorphicOrUnknown();\n if (getters == null)\n return theNone;\n Value r = new Value();\n r.getters = getters;\n return canonicalize(r);\n }",
"java.lang.String getField1821();",
... | [
"0.6585515",
"0.6484378",
"0.6458279",
"0.64292526",
"0.6425943",
"0.6414225",
"0.6411225",
"0.64058024",
"0.638828",
"0.6388231",
"0.63810533",
"0.63802004",
"0.63761944",
"0.6372455",
"0.6368205",
"0.6367944",
"0.6367409",
"0.6366079",
"0.6364837",
"0.6358458",
"0.6357492",... | 0.0 | -1 |
/ renamed from: a | public final boolean mo88313a() {
if (this.f90938h == null || this.f90934d.getVisibility() == 0) {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: c | public final C29296g mo88396c() {
if (this.f90933c == null) {
return C35563c.f93224F.mo70097l().mo74949b().mo74962a(0);
}
return this.f90933c;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
... | [
"0.64592767",
"0.644052",
"0.6431582",
"0.6418656",
"0.64118475",
"0.6397491",
"0.6250796",
"0.62470585",
"0.6244832",
"0.6232792",
"0.618864",
"0.61662376",
"0.6152657",
"0.61496663",
"0.6138441",
"0.6137171",
"0.6131197",
"0.6103783",
"0.60983956",
"0.6077118",
"0.6061723",... | 0.0 | -1 |
/ renamed from: b | public final void mo88395b() {
if (this.f90938h == null) {
this.f90938h = new C29242a(this.f90931a, this.f90937g).mo74873a((C39376h) new C39376h() {
/* renamed from: a */
public final void mo74759a(C29296g gVar) {
}
/* renamed from: a */
public final void mo74760a(C29296g gVar, int i) {
}
/* renamed from: d */
public final void mo74763d(C29296g gVar) {
}
/* renamed from: b */
public final void mo74761b(C29296g gVar) {
C34867a.this.f90934d.setVisibility(0);
if (!C39805en.m127445a()) {
C23487o.m77136a((Activity) C34867a.this.f90931a);
}
C6907h.m21519a((Context) C34867a.this.f90931a, "filter_confirm", "mid_page", "0", 0, C34867a.this.f90936f);
}
/* renamed from: c */
public final void mo74762c(C29296g gVar) {
String str;
C34867a.this.f90933c = gVar;
C34867a.this.f90932b.mo88467a(gVar.f77273h);
if (C34867a.this.f90935e != null) {
C34867a.this.f90935e.mo98958a(gVar);
}
EffectCategoryResponse b = C35563c.m114837d().mo74825b(C34867a.this.f90933c);
if (b == null) {
str = "";
} else {
str = b.name;
}
C6907h.m21524a("select_filter", (Map) C38511bc.m123103a().mo96485a("creation_id", C34867a.this.f90932b.mo88460a().creationId).mo96485a("shoot_way", C34867a.this.f90932b.mo88460a().mShootWay).mo96483a("draft_id", C34867a.this.f90932b.mo88460a().draftId).mo96485a("enter_method", "click").mo96485a("filter_name", C34867a.this.f90933c.f77268c).mo96483a("filter_id", C34867a.this.f90933c.f77266a).mo96485a("tab_name", str).mo96485a("content_source", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentSource()).mo96485a("content_type", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentType()).mo96485a("enter_from", "video_edit_page").f100112a);
}
}).mo74871a((C29240bc) new C39369c(C35563c.f93224F.mo70097l().mo74950c().mo74723f())).mo74874a(this.f90932b.mo88460a().getAvetParameter()).mo74876a();
if (this.f90933c != null) {
this.f90938h.mo74751a(this.f90933c);
}
}
this.f90938h.mo74749a();
this.f90934d.setVisibility(8);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"v... | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.588663... | 0.0 | -1 |
/ renamed from: a | public final void mo74759a(C29296g gVar) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | public final void mo74760a(C29296g gVar, int i) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: d | public final void mo74763d(C29296g gVar) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor... | [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222... | 0.0 | -1 |
/ renamed from: b | public final void mo74761b(C29296g gVar) {
C34867a.this.f90934d.setVisibility(0);
if (!C39805en.m127445a()) {
C23487o.m77136a((Activity) C34867a.this.f90931a);
}
C6907h.m21519a((Context) C34867a.this.f90931a, "filter_confirm", "mid_page", "0", 0, C34867a.this.f90936f);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"v... | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.588663... | 0.0 | -1 |
/ renamed from: c | public final void mo74762c(C29296g gVar) {
String str;
C34867a.this.f90933c = gVar;
C34867a.this.f90932b.mo88467a(gVar.f77273h);
if (C34867a.this.f90935e != null) {
C34867a.this.f90935e.mo98958a(gVar);
}
EffectCategoryResponse b = C35563c.m114837d().mo74825b(C34867a.this.f90933c);
if (b == null) {
str = "";
} else {
str = b.name;
}
C6907h.m21524a("select_filter", (Map) C38511bc.m123103a().mo96485a("creation_id", C34867a.this.f90932b.mo88460a().creationId).mo96485a("shoot_way", C34867a.this.f90932b.mo88460a().mShootWay).mo96483a("draft_id", C34867a.this.f90932b.mo88460a().draftId).mo96485a("enter_method", "click").mo96485a("filter_name", C34867a.this.f90933c.f77268c).mo96483a("filter_id", C34867a.this.f90933c.f77266a).mo96485a("tab_name", str).mo96485a("content_source", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentSource()).mo96485a("content_type", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentType()).mo96485a("enter_from", "video_edit_page").f100112a);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
... | [
"0.64592767",
"0.644052",
"0.6431582",
"0.6418656",
"0.64118475",
"0.6397491",
"0.6250796",
"0.62470585",
"0.6244832",
"0.6232792",
"0.618864",
"0.61662376",
"0.6152657",
"0.61496663",
"0.6138441",
"0.6137171",
"0.6131197",
"0.6103783",
"0.60983956",
"0.6077118",
"0.6061723",... | 0.0 | -1 |
/ renamed from: a | public final void mo88393a(C39677l lVar) {
this.f90935e = lVar;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | public final void mo88394a(JSONObject jSONObject) {
this.f90936f = jSONObject;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | public final void mo88392a(C29296g gVar) {
this.f90933c = gVar;
if (this.f90938h != null) {
this.f90938h.mo74751a(this.f90933c);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
Identifier for this type of defect. | String getDefectType() {
return "Hash Mismatch";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Schema(required = true, description = \"An identifier that is unique for the respective type within a VNF instance, but may not be globally unique. \")\n public String getId() {\n return id;\n }",
"@Override\n public String identifier() {\n return this.identifier;\n }",
"private String getDe... | [
"0.6885511",
"0.6727317",
"0.6721863",
"0.6720081",
"0.6680703",
"0.6663904",
"0.6660994",
"0.6660994",
"0.6654985",
"0.65871257",
"0.65524244",
"0.65523523",
"0.6548649",
"0.6534543",
"0.65203315",
"0.65199167",
"0.65199167",
"0.65199167",
"0.65199167",
"0.65199167",
"0.6519... | 0.0 | -1 |
main is where the program gets called first, in here it will make a new web server and run it | public static void main(String[] args) {
Webserver server = new Webserver();
server.run();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] argv)\n {\n int p = determinePort(argv, 10000);\n XmlRpc.setKeepAlive (true);\n SecureWebServer webserver = new SecureWebServer (p);\n\n try\n {\n webserver.addDefaultHandlers();\n webserver.start();\n }\n ca... | [
"0.76578265",
"0.75234145",
"0.7468387",
"0.7422404",
"0.73105896",
"0.72933036",
"0.72369397",
"0.72275025",
"0.72158957",
"0.71929806",
"0.71880215",
"0.71674204",
"0.7144758",
"0.7138669",
"0.7121004",
"0.7117881",
"0.71140575",
"0.7067236",
"0.70476097",
"0.70225596",
"0.... | 0.811573 | 0 |
Modifeis: this Effects: Adds a schedule to the schedule list | public void add(Schedulorinator schedule) {
if (!scheduleList.contains(schedule)) {
scheduleList.add(schedule);
schedule.addPerson(this);
addObserver(schedule);
notifyObservers(schedule);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void schedule(String id, String[] schedule) {\n\t}",
"@Override\n\tpublic void add(ScheduleTask st) {\n\t\tsave(st);\n\n\t}",
"Schedule createSchedule();",
"public void setSchedule(Schedule schedule) {\r\n\t\tthis.schedule = schedule;\r\n\t}",
"public void generateSchedule(){\n\t\t\n\t}",
"public ... | [
"0.68346196",
"0.67738837",
"0.67360646",
"0.6702387",
"0.6549676",
"0.65488714",
"0.6541564",
"0.6536093",
"0.6490678",
"0.6376692",
"0.6332077",
"0.62996167",
"0.624027",
"0.6223983",
"0.6205773",
"0.6119629",
"0.6059163",
"0.60538155",
"0.601553",
"0.59956735",
"0.59882617... | 0.74806845 | 0 |
Modifes: this Effects: removes a schedule from the schedule list | public void remove(Schedulorinator schedule) {
if (scheduleList.contains(schedule)) {
scheduleList.remove(schedule);
schedule.removePerson(this);
removeObserver(schedule);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n return;\n }\n\n showAllSchedules(scheduleList.getScheduleList());\n\n System.out.println(\"What is the number of the one you want to remove?\");\n ... | [
"0.7780315",
"0.74067974",
"0.7014093",
"0.66348994",
"0.6272219",
"0.6268097",
"0.6208742",
"0.61438364",
"0.6134655",
"0.59378546",
"0.59243244",
"0.59065056",
"0.5886717",
"0.5837068",
"0.5828124",
"0.5804141",
"0.5794684",
"0.5794078",
"0.57678294",
"0.5748583",
"0.568759... | 0.7444784 | 1 |
Execute search using the provided filters and redirect to result list | public String search() {
return "manage";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().... | [
"0.6723026",
"0.6669031",
"0.6457694",
"0.63393444",
"0.6246925",
"0.6189091",
"0.6144982",
"0.6114582",
"0.6051666",
"0.6029116",
"0.6010433",
"0.6006125",
"0.6003152",
"0.5980259",
"0.5919608",
"0.58865446",
"0.58674955",
"0.58404183",
"0.5837581",
"0.5824406",
"0.57910556"... | 0.0 | -1 |
Noop action listener for refreshing the row count after loading the datatable | public String updateRowCount() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void RefresbuttonActionPerformed(ActionEvent e) {\n defaultTableModel.setRowCount(0);\n setData(userService.getAllUsers());\n }",
"public void loadingTable() {\n this.setRowCount(1, true);\r\n this.setVisibleRangeAndClearData(this.getVisibleRange(), true);\r\n }",
"syn... | [
"0.6705718",
"0.6663701",
"0.6496689",
"0.6484052",
"0.6379214",
"0.6312319",
"0.62384653",
"0.6197008",
"0.6143657",
"0.6116967",
"0.607728",
"0.6051389",
"0.5998196",
"0.5966066",
"0.5959278",
"0.5951353",
"0.5949906",
"0.5914085",
"0.5910721",
"0.5890909",
"0.58888173",
... | 0.62549907 | 6 |
Jumps to edit Form of User | public String edit() {
return "edit";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void edit(User user) {\n }",
"public void editUser(User user) {\n\t\t\n\t}",
"public String edit() {\r\n\t\tuserEdit = (User) users.getRowData();\r\n\t\treturn \"edit\";\r\n\t}",
"UserEditForm getEditForm(User user);",
"void gotoEditProfile();",
"public void editProfile() {\n\n\t... | [
"0.768036",
"0.76503664",
"0.7285307",
"0.7264958",
"0.7183158",
"0.7160888",
"0.71312666",
"0.7112695",
"0.7018265",
"0.7007902",
"0.69020116",
"0.68900967",
"0.68598175",
"0.68591803",
"0.68417925",
"0.6814531",
"0.67915946",
"0.6762981",
"0.6740516",
"0.6729745",
"0.671637... | 0.5929876 | 82 |
TODO Autogenerated method stub | @Override
public void dispose() {
} | {
"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 resume() {
} | {
"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 |
Set Partner Relation. Business Partner Relation | public void setC_BP_Relation_ID(int C_BP_Relation_ID) {
if (C_BP_Relation_ID < 1)
throw new IllegalArgumentException("C_BP_Relation_ID is mandatory.");
set_ValueNoCheck("C_BP_Relation_ID", new Integer(C_BP_Relation_ID));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRelationship(Relationship r) {\n\t\trelationship = r;\n\t}",
"public void setRelation(Relation<L, Tr, T> r) {\n this.relation = r;\n }",
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public void setPartner(String partner) {\n this.partner... | [
"0.59965795",
"0.59794307",
"0.5977698",
"0.5977698",
"0.57712716",
"0.5691915",
"0.56808746",
"0.5676982",
"0.56048",
"0.56008935",
"0.55990034",
"0.5578957",
"0.5577595",
"0.5562125",
"0.55545896",
"0.5551928",
"0.55309016",
"0.55274576",
"0.55274576",
"0.5428701",
"0.54258... | 0.0 | -1 |
Get Partner Relation. Business Partner Relation | public int getC_BP_Relation_ID() {
Integer ii = (Integer) get_Value("C_BP_Relation_ID");
if (ii == null)
return 0;
return ii.intValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getRefPartnerSideA();",
"String getRefPartnerSideB();",
"public abstract RelationDeclaration getRelation();",
"public final native String getRelationship() /*-{\n return this.getRelationship();\n }-*/;",
"public A getPartner(){\n return partner;\n }",
"public Edge partner(){\... | [
"0.6486795",
"0.6484751",
"0.63659996",
"0.62817055",
"0.6268211",
"0.62092197",
"0.61804754",
"0.6158849",
"0.6095285",
"0.6095285",
"0.60535884",
"0.60135645",
"0.60115665",
"0.596497",
"0.593603",
"0.5934104",
"0.59304434",
"0.5917785",
"0.58953714",
"0.5857935",
"0.585455... | 0.0 | -1 |
Set Related Partner. Related Business Partner | public void setC_BPartnerRelation_ID(int C_BPartnerRelation_ID) {
if (C_BPartnerRelation_ID < 1)
throw new IllegalArgumentException(
"C_BPartnerRelation_ID is mandatory.");
set_Value("C_BPartnerRelation_ID", new Integer(C_BPartnerRelation_ID));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"@IcalProperty(pindex = PropertyInfoIndex.RELATED_TO,\n jname = \"relatedTo\",\n nested = true,\n e... | [
"0.6547224",
"0.6547224",
"0.63846475",
"0.61902064",
"0.6062849",
"0.60577774",
"0.59716564",
"0.5871792",
"0.5869052",
"0.5836925",
"0.58176935",
"0.5766031",
"0.5766031",
"0.5687918",
"0.5648356",
"0.56214666",
"0.5614324",
"0.5606042",
"0.56043386",
"0.5601651",
"0.558977... | 0.0 | -1 |
Get Related Partner. Related Business Partner | public int getC_BPartnerRelation_ID() {
Integer ii = (Integer) get_Value("C_BPartnerRelation_ID");
if (ii == null)
return 0;
return ii.intValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public A getPartner(){\n return partner;\n }",
"public String getPartner() {\n return partner;\n }",
"public String getPartner() {\n return partner;\n }",
"public Edge partner(){\n\t\treturn partner;\n\t}",
"String getRefPartnerSideB();",
"AdPartner getAdPartnerById(... | [
"0.682763",
"0.6645826",
"0.6645826",
"0.6348474",
"0.626946",
"0.62122625",
"0.61959434",
"0.61897206",
"0.6180572",
"0.610499",
"0.604871",
"0.5964183",
"0.58053106",
"0.57273567",
"0.5702882",
"0.5697462",
"0.56885",
"0.56492054",
"0.56319046",
"0.55987495",
"0.5581816",
... | 0.51813966 | 65 |
Set Related Partner Location. Location of the related Business Partner | public void setC_BPartnerRelation_Location_ID(
int C_BPartnerRelation_Location_ID) {
if (C_BPartnerRelation_Location_ID < 1)
throw new IllegalArgumentException(
"C_BPartnerRelation_Location_ID is mandatory.");
set_Value("C_BPartnerRelation_Location_ID", new Integer(
C_BPartnerRelation_Location_ID));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public void setPartnerId(long partnerId) {\n this.partnerId = partnerId;\n }",
"public void setLocation(entity.PolicyLocation value... | [
"0.59744406",
"0.59744406",
"0.55942154",
"0.55436367",
"0.5450088",
"0.54257584",
"0.5407075",
"0.54054666",
"0.5402294",
"0.53976053",
"0.5366242",
"0.5352864",
"0.5326444",
"0.5311292",
"0.5311292",
"0.5309642",
"0.5302824",
"0.5292414",
"0.527798",
"0.52647364",
"0.524431... | 0.48311242 | 86 |
Get Related Partner Location. Location of the related Business Partner | public int getC_BPartnerRelation_Location_ID() {
Integer ii = (Integer) get_Value("C_BPartnerRelation_Location_ID");
if (ii == null)
return 0;
return ii.intValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<UtLocationDTO> findLocationByPartnerId(Long partnerId);",
"String getDepartureLocation();",
"public String getPartner() {\n return partner;\n }",
"public String getPartner() {\n return partner;\n }",
"BodyPart getGearLocation();",
"public RTWLocation parent();",
"public ... | [
"0.62841874",
"0.60695475",
"0.5874115",
"0.5874115",
"0.58194727",
"0.5758642",
"0.5739023",
"0.5736702",
"0.5712811",
"0.56828225",
"0.568003",
"0.5651568",
"0.56284285",
"0.55851805",
"0.5556321",
"0.5547239",
"0.55221945",
"0.5516364",
"0.55110836",
"0.5480038",
"0.547836... | 0.5856054 | 4 |
Set Business Partner . Identifies a Business Partner | public void setC_BPartner_ID(int C_BPartner_ID) {
if (C_BPartner_ID < 1)
throw new IllegalArgumentException("C_BPartner_ID is mandatory.");
set_Value("C_BPartner_ID", new Integer(C_BPartner_ID));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public void setPartner(String partner) {\n this.partner = partner;\n }",
"public void setC_BPartner_ID (int C_BPartner_ID);",
"public void setPartner(String value) {\r\n setAttributeInternal(PARTNER, value);\... | [
"0.6532571",
"0.6532571",
"0.64331484",
"0.631127",
"0.62059313",
"0.6014226",
"0.5922765",
"0.5922765",
"0.5829224",
"0.57932436",
"0.5741584",
"0.5669744",
"0.562118",
"0.5525774",
"0.5508337",
"0.54901844",
"0.54577327",
"0.5454593",
"0.5427725",
"0.53737545",
"0.53699666"... | 0.5233477 | 31 |
Get Business Partner . Identifies a Business Partner | public int getC_BPartner_ID() {
Integer ii = (Integer) get_Value("C_BPartner_ID");
if (ii == null)
return 0;
return ii.intValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPartner() {\n return partner;\n }",
"public String getPartner() {\n return partner;\n }",
"AdPartner getAdPartnerByName(String partnerName);",
"public A getPartner(){\n return partner;\n }",
"String getRefPartnerSideB();",
"ExternalInterface getPartn... | [
"0.66445",
"0.66445",
"0.6524515",
"0.6460596",
"0.64288735",
"0.64257073",
"0.64072704",
"0.62592274",
"0.62434995",
"0.62433004",
"0.62408257",
"0.6162874",
"0.6109555",
"0.610348",
"0.59710675",
"0.59448916",
"0.5927563",
"0.5810294",
"0.5803671",
"0.5787125",
"0.5779249",... | 0.56898123 | 24 |
Set Partner Location. Identifies the (ship to) address for this Business Partner | public void setC_BPartner_Location_ID(int C_BPartner_Location_ID) {
if (C_BPartner_Location_ID <= 0)
set_Value("C_BPartner_Location_ID", null);
else
set_Value("C_BPartner_Location_ID", new Integer(
C_BPartner_Location_ID));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLocationAddress(final BwString val) {\n locationAddress = val;\n }",
"Restaurant setRestaurantAddress(Address address);",
"public void setShippingAddressInCart(Address addr);",
"public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\... | [
"0.65371394",
"0.61728215",
"0.6161864",
"0.60906637",
"0.59625024",
"0.5901761",
"0.58796704",
"0.58796704",
"0.58769256",
"0.5841124",
"0.58217865",
"0.5805036",
"0.5686024",
"0.56791586",
"0.56791586",
"0.56791586",
"0.56791586",
"0.5668477",
"0.56497896",
"0.56255084",
"0... | 0.0 | -1 |
Get Partner Location. Identifies the (ship to) address for this Business Partner | public int getC_BPartner_Location_ID() {
Integer ii = (Integer) get_Value("C_BPartner_Location_ID");
if (ii == null)
return 0;
return ii.intValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAddress() {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\treturn address;\t\t\r\n\t}",
"public String getLocationAddress() {\n return locationAddress;\n }",
"public void getAddress() {\n if (mLocation != null) {\n mBusinessAddress =... | [
"0.6509474",
"0.6466664",
"0.6272165",
"0.62388223",
"0.62388223",
"0.61649495",
"0.61649495",
"0.61649495",
"0.61649495",
"0.61649495",
"0.61649495",
"0.61611587",
"0.61559194",
"0.6114583",
"0.60637915",
"0.60566497",
"0.60565096",
"0.6035798",
"0.6015676",
"0.60048807",
"0... | 0.5862926 | 90 |
Set Description. Optional short description of the record | public void setDescription(String Description) {
if (Description != null && Description.length() > 255) {
log.warning("Length > 255 - truncated");
Description = Description.substring(0, 254);
}
set_Value("Description", Description);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDescription(String Description) {\n this.Description = Description;\n }",
"public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }",
"public void setDescription(String value) {\r\n this.desc... | [
"0.80319154",
"0.8010261",
"0.79403925",
"0.79110956",
"0.78749657",
"0.7857123",
"0.7857123",
"0.7857123",
"0.7857123",
"0.7857123",
"0.7857123",
"0.7751944",
"0.7718661",
"0.7701644",
"0.7668725",
"0.7665031",
"0.7665031",
"0.7659813",
"0.76570463",
"0.7647776",
"0.7637483"... | 0.7539256 | 63 |
Get Description. Optional short description of the record | public String getDescription() {
return (String) get_Value("Description");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getDesc();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"ja... | [
"0.797509",
"0.7734628",
"0.7734628",
"0.7734628",
"0.7734628",
"0.7734628",
"0.7734628",
"0.7734628",
"0.7734628",
"0.7734628",
"0.766412",
"0.7653188",
"0.76269037",
"0.7618238",
"0.7592694",
"0.75597954",
"0.75471056",
"0.7529648",
"0.7508646",
"0.75014675",
"0.7471624",
... | 0.7317292 | 88 |
Set Invoice Address. Business Partner Invoice/Bill Address | public void setIsBillTo(boolean IsBillTo) {
set_Value("IsBillTo", new Boolean(IsBillTo));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBillingAddressInCart(Address addr);",
"public void setShippingAddressInCart(Address addr);",
"public abstract void setCustomerAddress(Address address);",
"public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body ... | [
"0.7377578",
"0.67381114",
"0.65422225",
"0.63659513",
"0.63148105",
"0.629456",
"0.62893355",
"0.627921",
"0.6205816",
"0.6170723",
"0.6170723",
"0.6170723",
"0.6136761",
"0.60531104",
"0.60421383",
"0.60337555",
"0.6018492",
"0.60061413",
"0.5993564",
"0.5990433",
"0.598286... | 0.0 | -1 |
Get Invoice Address. Business Partner Invoice/Bill Address | public boolean isBillTo() {
Object oo = get_Value("IsBillTo");
if (oo != null) {
if (oo instanceof Boolean)
return ((Boolean) oo).booleanValue();
return "Y".equals(oo);
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Buyer.Address aPaylineAddress() {\n return Buyer.Address.AddressBuilder.anAddress()\n .withCity(\"Aix-en-Provence\")\n .withCountry(\"FR\")\n .withEmail(\"john.doe@mythalesgroup.io\")\n .withFullName(new Buyer.FullName(\"Thales\", \"S... | [
"0.6881824",
"0.6812775",
"0.67457205",
"0.66558087",
"0.6653316",
"0.6653316",
"0.65284353",
"0.64847594",
"0.64753103",
"0.6461479",
"0.6440382",
"0.639993",
"0.6398353",
"0.6398353",
"0.6398353",
"0.6398353",
"0.6398353",
"0.6398353",
"0.63974607",
"0.6375271",
"0.63453615... | 0.0 | -1 |
Set PayFrom Address. Business Partner pays from that address and we'll send dunning letters there | public void setIsPayFrom(boolean IsPayFrom) {
set_Value("IsPayFrom", new Boolean(IsPayFrom));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBillingAddressInCart(Address addr);",
"public void setFromAddress(String fromAddress)\n {\n _fromAddress = fromAddress;\n }",
"public void setFromAddress(java.lang.String fromAddress) {\n\t\tthis.fromAddress = fromAddress;\n\t}",
"public void setFromAddress(java.lang.String fromAd... | [
"0.6940878",
"0.69192654",
"0.64835757",
"0.64589775",
"0.63348573",
"0.6203788",
"0.6148356",
"0.61168766",
"0.6093851",
"0.5973224",
"0.5973224",
"0.5973224",
"0.5951109",
"0.58527935",
"0.58491755",
"0.5843712",
"0.5843712",
"0.5843712",
"0.5843712",
"0.58373207",
"0.58354... | 0.58889914 | 13 |
Get PayFrom Address. Business Partner pays from that address and we'll send dunning letters there | public boolean isPayFrom() {
Object oo = get_Value("IsPayFrom");
if (oo != null) {
if (oo instanceof Boolean)
return ((Boolean) oo).booleanValue();
return "Y".equals(oo);
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"public String getFromAddress()\n {\n return _fromAddress;\n }",
"public String getBi... | [
"0.62987995",
"0.62987995",
"0.62987995",
"0.62987995",
"0.62987995",
"0.62987995",
"0.627715",
"0.6238721",
"0.6186106",
"0.61317307",
"0.60590667",
"0.6027168",
"0.6027168",
"0.6000596",
"0.59930336",
"0.58957297",
"0.58230734",
"0.58230734",
"0.5807004",
"0.577312",
"0.577... | 0.0 | -1 |
Set RemitTo Address. Business Partner payment address | public void setIsRemitTo(boolean IsRemitTo) {
set_Value("IsRemitTo", new Boolean(IsRemitTo));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBillingAddressInCart(Address addr);",
"Restaurant setRestaurantAddress(Address address);",
"public void setTo(Address to) {\n setAddressList(FieldName.TO, to);\n }",
"public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n //... | [
"0.66551536",
"0.6490795",
"0.6263724",
"0.6170172",
"0.6052321",
"0.5980949",
"0.596885",
"0.5922594",
"0.58916074",
"0.58243334",
"0.58243334",
"0.58243334",
"0.58243334",
"0.58068305",
"0.58068305",
"0.58068305",
"0.5754003",
"0.57521516",
"0.5749713",
"0.5741398",
"0.5731... | 0.0 | -1 |
Get RemitTo Address. Business Partner payment address | public boolean isRemitTo() {
Object oo = get_Value("IsRemitTo");
if (oo != null) {
if (oo instanceof Boolean)
return ((Boolean) oo).booleanValue();
return "Y".equals(oo);
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAddress() {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\treturn address;\t\t\r\n\t}",
"public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }",
"public String getAddress()\r\n {\r\n return address.getFullAddress();\... | [
"0.7097163",
"0.6727174",
"0.6727174",
"0.6684091",
"0.6646795",
"0.6646795",
"0.6646795",
"0.6646795",
"0.6646795",
"0.6646795",
"0.6589426",
"0.658245",
"0.65287703",
"0.6502042",
"0.65014815",
"0.6484996",
"0.6477542",
"0.6441617",
"0.64020985",
"0.63991153",
"0.63769746",... | 0.0 | -1 |
Set Ship Address. Business Partner Shipment Address | public void setIsShipTo(boolean IsShipTo) {
set_ValueNoCheck("IsShipTo", new Boolean(IsShipTo));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setShippingAddressInCart(Address addr);",
"public void setBillingAddressInCart(Address addr);",
"public void setShip_address(Integer ship_address) {\n this.ship_address = ship_address;\n }",
"public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporat... | [
"0.7780367",
"0.72316986",
"0.7017581",
"0.69839",
"0.6950449",
"0.68248934",
"0.6653896",
"0.6577724",
"0.65285236",
"0.65153074",
"0.6490797",
"0.6475433",
"0.64599454",
"0.64599454",
"0.64599454",
"0.64599454",
"0.6447929",
"0.64319116",
"0.64081514",
"0.6358807",
"0.63541... | 0.0 | -1 |
Get Ship Address. Business Partner Shipment Address | public boolean isShipTo() {
Object oo = get_Value("IsShipTo");
if (oo != null) {
if (oo instanceof Boolean)
return ((Boolean) oo).booleanValue();
return "Y".equals(oo);
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getShipAgencyAddress() {\n\t\treturn _tempNoTiceShipMessage.getShipAgencyAddress();\n\t}",
"java.lang.String getHotelAddress();",
"public Integer getShip_address() {\n return ship_address;\n }",
"java.lang.String getAddress();",
"java.lang.String getAddress();",
"java.la... | [
"0.7376665",
"0.7220323",
"0.71660346",
"0.7125858",
"0.7125858",
"0.7125858",
"0.7125858",
"0.7125858",
"0.7125858",
"0.7117636",
"0.7031299",
"0.70069844",
"0.6992552",
"0.6992552",
"0.6924773",
"0.6924773",
"0.6903285",
"0.684527",
"0.68378985",
"0.67582154",
"0.67320204",... | 0.0 | -1 |
Set Name. Alphanumeric identifier of the entity | public void setName(String Name) {
if (Name == null)
throw new IllegalArgumentException("Name is mandatory.");
if (Name.length() > 60) {
log.warning("Length > 60 - truncated");
Name = Name.substring(0, 59);
}
set_Value("Name", Name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName (String n){\n\t\tname = n;\n\t}",
"public void setName(String n) {\n this.name = n;\n }",
"public void setName (String n) {\n name = n;\n }",
"public void setName(String n) {\r\n name = n;\r\n }",
"public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}",
"publi... | [
"0.7750973",
"0.773203",
"0.77281886",
"0.7710237",
"0.7649626",
"0.7575702",
"0.7573097",
"0.74057126",
"0.7384622",
"0.73188436",
"0.73188436",
"0.73188436",
"0.73188436",
"0.7318233",
"0.7314641",
"0.7314641",
"0.7314641",
"0.72992253",
"0.7267374",
"0.7267374",
"0.7267374... | 0.0 | -1 |
Get Name. Alphanumeric identifier of the entity | public String getName() {
return (String) get_Value("Name");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@NotNull\n public String getName() {\n if (myName == null) {\n myName = myId;\n int index = myName.lastIndexOf('/');\n if (index != -1) {\n myName = myName.substring(index + 1);\n }\n }\n\n return myName;\n }",
"String getEntityName();",
"public Identifier getName();",
"... | [
"0.79182285",
"0.7866773",
"0.77622133",
"0.7543361",
"0.75065637",
"0.7437386",
"0.7437386",
"0.7437386",
"0.7437386",
"0.7437386",
"0.7437386",
"0.7437386",
"0.7437386",
"0.7437386",
"0.7437386",
"0.7437386",
"0.7437386",
"0.7437386",
"0.7437386",
"0.7437386",
"0.7437386",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getCount() {
return array.size();
} | {
"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 Object getItem(int position) {
return array.get(position);
} | {
"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 long getItemId(int position) {
return position;
} | {
"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 View getView(int position, View convertView, ViewGroup parent) {
ViewHolder vh;
if(convertView==null){
vh=new ViewHolder();
convertView=View.inflate(context, R.layout.adapter_comment, null);
vh.name=(TextView) convertView.findViewById(R.id.textView1);
vh.date=(TextView) convertView.findViewById(R.id.textView2);
vh.comment=(TextView) convertView.findViewById(R.id.textView3);
convertView.setTag(vh);
}
else{
vh=(ViewHolder) convertView.getTag();
}
vh.name.setText(array.get(position).getName());
vh.date.setText(array.get(position).getPublicshed());
vh.comment.setText(array.get(position).getContent());
return convertView;
} | {
"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 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() {
oknoListyNauczycieliPanel = new javax.swing.JPanel();
listaNauczycieliLabel = new javax.swing.JLabel();
wyjdzOknoListyNauczycieliButton = new javax.swing.JButton();
listaNauczycieliScrollPane = new javax.swing.JScrollPane();
listaNauczycieliTable = new javax.swing.JTable();
opcjePanel = new javax.swing.JPanel();
dodajNauczycielaButton = new javax.swing.JButton();
usunNauczycielaButton = new javax.swing.JButton();
edytujNauczycielaButton = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Lista nauczycieli");
setLocation(new java.awt.Point(550, 200));
setResizable(false);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
formWindowClosing(evt);
}
});
listaNauczycieliLabel.setFont(new java.awt.Font("PT Serif", 1, 24)); // NOI18N
listaNauczycieliLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
listaNauczycieliLabel.setText("LISTA NAUCZYCIELI");
wyjdzOknoListyNauczycieliButton.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
wyjdzOknoListyNauczycieliButton.setText("WYJDŹ");
wyjdzOknoListyNauczycieliButton.setMaximumSize(new java.awt.Dimension(100, 30));
wyjdzOknoListyNauczycieliButton.setPreferredSize(new java.awt.Dimension(100, 30));
wyjdzOknoListyNauczycieliButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
wyjdzOknoListyNauczycieliButtonActionPerformed(evt);
}
});
listaNauczycieliTable.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
listaNauczycieliTable.addMouseListener(new java.awt.event.MouseAdapter() {
public void mousePressed(java.awt.event.MouseEvent evt) {
listaNauczycieliTableMousePressed(evt);
}
});
listaNauczycieliScrollPane.setViewportView(listaNauczycieliTable);
dodajNauczycielaButton.setText("Dodaj");
dodajNauczycielaButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
dodajNauczycielaButtonActionPerformed(evt);
}
});
usunNauczycielaButton.setText("Usuń");
usunNauczycielaButton.setEnabled(false);
usunNauczycielaButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
usunNauczycielaButtonActionPerformed(evt);
}
});
edytujNauczycielaButton.setText("Edytuj");
edytujNauczycielaButton.setEnabled(false);
edytujNauczycielaButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
edytujNauczycielaButtonActionPerformed(evt);
}
});
javax.swing.GroupLayout opcjePanelLayout = new javax.swing.GroupLayout(opcjePanel);
opcjePanel.setLayout(opcjePanelLayout);
opcjePanelLayout.setHorizontalGroup(
opcjePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(dodajNauczycielaButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(usunNauczycielaButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(edytujNauczycielaButton, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
);
opcjePanelLayout.setVerticalGroup(
opcjePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(opcjePanelLayout.createSequentialGroup()
.addGap(27, 27, 27)
.addComponent(dodajNauczycielaButton)
.addGap(18, 18, 18)
.addComponent(usunNauczycielaButton)
.addGap(53, 53, 53)
.addComponent(edytujNauczycielaButton)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
javax.swing.GroupLayout oknoListyNauczycieliPanelLayout = new javax.swing.GroupLayout(oknoListyNauczycieliPanel);
oknoListyNauczycieliPanel.setLayout(oknoListyNauczycieliPanelLayout);
oknoListyNauczycieliPanelLayout.setHorizontalGroup(
oknoListyNauczycieliPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup()
.addGroup(oknoListyNauczycieliPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup()
.addGap(250, 250, 250)
.addComponent(listaNauczycieliLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup()
.addGap(400, 400, 400)
.addComponent(wyjdzOknoListyNauczycieliButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup()
.addGap(60, 60, 60)
.addComponent(listaNauczycieliScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 680, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(30, 30, 30)
.addComponent(opcjePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(30, Short.MAX_VALUE))
);
oknoListyNauczycieliPanelLayout.setVerticalGroup(
oknoListyNauczycieliPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(oknoListyNauczycieliPanelLayout.createSequentialGroup()
.addGap(50, 50, 50)
.addComponent(listaNauczycieliLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(67, 67, 67)
.addGroup(oknoListyNauczycieliPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(opcjePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(listaNauczycieliScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE))
.addGap(18, 18, 18)
.addComponent(wyjdzOknoListyNauczycieliButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(25, 25, 25))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(oknoListyNauczycieliPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(oknoListyNauczycieliPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
pack();
} | {
"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.73197734",
"0.72908777",
"0.72908777",
"0.72908777",
"0.72870827",
"0.7248368",
"0.7213462",
"0.7208004",
"0.7195763",
"0.7189973",
"0.7184436",
"0.7159332",
"0.71478266",
"0.709268",
"0.7080727",
"0.7057287",
"0.6986775",
"0.6977119",
"0.69554067",
"0.69548035",
"0.694574... | 0.0 | -1 |
Instantiates a new mailing variable. | public MailingVariable(String variableToBeMailed) {
super();
variableName = variableToBeMailed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MailMessage() {\n }",
"public MailFactory(MailAddress address) {\n this.address = address;\n }",
"Variable createVariable();",
"Variable createVariable();",
"public Email(){}",
"public MailSender() {\r\n }",
"public Variable(){\n name = \"\";\n initialValue = 0;\n ... | [
"0.59669745",
"0.58568794",
"0.5644042",
"0.5644042",
"0.5629073",
"0.56040895",
"0.55445486",
"0.55319786",
"0.55275565",
"0.5472442",
"0.5432139",
"0.5411169",
"0.54098195",
"0.53984547",
"0.5375465",
"0.5370449",
"0.5344709",
"0.5310477",
"0.5250729",
"0.52298343",
"0.5215... | 0.7516739 | 0 |
Send a single email. | public void sendEmail(String aFromEmailAddr, String aToEmailAddr, String aSubject, String aBody) {
// Here, no Authenticator argument is used (it is null).
// Authenticators are used to prompt the user for user
// name and password.
Session session = Session.getDefaultInstance(getMailServerConfig(), null);
MimeMessage message = new MimeMessage(session);
try {
// the "from" address may be set in code, or set in the
// config file under "mail.from" ; here, the latter style is used
message.setFrom(new InternetAddress(aFromEmailAddr));
message.addRecipient(Message.RecipientType.TO, new InternetAddress(aToEmailAddr));
message.setSubject(aSubject);
message.setText(aBody);
Transport.send(message);
} catch (MessagingException ex) {
System.err.println("Cannot send email. " + ex);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void send(String emailName);",
"void send(Email email);",
"public void send(Email email) {\n\t\t\n\t\tSimpleMailMessage message = new SimpleMailMessage(); \n\t message.setTo(email.getTo()); \n\t message.setSubject(email.getSubject()); \n\t message.setText(email.getBody());\n\t \n\t System.out.pr... | [
"0.73924524",
"0.73766965",
"0.73275954",
"0.7159675",
"0.7126606",
"0.68572116",
"0.68205965",
"0.6817067",
"0.67431146",
"0.6732951",
"0.6712318",
"0.66998875",
"0.66960204",
"0.6672503",
"0.6658081",
"0.6649614",
"0.66451466",
"0.66397935",
"0.65997875",
"0.6571635",
"0.65... | 0.0 | -1 |
Gets the mail server config. | private static Properties getMailServerConfig() {
Properties properties = new Properties();
properties.put("mail.smtp.host", host);
properties.put("mail.smtp.port", "2525");
return properties;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMailServer() {\r\n\t\treturn mailServer;\r\n\t}",
"public String getMailServer()\n {\n return _mailServer;\n }",
"public LocalServerConfig getConfig() {\n return serverConfig;\n }",
"public SMTPConfig getSmtpConfig() {\n\t\treturn smtpConfig;\n\t}",
"public static UR... | [
"0.7392148",
"0.73709863",
"0.713185",
"0.703186",
"0.68381613",
"0.67534417",
"0.65795904",
"0.6573908",
"0.6480985",
"0.6461115",
"0.6451403",
"0.63728565",
"0.6343951",
"0.62311953",
"0.6156865",
"0.6120434",
"0.6111716",
"0.6098981",
"0.60859156",
"0.6080789",
"0.6044768"... | 0.7711041 | 0 |
This is an interface which is going to expose all common Dao services. It is going to behave as a bridge between the Dao and the client code. | public interface IACORecordDao extends IDao
{
/**
*
* @return a <code>ACORecordDataModel</code>
*/
public ACORecordDataModel getACORecord();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface DaoInterface {}",
"public interface CommonDao<ENTITY extends SelServicesEntity> {\n\t\n\tpublic void create(ENTITY entity);\n\t\n\tpublic ENTITY get(long id);\n\t\n\tpublic void update(ENTITY entity);\n\t\n\tpublic void delete(long id);\n\t\n\tpublic NotificationFactory getNotificationFactory();... | [
"0.75515187",
"0.73631465",
"0.72277397",
"0.7218146",
"0.7115931",
"0.703163",
"0.6993091",
"0.69739145",
"0.69679254",
"0.69490635",
"0.6939221",
"0.6923127",
"0.6915962",
"0.6914727",
"0.690961",
"0.69013363",
"0.6889098",
"0.6883503",
"0.6866979",
"0.68630445",
"0.6861868... | 0.0 | -1 |
No args constructor for use in serialization | public Continue() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"MyEncodeableWithoutPublicNoArgConstructor() {}",
"public ObjectSerializationEncoder() {\n // Do nothing\n }",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"defaultConstructor(){}",
"public Data() {}",
"private SerializerFactory() {\n ... | [
"0.74630904",
"0.7387007",
"0.7210724",
"0.7029566",
"0.7018587",
"0.6977819",
"0.69339114",
"0.6881743",
"0.6739828",
"0.6727297",
"0.6717886",
"0.67169136",
"0.669586",
"0.669586",
"0.66750634",
"0.66246814",
"0.6604095",
"0.6532946",
"0.65235436",
"0.6500072",
"0.6466648",... | 0.0 | -1 |
Format the minutes with padded zeros so we don't get stuff like "6:2" instead of 6:02 | public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
String newValue = String.format("%d:%02d", hourOfDay, minute);
mPrefs.edit().putString(mPreference.getKey(), newValue).apply();
mPreference.setSummary(DateFormatter.getSummaryTimestamp(getActivity(), newValue));
mListener.onPreferenceChange(mPreference, newValue);
SettingsFragment.updateAlarmManager(getActivity(), true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMinutesStr(){\n \n // return zero\n if (this.getMinutes()==0){\n return \"00\";\n }\n // pad single digit with zero\n else if (this.getMinutes() < 10){\n return '0' + Integer.toString(this.getMinutes()); \n }\n // retu... | [
"0.7651065",
"0.7406531",
"0.7313794",
"0.7313038",
"0.6969644",
"0.6946333",
"0.69264036",
"0.68967",
"0.6810315",
"0.6793472",
"0.66933084",
"0.6648493",
"0.6621237",
"0.66078496",
"0.6602504",
"0.65944517",
"0.6578089",
"0.6572491",
"0.6561738",
"0.6558906",
"0.6556436",
... | 0.0 | -1 |
Creates new form Schedule | public StudSchedule(java.awt.Frame parent, boolean modal, MainFrame mframe, Student s, RoomListing r) {
super(parent, modal);
this.mframe = mframe;
this.s = s;
this.r = r;
this.setTitle(title);
//Redirect system.out to ps
baos = new ByteArrayOutputStream();
ps = new PrintStream(baos);
System.setOut(ps);
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Schedule createSchedule();",
"@Test\n public void createFormSceduleEntry(){\n ScheduleEntry entry = new ScheduleEntry(\"9;00AM\", new SystemCalendar(2018,4,25));\n }",
"public ScheduleForm() {\n initComponents();\n }",
"public Schedule() {\r\n }",
"public Schedule() {\n\t\t// TODO... | [
"0.7427701",
"0.6959083",
"0.6841062",
"0.678886",
"0.66359264",
"0.65345454",
"0.6376306",
"0.6344374",
"0.63068736",
"0.63035655",
"0.62473565",
"0.62399423",
"0.61435544",
"0.60786796",
"0.5974093",
"0.5948529",
"0.59341055",
"0.5901365",
"0.5858756",
"0.58275706",
"0.5819... | 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() {
jPanel1 = new javax.swing.JPanel();
jLabel5 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jScrollPane5 = new javax.swing.JScrollPane();
jTable4 = new javax.swing.JTable();
rmv_course_but = new javax.swing.JButton();
jButton1 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setFocusTraversalPolicyProvider(true);
addFocusListener(new java.awt.event.FocusAdapter() {
public void focusLost(java.awt.event.FocusEvent evt) {
formFocusLost(evt);
}
});
jLabel1.setText("Student ID :");
jLabel2.setText("Name : ");
jLabel3.setText("Phone No. :");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addGap(26, 26, 26))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jLabel5.setText(s.getFirstName() + " " + s.getLastName());
jLabel4.setText(String.valueOf(s.getStudId()));
jLabel6.setText(s.getPhoneNum());
this.course_table = new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null,null},
},
new String [] {
"Name", "Start Time", "End Time", "Room", "# Enrolled"
}){
@Override
public boolean isCellEditable(int row, int column)
{
return false;
}
};
jTable4.setModel(course_table);
jTable4.setShowGrid(true);
jTable4.setAutoCreateRowSorter(true);
course_table.setRowCount(7);
refresh_course_table();
jTable4.getTableHeader().setReorderingAllowed(false);
jScrollPane5.setViewportView(jTable4);
rmv_course_but.setText("Unschedule a course");
rmv_course_but.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
rmv_course_butActionPerformed(evt);
}
});
jButton1.setText("Back");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane5)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jButton1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(rmv_course_but)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(rmv_course_but)
.addComponent(jButton1))
.addContainerGap())
);
pack();
} | {
"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.73197734",
"0.72908777",
"0.72908777",
"0.72908777",
"0.72870827",
"0.7248368",
"0.7213462",
"0.7208004",
"0.7195763",
"0.7189973",
"0.7184436",
"0.7159332",
"0.71478266",
"0.709268",
"0.7080727",
"0.7057287",
"0.6986775",
"0.6977119",
"0.69554067",
"0.69548035",
"0.694574... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View inflate = inflater.inflate(R.layout.fragment_lei, container, false);
initView(inflate);
initData();
return inflate;
} | {
"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.6524048 | 51 |
Creates a new bag, based on the players strategy. | @Override
public Bag createBag(final ArrayList<Goods> cards,final int money) {
Bag bag = super.createBag(cards, money);
if (Game.getInstance().isOddRound()) {
if (bag.getItems().size() < Constants.MAX_BAG_SIZE && bag.getItems().size() > 0) {
// If we can add a illegal good
ArrayList<Goods> uniqueItems = new ArrayList<>();
for (Goods item : cards) {
if (!uniqueItems.contains(item) && item.getType() == GoodsType.Illegal) {
uniqueItems.add(item);
}
}
if (uniqueItems.size() != 0) {
ItemValueComparator valueCompare = new ItemValueComparator();
uniqueItems.sort(valueCompare);
bag.addItem(uniqueItems.get(0), 1);
}
}
}
return bag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialiseBags() {\r\n\t\t//Player one bag\r\n\t\taddToBag1(GridSquare.Type.a, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.b, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquar... | [
"0.66141343",
"0.60997486",
"0.5784496",
"0.5767876",
"0.5766636",
"0.5747388",
"0.57082593",
"0.56963485",
"0.5535154",
"0.55231434",
"0.54711246",
"0.5435123",
"0.5384041",
"0.5365209",
"0.53574544",
"0.53563786",
"0.5354441",
"0.53454864",
"0.53279847",
"0.53273785",
"0.52... | 0.5797566 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.