query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub
@Override public void onTaskFail() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onGetSearchResultsTaskComplete(List<User> tutors) { this.mList = tutors; this.mMap.getList(tutors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String [] conArr = {"아시아_서울","아시아_북경","아시아_타이페이", "아메리카_뉴욕","아메리카_시카고","유럽_이스탄불", "유럽_런던","아메리카_상파올로","아프리카_아크라"}; List conti = new ArrayList<>(); List conData = new ArrayList<>(); for (String cc : conArr) { String [] ccArr = cc.split("_"); ArrayList now; if(conti.contains(ccArr[0])) { now = (ArrayList)(conData.get(conti.indexOf(ccArr[0]))); }else{ now = new ArrayList(); conti.add(ccArr[0]); conData.add(now); } now.add(ccArr[1]); } System.out.println(conti); System.out.println(conData); SetTvl [] arr = { new SetTvl("뉴욕", 7, 500), new SetTvl("이스탄불", 3, 300), new SetTvl("타이페이", 2, 100), new SetTvl("서울", 1, 80), new SetTvl("이스탄불", 3, 260), new SetTvl("런던", 6, 400), new SetTvl("상파울로", 6, 600) }; Set index = new HashSet<>(); for (SetTvl tvl : arr) { Iterator it = index.iterator(); boolean res = true; while(it.hasNext()) { SetTvl com = (SetTvl)it.next(); if(com.name.equals(tvl.name)) { res = false; if(com.money>tvl.money) { it.remove(); res = true; } } } if(res) index.add(tvl); } System.out.println(index); String [] gogo = {"이스탄불","타이페이","상파울로","런던"}; ArrayList goList = new ArrayList<>(); for (Object conDataList : conData) { ArrayList ar = new ArrayList(); goList.add(ar); for (Object con: (ArrayList)conDataList) { String sss = (String)con; for (String gg : gogo) { if(sss.equals(gg)) ar.add(sss); } } if(ar.size()==0) goList.remove(ar); } System.out.println(goList); int ttMoney=0,ttday=0; for (Object ggList : goList) { for (Object obj : (ArrayList)ggList) { Iterator it = index.iterator(); while(it.hasNext()) { SetTvl com = (SetTvl)it.next(); if(com.name.equals(obj)) { ttMoney+=com.money; ttday+=com.day; } } } ttday++; } ttday--; System.out.println("총경비:"+ttMoney); System.out.println("총여행일:"+ttday); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
Code to open the main menu
public void actionPerformed(ActionEvent arg0) { MainMenu main = new MainMenu(); main.frame.setVisible(true); setVisible(false); dispose(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void openMenu() {\r\n\t\tmenu.click();\r\n\t}", "@Override\n\t\tpublic void openMenu() {\n\t\t}", "private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.pr...
[ "0.82457787", "0.8107773", "0.78354716", "0.7723811", "0.76942116", "0.7498663", "0.73903656", "0.7335353", "0.7246232", "0.7203071", "0.71943647", "0.71941257", "0.7191522", "0.71879625", "0.7185557", "0.71697325", "0.7138299", "0.7136769", "0.7131131", "0.70869464", "0.7066...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Semaphore sem = new Semaphore(1); new Thread(new IncThread(sem,"A")).start();; new Thread(new DecThread(sem,"B")).start(); }
{ "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
use the defined one above
@Override public String getJmxBeanName() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void use()\n\t{\n\t}", "public abstract String use();", "void use();", "private stendhal() {\n\t}", "public void reuse() {}", "protected void onFirstUse() {}", "protected Doodler() {\n\t}", "public contrustor(){\r\n\t}", "private SingleTon() {\n\t}", "protected FanisamBato(){\n\t}", "Reu...
[ "0.6684896", "0.64218044", "0.6397143", "0.6056177", "0.6052283", "0.5663442", "0.56346786", "0.55168134", "0.5500472", "0.53968364", "0.53968203", "0.5392529", "0.53870314", "0.53778195", "0.5361843", "0.5349944", "0.53486633", "0.533972", "0.53325415", "0.5331153", "0.53298...
0.0
-1
Set the domainname toplevel folder for the metrics. Default is "com.j256".
public void setJmxDomainName(String jmxDomainName) { this.jmxDomainName = jmxDomainName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setSystabIOFolderName(String name){\n this.folderName = name + \"\\\\\"; // Append the \\\\ to get inside the folder\n }", "void setSystabRegFolderName(String name){\n this.folderName = name + \"\\\\\"; // Append the \\\\ to get inside the folder\n }", "public void setPublicUserDirecto...
[ "0.59381825", "0.5747886", "0.54091454", "0.52417415", "0.51485777", "0.5129982", "0.5103", "0.50870365", "0.5073741", "0.5072245", "0.50082314", "0.498287", "0.49588928", "0.4948668", "0.49472407", "0.49280474", "0.49262777", "0.49082264", "0.48982134", "0.48945656", "0.4874...
0.44305286
93
Overrides the default init method. Ensures that the Properties instance variable is set to the intended properties file.
public void init() { this.properties = loadProperties("/project3.properties"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init(String propFilePath) {\n properties = new Properties();\n try {\n properties.load(new FileInputStream(new File(propFilePath)));\n } catch (FileNotFoundException e1) {\n logger.error(\"External properties file not found!\", e1);\n System.exit(1...
[ "0.7875511", "0.77031136", "0.7594402", "0.7523673", "0.738174", "0.73661685", "0.7299976", "0.7269883", "0.71849483", "0.7077284", "0.70635784", "0.70573145", "0.7053719", "0.70532525", "0.70347786", "0.7034393", "0.6981653", "0.69714546", "0.696331", "0.6892075", "0.6875673...
0.7356781
6
Handles HTTP GET requests.
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); // add properties to the request as an attribute request.setAttribute("properties", this.properties); // Forward to a JSP RequestDispatcher dispatcher = getServletContext() .getRequestDispatcher("/project3-properties.jsp"); dispatcher.forward(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}", "public void doGet( )\n {\n \n }", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\...
[ "0.7151432", "0.714443", "0.710912", "0.7108925", "0.71071106", "0.7071738", "0.70669526", "0.70426875", "0.70337105", "0.701473", "0.7011211", "0.6929938", "0.6917358", "0.6917358", "0.6909027", "0.69000846", "0.6893172", "0.6888916", "0.687581", "0.687581", "0.68631727", ...
0.0
-1
Executes the calculateRoot() function and asks the user whether or not it wants to calculate a new root
private static void executeProgram() throws IllegalArgumentException { while(true) { calculateRoot(); sc = new Scanner(System.in); System.out.print("Do you want to enter another equation? :"); String answer = sc.next(); if(answer.equalsIgnoreCase("no")) { System.out.println("Good bye!!!"); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void calculateRoot() throws IllegalArgumentException {\n\t\tdouble[] userInputs = getInputs();\n\t\tdouble value = Main.root(userInputs[0], userInputs[1], userInputs[2]);\n\t\tSystem.out.println(\"The root value is: \" + value);\n\t}", "private void squareRoot()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\...
[ "0.7144431", "0.6252229", "0.61956704", "0.6071576", "0.57352924", "0.5667315", "0.5609237", "0.5605483", "0.551991", "0.5444036", "0.53955245", "0.5377315", "0.5363388", "0.5356632", "0.5340301", "0.5253022", "0.52474624", "0.51988876", "0.5179596", "0.5155445", "0.51523596"...
0.6725839
1
Calculates the root based on the user inputs and prints out the root value if no exceptions are thrown
private static void calculateRoot() throws IllegalArgumentException { double[] userInputs = getInputs(); double value = Main.root(userInputs[0], userInputs[1], userInputs[2]); System.out.println("The root value is: " + value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n double a = scanner.nextDouble();\n double b = scanner.nextDouble();\n double c = scanner.nextDouble();\n\n double determinant = b * b - 4 * a * c;\n\n double root1;\n double root2...
[ "0.67452973", "0.6622272", "0.64164555", "0.6222294", "0.61842805", "0.61658055", "0.61275566", "0.61224544", "0.61031413", "0.6091469", "0.6078314", "0.6042578", "0.59784776", "0.59731305", "0.59657323", "0.5909205", "0.58746564", "0.5853394", "0.5832592", "0.5832285", "0.57...
0.84976894
0
Allows the user to enter three double values and return an array of double with datatype checking
private static double[] getInputs() { double[] inputs = new double[SIZE]; int counter = 0; do { try { System.out.print("Enter the " + (counter + 1) + " value: "); sc = new Scanner(System.in); double value = sc.nextDouble(); inputs[counter] = value; counter += 1; } catch (InputMismatchException e) { System.out.println("Invalid datatype " + e + " please try again!"); } } while (counter != SIZE); //sc.close(); return inputs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object[] getScriptOfValuesAsDouble() {\r\n\t\tArrayList valueDouble;\r\n\t\tvalueDouble = new ArrayList<Double>();\r\n\r\n\t\tfor (DataVariable var : dataTestModel) {\r\n\t\t\tif (var.getType().equals(\"double\") || var.getType().equals(\"int\")) {\r\n\r\n\t\t\t\tif (var.getValue() != null && !var.getValue(...
[ "0.69733083", "0.6777918", "0.67564243", "0.6686361", "0.6608317", "0.6547952", "0.6515843", "0.64117414", "0.6406656", "0.6381335", "0.63456553", "0.6244769", "0.6221729", "0.6184726", "0.6148417", "0.6142775", "0.6054733", "0.60193765", "0.6016646", "0.5970983", "0.59660184...
0.6561817
5
Returns the larger of the two roots of the quadratic equation Axx + Bx + C = 0, provided it has any roots. If A == 0 or if the discriminant, BB 4AC, is negative, then an exception of type IllegalArgumentException is thrown.
private static double root( double A, double B, double C ) throws IllegalArgumentException { if (A == 0) { throw new IllegalArgumentException("A can't be zero."); } else { double disc = B*B - 4*A*C; if (disc < 0) throw new IllegalArgumentException("Discriminant < zero."); return (-B + Math.sqrt(disc)) / (2*A); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void solve(double a, double b, double c) {\n double d = Math.pow(b, 2) - 4 * a * c;\n if (Double.isInfinite(1 / d)) {\n System.out.println(\"x1,2 = \" + (-b + Math.sqrt(d)) / (2 * a));\n } else if (d > 0) {\n System.out.println(\"x1 = \" + (-b + Math.sqr...
[ "0.5717322", "0.5688104", "0.5662179", "0.5548329", "0.55185044", "0.55138737", "0.5498572", "0.5401063", "0.53912383", "0.53789675", "0.5366946", "0.5324955", "0.5268471", "0.52422804", "0.513478", "0.5128831", "0.5122914", "0.51201516", "0.50718486", "0.5031747", "0.5029087...
0.7112945
0
a constructor of the class
public Paint(){ triangles = new ArrayList<>(); rectangles = new ArrayList<>(); circles = new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "private Instantiation(){}", "public CyanSus() {\n\n }", "public Clade() {}", "public Pasien() {\r\n }", "protected abstract void construct();", "public PSRelation()\n {\n }", "public Pitonyak_09_02() {\r\n }", "pub...
[ "0.8598358", "0.8490459", "0.779069", "0.75916266", "0.74338543", "0.7402439", "0.73899066", "0.73786867", "0.73710835", "0.736356", "0.73510695", "0.7349147", "0.73327464", "0.7320386", "0.7284455", "0.72843355", "0.7260016", "0.7250978", "0.7246011", "0.7228862", "0.7213524...
0.0
-1
adds a triangle to the arrayList of the triangles
public void addTriangle(Triangle triangle){ triangles.add(triangle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTriangle(int vertexIndex1, int vertexIndex2, int vertexIndex3);", "void addTriangle(AbstractTriangle t);", "public void add(final Vector3d vertex) {\n\t\tcurrentRow[rowIndex] = vertex;\n\t\tif (rowIndex > 0 && lastRow != null) {\n\t\t\tfinal Vector3d edge1 = lastRow[rowIndex - 1];\n\t\t\tfinal Vector3d...
[ "0.77143115", "0.7269588", "0.64817435", "0.6375298", "0.6134307", "0.6127812", "0.60905176", "0.60453963", "0.5915255", "0.5903569", "0.58782727", "0.57939285", "0.5784365", "0.5762488", "0.56951416", "0.56890345", "0.5682309", "0.56791675", "0.5597297", "0.55951065", "0.558...
0.7878825
0
adds a circle to the arrayList of the circles
public void addCircle(Circle circle){ circles.add(circle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addCircle() {\n\t\tdouble r = getRadius();\n\t\tadd(new GOval(getWidth() / 2.0 - r, getHeight() / 2.0 - r, 2 * r, 2 * r));\n\t}", "public CircleOfFifths(){fillArrayLists();}", "private void addCircleToGrid() {\n for (int rowCount = 0; rowCount < ROW; rowCount++) {\n for (int colC...
[ "0.75801575", "0.6619484", "0.65995806", "0.6482145", "0.6424847", "0.63441896", "0.62891173", "0.62163", "0.6143995", "0.61233944", "0.61041474", "0.6051938", "0.59873635", "0.59487504", "0.59348685", "0.59117264", "0.58814764", "0.58712196", "0.5847475", "0.58419734", "0.58...
0.81789935
0
adds a rectangle to the arrayList of the rectangles
public void addRectangle(Rectangle rectangle){ rectangles.add(rectangle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addRectangle(MyRectangle rectangle) {\n rectangles[numberOfRectangles++] = rectangle;\n }", "private void addRectanglesToGrid(GridPane grid, List<Rectangle> rectangles) {\r\n if (!grid.getChildren().isEmpty())\r\n grid.getChildren().clear();\r\n for (int i = 0; i < ...
[ "0.8027243", "0.7163968", "0.7138014", "0.7082203", "0.6753686", "0.6696214", "0.6534529", "0.6496794", "0.6480945", "0.64032036", "0.63732624", "0.6350268", "0.6328984", "0.6098959", "0.5984109", "0.5944061", "0.5943041", "0.58983195", "0.5882943", "0.5813354", "0.57919437",...
0.8142709
0
prints all shapes of the arrayLists
public void printAll(){ for (Triangle triangle : triangles) { System.out.println(triangle.toString()); } for (Circle circle : circles) { System.out.println(circle.toString()); } for (Rectangle rectangle : rectangles) { System.out.println(rectangle.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void printShapes(List<Shape> array, String label) {\n\n System.out.println(label + \"\\n\");\n // Iterate array of polygons using a foreach loop\n for (Shape shape : array) {\n // Use getClass to print the class of the Object and then print the Object (calls the toString)\n ...
[ "0.736534", "0.6786791", "0.6604611", "0.64781", "0.64605457", "0.6426071", "0.6408846", "0.6393569", "0.634245", "0.6306304", "0.62845993", "0.62283677", "0.6163153", "0.6156965", "0.61539763", "0.6125278", "0.61108476", "0.6094038", "0.60843813", "0.60829794", "0.60825014",...
0.69206524
1
draws all shapes of the arrayList
public void drawAll(){ for (Triangle triangle : triangles) { triangle.draw(); } for (Circle circle : circles) { circle.draw(); } for(Rectangle rectangle : rectangles){ rectangle.draw(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawAll(List<? extends Shape> shapes) {\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\tSystem.o...
[ "0.76907516", "0.7499032", "0.7499032", "0.7499032", "0.7255377", "0.70922023", "0.69829506", "0.6937083", "0.68589276", "0.68421733", "0.67149633", "0.6664942", "0.66621983", "0.66124374", "0.6590853", "0.65762293", "0.65554816", "0.6528602", "0.6528511", "0.6490931", "0.647...
0.7532462
1
return cloned object to avoid changing it by the client application
public HashMap<String, String> getProperties() { return (HashMap<String, String>) properties.clone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object clone();", "Object clone();", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone() {\n return this.copy();\n }", "public abstract Object clone();", "public Object clone() {\n // No problems cloning here sinc...
[ "0.83064145", "0.83064145", "0.80941105", "0.80941105", "0.80941105", "0.80941105", "0.7858263", "0.7815407", "0.7800865", "0.77739054", "0.7738905", "0.768743", "0.7504584", "0.7458981", "0.7447127", "0.7389672", "0.73856914", "0.7328174", "0.7327682", "0.73129493", "0.73112...
0.0
-1
Insert a new element at the rear of the queue If queue is full, resizes
public void enqueueRear(int n);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void enqueue(E e) {\n\t\tint index = (pos + size) % queue.length;\n\t\tqueue[index] = e;\n\t\tsize++;\n\t}", "public void queue(Object newItem){\n if(isFull()){\n System.out.println(\"queue is full\");\n return;\n }\n ArrayQueue[++rear] = newItem;\n ...
[ "0.75579727", "0.75264823", "0.75051135", "0.7447747", "0.7422202", "0.74058324", "0.7372422", "0.73678267", "0.7279371", "0.7225737", "0.7195849", "0.71392685", "0.711183", "0.70877343", "0.7050691", "0.704628", "0.6979478", "0.697939", "0.69710785", "0.696805", "0.69456095"...
0.0
-1
Insert a new element at the front of the queue If queue is full, resizes
public void enqueueFront(int n);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void enqueueFront(E element) {\n\t\tif(sizeDeque == CAPACITY) return;\r\n\t\tif(sizeDeque == 0) {\r\n\t\t\tdata[frontDeque] = element;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfrontDeque = (frontDeque - 1 + CAPACITY) % CAPACITY;\r\n\t\t\tdata[frontDeque] = element;\r\n\t\t}\r\n\t\t\r\n\t\tsizeDeque++;...
[ "0.7737335", "0.76122254", "0.7432296", "0.7381711", "0.7341963", "0.73341566", "0.726821", "0.7248474", "0.7215156", "0.7162423", "0.7132639", "0.7129768", "0.70712626", "0.70531297", "0.7021252", "0.700406", "0.6998703", "0.6980603", "0.6977456", "0.69722223", "0.69663376",...
0.6711776
42
Remove and return the front element of the queue; move everything over to the left one slot Note: Does not check for underflow
public int dequeueFront();
{ "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 long remove(){\n\t\t\r\n\t\t\tlong temp = queueArray[front]; //retrieves and stores the front elem...
[ "0.7772967", "0.77117085", "0.7550495", "0.7457074", "0.7400244", "0.7384271", "0.7369698", "0.73610646", "0.73550296", "0.7345545", "0.7342202", "0.7272804", "0.72678214", "0.7249244", "0.7223971", "0.7214708", "0.72118217", "0.7210561", "0.7207122", "0.7195922", "0.7181171"...
0.7603967
2
Remove and return the front element of the queue; move everything over to the left one slot Note: Does not check for underflow
public int dequeueRear();
{ "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 long remove(){\n\t\t\r\n\t\t\tlong temp = queueArray[front]; //retrieves and stores the front elem...
[ "0.7774538", "0.7711547", "0.7604803", "0.7550729", "0.7457264", "0.7400458", "0.73847485", "0.7369938", "0.7361799", "0.7355097", "0.7347222", "0.7341771", "0.72746176", "0.72680545", "0.7248873", "0.722417", "0.72152", "0.721211", "0.7211473", "0.7207754", "0.7196709", "0...
0.0
-1
Return front element of the queue without removing it Note: Does not check for underflow
public int peekFront();
{ "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}", "T getFront() throws EmptyQueueException;", "public T front() throws EmptyQueueException;", "public sta...
[ "0.81022567", "0.8071247", "0.78835213", "0.7770994", "0.77258545", "0.7614049", "0.756892", "0.75672424", "0.75075215", "0.7459961", "0.74336755", "0.7411806", "0.73996437", "0.73875827", "0.73647344", "0.7363643", "0.7353924", "0.73501784", "0.7350145", "0.7335822", "0.7329...
0.68746084
79
Return rear element of the queue without removing it Note: Does not check for underflow
public int peekRear();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private E dequeue() {\n final Object[] items = this.items;\n @SuppressWarnings(\"unchecked\")\n E x = (E) items[takeIndex];\n items[takeIndex] = null;\n if (++takeIndex == items.length) takeIndex = 0;\n count--;\n notFull.signal();\n return x;\n }", "public E dequeue() {\n if (siz...
[ "0.8083502", "0.8046659", "0.8012749", "0.7969197", "0.7926453", "0.7893271", "0.7878406", "0.7860969", "0.78126395", "0.7791895", "0.77684003", "0.774739", "0.7745101", "0.7730321", "0.7725172", "0.76661927", "0.7659318", "0.7653272", "0.7629506", "0.76243454", "0.75988257",...
0.0
-1
Return the number of integers in the queue
public int size();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCount() {\n return queue.size();\n }", "public int size(){\r\n\t\treturn queue.size();\r\n\t}", "int getNumEvents() {\n int cnt = eventCount;\n for (Entry entry : queue) {\n cnt += entry.eventCount;\n }\n return cnt;\n }", "int getQueueSize();...
[ "0.7672397", "0.75295514", "0.74924195", "0.7436263", "0.740751", "0.7406072", "0.73868775", "0.7342145", "0.73416626", "0.7322079", "0.71660167", "0.7118695", "0.71070254", "0.7015161", "0.7009227", "0.7001164", "0.6979156", "0.6974966", "0.6973743", "0.6950656", "0.694793",...
0.0
-1
Return true iff there are no elements in the queue
public boolean isEmpty();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isEmpty(){\n\t\tif(queue.isEmpty()){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isEmpty() {\n return this.queue.size() == 0;\n }", "boolean isEmpty() {\n return queue.isEmpty();\n }", "public boolean isEmpty() \n {\n\treturn queue.size() == 0;\n }"...
[ "0.8411878", "0.83895415", "0.83722556", "0.83680415", "0.8349618", "0.8332298", "0.8308994", "0.8308994", "0.8307721", "0.82791424", "0.8188129", "0.8101091", "0.80391467", "0.79478663", "0.7930493", "0.7930493", "0.7930493", "0.7930493", "0.7930493", "0.7930493", "0.7930493...
0.0
-1
Created by richellin on 2017/01/08.
public interface RevienService { @Headers({ "Accept: application/json" }) @GET("Prod/resource/{date}") Observable<JsonObject> getSentence(@Path("date") int date); }
{ "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}", "@Override\r...
[ "0.60704154", "0.58455634", "0.58193594", "0.58186376", "0.58186376", "0.5796041", "0.5707703", "0.56947047", "0.5673031", "0.56604785", "0.56381625", "0.56345147", "0.56339115", "0.56264806", "0.56264794", "0.5616477", "0.5611732", "0.56039816", "0.55847967", "0.55498344", "...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws IOException { Start st = new Start(); WebDriver drv = st.driverInit(); String url = st.prop.getProperty("url") ; drv.get(url); System.out.println(dr.getTitle()); }
{ "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
LocalDate date = LocalDate.now().minusYears(4);
public double getCyclePrice(Cycle cycle, LocalDate date) { int dateCurrent = date.getYear(); double cyclePrice = 500; double totalCyclePrice = cyclePrice + getPrice(); switch (dateCurrent) { case 2016: totalCyclePrice = totalCyclePrice - totalCyclePrice* 50 / 100; break; case 2018: totalCyclePrice = totalCyclePrice - totalCyclePrice* 25 / 100; break; default: break; } return totalCyclePrice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static ZonedDateTime fixYearIfInFuture(ZonedDateTime dateAndTime) {\n if (dateAndTime.isAfter(ZonedDateTime.now())) {\n return dateAndTime.minusYears(100);\n }\n return dateAndTime;\n }", "LocalDate getDate();", "public static LocalDate generateExpiration() {\n LocalDate today = L...
[ "0.6672431", "0.6480564", "0.64320284", "0.6215641", "0.6202467", "0.61915994", "0.61797315", "0.61570615", "0.6142301", "0.6130909", "0.61047614", "0.60852695", "0.60779613", "0.60184723", "0.5994929", "0.59789056", "0.5972", "0.5937625", "0.5894671", "0.588424", "0.5856853"...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { String str; while(true){ try { str = charBufferIn.readLine(); gm.textArea1.append(str + "\n"); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
{ "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
Toolkit.getDefaultToolkit().getScreenSize(); literally why is this scalable while the game screen isnt?
public Screen() { frame = new JFrame("Transmission"); frame.setSize(screen); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setResizable(false); frame.setLocationRelativeTo(null); frame.setVisible(true); panel = new Canvas(); panel.setPreferredSize(screen); panel.setMaximumSize(screen); panel.setMinimumSize(screen); panel.setFocusable(false); frame.add(panel); frame.pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getScreenSize() {\r\n\t\treturn SCREEN_SIZE;\r\n\t}", "protected byte desiredWinScale() { return 9; }", "private void getScreenSize() {\n WindowManager wm = getWindowManager();\n Display disp = wm.getDefaultDisplay();\n Point size = new Point();\n disp.getSize(size);\n ...
[ "0.7126162", "0.7043223", "0.69917434", "0.6886005", "0.6886005", "0.6769122", "0.6718933", "0.6608191", "0.66016966", "0.6593125", "0.65487653", "0.65180427", "0.6508244", "0.6508244", "0.6508055", "0.6504594", "0.6465093", "0.6450315", "0.64375854", "0.6350111", "0.63162893...
0.575608
77
TODO Autogenerated method stub
public S3Object createS3Object(Bucket bucket, String key, CanonicalUser owner) throws IOException { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public S3Object load(String bucket, String key) throws S3Exception { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
public void store(S3Object s3Object) throws S3Exception { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void remove(S3Object s3Object) throws S3Exception { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void setS3ObjectDao(S3ObjectDao s3ObjectDao) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public Bucket createBucket(String name, CanonicalUser owner) throws IOException { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
public Bucket loadBucket(String name) throws S3Exception { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void storeBucket(Bucket bucket) throws S3Exception { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void deleteBucket(Bucket bucket) throws IOException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public List<Bucket> findBuckets(String username) throws IOException { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
public String listKeys(Bucket bucket, String prefix, String marker, String delimiter, int maxKeys) throws S3Exception { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void setBucketDao(BucketDao bucketDao) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Get the value of nom
public String getNom() { return nom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getNume();", "java.lang.String getNume();", "public String getNom() {\r\n\t\treturn nom;\r\n\t}", "public String getNom() {\r\n\t\treturn nom;\r\n\t}", "public String getNom() {\r\n return nom;\r\n }", "public String getNom() {\n\t\treturn nom;\n\t}", "public String getNom() {\n\t\...
[ "0.72802526", "0.72802526", "0.7135556", "0.7135556", "0.7090904", "0.70903575", "0.70903575", "0.70809186", "0.7029342", "0.6999358", "0.699174", "0.699174", "0.699174", "0.699174", "0.699174", "0.699174", "0.699174", "0.69704884", "0.689079", "0.689079", "0.68760127", "0....
0.7095469
5
Set the value of nom
public void setNom(String nom) { this.nom = nom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNom(String p_onom);", "public void setNom(String nom){\n this.nom = nom;\n }", "public void setNom(String nom) {\r\n this.nom = nom;\r\n }", "@Override\n public void setNom(String nom) {\n this.nom = nom;\n }", "public void setNom(String nom) {\n this.nom = no...
[ "0.7651823", "0.7467188", "0.7457903", "0.7391767", "0.7290532", "0.7280689", "0.7273888", "0.72537374", "0.71561533", "0.71561533", "0.71042866", "0.69940984", "0.69649637", "0.6909408", "0.6793833", "0.6678422", "0.66086006", "0.6567521", "0.6495571", "0.6467458", "0.643248...
0.7401597
4
Get the value of path
public String getPath() { return path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPath() {\n\t\treturn getString(\"path\");\n\t}", "public String getPath() { \n\t\treturn getPathElement().getValue();\n\t}", "String getPath() {\r\n\t\treturn path;\r\n\t}", "Path getPath();", "public String getPath(){\r\n\t\treturn path;\r\n\t}", "public int path(){\n\t\treturn this.pa...
[ "0.7522736", "0.7168341", "0.7117474", "0.7086261", "0.7076608", "0.70653117", "0.7050919", "0.7050919", "0.7041381", "0.7041381", "0.7041381", "0.70411265", "0.70380306", "0.703547", "0.7025151", "0.7013001", "0.7013001", "0.7005383", "0.70020413", "0.69947225", "0.6994353",...
0.70419407
9
Set the value of path
public void setPath(String path) { this.path = path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPath(String path);", "public void setPath(String path);", "public void setPath(String path)\n {\n try\n {\n // Tokenize the path\n pathArray = getPathResolved(path);\n \n // Set path property\n this.path = path;\n }\n catch (...
[ "0.86890864", "0.8401985", "0.8377009", "0.82911885", "0.7952583", "0.7931014", "0.7794656", "0.7773068", "0.7668308", "0.7666933", "0.76524925", "0.76487374", "0.75290155", "0.7521888", "0.7521888", "0.7521888", "0.7464746", "0.74632096", "0.74632096", "0.74632096", "0.74632...
0.7608118
12
open the site (row, col) if it is not open already
public void open(int row, int col) { if (row < 0 || row > n - 1 || col < 0 || col > n - 1) throw new java.lang.IndexOutOfBoundsException("open():row or col out of bounds"); if (!isOpen(row, col)) { grid[row][col] = true; openSites++; int comp1 = n*row + col; if (row == 0) myUF.union(comp1, n*n); if (row == n - 1 ) myUF.union(comp1, n*n + 1); if (row + 1 < n && grid[row+1][col]) myUF.union(comp1, comp1 + n); if (row - 1 >= 0 && grid[row-1][col]) myUF.union(comp1, comp1 - n); if (col + 1 < n && grid[row][col+1]) myUF.union(comp1, comp1 + 1); if (col - 1 >= 0 && grid[row][col-1]) myUF.union(comp1, comp1 - 1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void open(int row, int col) {\n if (grid[row][col] == 0) {\n grid[row][col] = 1;\n openSites++;\n if (row == 0) {\n grid[row][col] = 2;\n fill(row,col);\n }\n if (row > 0 && grid[row - 1][col] > 0) {\n ...
[ "0.7073", "0.696519", "0.69468445", "0.6855801", "0.68164325", "0.6799386", "0.67646205", "0.67407364", "0.6670827", "0.6657598", "0.6631129", "0.6598512", "0.65028334", "0.64882505", "0.6376393", "0.6228447", "0.6174125", "0.60998356", "0.6098711", "0.60602415", "0.60184216"...
0.6367184
15
is the site (row, col) open?
public boolean isOpen(int row, int col) { if (row < 0 || row > n - 1 || col < 0 || col > n - 1) throw new java.lang.IndexOutOfBoundsException("isOpen():row or col out of bounds"); return grid[row][col]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isOpen(int row, int col){\n\t\tint index= transformInput(row,col);\n\t\treturn openSites[index];\n\t}", "public boolean isOpen(int row, int col) {\n validate(row, col);\n return openState[getThisSite(row, col)];\n }", "public boolean isOpen(int row, int col) {\n int index...
[ "0.7603261", "0.7473287", "0.74506974", "0.7371943", "0.7363469", "0.72330785", "0.71025217", "0.70060664", "0.6947601", "0.68914115", "0.6761325", "0.67522", "0.67481446", "0.6743529", "0.67347944", "0.6675136", "0.66550744", "0.6615941", "0.6605118", "0.6604098", "0.6596443...
0.668814
15
is the site (row, col) full?
public boolean isFull(int row, int col) { if (row < 0 || row > n - 1 || col < 0 || col > n - 1) throw new java.lang.IndexOutOfBoundsException("isFull():row or col out of bounds"); if (isOpen(row, col) && myUF.connected(n*n, row*n + col)) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isFull(int row, int col) {\n validate(row, col);\n int indexOfThisSite = site2index(row, col);\n return isOpen(row, col) && this.ufNoBottom.connected(0, indexOfThisSite);\n }", "public boolean isFull(int row, int col)\n {\n int oneDimensional = xyTo1D(row, col);\n...
[ "0.7434127", "0.742922", "0.74152446", "0.7338581", "0.7331804", "0.73164284", "0.72741836", "0.7212042", "0.71626025", "0.71345526", "0.7092722", "0.7019148", "0.6994887", "0.69650024", "0.6882816", "0.6877432", "0.6858501", "0.6855847", "0.67562354", "0.67379427", "0.672762...
0.64564
35
number of open sites
public int numberOfOpenSites() { return openSites; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numberOfOpenSites() {\n \treturn num;\r\n }", "public int numberOfOpenSites(){\n\t\treturn numOpen;\n\t}", "public int numberOfOpenSites() {\n return NOpen;\r\n }", "public int numberOfOpenSites() {\n return 0;\n }", "public int numberOfOpenSites() {\n return cou...
[ "0.9108626", "0.8968774", "0.8968428", "0.89385223", "0.8929599", "0.8927411", "0.88782996", "0.8877802", "0.88760066", "0.8793068", "0.8763073", "0.8754773", "0.8741213", "0.8738111", "0.8713938", "0.86926174", "0.86654603", "0.8657694", "0.8657694", "0.8127798", "0.7115143"...
0.87469375
16
does the system percolate?
public boolean percolates() { return myUF.connected(n*n, n*n + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void COPower(){\r\n COP = true;\r\n }", "@Override\n\tpublic void cook() {\n\t\tSystem.out.println(\"Cooking....\\n\");\n\t}", "public void notificate() {\nSystem.out.println(\"Comman for all\");\r\n\t}", "public void plum() {\n plum = true;\n }", "public void act() \n {\n ...
[ "0.6087865", "0.5873111", "0.5701228", "0.5610626", "0.5603718", "0.55497676", "0.553736", "0.5534243", "0.5494445", "0.5492496", "0.548774", "0.5427967", "0.54149324", "0.54041725", "0.5397156", "0.5385371", "0.53761727", "0.53700554", "0.5365661", "0.53653276", "0.5354736",...
0.0
-1
Determines whether a candidate Matching represents a solution to the Stable Marriage problem. Study the description of a Matching in the project documentation to help you with this.
@Override public boolean isStableMatching(Matching marriage) { int residentsNumber = marriage.getResidentCount(); ArrayList<Integer> resident_matching = marriage.getResidentMatching(); ArrayList<ArrayList<Integer>> hospital_preference = marriage.getHospitalPreference(); ArrayList<ArrayList<Integer>> resident_preference = marriage.getResidentPreference(); /*To check later if all slots are filled */ int matchedResidents=0; /*loop through all residents*/ for (int resident = 0; resident < residentsNumber; resident++) { if(resident_matching.get(resident)!=-1) matchedResidents++; int matchedHospital = resident_matching.get(resident); if (matchedHospital == -1) continue; /*loop through all residents before the selected resident in the matched hospital's preference list*/ for (int residentToCompareIndex = 0; residentToCompareIndex < hospital_preference.get(matchedHospital).indexOf(resident); residentToCompareIndex++) { int residentToCompare = hospital_preference.get(matchedHospital).get(residentToCompareIndex); int matchedHospitalToCompare = resident_matching.get(residentToCompare); /*check for 1st instability*/ if (matchedHospitalToCompare == -1) return false; /*check for 2nd instability*/ else if (resident_preference.get(residentToCompare).indexOf(matchedHospital) < resident_preference.get(residentToCompare).indexOf(matchedHospitalToCompare)) return false; } } if(matchedResidents!=marriage.totalHospitalSlots()) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isMatch();", "@Override\n\tpublic boolean isIsSingleMatch() {\n\t\treturn _esfTournament.isIsSingleMatch();\n\t}", "@Override\n\tpublic boolean isIsTeamMatch() {\n\t\treturn _esfTournament.isIsTeamMatch();\n\t}", "@Override\n\tpublic boolean isIsNationalMatch() {\n\t\treturn _esfTournament.isIsNation...
[ "0.64329547", "0.6253455", "0.6085128", "0.5982814", "0.58510524", "0.583798", "0.57798547", "0.574744", "0.5728044", "0.5693899", "0.56915516", "0.5680646", "0.5665224", "0.5643159", "0.5634073", "0.5609406", "0.56043315", "0.5576363", "0.55664307", "0.556594", "0.5555978", ...
0.6921842
0
Determines a resident optimal solution to the Stable Marriage problem from the given input set. Study the project description to understand the variables which represent the input to your solution.
@Override public Matching stableMarriageBruteForce_residentoptimal(Matching marriage) { int residentsNumber = marriage.getResidentCount(); int hospitalSlots = marriage.totalHospitalSlots(); ArrayList<ArrayList<Integer>> validPartners = new ArrayList<ArrayList<Integer>>(0); ArrayList<Matching> stableMatchings = new ArrayList<Matching>(); int count = 0; Permutation p = new Permutation(residentsNumber, hospitalSlots); Matching matching; int i=0; while ((matching = p.getNextMatching(marriage)) != null) { i++; if (isStableMatching(matching)) { stableMatchings.add(matching); validPartners.add(matching.getResidentMatching()); count++; } } if (count == 1) return stableMatchings.get(0); validPartners = sortValidPartners(marriage, stableMatchings.size(), validPartners); return getBruteForceCorrectMatching(stableMatchings, validPartners); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Matching stableMarriageGaleShapley_hospitaloptimal(Matching marriage) {\n int m = marriage.getHospitalCount();\n int n = marriage.getResidentCount();\n\n ArrayList<ArrayList<Integer>> hospital_preference = marriage.getHospitalPreference();\n ArrayList<ArrayList<Int...
[ "0.5894574", "0.58576417", "0.5773891", "0.5771225", "0.5503211", "0.54555136", "0.5451275", "0.5373665", "0.5321916", "0.528764", "0.52598464", "0.52403843", "0.5218045", "0.51843816", "0.51445025", "0.51183337", "0.50966877", "0.50713485", "0.506664", "0.5064372", "0.506396...
0.57304466
4
Determines a resident optimal solution to the Stable Marriage problem from the given input set. Study the description to understand the variables which represent the input to your solution.
@Override public Matching stableMarriageGaleShapley_residentoptimal(Matching marriage) { int m = marriage.getHospitalCount(); int n = marriage.getResidentCount(); ArrayList<ArrayList<Integer>> hospital_preference = marriage.getHospitalPreference(); ArrayList<ArrayList<Integer>> resident_preference = marriage.getResidentPreference(); ArrayList<Integer> hospitalSlots = marriage.getHospitalSlots(); ArrayList<Integer> residentMatching = new ArrayList<Integer>(); arrlistInit(residentMatching, n, -1, false); //O(n) /*At first the resident can propose to all his list. Each time a proposal is made the hospital is removed from the list*/ /*Trying to create a copy of the arraylist elements not copy of references*/ ArrayList<ArrayList<Integer>> hospitalsToProposeTo = new ArrayList<ArrayList<Integer>>(); for (int i = 0; i < n; i++) //O(n) hospitalsToProposeTo.add(new ArrayList<Integer>(resident_preference.get(i))); /*list of residents that still can propose(free and hasn't proposed to every hospital)*/ ArrayList<Integer> proposing = new ArrayList<Integer>(); arrlistInit(proposing, n, 0, true); //O(n) /*Keep track of each hospital matched residents*/ ArrayList<ArrayList<Integer>> hospitalResidents = new ArrayList<ArrayList<Integer>>(0); for (int i = 0; i < m; i++) hospitalResidents.add(new ArrayList<Integer>(0)); //O(m) /*Array list that holds the value of the lowest matched resident rank in each hospital * so each time a resident propose to a full hospital, the resident is swapped with the least ranked rmatched resident */ ArrayList<Integer> lowestMatchedResidentRank = new ArrayList<Integer>(); arrlistInit(lowestMatchedResidentRank, m, -1, false); //O(m) /*we enter the loop as long as some residents aren't done proposing to all hospitals yet O(mn*maximum no of spots)*/ while (!proposing.isEmpty()) { /*Get the head of the proposing list*/ for (int residentIndex = 0; residentIndex < proposing.size(); residentIndex++) { int resident = proposing.get(0); int hospital = 0; int hospitalIndex; /*Get the first hospital in the resident list which he hasn't proposed to yet, breaks if he can't no longer propose if matched*/ for (hospitalIndex = 0; hospitalIndex < hospitalsToProposeTo.get(resident).size() && proposing.contains(resident); hospitalIndex++) { hospital = hospitalsToProposeTo.get(resident).get(0); int residentRank = hospital_preference.get(hospital).indexOf(resident); /*hospital is full, loop through the matched residents and see if anyone can be kicked out*/ if (hospitalResidents.get(hospital).size() == hospitalSlots.get(hospital)) { if (residentRank < lowestMatchedResidentRank.get(hospital)) { /*1.Replace in hospitalResidents * 2.Add/remove in resident-matching * 3.Remove resident from the proposing list * 4.Check if matched resident still has hospitals to propose to (if yes, add to proposing) */ int lowestMatchedResident = hospital_preference.get(hospital).get(lowestMatchedResidentRank.get(hospital)); hospitalResidents.get(hospital).set(hospitalResidents.get(hospital).indexOf(lowestMatchedResident), resident); residentMatching.set(lowestMatchedResident, -1); residentMatching.set(resident, hospital); proposing.remove(proposing.indexOf(resident)); if (!hospitalsToProposeTo.get(lowestMatchedResident).isEmpty()) { proposing.add(lowestMatchedResident); } /*set the lowest rank * TODO make it O(1)*/ int min = 0; for (int i = 0; i < hospitalResidents.get(hospital).size(); i++) { int tempRank = hospital_preference.get(hospital).indexOf(hospitalResidents.get(hospital).get(i)); if (tempRank > min) min = tempRank; } lowestMatchedResidentRank.set(hospital, min); } } /*If there is available spot*/ else { /*1.Add in hospitalResidents * 2.Add in resident-matching * 3.Set the lowest ranked resident * 4.Remove resident from proposing list */ /*Update the lowest rank*/ if (residentRank > lowestMatchedResidentRank.get(hospital)) lowestMatchedResidentRank.set(hospital, residentRank); hospitalResidents.get(hospital).add(resident); residentMatching.set(resident, hospital); proposing.remove(proposing.indexOf(resident)); } /*1. Remove hospital from resident's hospitalsToProposeTo *2. If resident is matched or proposed to every possible hospital, remove resident from proposing list */ hospitalsToProposeTo.get(resident).remove(hospitalsToProposeTo.get(resident).indexOf(hospital)); if (hospitalsToProposeTo.get(resident).size() == 0 && proposing.contains(resident)) proposing.remove(proposing.indexOf(resident)); } } } marriage.setResidentMatching(residentMatching); return marriage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Matching stableMarriageGaleShapley_hospitaloptimal(Matching marriage) {\n int m = marriage.getHospitalCount();\n int n = marriage.getResidentCount();\n\n ArrayList<ArrayList<Integer>> hospital_preference = marriage.getHospitalPreference();\n ArrayList<ArrayList<Int...
[ "0.59278554", "0.58907455", "0.57984066", "0.57041454", "0.5655098", "0.55077356", "0.5265416", "0.5255286", "0.51597667", "0.5150644", "0.51179695", "0.5116956", "0.50946414", "0.5058573", "0.50510985", "0.500044", "0.49987668", "0.4933664", "0.49138787", "0.4882461", "0.487...
0.5509822
5
Determines a hospital optimal solution to the Stable Marriage problem from the given input set. Study the description to understand the variables which represent the input to your solution.
@Override public Matching stableMarriageGaleShapley_hospitaloptimal(Matching marriage) { int m = marriage.getHospitalCount(); int n = marriage.getResidentCount(); ArrayList<ArrayList<Integer>> hospital_preference = marriage.getHospitalPreference(); ArrayList<ArrayList<Integer>> resident_preference = marriage.getResidentPreference(); ArrayList<Integer> hospitalSlots = marriage.getHospitalSlots(); ArrayList<Integer> residentMatching = new ArrayList<Integer>(); arrlistInit(residentMatching, n, -1, false); /*list of residents that each hospital can propose to * Initially equals the hospital_preference list*/ ArrayList<ArrayList<Integer>> residentsToProposeTo = new ArrayList<ArrayList<Integer>>(); for (int i = 0; i < m; i++) //O(m) residentsToProposeTo.add(new ArrayList<Integer>(hospital_preference.get(i))); /*list of hospitals that still can propose(has free spots and hasn't proposed to every resident)*/ ArrayList<Integer> proposing = new ArrayList<Integer>(); arrlistInit(proposing, m, 0, true); //O(n) /*Keep track of each hospital matched residents*/ ArrayList<ArrayList<Integer>> hospitalResidents = new ArrayList<ArrayList<Integer>>(0); for (int i = 0; i < m; i++) //O(m) hospitalResidents.add(new ArrayList<Integer>(0)); /*Looping through each hospital in the proposing list * Even though some hospital may be added again in the proposing list, each hospital can propose at most once to each resident * So total running time of the loop will be O(m*n)*/ while (!proposing.isEmpty()) { for (int hospitalIndex = 0; hospitalIndex < proposing.size(); hospitalIndex++) { /*Get the head of the proposing Arraylist*/ int hospital = proposing.get(0); int residentIndex; int resident = 0; for (residentIndex = 0; residentIndex < residentsToProposeTo.get(hospital).size() && proposing.contains(hospital); hospitalIndex++) { /*Get the next resident the hospital hasn't proposed to yed*/ resident = residentsToProposeTo.get(hospital).get(0); int hospitalRank = resident_preference.get(resident).indexOf(hospital); /*resident is matched, compare the hospitals rank*/ if (residentMatching.get(resident) != -1) { int matchedHospital = residentMatching.get(resident); int matchedHospitalRank = resident_preference.get(resident).indexOf(matchedHospital); if (hospitalRank < matchedHospitalRank) { /*1.Add/remove to hospitalResidents * 2.Add in resident-matching * 3.Add matchedHospital to the proposing list if it's not in it */ hospitalResidents.get(hospital).add(resident); hospitalResidents.get(matchedHospital).remove(hospitalResidents.get(matchedHospital).indexOf(resident)); residentMatching.set(resident, hospital); if (!proposing.contains(matchedHospital)) proposing.add(matchedHospital); } } /*resident is free, match with the hospital*/ else { /*1.Add in hospitalResidents * 2.Add in resident-matching */ hospitalResidents.get(hospital).add(resident); residentMatching.set(resident, hospital); } /*1.Remove resident from the hospital's list of residentsToProposeTo * 2.If hospital's slots are full, remove hospital from the proposing list */ residentsToProposeTo.get(hospital).remove(residentsToProposeTo.get(hospital).indexOf(resident)); if (hospitalResidents.get(hospital).size() >= hospitalSlots.get(hospital)) proposing.remove(proposing.indexOf(hospital)); } } } marriage.setResidentMatching(residentMatching); return marriage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n//\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));\n\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\tint N= In...
[ "0.5985055", "0.58406335", "0.56095886", "0.56034505", "0.5584431", "0.5546848", "0.5409848", "0.53860307", "0.5251521", "0.52113587", "0.52001005", "0.51888037", "0.5170165", "0.5120262", "0.50763", "0.50726867", "0.5054083", "0.50270396", "0.5025388", "0.49907708", "0.49611...
0.626817
0
/sorting each resident's valid partners using insertion sort
private ArrayList<ArrayList<Integer>> sortValidPartners(Matching data, int validPartnersNo, ArrayList<ArrayList<Integer>> validPartners) { for (int resident = 0; resident < validPartners.get(0).size(); resident++) { for (int partner = 1; partner < validPartnersNo; partner++) { int partnerRank = data.getResidentPreference().get(resident).indexOf(validPartners.get(partner).get(resident)); int partnerValue = validPartners.get(partner).get(resident); if (partnerRank == -1) partnerRank = 999999; int partnerToCompare = partner - 1; int partnerToCompareRank = data.getResidentPreference().get(resident).indexOf(validPartners.get(partnerToCompare).get(resident)); if (partnerToCompareRank == -1) partnerToCompareRank = 999999; while (partnerToCompareRank > partnerRank) { validPartners.get(partnerToCompare + 1).set(resident, validPartners.get(partnerToCompare).get(resident)); partnerToCompare--; if (partnerToCompare < 0) break; partnerToCompareRank = data.getResidentPreference().get(resident).indexOf(validPartners.get(partnerToCompare).get(resident)); if (partnerToCompareRank == -1) partnerToCompareRank = 999999; } validPartners.get(partnerToCompare + 1).set(resident, partnerValue); } } return validPartners; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void sortByVerified( ArrayList<Volunteer> list)\n {\n // Find the string reference that should go in each cell of\n // the array, from cell 0 to the end\n for ( int j = 0; j < list.size();j++ )\n {\n // Find min: the index of the string reference that should...
[ "0.6138682", "0.60294974", "0.5756289", "0.56024927", "0.55455923", "0.54713887", "0.5444038", "0.53816015", "0.53688145", "0.5351534", "0.53267056", "0.5303028", "0.52577066", "0.5256751", "0.5236519", "0.52300197", "0.5226727", "0.52249134", "0.5198696", "0.51929384", "0.51...
0.73542446
0
/perfect matching will simply be the one with the first Arraylist
private Matching getBruteForceCorrectMatching(ArrayList<Matching> stableMatchings, ArrayList<ArrayList<Integer>> validPartners) { for (int matching = 0; matching < stableMatchings.size(); matching++) { if (stableMatchings.get(matching).getResidentMatching().equals(validPartners.get(0))) return stableMatchings.get(matching); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int match(ArrayList<ImageCell> images);", "public static List<Integer> lcs(List<Integer> arr1, List<Integer> arr2) {\r\n ArrayList empty = new ArrayList();\r\n /* BEFORE WE ALLOCATE ANY DATA STORAGE, VALIDATE ARGS */\r\n if (null == arr1 || 0 == arr1.size())\r\n return empty;\r\n ...
[ "0.6324397", "0.6273612", "0.6045899", "0.602479", "0.6003994", "0.5990258", "0.59692556", "0.59566844", "0.59516", "0.5945943", "0.5939203", "0.5908899", "0.5851697", "0.5823648", "0.5792951", "0.5789306", "0.5782592", "0.57743096", "0.5761652", "0.5753038", "0.57307565", ...
0.5956543
8
The toggle was changed
protected void toggleStateChanged() { getSoccerMaster().setShowBallCoord( isToggledOn() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void Toggle() {\n\t \n }", "public void toggle(){\n isOn = !isOn;\n }", "void updateCommonToggleStatus(boolean shown);", "public void isChanged()\n\t{\n\t\tchange = true;\n\t}", "public void toggleConsumptionHasChanged() {\n\t\tthis.consumptionHasChanged = (this.consumptionH...
[ "0.7413197", "0.7047961", "0.7043459", "0.7026336", "0.6864783", "0.68542314", "0.684332", "0.68372816", "0.68130547", "0.68034214", "0.6786445", "0.67816216", "0.6734508", "0.6709748", "0.666255", "0.66450936", "0.66356134", "0.6633887", "0.6580026", "0.6543534", "0.6540818"...
0.69645333
4
start of drag, if drag in progress
@Override public void mousePressed(MouseEvent e) { lastClick = e.getPoint(); // Process the hotspots in REVERSE order, so that he who is plotted last (frontmost) is detected first for(int i=hotspot.length-1; i>=0; i--) { int dx = lastClick.x - hotspot[i].x, dy = lastClick.y - hotspot[i].y; if(dx*dx + dy*dy <= hotspot[i].r*hotspot[i].r) { activeHotspot = i; displacement.x = displacement.y = 0; addMouseMotionListener(mouseFollower); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean onDragStarted();", "@Override\n public void onDragStarted(int position) {\n }", "private void startDragging() {\n Point mousePosition = calculateMouseLocation();\n mouseX = mousePosition.getX();\n mouseY = mousePosition.getY();\n prevX = getArea(...
[ "0.82719445", "0.75420547", "0.74230576", "0.7356134", "0.7277677", "0.7130392", "0.70655525", "0.7052147", "0.7030703", "0.70189464", "0.6909287", "0.6798291", "0.67809576", "0.67789704", "0.67789704", "0.6768147", "0.67574596", "0.6744048", "0.6662771", "0.6658432", "0.6623...
0.0
-1
CONSTRUCTOR Create a JanusEllipsoid viewer on top of the double pendulum state object passed as the argument to the constructor
public InteractiveJanusEllipsoidViewer(InteractiveJanusEllipsoid attachedTo) { controller = attachedTo; setOpaque(true); setBackground(Color.WHITE); setPreferredSize(new Dimension(600,600)); // Set up hotspots for(int i=0; i<hotspot.length; i++) { hotspot[i] = new Hotspot(); } // Listen for mouse events addMouseListener(mouseFollower); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Viewer() {\r\n\t\tzoom = DEFAULT_ZOOM;\r\n\t\tisWireframe = false;\r\n\t\tisAxes = true;\r\n\t\tnextRotationAngle = 0;\r\n\t\tnextRotationAxis = null;\r\n\t\trotationMatrix = null;\r\n\t\tscreenWidth = 0;\r\n\t\tscreenHeight = 0;\r\n\t}", "public void init() {\n try {\n java.net.URL code...
[ "0.5981607", "0.59683686", "0.58004534", "0.57486904", "0.5714899", "0.5505402", "0.5469751", "0.5437378", "0.54349196", "0.53857327", "0.5377253", "0.53077996", "0.5307616", "0.52826774", "0.5269019", "0.52552974", "0.5251111", "0.52505195", "0.5214487", "0.5206022", "0.5196...
0.69461566
0
Use the displacement of the hotspot and current coordinate system to work out the new state to pass to the controller
private void hotspotDragEnded() { RigidBodyState state = controller.getRigidBodyState(); if(activeHotspot==0) { // change the z component of center of the ellipsoid state.center.a[2] = state.center.a[2] + (double)(displacement.y/sy); controller.setCenter(state.center); } else if(activeHotspot==1) { // change the orientation of the ellipsoid double rx = sx*controller.state.getAxis().a[0]; double ry = sx*controller.state.getAxis().a[2]; Vector3d zrotated = state.rot.rotate(ZAXIS); double theta = Math.acos(Vector3d.dot(zrotated, ZAXIS)); double tmpx = Math.sin(theta)*ry+displacement.x; double tmpy = Math.cos(theta)*ry-displacement.y; theta = Math.acos( tmpy/Math.sqrt(tmpx*tmpx+tmpy*tmpy) ); state.rot = new Quaternion( Math.cos(theta/2.), Vector3d.mult(XAXIS, Math.sin(theta/2.))); controller.setRot(state.rot); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move(TrackerState state) {\n\t\t\n\t\tcurrentPosition[0] = state.devicePos[0];\n\t\tcurrentPosition[1] = state.devicePos[1];\n\t\tcurrentPosition[2] = state.devicePos[2];\n\t\t\n\t\tboolean processMove = false;\n\t\t\n\t\tboolean isWheel = (state.actionType == TrackerState.TYPE_WHEEL);\n\t\tboolean isZ...
[ "0.6479857", "0.64787966", "0.6423041", "0.63848376", "0.6317476", "0.63173026", "0.6312558", "0.6231593", "0.6180656", "0.61330396", "0.60823953", "0.6041329", "0.5966331", "0.59557253", "0.59314054", "0.59287316", "0.5925427", "0.59143794", "0.59133625", "0.590001", "0.5890...
0.6566144
0
MESSAGES This is received whenever the simulation displayed by this view has started running
public void simulationStarted() { // Stop following the mouse while the simulation is running removeMouseListener(mouseFollower); // Ensure display is up-to-date repaint(); // Send repaint messages at regular intervals using the autoUpdater Timer object autoUpdater.restart(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void run() {\n System.out.println(\"PC Visual application run\");\n data = new Data(this);\n window = new Window(this);\n window.setup();\n mote = new MoteIF(PrintStreamMessenger.err);\n mote.registerListener(new OscilloscopeMsg(), this);\n }", "@Override\n\tpublic void onSimulationComplete(...
[ "0.6497786", "0.62589455", "0.61455345", "0.60999244", "0.60584927", "0.60581326", "0.603688", "0.5929316", "0.59230995", "0.58407515", "0.5840514", "0.5780054", "0.57756364", "0.57752085", "0.5772284", "0.57434684", "0.57434684", "0.57093006", "0.56940985", "0.56911904", "0....
0.5505336
50
This is received whenever the simulation displayed by this view has stopped running
public void simulationFinished() { // Stop sending regular repaint messages autoUpdater.stop(); // Ensure display is up-to-date repaint(); // Start following the mouse again addMouseListener(mouseFollower); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void stop() {}", "public void simulationTerminating() {\n }", "public void stopped();", "public void stop() {\r\n isRunning = false;\r\n System.out.println(\"Stop sim\");\r\n }", "@Override\n public void stop() {\n }", "@Override\r\n public void stop() {\r\n...
[ "0.6908369", "0.68891567", "0.6867456", "0.6820975", "0.681422", "0.67856663", "0.67856663", "0.6777656", "0.67650145", "0.6739005", "0.6738034", "0.67334306", "0.6730435", "0.6730435", "0.6730435", "0.6730435", "0.6730435", "0.6730435", "0.6730435", "0.6730435", "0.6730435",...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws IOException, DuplicateNameException { AbCServer srvr=new AbCServer(); srvr.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
System.out.println("(log) KcmMemberScr.displayFunc(KcmMemberVO _kmvo) entered");
public static void displayFunc(KcmMemberVO _kmvo){ System.out.print(" " + _kmvo.getKmem()); System.out.print(" " + _kmvo.getKid()); System.out.print(" " + _kmvo.getKpw()); System.out.print(" " + _kmvo.getKname()); System.out.print(" " + _kmvo.getKemail()); System.out.print(" " + _kmvo.getKhp()); System.out.print(" " + _kmvo.getKbirth()); System.out.print(" " + _kmvo.getKpostno()); System.out.print(" " + _kmvo.getKjuso()); System.out.print(" " + _kmvo.getKdeleteYN()); System.out.print(" " + _kmvo.getKinsertdate()); System.out.println(" " + _kmvo.getKupdatedate()); // System.out.println("(log) KcmMemberScr.displayFunc(KcmMemberVO _kmvo) left"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void printMsg(){\n\tdisplay();\n }", "public String toString ()\n {\n return \"function:\" + _vname;\n }", "@Override\n\tvoid showMsg() {\n\t\tSystem.out.println(\"Sample\");\n\t}", "void vorbereiten(){\n\t\tSystem.out.println(\"vorbereiten \");\n\t}", "public static void displayMsg() {\n...
[ "0.6649655", "0.6391291", "0.6307957", "0.6302251", "0.62825084", "0.62623274", "0.62133056", "0.6191053", "0.6191053", "0.6177503", "0.61730665", "0.616335", "0.61205", "0.6104659", "0.6102003", "0.60886943", "0.60859126", "0.6060935", "0.5998361", "0.59944385", "0.59935427"...
0.7951981
0
TODO Autogenerated method stub
public static void main(String[] args) { System.out.println("(log) Test.main() entered"); // connect Test // KcmMemberDAO kdao = null; // KcmMemberVO kvo = null; // String inputVal_1 = ""; // String inputVal_2 = ""; // // Scanner sc = new Scanner(System.in); // inputVal_1 = sc.nextLine(); // if(sc.hasNext()){ // inputVal_2 = sc.nextLine(); // } // sc.close(); // System.out.println("inputVal_1 >>> " + inputVal_1); // System.out.println("inputVal_2 >>> " + inputVal_2); // // kvo = new KcmMemberVO(); // kvo.setKid(inputVal_1); // kvo.setKpw(inputVal_2); // // System.out.println("kid >>> " + kvo.getKid()); // System.out.println("kpw >>> " + kvo.getKpw()); // // kdao = new KcmMemberDAOImpl(); // List<KcmMemberVO> aList = kdao.loginKcmMember(kvo); // System.out.println("aList.size() >>> " + aList.size()); // // System.out.println(aList.iterator()); // Iterator<KcmMemberVO> iter = aList.iterator(); // if (iter.hasNext()){ // KcmMemberVO kvo_2 = iter.next(); // System.out.println("kid >>> " + kvo_2.getKid()); // System.out.println("kpw >>> " + kvo_2.getKpw()); // } // Select All Test // KcmMemberDAO kdao = null; // // kdao = new KcmMemberDAOImpl(); // List<KcmMemberVO> aList = (List<KcmMemberVO>)kdao.selectKcmMember(); // // Iterator<KcmMemberVO> iter = aList.iterator(); // if (iter != null){ // while (iter.hasNext()){ // KcmMemberVO kvo = iter.next(); // Test.displayFunc(kvo); // } // } // // Insert Test // String id = "happy"; // String pw = "123452"; // String name = "김하방"; // String email = "habang@gmail.com"; // String hp = "01012485421"; // String birth = "19940410"; // String postno = "11241"; // String juso = "서울시 서대문구 남가좌동"; // // KcmMemberDAO kdao = null; // boolean flag = false; // KcmMemberVO kmvo = new KcmMemberVO(); // kmvo.setKid(id); // kmvo.setKpw(pw); // kmvo.setKname(name); // kmvo.setKemail(email); // kmvo.setKhp(hp); // kmvo.setKbirth(birth); // kmvo.setKpostno(postno); // kmvo.setKjuso(juso); // // kdao = new KcmMemberDAOImpl(); // flag = kdao.insertKcmMember(kmvo); // if (flag){ // System.out.println(" 회원가입 성공!"); // } // // search Test // String mem = "M201912060020"; // // KcmMemberVO kvo = new KcmMemberVO(); // kvo.setKmem(mem); // // KcmMemberDAO kmdao = new KcmMemberDAOImpl(); // List<KcmMemberVO> aList = kmdao.searchKcmMember(kvo); // Iterator<KcmMemberVO> iter = aList.iterator(); // if (aList.size() > 0){ // while (iter.hasNext()){ // KcmMemberVO kvo_2 = iter.next(); // Test.displayFunc(kvo_2); // } // } // System.err.println("dsdadassssssssssss"); // pw update Test // String mem = "M201911190005"; // String pw = "qwerqwer"; // // KcmMemberVO kmvo = new KcmMemberVO(); // kmvo.setKmem(mem); // // KcmMemberDAO kmdao = new KcmMemberDAOImpl(); // boolean flag = kmdao.updateKcmMember(kmvo, pw); // if (flag){ // System.out.println("변경 성공"); // }else{ // System.out.println("실패"); // } // // delete Test String mem = "M201912260029"; KcmMemberVO kmvo = new KcmMemberVO(); kmvo.setKmem(mem); KcmMemberDAO kmdao = new KcmMemberDAOImpl(); boolean flag = kmdao.deleteKcmMember(kmvo); if (flag){ System.out.println("삭제 성공!"); } System.out.println("(log) Test.main() left"); }
{ "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
Constructor for a Point with x and y coordinate
public Point(double x, double y) { this.x = x; this.y = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point(int x, int y) {\r\n this.x = x;\r\n this.y = y;\r\n }", "public Point(int x, int y) {\n this.x = x;\n this.y = y;\n }", "Point(int x_, int y_){\n x = x_;\n y = y_;\n }", "public Point(int x, int y){\n this.x = x;\n this.y = y;\n ...
[ "0.88099146", "0.8801884", "0.8786148", "0.877214", "0.8747362", "0.87469774", "0.8742515", "0.8733332", "0.8711299", "0.8711299", "0.8711299", "0.87098885", "0.8699752", "0.8696256", "0.8679102", "0.8671732", "0.86603916", "0.8647926", "0.8643684", "0.8643684", "0.8643684", ...
0.87140787
12
TODO Autogenerated method stub
@Override public void onSelectedDayChange(CalendarView view, int year, int month, int dayOfMonth) { bookingDate = dayOfMonth + "-" + (month + 1) + "-" + year; date = dayOfMonth; mon = (month + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
Interface for treelike structures based on generic Object. Intended to be called from ITreeContentProvider
public interface ITreeObject { public static final Object[] EMPTY_OBJECT_ARRAY = new Object[0]; /** * Returns immediate parent of this item * @return immediate parent item or null if this item has no parent or parent is unknown */ Object getParent(); /** * Tells if item has children * @return true if this item has children */ boolean hasChildren(); /** * Returns number of children * @return child count */ int getChildCount(); /** * Returns array of child items as generic Objects * @return array of child items or empty array if item has no children */ Object[] getChildArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Tree<T extends Comparable<T>> {\n public boolean isEmpty();\n\n public int size();\n\n public T min();\n\n public T max();\n\n public boolean contains(T element);\n\n public boolean add(T element);\n\n public boolean remove(T element);\n\n public Iterator<T> traverse(TreeTraversalOrder ord...
[ "0.6556851", "0.63736445", "0.61401516", "0.6123832", "0.6088042", "0.5918048", "0.5894614", "0.5883975", "0.58781624", "0.58305824", "0.5829313", "0.57495797", "0.5738761", "0.5735329", "0.5725699", "0.5714407", "0.57054687", "0.57004386", "0.56992704", "0.5675073", "0.56630...
0.7286086
0
Returns immediate parent of this item
Object getParent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ILitePackItem getParent();", "IMenuItem getParent();", "public String getParent() {\n return _theParent;\n }", "public String getParent() {\r\n return parent;\r\n }", "public String getParent() {\n return _parent;\n }", "public String getParent() {\n return parent;\n }...
[ "0.7840944", "0.7766023", "0.7729814", "0.77037704", "0.7698172", "0.76944274", "0.76909804", "0.76693743", "0.7612053", "0.75888956", "0.7586234", "0.7581663", "0.7581663", "0.7581663", "0.7560674", "0.7541696", "0.7530293", "0.7530293", "0.75213987", "0.7516302", "0.7473911...
0.7405561
23
Tells if item has children
boolean hasChildren();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasChildren()\n/* */ {\n/* 487 */ return !this.children.isEmpty();\n/* */ }", "@Override\r\n \tpublic boolean hasChildren() {\n \t\treturn getChildren().length > 0;\r\n \t}", "public boolean hasChildren()\n\t{\n\t\treturn !getChildren().isEmpty();\n\t}", "@Override\n\tpublic...
[ "0.8356129", "0.83427", "0.83176905", "0.8151436", "0.8151436", "0.8130908", "0.80998033", "0.80882585", "0.80119556", "0.79373974", "0.78576285", "0.75949854", "0.74163324", "0.73461825", "0.72844046", "0.7076238", "0.7076238", "0.7075823", "0.70154", "0.6950616", "0.689588"...
0.8660109
0
Returns number of children
int getChildCount();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int countChildren() {\n return this.children.size();\n }", "public abstract int getNumChildren();", "public int numberOfChildren() {\n\t\tif(children == null) return 0;\n\t\telse return children.size();\n\t}", "public int countChildren() {\n return this.children.size();\n }", "public i...
[ "0.88218534", "0.87664574", "0.8758004", "0.8755249", "0.8747987", "0.8656182", "0.86233485", "0.8559981", "0.85585666", "0.8543808", "0.84548926", "0.84538764", "0.8332777", "0.8309579", "0.82941645", "0.826627", "0.8233127", "0.82005084", "0.8097772", "0.808028", "0.8044587...
0.88393754
0
Returns array of child items as generic Objects
Object[] getChildArray();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<ChildType> getChildren();", "public List<RealObject> getChildren();", "public interface ITreeObject {\r\n\r\n\tpublic static final Object[] EMPTY_OBJECT_ARRAY = new Object[0]; \r\n\t/**\r\n\t * Returns immediate parent of this item\r\n\t * @return immediate parent item or null if this item ha...
[ "0.65088713", "0.63814247", "0.6176516", "0.6120424", "0.61040795", "0.6035966", "0.5960544", "0.59089625", "0.58880144", "0.58819145", "0.5848955", "0.58325094", "0.58100647", "0.5793748", "0.5735431", "0.5716159", "0.5714628", "0.5686397", "0.56674975", "0.5662709", "0.5638...
0.71852475
0
get data source from application context
public DataSource getDataSource(){ // open/read the applicliation context file // belove instruction to ger absolute path of current java apps //URL location = NaicsUtility.class.getProtectionDomain().getCodeSource().getLocation(); //System.out.println(location); ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext("./../db.xml"); DataSource dataSource = null; try{ dataSource = (DataSource) appContext.getBean("dataSource"); } catch ( Exception ex ) { logger.log( Level.SEVERE, "ERROR: can't create spring context and data source from application context", ex.getMessage() ); } finally { appContext.close(); } return dataSource; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public DataSource getDataSource(Context appContext) {\n // As per\n // http://goo.gl/clVKsG\n // we can rely on the application context never changing, so appContext is only\n // used once (during initialization).\n if (ds == null) {\n //ds = new InMemoryDataS...
[ "0.7375492", "0.710195", "0.6999771", "0.6860788", "0.6803394", "0.6790814", "0.6775805", "0.67751694", "0.6761575", "0.67535233", "0.6733285", "0.6658415", "0.6645243", "0.6622294", "0.66219383", "0.6606725", "0.66007525", "0.66007525", "0.65911156", "0.65514356", "0.6489106...
0.7454886
0
METHODES CONSTRUCTEUR D'ARITE NULLE.
public MotifCellFactoryObservable() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.repl...
[ "0.6755881", "0.59981745", "0.5888508", "0.57506496", "0.57257235", "0.5706368", "0.56694764", "0.5657638", "0.55908436", "0.55879104", "0.55872625", "0.5584629", "0.55776507", "0.55271226", "0.55115986", "0.5489856", "0.5475688", "0.5455248", "0.5439337", "0.54335284", "0.54...
0.0
-1
Created by Wally1 on 11/06/2016.
public interface OrganizationInteractor { interface onOrganization{ void onErrorName(); void onErrorTel(); void onErrorAddres(); void onCreate(boolean s); } boolean createOrganization(String name,String tel,String dir, onOrganization listener); Organization getOrganiation(int i); void delteOrganization(int i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires(...
[ "0.6098719", "0.6018274", "0.59224385", "0.58828264", "0.58544546", "0.58497", "0.58246577", "0.5804394", "0.58016825", "0.575713", "0.575713", "0.56949395", "0.5689027", "0.5687629", "0.5683553", "0.56419206", "0.56419206", "0.56419206", "0.56419206", "0.56419206", "0.564192...
0.0
-1
Created by PC6 on 25.04.2017.
public interface FeedbackService { void add(String subject, String text, Date date, Task task, User user); void edit(int id, String subject, String text, Date date); void delete(int id); Feedback findById(int id); List<Feedback> findAllForTask(Task task); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\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 vo...
[ "0.57652986", "0.57026404", "0.5677089", "0.5655216", "0.5620874", "0.5556887", "0.5556887", "0.5533072", "0.5518606", "0.5509078", "0.55026853", "0.5497029", "0.54651856", "0.5454786", "0.5453004", "0.5435199", "0.54341733", "0.54056793", "0.5402582", "0.5394887", "0.5391446...
0.0
-1
Check fields depending on type of question
private boolean checkType() { if (CorrectAnswer.getText().equals("") || typeQuestion.getValue() == null) { if (typeQuestion.getValue() == null) errorMsg += "Which type of question do you want?\n"; if (CorrectAnswer.getText().equals("")) errorMsg += "There is no Correct Answer\n"; return false; } else { switch ((String) typeQuestion.getValue()) { // case TrueFalse : it must true or false case "TrueFalse" : { if(CorrectAnswer.getText().equalsIgnoreCase("true") || CorrectAnswer.getText().equalsIgnoreCase("false")) return true; errorMsg += "The answer has to be True or False\n"; return false; } // case MCQ : the answer has to be in the list of the different proposed answers case "MCQ" : // each answer is different from the others if(TextAnswer1.getText().equals(TextAnswer2.getText()) || TextAnswer1.getText().equals(TextAnswer3.getText()) || TextAnswer2.getText().equals(TextAnswer3.getText())) { errorMsg += "You can not have multiple times the same answer !!!\n"; return false; } if(CorrectAnswer.getText().equals(TextAnswer1.getText()) || CorrectAnswer.getText().equals(TextAnswer2.getText()) || CorrectAnswer.getText().equals(TextAnswer3.getText())) return true; errorMsg += "There must be a Correct Answer !\n"; return false; // case ShortAnswer : if there is an answer it is good default: return true; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkFields(){\n }", "boolean hasField3();", "boolean hasField4();", "boolean hasField2();", "boolean hasField1();", "private void checkModels()\n {\n if (myDataType != null)\n {\n SpecialKey specialKey = myDataType.getMetaDataInfo().getSpecialTypeForKey(myField...
[ "0.65744877", "0.6466454", "0.636774", "0.6295495", "0.6275029", "0.61666644", "0.61112696", "0.60965776", "0.60863376", "0.60474944", "0.6029587", "0.5986657", "0.5928526", "0.5866466", "0.5849677", "0.58150786", "0.58066946", "0.5752626", "0.5687504", "0.5684489", "0.566362...
0.5959518
12
Create a new question
private void creatingNewQuestion() { AbstractStatement<?> s; ListQuestions lq = new ListQuestions(ThemesController.getThemeSelected()); switch ((String) typeQuestion.getValue()) { case "TrueFalse": // just to be sure the answer corresponds to the json file Boolean answer = CorrectAnswer.getText().equalsIgnoreCase("true"); s = new TrueFalse<>(Text.getText(), answer); break; case "MCQ": s = new MCQ<>(Text.getText(), TextAnswer1.getText(), TextAnswer2.getText(), TextAnswer3.getText(), CorrectAnswer.getText()); break; default: s = new ShortAnswer<>(Text.getText(), CorrectAnswer.getText()); break; } lq.addQuestion(new Question(s, ThemesController.getThemeSelected(), Difficulty.fromInteger((Integer) difficulty.getValue()) )); lq.writeJson(ThemesController.getThemeSelected()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createQuestion(int sid,int qid,String qtype,String qtitle,String answer_a,String answer_b,String answer_c,String answer_d);", "public void addQuestion(Question question);", "public void createSurvey(int tid);", "@Test\r\n\tpublic void testCreate() {\r\n\t\tQuestion q = new Question(\"Empty\", 1, ...
[ "0.8194488", "0.74686027", "0.7388215", "0.72980994", "0.7146689", "0.70772743", "0.704275", "0.7034408", "0.7032499", "0.6971038", "0.69608843", "0.69329756", "0.6868901", "0.6778647", "0.67370063", "0.67245454", "0.6721196", "0.66453063", "0.6634768", "0.662168", "0.6607402...
0.830308
0
Change availability of field's answers
private void setAvailability(boolean b) { TextAnswer1.setVisible(b); TextAnswer2.setVisible(b); TextAnswer3.setVisible(b); TextAnswer1.setDisable(!b); TextAnswer2.setDisable(!b); TextAnswer3.setDisable(!b); LabelAnswer1.setVisible(b); LabelAnswer2.setVisible(b); LabelAnswer3.setVisible(b); // if not, we should not be able to write in the TextFields (I reset them to prevent errors) if (!b) { TextAnswer1.setText(""); TextAnswer2.setText(""); TextAnswer3.setText(""); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateFields() {\n\t\tsetNumComboBox();\n\t\tquestionNoList.setSelectedIndex(questionNo - 1);\n\n\t\tint numAnswers = testGenerator.getNumAnswers(questionNo);\n\t\tques.setText(testGenerator.getQuestionText(questionNo));\n\t\tans1.setText(testGenerator.getAnswerText(questionNo, 1));\n\t\tans2.setText(...
[ "0.6546547", "0.6471377", "0.63503706", "0.62928164", "0.6269685", "0.622596", "0.62109387", "0.6193082", "0.6074805", "0.594266", "0.59393644", "0.5938447", "0.59237117", "0.59050906", "0.5833158", "0.5781875", "0.577347", "0.5738085", "0.57355726", "0.57351816", "0.5716302"...
0.610296
8
this class managers all other iconRenderers
public IconRenderer() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerRenderers() {\n\n\t}", "private void initBaseIcons() {\n iconMonitor = new ImageIcon( getClass().getResource(\"/system.png\") );\n iconBattery = new ImageIcon( getClass().getResource(\"/klaptopdaemon.png\") );\n iconSearch = new ImageIcon( getClass().getResource(\"/xmag....
[ "0.6756284", "0.6696675", "0.65466094", "0.65382594", "0.6492521", "0.6418514", "0.64033115", "0.64033115", "0.63206077", "0.6226507", "0.6208715", "0.619193", "0.61503226", "0.6099603", "0.60735285", "0.6033728", "0.60313934", "0.60095596", "0.5992316", "0.5964548", "0.59536...
0.6991014
0
TODO Autogenerated method stub
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
/ Getters & Setters
public int getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void get() ...
[ "0.66695607", "0.6621256", "0.6552936", "0.6535096", "0.62308425", "0.6183343", "0.6167108", "0.61540556", "0.614458", "0.60767335", "0.601773", "0.60148233", "0.5981592", "0.5948035", "0.59308684", "0.59025115", "0.5880023", "0.58750594", "0.5861366", "0.586052", "0.586052",...
0.0
-1
TODO Autogenerated method stub
private void doDBProcessing() throws InterruptedException { Thread.sleep(5000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
Sample usage: "curl $HOST:$PORT/recommendation?productId=1".
@GetMapping( value = "/recommendation", produces = "application/json") List<Recommendation> getRecommendations( @RequestParam(value = "productId", required = true) int productId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n@Test\n public void testProductSelection() {\n\t \n\t\tRestAssured.baseURI = baseURL;\n\t\tRequestSpecification request = RestAssured.given();\n\t\t\n\t\t\n\t\trequest.header(\"Content-Type\", \"application/json\");\n\t\t\n\n\t\tJSONObject jobj = new JSONObject();\n\t\t\n\t\tjob...
[ "0.6053634", "0.594346", "0.5770166", "0.5769567", "0.57565576", "0.567018", "0.5609908", "0.55631477", "0.55294394", "0.5464955", "0.54465926", "0.5403859", "0.5367094", "0.53591055", "0.5335217", "0.5314748", "0.52932334", "0.5279105", "0.5203749", "0.5198371", "0.51965684"...
0.7273634
0
$1.00 for first thirty minutes, and any portion of 30 min after
public double getCost(int miles, int time) { return 1.00 + (time / 30 ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test public void shouldGive60MinFor150cent() {\r\n // First hour: $1.5\r\n assertEquals( 60 /*minutes*/, rs.calculateTime(150) ); \r\n }", "@Test public void shouldGive240MinFor950cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 4 * 60 /*minutes*/ , rs.calculateTime(950) ); \r\n }", "...
[ "0.6492051", "0.63792807", "0.63470465", "0.601531", "0.5853354", "0.572046", "0.5699488", "0.5613981", "0.5531339", "0.5505608", "0.55033594", "0.54969096", "0.5478216", "0.54087394", "0.5376232", "0.53678685", "0.53399324", "0.5314739", "0.5239512", "0.5231412", "0.5219772"...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseClicked(MouseEvent e) { int mx = e.getX(); int my = e.getY(); System.out.println("mx: " + mx + " my: " + my); windowm.findWindowByPosition(mx, my); repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseReleased(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseEntered(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseExited(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseDragged(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public void mouseMoved(MouseEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void keyTyped(KeyEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void keyPressed(KeyEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void keyReleased(KeyEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
Factory will create new instances of calculators, these are lightweight, each thread should use the factory as a given calculator should NOT be shared across thread (unless you know what you're doing) as the startDate, current date and working week would be shared. Once created, the set of holidays will NOT change even if a new set is registered; one needs to get a new DateCalculator to get the new set.
public interface KitCalculatorsFactory<E> { /** * Create a new CurrencyDateCalculatorBuilder specialised for 2 currencies, including WorkingWeek, calendars registered and CurrencyCalculatorConfig. * * NOTE that USD currency holiday must also be registered. * * @param ccy1 * first currency, will pickup the holiday set for this ccy. * @param ccy2 * second currency, will pick up the holiday set for this ccy. * @param spotLag * the number of days between tradeDate and spotDate. * @return a new CurrencyDateCalculatorBuilder * @exception IllegalArgumentException * if the type is not null or a valid value. * @since 1.4.0 */ CurrencyDateCalculatorBuilder<E> getDefaultCurrencyDateCalculatorBuilder(String ccy1, String ccy2, SpotLag spotLag); CurrencyDateCalculator<E> buildCurrencyDateCalculator(CurrencyDateCalculatorBuilder<E> builder); /** * Create a new IMMUTABLE CurrencyDateCalculator specialised for 2 currencies, including WorkingWeek, calendars * registered and CurrencyCalculatorConfig. * * NOTE that USD currency holiday must also be registered. * * @param ccy1 * first currency, will pickup the holiday set for this ccy. * @param ccy2 * second currency, will pick up the holiday set for this ccy. * @param spotLag * the number of days between tradeDate and spotDate. * @return a new CurrencyDateCalculator * @exception IllegalArgumentException * if the type is not null or a valid value. * @since 1.4.0 */ CurrencyDateCalculator<E> getDefaultCurrencyDateCalculator(String ccy1, String ccy2, SpotLag spotLag); /** * Use this method register a specific currency config, if not provided then the DefaultCurrencyCalculatorConfig will be given. * @param config that specifies the set of currencies subject to USD T+1. */ void setCurrencyCalculatorConfig(CurrencyCalculatorConfig config); CurrencyCalculatorConfig getCurrencyCalculatorConfig(); /** * Create a new DateCalculator for a given name and type of handling. * * @param name * calendar name (holidays set interested in). If there is set of * holidays with that name, it will return a DateCalculator with * an empty holiday set (will work on Weekend only). * @param holidayHandlerType * typically one of the value of HolidayHandlerType or null. * @return a new DateCalculator * @exception IllegalArgumentException * if the type is not null or a valid value. */ DateCalculator<E> getDateCalculator(String name, String holidayHandlerType); /** * Use this method to register a holidays calendar. * * @param calendarName * the calendar name to register these holidays under. * @param holidaysCalendar * the holiday calendar (non-working days with boundaries). */ KitCalculatorsFactory<E> registerHolidays(String calendarName, HolidayCalendar<E> holidaysCalendar); /** * @return true if the holiday calendar name is registered. */ boolean isHolidayCalendarRegistered(String calendarName); /** * @return an immutable Holiday Calendar name that is registered. */ HolidayCalendar<E> getHolidayCalendar(String calendarName); /** * @return an immutable set of registered calendar names */ Set<String> getRegisteredHolidayCalendarNames(); /** * Unregister a given holiday calendar * @param calendarName * the calendar name to unregister. */ KitCalculatorsFactory<E> unregisterHolidayCalendar(String calendarName); /** * unregister all holiday calendars; */ KitCalculatorsFactory<E> unregisterAllHolidayCalendars(); // ----------------------------------------------------------------------- // // ObjectLab, world leaders in the design and development of bespoke // applications for the securities financing markets. // www.ObjectLab.co.uk // // ----------------------------------------------------------------------- /** * Create a new PeriodCountCalculator. * * @return a PeriodCountCalculator */ PeriodCountCalculator<E> getPeriodCountCalculator(); /** * Create a new IMMDateCalculator. * * @return an IMMDateCalculator */ IMMDateCalculator<E> getIMMDateCalculator(); /** * Create a new holiday handler of given type * @param holidayHandlerType * @return a new handler * @throws IllegalArgumentException if the holidayHandlerType is unsupported * @since 1.4.0 */ HolidayHandler<E> getHolidayHandler(String holidayHandlerType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DateCalculator<E> getDateCalculator(String name, String holidayHandlerType);", "KitCalculatorsFactory<E> registerHolidays(String calendarName, HolidayCalendar<E> holidaysCalendar);", "KitCalculatorsFactory<E> unregisterAllHolidayCalendars();", "Calcul createCalcul();", "public interface HolidayService {\n\...
[ "0.6549371", "0.6355808", "0.61550415", "0.5588537", "0.5438899", "0.53470504", "0.5285051", "0.51849484", "0.5174851", "0.5164485", "0.5125897", "0.51244533", "0.50901824", "0.5056432", "0.50406593", "0.50350565", "0.5030872", "0.5011663", "0.4970549", "0.49542865", "0.49487...
0.6457189
1