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
Remove a course from student ongoing list
public String removeCourse(String courseName) { try { int i; String query = "SELECT * FROM courses WHERE coursename=?"; PreparedStatement pstmt = conn.prepareStatement(query); pstmt.setString(1, courseName); ResultSet rs = pstmt.executeQuery(); if (!rs.next()) { return "Course not found"; } int id = rs.getInt("courseid"); pstmt.close(); int size = studentRegList.size(); for (i = 0; i < size; i++) { if (studentRegList.get(i).getCourseId() == id) { studentRegList.get(i).removeRegistration(); studentRegList.remove(i); break; } } if (i == size) { return "Not currently registered in this course"; } } catch (Exception e) { e.printStackTrace(); } return "Course removed successfully"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeCourse(Course c) {\n courseList.remove(c);\n numOfCourses--;\n }", "public void removeCourse(String course);", "public void removeBycourse_id(long course_id);", "private void removeFromSavedCourseList() {\n System.out.println(\"The current courses in the saved course list are:...
[ "0.8196291", "0.7973308", "0.78012145", "0.7745683", "0.74756706", "0.74576956", "0.7185644", "0.7162787", "0.71137714", "0.7070159", "0.6890874", "0.6779682", "0.67504525", "0.66542184", "0.66534054", "0.6644759", "0.6551683", "0.6539975", "0.65153676", "0.6511667", "0.64730...
0.64974314
20
Check if student meet the prereg of a course
private boolean checkPre(int id) { boolean x = true; try { String query = "SELECT * FROM preregs WHERE courseid=?"; PreparedStatement pstmt = conn.prepareStatement(query); pstmt.setInt(1, id); ResultSet rs = pstmt.executeQuery(); if (rs != null) { while (rs.next()) { if (!checkCompletedCourse(rs.getInt("preregid"))) { x = false; break; } } } pstmt.close(); rs.close(); } catch (Exception e) { e.printStackTrace(); } return x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic EnrollmentStatus isSatisfiedBy(Section section) {\n\t\tfor(Course c : palnOfStudy.getCourses()){\n\t\t\tSystem.out.println(\"section:\"+section.getRepresentedCourse().getCourseNo());\n\t\t\tSystem.out.println(\"courseNo:\"+c.getCourseNo());\n\t\t\tif(section.getRepresentedCourse().getCourseNo()...
[ "0.70560175", "0.6844414", "0.67601585", "0.6709867", "0.66805774", "0.6649596", "0.64839697", "0.6434019", "0.6391549", "0.6359817", "0.6347838", "0.6320757", "0.627968", "0.62763274", "0.6172182", "0.6151438", "0.6093491", "0.6072242", "0.60646474", "0.6062562", "0.6060585"...
0.5856185
33
Check if student have completed a course
private boolean checkCompletedCourse(int id) { boolean x = false; for (Registration registration : completeCourses) { if (id == registration.getCourseId()) { x = true; break; } x = false; } return x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkCourseCompleted(Integer indexGroupID) {\r\n\t\tboolean success = false;\r\n\t\tCourse c1 = new Course();\r\n\t\tc1 = c1.retrieveCourseObjectByIndexGroup(indexGroupID);\r\n\r\n\t\tif (this.getCompletedCoursesList().contains(c1.getCourseID())) {\r\n\t\t\tsuccess = true;\r\n\t\t}\r\n\r\n\t\treturn...
[ "0.71735734", "0.6818646", "0.6506608", "0.6506608", "0.6388075", "0.63722044", "0.63722044", "0.63622457", "0.63280016", "0.6281935", "0.61712277", "0.6165227", "0.616313", "0.6127139", "0.6124267", "0.6121189", "0.60742897", "0.60440195", "0.6035882", "0.60205185", "0.59905...
0.77094084
0
Check if the student already enrolled in the given course
private boolean checkDuplicate(int id) { boolean x = false; for (Registration registration : studentRegList) { if (id == registration.getCourseId()) { x = true; break; } x = false; } return x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean enrolStudent(Student student){\n\t\tif(daysUntilStarts.equals(0) || enrolled.size() == 3 || student.getCertificates().contains(subject.getID())){\n\t\t\treturn false;\n\t\t}\n\t\tenrolled.add(student);\n\t\tstudent.enrol();\n\t\treturn true;\n\t}", "public boolean courseExists(int courseCode){}", "priv...
[ "0.72776157", "0.703575", "0.6900195", "0.66901046", "0.66689694", "0.6566924", "0.6562668", "0.6521222", "0.6446417", "0.6421181", "0.64154136", "0.63410395", "0.63346624", "0.63230383", "0.63082826", "0.63070506", "0.6302316", "0.627994", "0.62696666", "0.62383634", "0.6199...
0.5512773
83
Print all student courses
public String printStudentCourses() { String s = "Completed courses: \n"; for (Registration r : completeCourses) { s += r.toString(); } s += "Current courses: \n"; for (Registration r : studentRegList) { s += r.toString(); } s += "\0"; return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printAllcourses() {\n\t\tfor (int i = 0; i < CourseManager.courses.size(); i++) {\n\t\t\tSystem.out.println(i + 1 + \". \" + CourseManager.courses.get(i).getName() + \", Section: \" + CourseManager.courses.get(i).getSection());\n\t\t}\n\t}", "private void showStudentCourses()\r\n {\r\n \tString...
[ "0.8385604", "0.81464815", "0.7537181", "0.74782765", "0.7328182", "0.72962844", "0.72910166", "0.7241523", "0.719033", "0.7189851", "0.71622676", "0.7110905", "0.70635486", "0.70240885", "0.7021708", "0.6977103", "0.6973218", "0.6957646", "0.6949203", "0.6944054", "0.6850562...
0.82855797
1
Check the availability of the section
private boolean checkSectionAvailability(int id, int section) throws SQLException { String query = "SELECT * FROM sections WHERE courseid=? AND secnum=?"; PreparedStatement pstmt = conn.prepareStatement(query); pstmt.setInt(1, id); pstmt.setInt(2, section); ResultSet rs = pstmt.executeQuery(); rs.next(); if (rs.getInt("numofstudents") < rs.getInt("seccap")) { rs.close(); return true; } else { rs.close(); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isBillingSectionPresent();", "@Override\n\tpublic EnrollmentStatus isSatisfiedBy(Section section) {\n\t\tfor(Course c : palnOfStudy.getCourses()){\n\t\t\tSystem.out.println(\"section:\"+section.getRepresentedCourse().getCourseNo());\n\t\t\tSystem.out.println(\"courseNo:\"+c.getCourseNo());\n\t\t\tif(sect...
[ "0.64807063", "0.6350963", "0.63194525", "0.62943995", "0.628522", "0.6201049", "0.6201049", "0.6201049", "0.6201049", "0.61125535", "0.6088281", "0.6043199", "0.60000724", "0.5999351", "0.5999351", "0.5999351", "0.5999351", "0.5999351", "0.5989116", "0.5955235", "0.5955235",...
0.71928775
0
Add a course to student ongoing list
public String addCourse(String courseName, int section) { String result = ""; try { System.out.println(courseName); String query = "SELECT * FROM courses WHERE coursename=?"; PreparedStatement pstmt = conn.prepareStatement(query); pstmt.setString(1, courseName); ResultSet rs = pstmt.executeQuery(); if (!rs.next()) { result = "Course not found"; return result; } int courseid = rs.getInt("courseid"); if (checkDuplicate(courseid)) { result = "Already registered in this course"; return result; } if (studentRegList.size() >= 6) { result = "Maximum registration reached"; return result; } if (!checkPre(courseid)) { result = "Prerequisite not met"; return result; } if (rs.getInt("numofsecs") < section || section <= 0) { result = "No such section"; return result; } if (!checkSectionAvailability(courseid, section)) { result = "Section is full"; return result; } Registration reg = new Registration(id, courseid, section, "TBA", conn); System.out.print(id); studentRegList.add(reg); reg.ongoingRegistration(); query = "SELECT * FROM sections WHERE courseid=? AND secnum=?"; pstmt = conn.prepareStatement(query); pstmt.setInt(1, courseid); pstmt.setInt(2, section); rs = pstmt.executeQuery(); rs.next(); if (rs.getInt("numofstudents") >= 8) { result = "Minimum student fulfilled, section is run"; } else { result = "Minimum student unfulfilled, waiting for more student before adding to offering list"; } pstmt.close(); rs.close(); } catch (Exception e) { e.printStackTrace(); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCourse(Course c) {\n\t\tcourseList.add(c);\n\t}", "void addCourse(Course course);", "public void addCourse(Course c){\n\t\tcourses.add(c);\n\t}", "public void addCourse(Course c) {\n if (this.contains(c) != true) { // checking if the course is in the courseList or not\n courseList.add(...
[ "0.7863237", "0.78347474", "0.78251755", "0.77241534", "0.73737216", "0.73052406", "0.7280984", "0.72591543", "0.7212304", "0.7196884", "0.7196401", "0.7165168", "0.7154006", "0.7084533", "0.7080333", "0.70698625", "0.70469373", "0.6953109", "0.690202", "0.6894623", "0.688998...
0.63716865
52
/ Return a test bundle object
public static Bundles initBundleObject(){ Bundles test_bundle = new Bundles("testArtifact", "testGroup", "1.0.0.TEST", 1); Host test_Host = new Host("test1", 1); test_bundle.setHostAssociated(test_Host); return test_bundle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void isBundleTest() {\n // TODO: test isBundle\n }", "@NotNull\n @Generated\n @Selector(\"bundle\")\n public native NSBundle bundle();", "public Bundle getBundle() {\n \t\tcheckValid();\n \n \t\treturn getBundleImpl();\n \t}", "public BundleDescription getBundle() {\n \t\...
[ "0.73477125", "0.63480705", "0.63381016", "0.63244116", "0.6245891", "0.61904585", "0.6124418", "0.5946555", "0.5875363", "0.5868997", "0.5863159", "0.58208233", "0.5800745", "0.5751731", "0.5737786", "0.5708761", "0.5681986", "0.5637303", "0.5622623", "0.5614583", "0.5609619...
0.7388572
0
/ Return a test group object
public static Group initGroupObject(){ Group test_group = new Group("testGroup"); return test_group; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void groupsTest() {\n // TODO: test groups\n }", "@Test\n public void groupTest() {\n // TODO: test group\n }", "public void testGroupJSON() throws Exception {\n\n IInternalContest contest = new UnitTestData().getContest();\n EventFeedJSON eventFeedJSON = ...
[ "0.6883386", "0.66431785", "0.6462549", "0.63659835", "0.63659835", "0.6314223", "0.62726337", "0.6253947", "0.6252275", "0.62326086", "0.62321514", "0.62321514", "0.62321514", "0.62321514", "0.62321514", "0.62321514", "0.62321514", "0.62321514", "0.62321514", "0.62321514", "...
0.7889757
0
An action listener that sets the panel's background color.
public void makeButton(String name, Color backgroundColor) { JButton button = new JButton(name); buttonPanel.add(button); button.addActionListener( event -> buttonPanel.setBackground(backgroundColor) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic void actionPerformed(ActionEvent actionevent)\r\n\t\t{\n\t\t\tColor c = (Color) getValue( \"Color\" );\r\n\t\t\tsetBackground( c );\r\n\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetBackground(color);\t\r\n\t\t\t\tvazioSouth.setBackground(color);\r...
[ "0.77353114", "0.7527923", "0.7259615", "0.6825456", "0.6789535", "0.6780044", "0.67235416", "0.6696215", "0.66917825", "0.658807", "0.65873086", "0.6564921", "0.6538144", "0.6532635", "0.649549", "0.6470916", "0.64525527", "0.64393526", "0.6431033", "0.63984025", "0.6347974"...
0.0
-1
Abstract method (does not have a body)
public abstract void PowerOn();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void method();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "public abstract void mo70713b();", "public abstract void mo957b();", "@Override\n public void function()\n {\n }", "@Override\n ...
[ "0.78036475", "0.73032475", "0.7275334", "0.7104087", "0.70857143", "0.70847106", "0.70847106", "0.7036239", "0.7029973", "0.7004255", "0.69762075", "0.69295853", "0.6925446", "0.6922194", "0.6919931", "0.69152945", "0.6900661", "0.6888865", "0.6885252", "0.68684834", "0.6864...
0.0
-1
TODO:Refactor 1: implement embed helper for all code
public static EmbedBuilder createEmbeded (String title, Color color) { return new EmbedBuilder().setTitle(title).setColor(color); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "EMBED createEMBED();", "ReferenceEmbed createReferenceEmbed();", "@Override\n public boolean isEmbedded() {\n return true;\n }", "private static EmbedBuilder JoinDM (){\n Color color = new Color(238,119,0);\n return new EmbedBuilder()\n .setColor(color)\n ...
[ "0.689068", "0.63595283", "0.63223183", "0.5615036", "0.54687786", "0.54355466", "0.54298544", "0.53662205", "0.53591067", "0.5227569", "0.5154515", "0.5111913", "0.5095778", "0.5071234", "0.50691915", "0.50420004", "0.50227904", "0.50160277", "0.4998141", "0.49850383", "0.49...
0.47422662
27
TODO Autogenerated method stub
@Override public void onClick(View v) { }
{ "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 updateView(Message msg) { }
{ "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 updateView(Intent intent) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Sets the size of the window
public PongGUI(int width, int height){ sWidth = width; sHeight = height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSize();", "@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }", "public void setSize(float width, float height);", "public void setWindowSize(int window_size) {\n this.window_size = window_size;\n }", "private void basicSize(){\n setSize(375,400);\n ...
[ "0.729151", "0.7274985", "0.7202416", "0.7200688", "0.71494925", "0.70643085", "0.69885755", "0.6987245", "0.69642776", "0.69566774", "0.6928648", "0.6917769", "0.69017357", "0.68791085", "0.68731666", "0.68566006", "0.6853636", "0.68311137", "0.68103707", "0.6771462", "0.676...
0.0
-1
Will create and show the window
public void createAndShowGUI(){ //You want the jframe to close everything when it is closed jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); if(maximized){ Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); sWidth = (int)screenSize.getWidth(); sHeight = (int)screenSize.getHeight(); jframe.setSize(sWidth, sHeight); jframe.setExtendedState(JFrame.MAXIMIZED_BOTH); jframe.setUndecorated(true); jframe.setResizable(true); jframe.setVisible(true); cWidth = sWidth; cHeight = sHeight; }else{ jframe.setResizable(false); //Makes the jframe visible jframe.setVisible(true); //Sets the size of the jframe jframe.setSize(sWidth, sHeight); //I have no fucking idea why it needs this but it does try{ Thread.sleep(100); }catch(Exception e){ } //Set the content width cWidth = jframe.getContentPane().getWidth(); //Set the content height cHeight = jframe.getContentPane().getHeight(); } //Set up the game menu GameMenu gmenu = new GameMenu((Graphics2D)(jframe.getContentPane().getGraphics()),cWidth,cHeight, new Input(jframe)); //Draw the main menu gmenu.drawMainMenu(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }", "void createWindow();", "private static void createWindow(){\n try{\n\n displayMode = new D...
[ "0.8040739", "0.7980817", "0.7737498", "0.76671267", "0.76526064", "0.75778055", "0.7410566", "0.73741", "0.73735654", "0.73290956", "0.7292838", "0.7244164", "0.7236135", "0.7219141", "0.72136307", "0.7202102", "0.71710885", "0.7170639", "0.7122647", "0.7100689", "0.7078266"...
0.6689602
65
Activity activityP; Context mContext;
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.sms1); c1 = new ArrayList<Contactsgettersetter>(); phonelist = (ListView) findViewById(R.id.phonelist); addcontacts = (Button) findViewById(R.id.addcontacts); smsButton = (Button) findViewById(R.id.smssent); favriot = (ImageButton) findViewById(R.id.favriot); favriot.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub finish(); } }); addcontacts.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); intent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE); startActivityForResult(intent, PICK_CONTACT); } }); smsButton.setOnClickListener( new OnClickListener() { @Override public void onClick(View v) { if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)||(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)) { int checkCallPhonePermission = ContextCompat.checkSelfPermission(SMS1.this,Manifest.permission.SEND_SMS); if (checkCallPhonePermission != PackageManager.PERMISSION_GRANTED) { ActivityCompat.requestPermissions(SMS1.this,new String[]{Manifest.permission.SEND_SMS}, SEND_SMS); return; } else { for (int i = 0; i < c1.size(); i++) { sendSMSMessage(c1.get(i).getNumber()); Intent intent1 = new Intent(SMS1.this, BookingSelection.class); startActivity(intent1); } } } else { for (int i = 0; i < c1.size(); i++) { sendSMSMessage(c1.get(i).getNumber()); Intent intent1 = new Intent(SMS1.this, BookingSelection.class); startActivity(intent1); } } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Context getActivityContext(){\n return mActivityContext;\n }", "private Context getContext() {\n return mContext;\n }", "private Context getContext() {\n return mContext;\n }", "public static Activity getContext() {\n return instance;\n\n }", "@Override\n p...
[ "0.69982135", "0.68301857", "0.68301857", "0.6665442", "0.6644277", "0.6629404", "0.65487444", "0.6512934", "0.64993536", "0.64440686", "0.64356685", "0.64265215", "0.63688195", "0.6344462", "0.6344462", "0.6336832", "0.63268137", "0.6312245", "0.63010794", "0.62942183", "0.6...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { finish(); }
{ "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 onClick(View v) { Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI); intent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE); startActivityForResult(intent, PICK_CONTACT); }
{ "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
Log.i("Send SMS", phonnumber); String UserName = App_Common.getInstance(SMS1.this).getUserName();
protected void sendSMSMessage(String phonnumber) { String message = null; if (BookElectionFrgament.BTTtime == true) { message = "Hey! The tee time booking is confirmed as follows Date -" + BookElectionFrgament.formattedDate + "\n, Time - " + BookElectionFrgament.timeselected + "\n, No. of Holes - " + BookElectionFrgament.hole + "\nSee you at Karma Lakelands! "; } else if (Bookingdriverange.BDRTime == true) { message = "Hey! The driving range booking is confirmed as follows Date -" + Bookingdriverange.formattedDate + "\n, Time - " + Bookingdriverange.timeselected + "\n, Balls - " + Bookingdriverange.bucketselected + "\nSee you at Karma Lakelands! "; } try { SmsManager smsManager = SmsManager.getDefault(); smsManager.sendTextMessage(phonnumber, null, message, null, null); // Customdialog messagedialog= new Customdialog(SMS1.this); // messagedialog.show(); Toast.makeText(getApplicationContext(), "Your message has been sent successfully!", Toast.LENGTH_SHORT).show(); } catch (Exception e) { Toast.makeText(getApplicationContext(), "SMS failed, please try again.", Toast.LENGTH_SHORT).show(); e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendSMS() {\n //http://www.mkyong.com/android/how-to-send-sms-message-in-android/\n\n Intent intent = getIntent();\n String userName = intent.getStringExtra(LoginActivity.USER_NAME);\n String userDOB = intent.getStringExtra(LoginActivity.DOB);\n String doctorName = in...
[ "0.68557304", "0.656954", "0.6492064", "0.64436734", "0.639309", "0.6391264", "0.6340853", "0.6310822", "0.6296979", "0.62919205", "0.6287514", "0.6268094", "0.6260706", "0.6233829", "0.62222445", "0.61757463", "0.6152627", "0.61450183", "0.6133368", "0.60868406", "0.60572785...
0.6105257
19
TODO Autogenerated constructor stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.messagesendpopup); // d= new Dialog(getContext()); OK = (Button) findViewById(R.id.ok); OK.setOnClickListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Constructor(){\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n }", "@Ov...
[ "0.7658869", "0.71549827", "0.70363975", "0.6936954", "0.6918867", "0.6918655", "0.68630713", "0.68442994", "0.6838973", "0.68234706", "0.6819426", "0.6792848", "0.6792581", "0.6792581", "0.6792581", "0.6792581", "0.6792581", "0.6792581", "0.67713094", "0.67713094", "0.677130...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { switch (v.getId()) { case R.id.ok: dismiss(); // c.finishActivity(1); Intent i = new Intent(SMS1.this, BookingSelection.class); //Intent i = new Intent(Bookingconfirmation1.this,BookingSelection.class); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column booktable.bookid
public Integer getBookid() { return bookid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getBookId() {\n return bookId;\n }", "public Integer getBookId() {\n return bookId;\n }", "public Integer getBookId() {\n return bookId;\n }", "@Id \n\t@Basic( optional = false )\n\t@Column( name = \"book_id\", nullable = false )\n\tpublic Integer getId() {\n\t\t...
[ "0.7153694", "0.7153694", "0.7153694", "0.7089494", "0.70591486", "0.6986568", "0.693314", "0.693314", "0.689323", "0.68815964", "0.66253716", "0.65646285", "0.6338241", "0.63358", "0.63358", "0.63358", "0.63263994", "0.631291", "0.62833714", "0.62833714", "0.6236327", "0.6...
0.70474386
5
This method was generated by MyBatis Generator. This method sets the value of the database column booktable.bookid
public void setBookid(Integer bookid) { this.bookid = bookid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBook_id(int book_id) {\n\tthis.book_id = book_id;\n}", "public void setBookId(Integer bookId) {\n this.bookId = bookId;\n }", "public void setBookId(Integer bookId) {\n this.bookId = bookId;\n }", "public void setBookId(Integer bookId) {\n this.bookId = bookId;\n ...
[ "0.73837686", "0.73321366", "0.73321366", "0.73321366", "0.7294928", "0.71377546", "0.7089416", "0.70301914", "0.6842797", "0.68388635", "0.6329859", "0.6329859", "0.6329859", "0.6309515", "0.6308656", "0.62863326", "0.62152267", "0.62152267", "0.62099737", "0.62099737", "0.6...
0.73508155
1
This method was generated by MyBatis Generator. This method returns the value of the database column booktable.bookname
public String getBookname() { return bookname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Basic( optional = true )\n\t@Column( name = \"book_name\", length = 2147483647 )\n\tpublic String getBookName() {\n\t\treturn this.bookName;\n\t\t\n\t}", "public String getBookName()\r\n {\r\n\treturn bookName;\r\n }", "public StrColumn getBookTitle() {\n return delegate.getColumn(\"book_title\"...
[ "0.6807838", "0.6371905", "0.6362107", "0.6066555", "0.60485214", "0.6003665", "0.5941235", "0.57415986", "0.5725898", "0.57129675", "0.56696546", "0.5650169", "0.5650169", "0.56021893", "0.55964494", "0.55942124", "0.55714977", "0.5567707", "0.5567248", "0.55613965", "0.5463...
0.62129277
3
This method was generated by MyBatis Generator. This method sets the value of the database column booktable.bookname
public void setBookname(String bookname) { this.bookname = bookname == null ? null : bookname.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBookName(java.lang.String value);", "public void setBookName(final String bookName) {\n\t\tthis.bookName = bookName;\n\t}", "public void setBook_id(int book_id) {\n\tthis.book_id = book_id;\n}", "public void setBookName(String value) {\n setAttributeInternal(BOOKNAME, value);\n }", ...
[ "0.6828282", "0.6373838", "0.6299169", "0.6289012", "0.61499023", "0.61483294", "0.60923606", "0.59728485", "0.59174573", "0.58958226", "0.58727944", "0.5868264", "0.5851871", "0.5814713", "0.5814713", "0.5814713", "0.5769351", "0.5769351", "0.5762558", "0.5729236", "0.556941...
0.6042123
7
This method was generated by MyBatis Generator. This method returns the value of the database column booktable.author
public String getAuthor() { return author; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBookAuthor() {\n return bookAuthor;\n }", "public String getAuthor()\r\n {\r\n return (m_author);\r\n }", "public String getAuthor() {\r\n\t\treturn author;\r\n\t}", "public String getAuthor() {\r\n\t\treturn oAuthor;\r\n\t}", "public String getAuthorId() {\n retu...
[ "0.67749196", "0.6588129", "0.6577325", "0.6572502", "0.65709126", "0.65697664", "0.6555458", "0.6555458", "0.65471685", "0.652198", "0.6502422", "0.64599055", "0.6459349", "0.64540124", "0.645269", "0.645269", "0.64246553", "0.6400638", "0.6398457", "0.6372667", "0.6360262",...
0.65274864
20
This method was generated by MyBatis Generator. This method sets the value of the database column booktable.author
public void setAuthor(String author) { this.author = author == null ? null : author.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAuthor(String author)\r\n {\r\n m_author = author;\r\n }", "public void setAuthor(String author) {\n\tthis.author = author;\n}", "public void setAuthor(String author) {\r\n this.author = author;\r\n }", "public void setAuthor(Author author) {\r\n if (author != null) ...
[ "0.6709048", "0.6707468", "0.6703961", "0.66744107", "0.6653124", "0.6615446", "0.6615446", "0.6615446", "0.6615446", "0.6615446", "0.65922284", "0.6569232", "0.65064484", "0.649461", "0.6444706", "0.6444706", "0.64319503", "0.6406012", "0.6391547", "0.63033247", "0.6206704",...
0.627961
23
This method was generated by MyBatis Generator. This method returns the value of the database column booktable.printwhere
public String getPrintwhere() { return printwhere; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getWhere()\n {\n // StringBuffer ==> String\n return this.whSelect.toString(); \n }", "public void setPrintwhere(String printwhere) {\n this.printwhere = printwhere == null ? null : printwhere.trim();\n }", "@Override\n\tpublic String getWherePart() {\n\t\t\n\t\tretu...
[ "0.6030094", "0.58477783", "0.5400198", "0.52801627", "0.50892", "0.5081646", "0.5076902", "0.5061023", "0.5041624", "0.5000794", "0.49434477", "0.49394137", "0.49084398", "0.488692", "0.48563513", "0.4846569", "0.48280096", "0.48244882", "0.47686774", "0.4760425", "0.4739698...
0.6225341
0
This method was generated by MyBatis Generator. This method sets the value of the database column booktable.printwhere
public void setPrintwhere(String printwhere) { this.printwhere = printwhere == null ? null : printwhere.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWhere(String where) {\r\n\t\tthis._where = where;\r\n\t}", "public StatementBuilder setWhere(SqlPart where) {\n this.where = where;\n return this;\n }", "public String getPrintwhere() {\n return printwhere;\n }", "public void setWhereCondition(com.sforce.soap.partner...
[ "0.55095446", "0.538375", "0.5319985", "0.5024914", "0.49711314", "0.48879534", "0.4856271", "0.48510838", "0.4826594", "0.48139432", "0.47910136", "0.47844878", "0.47360763", "0.46805647", "0.4648946", "0.46254134", "0.45729", "0.45344442", "0.4529677", "0.4511192", "0.44835...
0.677208
0
This method was generated by MyBatis Generator. This method returns the value of the database column booktable.printdate
public Date getPrintdate() { return printdate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getPrint_time(){\r\n\t\treturn this.print_time ;\r\n\t}", "public void setPrintdate(Date printdate) {\n this.printdate = printdate;\n }", "public StrColumn getDateOfPDBRelease() {\n return delegate.getColumn(\"date_of_PDB_release\", DelegatingStrColumn::new);\n }", "@Override\...
[ "0.6131969", "0.59675336", "0.5890904", "0.5863539", "0.5765694", "0.5755121", "0.5732846", "0.5618311", "0.5601558", "0.55852294", "0.55489933", "0.55303085", "0.55263895", "0.5526097", "0.5525013", "0.55249643", "0.5485763", "0.5453665", "0.5416101", "0.5406916", "0.5400643...
0.66969717
0
This method was generated by MyBatis Generator. This method sets the value of the database column booktable.printdate
public void setPrintdate(Date printdate) { this.printdate = printdate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getPrintdate() {\n return printdate;\n }", "public void setDocumentDate(java.sql.Date newValue) {\n\tthis.documentDate = newValue;\n}", "public void setRecordDate(Date recordDate) {\n this.recordDate = recordDate;\n }", "public void setDate(long date)\r\n/* 199: */ {\r\n/...
[ "0.5988867", "0.5463762", "0.5454041", "0.5430036", "0.5410554", "0.5406034", "0.5384144", "0.537642", "0.5374358", "0.53614396", "0.5350155", "0.5346944", "0.5340366", "0.5315706", "0.5305547", "0.5297607", "0.52959734", "0.5295555", "0.5293551", "0.5288951", "0.52881396", ...
0.6961251
0
This method was generated by MyBatis Generator. This method returns the value of the database column booktable.introduction
public String getIntroduction() { return introduction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:introduction\")\n public String getIntroduction() {\n return getProperty(INTRODUCTION);\n }", "@Column(name = \"DESCRIPTION\", length = 200 )\n public String getDescription() {\n return description;\n }", "public String...
[ "0.5645259", "0.54953885", "0.53588945", "0.52943915", "0.5278197", "0.51841235", "0.51470584", "0.5113189", "0.5087315", "0.50383687", "0.49867842", "0.49867842", "0.49737495", "0.4963595", "0.49592552", "0.49157652", "0.491089", "0.4903241", "0.48884815", "0.48807088", "0.4...
0.58816326
0
This method was generated by MyBatis Generator. This method sets the value of the database column booktable.introduction
public void setIntroduction(String introduction) { this.introduction = introduction == null ? null : introduction.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBookDesc(java.lang.String value);", "public void setAccessibleColumnDescription(int param, javax.accessibility.Accessible accessible) {\n // Not supported by the UNO Accessibility API\n }", "public void setDescription(ArrayList descriptionColumn) {\n ArrayList<String> des...
[ "0.55456066", "0.53841215", "0.51608217", "0.5038546", "0.49913874", "0.49906966", "0.4939605", "0.49057025", "0.48406923", "0.48332116", "0.4831495", "0.48136434", "0.47992256", "0.4797922", "0.4797922", "0.47759774", "0.47095898", "0.46860072", "0.46265897", "0.46040732", "...
0.5725162
0
This method was generated by MyBatis Generator. This method returns the value of the database column booktable.note
public String getNote() { return note; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNote(){\r\n\t\treturn note;\r\n\t}", "public String getNote()\n {\n return note;\n }", "public String getNote() {\r\n return note; \r\n }", "public String getNote() {\r\n return note;\r\n }", "public String getNote() {\r\n return note;\r\n ...
[ "0.63058347", "0.62543374", "0.6229193", "0.62167263", "0.62167263", "0.6142111", "0.61370945", "0.6085334", "0.60807824", "0.60697705", "0.6067313", "0.6053021", "0.59765136", "0.59039325", "0.58865154", "0.58865154", "0.5875559", "0.57734907", "0.57118803", "0.5668163", "0....
0.6179346
15
This method was generated by MyBatis Generator. This method sets the value of the database column booktable.note
public void setNote(String note) { this.note = note == null ? null : note.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNote(String note);", "public void setDocumentNote (String DocumentNote);", "public void setNote(String note) {\r\n this.note = note; \r\n }", "public void setNote(String note) {\n if(note==null){\n note=\"\";\n }\n this.note = note;\n }", "void...
[ "0.64676166", "0.63664955", "0.6348867", "0.63473487", "0.6177272", "0.6081903", "0.6074385", "0.5964876", "0.5964876", "0.5964876", "0.5964876", "0.5964876", "0.5842597", "0.58376193", "0.58375007", "0.58346874", "0.5794019", "0.57269275", "0.5712886", "0.57069004", "0.56522...
0.56946427
23
This method was generated by MyBatis Generator. This method corresponds to the database table booktable
@Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } Book other = (Book) that; return (this.getBookid() == null ? other.getBookid() == null : this.getBookid().equals(other.getBookid())) && (this.getBookname() == null ? other.getBookname() == null : this.getBookname().equals(other.getBookname())) && (this.getAuthor() == null ? other.getAuthor() == null : this.getAuthor().equals(other.getAuthor())) && (this.getPrintwhere() == null ? other.getPrintwhere() == null : this.getPrintwhere().equals(other.getPrintwhere())) && (this.getPrintdate() == null ? other.getPrintdate() == null : this.getPrintdate().equals(other.getPrintdate())) && (this.getIntroduction() == null ? other.getIntroduction() == null : this.getIntroduction().equals(other.getIntroduction())) && (this.getNote() == null ? other.getNote() == null : this.getNote().equals(other.getNote())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VBookDao() {\n\t\tsuper(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK, org.jooq.test.h2.generatedclasses.tables.pojos.VBook.class);\n\t}", "private void putDataIntoTable(List<Book> books)\n {\n for(int i = 0; i<books.size(); i++)\n {\n bookTable.addItem(new Object[]{boo...
[ "0.60726875", "0.59526026", "0.5926464", "0.5895422", "0.589455", "0.5867534", "0.58021146", "0.57931656", "0.5771715", "0.57522917", "0.57513803", "0.5747331", "0.5747331", "0.5747331", "0.5739453", "0.5697911", "0.56559515", "0.56524867", "0.5651972", "0.56494844", "0.56426...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table booktable
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getBookid() == null) ? 0 : getBookid().hashCode()); result = prime * result + ((getBookname() == null) ? 0 : getBookname().hashCode()); result = prime * result + ((getAuthor() == null) ? 0 : getAuthor().hashCode()); result = prime * result + ((getPrintwhere() == null) ? 0 : getPrintwhere().hashCode()); result = prime * result + ((getPrintdate() == null) ? 0 : getPrintdate().hashCode()); result = prime * result + ((getIntroduction() == null) ? 0 : getIntroduction().hashCode()); result = prime * result + ((getNote() == null) ? 0 : getNote().hashCode()); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VBookDao() {\n\t\tsuper(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK, org.jooq.test.h2.generatedclasses.tables.pojos.VBook.class);\n\t}", "private void putDataIntoTable(List<Book> books)\n {\n for(int i = 0; i<books.size(); i++)\n {\n bookTable.addItem(new Object[]{boo...
[ "0.60722697", "0.59526837", "0.5926989", "0.5895274", "0.5893483", "0.5866593", "0.58020633", "0.57940036", "0.57717437", "0.5751345", "0.5750764", "0.57450503", "0.57450503", "0.57450503", "0.5738913", "0.5696493", "0.5654252", "0.5653337", "0.56509686", "0.5650571", "0.5641...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table booktable
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", bookid=").append(bookid); sb.append(", bookname=").append(bookname); sb.append(", author=").append(author); sb.append(", printwhere=").append(printwhere); sb.append(", printdate=").append(printdate); sb.append(", introduction=").append(introduction); sb.append(", note=").append(note); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VBookDao() {\n\t\tsuper(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK, org.jooq.test.h2.generatedclasses.tables.pojos.VBook.class);\n\t}", "private void putDataIntoTable(List<Book> books)\n {\n for(int i = 0; i<books.size(); i++)\n {\n bookTable.addItem(new Object[]{boo...
[ "0.6072412", "0.5952001", "0.59261274", "0.5895773", "0.58954734", "0.5867917", "0.58011883", "0.5793292", "0.5772098", "0.5752392", "0.5750973", "0.5746699", "0.5746699", "0.5746699", "0.5740119", "0.5697679", "0.56547844", "0.56520283", "0.5651619", "0.56493264", "0.5642770...
0.0
-1
Creates a new instance of GetAllPhyVolThread
public GetAllPhyVolThread( SanBootView view ) { super( view,false ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Thread createThread() {\n return new Thread(this::_loadCatalog, \"CDS Hooks Catalog Retrieval\"\n );\n }", "private void init(int threadCount, Type type) {\r\n //The backend starts to polling threads.\r\n mPoolThread=new Thread(){\r\n @Override\r\n pub...
[ "0.5642832", "0.52550256", "0.52335787", "0.5214688", "0.5205413", "0.51864433", "0.5125264", "0.50909334", "0.5058698", "0.5056094", "0.50120986", "0.500295", "0.49322203", "0.49270368", "0.4917453", "0.48512363", "0.4832324", "0.4831421", "0.48285872", "0.48249573", "0.4818...
0.6721813
0
Localizacion asociada a este espacio
public Espacio (int id, int capacidad, int ocupacion, TipoEspacio tipo, Localizacion localizacion){ this.id = id; this.capacidad = capacidad; this.ocupacion = ocupacion; this.TIPO = tipo; this.localizacion = localizacion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract java.lang.String getCod_localidad();", "void localizationChaneged();", "String getLocalization();", "public String toString(){\r\n return \"Local : \"+ idLocal + \" sigle : \"+ sigle +\" places : \"+ places + \" description : \"+ description;\r\n }", "public static void show_local...
[ "0.6708837", "0.6447896", "0.62771165", "0.6240469", "0.623181", "0.61511403", "0.61287177", "0.6120214", "0.60499984", "0.60417277", "0.5946104", "0.5932443", "0.59184945", "0.5827548", "0.57467794", "0.5739217", "0.57078654", "0.5679674", "0.56647474", "0.56346565", "0.5623...
0.5453562
35
elimina todo lo del archivo y escribe
public static void EscribirProductos(ArrayList ArrayObjetos) throws IOException { ArchivoGeneral.EscribirDAT(ArrayObjetos, fichero); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void EliminarArchivos(){\n\t\ttry{\n\t\tFile Delete = new File(\"Cod.txt\");\n\t\tDelete.deleteOnExit();\n\t\tFile Borrar = new File(\"Maq.txt\");\n\t\tBorrar.deleteOnExit();\n\t\tFile eliminar = new File(\"WS.txt\");\n\t\teliminar.deleteOnExit();\n\t\tFile Bye = new File(\"RESPALDO.txt\");\n\t\tBye.deleteO...
[ "0.73763925", "0.7340202", "0.7249626", "0.7224827", "0.7194587", "0.7179584", "0.711775", "0.7115408", "0.69664973", "0.6909947", "0.6880599", "0.68723583", "0.68714166", "0.670978", "0.670164", "0.66971034", "0.66932845", "0.6611835", "0.6609548", "0.6543667", "0.65149575",...
0.0
-1
agregar objetos sobre lo que toene el archivo
public static void InsertarProductos(ArrayList ArrayObjetos) throws IOException { ArchivoGeneral.anhadeFichero(ArrayObjetos,fichero); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void DesSerializar() throws FileNotFoundException {\n try {\n FileInputStream archivo = new FileInputStream(\"SerializacionEdificios\");\n ObjectInputStream entrada = new ObjectInputStream(archivo);\n ArrayList<Edificio> edificiosDes = (ArrayList<Edificio>) entrada.re...
[ "0.70008624", "0.67982936", "0.66787887", "0.66553503", "0.658903", "0.657205", "0.65520585", "0.6530567", "0.6479856", "0.6477513", "0.6464479", "0.64607894", "0.6443541", "0.6378987", "0.636344", "0.63324213", "0.6327317", "0.63181174", "0.63171417", "0.6311722", "0.6303531...
0.58470243
38
Povlacenje svih imena automobila iz baze podataka
public static List getAllNames() { List polovniautomobili = new ArrayList<>(); try { CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD); String query = "SELECT naziv FROM polovni"; try (PreparedStatement ps = CONNECTION.prepareStatement(query)) { ResultSet result = ps.executeQuery(); while (result.next()) { String naziv = result.getString("naziv"); polovniautomobili.add(naziv); } ps.close(); CONNECTION.close(); } CONNECTION.close(); } catch (SQLException ex) { Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex); } return polovniautomobili; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) ...
[ "0.6714128", "0.6502974", "0.647358", "0.6446711", "0.64376765", "0.63966286", "0.63053334", "0.6291483", "0.6290986", "0.6283224", "0.6281842", "0.6252852", "0.6251003", "0.62401086", "0.62388474", "0.6236873", "0.6222819", "0.6221263", "0.6205433", "0.61996436", "0.61803645...
0.0
-1
Povlacenje svih slika iz baze podataka
public static List getAllImgs() { List polovniautomobili = new ArrayList<>(); try { CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD); String query = "SELECT imgUrl FROM polovni"; try (PreparedStatement ps = CONNECTION.prepareStatement(query)) { ResultSet result = ps.executeQuery(); while (result.next()) { String imgUrl = result.getString("imgUrl"); polovniautomobili.add(imgUrl); } ps.close(); CONNECTION.close(); } CONNECTION.close(); } catch (SQLException ex) { Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex); } return polovniautomobili; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public static void TroskoviPredjenogPuta() {\n\t\tUtillMethod.izlistavanjeVozila();\n\t\tSystem.out.println(\"Unesite redni broj vozila za koje zelite da racunate predjeni put!\");\n\t\tint redniBroj =...
[ "0.6489414", "0.64656705", "0.64485383", "0.6387598", "0.63696915", "0.63613117", "0.63110876", "0.6284607", "0.6265227", "0.6260768", "0.6246929", "0.6245004", "0.62166214", "0.6201811", "0.61662835", "0.6159089", "0.61545616", "0.61539197", "0.61513054", "0.6148448", "0.613...
0.0
-1
povlacenje svih godista iz baze podataka
public static List getAllYears() { List polovniautomobili = new ArrayList<>(); try { CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD); String query = "SELECT godiste FROM polovni"; try (PreparedStatement ps = CONNECTION.prepareStatement(query)) { ResultSet result = ps.executeQuery(); while (result.next()) { int naziv = result.getInt("godiste"); polovniautomobili.add(naziv); } ps.close(); CONNECTION.close(); } CONNECTION.close(); } catch (SQLException ex) { Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex); } return polovniautomobili; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void ispisiSveNapom...
[ "0.66788495", "0.65721744", "0.6537273", "0.646849", "0.6437077", "0.64098144", "0.6390766", "0.63872576", "0.6356593", "0.6345758", "0.62881416", "0.62480015", "0.6227525", "0.62214905", "0.6202759", "0.6197063", "0.6189257", "0.61806595", "0.6174001", "0.6142388", "0.614070...
0.0
-1
povlacenje cena automobila iz baze podataka
public static List getAllPrices() { List polovniautomobili = new ArrayList<>(); try { CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD); String query = "SELECT cena FROM polovni"; try (PreparedStatement ps = CONNECTION.prepareStatement(query)) { ResultSet result = ps.executeQuery(); while (result.next()) { int naziv = result.getInt("cena"); polovniautomobili.add(naziv); } ps.close(); CONNECTION.close(); } CONNECTION.close(); } catch (SQLException ex) { Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex); } return polovniautomobili; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "public void dodajZmijuPocetak() {\n\t\tthis.zmija.add(new Cvor(1,4));\n\t\tthis.zmija.add(new Cvor(1,3));\n\t\tthis.zmija.add(new Cvor(1,2))...
[ "0.67204976", "0.65393364", "0.6502145", "0.64462554", "0.63820285", "0.6340318", "0.6326526", "0.62860984", "0.6267294", "0.6264233", "0.6255971", "0.62514037", "0.62447256", "0.62342054", "0.6230542", "0.6229984", "0.62147284", "0.62107784", "0.6202261", "0.6144721", "0.613...
0.0
-1
povlacenje svih linkova ka automobilima koji se nalaze u bazi a i na polovniautomobili.com
public static List getAllUrl() { List polovniautomobili = new ArrayList<>(); try { CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD); String query = "SELECT url FROM polovni"; try (PreparedStatement ps = CONNECTION.prepareStatement(query)) { ResultSet result = ps.executeQuery(); while (result.next()) { String naziv = result.getString("url"); polovniautomobili.add(naziv); } ps.close(); CONNECTION.close(); } CONNECTION.close(); } catch (SQLException ex) { Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex); } return polovniautomobili; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLink();", "public String getLink();", "public void setLink(String link)\n {\n this.link = link;\n }", "public void setLink(Kyykka link) {\n this.link = link;\n }", "public void setLink(String link) {\r\n this.link = link;\r\n }", "public void setLink(String link) {\r\...
[ "0.6329706", "0.6206242", "0.61609566", "0.60984886", "0.6061233", "0.6047134", "0.60429263", "0.6034211", "0.6034211", "0.6034211", "0.60322547", "0.60317165", "0.5954035", "0.59218335", "0.5900019", "0.5885792", "0.58787954", "0.58678585", "0.58269995", "0.5819085", "0.5810...
0.5594218
46
brisanje postojeceg automobila iz baze podataka
public static void delete(int id) { try { CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD); String query = "DELETE FROM polovni WHERE id = ?"; try (PreparedStatement ps = CONNECTION.prepareStatement(query)) { ps.setInt(1, id); ps.execute(); System.out.println("Uspesno brisanje iz baze."); } } catch (SQLException ex) { Logger.getLogger(PolovniFunctions.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void postularse() {\n\t\t\n\t\ttry {\t\t\t\n\n\t\t\tPostulante postulante= new Postulante();\n\t\t\tpostulante.setLegajo(Integer.valueOf(this.txtLegajo.getText()));\n\t\t\tpostulante.setFamiliaresACargo(Integer.valueOf(this.txtFamiliaresACargo.getText()));\n\t\t\tpostulante.setNombre(txtNombre.getText());\n...
[ "0.6566695", "0.63346076", "0.62522787", "0.6193348", "0.6192852", "0.6103047", "0.6099297", "0.6088273", "0.60765487", "0.60579926", "0.60468507", "0.5971261", "0.5959183", "0.5940592", "0.591429", "0.5894316", "0.58883184", "0.5880899", "0.58669716", "0.5860926", "0.5837716...
0.0
-1
citanje jednog automobila iz baze podataka
public static PolovniAutomobili read(int id) { PolovniAutomobili s = null; try { CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD); String query = "SELECT * FROM polovni WHERE id = ?"; try (PreparedStatement ps = CONNECTION.prepareStatement(query)) { ps.setInt(1, id); ResultSet result = ps.executeQuery(); if (result.next()) { s = new PolovniAutomobili(result.getString("imgUrl"), result.getString("naziv"), result.getInt("godiste"), result.getInt("cena"), result.getString("url")); } CONNECTION.close(); } } catch (SQLException ex) { System.out.println("MySql Connection error..."); Logger.getLogger(PolovniFunctions.class.getName()).log(Level.SEVERE, null, ex); return null; } return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dodajZmijuPocetak() {\n\t\tthis.zmija.add(new Cvor(1,4));\n\t\tthis.zmija.add(new Cvor(1,3));\n\t\tthis.zmija.add(new Cvor(1,2));\n\t\t\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\tthis.tabla[i][j] = 'O';\n\t\t\n\t\tfor (int k = 1; k < this.zmija.size(); k++) {\n\t\t\ti = th...
[ "0.644536", "0.6395233", "0.63770354", "0.6355007", "0.62930524", "0.6156425", "0.6144538", "0.6110725", "0.61061025", "0.6101385", "0.60981554", "0.60797614", "0.60671496", "0.6061891", "0.6014712", "0.60093", "0.60087496", "0.5997858", "0.5970443", "0.59622693", "0.5951573"...
0.0
-1
Azuriranje automobila u bazi podataka
public static void update(int id, PolovniAutomobili ns) { try { CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD); String query = "UPDATE users SET imgUrl = ?, naziv = ?, godiste = ?, cena = ?, url = ? WHERE id = ?"; try (PreparedStatement ps = CONNECTION.prepareStatement(query)) { ps.setString(1, ns.getImgUrl()); ps.setString(2, ns.getNaziv()); ps.setInt(3, ns.getGodiste()); ps.setInt(4, ns.getCena()); ps.setString(6, ns.getUrl()); ps.setInt(7, id); ps.execute(); System.out.println("Uspesno azuriranje baze."); } } catch (SQLException ex) { System.out.println("MySql Connection error..."); Logger.getLogger(PolovniFunctions.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CTematicaBienestar() {\r\n\t}", "private zza.zza()\n\t\t{\n\t\t}", "public void asignarRaza(int raza);", "public Arbol(){\n\t this.esVacio=true;\n\t this.hIzq = null;\n\t this.hDer = null;\n\t}", "public AutomatZustand()\r\n\t{\r\n\t\tthis.ew_lokal = Automat.eingabewort;\r\n\t}", "private...
[ "0.54340047", "0.53926474", "0.5374285", "0.5356613", "0.53214633", "0.5296295", "0.5286879", "0.5284719", "0.52551925", "0.5230595", "0.52269715", "0.51915056", "0.5188911", "0.51570183", "0.5152314", "0.51503813", "0.5081725", "0.50768113", "0.50705945", "0.50292945", "0.50...
0.0
-1
Citanje svih automobila koji se nalaze u bazi podataka
public static List<PolovniAutomobili> readAll() { List<PolovniAutomobili> listaUsera = new ArrayList<>(); try { CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD); String query = "SELECT * FROM polovni WHERE 1"; try (Statement st = (Statement) CONNECTION.createStatement()) { ResultSet rs = st.executeQuery(query); while (rs.next()) { String imgUrl = rs.getString("imgUrl"); String naziv = rs.getString("naziv"); int godiste = rs.getInt("godiste"); int cena = rs.getInt("cena"); String url = rs.getString("url"); listaUsera.add(new PolovniAutomobili(imgUrl, naziv, godiste,cena,url)); } } CONNECTION.close(); } catch (SQLException ex) { System.out.println("MySql Connection error..."); ex.printStackTrace(); } return listaUsera; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadMaTauVaoCBB() {\n cbbMaTau.removeAllItems();\n try {\n ResultSet rs = LopKetNoi.select(\"select maTau from Tau\");\n while (rs.next()) {\n cbbMaTau.addItem(rs.getString(1));\n }\n } catch (Exception e) {\n System.out.p...
[ "0.64065665", "0.6326584", "0.62286466", "0.62042886", "0.6195537", "0.6168947", "0.61660594", "0.6152013", "0.6143691", "0.6112819", "0.60777074", "0.6075507", "0.6017314", "0.60103315", "0.5997042", "0.5989599", "0.5983293", "0.59801203", "0.5977925", "0.59765726", "0.59511...
0.0
-1
Reads and parses the file information line by line
public void populate(Universe universe, String filter, boolean showNodes, boolean showEdges, boolean showHyperEdges) { this.root = new TreeItem<>(universe); this.setRoot(root); this.showNodes = showNodes; this.showEdges = showEdges; this.showHyperEdges = showHyperEdges; this.root.getChildren().clear(); // parsing file and creating a collection of graphs this.universe = universe; tree_graphs = new TreeItem<>("Graphs"); root.getChildren().add(tree_graphs); if (this.showNodes) { tree_nodes = new TreeItem<>("Nodes (" + universe.getNodes().size() + ")"); root.getChildren().add(tree_nodes); } if (this.showEdges) { tree_edges = new TreeItem<>("Edges (" + universe.getEdges().size() + ")"); root.getChildren().add(tree_edges); } if (this.showHyperEdges) { tree_hyper_edges = new TreeItem<>("HyperEdges (" + universe.getHyperEdges().size() + ")"); root.getChildren().add(tree_hyper_edges); } Collection<Graph> graphs = universe.getGraphs(); for (Graph graph : graphs) { parseGraph(graph, tree_graphs, filter); } if (showNodes) { for (INode node : universe.getNodes()) { parseNode(node, tree_nodes, filter); } } if (showEdges) { for (IEdge edge : universe.getEdges()) { parseEdge(edge, tree_edges, filter); } } if (showHyperEdges) { for (IHyperEdge hyperEdge : universe.getHyperEdges()) { parseHyperEdge(hyperEdge, tree_hyper_edges, filter); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openAndReadFile() throws IOException {\n\t\tFileReader fr = new FileReader(path);\n\t\tBufferedReader textreader = new BufferedReader(fr);\n\t\tString line;\n\t\tString[] parsedLine;\n\t\twhile ((line = textreader.readLine()) != null) {\n\t\t\tparsedLine = pattern.split(line);\n\t\t\tif (parsedLine.le...
[ "0.65792227", "0.64831775", "0.6405935", "0.63445014", "0.63364047", "0.6260347", "0.62260973", "0.61781037", "0.61508894", "0.603002", "0.6020693", "0.6012302", "0.5996228", "0.599354", "0.59689987", "0.5966046", "0.596553", "0.5951375", "0.5930428", "0.5904038", "0.589647",...
0.0
-1
parses the nodes and edges associated with the graph selected
public void parseGraph(IGraph graph, TreeItem<Object> root, String filter) { TreeItem<Object> graphItem = new TreeItem<>(graph // .getID() ); root.getChildren().add(graphItem); if (this.showNodes) { TreeItem<Object> nodeTI = new TreeItem<>(graph + " Nodes (" + graph.getNodes().size() + ")"); graphItem.getChildren().add(nodeTI); for (INode node : graph.getNodes()) { if (node.getID().contains(filter)) { this.parseNode(node, nodeTI, filter); } } } if (this.showEdges) { TreeItem<Object> edgeTI = new TreeItem<>(graph + " Edges (" + graph.getEdges().size() + ")"); graphItem.getChildren().add(edgeTI); for (IEdge edge : graph.getEdges()) { if (edge.toString().contains(filter)) { this.parseEdge(edge, edgeTI, filter); } } } if (this.showHyperEdges) { TreeItem<Object> hyperTI = new TreeItem<>(graph + "Hyperedges (" + graph.getHyperEdges().size() + ")"); graphItem.getChildren().add(hyperTI); for (IHyperEdge he : graph.getHyperEdges()) { if (he.getID().contains(filter)) { this.parseHyperEdge(he, hyperTI, filter); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void processGraphData(Graph aNodes);", "private void parse() throws IOException {\r\n\t\tClassLoader cl = getClass().getClassLoader();\r\n\t\tFile file = new File(cl.getResource(\"./OBOfiles/go.obo\").getFile());\r\n\t\tFile file2 = new File(cl.getResource(\"./OBOfiles/go.obo\").getFile());\r\n\t FileReader f...
[ "0.66632104", "0.6421123", "0.63560474", "0.6298259", "0.62472403", "0.623252", "0.61819994", "0.6177978", "0.615343", "0.6152296", "0.60604745", "0.5967152", "0.59508306", "0.5914246", "0.58790094", "0.58741313", "0.5864643", "0.58606154", "0.58153206", "0.5782834", "0.56956...
0.6168931
8
parses the edges associated with the selected showNodes
public void parseNode(INode node, TreeItem<Object> root, String filter) { TreeItem<Object> nodeItem = new TreeItem<>(node); root.getChildren().add(nodeItem); if (this.showEdges) { TreeItem<Object> edgeTI = new TreeItem<>(node + "Edges (" + node.getEdges().size() + ")"); nodeItem.getChildren().add(edgeTI); for (IEdge edge : node.getEdges()) { this.parseEdge(edge, edgeTI, filter); } } if (this.showHyperEdges) { TreeItem<Object> hyperItem = new TreeItem<>(node + "HyperEdges (" + node.getHyperEdges().size() + ")"); nodeItem.getChildren().add(hyperItem); for (IHyperEdge he : node.getHyperEdges()) { this.parseHyperEdge(he, hyperItem, filter); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML private void addEdges()\t\t\n\t{ \t\n\t\tif (getSelection().size() >= 2)\t\t\n\t\t{\n\t\t\tList<Edge> edges = getDrawModel().connectSelectedNodes();\n\t\t\tfor (Edge e: edges)\n\t\t\t\tadd(0, e, getActiveLayerName());\n\t\t}\n\t}", "String getEdges();", "void printNodesWithEdges()\n {\n for ( i...
[ "0.65283054", "0.62400216", "0.6111566", "0.5969974", "0.5934126", "0.59179443", "0.58436227", "0.5809117", "0.5692515", "0.56840837", "0.5652771", "0.56393427", "0.5597537", "0.5578034", "0.55692697", "0.5560092", "0.5504948", "0.54629797", "0.54416007", "0.5415433", "0.5412...
0.0
-1
parses all the showEdges values associated with an showEdges
public void parseEdge(IEdge edge, TreeItem<Object> root, String filter) { TreeItem<Object> edgeItem = new TreeItem<>(edge); root.getChildren().add(edgeItem); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getEdges();", "public abstract ArrayList<Pair<Vector2, Vector2>> getEdges();", "public String getEdges(){\n double Lx = super.getCentre().x - (this.length / 2);\r\n double Rx = super.getCentre().x + (this.length / 2);\r\n double Dy = super.getCentre().y - (this.width / 2);\r\n ...
[ "0.6685613", "0.5728954", "0.56892526", "0.568101", "0.56664056", "0.55575484", "0.5531215", "0.5512726", "0.5499325", "0.549559", "0.5486091", "0.5470363", "0.5459467", "0.5443144", "0.5400463", "0.5393639", "0.5391833", "0.5382911", "0.5381203", "0.5377701", "0.53752536", ...
0.0
-1
parses hyper showEdges values
public void parseHyperEdge(IHyperEdge hyperedge, TreeItem<Object> root, String filter) { TreeItem<Object> hyperEdgeItem = new TreeItem<>(hyperedge); root.getChildren().add(hyperEdgeItem); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getEdges();", "public String getEdges(){\n double Lx = super.getCentre().x - (this.length / 2);\r\n double Rx = super.getCentre().x + (this.length / 2);\r\n double Dy = super.getCentre().y - (this.width / 2);\r\n double Uy = super.getCentre().y + (this.width / 2);\r\n Po...
[ "0.7218358", "0.6318469", "0.6143085", "0.5837872", "0.57491267", "0.56969887", "0.569475", "0.5648388", "0.56076944", "0.5588622", "0.5559359", "0.5537529", "0.5483458", "0.54455864", "0.5415987", "0.54038584", "0.5390623", "0.53738946", "0.53716", "0.5357591", "0.5356383", ...
0.0
-1
clears old nodes, and populates tree based on search filter
public void filterNodes(String filter) { tree_graphs.getChildren().clear(); populate(universe, filter, this.showNodes, this.showEdges, this.showHyperEdges); tree_nodes.getChildren().clear(); for (INode node : universe.getNodes()) { if (node.getID().contains(filter)) { parseNode(node, tree_nodes, filter); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void resetTreeForQueries() {\n\t\t_queryTree = new Tree(_tree);\n\t\tif(DEBUG) {\n\t\t\tSystem.out.printf(\"\\nquery tree structure:\\n%s\\n\",_queryTree.getLongInfo());\n\t\t}\n\t}", "private void updateCategoryTree() {\n categoryTree.removeAll();\r\n fillTree(categoryTree);\r\n\r\n }", "publ...
[ "0.66141504", "0.6588576", "0.6531328", "0.63007104", "0.6225775", "0.61711895", "0.6145755", "0.6021395", "0.60201234", "0.60087234", "0.5992118", "0.59906286", "0.5879626", "0.5850322", "0.5825394", "0.5783439", "0.5776094", "0.57402164", "0.5701569", "0.5691572", "0.568810...
0.6528519
3
clears old nodes, and populates tree based on search filter
public void filterEdges(String filter) { tree_graphs.getChildren().clear(); populate(universe, filter, this.showNodes, this.showEdges, this.showHyperEdges); tree_edges.getChildren().clear(); for (IEdge edge : universe.getEdges()) { if (edge.toString().contains(filter)) { parseEdge(edge, tree_edges, filter); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void resetTreeForQueries() {\n\t\t_queryTree = new Tree(_tree);\n\t\tif(DEBUG) {\n\t\t\tSystem.out.printf(\"\\nquery tree structure:\\n%s\\n\",_queryTree.getLongInfo());\n\t\t}\n\t}", "private void updateCategoryTree() {\n categoryTree.removeAll();\r\n fillTree(categoryTree);\r\n\r\n }", "publ...
[ "0.66127425", "0.6587743", "0.65294737", "0.65285826", "0.6297969", "0.6224621", "0.6169286", "0.61432785", "0.60218096", "0.60181683", "0.6005458", "0.5990004", "0.5987861", "0.5879574", "0.5851038", "0.5824296", "0.5780786", "0.5775059", "0.5740262", "0.5699176", "0.5691323...
0.5279126
87
Wrap the methods of the actual factor function...
@Override public double evalEnergy(Object... arguments) { return _factorFunction.evalEnergy(expandInputList(arguments)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Double getFactor();", "public int getFactor() { return this.factor; }", "public void setFactor(int f) { this.factor = f; }", "public void setFactor(Double factor);", "public abstract int getNFactor();", "public double getFactor() {\n return factor;\n }", "static void factorial(){\n\t}"...
[ "0.64901584", "0.6232075", "0.617411", "0.6017081", "0.5908534", "0.58976", "0.5858154", "0.574509", "0.5711292", "0.56397146", "0.55371946", "0.55031735", "0.5485248", "0.54676616", "0.545401", "0.5449345", "0.5423878", "0.54097927", "0.5267351", "0.52638674", "0.51952255", ...
0.0
-1
Add the constants to the total number of edges
@Override public int[] getDirectedToIndices(int numEdges) { int[] directedToIndices = _factorFunction.getDirectedToIndices(numEdges + _constantIndices.length); return contractIndexList(directedToIndices); // Remove the constant indices }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNumberOfEdges();", "int getEdgeCount();", "public int getNumberOfEdges();", "public int numEdges();", "private static int getNumTotalEdges(){\r\n\t\t//return getMutMap().keySet().size();\r\n\t\treturn numCols+1;\r\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "public long...
[ "0.72152144", "0.721233", "0.7120894", "0.70710313", "0.7049255", "0.7044985", "0.6911776", "0.6892158", "0.68619823", "0.68473166", "0.6778277", "0.6744601", "0.67325103", "0.6693044", "0.66849595", "0.664265", "0.6523134", "0.65128696", "0.64721465", "0.6468999", "0.6464339...
0.0
-1
Expand list of inputs to include the constants
protected Object[] expandInputList(Object... input) { Object [] expandedInputs = new Object[input.length + _constantIndices.length]; int curConstantIndexIndex = 0; int curInputIndex = 0; for (int i = 0; i < expandedInputs.length; i++) { if (curConstantIndexIndex < _constantIndices.length && _constantIndices[curConstantIndexIndex] == i) { //insert constant expandedInputs[i] = _constants[curConstantIndexIndex]; curConstantIndexIndex++; } else { if (curInputIndex >= input.length) throw new DimpleException("incorrect number of arguments"); expandedInputs[i] = input[curInputIndex]; curInputIndex++; } } return expandedInputs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Parameterized.Parameters(name = \"{0}_{1}\")\n public static Collection inputs()\n {\n getEnvironmentVariables();\n return inputsCommon();\n }", "private static List<StackManipulation> typeConstantsFor(List<TypeDescription> parameterTypes) {\n List<StackManipulation> typeConstants ...
[ "0.5556554", "0.5282039", "0.5220633", "0.5202959", "0.5181522", "0.50978804", "0.5055118", "0.5033805", "0.50170046", "0.5011751", "0.49919546", "0.49563873", "0.49447012", "0.4805053", "0.48049888", "0.4781677", "0.47548404", "0.47531536", "0.47504157", "0.47477445", "0.469...
0.7761292
0
Contract a list of indices to exclude the constant indices and renumber the others accordingly
protected int[] contractIndexList(int[] indexList) { int originalLength = indexList.length; int numConstantIndices = _constantIndices.length; Arrays.sort(indexList); // Side effect of sorting indexList, but ok in this context // For each constant index, scan the list (probably a more efficient way to do this) // Assumes constant index list is already sorted ArrayList<Integer> contractedList = new ArrayList<Integer>(); int iConst = 0; int iList = 0; int listIndex; int constantIndex = _constantIndices[iConst]; while (iList < originalLength) { listIndex = indexList[iList]; if (iConst < numConstantIndices) constantIndex = _constantIndices[iConst]; if (listIndex == constantIndex) { // Skip this list index entry iList++; } else if (listIndex < constantIndex || iConst >= numConstantIndices) { // Add this entry contractedList.add(listIndex - iConst); iList++; } else if (listIndex > constantIndex) { // Move to the next constant if there is one iConst++; } } // Convert contracted list back to an int[] int contractListSize = contractedList.size(); int[] result = new int[contractListSize]; for (int i = 0; i < contractListSize; i++) result[i] = contractedList.get(i); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void deselectAllIndexes();", "@Override\n \tpublic int[] getDirectedToIndices(int numEdges)\n \t{\n \t\tint[] directedToIndices = _factorFunction.getDirectedToIndices(numEdges + _constantIndices.length);\n \t\treturn contractIndexList(directedToIndices);\t// Remove the constant indices\n \t}", ...
[ "0.58673924", "0.5848232", "0.5838103", "0.58081627", "0.5729548", "0.5706584", "0.56892335", "0.5451495", "0.544755", "0.5434596", "0.5426381", "0.5412595", "0.5404478", "0.5388932", "0.53577507", "0.5320487", "0.5318494", "0.52466774", "0.52421224", "0.5225933", "0.522489",...
0.66316617
0
This method was generated by MyBatis Generator. This method corresponds to the database table test_module
@Delete({ "delete from test_module", "where id = #{id,jdbcType=VARCHAR}" }) int deleteByPrimaryKey(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\n \"select\",\n \"id, title, create_time, create_id, update_time, update_id\",\n \"from test_module\",\n \"where id = #{id,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"cn.hamgol.dao.db.test.TestModuleMapper.BaseResultMap\")\n TestModule selectByPrimaryKey(String id);", "...
[ "0.6405877", "0.5928423", "0.57748294", "0.563733", "0.56026477", "0.5575588", "0.55217314", "0.5407767", "0.5407462", "0.5406712", "0.54005444", "0.5347073", "0.5319701", "0.53106976", "0.5290481", "0.52657163", "0.5261437", "0.5240959", "0.5236302", "0.521821", "0.52051604"...
0.4836078
93
This method was generated by MyBatis Generator. This method corresponds to the database table test_module
@Insert({ "insert into test_module (id, title, ", "create_time, create_id, ", "update_time, update_id)", "values (#{id,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, ", "#{createTime,jdbcType=TIMESTAMP}, #{createId,jdbcType=VARCHAR}, ", "#{updateTime,jdbcType=TIMESTAMP}, #{updateId,jdbcType=VARCHAR})" }) int insert(TestModule record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\n \"select\",\n \"id, title, create_time, create_id, update_time, update_id\",\n \"from test_module\",\n \"where id = #{id,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"cn.hamgol.dao.db.test.TestModuleMapper.BaseResultMap\")\n TestModule selectByPrimaryKey(String id);", "...
[ "0.64053905", "0.57753646", "0.5637212", "0.5604778", "0.557549", "0.55203384", "0.5409454", "0.5406692", "0.540659", "0.5398132", "0.5347835", "0.532076", "0.5311063", "0.5291224", "0.5266023", "0.52612096", "0.5240604", "0.5236382", "0.5219148", "0.52029455", "0.51850736", ...
0.59271497
1
This method was generated by MyBatis Generator. This method corresponds to the database table test_module
int insertSelective(TestModule record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\n \"select\",\n \"id, title, create_time, create_id, update_time, update_id\",\n \"from test_module\",\n \"where id = #{id,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"cn.hamgol.dao.db.test.TestModuleMapper.BaseResultMap\")\n TestModule selectByPrimaryKey(String id);", "...
[ "0.64056796", "0.5929041", "0.5775852", "0.5638402", "0.56051433", "0.5575349", "0.5519421", "0.54098", "0.54077876", "0.54059416", "0.5396953", "0.5348472", "0.532121", "0.53129876", "0.5292807", "0.5266169", "0.5261067", "0.5242249", "0.52378", "0.5220402", "0.5202268", "...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table test_module
@Select({ "select", "id, title, create_time, create_id, update_time, update_id", "from test_module", "where id = #{id,jdbcType=VARCHAR}" }) @ResultMap("cn.hamgol.dao.db.test.TestModuleMapper.BaseResultMap") TestModule selectByPrimaryKey(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Insert({\n \"insert into test_module (id, title, \",\n \"create_time, create_id, \",\n \"update_time, update_id)\",\n \"values (#{id,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, \",\n \"#{createTime,jdbcType=TIMESTAMP}, #{createId,jdbcType=VARCHAR}, \",\n \"#{updateTime,...
[ "0.5928423", "0.57748294", "0.563733", "0.56026477", "0.5575588", "0.55217314", "0.5407767", "0.5407462", "0.5406712", "0.54005444", "0.5347073", "0.5319701", "0.53106976", "0.5290481", "0.52657163", "0.5261437", "0.5240959", "0.5236302", "0.521821", "0.52051604", "0.51836926...
0.6405877
0
This method was generated by MyBatis Generator. This method corresponds to the database table test_module
int updateByPrimaryKeySelective(TestModule record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\n \"select\",\n \"id, title, create_time, create_id, update_time, update_id\",\n \"from test_module\",\n \"where id = #{id,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"cn.hamgol.dao.db.test.TestModuleMapper.BaseResultMap\")\n TestModule selectByPrimaryKey(String id);", "...
[ "0.6405877", "0.5928423", "0.57748294", "0.563733", "0.56026477", "0.5575588", "0.55217314", "0.5407767", "0.5407462", "0.5406712", "0.54005444", "0.5347073", "0.5319701", "0.53106976", "0.5290481", "0.52657163", "0.5261437", "0.5240959", "0.5236302", "0.521821", "0.52051604"...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table test_module
@Update({ "update test_module", "set title = #{title,jdbcType=VARCHAR},", "create_time = #{createTime,jdbcType=TIMESTAMP},", "create_id = #{createId,jdbcType=VARCHAR},", "update_time = #{updateTime,jdbcType=TIMESTAMP},", "update_id = #{updateId,jdbcType=VARCHAR}", "where id = #{id,jdbcType=VARCHAR}" }) int updateByPrimaryKey(TestModule record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({\n \"select\",\n \"id, title, create_time, create_id, update_time, update_id\",\n \"from test_module\",\n \"where id = #{id,jdbcType=VARCHAR}\"\n })\n @ResultMap(\"cn.hamgol.dao.db.test.TestModuleMapper.BaseResultMap\")\n TestModule selectByPrimaryKey(String id);", "...
[ "0.64053905", "0.59271497", "0.57753646", "0.5637212", "0.5604778", "0.557549", "0.55203384", "0.5409454", "0.540659", "0.5398132", "0.5347835", "0.532076", "0.5311063", "0.5291224", "0.5266023", "0.52612096", "0.5240604", "0.5236382", "0.5219148", "0.52029455", "0.51850736",...
0.5406692
8
TODO Autogenerated method stub
@Override protected Control createContents(Composite arg0) { 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
displaying the error in toast if occurrs Toast.makeText(ListDisplay.this, error.getMessage(), Toast.LENGTH_SHORT).show();
@Override public void onErrorResponse(VolleyError error) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }", "private void displayErrorToast()\n {\n Toast.makeText(\n getApplicationContext(),\n \"Connection to the server failed, please try again!\",...
[ "0.76206976", "0.758349", "0.7300236", "0.72503895", "0.7188791", "0.7188791", "0.7137557", "0.70926535", "0.7089612", "0.700954", "0.70042455", "0.70041996", "0.6977468", "0.69628376", "0.6943798", "0.6935594", "0.6924546", "0.69151723", "0.6903999", "0.6903827", "0.68983305...
0.0
-1
My solution, got TLE, O(AB), can be improved to O(A + B) see below.
public List<String> wordSubsets(String[] A, String[] B) { Map<String, Map<Character, Integer>> map = new HashMap<>(); for(String b: B){ Map<Character, Integer> cur = new HashMap<>(); for(char c: b.toCharArray()){ cur.put(c, cur.getOrDefault(c, 0) + 1); } map.put(b, cur); } List<String> res = new ArrayList<>(); for(String a: A){ Map<Character, Integer> aCur = new HashMap<>(); for(char c: a.toCharArray()){ aCur.put(c, aCur.getOrDefault(c, 0) + 1); } boolean isValid = true; for(String other: B){ if(!valid(map, other, aCur)){ isValid = false; break; } } if(isValid) res.add(a); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n ...
[ "0.6353295", "0.6044363", "0.59721535", "0.58778274", "0.58717227", "0.57775825", "0.5759878", "0.5738971", "0.5671049", "0.5669894", "0.5659284", "0.5656052", "0.5649447", "0.5649413", "0.5633617", "0.5624421", "0.56231964", "0.5620366", "0.5610402", "0.5604054", "0.5592909"...
0.0
-1
Must refer to a valid module that sources this class.
@Override public String getModuleName() { return "de.th_koeln.iws.sh2.OXPathValidatorJUnit"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Source() {\n throw new AssertionError(\"This class should not be instantiated.\");\n }", "private ModuleLoader() {\r\n }", "private CanonizeSource() {}", "boolean isValidModule(ExternalModule module);", "protected BackendModule(){ }", "private ModuleUtil()\n {\n }", "privat...
[ "0.626919", "0.6214142", "0.6168517", "0.5956979", "0.59538203", "0.59517044", "0.5910144", "0.59027857", "0.587354", "0.57951903", "0.57561207", "0.5750885", "0.57447195", "0.57397264", "0.55957144", "0.55776143", "0.55765885", "0.5571558", "0.5549635", "0.5542953", "0.55175...
0.5406346
27
This test will send a request to the server using the greetServer method in ParseService and verify the response.
public void testParseService() { // Create the service that we will test. ParseServiceAsync parseService = GWT.create(ParseService.class); ServiceDefTarget target = (ServiceDefTarget) parseService; target.setServiceEntryPoint(GWT.getModuleBaseURL() + "oxpathvalidator/greet"); // Since RPC calls are asynchronous, we will need to wait for a response // after this test method returns. This line tells the test runner to wait // up to 10 seconds before timing out. this.delayTestFinish(10000); // Send a request to the server. parseService.parseInput("GWT User", new AsyncCallback<ParseResult>() { @Override public void onFailure(Throwable caught) { // The request resulted in an unexpected error. fail("Request failure: " + caught.getMessage()); } @Override public void onSuccess(ParseResult result) { // Verify that the response is correct. assertFalse(result.getMessage().isEmpty()); // Now that we have received a response, we need to tell the test runner // that the test is complete. You must call finishTest() after an // asynchronous test finishes successfully, or the test will time out. OXPathValidatorTest.this.finishTest(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetIt() {\n String responseMsg = target.path(\"service/servertest\").request().get(String.class);\n assertEquals(\"Got it!\", responseMsg);\n }", "@Override\n public void greet(GreetRequest request, StreamObserver<GreetResponse> responseObserver) {\n //extrac...
[ "0.63989866", "0.61968213", "0.60678816", "0.6012452", "0.5970884", "0.58217597", "0.5798847", "0.5796975", "0.57581246", "0.566901", "0.56418616", "0.56276894", "0.5600392", "0.557773", "0.55602765", "0.55458933", "0.55391484", "0.5532989", "0.5530096", "0.5527246", "0.55234...
0.7460597
0
The request resulted in an unexpected error.
@Override public void onFailure(Throwable caught) { fail("Request failure: " + caught.getMessage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\n\t\t\t}", "@Override\r\n\t\t\t\t\...
[ "0.70687705", "0.7022895", "0.6967924", "0.687367", "0.68069255", "0.66796345", "0.66794926", "0.65525395", "0.652486", "0.6515878", "0.65134287", "0.64804536", "0.6444412", "0.6400356", "0.63819414", "0.6316864", "0.6312984", "0.63090897", "0.6281178", "0.6281178", "0.628117...
0.64322156
13
Verify that the response is correct.
@Override public void onSuccess(ParseResult result) { assertFalse(result.getMessage().isEmpty()); // Now that we have received a response, we need to tell the test runner // that the test is complete. You must call finishTest() after an // asynchronous test finishes successfully, or the test will time out. OXPathValidatorTest.this.finishTest(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean validateReponse(Response response, int id,int which)\n {\n return response.isSuccessful();\n }", "protected abstract boolean isResponseValid(SatelMessage response);", "public boolean validateResponse(Response response) {\n return response.isSuccessful();\n }", "private S...
[ "0.709426", "0.70840484", "0.70816696", "0.704739", "0.6897826", "0.67657685", "0.67527306", "0.67319214", "0.6617032", "0.6600278", "0.65492666", "0.65322775", "0.6516295", "0.64192307", "0.6406392", "0.63967377", "0.6337129", "0.633068", "0.63233906", "0.63233906", "0.63233...
0.0
-1
instance variables needs no values as it is empty. Constructor for objects of class EmptyBinarySearchTree
public EmptyBinarySearchTree() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BinarySearchTree() {\n root = null;\n size = 0;\n }", "public BinarySearchTree() {}", "public BinarySearchTree(){\n\t\tthis.root = null;\n\t}", "public BinarySearchTree()\n\t{\n\t\tsuper();\n\t}", "public BinarySearchTree() {\n\n\t}", "BinarySearchTree() {\n this.root = nul...
[ "0.84417725", "0.836465", "0.8244186", "0.815778", "0.81570286", "0.8074783", "0.79533577", "0.78554404", "0.7792246", "0.7734976", "0.76198053", "0.76138574", "0.76138574", "0.7600183", "0.7569482", "0.7563811", "0.7562172", "0.75348717", "0.7508632", "0.7491784", "0.7418287...
0.89726007
0
most likely will never be called.
public void setValue(E value) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "public void smell() {\n\t\t\n\t}", "private void m50366E() {\n }", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", ...
[ "0.6933478", "0.65731704", "0.65562207", "0.6424889", "0.6332172", "0.63223606", "0.6255286", "0.62482387", "0.6237487", "0.620841", "0.6198278", "0.6195172", "0.61911976", "0.6189758", "0.6173892", "0.6166283", "0.6154462", "0.6154299", "0.61524236", "0.6141622", "0.61341965...
0.0
-1
most likely will never be called.
public void setLeft(BinaryTree <E> left) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "public void smell() {\n\t\t\n\t}", "private void m50366E() {\n }", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", ...
[ "0.6933616", "0.65733767", "0.65572333", "0.64248717", "0.63333946", "0.6322898", "0.6256272", "0.6248747", "0.62380093", "0.62089074", "0.6198792", "0.61956465", "0.61916196", "0.6190716", "0.6174307", "0.6166888", "0.6154908", "0.61547315", "0.6152963", "0.6142246", "0.6134...
0.0
-1
most likely will never be called.
public void setRight(BinaryTree <E> right) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "public void smell() {\n\t\t\n\t}", "private void m50366E() {\n }", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", ...
[ "0.6933616", "0.65733767", "0.65572333", "0.64248717", "0.63333946", "0.6322898", "0.6256272", "0.6248747", "0.62380093", "0.62089074", "0.6198792", "0.61956465", "0.61916196", "0.6190716", "0.6174307", "0.6166888", "0.6154908", "0.61547315", "0.6152963", "0.6142246", "0.6134...
0.0
-1
D5 You may not ally with clan you are battle with. D6 Only the clan leader may apply for withdraw from alliance. DD No response. Invitation to join an D7 Alliance leaders cannot withdraw. D9 Different Alliance EB alliance information Ec alliance name $s1 ee alliance leader: $s2 of $s1 ef affilated clans: total $s1 clan(s) f6 you have already joined an alliance f9 you cannot new alliance 10 days fd cannot accept. clan ally is register as enemy during siege battle. fe you have invited someone to your alliance. 100 do you wish to withdraw from the alliance 102 enter the name of the clan you wish to expel. 202 do you realy wish to dissolve the alliance 502 you have accepted alliance 602 you have failed to invite a clan into the alliance 702 you have withdraw
public void createAlly(Player player, String allyName) { if (!player.isClanLeader()) { player.sendPacket(Msg.ONLY_CLAN_LEADERS_MAY_CREATE_ALLIANCES); return; } if (player.getClan().getAllyId() != 0) { player.sendPacket(Msg.YOU_ALREADY_BELONG_TO_ANOTHER_ALLIANCE); return; } if (allyName.length() > 16) { player.sendPacket(Msg.INCORRECT_LENGTH_FOR_AN_ALLIANCE_NAME); return; } if (!Util.isMatchingRegexp(allyName, Config.ALLY_NAME_TEMPLATE)) { player.sendPacket(Msg.INCORRECT_ALLIANCE_NAME); return; } if (player.getClan().getLevel() < 5) { player.sendPacket(Msg.TO_CREATE_AN_ALLIANCE_YOUR_CLAN_MUST_BE_LEVEL_5_OR_HIGHER); return; } if (ClanTable.getInstance().getAllyByName(allyName) != null) { player.sendPacket(Msg.THIS_ALLIANCE_NAME_ALREADY_EXISTS); return; } if (!player.getClan().canCreateAlly()) { player.sendPacket(Msg.YOU_CANNOT_CREATE_A_NEW_ALLIANCE_WITHIN_1_DAY_AFTER_DISSOLUTION); return; } Alliance alliance = ClanTable.getInstance().createAlliance(player, allyName); if (alliance == null) return; player.broadcastCharInfo(); player.sendMessage("Alliance " + allyName + " has been created."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendQuestion() {\n/* 76 */ Village village = getResponder().getCitizenVillage();\n/* 77 */ if (village != null) {\n/* */ \n/* 79 */ this.allies = village.getAllies();\n/* */ \n/* 81 */ Arrays.sort((Object[])this.allies);\n/* 82 */ StringBuilder buf = n...
[ "0.56807274", "0.56512344", "0.5375902", "0.5223525", "0.5193658", "0.51838845", "0.51764125", "0.51110715", "0.5109884", "0.5049518", "0.50450283", "0.503285", "0.5020724", "0.50081", "0.49660525", "0.4922693", "0.49152792", "0.49002367", "0.4897502", "0.48957387", "0.488428...
0.0
-1
Is queried by the Graphiti framework to check if the pattern should create a new domain object entry in the editor palette.
public boolean isPaletteApplicable() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isNew();", "@Override\n public boolean IsNewObject()\n {\n return _isNewObject;\n }", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isNew() {\n\t\treturn false;\n\t}", ...
[ "0.5547396", "0.5505768", "0.54953533", "0.54953533", "0.54953533", "0.54805475", "0.53545403", "0.5339882", "0.5244231", "0.5212036", "0.5197548", "0.5194567", "0.515842", "0.5140324", "0.5127916", "0.5085718", "0.5078708", "0.5006309", "0.4991902", "0.49915123", "0.49838865...
0.0
-1
Clients must override this method to indicate that the pattern uses the given domain object as its main domain object.
abstract public boolean isMainBusinessObjectApplicable(Object mainBusinessObject);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public AbstractDomain getAbstractDomain() {\n return null;\n }", "public T caseDomainDefinition(DomainDefinition object) {\n\t\treturn null;\n\t}", "public void setDomain(Concept _domain) { domain = _domain; }", "public interface DomainObject {\n\n /**\n * @return The unique identifie...
[ "0.6204839", "0.5772802", "0.5763218", "0.57193035", "0.5705138", "0.563093", "0.56171864", "0.5597931", "0.537633", "0.5349242", "0.53392786", "0.5318898", "0.5311137", "0.5275144", "0.5264866", "0.525603", "0.521374", "0.52114683", "0.5200154", "0.51980203", "0.5186445", ...
0.52051085
18
Hook clients can override to add additional steps after the move of the shape happened.
protected void postMoveShape(IMoveShapeContext context) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void preMoveShape(IMoveShapeContext context) {\n \t}", "public abstract void moveShape(double lon, double lat);", "protected void internalMove(IMoveShapeContext context) {\n \t\tShape shapeToMove = context.getShape();\n \t\tContainerShape oldContainerShape = context.getSourceContainer();\n \t\tContai...
[ "0.7228602", "0.68681234", "0.6518594", "0.6481963", "0.64233714", "0.6386373", "0.6371323", "0.63653755", "0.63431454", "0.63210523", "0.63159186", "0.6177587", "0.61558324", "0.6135593", "0.61269903", "0.6083581", "0.60710543", "0.60572505", "0.6048996", "0.60359466", "0.60...
0.7477176
0
Hook clients can override to add additional steps before the move of the shape happens.
protected void preMoveShape(IMoveShapeContext context) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void postMoveShape(IMoveShapeContext context) {\n \t}", "public abstract void moveShape(double lon, double lat);", "protected void internalMove(IMoveShapeContext context) {\n \t\tShape shapeToMove = context.getShape();\n \t\tContainerShape oldContainerShape = context.getSourceContainer();\n \t\tConta...
[ "0.72620094", "0.6856257", "0.66496515", "0.657286", "0.6552739", "0.65109265", "0.6506051", "0.6481524", "0.6460735", "0.6399935", "0.6362648", "0.63543874", "0.6335666", "0.62215024", "0.6193946", "0.6159817", "0.61571455", "0.614612", "0.61381", "0.6136751", "0.61322045", ...
0.7746215
0
Default implementation of the move functionality. Moves shapes to new coordinates and adapts parents in case this is needed.
protected void internalMove(IMoveShapeContext context) { Shape shapeToMove = context.getShape(); ContainerShape oldContainerShape = context.getSourceContainer(); ContainerShape newContainerShape = context.getTargetContainer(); int x = context.getX(); int y = context.getY(); if (oldContainerShape != newContainerShape) { // the following is a workaround due to an MMR bug if (oldContainerShape != null) { Collection<Shape> children = oldContainerShape.getChildren(); if (children != null) { children.remove(shapeToMove); } } shapeToMove.setContainer(newContainerShape); if (shapeToMove.getGraphicsAlgorithm() != null) { Graphiti.getGaService().setLocation(shapeToMove.getGraphicsAlgorithm(), x, y, avoidNegativeCoordinates()); } } else { // move within the same container if (shapeToMove.getGraphicsAlgorithm() != null) { Graphiti.getGaService().setLocation(shapeToMove.getGraphicsAlgorithm(), x, y, avoidNegativeCoordinates()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void moveShape(double lon, double lat);", "@Override\r\n public void move(int deltaX, int deltaY) {\r\n\r\n for(IShape shape : children) {\r\n shape.move(deltaX,deltaY);\r\n }\r\n }", "public void move() {\n\t\t// Override move so we don't move, then get location s...
[ "0.7145781", "0.70467645", "0.69279444", "0.6865362", "0.6827239", "0.68044597", "0.677762", "0.6751288", "0.67186844", "0.6640501", "0.6624589", "0.6620591", "0.6620591", "0.6620591", "0.6620591", "0.6620591", "0.6620591", "0.6620591", "0.6585018", "0.658416", "0.6564589", ...
0.71413743
1
Default implementation of the move functionality to move all bendpoints within a container shape.
protected void moveAllBendpoints(IMoveShapeContext context) { if (!(context.getShape() instanceof ContainerShape)) { return; } ContainerShape shapeToMove = (ContainerShape) context.getShape(); int x = context.getX(); int y = context.getY(); int deltaX = x - shapeToMove.getGraphicsAlgorithm().getX(); int deltaY = y - shapeToMove.getGraphicsAlgorithm().getY(); if (deltaX != 0 || deltaY != 0) { List<Anchor> anchorsFrom = getAnchors(shapeToMove); List<Anchor> anchorsTo = new ArrayList<Anchor>(anchorsFrom); for (Anchor anchorFrom : anchorsFrom) { Collection<Connection> outgoingConnections = anchorFrom.getOutgoingConnections(); for (Connection connection : outgoingConnections) { for (Anchor anchorTo : anchorsTo) { Collection<Connection> incomingConnections = anchorTo.getIncomingConnections(); if (incomingConnections.contains(connection)) { if (connection instanceof FreeFormConnection) { FreeFormConnection ffc = (FreeFormConnection) connection; List<Point> points = ffc.getBendpoints(); for (int i = 0; i < points.size(); i++) { Point point = points.get(i); int oldX = point.getX(); int oldY = point.getY(); points.set(i, Graphiti.getGaService().createPoint(oldX + deltaX, oldY + deltaY)); } } } } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void internalMove(IMoveShapeContext context) {\n \t\tShape shapeToMove = context.getShape();\n \t\tContainerShape oldContainerShape = context.getSourceContainer();\n \t\tContainerShape newContainerShape = context.getTargetContainer();\n \n \t\tint x = context.getX();\n \t\tint y = context.getY();\n \n \t...
[ "0.64061874", "0.63677114", "0.63352126", "0.6332942", "0.62946224", "0.62940705", "0.62940705", "0.62940705", "0.62940705", "0.62940705", "0.62940705", "0.62940705", "0.6276861", "0.6257465", "0.6185768", "0.6165736", "0.6123032", "0.60606563", "0.6045748", "0.60388595", "0....
0.76062185
0
Clients can override to indicate that moving to negative coordinates should be possible. The default implementation prohibits this by returning false.
protected boolean avoidNegativeCoordinates() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean canMove() {\r\n\t\treturn false;\r\n\t}", "@objid (\"7f09cb7d-1dec-11e2-8cad-001ec947c8cc\")\n public boolean allowsMove() {\n return true;\n }", "@Override\n\tpublic boolean isLegalMove(Square newPosition) {\n\t\treturn false;\n\t}", "@Override\n public boolean ...
[ "0.7415253", "0.7095613", "0.67168605", "0.66167307", "0.65496814", "0.6537752", "0.65184355", "0.6392792", "0.63608295", "0.63488", "0.6343457", "0.6331893", "0.6331893", "0.6320883", "0.6255203", "0.62153476", "0.6206615", "0.6193845", "0.6190057", "0.61836004", "0.6170046"...
0.75606483
0
Is queried by the framework after a pattern has been executed to find out if this pattern should appear in the undo stack. By default all patterns should appear there (see implementation in AbstractPattern), but single pattern functionality may decide to override this behavior. Note that this is a dynamic attribute of the pattern that is queried each time after the pattern functionality has been executed. IMPORTANT NOTE: The implementor of the feature is responsible for correctly implementing this method! It will lead to inconsistencies if this method returns false although the pattern did changes.
public boolean hasDoneChanges(Class<?> actionType) { boolean ret = true; if (IDelete.class.equals(actionType)) { if (wrappedDeleteFeature != null) { ret = wrappedDeleteFeature.hasDoneChanges(); } } else if (IRemove.class.equals(actionType)) { if (wrappedRemoveFeature != null) { ret = wrappedRemoveFeature.hasDoneChanges(); } } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLookahead() {\n\n return this.isLookahead;\n }", "public boolean isUndoPossible() {\n return (roundsHistory.size() > 1);\n }", "@Override\n public boolean isUndo() {\n return false;\n }", "public boolean canUndo();", "public boolean canUndo();", "public b...
[ "0.5843334", "0.57748026", "0.56767434", "0.56431854", "0.56431854", "0.55921096", "0.55737597", "0.55699676", "0.5568989", "0.5549903", "0.5487376", "0.5484161", "0.54100394", "0.53720933", "0.5322841", "0.53195107", "0.5317082", "0.5314677", "0.53099227", "0.5291186", "0.52...
0.0
-1
Get the dimensions of the View
private void setPic() { int targetW = mImageView.getWidth(); int targetH = mImageView.getHeight(); // Get the dimensions of the bitmap BitmapFactory.Options bmOptions = new BitmapFactory.Options(); bmOptions.inJustDecodeBounds = true; BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions); int photoW = bmOptions.outWidth; int photoH = bmOptions.outHeight; // Determine how much to scale down the image int scaleFactor = Math.min(photoW / targetW, photoH / targetH); // Decode the image file into a Bitmap sized to fill the View bmOptions.inJustDecodeBounds = false; bmOptions.inSampleSize = scaleFactor; bmOptions.inPurgeable = true; bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions); // Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions); mImageView.setImageBitmap(bitmap); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getWidth() {\n return viewWidth;\n }", "Dimension getCanvasDimension();", "Dimension getDimensions();", "Dimension getSize();", "Dimension getSize();", "Point getScreenDimensions() {\n\t\tDisplay display = getWindowManager().getDefaultDisplay();\n\t\tPoint screenDimensions = new Poin...
[ "0.74436724", "0.73195636", "0.72435826", "0.7185822", "0.7185822", "0.6947741", "0.68744594", "0.68665344", "0.6864171", "0.67433673", "0.6705509", "0.6701637", "0.6681928", "0.66655725", "0.66642004", "0.66499126", "0.66477495", "0.66379046", "0.65652597", "0.6542787", "0.6...
0.0
-1
Create an image file name
@RequiresApi(api = Build.VERSION_CODES.FROYO) private File createImageFile() throws IOException { String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date()); imageFileName = timeStamp + "_" + ".jpg"; File storageDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); File image = File.createTempFile( imageFileName, /* prefix */ ".jpg", /* suffix */ storageDir /* directory */ ); // Save a file: path for use with ACTION_VIEW intents mCurrentPhotoPath = image.getAbsolutePath(); Log.e("Getpath", "Cool" + mCurrentPhotoPath); return image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private File createImageFileName() throws IOException {\n String timestamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n //there are two types of SimpleDateFormat and Date()\n String prepend = \"JPEG_\" + timestamp + \"_\";\n File imageFile = File.createTempFile(prep...
[ "0.7782615", "0.7292824", "0.6992056", "0.6992056", "0.6943564", "0.6911284", "0.68938434", "0.686538", "0.68592805", "0.68590325", "0.68580544", "0.68443614", "0.67711073", "0.67546785", "0.6751638", "0.6737171", "0.6726197", "0.67170936", "0.67068315", "0.6706409", "0.66945...
0.0
-1
Create a new VBookDao without any configuration
public VBookDao() { super(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK, org.jooq.test.h2.generatedclasses.tables.pojos.VBook.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VBookDao(org.jooq.Configuration configuration) {\n\t\tsuper(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK, org.jooq.test.h2.generatedclasses.tables.pojos.VBook.class, configuration);\n\t}", "BookDao getBookDao();", "Book createBook();", "public ProductosPuntoVentaDaoImpl() {\r\n }", "publ...
[ "0.70626456", "0.69223726", "0.64675665", "0.6462776", "0.64187425", "0.63915205", "0.63626724", "0.6310045", "0.6236188", "0.62354434", "0.6203463", "0.6115457", "0.60951495", "0.60913587", "0.60813147", "0.60275215", "0.6012984", "0.60121036", "0.59740704", "0.5957196", "0....
0.7478235
0
Create a new VBookDao with an attached configuration
public VBookDao(org.jooq.Configuration configuration) { super(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK, org.jooq.test.h2.generatedclasses.tables.pojos.VBook.class, configuration); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VBookDao() {\n\t\tsuper(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK, org.jooq.test.h2.generatedclasses.tables.pojos.VBook.class);\n\t}", "BookDao getBookDao();", "void setBookDao(final BookDao bookDao);", "public VAuthorDao(org.jooq.Configuration configuration) {\n\t\tsuper(org.jooq.test.h2....
[ "0.6690261", "0.61544293", "0.5930411", "0.57766986", "0.57700205", "0.5648806", "0.5645593", "0.5634649", "0.56252515", "0.5625198", "0.56087875", "0.5570339", "0.5554937", "0.554975", "0.55253685", "0.547362", "0.542788", "0.5416427", "0.5414312", "0.53762645", "0.53471065"...
0.7272567
0
Fetch records that have ID IN (values)
public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VBook> fetchById(java.lang.Integer... values) { return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.ID, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Condition in(QueryParameter parameter, Object... values);", "public OpenERPRecordSet getIDSubset(Object[] lst) {\r\n\t\t// bail out\r\n\t\tif (lst == null)\r\n\t\t\treturn null;\r\n\t\tif (lst.length <= 0)\r\n\t\t\treturn null;\r\n\r\n\t\t// get list of IDs as Vector, for .contains\r\n\t\tVector<Integer> idList ...
[ "0.6016341", "0.5954352", "0.5910965", "0.5900323", "0.58663565", "0.578017", "0.57629406", "0.56941676", "0.5693045", "0.56729794", "0.5663237", "0.5644177", "0.56149566", "0.5614196", "0.557541", "0.55555683", "0.5546768", "0.5491078", "0.54293054", "0.5425614", "0.5418057"...
0.0
-1
Fetch a unique record that has ID = value
public org.jooq.test.h2.generatedclasses.tables.pojos.VBook fetchOneById(java.lang.Integer value) { return fetchOne(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.ID, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RecordLike selectByPrimaryKey(String id);", "public o selectById(long id);", "Abum selectByPrimaryKey(String id);", "public abstract T byId(ID id);", "IceApp selectByPrimaryKey(Long id);", "PrhFree selectByPrimaryKey(Integer id);", "ExtraQuery id(Object value);", "Caiwu selectByPrimaryKey(Integer id)...
[ "0.6866911", "0.65277153", "0.6500248", "0.6478885", "0.64646256", "0.6461275", "0.64175445", "0.6413071", "0.640968", "0.64033765", "0.637823", "0.6378222", "0.6370634", "0.6332562", "0.6284171", "0.625007", "0.6238649", "0.62260234", "0.62255126", "0.62224936", "0.62072796"...
0.0
-1
Fetch records that have AUTHOR_ID IN (values)
public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VBook> fetchByAuthorId(java.lang.Integer... values) { return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.AUTHOR_ID, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Query(value=\"SELECT * FROM users WHERE (status = :status) AND (id IN (SELECT user_id FROM documents))\", nativeQuery = true)\n Page<User> findAuthors(@Param(\"status\") int status, Pageable pageable);", "public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VBook> fetchByCoAuthorId(java.lang....
[ "0.60009277", "0.5691958", "0.5415775", "0.53955984", "0.5235427", "0.51094407", "0.5105229", "0.509614", "0.50707436", "0.49942377", "0.49932244", "0.49869293", "0.49635088", "0.4955896", "0.4917704", "0.4912621", "0.4875212", "0.4847188", "0.48414055", "0.48377445", "0.4822...
0.56993157
1
Fetch records that have CO_AUTHOR_ID IN (values)
public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VBook> fetchByCoAuthorId(java.lang.Integer... values) { return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.CO_AUTHOR_ID, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VBook> fetchByAuthorId(java.lang.Integer... values) {\n\t\treturn fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.AUTHOR_ID, values);\n\t}", "@Query(value=\"SELECT * FROM users WHERE (status = :status) AND (id IN (SELECT user_id FRO...
[ "0.5706959", "0.565665", "0.55715346", "0.53306246", "0.51220644", "0.5053331", "0.50425804", "0.5020317", "0.5012012", "0.5011098", "0.49893326", "0.49667493", "0.49582356", "0.49213347", "0.48786178", "0.48721945", "0.48681945", "0.48528105", "0.47939414", "0.47770333", "0....
0.62705415
0
Fetch records that have DETAILS_ID IN (values)
public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VBook> fetchByDetailsId(java.lang.Integer... values) { return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.DETAILS_ID, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<EssayQuestionDetail> findByIdIn(List<Long> detailIds);", "public interface LogDetailRepository extends CrudRepository<LogDetail, Long> {\n List<LogDetail> findByLogIdIn(List<Long> LogIds);\n\n\n}", "public List getOrderDetailsByIdList(final Map idList);", "@Query(value = \"select * from chat_room cr ...
[ "0.6349001", "0.5649219", "0.51564366", "0.5104538", "0.5103401", "0.5083819", "0.50505733", "0.49648678", "0.496023", "0.4878078", "0.48671708", "0.48425552", "0.4833183", "0.48024246", "0.4798011", "0.47919437", "0.47912672", "0.47540772", "0.473019", "0.47059047", "0.46542...
0.5571165
2
Fetch records that have TITLE IN (values)
public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VBook> fetchByTitle(java.lang.String... values) { return fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.TITLE, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Entry> getByTitle(String title) {\n List<Entry> matches = new ArrayList<>();\n for (Entry l : litRegister) {\n\n if (l.getTitle().contains(title)) {\n matches.add(l);\n }\n }\n return matches;\n }", "@Override\n public <K extends Co...
[ "0.6602589", "0.6070888", "0.58752537", "0.5861074", "0.57584816", "0.57564455", "0.57413834", "0.5737425", "0.57289463", "0.57158756", "0.5702278", "0.5688308", "0.55953616", "0.5563397", "0.55458003", "0.5542993", "0.55061764", "0.5501644", "0.5497228", "0.5486971", "0.5478...
0.5939976
2