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 |
|---|---|---|---|---|---|---|
This is the main method. It does most of the work,and calls all of the other methods | public static void main(String[] args) throws IOException, InterruptedException {
//Setting up the console
Console menu = new Console(40, 150);
Color.RGBtoHSB(63, 71, 204, hsbColours);
//to check if they quit
boolean quit=false;
//question and answer arrays
String []questions=new String [15... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main() {\n \n }",
"public static void main(String args[]) throws Exception\n {\n \n \n \n }",
"public static void main(String[] args) {\n\n ArrayClone();\n //ArrayToString();\n //ArrayReverse();\n\n //ForToForeach();\n //SaveOu... | [
"0.705693",
"0.69495904",
"0.6861006",
"0.68176806",
"0.67939866",
"0.67851025",
"0.67757463",
"0.67686033",
"0.67325026",
"0.6676826",
"0.6638075",
"0.6623737",
"0.662144",
"0.6606549",
"0.65751326",
"0.65560496",
"0.6549765",
"0.6535891",
"0.6525846",
"0.6494924",
"0.648116... | 0.0 | -1 |
This method is for the 50:50 lifeline. | public static void fiftyFifty (Console menu, int rnd){
FF=true;
//d
if (rnd==0)
{
//a
menu.setCursor(27,13);
menu.print(" ");
//c
menu.setCursor(36,13);
menu.print(" ");
}
//b
else if (rnd==1)
{
//d
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void obsluga_pilek()\n {\n if (liczba_pilek > 0)\n {\n i++;\n if (i%50==0)\n {\n p.add(new Pilka(w.getPolozenie_x(), w.getPolozenie_y(), getWidth(), getHeight(), rozmiar_pilki));\n liczba_pilek--;\n ... | [
"0.5861175",
"0.5625735",
"0.55207276",
"0.55119216",
"0.5470286",
"0.5454998",
"0.5434942",
"0.53820515",
"0.5370842",
"0.5324819",
"0.53186834",
"0.5312204",
"0.5295091",
"0.5278624",
"0.526411",
"0.52624905",
"0.5259368",
"0.5246696",
"0.5246601",
"0.52358544",
"0.5228996"... | 0.0 | -1 |
This method is for the phone a friend lifeline. | public static void phoneAFriend (String correct, String incorrect) throws InterruptedException, IOException{
//phone a friend console
Console callScreen=new Console (40,50);
//seting up the three friends
BufferedImage steveJobs=ImageIO.read(WhoWantsToBeAMillionaire.class.getResourceAsStream("/steveJobs.jpg"... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void notifyPresenceReceived(LinphoneCore lc, LinphoneFriend lf) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\tpublic void notifyPresenceReceived(LinphoneCore lc, LinphoneFriend lf) {\n\t\t\n\t}",
"void addFriendWithPhoneNumber(Friend friend, String phoneNumber);",
"public void notifyNoti... | [
"0.6244786",
"0.60090727",
"0.5687609",
"0.5589438",
"0.5507996",
"0.54716855",
"0.5361491",
"0.5358263",
"0.535588",
"0.5321151",
"0.5302854",
"0.5295774",
"0.529427",
"0.52840734",
"0.5273125",
"0.52694327",
"0.5217642",
"0.5214998",
"0.51933116",
"0.5189063",
"0.5172416",
... | 0.0 | -1 |
This method is for the audience poll lifeline. | public static void audiencePoll (int rnd) throws InterruptedException{
//making the audience poll console
Console audiencePoll=new Console(5,25);
audiencePoll.setTextBackgroundColor(Color.getHSBColor(hsbColours[0], hsbColours[1], hsbColours[2]));
audiencePoll.setTextColor(Color.YELLOW);
//setting the che... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private final void m7043b() {\n AudienceView audienceView = this.f11482f;\n if (!(audienceView == null || this.f11483g == null)) {\n audienceView.setEnabled(false);\n this.f11483g.setEnabled(false);\n }\n m7042a(true);\n rqa a = rpz.m34221a();\n a.mo2... | [
"0.58498174",
"0.583739",
"0.5784125",
"0.57814896",
"0.5745642",
"0.5721827",
"0.57172596",
"0.56672984",
"0.5664728",
"0.5629744",
"0.5611454",
"0.5602684",
"0.5578719",
"0.55743515",
"0.55731416",
"0.55663395",
"0.55560833",
"0.5553733",
"0.5470783",
"0.5467778",
"0.546384... | 0.0 | -1 |
This method is for mouse clicks. | public static void mouseClick (Console c){
//wait for mouse click
c.addMouseListener(new MouseAdapter() {
public void mousePressed(MouseEvent me) {
x = me.getX();
y = me.getY();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"public void mouseClicked(int mouseX, int mouseY, int mouse) {}",
"@Override\n\... | [
"0.8180129",
"0.8180129",
"0.812589",
"0.8119815",
"0.8098359",
"0.8098359",
"0.8098359",
"0.8098359",
"0.8098359",
"0.8098359",
"0.8098359",
"0.8098359",
"0.8098359",
"0.8098359",
"0.8098359",
"0.80885327",
"0.80754316",
"0.8073373",
"0.8072917",
"0.80725753",
"0.80725753",
... | 0.0 | -1 |
This method checks the user inputed answer | public static boolean checkAnswer(int rnd){
//depending on the random number and what is clicked on by the user, return true or false
if (rnd==0&&(x>413&&x<703)&&(y>748&&y<838))
{
return true;
}
else if (rnd==1&&(x>406&&x<695)&&(y>558&&y<646))
{
return true;
}
else if (rnd==2&&(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkUserInput() {\n }",
"boolean hasCorrectAnswer();",
"public void getInput() {\r\n System.out.print(\"Is the car silent when you turn the key? \");\r\n setAnswer1(in.nextLine());\r\n if(getAnswer1().equals(YES)) {\r\n System.out.print(\"Are the battery termina... | [
"0.7414098",
"0.7319167",
"0.723979",
"0.7227954",
"0.7158953",
"0.7107621",
"0.7001027",
"0.69772077",
"0.69558465",
"0.6902968",
"0.6885484",
"0.6877864",
"0.6843223",
"0.67920494",
"0.6781243",
"0.67721546",
"0.6767394",
"0.6757707",
"0.66769236",
"0.6631776",
"0.6624176",... | 0.61520356 | 84 |
This method ends the game. | public static void endGame(Console menu, int cash,boolean quit) throws InterruptedException{
//set up the end of the game
menu.clear();
menu.setTextBackgroundColor(Color.getHSBColor(hsbColours[0], hsbColours[1], hsbColours[2]));
menu.setTextColor(Color.YELLOW);
menu.setCursor(1,1);
menu.println("Game ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void endGame() {\n\t\tsuper.endGame();\n\t}",
"public void finishGame(){\r\n\t\t\t\tgameStarted = false;\r\n\t\t\t}",
"public void endGame() {\n dispose();\n System.out.println(\"Thank you for playing\");\n System.exit(0);\n }",
"private void endGame() {\r\n\t\t// ... | [
"0.8961285",
"0.83818865",
"0.83020806",
"0.82021165",
"0.81607515",
"0.81447554",
"0.81368506",
"0.8104143",
"0.80832595",
"0.8064563",
"0.80458456",
"0.8033711",
"0.798553",
"0.79606116",
"0.7957302",
"0.7952372",
"0.79374695",
"0.79343706",
"0.79187995",
"0.7890286",
"0.78... | 0.0 | -1 |
This method resets the x and y values. | public static void reset(){
x=0;
y=0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reset(int x, int y){\n\t\t\tthis.x = x;\n\t\t\tthis.y = y;\n\t\t}",
"public void reset(){\n x = originalX;\n y = originalY;\n dx = originalDX;\n dy = originalDY;\n }",
"public void reset() {\r\n this.x = resetX;\r\n this.y = resetY;\r\n state = 0;... | [
"0.82757366",
"0.82322276",
"0.8146444",
"0.7988881",
"0.77607423",
"0.7630242",
"0.74575704",
"0.740373",
"0.7397362",
"0.73006535",
"0.72984725",
"0.7287816",
"0.7273811",
"0.72681487",
"0.72575384",
"0.72415847",
"0.72361416",
"0.7186965",
"0.7102533",
"0.7084458",
"0.7083... | 0.8796856 | 0 |
Instantiates a new report. | public Report() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Report createReport();",
"public Report() {\r\n }",
"protected Report()\n {\n super();\n }",
"void createReport(Report report);",
"public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString p... | [
"0.7990318",
"0.77661985",
"0.75891864",
"0.75713295",
"0.7441121",
"0.7177082",
"0.7127532",
"0.69787556",
"0.69591284",
"0.6819484",
"0.67892635",
"0.6690774",
"0.66677004",
"0.6667564",
"0.6648388",
"0.6648388",
"0.6648388",
"0.65708965",
"0.6559491",
"0.64525765",
"0.6405... | 0.7726977 | 2 |
Instantiates a new report. | public Report(int transactionReferenceNumber, String description, String status) {
super();
this.transactionReferenceNumber = transactionReferenceNumber;
this.description = description;
this.status = status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Report createReport();",
"public Report() {\r\n }",
"public Report() {\n\t\tsuper();\n\t}",
"protected Report()\n {\n super();\n }",
"void createReport(Report report);",
"public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.... | [
"0.7990318",
"0.77661985",
"0.7726977",
"0.75891864",
"0.75713295",
"0.7441121",
"0.7177082",
"0.7127532",
"0.69787556",
"0.69591284",
"0.6819484",
"0.67892635",
"0.6690774",
"0.66677004",
"0.6667564",
"0.6648388",
"0.6648388",
"0.6648388",
"0.65708965",
"0.6559491",
"0.64525... | 0.0 | -1 |
Gets the transaction reference number. | public int getTransactionReferenceNumber() {
return transactionReferenceNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getReferenceNumber() {\r\n return referenceNumber;\r\n }",
"public java.lang.String getTransactionReference() {\n return transactionReference;\n }",
"public java.lang.String getRefnum() {\n return refnum;\n }",
"public int getUniqueReference ()\n\t{\n\t\t... | [
"0.7462035",
"0.7287183",
"0.7074418",
"0.6890345",
"0.67783564",
"0.67003703",
"0.66583353",
"0.66415906",
"0.6612517",
"0.6596053",
"0.65844935",
"0.6584466",
"0.6544072",
"0.6543972",
"0.65172106",
"0.65172106",
"0.65172106",
"0.65032303",
"0.64525366",
"0.64361465",
"0.64... | 0.8240205 | 0 |
Sets the transaction reference number. | public void setTransactionReferenceNumber(int transactionReferenceNumber) {
this.transactionReferenceNumber = transactionReferenceNumber;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRefNumber(String ref)\n {\n if(ref.length() >= 3){\n refNumber = ref;\n }\n else{\n System.out.println(\"ERROR: Use three characters or more\");\n }\n }",
"public void setReferenceNumber(java.lang.String referenceNumber) {\r\n this.ref... | [
"0.69774723",
"0.6975131",
"0.6847164",
"0.66324675",
"0.6606752",
"0.65695304",
"0.6553234",
"0.6520357",
"0.64947677",
"0.6480268",
"0.6378006",
"0.63461244",
"0.63184917",
"0.6262629",
"0.6251885",
"0.62232804",
"0.62232804",
"0.6212483",
"0.6156174",
"0.6106267",
"0.61056... | 0.7258745 | 0 |
This method was generated by MyBatis Generator. This method corresponds to the database table question | long countByExample(QuestionExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res... | [
"0.60365075",
"0.5902655",
"0.5854183",
"0.5830776",
"0.5816862",
"0.58011585",
"0.57770085",
"0.576122",
"0.57605904",
"0.5755198",
"0.5742592",
"0.5742592",
"0.5727287",
"0.5711602",
"0.5703713",
"0.5688004",
"0.5672254",
"0.5665547",
"0.5663743",
"0.5663743",
"0.56467956",... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table question | int deleteByExample(QuestionExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res... | [
"0.60365075",
"0.5902655",
"0.5854183",
"0.5830776",
"0.5816862",
"0.58011585",
"0.57770085",
"0.576122",
"0.57605904",
"0.5755198",
"0.5742592",
"0.5742592",
"0.5727287",
"0.5711602",
"0.5703713",
"0.5688004",
"0.5672254",
"0.5665547",
"0.5663743",
"0.5663743",
"0.56467956",... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table question | int deleteByPrimaryKey(String questionId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res... | [
"0.60365075",
"0.5902655",
"0.5854183",
"0.5830776",
"0.5816862",
"0.58011585",
"0.57770085",
"0.576122",
"0.57605904",
"0.5755198",
"0.5742592",
"0.5742592",
"0.5727287",
"0.5711602",
"0.5703713",
"0.5688004",
"0.5672254",
"0.5665547",
"0.5663743",
"0.5663743",
"0.56467956",... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table question | int insert(Question record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res... | [
"0.60365075",
"0.5902655",
"0.5854183",
"0.5830776",
"0.5816862",
"0.58011585",
"0.57770085",
"0.576122",
"0.57605904",
"0.5755198",
"0.5742592",
"0.5742592",
"0.5727287",
"0.5711602",
"0.5703713",
"0.5688004",
"0.5672254",
"0.5665547",
"0.5663743",
"0.5663743",
"0.56467956",... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table question | int insertSelective(Question record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res... | [
"0.60365075",
"0.5902655",
"0.5854183",
"0.5830776",
"0.5816862",
"0.58011585",
"0.57770085",
"0.576122",
"0.57605904",
"0.5755198",
"0.5742592",
"0.5742592",
"0.5727287",
"0.5711602",
"0.5703713",
"0.5688004",
"0.5672254",
"0.5665547",
"0.5663743",
"0.5663743",
"0.56467956",... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table question | List<Question> selectByExample(QuestionExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res... | [
"0.60365075",
"0.5902655",
"0.5854183",
"0.5830776",
"0.5816862",
"0.58011585",
"0.57770085",
"0.576122",
"0.57605904",
"0.5755198",
"0.5742592",
"0.5742592",
"0.5727287",
"0.5711602",
"0.5703713",
"0.5688004",
"0.5672254",
"0.5665547",
"0.5663743",
"0.5663743",
"0.56467956",... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table question | Question selectByPrimaryKey(String questionId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res... | [
"0.60365075",
"0.5902655",
"0.5854183",
"0.5830776",
"0.5816862",
"0.58011585",
"0.57770085",
"0.576122",
"0.57605904",
"0.5755198",
"0.5742592",
"0.5742592",
"0.5727287",
"0.5711602",
"0.5703713",
"0.5688004",
"0.5672254",
"0.5665547",
"0.5663743",
"0.5663743",
"0.56467956",... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table question | int updateByExampleSelective(@Param("record") Question record, @Param("example") QuestionExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res... | [
"0.60365075",
"0.5902655",
"0.5854183",
"0.5830776",
"0.5816862",
"0.58011585",
"0.57770085",
"0.576122",
"0.57605904",
"0.5755198",
"0.5742592",
"0.5742592",
"0.5727287",
"0.5711602",
"0.5703713",
"0.5688004",
"0.5672254",
"0.5665547",
"0.5663743",
"0.5663743",
"0.56467956",... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table question | int updateByExample(@Param("record") Question record, @Param("example") QuestionExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res... | [
"0.60365075",
"0.5902655",
"0.5854183",
"0.5830776",
"0.5816862",
"0.58011585",
"0.57770085",
"0.576122",
"0.57605904",
"0.5755198",
"0.5742592",
"0.5742592",
"0.5727287",
"0.5711602",
"0.5703713",
"0.5688004",
"0.5672254",
"0.5665547",
"0.5663743",
"0.5663743",
"0.56467956",... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table question | int updateByPrimaryKeySelective(Question record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res... | [
"0.60365075",
"0.5902655",
"0.5854183",
"0.5830776",
"0.5816862",
"0.58011585",
"0.57770085",
"0.576122",
"0.57605904",
"0.5755198",
"0.5742592",
"0.5742592",
"0.5727287",
"0.5711602",
"0.5703713",
"0.5688004",
"0.5672254",
"0.5665547",
"0.5663743",
"0.5663743",
"0.56467956",... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table question | int updateByPrimaryKey(Question record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Res... | [
"0.60365075",
"0.5902655",
"0.5854183",
"0.5830776",
"0.5816862",
"0.58011585",
"0.57770085",
"0.576122",
"0.57605904",
"0.5755198",
"0.5742592",
"0.5742592",
"0.5727287",
"0.5711602",
"0.5703713",
"0.5688004",
"0.5672254",
"0.5665547",
"0.5663743",
"0.5663743",
"0.56467956",... | 0.0 | -1 |
private CentroManager centroManager = CentroManager.createCentroManager (); / (nonJavadoc) | @Override
public int create(Object value) throws Exception {
//Default error
int result = Errors.NO_ERROR;
//Verify class
if (value.getClass()!=CentroVO.class)
throw (new Exception("Not valid class"));
CentroVO center = (CentroVO)value;
// Verify used licenses
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CentreBean() {\r\n if(centreToAdd == null){\r\n centreToAdd = new Centres();\r\n }\r\n \r\n }",
"public Punto getCentro() {\r\n\treturn centro;\r\n}",
"public Ventana_Central() {\n initComponents();\n setup();\n }",
"private CompanyManager() {}",
"C... | [
"0.6227532",
"0.6052791",
"0.59167624",
"0.5794821",
"0.5790671",
"0.574085",
"0.57245135",
"0.567722",
"0.5651897",
"0.5640697",
"0.5563027",
"0.5530054",
"0.5528648",
"0.5520629",
"0.55054843",
"0.549348",
"0.5490263",
"0.5481146",
"0.5481146",
"0.54558337",
"0.54517317",
... | 0.51716155 | 70 |
final File file = new File(TASKS_JSON_FILE); | private List<Task> readFromFile() {
if (file.exists()) {
try {
return objectmapper.readValue(file,TaskList.class);
} catch (IOException e) {
throw new IllegalStateException(e);
}
} else {
return new ArrayList<>();
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String fileToString(String file){\n String path = new File(\"./Users/Colin/AndroidStudioProjects/FlightCompare/app/json/flights.json\").getAbsolutePath();\n File fileObj = new File(path);\n Log.d(\"Reading JSON file\", \"File exists: \" + fileObj.exists());\n Log.d(\"Reading JSON... | [
"0.6494363",
"0.6362676",
"0.6326547",
"0.632395",
"0.6220614",
"0.6177433",
"0.6091203",
"0.60680354",
"0.6024197",
"0.6013988",
"0.5965968",
"0.5960284",
"0.5946688",
"0.592968",
"0.5928724",
"0.59227836",
"0.58954144",
"0.5886061",
"0.5805397",
"0.5765603",
"0.5719243",
... | 0.5810517 | 18 |
nothing to do here | public void singleClick() throws Exception {
} | {
"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 grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tprotected void interr()... | [
"0.63796103",
"0.6334971",
"0.63205105",
"0.6302668",
"0.62852556",
"0.6225275",
"0.6146525",
"0.6146525",
"0.6144452",
"0.60714036",
"0.6044127",
"0.6036487",
"0.6034698",
"0.6028312",
"0.6009376",
"0.60046643",
"0.6002409",
"0.59945714",
"0.5979857",
"0.59783345",
"0.597756... | 0.0 | -1 |
Created by: Josh On: 2/16/13 8:42 PM Interface for all types of trees to implement. | public interface BinarySearchTree<T extends Comparable<T>> {
//Add the new element to the tree where it belongs.
public void insert(T element);
//Search the tree for a given element.
public boolean search(T element);
//Get the total height of the tree starting at the root.
public int g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@jdk.Supported\npublic interface Tree {\n\n /**\n * Enumerates all kinds of trees.\n */\n @jdk.Supported\n public enum Kind {\n\n /**\n * Used for instance of {@link ExtendedASTAnnotationTree}\n * representing AST-level tree annotation \"@@\"\n */\n AST_ANNOTAT... | [
"0.76879096",
"0.75951564",
"0.7391056",
"0.73651946",
"0.7286205",
"0.7265378",
"0.7012187",
"0.6965222",
"0.6818101",
"0.67612976",
"0.66976315",
"0.6680452",
"0.667969",
"0.66385806",
"0.6614371",
"0.66117513",
"0.65885323",
"0.6543959",
"0.65244406",
"0.6502787",
"0.65006... | 0.61461055 | 41 |
Add the new element to the tree where it belongs. | public void insert(T element); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"public void add(E element)\r\n\t{\r\n\t\tif( root == null)\r\n\t\t{\r\n\t\t\troo... | [
"0.67326474",
"0.67167723",
"0.6631033",
"0.6496095",
"0.6446135",
"0.6422681",
"0.64226055",
"0.6393198",
"0.6377865",
"0.63502735",
"0.6339942",
"0.6316569",
"0.63008755",
"0.62720925",
"0.6255372",
"0.62514937",
"0.6244487",
"0.623636",
"0.6235807",
"0.6221999",
"0.6197954... | 0.0 | -1 |
Search the tree for a given element. | public boolean search(T element); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T find(T element);",
"public boolean search(int element) {\n if(empty()) return false;\n if(root.getData() == element) return true;\n\n return searchNodes(root, element);\n }",
"public static boolean search(TreeNode<Integer> tree ,Integer element) {\n\t\tif(tree == null)\r\n\t\t\... | [
"0.7598122",
"0.7397507",
"0.724526",
"0.71853864",
"0.71575326",
"0.70407844",
"0.70326024",
"0.69459146",
"0.6944392",
"0.6927784",
"0.69016695",
"0.687904",
"0.67578363",
"0.67559177",
"0.6715781",
"0.6685466",
"0.6616255",
"0.66020566",
"0.660055",
"0.65995485",
"0.655569... | 0.74355197 | 1 |
Get the total height of the tree starting at the root. | public int getHeight(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int height(){\r\n \r\n // call the recursive method with the root\r\n return height(root);\r\n }",
"@Override\n\tpublic int height() {\n\t\tif(root == null) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tNode tempRoot = root;\n\t\t\treturn heightHelper(tempRoot);\n\t\t}\n\t}",
"public ... | [
"0.8495796",
"0.84556836",
"0.83975035",
"0.83739823",
"0.8363851",
"0.83381253",
"0.83128333",
"0.8294179",
"0.82704335",
"0.824669",
"0.8240365",
"0.82332987",
"0.82315016",
"0.8227234",
"0.8227234",
"0.8227234",
"0.81478715",
"0.81152445",
"0.80216175",
"0.79801536",
"0.79... | 0.0 | -1 |
Get how many steps the search count took. Also reset the current search count. | public int getSearchSteps(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer getTotalStepCount();",
"public long getStepCount(){\r\n\t\treturn steps;\r\n\t}",
"public long getStepCount(){\n return steps;\n }",
"public int numberOfSteps() {\t\r\n\t\treturn steps.size();\r\n\t}",
"int getSequenceStepsCount();",
"public int getStepCount() {\r\n\t\treturn stepCount;... | [
"0.7115589",
"0.6515148",
"0.6481913",
"0.6321884",
"0.6306265",
"0.6295398",
"0.6139797",
"0.61287504",
"0.61124027",
"0.60925263",
"0.6088321",
"0.6059091",
"0.6009315",
"0.595229",
"0.595229",
"0.59422714",
"0.5940057",
"0.592109",
"0.592109",
"0.592109",
"0.59069335",
"... | 0.70622176 | 1 |
Get how many single rotations have occurred in the tree. | public int getRotations(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int rotateCount(){\n\t\treturn rotate;\n\t}",
"public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNo... | [
"0.70382684",
"0.6845765",
"0.6683827",
"0.6640531",
"0.6603268",
"0.6565409",
"0.65359473",
"0.6513283",
"0.6505649",
"0.6496917",
"0.64658713",
"0.644036",
"0.64160234",
"0.63889134",
"0.63853884",
"0.6359662",
"0.63541836",
"0.6304169",
"0.6281043",
"0.62756014",
"0.627330... | 0.6289149 | 18 |
Return a humanreadable name for the tree. | public String getTreeType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getTreeDisplayName() {\n\t\treturn getFirstName()+\" \"+getLastName();\n\t}",
"public String getTreeName() {\n return treeName;\n }",
"public final String name() {\n return node.getNodeName();\n }",
"java.lang.String getName();",
"java.lang.String getName();",
... | [
"0.795227",
"0.765085",
"0.6654668",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"0.65061855",
"... | 0.0 | -1 |
/ Building the GET method Endpoint with the "newUserId" variable that was updated with the newly created record in above "createNewUser" Test | @Test(priority=2)
public void ValidateNewUser() {
String apiEndPoint = "https://gorest.co.in/public-api/users/"+newUserId;
System.out.println("API EndPoint is: "+apiEndPoint);
GetUser getuser= given()
.proxy("internet.ford.com", 83)
.contentType("application/json")
.baseUri(apiEndPoint)
.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@PostMapping(\"/usersv1\")\n\tpublic Resource<User> createUser1(@RequestBody User user) {\n\t\tUser savedUser = userService.saveUser(user);\n\t\tSystem.out.println(\"Saved User \" + savedUser);\n\t\tResource<User> resource = new Resource<User>(savedUser);\n\t\tSystem.out.println(resource.getContent().getUserName()... | [
"0.6735712",
"0.6493532",
"0.6469652",
"0.6451447",
"0.6399274",
"0.6379115",
"0.63392144",
"0.62480223",
"0.6163657",
"0.6157211",
"0.6152452",
"0.6142242",
"0.61402553",
"0.6083725",
"0.60811585",
"0.6064406",
"0.60249233",
"0.6024388",
"0.6019863",
"0.6007493",
"0.5998293"... | 0.72314525 | 0 |
Method to init the components of the fragments. | private void init() {
mWallpaperRecycler.setLayoutManager(new GridLayoutManager(getContext(), 2));
mWallpaperRecycler.setHasFixedSize(true);
mWallpaperAdapter = new WallpaperAdapter(getContext(), mEmptyView, this);
mWallpaperRecycler.setAdapter(mWallpaperAdapter);
mPresenter = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initFragments() {\n\t\tZhiBoFragment zhiBoFragment = ZhiBoFragment.newInstance(null);\n\t\tzhiBoFragment.setSquareFragmentListener(this);\n\t\tLiaotianFragment liaotianFragment = LiaotianFragment.newInstance(null);\n\t\tliaotianFragment.setSquareFragmentListener(this);\n\t\tfragments.add(zhiBoFragment... | [
"0.74885094",
"0.7379483",
"0.73185354",
"0.69716334",
"0.6947088",
"0.68994147",
"0.6873308",
"0.68281347",
"0.6819415",
"0.67296606",
"0.6693032",
"0.6682397",
"0.6669285",
"0.6669285",
"0.6655972",
"0.66445845",
"0.66299987",
"0.65853274",
"0.65616107",
"0.6555942",
"0.654... | 0.0 | -1 |
Builds a new instance. | public LineInspector(final Pattern p) {
pattern = p;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public void build() {\r\n // TODO\r\n }",
"public Builder() { }",
"Object build();",
"private Builder() {\n\t\t}",
"public Builder() {\n\t\t}",
"private Builder() {\n }",
"private Build... | [
"0.7248778",
"0.71471065",
"0.71471065",
"0.71471065",
"0.7022274",
"0.6966053",
"0.6964456",
"0.69500405",
"0.68797874",
"0.68720067",
"0.68720067",
"0.6868664",
"0.6838155",
"0.6811693",
"0.6800035",
"0.6793564",
"0.67928505",
"0.67743844",
"0.675651",
"0.67112756",
"0.6711... | 0.0 | -1 |
Manages the given nut that corresponds to the specified referenced path and append the transformation with proper path. | public static List<Nut> manageAppend(final Nut nut,
final StringBuilder replacement,
final EngineRequest request,
final NutsHeap heap,
final EngineType ... ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void transform() {\n\t\tOrganism newOrg;\n\t\t\n\t\tfor (int i=0; i < 1; i++) {\n\t\t\tnewOrg = new Organism(_world);\n\t\t\tif (newOrg.inheritTransformation(this, i==0)) {\n\t\t\t\t// It can be created\n\t\t\t\t_world.addOrganism(newOrg,this);\n\t\t\t}\n\t\t}\n\t}",
"protected void addTransform(BundlesDT... | [
"0.5182405",
"0.49368167",
"0.47399712",
"0.47218704",
"0.4684361",
"0.46660095",
"0.46655992",
"0.46646833",
"0.46036986",
"0.46021846",
"0.45685798",
"0.45259506",
"0.45051518",
"0.44618848",
"0.44584337",
"0.44408652",
"0.44381595",
"0.44191697",
"0.44136232",
"0.4411561",
... | 0.0 | -1 |
Gets the pattern to find text to be replaced inside the lines. | public final Pattern getPattern() {
return pattern;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String DoFindReplace(String line)\n {\n String newLine = line;\n\n for (String findKey : lineFindReplace.keySet())\n {\n String repValue = lineFindReplace.get(findKey).toString();\n\n Pattern findPattern = Pattern.compile(findKey);\n Matcher... | [
"0.62079656",
"0.60190535",
"0.57865953",
"0.55636674",
"0.55570555",
"0.55165046",
"0.5479701",
"0.54492414",
"0.54200083",
"0.5419475",
"0.54057425",
"0.5374063",
"0.53644836",
"0.53644454",
"0.5345595",
"0.52942306",
"0.52925575",
"0.52855366",
"0.52855366",
"0.52845734",
... | 0.53102 | 15 |
TODO Autogenerated method stub | public static void main(String[] args) {
FlattenList f=new FlattenList();
ListNode n1=f.new ListNode(1);
ListNode n2=f.new ListNode(2);
ListNode n3=f.new ListNode(3);
ListNode n4=f.new ListNode(4);
ListNode n5=f.new ListNode(5);
n1.nextLevelHead=n2;
n2.nextLevelHead=n3;
n2.next=n4;
n1.next=n5;
f.f... | {
"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 |
/adds a new scripture | public void addScripture(Scripture toAdd) {
scriptures.add(toAdd);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Script addScript(final ScriptDetails scriptDetails)\n\t{\n\t\tfinal File scriptFile = new File(scriptDetails.getFile());\n\t\t\n\t\tfinal Script script = new Script();\n\t\t\t\t\n\t\tcreateFileBasedScript(script, scriptFile, scriptDetails);\n\t\t\n\t\tlogger.info(\"Adding script {} at {}\", script.getName()... | [
"0.6858181",
"0.6807667",
"0.6683292",
"0.6136064",
"0.6036954",
"0.5928596",
"0.5845257",
"0.57842207",
"0.57363415",
"0.5721952",
"0.56813574",
"0.5606745",
"0.5542714",
"0.5459235",
"0.5455651",
"0.5449628",
"0.5447895",
"0.541963",
"0.5356884",
"0.5323272",
"0.53103787",
... | 0.8001044 | 0 |
/looks for the book in the list of scriptures | public Boolean checkBook(String book) {
for (Scripture s : scriptures) {
if (s.getBook().equals(book)) {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void findBook() {\n\t\tif (books.size() > 0) {\n\t\t\tint randInt = rand.nextInt(books.size());\n\t\t\tbook = books.get(randInt);\n\t\t}\n\t}",
"public boolean searchLibrary(String key)\n\t{\n\t\tif(availableBooks!=0)\n\t\t{\n\t\t\tboolean val=b.searchBook(key);\n\t\t\treturn val;\n\t\t}\n\t\treturn false... | [
"0.6110495",
"0.58703995",
"0.5856571",
"0.58028376",
"0.56939566",
"0.567109",
"0.5636573",
"0.5613155",
"0.55677426",
"0.55472195",
"0.5533808",
"0.5513826",
"0.5509183",
"0.5507042",
"0.548069",
"0.5466861",
"0.5460798",
"0.5453001",
"0.54249585",
"0.54223675",
"0.5340136"... | 0.71459633 | 0 |
/finds if a topic is in the list of topics | public Boolean checkTopic(String topic) {
for (String topics2 : topics) {
if (topics2.toLowerCase().equals(topic.toLowerCase())) {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasTopic();",
"public boolean getTopic(String topic)throws Exception{\r\n\r\n\t\tAdminClient adminClient = AdminClient.create(propTopic);\r\n\r\n\t\tListTopicsOptions listTopicsOptions = new ListTopicsOptions();\r\n\t\tlistTopicsOptions.listInternal(true);\r\n\t\t\r\n\t\tSystem.out.println(adminClient.li... | [
"0.73243177",
"0.70261943",
"0.70097315",
"0.6900762",
"0.6820929",
"0.6762695",
"0.6449417",
"0.64366364",
"0.6353348",
"0.6306995",
"0.6028163",
"0.59950054",
"0.5914928",
"0.58763456",
"0.5854899",
"0.58407754",
"0.57795274",
"0.57777864",
"0.5776372",
"0.5740144",
"0.5705... | 0.73106444 | 1 |
/removes duplicate topics and turns key words into topics | public void fixTopics() {
Map<String, String> topicMap = new HashMap();
try {
Properties prop = new Properties();
InputStream inputStream = getClass().getClassLoader().getResourceAsStream("Journal.properties");
prop.load(inputStream);
BufferedReader fin =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sortByTopic() {\r\n\t\tfor (int i = 1; i < displayingList.size(); i++) {\r\n\t\t\tQuestion temp = displayingList.get(i);\r\n\t\t\tfor (int j = i - 1; j >= 0; j--) {\r\n\t\t\t\tif (String.CASE_INSENSITIVE_ORDER.compare(temp.getTopic(), displayingList.get(j).getTopic()) < 0) {\r\n\t\t\t\t\tdisplayingList... | [
"0.59364474",
"0.5892705",
"0.5736102",
"0.56285805",
"0.55820525",
"0.55008304",
"0.54577404",
"0.5440699",
"0.5417963",
"0.53801435",
"0.53396446",
"0.5331725",
"0.5330666",
"0.5311081",
"0.5293687",
"0.52278084",
"0.5213961",
"0.52080405",
"0.51801604",
"0.5156402",
"0.514... | 0.6912927 | 0 |
/returns a formated string for the date | public String getEntryDateString() {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy MMM dd");
return sdf.format(entryDate.getTime());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String dateToString() {\n\t\treturn new String(year + \"/\"\n\t\t\t\t+ month + \"/\"\n\t\t\t\t+ day);\n }",
"public String getDateString(){\n return Utilities.dateToString(date);\n }",
"private static String getDateStr() {\n\t\tDate date = Calendar.getInstance().getTime();\n\t\tDateFormat d... | [
"0.82066804",
"0.8188075",
"0.79019684",
"0.7894894",
"0.7729304",
"0.76930195",
"0.7692551",
"0.76238453",
"0.7617655",
"0.7617655",
"0.7598994",
"0.7553436",
"0.75056463",
"0.74519324",
"0.7451638",
"0.74276876",
"0.74206036",
"0.73613435",
"0.73264444",
"0.7298266",
"0.726... | 0.74126613 | 17 |
the main layout and components will be created here | @AutoGenerated
private void buildMainLayout() {
mainLayout = new FormLayout();
mainLayout.setMargin(true);
username = new TextField("Username");
password = new TextField("Password");
mainLayout.addComponent(username);
mainLayout.addComponent(password);
login = new Button("Login");
register = new... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"10... | [
"0.79299736",
"0.76476115",
"0.7545601",
"0.74119866",
"0.73826826",
"0.73686916",
"0.73683697",
"0.7366192",
"0.735194",
"0.7351598",
"0.7331706",
"0.7322602",
"0.7313448",
"0.731333",
"0.72865236",
"0.7259198",
"0.72526395",
"0.7245061",
"0.72269696",
"0.7204788",
"0.720095... | 0.73584735 | 8 |
This method has been deprecated, please use method buildConditions instead. | @java.lang.Deprecated
public java.util.List<io.kubernetes.client.openapi.models.V2beta1HorizontalPodAutoscalerCondition> getConditions() {
return conditions != null ? build(conditions) : null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Wrapper<Brand> buildConditions() {\n return null;\n }",
"@Deprecated\n public List<V1ComponentCondition> getConditions() {\n return conditions != null ? build(conditions) : null;\n }",
"@java.lang.Deprecated\n public java.util.List<io.kubernetes.client.openapi.models.V1DaemonSetCo... | [
"0.67939895",
"0.6343527",
"0.6131942",
"0.5967109",
"0.5948677",
"0.59378153",
"0.5931655",
"0.58940876",
"0.58369696",
"0.57789946",
"0.57789946",
"0.5631488",
"0.56302875",
"0.56043166",
"0.5602989",
"0.56017786",
"0.5546314",
"0.5525859",
"0.5515573",
"0.55102575",
"0.546... | 0.5969358 | 3 |
This method has been deprecated, please use method buildCurrentMetrics instead. | @java.lang.Deprecated
public java.util.List<io.kubernetes.client.openapi.models.V2beta1MetricStatus> getCurrentMetrics() {
return currentMetrics != null ? build(currentMetrics) : null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Metrics getMetrics() {\n throw new UnsupportedOperationException(\"Metrics are not not supported in Spark yet\");\n }",
"Metrics getMetrics();",
"io.netifi.proteus.admin.om.Metrics getMetrics();",
"public void showMetrics() {\n }",
"@Override\n public Metrics getMetrics() ... | [
"0.6563077",
"0.6410412",
"0.60828084",
"0.6070597",
"0.598169",
"0.58280706",
"0.5778082",
"0.57741016",
"0.5701934",
"0.56779426",
"0.5659615",
"0.562375",
"0.5615331",
"0.5591476",
"0.55149794",
"0.5509231",
"0.54944456",
"0.54774874",
"0.54686666",
"0.54380643",
"0.543365... | 0.73238426 | 0 |
Spring Data repository for the Pricing entity. | @SuppressWarnings("unused")
@Repository
public interface PricingRepository extends JpaRepository<Pricing, Long> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ProductPricingRepository extends JpaRepository<ProductPricing, Long> {\n}",
"public interface UserSkillPriceRepository extends JpaRepository<UserSkillPrice, Long> {\n}",
"public interface PriceDao extends JpaRepository<Price, Integer> {\n}",
"public interface CurrencyRepository extends JpaRe... | [
"0.7524243",
"0.69407916",
"0.6799699",
"0.6639882",
"0.66278166",
"0.662077",
"0.66111606",
"0.6583282",
"0.6499029",
"0.64482456",
"0.6445971",
"0.64448225",
"0.64154035",
"0.6407465",
"0.64062965",
"0.64023215",
"0.6385325",
"0.6377388",
"0.63722324",
"0.63684654",
"0.6364... | 0.7450747 | 1 |
add method to sort by first name | public List<Employee> findAllByOrderByFirstName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Sort sortByLastNameAsc() {\n return new Sort(Sort.Direction.ASC, \"remName\");\n }",
"private Comparator<Doctor> firstNameAlphabeticalComparator() {\n return (o1, o2) -> {\n if(!(o1.getFirstName() == null || o2.getFirstName() == null)){\n if (o1.getFirstName().c... | [
"0.81507796",
"0.72163546",
"0.70028377",
"0.6993955",
"0.69907975",
"0.689998",
"0.6866736",
"0.6801384",
"0.6743864",
"0.6740532",
"0.6693165",
"0.6663289",
"0.65960675",
"0.65877193",
"0.6544088",
"0.64954287",
"0.64530265",
"0.64420044",
"0.6405569",
"0.6378405",
"0.63768... | 0.6466759 | 16 |
/ Create an Intent that will start the MenuActivity. | @Override
public void run() {
if (NetworkCheck.getInstance(StartingActivity.this).isOnline()) {
SharedPreferences preferences = getSharedPreferences("app", MODE_PRIVATE);
uname = preferences.getString("mail", String.valueOf(0));
p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void goToMenu() {\n Intent intentProfile = new Intent(PregonesActivosActivity.this, MenuInicial.class);\n PregonesActivosActivity.this.startActivity(intentProfile);\n }",
"void startNewActivity(Intent intent);",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n g... | [
"0.6634019",
"0.66134024",
"0.64050645",
"0.63353336",
"0.6290529",
"0.62828135",
"0.6275273",
"0.62685764",
"0.62605584",
"0.6233124",
"0.62291884",
"0.6209239",
"0.6203786",
"0.6195538",
"0.61908746",
"0.6185438",
"0.61816007",
"0.61808544",
"0.6172352",
"0.6171877",
"0.615... | 0.0 | -1 |
Log.v(TASKLOG,"INSIDE BEFORE CALL POSTDATASERVER::"+arg0[0]); | @Override
protected Void doInBackground(String... arg0) {
try {
HttpClient httpclient = new DefaultHttpClient();
HttpGet request = new HttpGet(arg0[0]);
ResponseHandler<String> handler = new BasicResponseHandler();
String result = null;... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected Double doInBackground(String... params) {\n if (MainActivity.LOCAL_LOGV) Log.v(MainActivity.REFACTOR_LOG_TAG, \"Poster url: \" + params[0]);\n postData(params[0]);\n return null;\n }",
"public void postData() {\n\n\t}",
"public static void main(String[] args) {\... | [
"0.61136675",
"0.5759141",
"0.5752541",
"0.55835646",
"0.55810875",
"0.5574656",
"0.55543596",
"0.5459885",
"0.5442906",
"0.5435577",
"0.5408812",
"0.53748477",
"0.53585887",
"0.53489006",
"0.5307495",
"0.5259854",
"0.5259854",
"0.5239485",
"0.5231816",
"0.52038246",
"0.51951... | 0.0 | -1 |
/ Complete the 'rotateLeft' function below. The function is expected to return an INTEGER_ARRAY. The function accepts following parameters: 1. INTEGER d 2. INTEGER_ARRAY arr | public static List<Integer> rotateLeft(int d, List<Integer> arr) {
// Write your code here
List<Integer> resultList = arr.subList(d, arr.size());
resultList.addAll(arr.subList(0, d));
return resultList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int[] rotLeft(int[] a, int d) {\r\n if (d<=0) {return a;}\r\n int n = a.length;\r\n int[] subArrayBack = new int[d];\r\n int[] subArrayFront = new int[n-d]; \r\n for ( int i = 0; i < d; i++){\r\n subArrayBack[i] = a[i];\r\n } \r\n for(... | [
"0.8238394",
"0.81815153",
"0.8130863",
"0.7642606",
"0.7301616",
"0.7243391",
"0.7214502",
"0.72006696",
"0.71887296",
"0.7182826",
"0.7132295",
"0.7105248",
"0.6967196",
"0.6958913",
"0.68674654",
"0.68102056",
"0.67861795",
"0.6668956",
"0.64625376",
"0.63320714",
"0.62782... | 0.7656879 | 3 |
Print the names (and birthdays) of students having a birtday in the specified month. | public void filterAndPrint(List<Student> students, Predicate<Student> filter, Consumer<Student> action, Comparator<Student> sort) {
// I have filter the list and sorted it, Also forLoop print the result.
students.stream().filter(filter).sorted(sort).forEach(action);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void printMonthHeader(int month, int year) {\n System.out.printf(\" %s %d\\n\", monthNames[month - 1], year);\n for (String d : dayNames) {\n System.out.printf(\" %s \", d);\n }\n System.out.println();\n }",
"public static void printMonthBody(int year, i... | [
"0.6268126",
"0.6263367",
"0.6231718",
"0.6201055",
"0.61416894",
"0.61332893",
"0.60824573",
"0.60799223",
"0.59366715",
"0.5883959",
"0.5869733",
"0.5846896",
"0.58374065",
"0.56892157",
"0.56251353",
"0.5612432",
"0.55708075",
"0.5553614",
"0.5474121",
"0.54506004",
"0.541... | 0.0 | -1 |
toString hashcode et equals | @Override
public String toString() {
return "Client [nom=" + nom + ", prenom=" + prenom + ", adresse=" + adresse + ", dateapprentissage="
+ dateapprentissage + ", datepermis=" + datepermis + "]";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\n\t\treturn hashString;\n\t}",
"public int hashCode()\n {\n return toString().hashCode();\n }",
"public int hashCode(){\n\t\treturn toString().hashCode();\n\t}",
"@Override\n public String toString() {\n return encodedHash.get();\n }",
"@Override\n\tp... | [
"0.78185934",
"0.75057364",
"0.74570453",
"0.73269844",
"0.7290015",
"0.7290015",
"0.728067",
"0.728067",
"0.7137659",
"0.7118363",
"0.71162826",
"0.7098496",
"0.70870507",
"0.70196503",
"0.69490576",
"0.68611753",
"0.684895",
"0.6830174",
"0.67668515",
"0.6732165",
"0.672312... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
} | {
"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 beforeTextChanged(CharSequence s, int start, int count, int after) {
} | {
"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 afterTextChanged(Editable s) {
checkInput();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (savedInstanceState != null) {
sCameraFilename = savedInstanceState.getString("sCameraFilename");
fCurrentFile = (File) savedInstanceState.getSerializable("fCurrentFile");
PalmchatLogUtils.printl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onSaveInstanceState(Bundle outState) {
if (outState != null) {
outState.putString("sCameraFilename", sCameraFilename);
outState.putSerializable("fCurrentFile", fCurrentFile);
PalmchatLogUtils.println("--cfd onSaveInstanceState sCameraFilename =" + sCameraFilename);
}
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 |
TODO Autogenerated method stub | @Override
protected void onResume() {
super.onResume();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onPause() {
super.onPause();
} | {
"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 | private void onBack() {
Intent startMain = new Intent(Intent.ACTION_MAIN);
startMain.addCategory(Intent.CATEGORY_HOME);
startMain.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); // //FLAG_ACTIVITY_NEW_TASK
startActivity(startMain);
} | {
"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 |
select country, state, city | private void displayRegion(TextView view,String region,String city,String country) {
StringBuilder sb = new StringBuilder();
if (!TextUtils.isEmpty(city)) {
if(!DefaultValueConstant.OTHER.equals(city)){
sb.append(city);
}
}
if (!TextUtils.isEmpty(region)) {
if (sb.length() == 0 && !Default... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Country> selectAll();",
"@FXML\n private void selectCity(ActionEvent event) throws SQLException {\n Statement stmt = conn.createStatement();\n String city = cityField.getValue().toString();\n ResultSet rs = stmt.executeQuery(\"select * from city where city = \\\"\"+city+\"\\\"\");\n ... | [
"0.65553176",
"0.64543474",
"0.62822086",
"0.625046",
"0.61796284",
"0.6177639",
"0.6041487",
"0.60159355",
"0.599069",
"0.5980087",
"0.5973591",
"0.5944098",
"0.5871746",
"0.58517104",
"0.58500814",
"0.5796049",
"0.5575133",
"0.5568021",
"0.554141",
"0.55098325",
"0.55083066... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void AfOnProgress(int httpHandle, int flag, int progress,
Object user_data) {
} | {
"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) {
AutobiographicalN a = new AutobiographicalN();
a.Ab_or_not(1210);
a.Ab_or_not(12300);
a.Ab_or_not(21200);
} | {
"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 |
Metodo GET y SET | public Connection getCon() {
return con;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SetCommand getSetl();",
"protected abstract Set method_1559();",
"double sety(double y) {\nreturn this.y;\n }",
"public int Gety(){\n\t\treturn y;\n\t}",
"boolean getSet();",
"public void testGetSetY() {\n\t\tassertEquals(testNormal.getY(), 10);\n\t\tassertEquals(testZero.getY(), 0);\n\t\tassertEquals... | [
"0.6580272",
"0.5939659",
"0.58909607",
"0.5839895",
"0.576629",
"0.5702249",
"0.5691211",
"0.5675509",
"0.5655141",
"0.5606208",
"0.55957794",
"0.5565385",
"0.55191106",
"0.55167925",
"0.54985845",
"0.5459265",
"0.54559875",
"0.54526836",
"0.5450388",
"0.54473823",
"0.544738... | 0.0 | -1 |
sets the image of the player | public void setFrame(BufferedImage frame) {
player = frame;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setImage(String userId){\n\t\tImageIcon icon = new ImageIcon(\"image/\" + userId + \".png\");\n\t\ticon.setImage(icon.getImage().getScaledInstance(icon.getIconWidth(),\n\t\ticon.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tplayerImage = icon.getImage();\n\t\tpaint(this.getGraphics());\n\t}",
"private... | [
"0.7332627",
"0.7205135",
"0.7136893",
"0.71182483",
"0.70366865",
"0.7010034",
"0.7003776",
"0.6941757",
"0.68902093",
"0.6871615",
"0.68627226",
"0.68035865",
"0.67263263",
"0.67156315",
"0.66827154",
"0.6654892",
"0.66358715",
"0.66015",
"0.6599278",
"0.65663743",
"0.65465... | 0.67261654 | 13 |
collision top side left right collision not just one rect. | public void tick(LinkedList<GameObject> obj) {
Collision(obj);
KeyInput();
// put animations here to do it while moving and possibly set walking to
// false
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void checkRightCollision(FloatRect x) {\r\n if((int)rect1.left+rect1.width > x.left+x.width ){\r\n centerX+=6;\r\n }\r\n }",
"Rectangle getCollisionRectangle();",
"Rectangle getCollisionRectangle();",
"public void checkTopCollision(FloatRect x){\r\n if((int)rect1.top... | [
"0.71351194",
"0.70269996",
"0.70269996",
"0.7015458",
"0.70105433",
"0.68250525",
"0.6805224",
"0.6694628",
"0.66821253",
"0.66777253",
"0.66775227",
"0.6656887",
"0.6642773",
"0.6637063",
"0.6613543",
"0.65824336",
"0.651957",
"0.6462336",
"0.64503086",
"0.6436175",
"0.6400... | 0.0 | -1 |
sort array to place all possible cannibals at the end of the array and all the numbers that will be consumed at the beginning of the array | public static int findCannibals(int[] a, int q) {
int cannibals = 0;
Arrays.sort(a);
int nextSacrifice = 0;
int nextCannibal = a.length - 1;
// if next number to be eaten is the number that will be doing the eating then there is no one else to eat
while(nextSacrifice != nextCannibal){
if(a[nextCanniba... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void sort() {\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) { // if the first term is larger\n\t\t\t\t\t\t\t\t\t\t\t\t// than the last term, then the\n\t\t\t\t\t\t\t\t\t\t\t\t// temp holds the previo... | [
"0.6818811",
"0.6669157",
"0.66429085",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
"0.6579348",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public UserDtls saveUserDetls(UserDtls userDtls) {
return userDao.saveUserDetls(userDtls);
} | {
"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 |
Created by 2YSP on 2020/4/2. | public interface Aggregate {
public abstract Iterator iterator();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\t... | [
"0.5922936",
"0.5820406",
"0.5580052",
"0.5558236",
"0.5558236",
"0.55319613",
"0.5529116",
"0.55242467",
"0.55112785",
"0.5509481",
"0.5416103",
"0.5385742",
"0.5377344",
"0.533947",
"0.5330527",
"0.53227097",
"0.5311135",
"0.5305772",
"0.5304207",
"0.5303562",
"0.5295152",
... | 0.0 | -1 |
/listadoContactos.stream() .filter(con > "Juan".equals(con.getName())); /Contact contactoJuan = listadoContactos.stream() .filter(con > "Juan".equals(con.getName())) .findAny() .orElse(null); System.out.println("contacto:"+contactoJuan.toString()); | @Command
public void buscar() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\t\r\n\t\tList<Employee> empList = new ArrayList<>();\r\n\t\tempList.add(new Employee(\"Amit\", \"DSFSDF8989\", 67));\r\n\t\tempList.add(new Employee(\"Ranjit\", \"SDFSDF23423\", 63));\r\n\t\tempList.add(new Employee(\"Syamala\", \"SDFSDF23423\", 343));\r\n\t\r\n//\t\tusing ... | [
"0.6555093",
"0.65401334",
"0.63312584",
"0.62719554",
"0.6109771",
"0.6103746",
"0.60913736",
"0.5800687",
"0.57888067",
"0.5777207",
"0.5752249",
"0.5701026",
"0.5672874",
"0.5604761",
"0.5589886",
"0.5534707",
"0.5502062",
"0.5477034",
"0.5474381",
"0.5384985",
"0.53573406... | 0.0 | -1 |
/ access modifiers changed from: protected | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
overridePendingTransition(C0373R.anim.fadein, C0373R.anim.fadeout);
setContentView((int) C0373R.layout.activity_theory);
setSupportActionBar((Toolbar) findViewById(C0373R.C0375id.toolbar));
this... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.73759794",
"0.7041964",
"0.69225365",
"0.6909014",
"0.68461144",
"0.6829186",
"0.6805777",
"0.6583361",
"0.65391046",
"0.6502126",
"0.64913684",
"0.64913684",
"0.64724255",
"0.64384186",
"0.64321566",
"0.64321566",
"0.64287287",
"0.64256746",
"0.641928",
"0.6409303",
"0.64... | 0.0 | -1 |
Called when the activity is first created. | @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.custom_cameraactivity);
mCamera = getCameraInstance();
mCameraPreview = new CameraPreview(this, mCamera);
FrameLayout preview = (FrameLayout) findView... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}",
"@Override\n\tpublic void onActivit... | [
"0.791686",
"0.77270156",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7693263",
"0.7637394",
"0.7637394",
"0.7629958",
"0.76189965",
"0.76189965",
"0.7543775",
"0.7540053",
"0.7540053",
"0.7539505",
"0.75269467",
"0.75147736",
"0.7509639",
"0.7500879",... | 0.0 | -1 |
Helper method to access the camera returns null if it cannot get the camera or does not exist | private Camera getCameraInstance() {
Camera camera = null;
try {
camera = Camera.open();
} catch (Exception e) {
// cannot get camera or does not exist
}
Camera.Parameters params = camera.getParameters();
List<Size> sizes = params.getSupp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getCamera() {\n if (camera == null) {\n try {\n camera = Camera.open();\n params = camera.getParameters();\n } catch (RuntimeException e) {\n\n }\n }\n }",
"Camera getCamera();",
"public static Camera getCameraInstance... | [
"0.8086381",
"0.7866929",
"0.77563626",
"0.7752663",
"0.7752663",
"0.7722658",
"0.77113646",
"0.7495599",
"0.725545",
"0.72223467",
"0.71950525",
"0.71873456",
"0.7136584",
"0.7121217",
"0.7109093",
"0.70724744",
"0.7018855",
"0.698747",
"0.68618405",
"0.6857831",
"0.68287706... | 0.68924576 | 18 |
String pathToExternalStorage = Environment.getExternalStorageDirectory().toString(); File mediaStorageDir = new File( Environment .getExternalStoragePublicDirectory(Environment.), "eKMIS"); | private static File getOutputMediaFile(String namex, Context context) {
String pathToExternalStorage = context.getFilesDir().toString();
File mediaStorageDir = new File(pathToExternalStorage + "/" + "eKMIS");
//if (!appDirectory.isDirectory() || !appDirectory.exists()) //Checks if the dire... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Object getExternalStorageDirectory() {\n \n //User home directory\n String home = System.getProperty(\"user.home\");\n File dir = new File(home+\"/externalStorage/databases/\");\n FileObject myfolder = FileUtil.toFileObject(dir);\n dir.mkdir();\n /*if(... | [
"0.7880218",
"0.78286374",
"0.7740903",
"0.75393575",
"0.7515056",
"0.74080503",
"0.7365565",
"0.7228156",
"0.7190423",
"0.71289396",
"0.70263726",
"0.70103407",
"0.69837874",
"0.69209844",
"0.69076127",
"0.6900262",
"0.688067",
"0.68605673",
"0.6848977",
"0.68094677",
"0.680... | 0.69599646 | 13 |
we will return this Bitmap | public static Bitmap decodeBitmapSize(Bitmap bm, int IMAGE_BIGGER_SIDE_SIZE) {
Bitmap b = null;
//convert Bitmap to byte[]
ByteArrayOutputStream stream = new ByteArrayOutputStream();
bm.compress(Bitmap.CompressFormat.JPEG, 100, stream);
byte[] byteArray = stream.toByteArr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Bitmap getBitmap(){\n return bitmap;\n }",
"public Bitmap get() {\n Throwable throwable2222222;\n Object object;\n block4: {\n boolean bl2 = this.zali;\n if (bl2) return this.zalh;\n Object object2 = this.zalg;\n Object object3 = n... | [
"0.76265",
"0.7625333",
"0.73456615",
"0.7140475",
"0.7138784",
"0.6945943",
"0.69295377",
"0.69079846",
"0.6727862",
"0.669887",
"0.6678649",
"0.66635686",
"0.66499686",
"0.66163325",
"0.65369934",
"0.6449998",
"0.6428907",
"0.6357254",
"0.6353867",
"0.6328714",
"0.62937737"... | 0.0 | -1 |
Ref: If your service is correctly declared in the manifest, and Notification Access is enabled in Security / Sound & Notification, the system will bind to the service using action NotificationListenerService.SERVICE_INTERFACE. For this bind request, the service must return the binder for NotificationListenerService, wh... | @Override
public IBinder onBind(Intent mIntent) {
Log.i(TAG, "onBind");
String action = mIntent.getAction();
Log.d(TAG, "onBind: " + action);
if (SERVICE_INTERFACE.equals(action)) {
Log.d(TAG, "Bound by system");
return super.onBind(mIntent);
} else {... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void bindNcService() {\n Intent intent = new Intent(\"com.miui.notification.NOTIFICATION_CENTER\");\n intent.setPackage(\"com.miui.notification\");\n this.mHasBind = this.mContext.bindServiceAsUser(intent, this.mNcConn, 1, UserHandle.CURRENT);\n String str = TAG;\n Log.i(... | [
"0.6694887",
"0.6653726",
"0.65357286",
"0.65254164",
"0.65194607",
"0.65134245",
"0.65072715",
"0.65072715",
"0.647014",
"0.6462247",
"0.6447235",
"0.64441395",
"0.6426474",
"0.6420969",
"0.64146024",
"0.640969",
"0.6405262",
"0.6397748",
"0.6395546",
"0.63883775",
"0.636815... | 0.6530742 | 3 |
Remove a notification entry from the table if cached Mark inactive if it was an active notification NOTE: The card's active status is as seen in the view and not from the dataset because they may no longer be in sync. | public void remove(StatusBarNotification sbn, boolean active) {
this.ntfcn_items.remove(sbn, active);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeActiveNotification(boolean rescheduled){\r\n\t\ttry{\r\n\t\t\t_notificationActivity.stopTextToSpeechPlayback();\r\n\t\t\tNotification notification = this.getActiveNotification();\r\n\t\t\tif(notification == null){\r\n\t\t\t\tLog.e(_context, \"NotificationViewFlipper.removeActiveNotification() Act... | [
"0.5714834",
"0.56120485",
"0.5528352",
"0.5433714",
"0.54213405",
"0.5386435",
"0.53843457",
"0.5278325",
"0.5268567",
"0.5195596",
"0.5149001",
"0.5095399",
"0.5084478",
"0.5081275",
"0.50683534",
"0.49283218",
"0.49157467",
"0.49038723",
"0.49019727",
"0.4889449",
"0.48878... | 0.5169546 | 10 |
Clear all status bar notifications with matching condensed key (same content) NOTE: Since we dedup, we have only one instance stored for each repeated status bar notification. So when a swipe to clear is attempted, we'll have to remove all duplicates from the status bar | public void clearAll(StatusBarNotification sbn) {
String key = this.ntfcn_items.getCondensedString(sbn);
for (StatusBarNotification asbn: getActiveNotifications()) {
/** skip group headers
if ( ((asbn.getNotification().flags & Notification.FLAG_GROUP_SUMMARY) != 0)) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void clearPersistentNotifications();",
"public void clearStatusIcons();",
"void clearNotifications() throws NoUserSelectedException;",
"void removeOldNotification();",
"public void reset() {\n Log.i(TAG, \"Clearing everything from the notifications table\");\n this.cancelAllNotifications();\n... | [
"0.6174823",
"0.6074434",
"0.575716",
"0.565716",
"0.5636862",
"0.5588826",
"0.5556658",
"0.55394506",
"0.55122197",
"0.5496563",
"0.54738665",
"0.5463095",
"0.54613566",
"0.54488933",
"0.5413837",
"0.54024225",
"0.5368113",
"0.53495294",
"0.53485775",
"0.53469944",
"0.533321... | 0.6730279 | 0 |
Remove everything in the notifier hash table | public void reset() {
Log.i(TAG, "Clearing everything from the notifications table");
this.cancelAllNotifications();
this.ntfcn_items.reset();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeAllEntries() {\n }",
"void removeAllEntries();",
"public void removeAll() {\n _hash = new Hashtable();\n _first = null;\n _last = null;\n }",
"void clearPersistentNotifications();",
"public void removeAllData() {\n\t\tList<T> allData = this.getAllData();\r\n\t\t... | [
"0.69888675",
"0.6876772",
"0.68437207",
"0.6838221",
"0.66933227",
"0.66686183",
"0.6549471",
"0.65327424",
"0.64690775",
"0.6459354",
"0.64556026",
"0.6408736",
"0.6334641",
"0.6298875",
"0.627547",
"0.6269655",
"0.62220603",
"0.62171113",
"0.6179925",
"0.61654675",
"0.6147... | 0.60953164 | 35 |
Add a status bar notification from active notifications to the active table | private boolean addActiveSBN(StatusBarNotification sbn) {
if ( sbn.isOngoing() || !sbn.isClearable() ) {
if (!NotifierConfiguration.cfg_persistent_notifications_enabled) {
Log.i(TAG, "Ongoing or not clearable, ignoring");
return false;
}
Log.i(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showNotification(LBSBundle lbs,int status){\n\t\tScenario scenario = (Scenario) EntityPool.instance(\r\n\t\t\t\t).forId(lbs.getParentId(), lbs.getParentTag());\r\n\t\t\r\n\t\t\r\n\t\t// Set the icon, scrolling text and timestamp\r\n\t\tNotification notification = new Notification(R.drawable.compass25,... | [
"0.6249195",
"0.6045685",
"0.59910476",
"0.59466064",
"0.58699834",
"0.58680767",
"0.58526576",
"0.585054",
"0.58459103",
"0.57980704",
"0.5735238",
"0.5727171",
"0.5710689",
"0.5652914",
"0.5643833",
"0.56323373",
"0.5624356",
"0.5620812",
"0.5553659",
"0.5524466",
"0.552098... | 0.5613905 | 18 |
Sync status bar notifications mark ones that are no longer active as inactive in the table | public void sync_notifications() {
Log.i(TAG,"********** sync_notifications");
if (NotifierConfiguration.cfg_notifier_paused) {
Log.i(TAG, "Notifier paused. Ignoring...");
return;
}
sync_in_progress = true;
/**
* Initially mark everything in no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void markInactive();",
"void statusUpdate(boolean invalid);",
"void disableNotifications();",
"public void clearStatusIcons();",
"private void refreshNotification() {\n String str = this.mCurrentAddedNotiSsid;\n if (str != null) {\n showNotification(str, true, true);\n }\n ... | [
"0.64957654",
"0.5948029",
"0.58678645",
"0.5778727",
"0.57300705",
"0.56905985",
"0.5688683",
"0.5681919",
"0.566084",
"0.56452084",
"0.56330705",
"0.56204814",
"0.56013715",
"0.5575165",
"0.55626345",
"0.5561754",
"0.55545837",
"0.5520692",
"0.5520692",
"0.5489521",
"0.5477... | 0.6388522 | 1 |
Filter all notifications matching search key | public void filter_all(String searchKey) {
ArrayList all = ntfcn_items.filter_active(searchKey);
/** Add a group header */
all.add(0, new NtfcnsDataModel(
null,
"Active Notifications",
null,
null,
null,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void notifySubscribers(Bundle notification) {\n for (ISubscriber subscriber : subscribers) {\n List<SubscriberFilter> filters = subscriber.getFilters();\n\n if (notification.getString(\"notificationType\").equals(subscriber.getNotificationType())) {\n ... | [
"0.61105645",
"0.60532504",
"0.5585941",
"0.5581678",
"0.5566607",
"0.55584973",
"0.5507498",
"0.5428471",
"0.538648",
"0.5383927",
"0.5360388",
"0.53515834",
"0.5344284",
"0.53204584",
"0.53048784",
"0.5299146",
"0.5287067",
"0.5277927",
"0.51921755",
"0.51839834",
"0.517661... | 0.6981889 | 0 |
Filter all notifications from package | public void filter_apps(String pkg, String searchKey) {
ArrayList all = ntfcn_items.filter_active_app(pkg, searchKey);
/** Add a group header */
all.add(0, new NtfcnsDataModel(
null,
"Active Notifications",
null,
null,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection getReceivedNotifications();",
"@Override\n public IntentFilter observerFilter() {\n IntentFilter filter = new IntentFilter();\n filter.addAction(ChannelDatabaseManager.STORE_ANNOUNCEMENT);\n return filter;\n }",
"@Override\n\t... | [
"0.63061047",
"0.6099357",
"0.60777694",
"0.6036354",
"0.595476",
"0.5927471",
"0.5915989",
"0.5892487",
"0.58403605",
"0.5769774",
"0.5741269",
"0.5733194",
"0.5732765",
"0.5699617",
"0.5698731",
"0.56942266",
"0.56808466",
"0.5680193",
"0.5656865",
"0.56244975",
"0.5574735"... | 0.63844216 | 0 |
Build a list of packages from notifications sorted by their app name, and their active count | public TreeMap<String, Integer> build_apps_list() {
return this.ntfcn_items.build_apps_list();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getPackagesCount();",
"public void filter_apps(String pkg, String searchKey) {\n ArrayList all = ntfcn_items.filter_active_app(pkg, searchKey);\n /** Add a group header */\n all.add(0, new NtfcnsDataModel(\n null,\n \"Active Notifications\",\n ... | [
"0.5728202",
"0.5712846",
"0.56081325",
"0.5592357",
"0.5538733",
"0.54933053",
"0.5485445",
"0.54825264",
"0.5468342",
"0.54395",
"0.5431994",
"0.54235876",
"0.53046936",
"0.5241444",
"0.5228365",
"0.52242315",
"0.5198414",
"0.5145432",
"0.51276773",
"0.5100842",
"0.5070433"... | 0.54660326 | 9 |
remove all items from [startposition] in adapter as long as they have the same group headers | public int collapse_group(int startposition) {
ArrayList<NtfcnsDataModel> data = ((Ntfcns_adapter)adapter).getDataSet();
int i = startposition+1;
String group_header = data.get(startposition).getPlaceholder();
Log.i(TAG, "Collapse group: " + group_header);
/** when 'index' i is... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onItemRangeRemoved(int positionStart, int itemCount) {\n\n calculateHeaderIndices();\n }",
"@Override\n public void onGroupCollapsed(int groupPosition) {\n\n }",
"@Override\r\n public void onItemsRemoved(RecyclerView recyclerView, int positionStart,... | [
"0.66059554",
"0.6236259",
"0.61908144",
"0.6177083",
"0.6143263",
"0.60881567",
"0.6086444",
"0.60175675",
"0.5985027",
"0.5982356",
"0.59777015",
"0.5974116",
"0.596904",
"0.5847615",
"0.5822865",
"0.5822638",
"0.58017796",
"0.5773578",
"0.5770347",
"0.5754558",
"0.5742748"... | 0.70348144 | 0 |
Add (previously removed + new items that arrived later)to the arraylist if it matches group header at startposition TODO: What about search view, what about app views?! | public int expand_group(int startposition,
String searchKey) {
ArrayList<NtfcnsDataModel> data = ((Ntfcns_adapter)adapter).getDataSet();
ArrayList<NtfcnsDataModel> items_to_add = new ArrayList<>();
String group_header = data.get(startposition).getPlaceholder();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void updateGroupData() {\n if (!mGroupList.isEmpty()) {\n mAdapter.notifyDataSetChanged();\n // If we did not load 8 groups, we are at the end of the list, so signal\n // not to try to load more groups.\n if (mGroupList.size() - mCurrentAmountShown ... | [
"0.6438976",
"0.6072094",
"0.6038589",
"0.5874551",
"0.5839888",
"0.56962484",
"0.5641189",
"0.5603376",
"0.5573025",
"0.556665",
"0.556047",
"0.5544667",
"0.55389893",
"0.55103266",
"0.54884404",
"0.5480142",
"0.5455394",
"0.54417163",
"0.54357934",
"0.5429198",
"0.53900135"... | 0.617586 | 1 |
Verifies Employee form is displayed | public static void verifyEmployeeFormIsDisplayed() {
By addEmployeeForm = By.xpath("//form[@name='employeeForm']");
String description = "Employee form is displayed";
if (SeleniumUtils.elementIsVisible(addEmployeeForm)) {
addStepToTest("pass", description, "EmployeeForm");
} else {
addStepToTest("fail", d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void displayValidity() {\n if (allValid) spnValid.setText(\"All fields are valid!\");\n else spnValid.setText(\"There are invalid fields. Please go back and check these.\");\n }",
"public void verValidarCandidato()\r\n\t{\r\n\t\tcandidato = new ValidarCandidato(this);\r\n\t\tcandidato.se... | [
"0.61894643",
"0.6161326",
"0.6148698",
"0.605866",
"0.60116917",
"0.6011052",
"0.59668016",
"0.5944752",
"0.5934182",
"0.59277606",
"0.5916848",
"0.5827029",
"0.5815989",
"0.5812431",
"0.57979685",
"0.57897866",
"0.5786623",
"0.5779167",
"0.57633764",
"0.5758988",
"0.5753539... | 0.7580585 | 0 |
Gets the responseCode value for this PortingResult. | public com.singtel.group.manageporting_types.v1.PortNotificationResultCode getResponseCode() {
return responseCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getResponseCode() {\n return responseCode;\n }",
"public int getResponseCode() {\n return this.responseCode;\n }",
"public String getResponseCode() {\n return responseCode;\n }",
"public java.lang.CharSequence getResponseCode() {\n return Respo... | [
"0.7385972",
"0.7367635",
"0.73334813",
"0.7297036",
"0.7292304",
"0.72644526",
"0.7250713",
"0.7250713",
"0.7250713",
"0.71134734",
"0.7101429",
"0.7044036",
"0.7032289",
"0.6940255",
"0.6931786",
"0.6931786",
"0.6931786",
"0.6931786",
"0.6836895",
"0.68310356",
"0.67198646"... | 0.8395873 | 0 |
Sets the responseCode value for this PortingResult. | public void setResponseCode(com.singtel.group.manageporting_types.v1.PortNotificationResultCode responseCode) {
this.responseCode = responseCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setResponseCode(int responseCode) {\n this.responseCode = responseCode;\n }",
"public void setResponseCode(final int responseCode) {\n\t\thandler.responseCode = responseCode;\n\t}",
"public void setResponseCode(java.lang.String responseCode) {\n this.responseCode = response... | [
"0.7839768",
"0.7757371",
"0.7494168",
"0.7262366",
"0.72563326",
"0.71235526",
"0.69304144",
"0.6871521",
"0.6756622",
"0.6723743",
"0.66976804",
"0.66057456",
"0.65965736",
"0.65536964",
"0.6540184",
"0.65381885",
"0.65381885",
"0.6536456",
"0.6536456",
"0.6511984",
"0.6427... | 0.7821367 | 1 |
Gets the rejectionCode value for this PortingResult. | public java.lang.String getRejectionCode() {
return rejectionCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRejectionCode(java.lang.String rejectionCode) {\n this.rejectionCode = rejectionCode;\n }",
"public Rejection getRejectionReason() {\n\t\treturn resolutionReason;\n\t}",
"public String getRejectionMessage() {\r\r\n return rejectionMessage;\r\r\n }",
"public com.singtel.grou... | [
"0.6633213",
"0.65715283",
"0.65461266",
"0.6474458",
"0.60996604",
"0.5939211",
"0.574259",
"0.5661201",
"0.56405735",
"0.5545691",
"0.5517418",
"0.55117935",
"0.5443502",
"0.5443502",
"0.5443502",
"0.5443502",
"0.54387933",
"0.54387933",
"0.54387933",
"0.54387933",
"0.54101... | 0.78547955 | 0 |
Sets the rejectionCode value for this PortingResult. | public void setRejectionCode(java.lang.String rejectionCode) {
this.rejectionCode = rejectionCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getRejectionCode() {\n return rejectionCode;\n }",
"public void setRejectionMessage(String rejectionMessage) {\r\r\n this.rejectionMessage = rejectionMessage;\r\r\n }",
"public void setResponseCode(com.singtel.group.manageporting_types.v1.PortNotificationResultCode r... | [
"0.68250513",
"0.63365185",
"0.5996903",
"0.5795627",
"0.5592353",
"0.5553734",
"0.55278337",
"0.5450927",
"0.5440197",
"0.54318064",
"0.5429268",
"0.537858",
"0.53670454",
"0.5323164",
"0.52922845",
"0.52922845",
"0.52922845",
"0.52922845",
"0.5291572",
"0.5282165",
"0.52418... | 0.7974214 | 0 |
Gets the reasonText value for this PortingResult. | public java.lang.String getReasonText() {
return reasonText;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String textReason() {\r\n return getParm(2).trim();\r\n }",
"public java.lang.String getReason() {\n java.lang.Object ref = reason_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n ... | [
"0.761601",
"0.7332379",
"0.7301948",
"0.7300246",
"0.7288654",
"0.7282951",
"0.72803575",
"0.72717315",
"0.7260762",
"0.7246573",
"0.7246425",
"0.7246425",
"0.7246425",
"0.7246425",
"0.7231953",
"0.71795344",
"0.7170529",
"0.7165816",
"0.7151677",
"0.7148037",
"0.7142661",
... | 0.7996366 | 0 |
Sets the reasonText value for this PortingResult. | public void setReasonText(java.lang.String reasonText) {
this.reasonText = reasonText;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setReason(String value) {\n this.reason = value;\n }",
"public void setReason(String reason);",
"public java.lang.String getReasonText() {\n return reasonText;\n }",
"public void setReason(java.lang.String reason) {\r\n this.reason = reason;\r\n }",
"@Override\r\n\... | [
"0.6857645",
"0.68537897",
"0.6680312",
"0.66343987",
"0.65284675",
"0.6523276",
"0.64980644",
"0.6477294",
"0.6477294",
"0.6477294",
"0.63301945",
"0.630216",
"0.62853926",
"0.6225906",
"0.6180419",
"0.6180419",
"0.60434914",
"0.58910686",
"0.58825475",
"0.588142",
"0.587864... | 0.7779509 | 0 |
Return type metadata object | public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MetadataType getType();",
"public MetadataType getType() {\n return type;\n }",
"public MilanoTypeMetadata.TypeMetadata getMetadata()\n {\n if (typeMetadata == null) {\n return null;\n }\n\n return typeMetadata;\n }",
"private Metadata getMetadata(RubyModule type)... | [
"0.7969707",
"0.7373198",
"0.7358018",
"0.7090138",
"0.67353225",
"0.67259765",
"0.66725683",
"0.65644145",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",... | 0.0 | -1 |
Muestro el dialogo para que el usuario ingrese el nombre del item | @Override
public String InnerAddNewItem() throws ScheduleException
{
String item = form.ShowInputDialog("Nombre del nuevo item:");
// Si el usuario no cancelo el dialogo, agrego el item
if(item != null)
{
schedule.addItem(item);
}
return item;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void usernameTakenDialog() {\n Dialog dialog = new Dialog(\"Username taken\", cloudSkin, \"dialog\") {\n public void result(Object obj) {\n System.out.println(\"result \" + obj);\n }\n };\n dialog.text(\"This username has already been taken, try a n... | [
"0.64899665",
"0.64631414",
"0.6435421",
"0.63005203",
"0.62656826",
"0.6227161",
"0.61686915",
"0.6135492",
"0.6114925",
"0.6051482",
"0.6006634",
"0.59859335",
"0.59672934",
"0.5958615",
"0.59269655",
"0.5925597",
"0.592364",
"0.59033984",
"0.59000266",
"0.58872646",
"0.588... | 0.6159559 | 7 |
Muestro el dialogo de seleccion de la nueva accion | @Override
public Action ShowEditActionDialog() throws ScheduleException
{
return EditNonLockingActionDialog.showDialog(form, schedule.getTransactions(), schedule.getItems());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verSeleccionarAccion(String entidad)\r\n\t{\r\n\t\tseleccionaraccion = new SeleccionarAccion(this, entidad);\r\n\t\tseleccionaraccion.setVisible(true);\r\n\t}",
"public void dialogoAgregarUsuario() {\n vAgregarUsuario = new V_AgregarUsuario(new JFrame(), true);\n vAgregarUsuario.setVisi... | [
"0.6886448",
"0.6760999",
"0.6748512",
"0.66334605",
"0.6604073",
"0.657628",
"0.6575106",
"0.65697896",
"0.6559863",
"0.65183836",
"0.646856",
"0.6461423",
"0.6457253",
"0.6438637",
"0.642477",
"0.6423846",
"0.64103246",
"0.64043826",
"0.6396094",
"0.63880455",
"0.63766766",... | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79041183",
"0.7805934",
"0.77659106",
"0.7727251",
"0.7631684",
"0.7621701",
"0.75839096",
"0.75300384",
"0.74873656",
"0.7458051",
"0.7458051",
"0.7438486",
"0.742157",
"0.7403794",
"0.7391802",
"0.73870087",
"0.7379108",
"0.7370295",
"0.7362194",
"0.7355759",
"0.73454577... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.