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
Default constructor for the CourseCalendar class. Pattern : SUMMARY contains course code DESCRIPTION contains course title and section type Recurring : True Rounded : False
public CourseCalendar(List<Course> courses) { this(courses, "C-TY", true, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CourseCalendar(List<Course> courses, String pattern, boolean recurring, boolean rounded) {\n this.mClasses = courses;\n this.mPattern = pattern;\n this.mRecurring = recurring;\n this.mRounded = rounded;\n }", "public Course(String title,String stream, String type, LocalDate ...
[ "0.7151314", "0.6261289", "0.61384493", "0.6122632", "0.60990536", "0.6090709", "0.6023036", "0.5962912", "0.5886564", "0.58573264", "0.58483005", "0.57937515", "0.57839376", "0.57390803", "0.5698141", "0.5689451", "0.5679937", "0.5638629", "0.56130284", "0.5571348", "0.54908...
0.650426
1
/ HELPERS This is an example usage for this class.
public static void example(List<Course> classes, String pattern, boolean recurring, boolean rounded, File file) { CourseCalendar courseCal = new CourseCalendar(classes, pattern, recurring, rounded); courseCal.writeCalendar(file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private static void oneUserExample()\t{\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "void use();", "public static void thisDemo() {\n\t}", "public static void example1() {\n // moved to edu.jas.application.Examples\n }", "private Example() {\...
[ "0.64457756", "0.6190826", "0.6091514", "0.60554826", "0.6018454", "0.5940414", "0.5918376", "0.58614624", "0.58291984", "0.5769321", "0.576499", "0.576499", "0.576499", "0.576499", "0.5761045", "0.57566184", "0.57556635", "0.5754592", "0.5752167", "0.57086754", "0.5688086", ...
0.0
-1
Creates an iCal file with the given classes and save it to the given file
public static void createICalFile(List<Course> classes, File file) { CourseCalendar courseCal = new CourseCalendar(classes); courseCal.writeCalendar(file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeCalendar(File file) {\n String prefix = \"BEGIN:VCALENDAR\" + \"\\n\"\n + \"VERSION:2.0\" + \"\\n\"\n + \"PRODID:-//MyMartlet//CourseCalendar//\" +\n serialVersionUID + \"\\n\"\n + mTZInfo + \"\\n\";\n String suffix = \"END:...
[ "0.6178232", "0.5994235", "0.5957189", "0.5925705", "0.56784475", "0.5574016", "0.55036587", "0.5489263", "0.54569817", "0.5455061", "0.540875", "0.54070526", "0.5377989", "0.5374107", "0.532369", "0.530904", "0.5262138", "0.52218664", "0.51350796", "0.51350796", "0.512473", ...
0.77153265
0
Writes the calendar to a file
public void writeCalendar(File file) { String prefix = "BEGIN:VCALENDAR" + "\n" + "VERSION:2.0" + "\n" + "PRODID:-//MyMartlet//CourseCalendar//" + serialVersionUID + "\n" + mTZInfo + "\n"; String suffix = "END:VCALENDAR"; try { FileWriter fw = new FileWriter(file.getAbsoluteFile()); BufferedWriter bw = new BufferedWriter(fw); bw.write(prefix); for (Course item : mClasses) { bw.write(makeEvent(item)); } bw.write(suffix); bw.flush(); bw.close(); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void WriteCalendarToDatabase() throws IOException\r\n\t{\r\n\t\tObjectOutputStream outputfile;\r\n\t\toutputfile = new ObjectOutputStream(Files.newOutputStream(Paths.get(fileName)));\r\n\t\toutputfile.writeObject(calendar);\r\n\t\toutputfile.close();\r\n\t}", "public void writeCalendar(int idHospital) thr...
[ "0.7410024", "0.6963391", "0.68060786", "0.67719454", "0.6380667", "0.62107116", "0.619774", "0.6105807", "0.5929769", "0.58952516", "0.58635956", "0.58482563", "0.5819847", "0.5803462", "0.57449657", "0.5728016", "0.5720427", "0.56964314", "0.5679471", "0.56709915", "0.56474...
0.7656551
0
Write entire EVENT to String from Course
public String makeEvent(Course item) { // TODO: Make recurrence and rounding handling more elegant // (use lambda?) String event; //---------------- //Parse summary-description request String[] splitted = mPattern.split("-"); String summary = parsePattern(item, splitted[0]); String description; try { description = parsePattern(item, splitted[1]); } catch (ArrayIndexOutOfBoundsException e) { description = ""; } String location = item.getLocation(); //----------------- //Get start and end date time //NOTES : // o firstClassBegin and firstClassEnd represent the date-time // object for the beginning and end of the first lecture of // the course. // o lastDay is the last day of the semester (used for recurrence) LocalDate startDate; LocalTime startTime, endTime; LocalDateTime firstClassBegin, firstClassEnd, lastDay; if (mRounded) { startTime = item.getRoundedStartTime(); endTime = item.getRoundedEndTime(); } else { startTime = item.getStartTime(); endTime = item.getEndTime(); } startDate = item.getStartDate(); firstClassBegin = LocalDateTime.of(startDate, startTime); firstClassEnd = LocalDateTime.of(startDate, endTime); lastDay = LocalDateTime.of(item.getEndDate(), LocalTime.of(23, 0)); if (mRecurring) { event = makeEvent(summary, description, location, firstClassBegin, firstClassEnd, lastDay); } else { event = makeEvent(summary, description, location, firstClassBegin, firstClassEnd); } return event; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String addCourseEvent(Events events);", "void writeEvent (Event event) throws Exception {\n this.write(\"[event]\\n\");\n this.write(\"timeline \" + event.timeline.name + \"\\n\");\n this.write(\"name \" + event.name + \"\\n\");\n this.write(\"startDate \" + eve...
[ "0.66833866", "0.6588526", "0.64515734", "0.6142402", "0.60043734", "0.5846333", "0.5835391", "0.5780312", "0.5777335", "0.57537454", "0.5709183", "0.5704341", "0.5628665", "0.55912936", "0.5581921", "0.55653363", "0.5555076", "0.5554945", "0.554889", "0.5500385", "0.549313",...
0.5666386
12
General EVENT writer WITH weekly recurrence. All String parameters may be blank.
public String makeEvent(String summary, String description, String location, LocalDateTime start, LocalDateTime end, LocalDateTime lastDay) { String prefix = "BEGIN:VEVENT\n"; String suffix = "END:VEVENT\n"; return prefix + makeEventSummary(summary) + makeEventDescription(description) + makeEventLocation(location) + makeEventStamp() + makeEventStart(start) + makeEventEnd(end) + makeEventRecurrence(lastDay) + suffix; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String makeEventRecurrence(LocalDateTime lastDay) {\n return \"RRULE:FREQ=WEEKLY;UNTIL=\" + formatTimeToICS(lastDay) + \"Z\" + \"\\n\";\n }", "public void createRecurringFromFile(String name, String[] arr) {\n\t\t// TODO Auto-generated method stub\n\t\tchar[] days = arr[0].toCharArray();\n\t\tL...
[ "0.6342066", "0.57819676", "0.57584214", "0.5576915", "0.5542601", "0.5535776", "0.5494461", "0.54435337", "0.542692", "0.54263157", "0.54263157", "0.54262066", "0.54219735", "0.5420393", "0.5403949", "0.5313708", "0.5273094", "0.5272465", "0.5249216", "0.5248132", "0.5244691...
0.0
-1
/ iCal EVENT property makers / The list of properties written with this code is: o SUMMARY : Summary (Title) o DESCRIPTION : Description Optional o LOCATION : Location o DTSTART : The Start DateTime o DTEND : The End DateTime o DTSTAMP : The Stamp DateTime (when the the event was written) o RRULE : Recurrence rule There are two declarations for each property maker: o One for a general DateTime or String o One for a Course where the appropriate parameter is fetched from the Course object and passed to the general method. These are not necessary for now, but might be helpful if the code needs to be refactored. General EVENT writer WITHOUT recurrence. All String parameters may be blank.
public String makeEvent(String summary, String description, String location, LocalDateTime start, LocalDateTime end) { String prefix = "BEGIN:VEVENT\n"; String suffix = "END:VEVENT\n"; return prefix + makeEventSummary(summary) + makeEventDescription(description) + makeEventLocation(location) + makeEventStamp() + makeEventStart(start) + makeEventEnd(end) + suffix; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@IcalProperty(pindex = PropertyInfoIndex.XPROP,\n jname = \"xprop\",\n adderName = \"xproperty\",\n nested = true,\n keyindex = PropertyInfoIndex.NAME,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty...
[ "0.54471296", "0.543696", "0.51593286", "0.49773026", "0.48950577", "0.48253414", "0.48243383", "0.4813533", "0.48109075", "0.4804092", "0.4788583", "0.47535983", "0.47271293", "0.47147465", "0.47123203", "0.46947125", "0.46909153", "0.46857485", "0.46803683", "0.46573794", "...
0.47836348
11
Parse requested contents Used for Summary and Description properties Format: XX X can be any of the symbols below. Symbol Meaning Examples Method Used C Course Code ECSE 200 getCourseCode T Course Title Electric Circuits 1 getCourseTitle S Section 001 getSection Y Section Type Lecture getSectionType NOTES: o If multiple symbols are used for a single property, they are separated by a " ", e.g. "CS" will give : ECSE 200 001 o Parser only acts when it sees a known symbol o Lower and upper case are accepted
public String parsePattern(Course item, String pattern) { StringBuilder attributes = new StringBuilder(); pattern = pattern.toLowerCase(); for (char symbol : pattern.toCharArray()) { if (attributes.length() != 0) { attributes.append(" - "); } switch (symbol) { case 'c': attributes.append(item.getCode()); break; case 't': attributes.append(item.getTitle()); break; case 's': attributes.append(item.getSection()); break; case 'y': attributes.append(item.getType()); break; } } return attributes.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void parseProtocol(String protocol) {\n try (Scanner sc = new Scanner(protocol)) {\n //parse first line\n this.method = Method.valueOf(sc.next());\n this.url = sc.next();\n String httpVersion = sc.next();\n this.version = Double.parseDouble(http...
[ "0.53936136", "0.5177148", "0.51110363", "0.51014453", "0.50671494", "0.50549763", "0.49954346", "0.49807504", "0.4956165", "0.49353772", "0.48868674", "0.4864629", "0.48306614", "0.48299056", "0.48098013", "0.47745997", "0.47740385", "0.47386903", "0.47195327", "0.47110665", ...
0.0
-1
Write SUMMARY property of event
private String makeEventSummary(String name) { return "SUMMARY:" + name + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSummary();", "public java.lang.String getSummary(){\r\n return this.summary;\r\n }", "public String getSummary();", "public String getSummary() {\r\n return summary;\r\n }", "void setSummary(java.lang.String summary);", "public String getSummary() {\n return...
[ "0.6453525", "0.6439895", "0.637623", "0.63493824", "0.62962985", "0.6289795", "0.6247808", "0.61689883", "0.61689883", "0.61329776", "0.6084321", "0.6040706", "0.6012189", "0.5999938", "0.59680605", "0.5920639", "0.58938146", "0.58822215", "0.5867878", "0.5828077", "0.574475...
0.71241087
0
Write SUMMARY property of Course
@SuppressWarnings("unused") private String makeEventSummmary(Course item, String pattern) { String summary = parsePattern(item, pattern); return makeEventSummary(summary); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSummary();", "public String displayCourse(){\n return \"\\tCourse Id: \" + id + \"\\n\" +\n \"\\tCourse Name: \" + name + \"\\n\" +\n \"\\tCourse Description: \" + description + \"\\n\" +\n \"\\tCourse Teacher(s): \" + teacherString() + \"\...
[ "0.6467494", "0.63388157", "0.6307562", "0.62863296", "0.62665474", "0.61881244", "0.6171919", "0.61078477", "0.60638064", "0.6050424", "0.6026987", "0.6019045", "0.59702355", "0.59474355", "0.5921164", "0.5885872", "0.58790874", "0.5855117", "0.5849203", "0.583794", "0.58142...
0.0
-1
Write DESCRIPTION property of event
private String makeEventDescription(String description) { return "DESCRIPTION:" + description + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEventDescription() {\n\t\treturn description;\n\t}", "public void setEventDescription(String newDesc) {\n\t\tthis.description = newDesc;\n\t}", "private String getEventDescription(Event event) {\n String day = getDayDescription(event);\n String typeOfEvent = getEventType(event);\...
[ "0.7840988", "0.71036065", "0.7099149", "0.7014362", "0.6995904", "0.6917045", "0.69037354", "0.6868693", "0.68676335", "0.6863071", "0.6842243", "0.6841835", "0.6838325", "0.68279755", "0.6817884", "0.68098855", "0.68052566", "0.68039197", "0.67965156", "0.6775673", "0.67713...
0.7849792
0
Write DESCRIPTION property of Course
@SuppressWarnings("unused") private String makeEventDescription(Course item, String pattern) { String description = parsePattern(item, pattern); return makeEventDescription(description); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCourseDesc() {\n return courseDesc;\n }", "public String getDESCRIPTION() {\r\n return DESCRIPTION;\r\n }", "java.lang.String getDesc();", "public String getDescription() {\n return (desc);\n }", "public String getDesc()\r\n {\r\n return description;\r...
[ "0.7637517", "0.7129732", "0.712064", "0.71031797", "0.70403", "0.7016723", "0.7010004", "0.6991184", "0.6976342", "0.697048", "0.69501215", "0.69350183", "0.6920181", "0.6919091", "0.691474", "0.691474", "0.69088054", "0.69074607", "0.69025624", "0.6901263", "0.69010794", ...
0.0
-1
Write LOCATION property of event
private String makeEventLocation(String location) { return "LOCATION:" + location + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getEventLocation() {\n\t\treturn location;\n\t}", "public String getEventLocation() {\n\t\treturn eventLocation;\n\t}", "public void setEventLocation(String newLoc) {\n\t\tthis.location = newLoc;\n\t}", "public void setEventLocation(String eventLocation) {\n\t\tthis.eventLocation = eventLocatio...
[ "0.7166158", "0.6979817", "0.6912944", "0.68659294", "0.63218963", "0.630373", "0.629359", "0.62909585", "0.6282368", "0.6280389", "0.6280389", "0.62483346", "0.61996293", "0.6192846", "0.6192846", "0.6192846", "0.6192846", "0.6192846", "0.61863154", "0.61774397", "0.61774397...
0.75216365
0
Write LOCATION property of Course
@SuppressWarnings("unused") private String makeEventLocation(Course item) { String location = item.getLocation(); return makeEventLocation(location); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLocation(String location);", "public void setLocation(String location){\n this.location = location;\n }", "public void setLocation(String location){\n this.location = location;\n }", "@Override\n\tpublic void setLocation(String l) {\n\t\tlocation = l;\n\t\t\n\t}", "public...
[ "0.6471765", "0.6318786", "0.6318786", "0.62523913", "0.62142605", "0.61846375", "0.6170888", "0.616559", "0.61167556", "0.6072708", "0.6072708", "0.6072708", "0.6072708", "0.60412806", "0.60299635", "0.60299635", "0.602131", "0.5992035", "0.59778285", "0.5971782", "0.5963223...
0.5481812
99
Write DTSTART property of event
private String makeEventStart(LocalDateTime date) { String name = "DTSTART"; return formatTimeProperty(date, name) + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.DTSTART,\n presenceField = \"dtval\",\n required = true,\n reschedule = true,\n eventProperty = true,\n todoProperty = true,\n journalPr...
[ "0.59400403", "0.5921023", "0.5834002", "0.5693475", "0.5676934", "0.56669295", "0.5653659", "0.563876", "0.56295323", "0.56295323", "0.56263083", "0.55761445", "0.55635303", "0.55197513", "0.5453265", "0.54349977", "0.5427821", "0.5375662", "0.5347336", "0.53350353", "0.5323...
0.6309778
0
Write DTSTART property of Course
@SuppressWarnings("unused") private String makeEventStart(Course item) { LocalTime startTime; if (mRounded) { startTime = item.getRoundedStartTime(); } else { startTime = item.getStartTime(); } return makeEventStart(LocalDateTime.of(item.getStartDate(), startTime)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.DTSTART,\n presenceField = \"dtval\",\n required = true,\n reschedule = true,\n eventProperty = true,\n todoProperty = true,\n journalPr...
[ "0.6222683", "0.5941195", "0.576053", "0.5735484", "0.56849974", "0.5646186", "0.55817115", "0.55793136", "0.55613744", "0.554933", "0.55313075", "0.54976785", "0.54669666", "0.5437136", "0.5355764", "0.53360176", "0.53262013", "0.53231746", "0.5309615", "0.5304138", "0.53026...
0.51751035
26
Write DTEND property of event
private String makeEventEnd(LocalDateTime date) { String name = "DTEND"; return formatTimeProperty(date, name) + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "EndEvent createEndEvent();", "private void sendDrawEndEvent() {\n\t\tint type = this.drawType;\n\t\tthis.deactivate();\n\t\tthis.activate(type);\n\t}", "public void setEnd(){\n\t\tthis.isEnd=true;\n\t}", "public GuideEnd() {\n super(\"endEvent\");\n setName(\"End Event\");\n }", "public T ...
[ "0.6637341", "0.6506736", "0.62236756", "0.61873287", "0.6113905", "0.60793287", "0.59928876", "0.59433746", "0.591862", "0.5905542", "0.583058", "0.5776167", "0.5770471", "0.57692766", "0.5696864", "0.5680977", "0.5674744", "0.5637608", "0.56006324", "0.5562581", "0.554781",...
0.668793
0
Write DTEND property of Course
@SuppressWarnings("unused") private String makeEventEnd(Course item) { LocalTime endTime; if (mRounded) { endTime = item.getRoundedEndTime(); } else { endTime = item.getEndTime(); } return makeEventEnd(LocalDateTime.of(item.getEndDate(), endTime)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String makeEventEnd(LocalDateTime date) {\n String name = \"DTEND\";\n return formatTimeProperty(date, name) + \"\\n\";\n }", "public String getEnd(){\n\t\treturn end;\n\t}", "public Date getDtEnd() {\r\n return dtEnd;\r\n }", "public String getEndAt() {\n return end...
[ "0.62819344", "0.60461843", "0.6025474", "0.59123254", "0.5898341", "0.5851425", "0.5792759", "0.5753853", "0.57425463", "0.5708768", "0.5683451", "0.56526434", "0.5644223", "0.56403935", "0.5637164", "0.56048423", "0.5603104", "0.5598716", "0.5579252", "0.5559744", "0.555965...
0.5679233
11
Write DTSTAMP property of event Stamp should be date created. DateTime constructor returns today's date.
private String makeEventStamp() { String name = "DTSTAMP"; return formatTimeProperty(LocalDateTime.now(), name) + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NoProxy\n public void updateDtstamp() {\n setDtstamp(new DtStamp(new DateTime(true)).getValue());\n }", "Date getTimeStamp();", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}", "@NoProxy\n public void setDtstamps(final Timestamp...
[ "0.62773204", "0.6054344", "0.550092", "0.54687405", "0.54663116", "0.54614776", "0.54247975", "0.5417788", "0.5397193", "0.5396918", "0.5377473", "0.535481", "0.5340865", "0.5310247", "0.53080875", "0.52875394", "0.52841973", "0.52220935", "0.52211523", "0.5213594", "0.52129...
0.7248516
0
Write DTSTAMP property given Course
@SuppressWarnings("unused") private String makeEventStamp(Course item) { return makeEventStamp(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String makeEventStamp() {\n String name = \"DTSTAMP\";\n return formatTimeProperty(LocalDateTime.now(), name) + \"\\n\";\n }", "public void setTimeStamp(long t)\n\t{attributes.add(TIMESTAMP,String.valueOf(t));}", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\...
[ "0.6036931", "0.53786737", "0.53351825", "0.53211534", "0.5319624", "0.5319624", "0.5300827", "0.5293375", "0.5279102", "0.5252087", "0.5248911", "0.51837766", "0.51651335", "0.5137341", "0.5122272", "0.50754607", "0.507284", "0.5057675", "0.50575155", "0.50545996", "0.505459...
0.546009
1
/ ICS FORMATTING METHODS Write RRULE property of event given an UNTIL date The frequency of the recurrence is hardcoded to WEEKLY
private String makeEventRecurrence(LocalDateTime lastDay) { return "RRULE:FREQ=WEEKLY;UNTIL=" + formatTimeToICS(lastDay) + "Z" + "\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void repeatingTask_changeRepeatPeriod_nextWeekDate() {\n LocalDate testDate = LocalDateTime.now().minusWeeks(1).minusDays(1).toLocalDate();\n LocalTime testTime = LocalTime.of(8, 30);\n LocalDateTime testDateTime = LocalDateTime.of(testDate, testTime);\n Event testEven...
[ "0.55953425", "0.53643847", "0.525345", "0.51570296", "0.5105692", "0.50699085", "0.5050729", "0.5016844", "0.5004263", "0.49889055", "0.49321887", "0.49014223", "0.48643222", "0.48607072", "0.48540893", "0.48508877", "0.47961888", "0.47808155", "0.47770378", "0.47697198", "0...
0.64703256
0
Write RRULE property of event given Course using getEndDate()
@SuppressWarnings("unused") private String makeEventRecurrence(Course item) { return makeEventRecurrence(LocalDateTime.of(item.getEndDate(), LocalTime.of(23, 0))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setEventEndDate(Date endEventDate);", "@SuppressWarnings(\"unused\")\n private String makeEventEnd(Course item) {\n LocalTime endTime;\n if (mRounded) {\n endTime = item.getRoundedEndTime();\n } else {\n endTime = item.getEndTime();\n }\n return ma...
[ "0.6063647", "0.6055355", "0.6038313", "0.5930125", "0.58462346", "0.58462346", "0.5828848", "0.57953316", "0.5777869", "0.57734096", "0.57295376", "0.57076", "0.5702501", "0.56853956", "0.56703067", "0.5668815", "0.56606895", "0.56520784", "0.561833", "0.561833", "0.56175965...
0.5349811
56
Write general datetime property of event such as DTSTART
private String formatTimeProperty(LocalDateTime date, String name) { String property; String time = formatTimeToICS(date); property = name + ";" + mTZID + ":" + time; return property; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String makeEventStart(LocalDateTime date) {\n String name = \"DTSTART\";\n return formatTimeProperty(date, name) + \"\\n\";\n }", "private String makeEventStamp() {\n String name = \"DTSTAMP\";\n return formatTimeProperty(LocalDateTime.now(), name) + \"\\n\";\n }", "@O...
[ "0.67094195", "0.6435745", "0.62187487", "0.59473664", "0.58490807", "0.5810563", "0.57633424", "0.57583827", "0.5741876", "0.5711099", "0.5631904", "0.5631496", "0.5622466", "0.56108725", "0.559792", "0.559792", "0.559472", "0.55743045", "0.55738467", "0.5567436", "0.5565674...
0.0
-1
Make ICScompatible time out of date
private String formatTimeToICS(LocalDateTime date) { return DateTimeFormatter.ofPattern("YYYYMMddTHHmmss").format(date); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkTime(){\n\t\treturn false;\r\n\t}", "private TimeUtil() {}", "long getInhabitedTime();", "@Override\n\tpublic Long updateStartTime() {\n\t\treturn null;\n\t}", "abstract public int getTime();", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_n...
[ "0.6153647", "0.6082693", "0.5932388", "0.5851491", "0.57614315", "0.57459617", "0.57362264", "0.5721259", "0.57013494", "0.56995124", "0.56810945", "0.56601465", "0.56450456", "0.5601903", "0.56012005", "0.5597371", "0.55855435", "0.5575424", "0.5575424", "0.55208564", "0.55...
0.59468025
2
Writes the trace if there were no errors
public void searchFinished(Search search) { if (this.filename.equals("")) return; this.writeTrace(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void writeTrace()\r\n {\r\n TGCreator creator = new TGCreator();\r\n TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph);\r\n TraceGraphWriter tgWriter = new TraceGraphWriter(trace);\r\n\r\n if (this.traceCompressed)\r\n {\r\n this.filename += ITraceConstant...
[ "0.6545672", "0.6105536", "0.604078", "0.5940118", "0.59381413", "0.58465296", "0.5811058", "0.57717156", "0.56926906", "0.5639389", "0.56376", "0.5612523", "0.5583677", "0.5580339", "0.5572046", "0.55375546", "0.5531933", "0.5530762", "0.5524369", "0.552404", "0.55225766", ...
0.0
-1
Writes the trace xml file
private void writeTrace() { TGCreator creator = new TGCreator(); TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph); TraceGraphWriter tgWriter = new TraceGraphWriter(trace); if (this.traceCompressed) { this.filename += ITraceConstants.ZIP_FILE_SUFFIX; tgWriter.saveCompressed(new File(this.filename)); } else { this.filename += ITraceConstants.XML_FILE_SUFFIX; tgWriter.save(new File(this.filename)); } SymbolicExecutionTracerPlugin.log(Status.INFO, "Symbolic Execution Tracer wrote " + this.numEndStates + " traces to " + this.filename); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void write(TraceList traceList,File file) throws IOException;", "public static void write(File file, WorkflowTrace trace) throws FileNotFoundException, JAXBException, IOException {\n FileOutputStream fos = new FileOutputStream(file);\n WorkflowTraceSerializer.write(fos, trace);\n }", "public v...
[ "0.6730299", "0.63716745", "0.62521386", "0.6070341", "0.58757055", "0.58640474", "0.5842996", "0.5805303", "0.57541585", "0.57206017", "0.5714138", "0.5699438", "0.5648301", "0.5630227", "0.5629195", "0.55780494", "0.5548935", "0.5546973", "0.5544201", "0.5523845", "0.551315...
0.76555425
0
Save the trace to the given file
public void setTraceFile(String fileName) { this.filename = fileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void writeTrace()\r\n {\r\n TGCreator creator = new TGCreator();\r\n TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph);\r\n TraceGraphWriter tgWriter = new TraceGraphWriter(trace);\r\n\r\n if (this.traceCompressed)\r\n {\r\n this.filename += ITraceConstant...
[ "0.71297747", "0.7077606", "0.69182914", "0.6890289", "0.67180425", "0.6639758", "0.6638523", "0.66178536", "0.6587224", "0.6579382", "0.6488126", "0.6474283", "0.6461926", "0.6390851", "0.63573706", "0.6341637", "0.6309036", "0.63077766", "0.62793875", "0.6271066", "0.626367...
0.0
-1
Compress the trace file
public void setTraceCompressed(boolean compressed) { this.traceCompressed = compressed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void compress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tZipOutputStream rfoFile = new ZipOutputStream(new FileOutputStream(path + fileName)); \n\t\t\tFile dirToZip = new File(rfoDir); \n\t\t\tString[] fileList = dirToZip.list(); \n\t\t\tbyte[] buffer = new byte[4096]; \n\t\t\tint bytesIn = 0; \n\n\t\t\tfor(int i=0; i<...
[ "0.61623317", "0.6139497", "0.6000535", "0.5893677", "0.5765793", "0.5727003", "0.57246816", "0.5626783", "0.5614501", "0.56121355", "0.55255735", "0.54634285", "0.5367247", "0.5318511", "0.5297376", "0.5277281", "0.5213528", "0.5161452", "0.5116199", "0.51128036", "0.5111653...
0.5934744
3
Append timestamps to MethodEntry/TracePath
public void setTimeStamps(boolean timeStamps) { this.timeStamps = timeStamps; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void logTraceTime();", "public abstract void logTraceTime(File file, String description);", "public void trace(long startNanoTime, long endNanoTime, MethodSignature signature) {\n trace(\"{}\\t{}\\t{} {}.{}{}\", METHOD_PROCESSING_TIME,\n (endNanoTime - startNanoTime) / nanosToMicros, ...
[ "0.67844176", "0.64930546", "0.5783655", "0.564374", "0.5639677", "0.56377107", "0.5607615", "0.52617097", "0.5230198", "0.5228152", "0.518484", "0.5149179", "0.51237357", "0.51010895", "0.50896794", "0.5078701", "0.505683", "0.50560313", "0.49922067", "0.49919072", "0.494701...
0.0
-1
Save values/ids from arguments. Needed for patterns with assignments. For primitive types the value is saved, for objects their id.
public void setArgumentValues(boolean argumentValues) { this.argumentValues = argumentValues; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveArguments(String methodName, Map arguments) {\n List args = (List) methodArguments.get(methodName);\n if (args == null) {\n args = new ArrayList();\n methodArguments.put(methodName, args);\n }\n args.add(arguments);\n }", "public void saveValu...
[ "0.5999292", "0.5545056", "0.5315242", "0.52424103", "0.52079916", "0.5188127", "0.5154053", "0.50970024", "0.50857633", "0.50817317", "0.49745497", "0.49588266", "0.49332848", "0.48821375", "0.4870866", "0.48403168", "0.4832491", "0.4819597", "0.47993508", "0.47965688", "0.4...
0.0
-1
TODO Autogenerated method stub
@Override public InternalResultsResponse<Convenio> fetchConvenioByRequest(PagedInquiryRequest request) { 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
Created by Nazar Vynnyk
@Repository public interface HistoryRepository extends JpaRepository<History, Integer> { Page<History> findAll(Pageable pageable); @Query("select h from History h where h.user.id = :userId" + " and (:name is NULL or h.product.name like :name)" + " and (:description is NULL or h.product.description like :description)" + " and (:categoryId is NULL or :categoryId = 0 or h.product.category.id = :categoryId)" + " and (:fromDate is NULL or h.usedDate >= :fromDate)" + " and (:toDate is NULL or h.usedDate <= :toDate)" + " order by h.usedDate asc") Page<History> findByMultipleParams(@Param("userId") int userId, @Param("name") String name, @Param("description") String description, @Param("categoryId") int categoryId, @Param("fromDate") Date fromDate, @Param("toDate") Date toDate, Pageable p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n...
[ "0.580183", "0.5725765", "0.56965417", "0.564432", "0.5584646", "0.5565739", "0.5565739", "0.556313", "0.55527467", "0.55479354", "0.5522232", "0.55008173", "0.54991686", "0.54969704", "0.549021", "0.54680616", "0.5466934", "0.54659843", "0.54424465", "0.5410532", "0.5403418"...
0.0
-1
Test of addDhlwsh method, of class Foititis.
@Test public void testAddDhlwsh() { System.out.println("addDhlwsh"); Mathima mathima = null; String hmeromDillwsis = ""; Foititis instance = new Foititis(); instance.addDhlwsh(mathima, hmeromDillwsis); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean add(Dish dish);", "@Test\n public void testAddPengguna() {\n System.out.println(\"addPengguna\");\n Pengguna pengguna = null;\n DaftarPengguna instance = new DaftarPengguna();\n instance.addPengguna(pengguna);\n // TODO review the generated test code and remove the d...
[ "0.6333556", "0.61375713", "0.612648", "0.5953538", "0.58944535", "0.5894293", "0.5832002", "0.5806588", "0.5796196", "0.5766783", "0.57439196", "0.56961745", "0.5660099", "0.5652492", "0.5651487", "0.56505835", "0.56496626", "0.5597228", "0.5580025", "0.55515015", "0.5524812...
0.8488007
0
Test of addVathmos method, of class Foititis.
@Test public void testAddVathmos() { System.out.println("addVathmos"); Mathima mathima = null; String hmeromExetasis = ""; double vathmos = 0.0; Foititis instance = new Foititis(); instance.addVathmos(mathima, hmeromExetasis, vathmos); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAdding(){\n fakeCoord.add(new Point2D.Double(0.10,0.20));\n VecFile.AddCommand(VecCommandFactory.GetShapeCommand(VecCommandType.RECTANGLE, fakeCoord));\n assertEquals(VecCommandType.RECTANGLE, VecFile.GetLastCommand().GetType());\n }", "public void testGetVector...
[ "0.5993484", "0.59454554", "0.5889398", "0.5797937", "0.5781407", "0.5740838", "0.57283086", "0.5692693", "0.56656796", "0.55854034", "0.558536", "0.5504706", "0.5489916", "0.54834425", "0.54545164", "0.5449595", "0.5427022", "0.5409588", "0.54015344", "0.53959566", "0.539088...
0.8367502
0
Arrange PersonDTO Person DTOAssembler
@Test @DisplayName("PersonDTOAssembler - Test create data transfer objects from Domain Object || Happy case") void personDTOAssembler_CreateDTOFromDomainObjectTest() { String mariaEmail = "maria@gmail.com"; String mariaName = "Maria Silva"; LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25); String mariaBirthplace = "Braga"; Email emailMaria = Email.createEmail(mariaEmail); Name nameMaria = Name.createName(mariaName); Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate); Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace); PersonID fatherID = null; PersonID motherID = null; String IS_NOT_DEFINED = "Is Not Defined"; //PersonDTO String personMariaBirthdate = birthateMaria.getBirthdate().toString(); //Expected PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED); //Act PersonDTO personDTO = PersonDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID); //Assert assertEquals(personDTOExpected, personDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PersonaDTO PersonaToPersonaDTO(Persona persona);", "Persona PersonaDTOToPersona(PersonaDTO personaDTO);", "public PersonaDTO(){}", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler\")\n void personDTOAssembler_InstatiatesDTOAssembler() {\n String mariaEmail = \"maria@gmail.co...
[ "0.73979706", "0.7192396", "0.69763947", "0.6740301", "0.6671329", "0.66514903", "0.6622554", "0.66196716", "0.6429526", "0.6394398", "0.63905215", "0.63847554", "0.63505775", "0.627285", "0.6237139", "0.6208629", "0.62037987", "0.6188383", "0.60961896", "0.6091599", "0.60108...
0.6342465
13
Arrange PersonDTO Person DTOAssembler
@Test @DisplayName("PersonDTOAssembler - Intantiates DTOAssembler") void personDTOAssembler_InstatiatesDTOAssembler() { String mariaEmail = "maria@gmail.com"; String mariaName = "Maria Silva"; LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25); String mariaBirthplace = "Braga"; Email emailMaria = Email.createEmail(mariaEmail); Name nameMaria = Name.createName(mariaName); Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate); Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace); PersonID fatherID = null; PersonID motherID = null; String IS_NOT_DEFINED = "Is Not Defined"; //PersonDTO String personMariaBirthdate = birthateMaria.getBirthdate().toString(); //Expected PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED); //Act PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler(); PersonDTO personDTO = personDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID); //Assert assertEquals(personDTOExpected, personDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PersonaDTO PersonaToPersonaDTO(Persona persona);", "Persona PersonaDTOToPersona(PersonaDTO personaDTO);", "public PersonaDTO(){}", "@Test\n @DisplayName(\"PersonDTOAssembler - WithMotherAndFather\")\n void personDTOAssembler_WithMotherAndFather() {\n String mariaEmail = \"maria@gmail.com\";\n ...
[ "0.73979706", "0.7192396", "0.69763947", "0.6671329", "0.66514903", "0.6622554", "0.66196716", "0.6429526", "0.6394398", "0.63905215", "0.63847554", "0.63505775", "0.6342465", "0.627285", "0.6237139", "0.6208629", "0.62037987", "0.6188383", "0.60961896", "0.6091599", "0.60108...
0.6740301
3
Arrange PersonDTO Person DTOAssembler
@Test @DisplayName("PersonDTOAssembler - WithMotherAndFather") void personDTOAssembler_WithMotherAndFather() { String mariaEmail = "maria@gmail.com"; String mariaName = "Maria Silva"; LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25); String mariaBirthplace = "Braga"; Email emailMaria = Email.createEmail(mariaEmail); Name nameMaria = Name.createName(mariaName); Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate); Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace); PersonID fatherID = PersonID.createPersonID("pp@gmail.com"); String fatherEmail = fatherID.getEmail().getEmail(); PersonID motherID = PersonID.createPersonID("mm@gmail.com"); String motherEmail = motherID.getEmail().getEmail(); //PersonDTO String personMariaBirthdate = birthateMaria.getBirthdate().toString(); //Expected PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace, fatherEmail, motherEmail); //Act PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler(); PersonDTO personDTO = personDTOAssembler.createDTOFromDomainObject(emailMaria, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID); //Assert assertEquals(personDTOExpected, personDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PersonaDTO PersonaToPersonaDTO(Persona persona);", "Persona PersonaDTOToPersona(PersonaDTO personaDTO);", "public PersonaDTO(){}", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler\")\n void personDTOAssembler_InstatiatesDTOAssembler() {\n String mariaEmail = \"maria@gmail.co...
[ "0.73979706", "0.7192396", "0.69763947", "0.6740301", "0.66514903", "0.6622554", "0.66196716", "0.6429526", "0.6394398", "0.63905215", "0.63847554", "0.63505775", "0.6342465", "0.627285", "0.6237139", "0.6208629", "0.62037987", "0.6188383", "0.60961896", "0.6091599", "0.60108...
0.6671329
4
Arrange PersonDTO Person DTOAssembler
@Test @DisplayName("PersonDTOAssembler - Intantiates DTOAssembler-SecondConstructor") void personDTOAssembler_InstatiatesDTOAssembler_SecondConstructor() { String mariaEmail = "maria@gmail.com"; String mariaName = "Maria Silva"; LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25); String mariaBirthplace = "Braga"; Email emailMaria = Email.createEmail(mariaEmail); Name nameMaria = Name.createName(mariaName); Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate); Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace); String ledgerId = "123"; LedgerID ledgerID = new LedgerID(ledgerId); PersonID fatherID = null; PersonID motherID = null; String IS_NOT_DEFINED = "Is Not Defined"; //PersonDTO String personMariaBirthdate = birthateMaria.getBirthdate().toString(); //Expected PersonDTO personDTOExpected = new PersonDTO(mariaEmail,ledgerId, mariaName, personMariaBirthdate, mariaBirthplace, IS_NOT_DEFINED, IS_NOT_DEFINED); //Act PersonDTO personDTO = PersonDTOAssembler.createDTOFromDomainObject(emailMaria, ledgerID, nameMaria, birthateMaria, birthplaceMaria, fatherID, motherID); //Assert assertEquals(personDTOExpected, personDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PersonaDTO PersonaToPersonaDTO(Persona persona);", "Persona PersonaDTOToPersona(PersonaDTO personaDTO);", "public PersonaDTO(){}", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler\")\n void personDTOAssembler_InstatiatesDTOAssembler() {\n String mariaEmail = \"maria@gmail.co...
[ "0.73979706", "0.7192396", "0.69763947", "0.6740301", "0.6671329", "0.66514903", "0.6622554", "0.66196716", "0.6429526", "0.6394398", "0.63905215", "0.63847554", "0.6342465", "0.627285", "0.6237139", "0.6208629", "0.62037987", "0.6188383", "0.60961896", "0.6091599", "0.601085...
0.63505775
12
Arrange PersonDTO Person DTOAssembler
@Test @DisplayName("PersonDTOAssembler - Intantiates DTOAssembler-ThirdConstructor") void personDTOAssembler_InstatiatesDTOAssembler_ThirdConstructor() { String mariaEmail = "maria@gmail.com"; String mariaName = "Maria Silva"; LocalDate mariaBirthDate = LocalDate.of(1973, 07, 25); String mariaBirthplace = "Braga"; Email emailMaria = Email.createEmail(mariaEmail); Name nameMaria = Name.createName(mariaName); Birthdate birthateMaria = Birthdate.createBirthdate(mariaBirthDate); Birthplace birthplaceMaria = Birthplace.createBirthplace(mariaBirthplace); LedgerID ledgerID = LedgerID.createLedgerID(); String ledgerId = ledgerID.toString(); PersonID fatherID = null; PersonID motherID = null; String IS_NOT_DEFINED = "Is Not Defined"; //PersonDTO String personMariaBirthdate = birthateMaria.getBirthdate().toString(); //Expected PersonDTO personDTOExpected = new PersonDTO(mariaEmail, mariaName, personMariaBirthdate, mariaBirthplace); //Act PersonDTOAssembler personDTOAssembler = new PersonDTOAssembler(); PersonDTO personDTO = personDTOAssembler.createDTOFromPrimitiveTypes(mariaEmail, mariaName, mariaBirthDate.toString(), mariaBirthplace); //Assert assertEquals(personDTOExpected, personDTO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PersonaDTO PersonaToPersonaDTO(Persona persona);", "Persona PersonaDTOToPersona(PersonaDTO personaDTO);", "public PersonaDTO(){}", "@Test\n @DisplayName(\"PersonDTOAssembler - Intantiates DTOAssembler\")\n void personDTOAssembler_InstatiatesDTOAssembler() {\n String mariaEmail = \"maria@gmail.co...
[ "0.73979706", "0.7192396", "0.69763947", "0.6740301", "0.6671329", "0.66514903", "0.6622554", "0.66196716", "0.6429526", "0.6394398", "0.63847554", "0.63505775", "0.6342465", "0.627285", "0.6237139", "0.6208629", "0.62037987", "0.6188383", "0.60961896", "0.6091599", "0.601085...
0.63905215
10
/ JADX WARNING: Illegal instructions before constructor call
public KscRuntimeException(int i, String str, Throwable th) { super(r0.toString(), KscException.getSerial(th)); String str2; StringBuilder sb = new StringBuilder(); sb.append("ErrCode:"); sb.append(i); if (str == null) { str2 = ""; } else { str2 = " details:" + str; } sb.append(str2); this.errCode = i; this.detailMessage = str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void __sep__Constructors__() {}", "Reproducible newInstance();", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public C23317d() {\n }", "protected abstract void construct();", "private JadTool() { }", "public As21Id...
[ "0.69689465", "0.68679726", "0.6805558", "0.6801261", "0.6797892", "0.67212576", "0.6703833", "0.6693608", "0.66880536", "0.66715336", "0.66418827", "0.6619065", "0.6590146", "0.6542643", "0.65065783", "0.65038776", "0.6501138", "0.6497327", "0.64758235", "0.64206815", "0.640...
0.0
-1
/ JADX INFO: this call moved to the top of the method (can break code semantics)
public KscRuntimeException(int i, Throwable th) { this(i, th == null ? null : th.toString(), th); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public voi...
[ "0.683091", "0.6681837", "0.66092", "0.6524662", "0.65181047", "0.64955086", "0.6465008", "0.6446277", "0.6385758", "0.6360469", "0.632474", "0.6315754", "0.63088393", "0.62681156", "0.6254658", "0.62398624", "0.6222707", "0.6198083", "0.61892426", "0.617641", "0.617641", "...
0.0
-1
Create the test case
public AppTest( String testName ) { super( testName ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Testcase createTestcase();", "@Test\n public void testCreate() {\n\n }", "private void generate_test_code()\n {\n int I;\n DataType[] ParamTypes = m_Problem.getParamTypes();\n DataType ReturnType = m_Problem.getReturnType();\n TestCase[] Cases = m_Problem.getTestCases()...
[ "0.81283677", "0.6874562", "0.68583983", "0.6802808", "0.675316", "0.67282486", "0.6657648", "0.65971994", "0.65593016", "0.6553712", "0.6546584", "0.6538934", "0.6538514", "0.65184474", "0.6518316", "0.64980024", "0.64724445", "0.6466226", "0.6465721", "0.6435358", "0.642735...
0.0
-1
SOAP Binding: Difference between Document and RPC Style Web Services
@WebService public interface ManualService { @WebMethod public int arrival(int regionCode, String berthCode); @WebMethod public int departure(int regionCode, String berthCode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebService(targetNamespace = \"http://www.pm.company.com/service/Pawel/\", name = \"Pawel\")\n@XmlSeeAlso({com.company.pm.schema.pawelschema.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface Pawel {\n\n @WebResult(name = \"firstOperationResponse\", targetNa...
[ "0.69077694", "0.6879749", "0.6751517", "0.6689599", "0.66864693", "0.6674889", "0.66687274", "0.66600657", "0.66227764", "0.6585088", "0.65484184", "0.654001", "0.65377593", "0.6511321", "0.65023303", "0.6502249", "0.64965135", "0.64479566", "0.643806", "0.6431664", "0.64304...
0.0
-1
int getGroupCountByStructureId(GroupProductSearch groupSearch); List getGroupListByStructureId(GroupProductSearch groupSearch);
int getGroupCountByStructureId(Integer structureId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int countByExample(SeGroupExample example);", "int countByExample(ProjGroupExample example);", "int getGroupCount();", "Long queryCount(ProductSearchParm productSearchParm);", "long countByExample(DashboardGoodsExample example);", "public int countByGroupId(long groupId);", "public int countByGroupId(l...
[ "0.67114335", "0.67022187", "0.669637", "0.64874667", "0.64709604", "0.63811207", "0.63811207", "0.6305735", "0.62833244", "0.6167693", "0.61493045", "0.61122835", "0.6102925", "0.60707766", "0.6060397", "0.6010212", "0.6010212", "0.5977489", "0.5962828", "0.5961825", "0.5958...
0.81281614
0
Subclasses implmement this method and return the name of their config file.
protected abstract String getXmppConfigResources();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getConfigFileName() {\r\n\t\treturn configFileName;\r\n\t}", "protected String getConfigurationFileName() \n\t{\n\t\treturn configurationFileName;\n\t}", "String getConfigFileName();", "@Override\n public String getFullDefaultConfigName() {\n return getConfigPath() + defaultCon...
[ "0.8055608", "0.8023499", "0.78814423", "0.75971854", "0.7524144", "0.7480146", "0.74063516", "0.73264307", "0.71490437", "0.6974878", "0.69443136", "0.6888658", "0.687897", "0.68297344", "0.679598", "0.67398405", "0.6668199", "0.6663682", "0.663157", "0.6628025", "0.6626619"...
0.0
-1
do not hardcode host/user etc here, look it up from the registry so the only place that this info is stored is in the config
private void createAndConnectJabberClient() throws Exception { Properties properties = (Properties) muleContext.getRegistry().lookupObject("properties"); String host = properties.getProperty("host"); conversationPartner = properties.getProperty("conversationPartner"); String password = properties.getProperty("conversationPartnerPassword"); // also save the jid that is used to connect to the jabber server muleJabberUserId = properties.getProperty("user") + "@" + host; jabberClient = new JabberClient(host, conversationPartner, password); configureJabberClient(jabberClient); jabberClient.connect(jabberLatch); assertTrue(jabberLatch.await(STARTUP_TIMEOUT, TimeUnit.MILLISECONDS)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getHostName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(activity);\n\n return preferences.getString(activity.getString(R.string.pref_host_id), activity.getString(R.string.pref_default_host_name));\n }", "public String getUserHost() {\n ...
[ "0.6696222", "0.6465766", "0.6432806", "0.6422483", "0.634939", "0.62691855", "0.6249654", "0.6249654", "0.62247354", "0.62215716", "0.61919916", "0.61726576", "0.61726576", "0.6169572", "0.6110767", "0.6095936", "0.60937333", "0.60260123", "0.6019926", "0.60156435", "0.60072...
0.0
-1
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Binary generalinfo: The inputs and results of the instance analysis that can be ongoing, periodic and actual and projected
public Object getPerformanceAssessmentInstanceAnalysisRecord() { return performanceAssessmentInstanceAnalysisRecord; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotatio...
[ "0.59246147", "0.5535393", "0.53194726", "0.5287371", "0.5055436", "0.50419533", "0.49994367", "0.49873385", "0.49380648", "0.49028683", "0.49017808", "0.48866317", "0.48764598", "0.48644418", "0.4859762", "0.48555535", "0.48458788", "0.4842736", "0.48313892", "0.483003", "0....
0.0
-1
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Code generalinfo: The type of external performance analysis report available
public String getPerformanceAssessmentInstanceAnalysisReportType() { return performanceAssessmentInstanceAnalysisReportType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private java.util.Map<java.lang.String, java.lang.Object> collectInformation() {\n /*\n // Method dump skipped, instructions count: 418\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ironsource.mediationsdk.utils.GeneralPropertiesWorker.collectInformation():...
[ "0.57797366", "0.5678873", "0.5553709", "0.5349663", "0.53246987", "0.5300673", "0.5295737", "0.5271838", "0.5271726", "0.520586", "0.51903236", "0.5189542", "0.5174706", "0.514739", "0.51401687", "0.51302266", "0.5099555", "0.507947", "0.50716823", "0.5067516", "0.5058499", ...
0.51265174
16
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Text generalinfo: The selection parameters for the analysis (e.g. period, algorithm type)
public String getPerformanceAssessmentInstanceAnalysisParameters() { return performanceAssessmentInstanceAnalysisParameters; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n int activeThreshold = 300;\n //Activity.selectActive(\"st\", 6, activeThreshold);\n //Activity.selectActive(\"ri\", 6, activeThreshold);\n //Activity.selectActive(\"dw\", 9, activeThreshold);\n\n //Interaction.analysis...
[ "0.5238439", "0.52196574", "0.51953226", "0.51117027", "0.5111526", "0.5105282", "0.510523", "0.5096261", "0.50944126", "0.50850177", "0.5070897", "0.50322723", "0.5019853", "0.5018379", "0.50028735", "0.49912393", "0.4945482", "0.49300572", "0.4926408", "0.4896921", "0.48924...
0.0
-1
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Binary generalinfo: The external analysis report in any suitable form including selection filters where appropriate
public Object getPerformanceAssessmentInstanceAnalysisReport() { return performanceAssessmentInstanceAnalysisReport; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test16() throws Throwable {\n Discretize discretize0 = new Discretize(\"$tE|HFM4Wv\");\n discretize0.globalInfo();\n // Undeclared exception!\n try { \n discretize0.outputPeek();\n fail(\"Expecting exception: NullPointerException\");\n \...
[ "0.53962123", "0.5363926", "0.5179264", "0.51596624", "0.51590437", "0.51384234", "0.5124757", "0.5101794", "0.50825036", "0.5071774", "0.5063104", "0.5040811", "0.5039699", "0.50341964", "0.50303", "0.5002858", "0.49992487", "0.4994418", "0.4988757", "0.4974541", "0.49663123...
0.0
-1
Create a new NfcDetection
public NfcDetection(Context context) { this.context = context; fragment = new NfcDetectionFragment(); name = context.getString(R.string.nfc_detection_name); activeSpots = new HashMap<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "NFRFramework createNFRFramework();", "@Override\n\tpublic NdefMessage createNdefMessage(NfcEvent event) {\n\t\t// Get Networkdata\n\t\t//HostageDBOpenHelper dbh = new HostageDBOpenHelper(this);\n\t\tDaoSession dbSession = HostageApplication.getInstances().getDaoSession();\n\t\tDAOHelper daoHelper = new DAOHelper...
[ "0.59846425", "0.53385454", "0.5303105", "0.52954453", "0.51982504", "0.51433223", "0.51427114", "0.5126806", "0.5110597", "0.5102539", "0.5079991", "0.5074123", "0.5070312", "0.50701684", "0.50568354", "0.50447595", "0.50429696", "0.50357765", "0.5029015", "0.5026054", "0.50...
0.6685349
0
This function is called when the NfcDetectedActivity detected a NFC tag.
public void detectedNfcSensor(NfcSensor foundSensor) { if (detect) { for (Location location : locations) { if (location instanceof NfcSpot) { final NfcSpot nfcSpot = (NfcSpot) location; if (nfcSpot.getNfcSensor().getSerialNumber().equals(foundSensor.getSerialNumber())) { String log = "Set NfcSpot \"" + nfcSpot.getName() + "\": "; Log.d(getClass().getSimpleName(), log + "true"); nfcSpot.setActive(true); activeSpots.put(nfcSpot, timeToSetInactive); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onResume() {\n super.onResume();\n // Check if there is any any NDEF is discovered to process the TAG\n if (NfcAdapter.ACTION_NDEF_DISCOVERED.equals(getIntent().getAction())) {\n processIntent(getIntent()); // If NDEF is discovered, It calls prcoessInt...
[ "0.7403103", "0.72545147", "0.7104546", "0.67404026", "0.6610321", "0.65997666", "0.64112043", "0.63395697", "0.63317287", "0.62228185", "0.6196188", "0.6168649", "0.61462593", "0.605821", "0.6041479", "0.6010099", "0.5994271", "0.5990915", "0.5938392", "0.5872081", "0.586511...
0.5433809
32
Constructor, creates a reentrant nonfair lock.
public LockSync() { lock = new ReentrantLock(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static Lock createLock() {\n return new /*Prio*/Lock();\n }", "public Lock() {\r\n }", "public abstract ReentrantLock getLock();", "public LockCondilock() {\n this(newDefaultLock());\n }", "public SimpleReadWriteLock() {\n\n\t\treaderLock = new ReadLock();\n\t\twriterLock = new WriteLock()...
[ "0.70277303", "0.6875307", "0.68064934", "0.6686786", "0.6445849", "0.6416945", "0.6384889", "0.61268574", "0.60677344", "0.59750503", "0.59269094", "0.5914924", "0.59022546", "0.5881165", "0.5837566", "0.5820984", "0.57633007", "0.5750079", "0.57216907", "0.56960803", "0.568...
0.7593725
0
Constructor, takes the given shared lock.
public LockSync(Lock sharedLock) { lock = Objects.requireNonNull(sharedLock); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Lock() {\r\n }", "LockManager() {\n }", "public LockSync() {\n lock = new ReentrantLock();\n }", "public LockCondilock() {\n this(newDefaultLock());\n }", "ManagementLockObject create();", "public LockCondilock(final Lock lock) {\n this(\n lock,\n ...
[ "0.744947", "0.72348535", "0.7191574", "0.67682636", "0.6662147", "0.66017866", "0.6534821", "0.6523939", "0.63105977", "0.62808883", "0.62228066", "0.6063031", "0.598047", "0.59144336", "0.58737105", "0.58081657", "0.58059675", "0.5805946", "0.58023566", "0.57830113", "0.573...
0.7787896
0
Executes the runnable action while holding the lock.
public void sync(Runnable run) { lock.lock(); try { run.run(); } finally { lock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void execute() {\n \tlockedOn();\n \tif (lockedOn) {\n \t\tupdateLocked();\n \t} else if (hasLockedOn) {\n \t\tupdateNotLocked();\n \tnew RotateTurretToAngle(angle()).start();\n \t}\n }", "private void execLocked(Runnable l) {\n Lock rl = lock.readLock();\n rl....
[ "0.67308813", "0.64961296", "0.6491499", "0.64761204", "0.64070374", "0.61926824", "0.61697555", "0.61697555", "0.6082913", "0.6031534", "0.60259956", "0.5935899", "0.5914307", "0.5910938", "0.5896859", "0.5880178", "0.5852316", "0.5840365", "0.5823343", "0.58141893", "0.5787...
0.5620146
33
Calls the given supplier while holding the lock and returns its value.
public <T> T sync(Supplier<? extends T> supplier) { lock.lock(); try { return supplier.get(); } finally { lock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V updateAndGet(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tthis.value = supplier.get();\n\t\t\treturn this.value;\n\t\t}\n\t}", "public long sync(LongSupplier supplier) {\n lock.lock();\n try {\n return supplier.getAsLong();\n } finally {\n ...
[ "0.7600832", "0.7576708", "0.7425843", "0.72457576", "0.723251", "0.6896585", "0.66342694", "0.62655026", "0.5988855", "0.59649503", "0.58152616", "0.577163", "0.5732202", "0.57230693", "0.5529892", "0.54943544", "0.54338855", "0.5429725", "0.54275703", "0.54106253", "0.53738...
0.782301
0
Calls the given supplier while holding the lock and returns its value.
public int sync(IntSupplier supplier) { lock.lock(); try { return supplier.getAsInt(); } finally { lock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> T sync(Supplier<? extends T> supplier) {\n lock.lock();\n try {\n return supplier.get();\n } finally {\n lock.unlock();\n } \n }", "public V updateAndGet(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tthis.value = sup...
[ "0.782301", "0.7600832", "0.7576708", "0.72457576", "0.723251", "0.6896585", "0.66342694", "0.62655026", "0.5988855", "0.59649503", "0.58152616", "0.577163", "0.5732202", "0.57230693", "0.5529892", "0.54943544", "0.54338855", "0.5429725", "0.54275703", "0.54106253", "0.537385...
0.7425843
3
Calls the given supplier while holding the lock and returns its value.
public boolean sync(BooleanSupplier supplier) { lock.lock(); try { return supplier.getAsBoolean(); } finally { lock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> T sync(Supplier<? extends T> supplier) {\n lock.lock();\n try {\n return supplier.get();\n } finally {\n lock.unlock();\n } \n }", "public V updateAndGet(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tthis.value = sup...
[ "0.782301", "0.7600832", "0.7576708", "0.7425843", "0.72457576", "0.723251", "0.66342694", "0.62655026", "0.5988855", "0.59649503", "0.58152616", "0.577163", "0.5732202", "0.57230693", "0.5529892", "0.54943544", "0.54338855", "0.5429725", "0.54275703", "0.54106253", "0.537385...
0.6896585
6
Calls the given supplier while holding the lock and returns its value.
public long sync(LongSupplier supplier) { lock.lock(); try { return supplier.getAsLong(); } finally { lock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> T sync(Supplier<? extends T> supplier) {\n lock.lock();\n try {\n return supplier.get();\n } finally {\n lock.unlock();\n } \n }", "public V updateAndGet(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tthis.value = sup...
[ "0.782301", "0.7600832", "0.7425843", "0.72457576", "0.723251", "0.6896585", "0.66342694", "0.62655026", "0.5988855", "0.59649503", "0.58152616", "0.577163", "0.5732202", "0.57230693", "0.5529892", "0.54943544", "0.54338855", "0.5429725", "0.54275703", "0.54106253", "0.537385...
0.7576708
2
Calls the given supplier while holding the lock and returns its value.
public double sync(DoubleSupplier supplier) { lock.lock(); try { return supplier.getAsDouble(); } finally { lock.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> T sync(Supplier<? extends T> supplier) {\n lock.lock();\n try {\n return supplier.get();\n } finally {\n lock.unlock();\n } \n }", "public V updateAndGet(final Supplier<V> supplier) {\n\t\tsynchronized (this.monitor) {\n\t\t\tthis.value = sup...
[ "0.782301", "0.7600832", "0.7576708", "0.7425843", "0.72457576", "0.6896585", "0.66342694", "0.62655026", "0.5988855", "0.59649503", "0.58152616", "0.577163", "0.5732202", "0.57230693", "0.5529892", "0.54943544", "0.54338855", "0.5429725", "0.54275703", "0.54106253", "0.53738...
0.723251
5
Create a library of cell styles
private static Map<String, CellStyle> createStyles(Workbook wbl) { Map<String, CellStyle> styles = new HashMap<String, CellStyle>(); try { CellStyle style; Font titleFont = wbl.createFont(); titleFont.setFontHeightInPoints((short) 18); titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD); style = wbl.createCellStyle(); style.setAlignment(CellStyle.ALIGN_CENTER); style.setVerticalAlignment(CellStyle.VERTICAL_CENTER); style.setFont(titleFont); styles.put("title", style); Font monthFont = wbl.createFont(); monthFont.setFontHeightInPoints((short) 11); monthFont.setColor(IndexedColors.WHITE.getIndex()); style = wbl.createCellStyle(); style.setAlignment(CellStyle.ALIGN_CENTER); style.setVerticalAlignment(CellStyle.VERTICAL_CENTER); style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex()); style.setFillPattern(CellStyle.SOLID_FOREGROUND); style.setFont(monthFont); style.setWrapText(true); style.setRightBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderRight(CellStyle.BORDER_THIN); style.setLeftBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderLeft(CellStyle.BORDER_THIN); style.setTopBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderTop(CellStyle.BORDER_THIN); style.setBottomBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderBottom(CellStyle.BORDER_THIN); styles.put("header", style); //MandatoryColumn to admission process Font mandatoryColumnFont = wbl.createFont(); mandatoryColumnFont.setFontHeightInPoints((short) 11); mandatoryColumnFont.setColor(IndexedColors.RED.getIndex()); style = wbl.createCellStyle(); style.setAlignment(CellStyle.ALIGN_CENTER); style.setVerticalAlignment(CellStyle.VERTICAL_CENTER); style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex()); style.setFillPattern(CellStyle.SOLID_FOREGROUND); style.setFont(mandatoryColumnFont); style.setWrapText(true); style.setRightBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderRight(CellStyle.BORDER_THIN); style.setLeftBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderLeft(CellStyle.BORDER_THIN); style.setTopBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderTop(CellStyle.BORDER_THIN); style.setBottomBorderColor(IndexedColors.WHITE.getIndex()); style.setBorderBottom(CellStyle.BORDER_THIN); styles.put("headers", style); style = wbl.createCellStyle(); style.setAlignment(CellStyle.ALIGN_CENTER); style.setWrapText(true); style.setBorderRight(CellStyle.BORDER_THIN); style.setRightBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderLeft(CellStyle.BORDER_THIN); style.setLeftBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderTop(CellStyle.BORDER_THIN); style.setTopBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderBottom(CellStyle.BORDER_THIN); style.setBottomBorderColor(IndexedColors.BLACK.getIndex()); styles.put("cell", style); style = wbl.createCellStyle(); style.setWrapText(true); style.setBorderRight(CellStyle.BORDER_THIN); style.setRightBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderLeft(CellStyle.BORDER_THIN); style.setLeftBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderTop(CellStyle.BORDER_THIN); style.setTopBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderBottom(CellStyle.BORDER_THIN); style.setBottomBorderColor(IndexedColors.BLACK.getIndex()); styles.put("string", style); CreationHelper createHelper = wbl.getCreationHelper(); style = wbl.createCellStyle(); style.setDataFormat(createHelper.createDataFormat().getFormat("dd-MMM-yyyy")); style.setAlignment(CellStyle.ALIGN_CENTER); style.setWrapText(true); style.setBorderRight(CellStyle.BORDER_THIN); style.setRightBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderLeft(CellStyle.BORDER_THIN); style.setLeftBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderTop(CellStyle.BORDER_THIN); style.setTopBorderColor(IndexedColors.BLACK.getIndex()); style.setBorderBottom(CellStyle.BORDER_THIN); style.setBottomBorderColor(IndexedColors.BLACK.getIndex()); styles.put("date", style); } catch (Exception ex) { ex.printStackTrace(); JRExceptionClient jre = new JRExceptionClient();jre.sendException(ex);jre = null; } return styles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Map<String, CellStyle> createStyles(Workbook wb) {\r\n Map<String, CellStyle> styles = new HashMap<>();\r\n DataFormat df = wb.createDataFormat();\r\n\r\n Font font1 = wb.createFont();\r\n\r\n CellStyle style;\r\n Font headerFont = wb.createFont();\r\n heade...
[ "0.7382709", "0.737809", "0.7084974", "0.692385", "0.6834419", "0.66367954", "0.6501511", "0.63987607", "0.6286316", "0.6286196", "0.6235537", "0.6185034", "0.6065653", "0.6023548", "0.6002956", "0.586955", "0.5856858", "0.58512694", "0.5836752", "0.58015716", "0.57989854", ...
0.7045373
3
Parameters: Variables: 20 Baselines: 200 IfBranches: 4
public void reduce(Text prefix, Iterator<IntWritable> iter, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException { int a000_ = 0; int a001_ = 0; int a002_ = 0; int a003_ = 0; int a004_ = 0; int a005_ = 0; int a006_ = 0; int a007_ = 0; int a008_ = 0; int a009_ = 0; int a010_ = 0; int a011_ = 0; int a012_ = 0; int a013_ = 0; int a014_ = 0; int a015_ = 0; int a016_ = 0; int a017_ = 0; int a018_ = 0; int a019_ = 0; int cur_ = 0; while (iter.hasNext()) { cur_ = iter.next().get(); a011_ = a015_ - a008_; a003_ = a000_ + a003_; a005_ = a005_ + a006_; a015_ = a012_ + a011_; a008_ = a014_ + a001_; a007_ = a005_ + a015_; a002_ = a000_ - a009_; a012_ = a005_ + a012_; a010_ = a018_ + a003_; a014_ = a014_ + a004_; cur_ = a002_ + a004_; a017_ = a007_ + a009_; a005_ = cur_ - a014_; a000_ = a012_ - a006_; a006_ = a013_ - a011_; a000_ = 0 - a008_; a006_ = a007_ + a003_; a015_ = a014_ - a019_; a004_ = a012_ + cur_; a005_ = a018_ - a017_; a007_ = a006_ + a000_; a005_ = cur_ - a009_; a001_ = a009_ + a008_; a015_ = cur_ + a010_; a013_ = a018_ * -2; cur_ = a013_ - a012_; a019_ = a002_ - a001_; a017_ = a014_ + a004_; a005_ = a017_ - a006_; a016_ = a019_ - a019_; a009_ = a000_ + cur_; a013_ = a003_ * -1; if (a010_ >= a004_) { a015_ = a018_ + a015_; a010_ = a009_ - a010_; a012_ = a011_ - a005_; a014_ = a002_ - a012_; if (a000_ != a013_) { a004_ = a015_ + cur_; a013_ = a019_ + a016_; a013_ = a012_ + a009_; a016_ = a014_ - -5; a001_ = a002_ - a004_; } else { a007_ = a013_ - a003_; a016_ = a007_ - a018_; a016_ = a013_ + a011_; a013_ = a013_ - a012_; a013_ = -1 + a006_; cur_ = a002_ - a017_; a007_ = a002_ + a018_; cur_ = a002_ + a015_; a003_ = a015_ + a007_; a017_ = a005_ + a009_; a013_ = a006_ - -2; a008_ = a005_ - a003_; a002_ = a017_ - a014_; a006_ = a006_ + a010_; a008_ = a018_ + a010_; a000_ = a015_ + -4; a014_ = a004_ - a010_; a012_ = a009_ - a016_; a008_ = a002_ - a019_; a015_ = a007_ + a005_; a004_ = cur_ + a018_; a011_ = a007_ + a012_; a007_ = 4 - a011_; a001_ = a012_ + cur_; a011_ = a010_ - a013_; a003_ = a006_ - a011_; a006_ = a012_ - a008_; a015_ = a010_ - a013_; a019_ = a012_ + a011_; if (a017_ != a015_) { cur_ = a010_ - cur_; a013_ = a009_ - a002_; a008_ = a011_ - a008_; a019_ = a005_ - a000_; a010_ = a019_ + a010_; a002_ = a004_ - 1; a017_ = a015_ - cur_; cur_ = 1 - a005_; a004_ = a000_ + a003_; a001_ = a012_ + 2; a004_ = a003_ - 2; a003_ = a010_ - -4; a019_ = a014_ - a002_; a011_ = a002_ - a007_; a000_ = a007_ + a015_; a018_ = a009_ + cur_; a006_ = a003_ - a017_; if (a008_ == a013_) { a005_ = a017_ + a016_; a005_ = a005_ + a013_; a017_ = a015_ + a007_; a016_ = a016_ + a018_; a016_ = a014_ - a015_; a003_ = a019_ - a018_; cur_ = a010_ + a005_; a003_ = a001_ + a010_; a016_ = -4 + a003_; a002_ = a017_ + a008_; a016_ = a003_ - a009_; a003_ = a009_ + a015_; a016_ = a004_ - a000_; a005_ = a015_ + cur_; a018_ = a010_ + a003_; a016_ = a017_ - a004_; } else { a018_ = a019_ + a009_; a015_ = a004_ + a018_; a019_ = a005_ - a003_; a009_ = -5 + a008_; a010_ = a000_ + a000_; a009_ = a009_ - a011_; a005_ = a006_ - cur_; a019_ = a018_ + a009_; a014_ = a005_ + cur_; a004_ = a010_ + a008_; a000_ = a015_ - a018_; a015_ = a017_ - a017_; a008_ = a001_ + a008_; a002_ = a009_ - a012_; a010_ = a006_ - a012_; a014_ = a009_ + a001_; a016_ = a000_ - a016_; a004_ = a018_ - a019_; a007_ = a003_ + a011_; a019_ = a004_ - a017_; a015_ = a018_ - a017_; a003_ = a000_ + a002_; a005_ = a007_ - a014_; a001_ = cur_ + a017_; } a012_ = a012_ + cur_; } else { a010_ = a018_ + a000_; a002_ = a000_ - a003_; a005_ = a012_ + a012_; a015_ = a004_ + a004_; a008_ = a013_ - a019_; a004_ = a002_ + a015_; a011_ = a014_ + a012_; a004_ = a019_ + a010_; a002_ = a018_ + a010_; cur_ = a017_ + a019_; a017_ = a013_ + a005_; a013_ = a008_ - a012_; a004_ = a012_ + a007_; } a009_ = a015_ - a016_; a000_ = a006_ + a008_; a003_ = a008_ - a011_; a001_ = a016_ - a006_; a016_ = a014_ + a016_; a000_ = a011_ + a003_; a004_ = a010_ + a019_; a013_ = a008_ + cur_; a016_ = a016_ + a015_; } a010_ = a003_ + a007_; a006_ = a009_ - a000_; a002_ = a017_ - a001_; a013_ = a016_ + a019_; a013_ = a009_ - a015_; a005_ = a002_ - a018_; a009_ = a002_ + a007_; a008_ = a008_ + a002_; a007_ = a005_ + a009_; a017_ = a019_ + a013_; a012_ = a003_ + a004_; a008_ = a012_ + a012_; a003_ = a007_ + a005_; cur_ = a014_ + a007_; a009_ = a016_ + a010_; a006_ = a005_ - a003_; a014_ = a019_ + cur_; a006_ = a007_ + a000_; a013_ = a011_ - a011_; a018_ = a009_ - 1; a002_ = a004_ - a014_; } else { a004_ = a006_ - a014_; a016_ = a017_ + 2; a014_ = a006_ - a002_; a002_ = a016_ + cur_; a014_ = -3 + a018_; } cur_ = a017_ + a015_; a005_ = a003_ - a015_; a014_ = a019_ + a009_; cur_ = cur_ + a005_; a009_ = a007_ - a004_; cur_ = a014_ + a006_; a013_ = a002_ - a012_; a002_ = a008_ + a014_; a000_ = a006_ + a004_; a017_ = 1 - a009_; a012_ = a017_ + a001_; a011_ = a009_ - a010_; a011_ = a018_ - a014_; a016_ = a003_ - cur_; a013_ = cur_ + a012_; a015_ = a012_ + a010_; a017_ = a007_ + a017_; a000_ = -1 + a008_; a010_ = a008_ + a003_; a016_ = a009_ + a010_; a002_ = a011_ + a008_; a016_ = a015_ + a016_; a002_ = a012_ + a008_; a017_ = a013_ + a004_; } output.collect(prefix, new IntWritable(a005_)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printBranch(Configuration indexingVars, Configuration confComplete, \n Vector listTrans, FiniteStates mainVar, int tabs, \n PrintWriter p){\n Configuration restOfVariables=null;\n Configuration parents=null;\n Vector parentVars=new Vector();...
[ "0.5886774", "0.577891", "0.5654645", "0.55879885", "0.55805457", "0.55621797", "0.5551659", "0.5515364", "0.54971254", "0.546872", "0.5466052", "0.5461452", "0.541747", "0.5411981", "0.539182", "0.53821933", "0.5375134", "0.53394663", "0.5336508", "0.53276974", "0.53198737",...
0.0
-1
Resultado 1 x 1
@Before public void setUp() throws Exception { partidaEmpate = new Partida(); ResultadoPartida resultadoPartidaEmpate = new ResultadoPartida(); resultadoPartidaEmpate.setGolsHTMandante(0); resultadoPartidaEmpate.setGolsFTMandante(1); resultadoPartidaEmpate.setGolsHTVisitante(0); resultadoPartidaEmpate.setGolsFTVisitante(1); partidaEmpate.setResultado(resultadoPartidaEmpate); //Resultado 3 x 1 partidaMandanteVence = new Partida(); ResultadoPartida resultadoPartidaMandanteVenceu = new ResultadoPartida(); resultadoPartidaMandanteVenceu.setGolsHTMandante(2); resultadoPartidaMandanteVenceu.setGolsFTMandante(1); resultadoPartidaMandanteVenceu.setGolsHTVisitante(0); resultadoPartidaMandanteVenceu.setGolsFTVisitante(1); partidaMandanteVence.setResultado(resultadoPartidaMandanteVenceu); //Resultado 0 x 2 partidaVisitanteVence = new Partida(); ResultadoPartida resultadoPartidaVisitante = new ResultadoPartida(); resultadoPartidaVisitante.setGolsHTMandante(0); resultadoPartidaVisitante.setGolsFTMandante(0); resultadoPartidaVisitante.setGolsHTVisitante(0); resultadoPartidaVisitante.setGolsFTVisitante(2); partidaVisitanteVence.setResultado(resultadoPartidaVisitante); analisaSeCravou.proximaAnalise(analisaSeAcertouGolsDoVencedor); analisaSeAcertouGolsDoVencedor.proximaAnalise(analisaSeAcertouSaldo); analisaSeAcertouSaldo.proximaAnalise(analisaResultadoSimples); analisaResultadoSimples.proximaAnalise(analisaEmpateGarantido); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main (String[] args){\n int r=100;\n int i=2;\n int u=r*i;\n\n System.out.println(\"O resultado é:\"+U+\"V\");\n\n }", "public int singleton() { //returns a single int with both values\r\n return( row*MAXCOLS + col );\r\n }", "protected void generar()...
[ "0.54896176", "0.54106915", "0.5387198", "0.53371143", "0.53281915", "0.5296878", "0.52849174", "0.5267165", "0.52614456", "0.5260893", "0.5257744", "0.5231269", "0.5198455", "0.5186075", "0.5182677", "0.5162747", "0.51533186", "0.5143268", "0.5126577", "0.51184344", "0.51047...
0.0
-1
// Getters and Setters ///
public static int GetTotalBlocks() { return totalBlocks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "public void get() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public String get();", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public int getAge() {return age;}", "String getName(){r...
[ "0.70213485", "0.7009498", "0.68095636", "0.62862664", "0.6234926", "0.6209921", "0.6125672", "0.611812", "0.6105533", "0.61007047", "0.6088066", "0.60873884", "0.60716784", "0.6068233", "0.6068233", "0.6065443", "0.6065144", "0.6064588", "0.6027205", "0.60159314", "0.6009001...
0.0
-1
Populates the screen with the selected students details
public void populateDetails() { txtpn_NameHeading.setText(selStudent.getfName() + " " + selStudent.getlName()); txtpn_RacesComplete.setText(String.valueOf(dataCur.countNumberRaces(selStudent.getId()))); txtpn_DaysAbsent.setText(String.valueOf(selStudent.getAttend())); txtpn_AgeGroup.setText(String.valueOf(selStudent.getAge())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fillInCurrentStudentInfo() {\n // Extract info from Student object\n String name = WordUtils.capitalizeFully(mCurrentStudent.getName());\n int sex = mCurrentStudent.getSex();\n mStudentBirthdate = mCurrentStudent.getBirthdate();\n int grade = mCurrentStudent.getGrade...
[ "0.7173207", "0.66697055", "0.6500463", "0.6340209", "0.6310906", "0.63108134", "0.62815225", "0.6222816", "0.6222507", "0.622019", "0.6186179", "0.6185192", "0.6176185", "0.6128595", "0.61060655", "0.6077233", "0.60595757", "0.60265845", "0.602485", "0.59694874", "0.59349406...
0.73352
0
Setter method used for setting the student of the screen
public void SetStudent(Student inStudent) { selStudent = inStudent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStudent(Student s) {\r\n student = s;\r\n }", "public void setStudent(Student s) {\n\t\tStudent = s;\n\t\tsetWelcomeText(s.getFirstName() , s.getLastName());//update the \"welcome, name!\" JLabel\n\t}", "public void setStudent(Student student) {\r\n\t\tthis.student = student;\r\n\t}", ...
[ "0.7672869", "0.7632776", "0.7530103", "0.7140084", "0.70913446", "0.68630713", "0.68540335", "0.68527794", "0.68295586", "0.67784435", "0.67644864", "0.6713419", "0.6688104", "0.65932614", "0.6585404", "0.64796996", "0.64586335", "0.64437", "0.64289486", "0.6350781", "0.6305...
0.73674965
3
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); lbl_RacesComplete = new javax.swing.JLabel(); lbl_DaysAbsent = new javax.swing.JLabel(); lbl_AgeGroup = new javax.swing.JLabel(); btn_Help = new javax.swing.JButton(); logo_SideDecor = new javax.swing.JLabel(); btn_Back = new javax.swing.JButton(); scrll_RacesComplete = new javax.swing.JScrollPane(); txtpn_RacesComplete = new javax.swing.JTextPane(); scrll_DaysAbsent = new javax.swing.JScrollPane(); txtpn_DaysAbsent = new javax.swing.JTextPane(); scrll_AgeGroup = new javax.swing.JScrollPane(); txtpn_AgeGroup = new javax.swing.JTextPane(); scrll_NameHeading = new javax.swing.JScrollPane(); txtpn_NameHeading = new javax.swing.JTextPane(); btn_Edit = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jPanel1.setBackground(new java.awt.Color(178, 219, 244)); jPanel1.setPreferredSize(new java.awt.Dimension(337, 300)); lbl_RacesComplete.setFont(new java.awt.Font("Tahoma", 1, 13)); // NOI18N lbl_RacesComplete.setText("Races Completed:"); lbl_DaysAbsent.setFont(new java.awt.Font("Tahoma", 1, 13)); // NOI18N lbl_DaysAbsent.setText("Days Absent:"); lbl_AgeGroup.setFont(new java.awt.Font("Tahoma", 1, 13)); // NOI18N lbl_AgeGroup.setText("Age Group:"); btn_Help.setText("?"); btn_Help.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_HelpActionPerformed(evt); } }); logo_SideDecor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Lib/CornerDecalsSmall.png"))); // NOI18N btn_Back.setText("Back"); btn_Back.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_BackActionPerformed(evt); } }); scrll_RacesComplete.setViewportView(txtpn_RacesComplete); scrll_DaysAbsent.setViewportView(txtpn_DaysAbsent); scrll_AgeGroup.setViewportView(txtpn_AgeGroup); scrll_NameHeading.setViewportView(txtpn_NameHeading); btn_Edit.setText("Edit"); btn_Edit.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_EditActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(40, 40, 40) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(15, 15, 15) .addComponent(btn_Back, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(13, 13, 13) .addComponent(btn_Edit, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(btn_Help)) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(lbl_DaysAbsent) .addComponent(lbl_AgeGroup)) .addGap(30, 30, 30) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(scrll_DaysAbsent, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(scrll_AgeGroup, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(lbl_RacesComplete) .addGap(30, 30, 30) .addComponent(scrll_RacesComplete, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addComponent(scrll_NameHeading, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(logo_SideDecor)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addComponent(logo_SideDecor) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(scrll_NameHeading, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(41, 41, 41) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lbl_RacesComplete) .addComponent(scrll_RacesComplete, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lbl_DaysAbsent) .addComponent(scrll_DaysAbsent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lbl_AgeGroup) .addComponent(scrll_AgeGroup, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(35, 35, 35) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btn_Help) .addComponent(btn_Edit, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btn_Back, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(59, Short.MAX_VALUE)) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 318, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 410, Short.MAX_VALUE) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191524", "0.7290383", "0.7290383", "0.7290383", "0.7286656", "0.72480965", "0.72141695", "0.72080517", "0.7195647", "0.7190378", "0.71841127", "0.71591616", "0.71478844", "0.7093131", "0.70816", "0.70577854", "0.6987355", "0.69769996", "0.69551086", "0.69545007", "0.6945...
0.0
-1
//GENEND:initComponents Goes back to the Student Screen
private void btn_BackActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_BackActionPerformed // go back to database access screen SS.StudentScreenPopulate(); SS.setVisible(true); this.setVisible(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StudentGUI(Student s) {\n\t\tstudent=s;\n\t\tsetTitle(\"B&B Learning\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcards = new JPanel(new CardLayout());\n\n\t\tstudentHomePagePanel = new StudentHomepage(); \n\t\tstudentHomePagePanel.setStudent(student);\n\t\tcards.add(studentHomePagePanel, \...
[ "0.676296", "0.672989", "0.66696453", "0.666433", "0.6645715", "0.6645183", "0.659363", "0.6593212", "0.64841765", "0.6467939", "0.6462454", "0.64414215", "0.64192086", "0.6397061", "0.6373996", "0.63536084", "0.6271817", "0.6255798", "0.62250364", "0.6216007", "0.6210321", ...
0.7299105
0
GENLAST:event_btn_BackActionPerformed Opend the Help Screen
private void btn_HelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_HelpActionPerformed // go to help screen SIHS = new HelpScreen(value); SIHS.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void HelpActionPerformed(ActionEvent e) {\n\t\tthis.setVisible(false);\n\t\tHelp frame = new Help();\n\t\tframe.UpFrame=this;\n\t\tframe.setVisible(true);\n\t}", "JButton backButton() {\r\n JButton button = new JButton(\"Back\");\r\n Font buttonsFront = new Font(\"Serif\", Font.PLAIN, 17)...
[ "0.7470111", "0.7209149", "0.70401067", "0.70060396", "0.69866747", "0.6978259", "0.69660884", "0.6905311", "0.6898482", "0.68921006", "0.688636", "0.6878447", "0.6867282", "0.68415743", "0.6793526", "0.67747015", "0.6761873", "0.6759953", "0.6759456", "0.6753248", "0.6738967...
0.7457453
1
/ For use by factory methods.
SessionManagerImpl() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reproducible newInstance();", "private StickFactory() {\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "For createFor();", "public void create() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "@Override\r\n\tpublic void create() {...
[ "0.7177441", "0.70360947", "0.6968676", "0.69283557", "0.68626577", "0.6844481", "0.6843405", "0.6833377", "0.6804175", "0.67810273", "0.6725514", "0.6681268", "0.66670763", "0.66550064", "0.66541445", "0.66136134", "0.66094714", "0.6589518", "0.6578883", "0.654079", "0.64994...
0.0
-1
Get the service discovery information embodied in the most recent Greeting received from the EPP server.
@Override public Greeting getLastGreeting() throws SessionConfigurationException, SessionOpenException { try { return sessionPool.getLastGreeting(); } catch (InterruptedException ie) { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.rajni.grpc.greeting.Greeting getGreeting();", "public String greeting() {\n ServiceInstance serviceInstance = loadBalancerClient.choose(EUREKA_AWARE_CLIENT_SERVICE_ID);\n LOGGER.info(\"Service instance picked up by load balancer: \");\n printServiceInstance(serviceInstance);\n Str...
[ "0.6009118", "0.59830946", "0.5902026", "0.5859605", "0.5839417", "0.57021135", "0.5655486", "0.5564247", "0.53926253", "0.537201", "0.5313157", "0.52897334", "0.5238554", "0.5226571", "0.51561886", "0.51404697", "0.5126258", "0.50637704", "0.5052396", "0.505049", "0.5040447"...
0.53306204
10
Shutdown the SessionManager, making it unavailable for further transaction processing.
@Override public void shutdown() { debugLogger.finest("enter"); userLogger.info("Initiating shutdown"); if (state == SMState.RUNNING) { debugLogger.info("state == RUNNING"); state = SMState.STARTED; interruptThread(runThread); } if (state == SMState.STARTED) { debugLogger.info("state == STARTED"); sessionPool.empty(); state = SMState.STOPPED; } debugLogger.info("state == STOPPED"); userLogger.info("Shutdown complete"); debugLogger.finest("exit"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void shutdown() {\n\t\tgetSessionFactory().close();\n\t}", "public static void shutdown() {\n getSessionFactory().close();\n }", "public static synchronized void destroy()\n {\n try\n {\n if (sessionFactory != null)\n {\n sessionFact...
[ "0.71626085", "0.6721608", "0.6668118", "0.66630256", "0.6652893", "0.6585096", "0.65650845", "0.6546379", "0.6534283", "0.65192544", "0.6512234", "0.6503477", "0.6459756", "0.6400361", "0.63891685", "0.63644916", "0.6243079", "0.6203899", "0.6173501", "0.6133875", "0.6132267...
0.53561527
89
Initiate the SessionPool's keepalive system. This will run until shutdown is invoked on the SessionManager.
@Override public void run() { debugLogger.finest("enter"); if (state != SMState.STARTED) { return; } runThread = Thread.currentThread(); state = SMState.RUNNING; try { while (state == SMState.RUNNING) { long sleepInterval = sessionPool.keepAlive(); boolean interrupted = false; int retry = 0; int maxRetries = MAX_SLEEP_INTERRUPTS_TO_FAIL; long sleepTime, awakenTime; do { sleepTime = Timer.now(); try { retry++; if (sleepInterval > 0) { Thread.sleep(sleepInterval); } interrupted = false; } catch (InterruptedException ie) { // reduce the remaining sleep interval awakenTime = Timer.now(); sleepInterval += sleepTime - awakenTime; interrupted = true; } } while (interrupted && retry < maxRetries && state == SMState.RUNNING); } } catch (IOException ioe) { userLogger.severe(ioe.getMessage()); userLogger.severe(ioe.getCause().getMessage()); userLogger.severe(ErrorPkg.getMessage("epp.session.poll.cfg.fail")); } debugLogger.finest("exit"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Scheduled(fixedRate = 30000)\n public void keepAlive() {\n if (needToRunStartupMethod) {\n runOnceOnlyOnStartup();\n needToRunStartupMethod = false;\n }\n }", "public boolean keepAliveEnabled();", "public SessionManager ()\r\n\t{\r\n\t\tactiveSessions = new ArrayList<...
[ "0.6188892", "0.59278095", "0.56960076", "0.55889416", "0.5523245", "0.54566586", "0.5392269", "0.53459567", "0.53338194", "0.53014094", "0.5251519", "0.52343285", "0.5200569", "0.5178556", "0.5171586", "0.5123774", "0.51160085", "0.5097775", "0.50916415", "0.50615716", "0.50...
0.5565913
4
Change the maximum size that the managed session pool will grow to. Note that this setting will not be saved to the configuration source.
@Override public void changeMaxPoolSize(int size) { sessionPool.setMaxSize(size); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setMaxSize(int size) {\n maxSize = size;\n }", "public void setMaxSize(int maxSize) {\n this.maxSize = maxSize;\n }", "@Override\n\tpublic long maxSize() {\n\t\treturn Main.chunkStoreAllocationSize;\n\t}", "public void setMaxSize(int c) {\n maxSize = c;\n }", "p...
[ "0.6931856", "0.69161016", "0.6818288", "0.6803326", "0.6785789", "0.67633253", "0.67019683", "0.6690696", "0.66020614", "0.64861137", "0.6483629", "0.64790046", "0.6473091", "0.6392125", "0.6385808", "0.6374647", "0.63617516", "0.6341929", "0.6340583", "0.632397", "0.6311694...
0.82510704
0
Change the EPP client password from oldPassword to newPassword. Note that this does not update the configuration source to reflect the change that must be done separately before any future attempts to (re)configure the system.
@Override public void changePassword(String oldPassword, String newPassword) { debugLogger.finest("enter"); userLogger.info(ErrorPkg.getMessage("reconfigure.pw.change.init", new String[] {"<<old>>", "<<new>>"}, new String[] {oldPassword, newPassword})); sessionPool.empty(); try { Session session = SessionFactory.newInstance(properties.getSessionProperties()); session.changePassword(newPassword); // Attempts to get a session between changePassword and setClientPW // will fail if the password was successfully changed. It is the // application's responsibility to handle transaction failures // during a change of password. This is expected to occur very // infrequently. properties.getSessionProperties().setClientPW(newPassword); } catch (Exception ex) { userLogger.severe(ex.getMessage()); userLogger.severe(ErrorPkg.getMessage("reconfigure.pw.change.fail")); } debugLogger.finest("exit"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void changePassword(String old, String newpswd)\n\t\t\tthrows HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"changePassword\");\n\t\tif (!this.isCloudChannelLive()) {\n\t\t\tthrow new HFModuleException(HFModuleException.ERR_USER_OFFLINE,\n\t\t\t\t\t\"User is not online\");\n\t\t}\n\n\t\t...
[ "0.75606376", "0.74504745", "0.7362359", "0.7353978", "0.723431", "0.722462", "0.7219011", "0.71992403", "0.7175219", "0.70788825", "0.70134336", "0.6995325", "0.69781435", "0.69484025", "0.69261754", "0.6844091", "0.6833267", "0.6826413", "0.67637235", "0.6715413", "0.671164...
0.8029954
0
Return the index of the last transaction considered for sending.
private int send(Transaction[] txs, Session session, StatsManager statsManager) throws IOException { for (int i = 1; i < txs.length; i++) { switch (txs[i].getState()) { case PROCESSED: case FATAL_ERROR: continue; default: } Command command = txs[i].getCommand(); txs[i].start(); try { session.write(command); statsManager.incCommandCounter(command.getCommandType()); } catch (ParsingException pe) { txs[i].setState(TransactionState.FATAL_ERROR); if (pe.getCause() instanceof SAXException) { SAXException saxe = (SAXException) pe.getCause(); userLogger.warning(saxe.getMessage()); txs[i].setCause(saxe); } else { userLogger.warning(pe.getMessage()); txs[i].setCause(pe); } } catch (IOException ioe) { userLogger.severe(ioe.getMessage()); txs[i].setState(TransactionState.RETRY); txs[i].setCause(ioe); throw ioe; } } return txs.length - 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int last() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn -1;\n\t\tsynchronized (buffer) {\n\t\t\tint outgoing = buffer[bufferLast - 1];\n\t\t\tbufferIndex = 0;\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "public int getTxIndex() {\n return txIndex;\n }", "public int last...
[ "0.6792326", "0.6728345", "0.6725788", "0.67150617", "0.63579744", "0.63231736", "0.6323099", "0.62816334", "0.6276224", "0.62542766", "0.6225059", "0.62214774", "0.6103282", "0.6057271", "0.60244024", "0.598668", "0.5984945", "0.59656143", "0.5948426", "0.59420437", "0.58951...
0.0
-1
Get the StatsViewer responsible for providing operating statistics about the SessionManager.
@Override public StatsViewer getStatsViewer() { return sessionPool.getStatsViewer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static StatisticsOverviewView getInstance() {\n if (statisticsOverviewView == null) {\n statisticsOverviewView = new StatisticsOverviewView();\n }\n return statisticsOverviewView;\n }", "private JPanel getStatsPanel() {\r\n if (statsPanel == null) {\r\n ...
[ "0.6684943", "0.65005046", "0.6158015", "0.58462846", "0.58195305", "0.57114476", "0.5675791", "0.5657712", "0.5553174", "0.55496716", "0.55420077", "0.5536374", "0.5474153", "0.5469852", "0.5467214", "0.54491454", "0.5405933", "0.53676736", "0.5361641", "0.53557235", "0.5350...
0.82736
0
private static final Logger log = LoggerFactory.getLogger(StwwmakerApplication.class);
public static void main(String[] args) { SpringApplication.run(StwwmakerApplication.class, args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Logger getLogger() {\n return LoggerFactory.getLogger(ApplicationManager.class);\n }", "@Override\n public void logs() {\n \n }", "protected static Logger initLogger() {\n \n \n File logFile = new File(\"workshop2_slf4j.log\");\n logFile.delete();\n ret...
[ "0.6545887", "0.6395637", "0.624475", "0.6150335", "0.6090025", "0.6087874", "0.6046244", "0.601978", "0.60084367", "0.5977933", "0.59431064", "0.59431064", "0.59316415", "0.5906775", "0.5897301", "0.58941644", "0.5806192", "0.57934314", "0.5770709", "0.5759701", "0.57502776"...
0.5439769
70
The highlevel FitSpirit business interface. This is basically a data access object. FitSpirit doesn't have a dedicated business facade.
public interface FitnessCentre { /** * Retrieve all <code>Room</code>s from the data store. * @return a <code>Collection</code> of <code>Room</code>s */ Collection<Room> getRooms() throws DataAccessException; /** * Retrieve all <code>ActivityType</code>s from the data store. * @return a <code>Collection</code> of <code>ActivityType</code>s */ Collection<ActivityType> getActivityTypes() throws DataAccessException; /** * Retrieve all <code>User</code>s from the data store. * @return a <code>Collection</code> of <code>User</code>s */ Collection<User> getUsers() throws DataAccessException; /** * Retrieve all <code>instructor</code>s from the data store. * @return a <code>Collection</code> of <code>instructor</code>s */ Collection<User> getInstructors() throws DataAccessException; /** * Retrieve all <code>staff</code>s from the data store. * @return a <code>Collection</code> of <code>staff</code>s */ Collection<User> getStaffs() throws DataAccessException; /** * Retrieve all <code>Lesson</code>s from the data store. * @return a <code>Collection</code> of <code>Lesson</code>s */ Collection<Lesson> getLessons() throws DataAccessException; /** * Retrieve all active <code>Lesson</code>s from the data store. * @return a <code>Collection</code> of active <code>Lesson</code>s */ Collection<Lesson> getActiveLessons() throws DataAccessException; /** * Retrieve all <code>Reservation</code>s from the data store. * @return a <code>Collection</code> of <code>Reservation</code>s */ Collection<Reservation> getReservations() throws DataAccessException; /** * Vrátí Místnost z data store podle id. * @param id id místnosti, kterou hledám * @return požadovaná Místnost, pokud byla nalezena * @throws DataAccessException */ Room loadRoom(int id) throws DataAccessException; /** * Vrati Aktivitu z data store podle id. */ ActivityType loadActivityType(int id) throws DataAccessException; /** * Vrati Uzivatelskou roli z data store dle zadaneho id. */ UserRole loadUserRole(int id) throws DataAccessException; /** * Vrati Uzivatele z data store dle zadaneho id. */ User loadUser(int id) throws DataAccessException; /** * Vrati Lekci z data store podle id. */ Lesson loadLesson(int id) throws DataAccessException; /** * Vrati Rezervaci z data store podle id. */ Reservation loadReservation(int id) throws DataAccessException; /** * Uloží místnost do data store, ať už insertovanou nebo updatovanou. * @param room místnost, kterou chci uložit * @throws DataAccessException */ void storeRoom(Room room) throws DataAccessException; /** * Ulozi druh aktivity do data store, at uz insertovanou nebo updatovanou. * @param activityType * @throws DataAccessException */ void storeActivityType(ActivityType activityType) throws DataAccessException; /** * Ulozi uzivatele do data store, at uz insertovaneho nebo updatovaneho. * @param user * @throws DataAccessException */ void storeUser(User user) throws DataAccessException; /** * Ulozi Lekci do data store, at uz insertovaneho nebo updatovaneho. * @param lesson * @throws DataAccessException */ void storeLesson(Lesson lesson) throws DataAccessException; /** * Ulozi Rezervaci do data store, at uz insertovanou nebo updatovanou. * @param reservation * @throws DataAccessException */ void storeReservation(Reservation reservation) throws DataAccessException; /** * Deletes a <code>Room</code> from the data store. */ void deleteRoom(int id) throws DataAccessException; /** * Deletes a <code>ActivityType</code> from the data store. */ void deleteActivityType(int id) throws DataAccessException; /** * Deletes a <code>User</code> from the data store. */ void deleteUser(int id) throws DataAccessException; /** * Deletes a <code>Reservation</code> from the data store. */ void deleteReservation(int id) throws DataAccessException; /** * Deletes a <code>Lesson</code> from the data store. */ void deleteLesson(int id) throws DataAccessException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Service {\n\n /**\n * Create a new Service\n *\n * @param hostIp database IP address\n * @param user database user name\n * @param password database password\n * @return a Service using the given credentials\n */\n static Service create(String hostIp, String user,...
[ "0.6152089", "0.5867277", "0.579273", "0.5685854", "0.5661103", "0.5629546", "0.56244445", "0.5611179", "0.5560873", "0.55484504", "0.55052143", "0.55025285", "0.55008805", "0.5497721", "0.5490716", "0.54599833", "0.54575", "0.5453281", "0.54460263", "0.54378515", "0.54355854...
0.55244505
10
Retrieve all Rooms from the data store.
Collection<Room> getRooms() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Room> getAll() {\n\t\tArrayList<Room> list = new ArrayList<>();\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.a...
[ "0.8201869", "0.8086293", "0.80095273", "0.78854346", "0.7856869", "0.7848327", "0.78202814", "0.77149916", "0.76495343", "0.7623858", "0.75576806", "0.7334368", "0.7143117", "0.7117517", "0.70795834", "0.6916964", "0.68386", "0.68039715", "0.67924553", "0.6759573", "0.671414...
0.7656847
8
Retrieve all ActivityTypes from the data store.
Collection<ActivityType> getActivityTypes() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Type> getAll();", "public List<Activity> getAllActivities();", "@Override\r\n\tpublic List<Type> getTypes() {\n\t\treturn (List<Type>)BaseDao.select(\"select * from type\", Type.class);\r\n\t}", "@GetMapping(\"/types\")\n\t@Timed\n\tpublic List<TypesDTO> getAllTypes() {\n\t\tthis.log.debug(\"REST...
[ "0.67342484", "0.66360074", "0.644686", "0.62736595", "0.62414545", "0.6124087", "0.60612726", "0.6002856", "0.6002793", "0.59568816", "0.5925933", "0.5861726", "0.5857171", "0.5852255", "0.58223593", "0.58055174", "0.5798375", "0.57823706", "0.56947774", "0.5652373", "0.5651...
0.7213785
0
Retrieve all Users from the data store.
Collection<User> getUsers() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<ERSUser> getAllUsers() {\n\t\treturn userDao.selectAllUsers();\n\t}", "@Override\n\tpublic List<Users> getAll() {\n\t\treturn usersDAO.getAll();\n\t}", "public List<User> retrieveAllUsers() {\n\t\treturn (List<User>) userRepository.findAll();\n\t}", "public List<User> getAll() {\n\t\...
[ "0.82363784", "0.82084155", "0.8195029", "0.8179039", "0.81773424", "0.8166523", "0.81012374", "0.80975765", "0.8082921", "0.8049721", "0.8047786", "0.80439925", "0.80342567", "0.80275804", "0.8006499", "0.7996565", "0.7996212", "0.79908466", "0.79805404", "0.79602695", "0.79...
0.0
-1
Retrieve all instructors from the data store.
Collection<User> getInstructors() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProxyList<Instructor> getInstructors() {\n return instructors;\n }", "public Set<InstructorAccountDetails> getAllInstructors() throws SQLException {\n Set<String> instructorUserNames = Sets.newHashSet();\n\n try (Connection connection = getConnection()) {\n int accountTy...
[ "0.7173098", "0.71384317", "0.6226661", "0.61149764", "0.6006039", "0.57879794", "0.57380146", "0.5685784", "0.5624058", "0.5623511", "0.5606176", "0.55952054", "0.55928844", "0.55848956", "0.5566178", "0.55466604", "0.55465776", "0.5492435", "0.548516", "0.5477371", "0.54639...
0.77303445
0
Retrieve all staffs from the data store.
Collection<User> getStaffs() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping\n\tpublic List<UniversityStaffMember> viewAllStaffs() {\n\t\tList<UniversityStaffMember> list = universityService.viewAllStaffs();\n\t\tif (list.size() == 0)\n\t\t\tthrow new EmptyDataException(\"No University Staff in Database.\");\n\t\treturn list;\n\t}", "@GET\r\n\t@Produces(\"application/JSON\")\...
[ "0.7804657", "0.7706937", "0.75086594", "0.7478477", "0.74460036", "0.74001396", "0.72492015", "0.70992994", "0.70697373", "0.69443977", "0.6682993", "0.66817695", "0.65825677", "0.65810925", "0.6445437", "0.6401431", "0.62706804", "0.6262877", "0.6249583", "0.6238797", "0.62...
0.76374596
2
Retrieve all Lessons from the data store.
Collection<Lesson> getLessons() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<Lesson> getActiveLessons() throws DataAccessException;", "@NotNull\n @Override\n public List<Lesson> getLessons() {\n return getLessons(false);\n }", "@Override\r\n\tpublic List<Supplies> findall() {\n\t\treturn suppliesDao.findall();\r\n\t}", "@Override\r\n\tpublic List<String> queryAll() {...
[ "0.66949046", "0.65330553", "0.546279", "0.54483503", "0.5427257", "0.53665584", "0.5353965", "0.53410035", "0.52932316", "0.523568", "0.5206683", "0.51662403", "0.51655835", "0.51605546", "0.51348853", "0.5112124", "0.51097435", "0.5084095", "0.50761664", "0.507023", "0.5062...
0.6904734
0
Retrieve all active Lessons from the data store.
Collection<Lesson> getActiveLessons() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull\n @Override\n public List<Lesson> getLessons() {\n return getLessons(false);\n }", "Collection<Lesson> getLessons() throws DataAccessException;", "public List<Promotion> getAllActivePromotions();", "@Override\r\n\tpublic List<String> queryAll() {\n\t\tList<String> list = homePageDao.queryAll()...
[ "0.6280977", "0.61732167", "0.54648644", "0.53638315", "0.5282611", "0.5265529", "0.52198577", "0.52098", "0.52076226", "0.5201635", "0.51428485", "0.5139938", "0.511516", "0.51106524", "0.510255", "0.5087982", "0.50836957", "0.5060114", "0.5059793", "0.5028311", "0.50200826"...
0.7062073
0
Retrieve all Reservations from the data store.
Collection<Reservation> getReservations() throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n @Transactional(readOnly = true, propagation = Propagation.REQUIRES_NEW, isolation = Isolation.READ_COMMITTED)\n public List<Reservations> getAll() {\n Session s = sessionFactory.getCurrentSession();\n Query hql = s.createQuery(\"From Reservations\");\n ...
[ "0.82116306", "0.7515862", "0.7301828", "0.72012174", "0.7156702", "0.71459603", "0.71008974", "0.6850144", "0.66451", "0.65543646", "0.6544135", "0.6532803", "0.6513147", "0.64536387", "0.6414208", "0.6276237", "0.6181463", "0.6117666", "0.611654", "0.6085981", "0.6064277", ...
0.76618785
1
Vrati Aktivitu z data store podle id.
ActivityType loadActivityType(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDataId();", "java.lang.String getDataId();", "public long getId() { return id; }", "public long getId() { return id; }", "public int getId() {\n return oid ;\n }", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "lo...
[ "0.7025198", "0.7025198", "0.6975461", "0.6975461", "0.6970497", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "0.6965113", "...
0.0
-1
Vrati Uzivatelskou roli z data store dle zadaneho id.
UserRole loadUserRole(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Long id() { return this.id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "public int getId(){\r\n\t\treturn id;\r\n\t}", "public int getId(){\r\n\t\treturn id;\r\n\t}", "public Long getId() {return id;}", "public Long getId(...
[ "0.727106", "0.7261001", "0.7232455", "0.7226172", "0.7226172", "0.7222729", "0.7222729", "0.72189915", "0.7200493", "0.7188092", "0.7188092", "0.7188092", "0.7188092", "0.7188092", "0.7188092", "0.7187468", "0.7172079", "0.71719706", "0.71644616", "0.7162765", "0.7145577", ...
0.0
-1
Vrati Uzivatele z data store dle zadaneho id.
User loadUser(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getId() {return id;}", "public Long getId() {return id;}", "public Long id() { return this.id; }", "public int getId()\n {\n return id;\n }", "public Long getId() {\n return id;\n }", "public int getId() {return id;}", "public int getId() { return id; }", "public int ...
[ "0.7069976", "0.7069976", "0.7059316", "0.7034042", "0.700862", "0.6991897", "0.697826", "0.697826", "0.697826", "0.697826", "0.697826", "0.697826", "0.6968433", "0.69617766", "0.6956501", "0.6947952", "0.6947952", "0.694535", "0.694535", "0.6935642", "0.6935642", "0.693228...
0.0
-1
Vrati Lekci z data store podle id.
Lesson loadLesson(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDataId();", "java.lang.String getDataId();", "public int getId() {\n return oid ;\n }", "public int getId() {\n\t\treturn this.data.getId();\n\t}", "public long getId() { return id; }", "public long getId() { return id; }", "Long getId();", "Long getId();", "Long getId();", ...
[ "0.6996281", "0.6996281", "0.6876316", "0.68565756", "0.67910814", "0.67910814", "0.6769799", "0.6769799", "0.6769799", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0.67583865", "0...
0.0
-1
Vrati Rezervaci z data store podle id.
Reservation loadReservation(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearId() {\n \n id_ = 0;\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public void setId(long id) {\n id_ = id;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n ...
[ "0.66345954", "0.6593521", "0.65786594", "0.6566909", "0.6566909", "0.6566909", "0.6566909", "0.6566909", "0.6566909", "0.6566909", "0.65301067", "0.6525727", "0.6525727", "0.6496314", "0.6485011", "0.6485011", "0.64689904", "0.64689904", "0.6401694", "0.6401694", "0.6386495"...
0.0
-1
Ulozi druh aktivity do data store, at uz insertovanou nebo updatovanou.
void storeActivityType(ActivityType activityType) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void DataIsInserted() {\n }", "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listSt...
[ "0.64293474", "0.630963", "0.6208316", "0.6196043", "0.61453676", "0.613061", "0.6121284", "0.6087203", "0.60782033", "0.6046317", "0.60276455", "0.60241807", "0.5975311", "0.5965896", "0.59509003", "0.5933389", "0.59114647", "0.5910782", "0.5906214", "0.5904333", "0.5893658"...
0.0
-1
Ulozi uzivatele do data store, at uz insertovaneho nebo updatovaneho.
void storeUser(User user) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData ...
[ "0.6398268", "0.63825566", "0.63308793", "0.61315215", "0.6129244", "0.6021482", "0.6006207", "0.5997133", "0.5941559", "0.59342617", "0.59031135", "0.5897168", "0.58644444", "0.5860533", "0.58372605", "0.5832816", "0.5813982", "0.58009905", "0.57976985", "0.5765169", "0.5722...
0.0
-1
Ulozi Lekci do data store, at uz insertovaneho nebo updatovaneho.
void storeLesson(Lesson lesson) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga...
[ "0.66712123", "0.6384433", "0.6381724", "0.63307035", "0.62919104", "0.6289884", "0.6274599", "0.6241409", "0.61887306", "0.6112056", "0.60533035", "0.60482806", "0.6042666", "0.5996104", "0.5976286", "0.5965628", "0.5944293", "0.59383106", "0.59376323", "0.59336996", "0.5915...
0.0
-1
Ulozi Rezervaci do data store, at uz insertovanou nebo updatovanou.
void storeReservation(Reservation reservation) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void freshTheData() {\n mData.clear();\n mData.addAll(mDataOrg);\n }", "public void updata() {\n\t\tif (ReaderDataBase.search(this, \"LastReadProcess\", mFilenameString) == 0) {\n\t\t\tReaderDataBase.insertDataBase(this, \"LastReadProcess\",\n\t\t\t\t\tmFilenameString, BookPageFactory.sP...
[ "0.6322744", "0.62433374", "0.6228566", "0.615268", "0.61368394", "0.61094844", "0.6097493", "0.6085743", "0.59590364", "0.5957616", "0.59539074", "0.59539044", "0.5947814", "0.592812", "0.5913068", "0.58886063", "0.58875084", "0.58760977", "0.5869179", "0.5862187", "0.584863...
0.0
-1
Deletes a Room from the data store.
void deleteRoom(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteRoom(Room room);", "Boolean deleteRoom(String roomId);", "@Override\n\tpublic int deleteRoom(int room_id) {\n\t\treturn roomDao.deleteRoom(room_id);\n\t}", "public void delete(Room room) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.delete(room);\n\t\tsession.flu...
[ "0.8023458", "0.77970064", "0.7588479", "0.7392459", "0.7292154", "0.704959", "0.7025802", "0.6968021", "0.6937891", "0.6896474", "0.68797195", "0.68601567", "0.6794684", "0.67544967", "0.6481858", "0.64546555", "0.6408335", "0.6385976", "0.63446426", "0.6326288", "0.63249195...
0.71892107
5
Deletes a ActivityType from the data store.
void deleteActivityType(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteActivity(String activityId) throws ActivityStorageException;", "boolean deleteUserActivityFromDB(UserActivity userActivity);", "@Override\n\tpublic void deleteByType(int type) {\n\t\tsettingDao.deleteByType(type);\n\t}", "int deleteByPrimaryKey(String activityId);", "@Override\n public...
[ "0.677084", "0.6571659", "0.6563333", "0.6450113", "0.63140345", "0.6158744", "0.6125275", "0.61129653", "0.60736823", "0.60462445", "0.5912066", "0.5905096", "0.5891087", "0.5855097", "0.5756762", "0.5749227", "0.5716529", "0.570651", "0.5687698", "0.56788707", "0.5649737", ...
0.7081287
0
Deletes a User from the data store.
void deleteUser(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void delete(User user){\n userRepository.delete(user);\n }", "@Override\r\n\tpublic void delete(User user) {\n\t\tuserDao.delete(user);\r\n\t}", "public void delete(User user) {\n repository.delete(user);\n }", "@Override\n public boolean deleteUser(User user) {\n return ...
[ "0.7912546", "0.78413117", "0.78212106", "0.7819264", "0.7767749", "0.7727969", "0.77274287", "0.7722469", "0.7720661", "0.77180725", "0.77057976", "0.76989216", "0.7691825", "0.76780653", "0.767409", "0.76631635", "0.7658951", "0.76482546", "0.7636758", "0.76336867", "0.7613...
0.0
-1
Deletes a Reservation from the data store.
void deleteReservation(int id) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/Reservation/{reservation_reservationId}\", method = RequestMethod.DELETE)\n\t@ResponseBody\n\tpublic void deleteReservation(@PathVariable Integer reservation_reservationId) {\n\t\tReservation reservation = reservationDAO.findReservationByPrimaryKey(reservation_reservationId);\n\t\treserv...
[ "0.7224269", "0.70398164", "0.6708403", "0.6663895", "0.6112937", "0.60559577", "0.6026937", "0.60216415", "0.6004961", "0.58651984", "0.58524656", "0.583569", "0.58282983", "0.5819725", "0.58174384", "0.57570916", "0.5712069", "0.5706969", "0.55899185", "0.55882704", "0.5559...
0.7232128
0