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 |
|---|---|---|---|---|---|---|
Inflates the views in the layout. | private void initializeViews(Context context) {
LayoutInflater inflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
inflater.inflate(R.layout.field_spinner_field, this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void inflateViews() {\n toolbar = findViewById(R.id.toolbar);\n viewPager = findViewById(R.id.view_pager);\n tabLayout = findViewById(R.id.tab_layout);\n toolbar.setTitle(\"ChatApp\");\n setSupportActionBar(toolbar);\n }",
"private void prepareViews() {\n mTex... | [
"0.7179967",
"0.6891208",
"0.6869957",
"0.673323",
"0.67115545",
"0.6709289",
"0.66335875",
"0.6609485",
"0.65706015",
"0.6561775",
"0.65425944",
"0.65248865",
"0.6515647",
"0.65140533",
"0.65073526",
"0.6502608",
"0.64989996",
"0.64522207",
"0.6397768",
"0.6395079",
"0.63887... | 0.64313877 | 18 |
Custom constructor that initializes basic fields | public CohabitRequest(Flatmate flatmate,boolean connection, Date formatter,HouseAd houseAd) {
this.connection = connection;
this.dateOfRequest = formatter;
this.flatmate = flatmate;
this.houseAd = houseAd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }",
"@Override public void init()\n\t\t{\n\t\t}",
"public Field() {\r\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\r\n\t\tpublic void init() {\n\t... | [
"0.737897",
"0.7297146",
"0.715561",
"0.7012463",
"0.69937235",
"0.6967452",
"0.69174325",
"0.6865525",
"0.68332887",
"0.682098",
"0.67969435",
"0.6788685",
"0.67631984",
"0.6753077",
"0.67416847",
"0.674122",
"0.6724523",
"0.67184913",
"0.6706706",
"0.6700454",
"0.66962296",... | 0.0 | -1 |
Returns the request id | public long getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getRequestID();",
"public String getIdrequest() {\r\n\t\treturn idrequest;\r\n\t}",
"public String getCurrentRequestId()\n\t{\n\t\tString reqID = (String) MDC.get(REQUEST_ID);\n\t\tif (reqID == null || \"\".equals(reqID))\n\t\t{\n\t\t\treqID = \"RID_\" + UUID.randomUUID().toString();\n\t\t\tMD... | [
"0.87076247",
"0.80715054",
"0.7794431",
"0.7681566",
"0.7151808",
"0.7074207",
"0.70520425",
"0.6966608",
"0.6966608",
"0.6898109",
"0.6872903",
"0.681148",
"0.680027",
"0.67982846",
"0.6785467",
"0.6749534",
"0.6741687",
"0.6628567",
"0.66280586",
"0.6602461",
"0.6572978",
... | 0.0 | -1 |
Sets the request id | public void setId(long id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIdrequest(String idrequest) {\r\n\t\tthis.idrequest = idrequest;\r\n\t}",
"void setRequestID(java.lang.String requestID);",
"public void setR_Request_ID (int R_Request_ID);",
"public Builder setRequesterId(long value) {\n\n requesterId_ = value;\n bitField0_ |= 0x00000040... | [
"0.8542474",
"0.734773",
"0.700146",
"0.66728",
"0.6652897",
"0.6631632",
"0.6629421",
"0.65674067",
"0.64706564",
"0.6463326",
"0.6463326",
"0.6463326",
"0.6463326",
"0.6463326",
"0.6463326",
"0.6463326",
"0.6407393",
"0.639115",
"0.63873875",
"0.6358539",
"0.6353755",
"0.... | 0.0 | -1 |
Sets the connection state | public void setConnection(boolean connection) {
this.connection = connection;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setConnectionStatus( int status )\n {\n }",
"public void setConnection(Connection conn);",
"public void connectionStateChanged( ConnectionState state ) {\n connectionStateChanged( getNativeObject(), state );\n }",
"public void setConn(Connection conn) {this.conn = conn;}"... | [
"0.73192257",
"0.7048338",
"0.6811677",
"0.67750555",
"0.66702366",
"0.6599046",
"0.6591148",
"0.653852",
"0.64179575",
"0.6409231",
"0.6368101",
"0.6323459",
"0.63212734",
"0.62873566",
"0.6280532",
"0.6272547",
"0.6269906",
"0.62649894",
"0.6259302",
"0.6245338",
"0.6232804... | 0.62528676 | 19 |
Returns the date the request is made | public Date getDateOfRequest() {
return dateOfRequest;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Date getRequestDate();",
"public Date getRequestDate() { return requestDate; }",
"Date getRequestedAt();",
"public Long getRequestDate() {\n return requestDate;\n }",
"public java.util.Calendar getRequestDate() {\r\n return requestDate;\r\n }",
"public Date getReqDate() {\r\n\t... | [
"0.8659885",
"0.8111069",
"0.8078052",
"0.7966741",
"0.7741009",
"0.7647711",
"0.74094236",
"0.7311381",
"0.7263544",
"0.7219057",
"0.7145876",
"0.7007811",
"0.69862974",
"0.69839776",
"0.69658035",
"0.69064426",
"0.67177844",
"0.6648358",
"0.66387385",
"0.66387385",
"0.65886... | 0.80871356 | 2 |
/ Sets the request date | public void setDateOfRequest(Date dateOfRequest) {
this.dateOfRequest = dateOfRequest;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRequestDate(Date requestDate);",
"public void setRequestDate(Date requestDate) { this.requestDate = requestDate; }",
"public void setRequestDate(Long requestDate) {\n this.requestDate = requestDate;\n }",
"public void setRequestDate(java.util.Calendar requestDate) {\r\n this.r... | [
"0.89154047",
"0.8808884",
"0.7962245",
"0.78940564",
"0.78911775",
"0.78899145",
"0.7487803",
"0.7399739",
"0.7308724",
"0.7305466",
"0.72527486",
"0.7243109",
"0.72389054",
"0.72382903",
"0.7236606",
"0.71976966",
"0.7130737",
"0.7075096",
"0.7072722",
"0.7067844",
"0.70548... | 0.80709964 | 2 |
Returns the flatmate that made the request | public Flatmate getFlatmate() {
return flatmate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getFurnitureRequest(){\n return furnitureRequest;\n }",
"protected TrellisRequest getRequest() {\n return request;\n }",
"public static String getRequest() {\n return request;\n }",
"public QueryDoctor getRequest() {\r\n return localRequest;\r\n ... | [
"0.5639264",
"0.55408746",
"0.5540146",
"0.5516047",
"0.54877853",
"0.5461052",
"0.5438874",
"0.5437907",
"0.5423562",
"0.539767",
"0.53773266",
"0.5348316",
"0.5348316",
"0.5341018",
"0.53375685",
"0.53375685",
"0.53375685",
"0.53375685",
"0.53375685",
"0.53375685",
"0.53375... | 0.63133717 | 0 |
Sets the flatmate that made the request | public void setFlatmate(Flatmate flatmate) {
this.flatmate = flatmate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Flatmate getFlatmate() {\r\n\t\treturn flatmate;\r\n\t}",
"public void setCurrentRequest(Request request) {\n if (request != null) {\n this.currentRequest = request;\n goingTo = currentRequest.getRequestToFloor();\n currentFloor = currentRequest.getRequestFromFloor(... | [
"0.5677221",
"0.56287146",
"0.5284165",
"0.5270907",
"0.5198267",
"0.5166916",
"0.5119871",
"0.50949425",
"0.504937",
"0.50056845",
"0.49788395",
"0.49760047",
"0.4973928",
"0.4973928",
"0.49737602",
"0.4967878",
"0.4967878",
"0.4967878",
"0.4967878",
"0.4967878",
"0.4967878"... | 0.64740795 | 0 |
Returns the houseAd for which the request is made | public HouseAd getHouseAd() {
return houseAd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Ad> individualAd(String adId);",
"public int getAd(){\n\t\treturn ad;\n\t}",
"public House getHouse() {\r\n return this.house;\r\n }",
"long getAdId();",
"@Override\n\tpublic House getHouse() {\n\t\treturn house;\n\t}",
"public String getHouseAddr() {\n return houseAddr;\n }",
... | [
"0.6016438",
"0.59623945",
"0.5661663",
"0.5604825",
"0.55007696",
"0.5492437",
"0.542016",
"0.5405438",
"0.53903115",
"0.537959",
"0.5359582",
"0.52932197",
"0.5273439",
"0.5245739",
"0.52280366",
"0.5227141",
"0.52105683",
"0.51987904",
"0.51553494",
"0.5102355",
"0.5093763... | 0.7311021 | 0 |
Returns the state of the request at any time | public RequestState getState() {
return state;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getRequestState() {\n\t\treturn _tempNoTiceShipMessage.getRequestState();\n\t}",
"ResponseState getState();",
"State getState();",
"State getState();",
"State getState();",
"State getState();",
"public List <State> getRequest ()\n {\n return request;\n }",
"Object ... | [
"0.779574",
"0.7554715",
"0.69801736",
"0.69801736",
"0.69801736",
"0.69801736",
"0.69764274",
"0.69421387",
"0.6689405",
"0.66406745",
"0.66406745",
"0.66394526",
"0.66394526",
"0.66394526",
"0.66394526",
"0.6634516",
"0.66186273",
"0.66186273",
"0.66186273",
"0.66186273",
"... | 0.81619895 | 0 |
Sets a state for the request | public void setState(RequestState state) {
this.state = state;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRequestState(int requestState) {\n\t\t_tempNoTiceShipMessage.setRequestState(requestState);\n\t}",
"public void setState(int state);",
"public void setState(int state);",
"void setState(int state);",
"void setState(Object state);",
"public void setState(String state);",
"public void setS... | [
"0.75638926",
"0.74796295",
"0.74796295",
"0.74039096",
"0.73787874",
"0.73734105",
"0.73072934",
"0.73072934",
"0.73019236",
"0.7282483",
"0.7282483",
"0.7282483",
"0.7282483",
"0.7282483",
"0.7282483",
"0.72663534",
"0.7242571",
"0.7242335",
"0.7227176",
"0.72116923",
"0.71... | 0.863594 | 0 |
This will add a list of a square and it's possible moves to the array of possible moves this square can make | public void add_to_future_moves(int id, int total_moves) {
ArrayList<Integer> temp_move = new ArrayList<>();
temp_move.add(id);
temp_move.add(total_moves);
future_moves.add(temp_move);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static List<Move> generateLegalMoves(Position pos) {\n\t\tList<Move> moves = new ArrayList<>();\n\n\t\t// for (int square : pos.pieces) {\n\t\t// \tif (pos.pieces.size() > 32) {\n\t\t// \t\tSystem.out.println(\"problem\" + pos.pieces.size());\n\t\t// \t}\n\t\t// \tif (pos.at(square) != 0 && Piece.isColor(pos.at(sq... | [
"0.73159987",
"0.6958912",
"0.6754738",
"0.6716116",
"0.6585435",
"0.6570523",
"0.6500627",
"0.6453888",
"0.6447292",
"0.64126515",
"0.6383621",
"0.6381447",
"0.637297",
"0.6285045",
"0.6274128",
"0.6260932",
"0.6252288",
"0.623984",
"0.6219814",
"0.62142235",
"0.6210731",
... | 0.0 | -1 |
Checks if there are moves left in the future moves array | public boolean more_moves() {
if (future_moves.size() > 0) {
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean hasPossibleMove()\n {\n for(int i=0; i<FieldSize; ++i)\n {\n for(int j=1; j<FieldSize; ++j)\n {\n if(field[i][j] == field[i][j-1])\n return true;\n }\n }\n for(int j=0; j<FieldSize; ++j)\n {\n ... | [
"0.71233374",
"0.6872144",
"0.68549615",
"0.66759056",
"0.6671601",
"0.6663728",
"0.6653101",
"0.66525847",
"0.6644117",
"0.66018045",
"0.65829426",
"0.6568242",
"0.6558913",
"0.6525442",
"0.6498974",
"0.64878374",
"0.6479056",
"0.6473235",
"0.6452549",
"0.6451787",
"0.643437... | 0.74581385 | 0 |
Returns and removes the next move in the future moves array | public int get_next(boolean optimized) {
int id = future_moves.get(0).get(0);
future_moves.remove(0);
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void deletePrevMoves() {\n this.prevMoves = \"\";\n }",
"public Player nextMove() {\n\t\treturn null;\n\t\t\n\t}",
"private E remove(){\n E tmp = array[0];\n swap(0,--lastPosition);\n array[lastPosition] = null;\n trickleDown(0);\n array = Arrays.copyOfRange... | [
"0.6591159",
"0.6446282",
"0.6116762",
"0.6079544",
"0.60685754",
"0.6051778",
"0.5928182",
"0.5906874",
"0.58903676",
"0.5869143",
"0.586844",
"0.5861304",
"0.5855508",
"0.5846976",
"0.5842455",
"0.5840757",
"0.5823187",
"0.58228546",
"0.5820969",
"0.57908857",
"0.5790304",
... | 0.59396946 | 6 |
Sorts the future moves from least possible next moves to most | public void order_moves() {
for (int i = 0; i < future_moves.size(); i += 1) {
ArrayList<Integer> curr_smallest = future_moves.get(i);
int smallest = i;
for (int j = i; j < future_moves.size(); j += 1) {
ArrayList<Integer> curr_checking = future_moves.get(j);
if (curr_checking.get(1) < curr_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sortSpeeds() {\n\n//\t\tSystem.out.println(\"BEGIN: SORT SPEEDS\");\n\t\tthis.printMoves();\n\n\t\tArrayList<Move> temp = new ArrayList<Move>();\n\t\tint i = 1;\n\t\tint x = 0;\n\t\tboolean y = true;\n\n\t\ttemp.add(niceMoves.get(0));\n\t\tint size = niceMoves.size();\n\n\t\twhile (i < niceMoves.size()... | [
"0.64719415",
"0.6157784",
"0.5967555",
"0.5883806",
"0.5828911",
"0.5825123",
"0.5793585",
"0.5733829",
"0.5726151",
"0.5710859",
"0.5685815",
"0.5678081",
"0.565124",
"0.5630895",
"0.56204367",
"0.55794173",
"0.5565441",
"0.556517",
"0.55651444",
"0.5554436",
"0.5527443",
... | 0.7634582 | 0 |
Draw the empty square | public void draw_square(Graphics g) {
g.setColor(blank);
g.fillRect(x_origin, y_origin, square_size, square_size);
g.setColor(Color.black);
g.drawRect(x_origin, y_origin, square_size, square_size);
Font font = new Font("Courier New", Font.BOLD, square_size / 4);
g.setFont(font);
g.setColor(Color.bla... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void displayEmpty() {\n if (strokeWeight == 0)\r\n noStroke();\r\n else\r\n stroke(0, 0, 0);\r\n strokeWeight(strokeWeight);\r\n fill(boxColour);\r\n rect(x, y, w, h, 7);\r\n }",
"void displayEmptySquare(Button bu... | [
"0.7805342",
"0.6994247",
"0.677227",
"0.6772007",
"0.67656106",
"0.67353076",
"0.66834426",
"0.6664152",
"0.6658056",
"0.6611187",
"0.6598909",
"0.656765",
"0.65555394",
"0.653012",
"0.65300685",
"0.64878917",
"0.6484529",
"0.6460076",
"0.64535373",
"0.64512366",
"0.6450945"... | 0.69657266 | 2 |
Draw a blue square | public void fill_square(Graphics g) {
g.setColor(working);
g.fillRect(x_origin, y_origin, square_size, square_size);
//Outline the square
g.setColor(Color.black);
g.drawRect(x_origin, y_origin, square_size, square_size);
Font font = new Font("Courier New", Font.BOLD, square_size / 4);
g.setFont(font... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void blue() {\n g2.setPaint(Color.blue);\r\n }",
"public void drawRect(int x, int y, int width, int height, int color);",
"@Override\r\n\tpublic void render(Graphics g) {\n\t\tg.setColor(Color.yellow);\r\n\t\tg.fillRect((int) getX(), (int) getY(), 5, 10);\r\n\t}",
"private void drawSquare(in... | [
"0.691582",
"0.68678296",
"0.68120104",
"0.6713092",
"0.67027056",
"0.6700165",
"0.6690936",
"0.6674899",
"0.6645613",
"0.6548461",
"0.65446943",
"0.65311384",
"0.6499326",
"0.6465455",
"0.6461167",
"0.64581186",
"0.6398192",
"0.63847774",
"0.6377853",
"0.6357933",
"0.6353236... | 0.5954819 | 88 |
Draw a green square | public void solved_square(Graphics g) {
g.setColor(success);
g.fillRect(x_origin, y_origin, square_size, square_size);
//Outline the square
g.setColor(Color.black);
g.drawRect(x_origin, y_origin, square_size, square_size);
Font font = new Font("Courier New", Font.BOLD, square_size / 4);
g.setFont(fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.green);\r\n\t\tg.fillRect(getX(), getY(), getWidth(), getHeight());\r\n\t}",
"@Override\r\n\tpublic void render(Graphics g) {\n\t\tg.setColor(Color.yellow);\r\n\t\tg.fillRect((int) getX(), (int) getY(), 5, 10);\r\n\t}",
"public void green() {\... | [
"0.7626913",
"0.7366694",
"0.7208896",
"0.70362765",
"0.7034191",
"0.7028597",
"0.701377",
"0.6958045",
"0.6920332",
"0.6919958",
"0.6881876",
"0.6880449",
"0.6850022",
"0.6841927",
"0.6763467",
"0.6751853",
"0.67303497",
"0.6673053",
"0.66534215",
"0.65864486",
"0.6583347",
... | 0.62803537 | 52 |
Draw a red square | public void fail_square(Graphics g) {
g.setColor(fail);
g.fillRect(x_origin, y_origin, square_size, square_size);
//Outline the square
g.setColor(Color.black);
g.drawRect(x_origin, y_origin, square_size, square_size);
Font font = new Font("Courier New", Font.BOLD, square_size / 4);
g.setFont(font);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void render(Graphics g) {\n\t\tg.setColor(Color.yellow);\r\n\t\tg.fillRect((int) getX(), (int) getY(), 5, 10);\r\n\t}",
"public void red() {\n g2.setPaint(Color.red);\r\n }",
"public void drawRect(int x, int y, int width, int height, int color);",
"private void drawSquare(Grap... | [
"0.6987577",
"0.6904939",
"0.68900317",
"0.68560874",
"0.6852258",
"0.6848727",
"0.682077",
"0.6797176",
"0.67906564",
"0.6750934",
"0.67287713",
"0.66696036",
"0.6627625",
"0.66153455",
"0.661323",
"0.66033846",
"0.654278",
"0.65187466",
"0.6497309",
"0.64812547",
"0.6464331... | 0.63696134 | 27 |
Created by doods on 24/05/14. | public interface IController {
public void onActivityPause();
public void onActivityResume(Activity activity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpubl... | [
"0.5976468",
"0.58848935",
"0.5834236",
"0.5778343",
"0.57625896",
"0.57244515",
"0.57244515",
"0.5713041",
"0.5675261",
"0.56679267",
"0.5625885",
"0.56224173",
"0.5618927",
"0.56169224",
"0.55990857",
"0.557648",
"0.5567002",
"0.5564696",
"0.5556028",
"0.55539405",
"0.55387... | 0.0 | -1 |
index of the last element after addLast to array Member functions Constructor | public ArrayDeque() {
size = 0;
array = (T[]) new Object[8];
nextFirst = 0;
nextLast = 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getLastIndex() {\n return lastIndex;\n }",
"protected int lastIdx() {\n return arrayIndex(currentWindowIndex() - 1);\n }",
"public U getLast(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(numElems-1)... | [
"0.6784529",
"0.6719329",
"0.67043775",
"0.6690935",
"0.6488681",
"0.6406943",
"0.6386872",
"0.6375129",
"0.6358322",
"0.6349848",
"0.6265959",
"0.62086236",
"0.6207702",
"0.6161694",
"0.61341476",
"0.61299706",
"0.6126702",
"0.61073285",
"0.6101736",
"0.60681874",
"0.6045596... | 0.0 | -1 |
Adds an item of type T to the front of the deque. | @Override
public void addFirst(T item) {
if (size >= array.length) {
resize(size * 2);
array[nextFirst] = item;
nextFirst = minusOne(nextFirst);
} else {
array[nextFirst] = item;
nextFirst = minusOne(nextFirst);
}
size += 1;... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void push_front(T element);",
"void pushFront(T value) throws ListException;",
"public void addFirst(T item) {\n if (size == 0) {\n array[front] = item;\n size++;\n return;\n }\n\n this.checkReSizeUp();\n front--;\n this.updatePointer()... | [
"0.76653254",
"0.7608786",
"0.72155404",
"0.71909845",
"0.69492555",
"0.6936642",
"0.6896801",
"0.6894149",
"0.681481",
"0.6812284",
"0.6769437",
"0.6758772",
"0.6743726",
"0.6724955",
"0.667287",
"0.666424",
"0.6661174",
"0.6624106",
"0.6613077",
"0.657688",
"0.6575139",
"... | 0.6023241 | 86 |
Adds an item of type T to the back of the deque. | @Override
public void addLast(T item) {
if (size >= array.length) {
resize(size * 2);
array[nextLast] = item;
nextLast = plusOne(nextLast);
} else {
array[nextLast] = item;
nextLast = plusOne(nextLast);
}
size += 1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public AmortizedDeque<T> pushBack(T t) {\n return new AmortizedDeque<>(head, tail.pushFront(t));\n }",
"void pushBack(T value) throws ListException;",
"public void uncheckedPushBack(IClause c) {\n back++;\n if (back >= tab.length)\n back = 0;\n tab[back] = c;\n\... | [
"0.76808846",
"0.7231887",
"0.6908817",
"0.66857296",
"0.66857296",
"0.66625184",
"0.65647054",
"0.6480525",
"0.64711374",
"0.6450738",
"0.6433028",
"0.6426333",
"0.64201796",
"0.640143",
"0.6371829",
"0.63710946",
"0.6367877",
"0.6352955",
"0.63514155",
"0.63123316",
"0.6308... | 0.6141666 | 35 |
Returns true if deque is empty, false otherwise. | @Override
public boolean isEmpty() {
if (size == 0) {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isEmpty() { return (dequeSize == 0); }",
"public boolean is_empty() {\n\t\tif (queue.size() <= 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isFull() {\n int nexttail = (tail + 1 == queue.length) ? 0 : tail + 1;\n return (nexttail ==... | [
"0.8854925",
"0.80876863",
"0.79503727",
"0.7904947",
"0.78612673",
"0.7833772",
"0.781268",
"0.7812589",
"0.7759501",
"0.77509296",
"0.77509296",
"0.77413565",
"0.772544",
"0.77151656",
"0.7703123",
"0.76915765",
"0.7689222",
"0.7687638",
"0.76810026",
"0.7650832",
"0.762982... | 0.0 | -1 |
Returns the number of items in the deque. | @Override
public int size() {
return size;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int size() { return dequeSize; }",
"public int size() {\n \t\n \tint i = 0;\n \t\n \twhile(this.front != null) {\n \t\ti = i+1;\n \t\tthis.front = this.front.next; \n \t}\n \t\n \treturn i;\n \t\n }",
"public int size() {\r\n if (NumItems > Integer.MAX_VALUE) {\r\... | [
"0.7531959",
"0.74891865",
"0.74346024",
"0.74038607",
"0.7391367",
"0.7380795",
"0.7332404",
"0.72511864",
"0.7242678",
"0.7238243",
"0.7216901",
"0.7189704",
"0.7156935",
"0.7153938",
"0.7143737",
"0.71177757",
"0.711418",
"0.7107214",
"0.7101098",
"0.7096593",
"0.708745",
... | 0.0 | -1 |
Prints the items in the deque from first to last, separated by a space. | @Override
public void printDeque() {
int position = plusOne(nextFirst);
for (int i = 0; i < size; i += 1) {
System.out.print(array[position]);
System.out.print(' ');
position = plusOne(position);
}
System.out.print('\n');
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void printDeque() {\n int index = moveForward(nextFirst, 1);\n for (int count = 1; count <= size; count++) {\n System.out.print(items[index] + \" \");\n index = moveForward(index, 1);\n }\n }",
"public void printDeque() {\n for (int i = 0... | [
"0.8632297",
"0.8365677",
"0.83193064",
"0.8188282",
"0.78140026",
"0.73131996",
"0.7305474",
"0.7289951",
"0.713598",
"0.7089153",
"0.7052796",
"0.699586",
"0.689655",
"0.6815923",
"0.67775106",
"0.6709814",
"0.6599341",
"0.65766287",
"0.65223676",
"0.6508538",
"0.64730924",... | 0.8451928 | 1 |
Removes and returns the item at the front of the deque. If no such item exists, returns null. | @Override
public T removeFirst() {
if (size == 0) {
return null;
}
int position = plusOne(nextFirst);
T itemToReturn = array[position];
array[position] = null;
nextFirst = position;
size -= 1;
if ((double)size / array.length < 0.25 && arr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic E dequeueFront() {\n\t\tif(isEmpty()) return null;\r\n\t\tE value = data[frontDeque];\r\n\t\tfrontDeque = (frontDeque + 1)% CAPACITY;\r\n\t\tsizeDeque--;\r\n\t\treturn value;\r\n\t}",
"public T removeFirst() {\r\n \r\n if (size == 0) {\r\n return null;\r\n }\r\n \r\... | [
"0.7839747",
"0.7497113",
"0.74878633",
"0.74820894",
"0.7468306",
"0.7446074",
"0.7426977",
"0.7418877",
"0.7408138",
"0.73895466",
"0.73877025",
"0.73752636",
"0.73675805",
"0.73450375",
"0.72869813",
"0.72760683",
"0.7266007",
"0.72238684",
"0.7190471",
"0.7185583",
"0.718... | 0.0 | -1 |
Removes and returns the item at the back of the deque. If no such item exists, returns null. | @Override
public T removeLast() {
if (size == 0) {
return null;
}
int position = minusOne(nextLast);
T itemToReturn = array[position];
array[position] = null;
nextLast = position;
size -= 1;
if ((double)size / array.length < 0.25 && array... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public E dequeue() {\n if (isEmpty()) return null; //nothing to remove.\n E item = first.item;\n first = first.next; //will become null if the queue had only one item.\n n--;\n if (isEmpty()) last = null; // special case as the queue is now empty. \n return item;\n }"... | [
"0.7662208",
"0.763256",
"0.75342417",
"0.75311816",
"0.74468106",
"0.74401367",
"0.74336505",
"0.7420663",
"0.74174297",
"0.7378837",
"0.73527694",
"0.7342326",
"0.7333804",
"0.7313575",
"0.72799766",
"0.72794306",
"0.7274808",
"0.72710633",
"0.7269259",
"0.72641116",
"0.726... | 0.0 | -1 |
Gets the item at the given index, where 0 is the front, 1 is the next item, and so forth. If no such item exists, returns null. | @Override
public T get(int index) {
if (index < 0 || index >= size) {
return null;
}
int position = index + plusOne(nextFirst);
if (position >= array.length) {
position -= array.length;
return array[position];
} else {
return ar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Item get(int index) {\n StuffNode ptr = sentinel;\n int ind = 0;\n if ((index + 1 > this.size()) || this.isEmpty() ) {\n return null;\n }\n while (ind <= index) {\n ptr = ptr.next;\n ind += 1;\n }\n return ptr.item;\n }",
... | [
"0.7823101",
"0.7650914",
"0.7553744",
"0.74822664",
"0.74683684",
"0.7439387",
"0.738369",
"0.7360027",
"0.73100555",
"0.72905946",
"0.7253186",
"0.7194812",
"0.71941936",
"0.7178792",
"0.7146097",
"0.7136892",
"0.7110649",
"0.7040121",
"0.70225614",
"0.7001472",
"0.69933444... | 0.73343885 | 8 |
Helper function to compute the index immediately after an index. | private int plusOne(int index) {
if (index + 1 >= array.length) {
return 0;
} else {
return index + 1;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}",
"public abstract long getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",... | [
"0.6911384",
"0.6849182",
"0.6700981",
"0.6700981",
"0.6700981",
"0.6700981",
"0.6700981",
"0.6700981",
"0.6700981",
"0.6700981",
"0.6700981",
"0.6700981",
"0.6700981",
"0.6700981",
"0.6700981",
"0.65970117",
"0.6527231",
"0.6527231",
"0.6527231",
"0.6493031",
"0.64435583",
... | 0.5907889 | 61 |
Helper function to compute the index immediately before an index. | private int minusOne(int index) {
if (index - 1 < 0) {
return array.length - 1;
} else {
return index - 1;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int currentFirstIndexSetRelativeToZero() {\n return calculateIndexRelativeToZero(currentFirstIndexSet());\n }",
"private int getRealIndex()\r\n\t{\r\n\t\treturn index - 1;\r\n\t}",
"private int getLeftOf(int index) {\n // TODO: YOUR CODE HERE\n return index * 2;\n }",
"protected... | [
"0.6610206",
"0.63115853",
"0.62951225",
"0.6258793",
"0.623558",
"0.6163086",
"0.6163086",
"0.6163086",
"0.6163086",
"0.6163086",
"0.6163086",
"0.6163086",
"0.6163086",
"0.6163086",
"0.6163086",
"0.6163086",
"0.6163086",
"0.6163086",
"0.6144622",
"0.6089318",
"0.60710317",
... | 0.0 | -1 |
Helper function to resize the array to appropriate size | private void resize(int capacity) {
// create a new array, and copy the original array items to the new array
T[] newArray = (T[]) new Object[capacity];
int position = plusOne(nextFirst);
for (int i = 0; i < size; i += 1) {
newArray[i] = array[position];
position ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reSize() {\n int newSize = arr.length * 2;\n arr = Arrays.copyOf(arr, newSize);\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void resize(int newSize){\n\t\tif(newSize > max){\n\t\t\tnewSize = max;\n\t\t}\n\t\tT[] newData = (T[])new Object[newSize];\n\t\tfor(int i = 0; i < siz... | [
"0.7945353",
"0.77736485",
"0.77601886",
"0.7758309",
"0.7589648",
"0.7494272",
"0.74031776",
"0.7396017",
"0.7394389",
"0.7374521",
"0.73348147",
"0.72571886",
"0.72486407",
"0.7217655",
"0.7216108",
"0.7187132",
"0.7088402",
"0.7082361",
"0.7065818",
"0.7060414",
"0.7050335... | 0.7492348 | 6 |
Created by PatrykDagiel on 20.10.2016. | public interface Game {
String playGame();
Team getHomeTeam();
Team getAwayTeam();
void setAwayTeam(Team z);
void setHomeTeam(Team w);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\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 comer() {\n\t\t\n\t}",
"public fina... | [
"0.59938496",
"0.5817167",
"0.5783021",
"0.5696298",
"0.5696298",
"0.5690574",
"0.5598977",
"0.5594336",
"0.5571847",
"0.55707026",
"0.5570365",
"0.55376405",
"0.55148935",
"0.5514723",
"0.55130357",
"0.5504171",
"0.5489296",
"0.54557866",
"0.54506516",
"0.5441037",
"0.543931... | 0.0 | -1 |
Creation d'un nouveau personnage New player creation | public static Character newPlayer(int nbPlayer) {
int characterClass, level, strength, agility, intelligence, health;
System.out.println("Création du personnage du Joueur " + nbPlayer);
characterClass = Character.askAction("Veuillez choisir la classe de votre personnage (1 : Guerrier, 2 : Rôd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void createPlayer(Player player);",
"public void createNewPlayer()\n\t{\n\t\t// Set up all badges.\n\t\tm_badges = new byte[42];\n\t\tfor(int i = 0; i < m_badges.length; i++)\n\t\t\tm_badges[i] = 0;\n\t\tm_isMuted = false;\n\t}",
"@Override\n \tpublic void createAndAddNewPlayer( int playerID )\n \t{\n \t\t//ad... | [
"0.68859005",
"0.68811196",
"0.6718229",
"0.66186404",
"0.655883",
"0.65222716",
"0.6470155",
"0.63676053",
"0.63332844",
"0.6320321",
"0.6268727",
"0.6266441",
"0.62355155",
"0.6232737",
"0.6232247",
"0.62290525",
"0.6167068",
"0.6166989",
"0.6147037",
"0.6138161",
"0.613802... | 0.5777043 | 62 |
TODO Autogenerated method stub Debug.startMethodTracing("HomeMoviesFragment___"); Debug.startMethodTracing("/data/data/com.ericsson.NewPlayer/HomeMoviesFragment___.trace"); | @Override
public void created(Bundle savedInstance) {
activity = getActivity();
//final File methodTracingFile = new File(activity.getExternalFilesDir("Caches"), "AppStart.trace");
//Log.d(TAG, "methodTracingPath=" + methodTracingFile.getPath());
//Debug.startMethodTracing(methodTrac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void onFragmentStart() {\n\t}",
"public MovieDetailFragment() {\n\n }",
"public MovieDetailFragment() {\n }",
"public MovieDetailFragment() {\n }",
"public HomeFragment() {}",
"public Fragment_Tutorial() {}",
"public HomeFragment() {\n // Required empty public cons... | [
"0.6183415",
"0.61137456",
"0.60656285",
"0.60656285",
"0.59171784",
"0.58109266",
"0.5772338",
"0.5769822",
"0.5710199",
"0.56641287",
"0.56474537",
"0.5633256",
"0.5607372",
"0.55875653",
"0.5569415",
"0.5553461",
"0.55493546",
"0.5542235",
"0.5539801",
"0.55363435",
"0.552... | 0.61340785 | 1 |
Main creates two new ".txt" files using two different encodings. It begins walking the file tree given as path and writes in two newly created files. | public static void main(String[] args) throws IOException {
Path p=Paths.get("D:\\Users\\Filip\\hr\\fer\\oop\\lab5\\racuni");
MySecondByteReader reader=new MySecondByteReader();
Files.walkFileTree(p,reader);
Path iso=Paths.get("D:/Users/Filip/hr/fer/oop/lab5/cjenik.88592.txt");
Path utf=Paths.get("D:/Users/F... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws Exception {\n\t\t\n\t\tPrintWriter pw = new PrintWriter(new FileWriter(\"first.txt\"));\n\t\tpw.println(\"Happy Birthday...\");\n\t\tpw.println(\"Smoking is injurious to health.\");\n\t\tpw.println(\"Hows you doing..\");\n\t\tpw.println(\"Dont be fool..\");\n\t\tpw.flu... | [
"0.6064622",
"0.60046196",
"0.6001455",
"0.5967283",
"0.5962824",
"0.5820001",
"0.5763294",
"0.5725631",
"0.570549",
"0.57018834",
"0.566837",
"0.56606966",
"0.56240726",
"0.5613929",
"0.5612949",
"0.5610613",
"0.5575239",
"0.55743384",
"0.5562943",
"0.55447847",
"0.5530742",... | 0.6075915 | 0 |
TODO Autogenerated method stub /FirefoxDriver driver = new FirefoxDriver(); | public static void main(String[] args) {
System.out.println("this is the change");
System.out.println("this is the 2 change");
System.out.println("this is the 3 change");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static WebDriver firefox()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.gecko.driver\",System.getProperty(\"user.dir\")+\"\\\\Gecko\\\\geckodriver.exe\");\r\n\t\tgk = new FirefoxDriver();\r\n\t\treturn gk;\r\n\t}",
"@Override\n public WebDriver getWebDriver() {\n return new FirefoxDriver();\n ... | [
"0.7706799",
"0.7590019",
"0.74408203",
"0.73784",
"0.73615813",
"0.726103",
"0.72024727",
"0.71762776",
"0.7154438",
"0.7129887",
"0.69629407",
"0.69059724",
"0.681445",
"0.6793759",
"0.6721268",
"0.666526",
"0.66549027",
"0.6585455",
"0.65621",
"0.6543008",
"0.65310615",
... | 0.0 | -1 |
Creates a builder for a unary prefix operator. | public static OperatorBuilder prefix(String symbol, DoubleUnaryOperator unaryOp) {
return unary(symbol, unaryOp, Type.PREFIX);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static OperatorBuilder unary(String symbol, DoubleUnaryOperator unaryOp, Type type) {\n if (unaryOp == null) {\n throw new IllegalArgumentException(\"operator argument must not be null\");\n }\n if (type.arity() != 1) {\n throw new IllegalArgumentException(\"type ... | [
"0.6571555",
"0.6202368",
"0.5845552",
"0.5760231",
"0.56621677",
"0.5624492",
"0.558608",
"0.554631",
"0.55168",
"0.5466045",
"0.5370914",
"0.5315251",
"0.5288008",
"0.5267194",
"0.5256678",
"0.52431476",
"0.52388465",
"0.5220113",
"0.5152317",
"0.5116789",
"0.50954515",
"... | 0.66072667 | 0 |
Creates a builder for a unary postfix operator. | public static OperatorBuilder postfix(String symbol, DoubleUnaryOperator unaryOp) {
return unary(symbol, unaryOp, Type.POSTFIX);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static OperatorBuilder unary(String symbol, DoubleUnaryOperator unaryOp, Type type) {\n if (unaryOp == null) {\n throw new IllegalArgumentException(\"operator argument must not be null\");\n }\n if (type.arity() != 1) {\n throw new IllegalArgumentException(\"type ... | [
"0.63841796",
"0.59291154",
"0.56949914",
"0.5663362",
"0.56308705",
"0.555446",
"0.5399776",
"0.538133",
"0.5319985",
"0.53167725",
"0.5282488",
"0.52303296",
"0.5226949",
"0.5178852",
"0.5151616",
"0.5109459",
"0.5084526",
"0.506163",
"0.5046563",
"0.5041289",
"0.5005561",
... | 0.6638893 | 0 |
Creates a builder for a leftassociative binary operator. | public static OperatorBuilder infixl(String symbol, DoubleBinaryOperator binaryOp) {
return binary(symbol, binaryOp, Type.INFIXL);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Binary left(Expr left) {\n\tBinary_c n = (Binary_c) copy();\n\tn.left = left;\n\treturn n;\n }",
"public PairBuilder<L, R> withLeft(L value) {\r\n this.value$left$L = value;\r\n this.isSet$left$L = true;\r\n return self;\r\n }",
"public static BinaryExpression leftShift(Expression expressio... | [
"0.6617631",
"0.6187246",
"0.586451",
"0.57790136",
"0.5738492",
"0.57273674",
"0.56535953",
"0.56367236",
"0.55770534",
"0.55226743",
"0.54844403",
"0.54739094",
"0.5442017",
"0.5420251",
"0.5302551",
"0.53011876",
"0.52747625",
"0.5249244",
"0.52216",
"0.52171874",
"0.52134... | 0.53809905 | 14 |
Creates a builder for a nonassociative binary operator. | public static OperatorBuilder infixn(String symbol, DoubleBinaryOperator binaryOp) {
return binary(symbol, binaryOp, Type.INFIXN);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static OperatorBuilder binary(String symbol, DoubleBinaryOperator binaryOp, Type type) {\n if (binaryOp == null) {\n throw new IllegalArgumentException(\"operator argument must not be null\");\n }\n if (type.arity() != 2) {\n throw new IllegalArgumentException(\"t... | [
"0.6501173",
"0.6201468",
"0.60157526",
"0.600161",
"0.5912446",
"0.57206213",
"0.5704418",
"0.5603335",
"0.55607134",
"0.55159086",
"0.5485588",
"0.5467072",
"0.5436487",
"0.5427558",
"0.54244137",
"0.54243743",
"0.5417723",
"0.54032415",
"0.5396158",
"0.5372992",
"0.5338104... | 0.592571 | 4 |
Creates a builder for a rightassociative binary operator. | public static OperatorBuilder infixr(String symbol, DoubleBinaryOperator binaryOp) {
return binary(symbol, binaryOp, Type.INFIXR);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PairBuilder<L, R> withRight(R value) {\r\n this.value$right$R = value;\r\n this.isSet$right$R = true;\r\n return self;\r\n }",
"private static OperatorBuilder binary(String symbol, DoubleBinaryOperator binaryOp, Type type) {\n if (binaryOp == null) {\n throw new IllegalArgument... | [
"0.6061696",
"0.6044903",
"0.60023606",
"0.56014764",
"0.5481607",
"0.54136425",
"0.53589684",
"0.5304905",
"0.529478",
"0.5267597",
"0.52464724",
"0.52305263",
"0.5228836",
"0.52040106",
"0.51985407",
"0.5196916",
"0.51608044",
"0.51049626",
"0.50899106",
"0.5088068",
"0.507... | 0.5506832 | 4 |
Creates a builder for a unary operator of the given type. | private static OperatorBuilder unary(String symbol, DoubleUnaryOperator unaryOp, Type type) {
if (unaryOp == null) {
throw new IllegalArgumentException("operator argument must not be null");
}
if (type.arity() != 1) {
throw new IllegalArgumentException("type argument must... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static UnaryExpression makeUnary(ExpressionType expressionType, Expression expression, Class type) { throw Extensions.todo(); }",
"public Unary createUnary(Position pos, polyglot.ast.Unary.Operator op, Expr expr) {\n return (Unary) xnf.Unary(pos, op, expr).type(expr.type());\n }",
"public st... | [
"0.67423004",
"0.63378286",
"0.6333143",
"0.6204378",
"0.610389",
"0.5910709",
"0.58164805",
"0.57398874",
"0.56840926",
"0.548557",
"0.5421561",
"0.53537595",
"0.53537595",
"0.53537595",
"0.53537595",
"0.53537595",
"0.53537595",
"0.53537595",
"0.5324127",
"0.5272472",
"0.525... | 0.77053404 | 0 |
Creates a builder for a binary operator of the given type. | private static OperatorBuilder binary(String symbol, DoubleBinaryOperator binaryOp, Type type) {
if (binaryOp == null) {
throw new IllegalArgumentException("operator argument must not be null");
}
if (type.arity() != 2) {
throw new IllegalArgumentException("type argument ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static BinaryExpression makeBinary(ExpressionType binaryType, Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"private CodeFragment generateBinOPinstruction(String op, String type, CodeFragment exprL, CodeFragment exprR) {\n CodeFragment result = new CodeFragment();\n... | [
"0.6674695",
"0.64937246",
"0.6411707",
"0.6397905",
"0.63443756",
"0.6097016",
"0.6072501",
"0.5984029",
"0.592993",
"0.5879179",
"0.58503395",
"0.58008903",
"0.5721914",
"0.57151395",
"0.5663987",
"0.5537799",
"0.54638785",
"0.5453999",
"0.5453226",
"0.54291373",
"0.5422728... | 0.75279003 | 0 |
Returns a new instance equivalent to this one, but with the given precedence. | public OperatorBuilder precedence(int precedence) {
return new OperatorBuilder(this.unaryOp, this.binaryOp, this.symbol, precedence, this.type);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override public int precedence() {\n return precedence;\n }",
"@Override\n public int precedence() {\n return 1;\n }",
"@Override\n public int precedence() {\n return 1;\n }",
"@Override\n public int precedence() {\n return 2;\n ... | [
"0.7179806",
"0.7105769",
"0.7105769",
"0.68822247",
"0.68822247",
"0.6862223",
"0.6677819",
"0.66742015",
"0.6325649",
"0.6227302",
"0.6040402",
"0.59753525",
"0.5750434",
"0.5713551",
"0.5707661",
"0.56333447",
"0.55000526",
"0.5433169",
"0.54171383",
"0.5413138",
"0.539625... | 0.78948724 | 0 |
Returns the symbol that will be used when formatting or parsing this operator. | @Override public String symbol() {
return symbol;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSymbol();",
"public String getSymbol( )\n {\n return symbol;\n }",
"public String getSymbol() {\n return symbol.get();\n }",
"public String getSymbol() {\n }",
"public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}",
"public String getSymbol() {\r\n\t\tretur... | [
"0.79519594",
"0.7933113",
"0.79135185",
"0.7862191",
"0.78591335",
"0.78591335",
"0.78164726",
"0.7813486",
"0.78102124",
"0.77941656",
"0.77576876",
"0.775684",
"0.77529746",
"0.7697325",
"0.7620886",
"0.7617066",
"0.75987405",
"0.7581287",
"0.75643575",
"0.75361645",
"0.75... | 0.81124073 | 0 |
Returns the symbol that will be used when formatting or parsing this operator. | @Override public int precedence() {
return precedence;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override public String symbol() {\n return symbol;\n }",
"String getSymbol();",
"public String getSymbol( )\n {\n return symbol;\n }",
"public String getSymbol() {\n return symbol.get();\n }",
"public String getSymbol() {\n }",
"public String getSymbol() {\r\n... | [
"0.81124073",
"0.79519594",
"0.7933113",
"0.79135185",
"0.7862191",
"0.78591335",
"0.78591335",
"0.78164726",
"0.7813486",
"0.78102124",
"0.77941656",
"0.77576876",
"0.775684",
"0.77529746",
"0.7697325",
"0.7620886",
"0.7617066",
"0.75987405",
"0.7581287",
"0.75643575",
"0.75... | 0.0 | -1 |
Returns the type of operator: prefix, postfix, infix (and, if infix, whether it is left, right, or nonassociative). | @Override public Type type() {
return type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getOperator();",
"String getOperator();",
"boolean hasOperator();",
"Operator.Type getOperation();",
"private boolean isOperator(String op){\n return (op.equals(\"+\") || op.equals(\"-\") || op.equals(\"*\") || op.equals(\"/\"));\n }",
"public boolean isOperator() {\n\t\treturn (lett... | [
"0.64459467",
"0.64297825",
"0.6336225",
"0.63340664",
"0.63148904",
"0.62136084",
"0.61719227",
"0.61627036",
"0.6156709",
"0.6156709",
"0.61266595",
"0.6119731",
"0.6113517",
"0.6107209",
"0.6079234",
"0.6067077",
"0.6050639",
"0.6050639",
"0.6050639",
"0.6050639",
"0.60506... | 0.0 | -1 |
Merchant ID related to current PoS ID. | @JsonProperty("MerchantId")
public String getMerchantId() {
return merchantId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getMerchantId()\n {\n return merchantId;\n }",
"public Long getMerchantId() {\n return merchantId;\n }",
"public String getMerchantId() {\n return merchantId;\n }",
"public String getMerchantId() {\n return merchantId;\n }",
"public String getMerchantId() ... | [
"0.7786134",
"0.77261055",
"0.76545346",
"0.76545346",
"0.76545346",
"0.76545346",
"0.7585119",
"0.6853878",
"0.6594107",
"0.65270793",
"0.6379605",
"0.63493454",
"0.63310623",
"0.63188565",
"0.6312211",
"0.629355",
"0.6290496",
"0.6290496",
"0.6278373",
"0.62614673",
"0.6246... | 0.679561 | 8 |
Location ID related to current merchant ID and PoS ID. | @JsonProperty("LocationId")
public String getLocationId() {
return locationId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int getLocationId() {\n\t\treturn _locMstLocation.getLocationId();\n\t}",
"public long getLocationID() {\n return locationID;\n }",
"public int getLocationID() {\n return locationID;\n }",
"public String getLocationId() {\n\t\treturn locationId;\n\t}",
"public Intege... | [
"0.7337056",
"0.7082694",
"0.70415133",
"0.70083976",
"0.6965977",
"0.6965977",
"0.69186574",
"0.6908785",
"0.68400675",
"0.65699565",
"0.6528505",
"0.64425385",
"0.63815445",
"0.6372376",
"0.623797",
"0.6210883",
"0.6191359",
"0.61613214",
"0.61242086",
"0.6096274",
"0.60605... | 0.5663184 | 79 |
Current Point of Sale ID (cash register/terminal). | @JsonProperty("PoSId")
public String getPoSId() {
return posId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCurrentBuyID(){\n return currentBuyID;\n }",
"public static String generateSaleID() {\n\tsaleID++;\n\treturn String.valueOf(saleID);\n }",
"public static int getCurrentId() {\n return currentId;\n }",
"public int currentCustomerId() {\n if (this.currentCustomerAuthenticated(... | [
"0.6514594",
"0.645002",
"0.64428467",
"0.6248303",
"0.61927533",
"0.61898154",
"0.61023545",
"0.60216373",
"0.6016401",
"0.6016401",
"0.6016401",
"0.6000768",
"0.5932135",
"0.59309286",
"0.59309286",
"0.5929992",
"0.59254545",
"0.59203744",
"0.5911001",
"0.5895064",
"0.58738... | 0.0 | -1 |
The OrderId is a unique id that identifies the payment. The OrderId is issued by the merchant and is attached to the payment inside Danske Bank system. The order ID must be unique for the merchant/location combination. This means that there should be only one completed payment with any given order ID for the same merch... | @JsonProperty("OrderId")
public String getOrderId() {
return orderId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOrderId(String orderId) {\n this.orderId = orderId;\n }",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"public void setOrderId(Long orderId) {\n this.orderId = orderId;\n }",
"public void setOrderId(String orderId) {\n\t\tthis.orderId = ... | [
"0.749735",
"0.7455708",
"0.7455708",
"0.74474084",
"0.742672",
"0.742672",
"0.7199057",
"0.6787176",
"0.674321",
"0.674321",
"0.674321",
"0.6729558",
"0.6648059",
"0.6648059",
"0.66295254",
"0.66204196",
"0.6585609",
"0.6516071",
"0.650319",
"0.6413742",
"0.6380473",
"0.63... | 0.61812127 | 41 |
Creates an IntentService. Invoked by your subclass's constructor. | public LocationService(String name) {
super(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyIntentService() {\n super(\"MyIntentServiceName\");\n }",
"public MyIntentService() {\n super(\"MyIntentService\");\n }",
"public MyIntentService() {\n super(\"\");\n }",
"public MyIntentService() {\n super(MyIntentService.class.getName());\n }",
"public MyI... | [
"0.82810783",
"0.8213369",
"0.80133486",
"0.7955119",
"0.78672177",
"0.7617768",
"0.7523137",
"0.71582",
"0.7155323",
"0.69393814",
"0.6778027",
"0.6631029",
"0.66181177",
"0.6615682",
"0.65701383",
"0.6558259",
"0.6486216",
"0.6445637",
"0.64216906",
"0.6402057",
"0.63362867... | 0.0 | -1 |
LocationUtility.requestLocationUpdates(this, 0, LocationManager.GPS_PROVIDER, 60 1000, 0, this); | @Override
protected void onHandleIntent(Intent intent) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressLint(\"MissingPermission\")\n private void doStuff() {\n LocationManager locationManager = (LocationManager) getApplicationContext().getSystemService(Context.LOCATION_SERVICE);\n if (locationManager != null) {\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDE... | [
"0.8220316",
"0.8110507",
"0.80192786",
"0.7999645",
"0.79975474",
"0.79498965",
"0.78915393",
"0.7888279",
"0.78829974",
"0.7793822",
"0.77698034",
"0.7699989",
"0.769401",
"0.7684709",
"0.76546645",
"0.7645629",
"0.7606179",
"0.7598237",
"0.75947267",
"0.7588443",
"0.755717... | 0.0 | -1 |
Mapper for the entity Classe and its DTO ClasseDTO. | @Mapper(componentModel = "spring", uses = {MatiereMapper.class})
public interface ClasseMapper extends EntityMapper<ClasseDTO, Classe> {
@Mapping(target = "professeurClasses", ignore = true)
Classe toEntity(ClasseDTO classeDTO);
default Classe fromId(Long id) {
if (id == null) {
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static <Entity,Dto> Dto entityToDTO(Entity entity,Class<Dto> classDTO)\n\t{\n\t\tModelMapper mapper = new ModelMapper();\n\t\treturn mapper.map(entity, classDTO);\n\t}",
"D mapToDTO(E entity);",
"@Mapper(componentModel = \"spring\", uses = {})\npublic interface TypeCentreCompositionMapper extends Entity... | [
"0.64617753",
"0.62880594",
"0.62219214",
"0.6132805",
"0.6125316",
"0.61052936",
"0.6062842",
"0.6018957",
"0.5972436",
"0.5959916",
"0.5954683",
"0.5953364",
"0.5947685",
"0.5928746",
"0.59219325",
"0.5883042",
"0.5801044",
"0.57945544",
"0.57553965",
"0.5754246",
"0.573092... | 0.7320174 | 0 |
TODO code application logic here | public static void main(String[] args) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }"... | [
"0.60802186",
"0.5912082",
"0.58425087",
"0.58339286",
"0.5810548",
"0.57580656",
"0.57396024",
"0.5721001",
"0.5705411",
"0.5666017",
"0.5657976",
"0.5613798",
"0.5611188",
"0.5611188",
"0.55960613",
"0.55933475",
"0.557677",
"0.5572332",
"0.5565667",
"0.55482084",
"0.553657... | 0.0 | -1 |
Set choices in case of MCQ type | void setChoices ( ArrayList<String> choices )
{
for ( int i = 0 ; i < 4 ; i++ )
{
this.choices.set(i, choices.get(i));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setQuestionType(QuestionType type);",
"public void setChoices(ArrayList<String> choice){\n\t\tthis.choices = choice;\n\t}",
"public void setChoices(List<ChoiceItemDTO> choices) {\r\n\t\tthis.choices = choices;\r\n\t}",
"public void setChoice(com.questionmark.QMWISe.Choice[] choice) {\n this.choic... | [
"0.66340834",
"0.6313302",
"0.6018085",
"0.5921771",
"0.58429134",
"0.5808992",
"0.5778518",
"0.5768591",
"0.5759002",
"0.5737531",
"0.57324415",
"0.5693795",
"0.567546",
"0.5591261",
"0.5588788",
"0.5585403",
"0.5585054",
"0.5579497",
"0.5552545",
"0.5541313",
"0.5541025",
... | 0.6113011 | 2 |
Adding all ratings to the model then is sending to the view | @RequestMapping("/rating/list")
public String home(Model model)
{
model.addAttribute("ratings", ratingRepository.findAll());
return "rating/list";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRatings(Rating[] ratings) {\n this.ratings = ratings;\n }",
"@Override\n\tpublic List<Rating> getAllRating() {\n\t\treturn rr.getAllRating();\n\t}",
"public void submitRating() {\n if (validate() == true) {\n //delete every previous rating for this user\n ... | [
"0.64412963",
"0.641264",
"0.6360904",
"0.6342188",
"0.6306924",
"0.61206275",
"0.6079517",
"0.58970904",
"0.5832391",
"0.58196765",
"0.58118737",
"0.5808177",
"0.5742541",
"0.5720522",
"0.571112",
"0.56939524",
"0.56781393",
"0.56703645",
"0.5669776",
"0.56671125",
"0.564304... | 0.646293 | 0 |
Verifying if all fields are OK then save it to the DB | @PostMapping("/rating/validate")
public String validate(@Valid Rating rating, BindingResult result, Model model) {
if (!result.hasErrors()) {
ratingRepository.save(rating);
model.addAttribute("trades", ratingRepository.findAll());
return "redirect:/rating/list";
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkAndSave(){\n if (haveEmptyField()){\n JOptionPane.showMessageDialog(dialog,\n \"Some field are empty!\",\n \"Not valid\",\n JOptionPane.ERROR_MESSAGE);\n } else {\n saveStudent();\n }\n }",
"p... | [
"0.66696346",
"0.65035254",
"0.64389926",
"0.64201325",
"0.63522667",
"0.6323877",
"0.6193966",
"0.61847",
"0.61422026",
"0.61422026",
"0.61422026",
"0.6126736",
"0.60932934",
"0.6079029",
"0.6001363",
"0.59955245",
"0.5961411",
"0.5944831",
"0.5937621",
"0.5928652",
"0.59266... | 0.0 | -1 |
Prepare the field of the curve to update | @GetMapping("/rating/update/{id}")
public String showUpdateForm(@PathVariable("id") Integer id, Model model) {
Rating rating = ratingRepository.findById(id).orElseThrow(() -> new IllegalArgumentException("Invalid rating Id:" + id));
model.addAttribute("rating", rating);
return "rating/up... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final public void updateCurve() {\n\n \n Point2D.Float p1 = _output.getConnectionPoint();\n Point2D.Float c1 = new Point2D.Float();\n Point2D.Float p2 = _input.getConnectionPoint();\n Point2D.Float c2 = new Point2D.Float();\n\n //control point offset factor for tangent poi... | [
"0.62901276",
"0.6094694",
"0.59284127",
"0.5739901",
"0.5706332",
"0.566444",
"0.566096",
"0.5630171",
"0.56054395",
"0.5588244",
"0.5555789",
"0.55503565",
"0.55338126",
"0.5527349",
"0.5522105",
"0.55171716",
"0.55143464",
"0.5485104",
"0.54845166",
"0.5474212",
"0.5466993... | 0.0 | -1 |
Verifying if all fields are OK then save it to the DB | @PostMapping("/rating/update/{id}")
public String updateRating(@PathVariable("id") Integer id, @Valid Rating rating,
BindingResult result, Model model) {
if (result.hasErrors()) {
return "rating/update";
}
rating.setId(id);
ratingRepo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkAndSave(){\n if (haveEmptyField()){\n JOptionPane.showMessageDialog(dialog,\n \"Some field are empty!\",\n \"Not valid\",\n JOptionPane.ERROR_MESSAGE);\n } else {\n saveStudent();\n }\n }",
"p... | [
"0.6669454",
"0.65036774",
"0.64399236",
"0.642156",
"0.63536745",
"0.6323624",
"0.6194331",
"0.61826664",
"0.6142239",
"0.6142239",
"0.6142239",
"0.61275387",
"0.6094176",
"0.6078899",
"0.6002161",
"0.5994552",
"0.5962827",
"0.5945421",
"0.59379774",
"0.5929622",
"0.59273905... | 0.0 | -1 |
Delete a bid in the DB | @GetMapping("/rating/delete/{id}")
public String deleteRating(@PathVariable("id") Integer id, Model model) {
ratingRepository.deleteById(id);
model.addAttribute("ratings", ratingRepository.findAll());
return "redirect:/rating/list";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int deleteByPrimaryKey(String bid);",
"@Override\n\tpublic void deleteById(int bid) {\n\t\tString hql=\"delete from basesalary where bid='\"+bid+\"'\";\n\t\tgetSession().createQuery(hql).executeUpdate();\n\t}",
"@Override\n\tpublic void deleteBikeAd(int theId) {\n\t\tSession currentSession = sessionFactory.get... | [
"0.7855814",
"0.7470661",
"0.6940937",
"0.692103",
"0.69164795",
"0.69135547",
"0.68780446",
"0.68378603",
"0.6798626",
"0.67928076",
"0.6763935",
"0.671322",
"0.6638938",
"0.6617515",
"0.6605954",
"0.6604318",
"0.65926945",
"0.6589956",
"0.65845215",
"0.6574935",
"0.657207",... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
DAOManager m = new DAOManager();
ArrayList<Person> pList = m.selectPerson1();
for (Person person : pList) {
System.out.println(person.toString());
}
} | {
"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 |
If we're in the NOT_LOADED state we need to start loading manga | @Override
public List<Chapter> getChapters() {
if (state.get() == LoadingState.NOT_LOADED) {
// In a new thread, load chapters
MangaCrawler2.threadPool.submit(() -> {
try {
state.set(LoadingState.LOADING);
loadChapters(chapters)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void onStartLoading() { forceLoad();}",
"@Override\n\tprotected void isLoaded() throws Error \n\t{\n\t\t\n\t}",
"@Override\n\tprotected void isLoaded() throws Error {\n\t\t\n\t}",
"@Override\n\tprotected void isLoaded() throws Error {\n\t\t\n\t}",
"public void loaded(){\n\t\tloaded=true;\n\t}",
... | [
"0.666392",
"0.6378556",
"0.63261175",
"0.63261175",
"0.62871885",
"0.6277143",
"0.62606555",
"0.62561303",
"0.6182674",
"0.6175271",
"0.61441076",
"0.60932976",
"0.6075356",
"0.6059457",
"0.6052619",
"0.6050676",
"0.6024866",
"0.6011603",
"0.60036224",
"0.59880894",
"0.59811... | 0.0 | -1 |
Adds the contribution, which results in the BakeProgress value to DECREASE! Does not do further tests, like whether the Project is finished due to the operation | public void addContribution(int amount) {
activeQuest.addEffort(amount);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBakeProgress(int bakeProgress) {\n\t\tactiveQuest.setRequirement_left(bakeProgress);\n\t}",
"protected void subtract() {\n\t\tfinal float previous = value;\n\t\tvalue = Math.max(min, value - incrementStep);\n\n\t\tif (value != previous) {\n\t\t\tupdateAndAlertListener();\n\t\t}\n\n\t\treturn;\n\t}... | [
"0.5727129",
"0.56930995",
"0.5554597",
"0.5535647",
"0.55213016",
"0.54203",
"0.54038143",
"0.53188866",
"0.52920276",
"0.52824575",
"0.5268482",
"0.52495474",
"0.5249393",
"0.52488744",
"0.5237447",
"0.52040106",
"0.5150367",
"0.51172507",
"0.50968343",
"0.50957423",
"0.507... | 0.49027506 | 44 |
Sets the number of today's participants | public void setParticipantsToday (byte p) {
ParticipantsToday = p;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getParticipantAmountToday() {\n\t\treturn ParticipantsToday;\n\t}",
"public void setNowPeople(int nowPeople) {\n\t\tthis.nowPeople = nowPeople;\n\t}",
"public void setParticipantCount (byte p) {\n\t\tParticipants = p;\n\t}",
"Status setWornCount();",
"private void setFollowersCount() {\n ... | [
"0.6594888",
"0.60777664",
"0.5672491",
"0.5622614",
"0.5604296",
"0.5550972",
"0.55236197",
"0.5465038",
"0.54485905",
"0.5434976",
"0.54324454",
"0.5428595",
"0.5396801",
"0.53544587",
"0.5352844",
"0.5340009",
"0.53138316",
"0.5311907",
"0.52916205",
"0.5288292",
"0.528084... | 0.64266443 | 1 |
Sets the number of the project's participants | public void setParticipantCount (byte p) {
Participants = p;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setNrPlayers(int value) {\n this.nrPlayers = value;\n }",
"@Override\n\tpublic int changeNumOfParticipants() {\n\t\treturn 0;\n\t}",
"public void setNumberOfPlayers(int numberOfPlayers) {\n this.numberOfPlayers = numberOfPlayers;\n }",
"public void setNumCompetitions(... | [
"0.67917466",
"0.6749092",
"0.6670112",
"0.6290386",
"0.623494",
"0.6120275",
"0.59940344",
"0.5951642",
"0.59451574",
"0.59451574",
"0.5940744",
"0.59184325",
"0.5902018",
"0.5902018",
"0.588464",
"0.588464",
"0.5814112",
"0.5804523",
"0.57980263",
"0.5789877",
"0.5770703",
... | 0.69589937 | 0 |
Manually sets the requirements that are LEFT in order for the quest to complete. | public void setBakeProgress(int bakeProgress) {
activeQuest.setRequirement_left(bakeProgress);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder clearMinigameDefenseChancesLeft() {\n \n minigameDefenseChancesLeft_ = 0;\n onChanged();\n return this;\n }",
"public void setRequired(int required) {\n this.required = required;\n }",
"public final void setRequired() {_occ.setRequired();}",
"public v... | [
"0.5731546",
"0.56312",
"0.55890775",
"0.55462813",
"0.54266214",
"0.53761667",
"0.5367994",
"0.53574365",
"0.53417695",
"0.53327066",
"0.5317536",
"0.5317049",
"0.52441955",
"0.51964563",
"0.51696855",
"0.5164316",
"0.5163141",
"0.5148033",
"0.5145319",
"0.5130195",
"0.51298... | 0.51647353 | 15 |
Called when a specific amount (amount) of an item is donated, checks whether the player is eligible have already been done and the items already removed. Does not change the progress in the base application! | public abstract void onContribution(int amount, Player player); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t@SuppressWarnings(\"deprecation\")\r\n\tpublic void raiseEvent(Event e) {\r\n\t\tPlayer p = ((PlayerInteractEvent) e).getPlayer();\r\n\t\tPlayerStats stats = plugin.getStats(p);\r\n\t\tif (stats.subtractmoney(cost)) {\r\n\t\t\tif (!items.isEmpty()) {\r\n\t\t\t\tLinkedList<ItemStack> givenItems = new... | [
"0.5769134",
"0.5632561",
"0.5593327",
"0.55241287",
"0.5469104",
"0.5452993",
"0.54270756",
"0.5410979",
"0.5401203",
"0.5396132",
"0.53860784",
"0.5367046",
"0.5328206",
"0.5300727",
"0.52986",
"0.5293897",
"0.52876",
"0.52858996",
"0.52758664",
"0.5271736",
"0.5268507",
... | 0.5344814 | 12 |
Called when a player calls /bake. | public abstract void onBakeCommand(Player player); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void bake() {\n\t\tSystem.out.println(\"Bake for 25 mins at 350\\u00b0\");\n\t}",
"public void bake() {\n System.out.println(\"Baking for 25 min at 350\");\n }",
"@Override\n public void bake() {\n System.out.println(\"Bake Pepporonie Pizza !!\");\n }",
"public static void handleBakePi... | [
"0.67044634",
"0.66923034",
"0.65612084",
"0.6435804",
"0.642645",
"0.63285035",
"0.62790686",
"0.6014435",
"0.5849977",
"0.58114576",
"0.57224077",
"0.56874675",
"0.56479484",
"0.5641403",
"0.56237924",
"0.56006867",
"0.5595422",
"0.5577425",
"0.5512882",
"0.55118203",
"0.55... | 0.8037152 | 0 |
Called when something that is not a player calls /bake. | public void onBakeCommandByNonPlayer(CommandSender sender) {
if (sender instanceof Player) {
throw new IllegalArgumentException("Invalid command sender. The command sender is a player while the method does not expect it to be a player.");
}
String s = this.bakeInstance.StringParser.BakeCommandString;
s = s.r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void onBakeCommand(Player player);",
"public void bake() {\n\t\twhile(true) {\n\t\t\tSystem.out.print(\"attempting to bake 1 souffle...\");\n\t\t\tif(Math.random() < 0.5) {\n\t\t\t\tSystem.out.println(\"success!\");\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"but it didn't rise\... | [
"0.785353",
"0.66482806",
"0.648336",
"0.6417098",
"0.6223142",
"0.6220138",
"0.62024915",
"0.5890066",
"0.5857837",
"0.58150566",
"0.5763396",
"0.5691892",
"0.5680907",
"0.56730336",
"0.5645514",
"0.5639041",
"0.5602482",
"0.5576076",
"0.5561173",
"0.5559782",
"0.5559669",
... | 0.6523084 | 2 |
Called when a player calls /bakestats | public abstract void onBakestatsCommand(Player player); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void onBakeCommand(Player player);",
"public void printPlayerStat(Player player);",
"public void theStats(Spy bond, Map grid, PowerUp p) {\r\n\t\tif(p != null){\r\n\t\t\tif (bond.getLives() != 0) {\r\n\t\r\n\t\t\tSystem.out.print(\"\\nThe spy has \" + bond.getLives()\r\n\t\t\t\t\t+ \" lives rem... | [
"0.62129605",
"0.60546297",
"0.59307367",
"0.58589286",
"0.58424914",
"0.5800469",
"0.57388765",
"0.572747",
"0.57249355",
"0.57215923",
"0.5704904",
"0.56491715",
"0.56400204",
"0.56295836",
"0.55818367",
"0.5566609",
"0.5563355",
"0.55332035",
"0.55299497",
"0.55253637",
"0... | 0.83864367 | 0 |
Get the stuff that has already been done | public int getProgress() {
return activeQuest.getThreshold() - getRemaining();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getObjects() {\n\t\tmeteors = go.getMeteors();\n\t\texplosions = go.getExplosions();\n\t\ttargets = go.getTargets();\n\t\tcrosses = go.getCrosses();\n\t\trockets = go.getRockets();\n\t\tearth = go.getEarth();\n\t}",
"boolean pullingOnce();",
"@SuppressWarnings( {\"unchecked\"})\n\t\t\tString[] get... | [
"0.58592075",
"0.5629127",
"0.5348555",
"0.5342342",
"0.53399706",
"0.53219527",
"0.53118",
"0.5233842",
"0.520792",
"0.5162893",
"0.51443845",
"0.5111286",
"0.5108596",
"0.51008433",
"0.5094552",
"0.5082114",
"0.50385016",
"0.50266564",
"0.501712",
"0.50167465",
"0.5006647",... | 0.0 | -1 |
Note: while in 1.6.x this is the same thing as calling the base instance directly, it will be the only way of getting this value that is consistent across 1.6.x and 1.7.x | public int getRemaining() {
return activeQuest.getRequirement_left();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getBaseInstance() {\n return baseInstance;\n }",
"public int getBaseInstance() {\n return baseInstance;\n }",
"@Override\n Derived get();",
"public int getValue() { return 42; }",
"public double getBase()\r\n {\r\n return Base;\r\n }",
"public in... | [
"0.67118746",
"0.67118746",
"0.6305198",
"0.615185",
"0.61024946",
"0.60841215",
"0.5991579",
"0.5984357",
"0.598432",
"0.5970814",
"0.5902601",
"0.58788425",
"0.58572733",
"0.58572733",
"0.58465123",
"0.5845876",
"0.5845876",
"0.5839809",
"0.58387935",
"0.58296615",
"0.58196... | 0.0 | -1 |
Note: while in 1.6.x this is the same thing as calling the base instance directly, it will be the only way of getting this value that is consistent across 1.6.x and 1.7.x | public int getRecordAmount() {
return BestAmount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getBaseInstance() {\n return baseInstance;\n }",
"public int getBaseInstance() {\n return baseInstance;\n }",
"@Override\n Derived get();",
"public int getValue() { return 42; }",
"public double getBase()\r\n {\r\n return Base;\r\n }",
"public in... | [
"0.67122716",
"0.67122716",
"0.6303934",
"0.6150986",
"0.610133",
"0.6084191",
"0.5991434",
"0.5983565",
"0.5983488",
"0.59718084",
"0.5904005",
"0.58792263",
"0.5856408",
"0.5856408",
"0.5845871",
"0.58443636",
"0.58443636",
"0.58388114",
"0.5838298",
"0.58294415",
"0.581963... | 0.0 | -1 |
Note: while in 1.6.x this is the same thing as calling the base instance directly, it will be the only way of getting this value that is consistent across 1.6.x and 1.7.x | public Instant getLastCompletion() {
return Last;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getBaseInstance() {\n return baseInstance;\n }",
"public int getBaseInstance() {\n return baseInstance;\n }",
"@Override\n Derived get();",
"public int getValue() { return 42; }",
"public double getBase()\r\n {\r\n return Base;\r\n }",
"public in... | [
"0.67113465",
"0.67113465",
"0.63033867",
"0.6150098",
"0.61016",
"0.60842204",
"0.59898716",
"0.59835076",
"0.5983024",
"0.59699106",
"0.5903253",
"0.5877462",
"0.5857048",
"0.5857048",
"0.58461964",
"0.5843899",
"0.5843899",
"0.5837812",
"0.5837528",
"0.5829383",
"0.5819500... | 0.0 | -1 |
Note: while in 1.6.x this is the same thing as calling the base instance directly, it will be the only way of getting this value that is consistent across 1.6.x and 1.7.x | public int getParticipantAmount() {
return Participants;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getBaseInstance() {\n return baseInstance;\n }",
"public int getBaseInstance() {\n return baseInstance;\n }",
"@Override\n Derived get();",
"public int getValue() { return 42; }",
"public double getBase()\r\n {\r\n return Base;\r\n }",
"public in... | [
"0.67123115",
"0.67123115",
"0.63020825",
"0.61499316",
"0.6100682",
"0.6083545",
"0.59896976",
"0.5983328",
"0.59828067",
"0.5969836",
"0.5903527",
"0.5877477",
"0.585708",
"0.585708",
"0.5847176",
"0.5844363",
"0.5844363",
"0.5838094",
"0.5837211",
"0.5830195",
"0.5819363",... | 0.0 | -1 |
Note: while in 1.6.x this is the same thing as calling the base instance directly, it will be the only way of getting this value that is consistent across 1.6.x and 1.7.x | public Instant getRecordDate() {
return Record;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getBaseInstance() {\n return baseInstance;\n }",
"public int getBaseInstance() {\n return baseInstance;\n }",
"@Override\n Derived get();",
"public int getValue() { return 42; }",
"public double getBase()\r\n {\r\n return Base;\r\n }",
"public in... | [
"0.67118746",
"0.67118746",
"0.6305198",
"0.615185",
"0.61024946",
"0.60841215",
"0.5991579",
"0.5984357",
"0.598432",
"0.5970814",
"0.5902601",
"0.58788425",
"0.58572733",
"0.58572733",
"0.58465123",
"0.5845876",
"0.5845876",
"0.5839809",
"0.58387935",
"0.58296615",
"0.58196... | 0.0 | -1 |
Note: while in 1.6.x this is the same thing as calling the base instance directly, it will be the only way of getting this value that is consistent across 1.6.x and 1.7.x | public int getProjectsFinishedToday() {
return Today;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getBaseInstance() {\n return baseInstance;\n }",
"public int getBaseInstance() {\n return baseInstance;\n }",
"@Override\n Derived get();",
"public int getValue() { return 42; }",
"public double getBase()\r\n {\r\n return Base;\r\n }",
"public in... | [
"0.67122716",
"0.67122716",
"0.6303934",
"0.6150986",
"0.610133",
"0.6084191",
"0.5991434",
"0.5983565",
"0.5983488",
"0.59718084",
"0.5904005",
"0.58792263",
"0.5856408",
"0.5856408",
"0.5845871",
"0.58443636",
"0.58443636",
"0.58388114",
"0.5838298",
"0.58294415",
"0.581963... | 0.0 | -1 |
Note: while in 1.6.x this is the same thing as calling the base instance directly, it will be the only way of getting this value that is consistent across 1.6.x and 1.7.x | public int getOverallCompletionAmount() {
return Times;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getBaseInstance() {\n return baseInstance;\n }",
"public int getBaseInstance() {\n return baseInstance;\n }",
"@Override\n Derived get();",
"public int getValue() { return 42; }",
"public double getBase()\r\n {\r\n return Base;\r\n }",
"public in... | [
"0.67113465",
"0.67113465",
"0.63033867",
"0.6150098",
"0.61016",
"0.60842204",
"0.59898716",
"0.59835076",
"0.5983024",
"0.59699106",
"0.5903253",
"0.5877462",
"0.5857048",
"0.5857048",
"0.58461964",
"0.5843899",
"0.5843899",
"0.5837812",
"0.5837528",
"0.5829383",
"0.5819500... | 0.0 | -1 |
Note: while in 1.6.x this is the same thing as calling the base instance directly, it will be the only way of getting this value that is consistent across 1.6.x and 1.7.x | public int getParticipantAmountToday() {
return ParticipantsToday;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getBaseInstance() {\n return baseInstance;\n }",
"public int getBaseInstance() {\n return baseInstance;\n }",
"@Override\n Derived get();",
"public int getValue() { return 42; }",
"public double getBase()\r\n {\r\n return Base;\r\n }",
"public in... | [
"0.67123115",
"0.67123115",
"0.63020825",
"0.61499316",
"0.6100682",
"0.6083545",
"0.59896976",
"0.5983328",
"0.59828067",
"0.5969836",
"0.5903527",
"0.5877477",
"0.585708",
"0.585708",
"0.5847176",
"0.5844363",
"0.5844363",
"0.5838094",
"0.5837211",
"0.5830195",
"0.5819363",... | 0.0 | -1 |
Keeps track of when the project is finished | public boolean isFinished() {
if (getRemaining() <= 0) {
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void finished();",
"public void allFinished() {\n\t}",
"public void finish() {}",
"@Override\n public boolean isFinished() {\n return true;\n }",
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n \tpublic void finished()\n \t{\n \t}",
"@Override\n publi... | [
"0.70259356",
"0.7020559",
"0.69303554",
"0.68445736",
"0.6831094",
"0.6801689",
"0.6792583",
"0.6781483",
"0.6776061",
"0.6756186",
"0.6756186",
"0.6754678",
"0.6730249",
"0.6710827",
"0.66861844",
"0.6682756",
"0.66683435",
"0.66465974",
"0.66378415",
"0.66255254",
"0.66255... | 0.0 | -1 |
IMPORTANT: Following Bake 1.7.0, this method is the backbone of the plugin and handles almost all background stuff. This includes: resetting the requirements, awarding the rewards and handling other stuff. Per default called just after the isFinished() function | public void onFinish() {
this.notRewarded.putAll(Bake_Auxillary.rewardPlayers(projectReminderList, activeQuest.getLoot(bakeInstance.API_LEVEL), activeQuest.getThreshold(), activeQuest.getName()));
newQuest();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void accomplishGoal() {\r\n isAccomplished = true;\r\n }",
"@Override\n protected void end() {\n switch (Intake.intakeState) {\n case 2:\n// if (Robot.intake.bannerIR.get()) {\n// Timer.delay(0.25);\n// Robot.wrist.setAbso... | [
"0.6329258",
"0.5978886",
"0.59716856",
"0.59667474",
"0.588357",
"0.5848077",
"0.5841441",
"0.5828538",
"0.58254075",
"0.58035123",
"0.5802271",
"0.5801509",
"0.5795646",
"0.5795646",
"0.5795646",
"0.5795646",
"0.5795646",
"0.5795646",
"0.5795646",
"0.5795646",
"0.5795646",
... | 0.6952976 | 0 |
Handle function for the Administrator Control Panel for the Bake Plugin. Allows admins to cheat the game. | public void adminCP(String[] args, CommandSender sender) {
sender.sendMessage(ChatColor.RED + "This is subcommand is unimplemented. You may want to update the add-ons to a version supporting Bake 1.6.1 or later.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void admin() {\n\t\tSystem.out.println(\"i am from admin\");\n\t}",
"private void gameAdmin() {\n\t\tgamePause();\n\t\tsnakeFrame.snakePanel.player.close();\n\t\t try {\n\t\t\t\tRuntime.getRuntime().exec(\n\t\t\t\t\t\t \"cmd /c start http://localhost/snakegame/welcome.html \");\n\t\t\t} catch (IOException ... | [
"0.6261449",
"0.60557693",
"0.5928614",
"0.5821709",
"0.57940084",
"0.57318884",
"0.55728024",
"0.55286986",
"0.55199325",
"0.5454389",
"0.5454389",
"0.54412633",
"0.54170066",
"0.53775835",
"0.5366676",
"0.53177655",
"0.5293418",
"0.5278912",
"0.52659976",
"0.5264062",
"0.52... | 0.527297 | 18 |
Override highly recommended as it will be used from 1.6.1 onwards for /bake version | public String getImplementationName() {
return "unknown";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"@Override\n public void checkVersion() {\n }",
"@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}",
"private JacobUtils() {}",
"@Override\n\tpublic void beforeClassSetup() {\n\t\t\n\t}",
"@Override\n\tpublic void bbb()... | [
"0.5920236",
"0.5771406",
"0.54111165",
"0.53424215",
"0.52949977",
"0.52921945",
"0.5255855",
"0.52523875",
"0.5246261",
"0.5170528",
"0.515917",
"0.51456255",
"0.51299167",
"0.5125248",
"0.51089495",
"0.51074123",
"0.51073754",
"0.5088057",
"0.5083765",
"0.5083765",
"0.5083... | 0.0 | -1 |
Creates a new quest and resets the "activeQuest" variable | public void newQuest() {
List <String> quests;
if (activeQuest == null) {
quests = QuestCfg.getStringList("quests.names");
} else {
quests = activeQuest.getSuccessors();
if (quests == null) {
quests = QuestCfg.getStringList("quests.names");
}
}
bakeInstance.getLogger().info("[BAKE] Choosing ne... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void newQuest(String name) {\n\t\t//Prevent NullPointerExcpetions\n\t\tif (name == null) {\n\t\t\tbakeInstance.getLogger().info(\"[Bake] Null name for new generated quest. Falling back to default quest selection.\");\n\t\t\tnewQuest();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (QuestCfg.getString(\"quests.\" + na... | [
"0.7369494",
"0.64357084",
"0.64185804",
"0.6378384",
"0.6141233",
"0.6135309",
"0.60854745",
"0.60854745",
"0.60854745",
"0.607207",
"0.607207",
"0.607207",
"0.60682523",
"0.60249865",
"0.593986",
"0.589209",
"0.58392835",
"0.57907295",
"0.56838256",
"0.5674445",
"0.5668171"... | 0.83110917 | 0 |
Creates a new quest with the specified name. If the quest was not found, it defaults to the default newQuest() without arguments. | public void newQuest(String name) {
//Prevent NullPointerExcpetions
if (name == null) {
bakeInstance.getLogger().info("[Bake] Null name for new generated quest. Falling back to default quest selection.");
newQuest();
return;
}
if (QuestCfg.getString("quests." + name + ".type", "N/A").equals("N/A")) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void newQuest() {\n\t\tList <String> quests;\n\t\tif (activeQuest == null) {\n\t\t\tquests = QuestCfg.getStringList(\"quests.names\");\n\t\t} else {\n\t\t\tquests = activeQuest.getSuccessors();\n\t\t\tif (quests == null) {\n\t\t\t\tquests = QuestCfg.getStringList(\"quests.names\");\n\t\t\t}\n\t\t}\n\t\tbake... | [
"0.7229952",
"0.67549324",
"0.58413756",
"0.57574224",
"0.5755012",
"0.5742874",
"0.5626134",
"0.5561662",
"0.5529613",
"0.5518238",
"0.5512789",
"0.5495195",
"0.5485206",
"0.5479029",
"0.545549",
"0.5449095",
"0.529464",
"0.52489406",
"0.52184504",
"0.5210993",
"0.52040917",... | 0.86446154 | 0 |
Instance methods The client's first window and this window's first method. load and show this window. in each press on X button (in all primary windows), the user is logged out and return to 'log in' screen. | public void start(Stage primaryStage) throws Exception {
Pane p = new Pane();
Navigator.init(p);
primaryStage.setScene(new Scene(p));
Navigator.instance().navigate("LoginForm");
primaryStage.setTitle("CEMS");
// when press on X button
primaryStage.setOnCloseRequest((event) -> {
// log out and return to... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void login(){\n displayPane(loginP);\n }",
"private void showLogin() {\n \t\tLogin.actionHandleLogin(this);\n \t}",
"public login() {\n initComponents();\n setLocationRelativeTo(null);\n this.setDefaultCloseOperation(login.DO_NOTHING_ON_CLOSE);\n }",
"@Override\... | [
"0.69576246",
"0.6930716",
"0.68685985",
"0.68189394",
"0.68179524",
"0.6805837",
"0.6784269",
"0.67670166",
"0.6759694",
"0.6748044",
"0.67229503",
"0.6712382",
"0.66919565",
"0.6677395",
"0.66659045",
"0.66608447",
"0.665302",
"0.662296",
"0.66173404",
"0.66060793",
"0.6600... | 0.0 | -1 |
This is FXML event handler. Handles the action of press on enter key. | @FXML
void inputPass(KeyEvent event) {
if (event.getCode().equals(KeyCode.ENTER))
btnLogin.fire();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FXML\r\n void enterPressed(KeyEvent event) {\r\n if(event.getCode() == KeyCode.ENTER){//sprawdzenie czy wcisinieto enter\r\n connectSerialPort();//wywolanie wyzej zdefiniowanej metody - nawiaza polaczenie + otworzenie okna glownego aplikacji\r\n }\r\n }",
"@Override\n\t\t\tpublic ... | [
"0.7717035",
"0.767214",
"0.72355527",
"0.7229893",
"0.7224957",
"0.71445507",
"0.7002425",
"0.6892597",
"0.67695177",
"0.67433053",
"0.66977054",
"0.6687291",
"0.6634214",
"0.6627956",
"0.66121095",
"0.6574239",
"0.65136",
"0.650424",
"0.6481612",
"0.6475146",
"0.6449455",
... | 0.7415178 | 2 |
This is FXML event handler. Handles the action of click on 'Log in' button. | @FXML
void login(ActionEvent event) throws IOException {
Message messageToServer = new Message();
String userName = txtUserName.getText();
String password = txtPassword.getText();
// check that user put details
if (userName.trim().isEmpty() || password.trim().isEmpty())
lblErr.setText("User Name or Passwo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FXML\n\tpublic void buttonLogIn(ActionEvent event) throws IOException {\n\t\tFXMLLoader loginScreen = new FXMLLoader(getClass().getResource(\"login.fxml\"));\n\t\tloginScreen.setController(this);\n\t\tParent changeToLogin = loginScreen.load();\n\t\tmainPaneRegister.getChildren().setAll(changeToLogin);\n\t}",
"@... | [
"0.8004229",
"0.7629836",
"0.7618553",
"0.75672543",
"0.75570065",
"0.7539163",
"0.7470985",
"0.74506783",
"0.7431764",
"0.738415",
"0.7364275",
"0.73445445",
"0.7339148",
"0.7304959",
"0.7284263",
"0.7276668",
"0.7209448",
"0.7171779",
"0.714247",
"0.71404624",
"0.7139112",
... | 0.70245934 | 27 |
This is FXML event handler. Handles the action of click on 'Exit' button. | @FXML
void exit(ActionEvent event) throws IOException {
// close the client
try {
ClientUI.client.closeConnection();
} catch (IOException e) {
UsefulMethods.instance().display("Fail to close client!");
UsefulMethods.instance().printException(e);
}
System.exit(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@FXML\n public void btnExitClicked(){\n System.exit(1);\n }",
"@FXML\r\n void exit(ActionEvent event) {\r\n \tSystem.out.println(\"Student Account Working Controller\");\r\n \t((Node) event.getSource()).getScene().getWindow().hide();\r\n }",
"@FXML protected void doExit(ActionEvent eve... | [
"0.8551266",
"0.8210764",
"0.8127458",
"0.7963359",
"0.79585874",
"0.79407036",
"0.7836909",
"0.77915055",
"0.7758391",
"0.76992834",
"0.76130205",
"0.75594425",
"0.7551258",
"0.75426614",
"0.7452233",
"0.7432614",
"0.7368064",
"0.73601043",
"0.72894937",
"0.7180793",
"0.7173... | 0.7304965 | 18 |
This method called to initialize a controller after its root element has been completely processed (after load method). | @Override
public void initialize(URL location, ResourceBundle resources) {
// set images
Image img1 = new Image(this.getClass().getResource("loginForm.PNG").toString());
imgLogin.setImage(img1);
Image img2 = new Image(this.getClass().getResource("logo.png").toString());
imgLogo.setImage(img2);
Image img3 =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void initController();",
"private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}",
"private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propi... | [
"0.739082",
"0.72318304",
"0.689047",
"0.6885877",
"0.67265594",
"0.6672483",
"0.663072",
"0.663072",
"0.6629768",
"0.66221833",
"0.6607957",
"0.6602532",
"0.657974",
"0.657974",
"0.65585214",
"0.6530587",
"0.65299726",
"0.6507521",
"0.65023863",
"0.647376",
"0.6447828",
"0... | 0.0 | -1 |
l.putConstraint(SpringLayout.WEST, c2, 5, SpringLayout.EAST, c); | private void stumpConfigureComp(ButtonRow buttonRow, PieceButton b, SpringLayout layout2) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setupLayout()\n\t{\n\t\tbaseLayout.putConstraint(SpringLayout.WEST,firstButton,107,SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstButton, -32, SpringLayout.SOUTH, this);\n\t\tbaseLayout.putConstraint(SpringLayout.WEST, firstField, 37, SpringLayout.WEST, this);\n\t\tba... | [
"0.67182237",
"0.63810486",
"0.63570946",
"0.6028787",
"0.5811384",
"0.5773382",
"0.57727677",
"0.561143",
"0.53992367",
"0.53938746",
"0.5318577",
"0.5280882",
"0.5261604",
"0.52260673",
"0.52260196",
"0.5147307",
"0.5116602",
"0.5104158",
"0.5102129",
"0.5091597",
"0.507380... | 0.4984044 | 31 |
/ / / / | public boolean isInputValid(ConversationContext context, String s)
/* */ {
/* 135 */ return (s.equalsIgnoreCase("one")) || (s.equals("1")) || (s.equalsIgnoreCase("two")) || (s.equals("2")) || (s.equalsIgnoreCase("zero")) || (s.equals("0"));
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void divide() {\n\t\t\n\t}",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"public abstract String division();",
"public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}",
"private boolean slash() {\r\n return MARK(OPERATOR) ... | [
"0.5906264",
"0.55749613",
"0.5428019",
"0.53241616",
"0.5294036",
"0.527193",
"0.52582306",
"0.5256754",
"0.51585066",
"0.5141374",
"0.51100975",
"0.5097357",
"0.5026707",
"0.50235814",
"0.50100124",
"0.49757177",
"0.4967908",
"0.49668512",
"0.4931213",
"0.49272057",
"0.4915... | 0.0 | -1 |
/ const which takes album name and date and set the total pics to 0 initially | public Album(String albumName)
{
photo = new ArrayList<Photo>();
this.albumName = albumName;
this.totalPics = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void settotalPics(int totalPics)\n {\n //this.totalPics = photo.size();\n this.totalPics = totalPics;\n }",
"public int getAlbumCount(){\n\t\treturn this.albumCount;\n\t}",
"public int getTotalPics()\n {\n\t\t/*System.out.println(\"photo\"+photo.size());\n\t\tif(photo.size() == 0)... | [
"0.6587534",
"0.6275195",
"0.6080557",
"0.59592015",
"0.58318245",
"0.5684254",
"0.5611386",
"0.5598043",
"0.559753",
"0.5513238",
"0.5508393",
"0.5508275",
"0.5411998",
"0.53676325",
"0.5337192",
"0.5297174",
"0.5292508",
"0.5292508",
"0.52891076",
"0.52847296",
"0.52807987"... | 0.69201475 | 0 |
/ return total number of pics | public int getTotalPics()
{
/*System.out.println("photo"+photo.size());
if(photo.size() == 0)
{
return 0;
}
System.out.println(totalPics);*/
return this.totalPics;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumberOfPictures()\r\n {\r\n return pictures.size();\r\n }",
"public int getNoOfImages() {\n return noOfImages;\n }",
"public int getNumberOfPhotos(){\n\t\tint num = 0;\n\t\ttry {\n\t\t\tFileInputStream in = new FileInputStream(\"images\");\n\t\t\t//Skipping magic number\n\t\t\t... | [
"0.80179906",
"0.7838158",
"0.77800894",
"0.77422714",
"0.7619534",
"0.760739",
"0.7498364",
"0.7419162",
"0.7397237",
"0.7378528",
"0.73118347",
"0.7291775",
"0.72512954",
"0.71593446",
"0.71206063",
"0.71206063",
"0.7092598",
"0.7057669",
"0.70370823",
"0.7024858",
"0.69777... | 0.8735775 | 0 |
/ set number of pics | public void settotalPics(int totalPics)
{
//this.totalPics = photo.size();
this.totalPics = totalPics;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNoOfImages(int noOfImages) {\n this.noOfImages = noOfImages;\n }",
"public int getPicCount(){\n return picCount;\n }",
"public int getNoOfImages() {\n return noOfImages;\n }",
"public int getNumberOfPictures()\r\n {\r\n return pictures.size();\r\n }",
"private ... | [
"0.76130205",
"0.6673937",
"0.6652207",
"0.65974116",
"0.6574707",
"0.647937",
"0.6473418",
"0.6404019",
"0.64031225",
"0.63400054",
"0.6202841",
"0.6188475",
"0.61111987",
"0.609123",
"0.6059366",
"0.60578066",
"0.60545486",
"0.6054225",
"0.6022381",
"0.6018706",
"0.597671",... | 0.77028215 | 0 |
/ returns album name | public String getAlbumName()
{
return albumName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getAlbumName() {\n return \"fotos_credencial\";\n }",
"private String getAlbumName(){\n return getString(R.string.album_name);\n }",
"public String toString() {\n\t\treturn this.albumName;\n\t}",
"String getAlbumName()\n {\n return albumName;\n }",
"public St... | [
"0.8161729",
"0.79420024",
"0.7760653",
"0.77208227",
"0.73941326",
"0.7326415",
"0.73023325",
"0.70592254",
"0.70288473",
"0.692469",
"0.68608785",
"0.6854755",
"0.6677948",
"0.663557",
"0.6614025",
"0.6528575",
"0.6511735",
"0.6507154",
"0.65065235",
"0.64764583",
"0.645681... | 0.794013 | 2 |
/ set album name | public void setAlbumName(String albumName)
{
this.albumName = albumName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void DisplayAlbumName(String name) {\r\n this.setTitle(name + \" - Photo Viewer\");\r\n }",
"public void setAlbumTitle(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ALBUMTITLE, value);\r\n\t}",
"private String getAlbumName() {\n return \"fo... | [
"0.768577",
"0.76084673",
"0.7478967",
"0.73319834",
"0.7288308",
"0.7261459",
"0.7246488",
"0.7225954",
"0.7206273",
"0.71721566",
"0.70802826",
"0.7057749",
"0.7040634",
"0.70318353",
"0.6978145",
"0.6915302",
"0.6886772",
"0.675356",
"0.67339194",
"0.6650826",
"0.66036093"... | 0.7895258 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.