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
Do Nothing call client's retrieveMessage
public void retrieveMessage(String message) throws RemoteException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "public void handleMessageFromClient(Object msg) {\n\n }", "private void getMessage() throws Exception {\n\t\tGetTimestamp(\"Getting Message: \");\n\t\tString msg = \"\";\n\t\tString decmsg = \"\";\n\t\tbyte[] result;\n\t\ttry {\n\t\t\t...
[ "0.65687144", "0.6488574", "0.6431099", "0.64182", "0.6341816", "0.62397075", "0.6191224", "0.6148077", "0.61213887", "0.6118158", "0.61149746", "0.61069006", "0.61009216", "0.6067533", "0.60456485", "0.60310256", "0.5993485", "0.599163", "0.5991307", "0.59906197", "0.5987775...
0.61769897
7
Method that updates/sets/changes the username
public void setUserName(String name) throws RemoteException, InterruptedException { System.out.println("Server: Message > " + "setUserName() invoked"); lock.lock(); try { while (sentinel != -1) hasNotChanged.await(); // System.out.println("....Enter setUserName critical section...."); userName = name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setUsername(String username);", "void setUserUsername(String username);", "public void setUsername(String username)\r\n/* 16: */ {\r\n/* 17:34 */ this.username = username;\r\n/* 18: */ }", "public final void setUsername(final String value) {\n username = value;\n }", "public fina...
[ "0.81815714", "0.81478566", "0.7841041", "0.77392", "0.770844", "0.76697356", "0.761976", "0.7616607", "0.758773", "0.7559651", "0.7552757", "0.7542852", "0.75386506", "0.75080997", "0.7466284", "0.7447802", "0.74301916", "0.742885", "0.7406323", "0.74048793", "0.7403281", ...
0.0
-1
Searches if there is a registered client
public boolean findClient(String client) throws RemoteException { if (loggedIn.contains(client)) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String searchClients(String client){\r\n for(ClientHandler ch:clientThreads){\r\n if(ch.getName().equals(client)){\r\n return String.format(\"%s is connected!\\nIndex: %d\\n\", client, clientThreads.indexOf(ch));\r\n }\r\n }\r\n return String.format(\"%s is not conn...
[ "0.6952028", "0.6700366", "0.6497845", "0.64438057", "0.63846684", "0.63846684", "0.6203491", "0.6179727", "0.60832274", "0.6058917", "0.5981526", "0.59208745", "0.5864665", "0.58354366", "0.5834226", "0.5779692", "0.5743117", "0.56713724", "0.56582403", "0.5642623", "0.56319...
0.71754706
0
Checks if the username already exists
public boolean calendarExist(String userName) throws RemoteException { System.out.println("Server: Message > " + "calendarExist() invoked"); if (names.contains(userName)) { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkExistingUsername(String username) {\n boolean existingUsername = false;\n User user = userFacade.getUserByUsername(username);\n if (user != null) {\n existingUsername = true;\n }\n return existingUsername;\n }", "boolean isUsernameExist(String...
[ "0.812887", "0.812426", "0.8077265", "0.8077082", "0.780614", "0.7796449", "0.7759168", "0.77267414", "0.76833516", "0.7593095", "0.75536007", "0.7550557", "0.7521456", "0.7521456", "0.7521456", "0.7521456", "0.7521456", "0.7521456", "0.74891424", "0.748557", "0.74617356", ...
0.0
-1
Creates the user calendar with the given userName
public boolean createCalendar(String userName) throws RemoteException { System.out.println("Server: Message > " + "createCalendar() invoked"); if (!names.contains(userName)) { //this.userName = userName; try { setUserName(userName); this.userName = getUserName(); } catch (InterruptedException e) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean createAnotherCalendar(String userName) throws RemoteException {\n\t\tSystem.out.println(\"Server: Message > \" + \"createAnotherCalendar() invoked\");\n\t\t// Check if the calendar exists first\n\t\tif (calendarExist(userName) || findClient(userName))\n\t\t\treturn false;\n\t\telse {\n\t\t\treturn c...
[ "0.6926885", "0.66844153", "0.60002685", "0.59755415", "0.5920391", "0.5831282", "0.5774706", "0.5738386", "0.5692037", "0.5653605", "0.5607896", "0.5583342", "0.5581734", "0.5575738", "0.5575738", "0.556709", "0.55592364", "0.55529845", "0.5532959", "0.5521374", "0.5501727",...
0.7647314
0
Add an event into the userName's calendar Checks for the overlaps in the userName's calendar
public boolean addEvent(String userName, String timeInterval, String eventDescription, String accessControl) throws RemoteException { System.out.println("Server: Message > " + "addEvent() invoked"); // Check for the overlaps first if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addToCalendar() {\r\n if (!requireCalendarPermissions())\r\n return;\r\n\r\n if (CalendarUtil.createEntry(this, event))\r\n onAddToCalendarSuccess();\r\n else\r\n onRequireCalendarPermissionsDenied();\r\n }", "public static void create() {\n\t...
[ "0.6889919", "0.67150795", "0.65130866", "0.6374702", "0.6269266", "0.6265751", "0.6263445", "0.6133454", "0.6131415", "0.6110526", "0.60676885", "0.6016091", "0.5938436", "0.5867395", "0.5849458", "0.5845286", "0.5779071", "0.5692174", "0.56810266", "0.5678725", "0.56732255"...
0.6776267
1
Don't worry about the locks i can add thenm later you can just work on the functionality of the method
public boolean addGroupEvent(String userName, String timeInterval, String eventDescription, String accessControl) throws RemoteException { lockCalendars.lock(); try { while (sentinelC != -1) notfinis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lock() {\n\n }", "void lock();", "public void synchronize(){ \r\n }", "public void lock() {\r\n super.lock();\r\n }", "ManagementLockObject apply();", "void contentsSynchronized();", "public void lock() {\n super.lock();\n }", "public void lock() {\n su...
[ "0.6769376", "0.6731588", "0.6560456", "0.6095666", "0.60711396", "0.6040101", "0.60099894", "0.60099894", "0.60099894", "0.5979794", "0.59592444", "0.587816", "0.58775085", "0.5868919", "0.58426934", "0.58152795", "0.5808709", "0.5801713", "0.5798158", "0.57904625", "0.57757...
0.0
-1
Modify the group event
public boolean modifyGroup(String userName, String groupTime, String newGroupTime, String newEventDescription) { memberCount = 0; openIntervalsCheck = 0; // Check for group time overlaps if(!names.isEmpty()) { String[] currentTimeInterval = new String[2];...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected RowGroupingChangeEvent() {\n }", "@Override\n public void onClickGroupEvent(GroupEvent groupEvent) {\n QuickDirtyDataHolder.getInstance().notifySelectGEDialogObservers(groupEvent);\n }", "public void toolGroupUpdated(ToolGroupEvent evt) {\n }", "public voi...
[ "0.69196063", "0.68528223", "0.65212727", "0.63043374", "0.6190984", "0.6117953", "0.61159086", "0.6102369", "0.6096875", "0.6085111", "0.60792756", "0.6077042", "0.6066898", "0.60392797", "0.60392797", "0.6028467", "0.59686", "0.59655017", "0.5905375", "0.5872557", "0.586976...
0.0
-1
Displays the calendar of the userName
public String viewCalendar(String userName) throws RemoteException { System.out.println("Server: Message > " + "viewCalendar() invoked"); int eventNumber = 0; StringBuilder sb = new StringBuilder(); sb.append("\t\t\t " + userName + "'s CALENDAR \n"); sb.append("..................................................
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String viewAnyCalendar(String name) throws RemoteException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (userName.equals(name)){\n\t\t\tString result = viewCalendar(userName);\n\t\t\treturn result;\n\t\t} else {\n\n\t\t\tsb = new StringBuilder();\n\t\t\tsb.append(\"\\t\\t\\t \" + name + \"'s CALE...
[ "0.7227216", "0.71637803", "0.64426196", "0.6434583", "0.6195169", "0.5912229", "0.58695084", "0.582562", "0.5802231", "0.575457", "0.5656105", "0.5647296", "0.5575747", "0.5517982", "0.5498909", "0.5497092", "0.5481328", "0.54503167", "0.54409134", "0.54264826", "0.54092324"...
0.72472316
0
Deletes an event from the userName's calendar
public boolean deleteEvent(String userName, String eventTime) throws RemoteException { System.out.println("Server: Message > " + "deleteEvent() invoked"); eventTime = eventTime.replaceAll(" ", ""); // get rid of whitespaces in any case ArrayList<Event> list = userCalendar.get(userName); if (list != null || !lis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract CalendarEvent removeEvent(User user, String id);", "private void removeFromCalendar() {\r\n CalendarUtil.deleteEntry(this, event);\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_remove_event_succ...
[ "0.7539485", "0.7360438", "0.7065253", "0.6780737", "0.6727165", "0.67268014", "0.6611009", "0.65524834", "0.6511352", "0.6487523", "0.6487322", "0.6461811", "0.6440215", "0.6413866", "0.63826436", "0.6342739", "0.6276931", "0.62549096", "0.62387764", "0.62332624", "0.6227722...
0.67392546
4
Modifies/Updates the event in userName's calendar
public boolean updateEvent(String userName, String pickedTime, String modifiedTime, String eventDescription, String accessControl) throws RemoteException { // First checks if there is any overlap with the ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String updateDay(String userName, Day day);", "private void onAddToCalendarSuccess() {\r\n database.eventDao().update(event);\r\n updateSpeedDialActionItems();\r\n showToast(getString(R.string.event_calendar_add_event_sucess), Toast.LENGTH_LONG);\r\n }", "@PUT\n @Path(\"{id}\")\n ...
[ "0.6165527", "0.6118892", "0.5938564", "0.5804646", "0.5777069", "0.5771963", "0.5666839", "0.5655548", "0.5654563", "0.5621298", "0.5610532", "0.559212", "0.5586813", "0.5552421", "0.55485594", "0.5542331", "0.54803747", "0.54601717", "0.54575217", "0.5444331", "0.54259104",...
0.5793618
4
Create a calendar for a different user
public boolean createAnotherCalendar(String userName) throws RemoteException { System.out.println("Server: Message > " + "createAnotherCalendar() invoked"); // Check if the calendar exists first if (calendarExist(userName) || findClient(userName)) return false; else { return createCalendar(userName); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean createCalendar(String userName) throws RemoteException {\n\t\tSystem.out.println(\"Server: Message > \" + \"createCalendar() invoked\");\n\t\tif (!names.contains(userName)) {\n\t\t\t//this.userName = userName;\n\t\t\ttry {\n\t\t\t\tsetUserName(userName);\n\t\t\t\tthis.userName = getUserName();\n\t\t...
[ "0.65925", "0.6500432", "0.6478075", "0.6419121", "0.6382256", "0.63003725", "0.6107939", "0.60568357", "0.6052409", "0.5915056", "0.58189327", "0.57658523", "0.57379514", "0.5719003", "0.5698108", "0.56600416", "0.5589172", "0.55598825", "0.5559468", "0.55551934", "0.5517853...
0.6839986
0
Displays all user calendars
public String viewAllCalendars() throws RemoteException { System.out.println("Server: Message > " + "viewAllCalendars() invoked"); StringBuilder sb = new StringBuilder(); if (!names.isEmpty()) { for (String name : userCalendar.keySet()) { sb.append("\t\t\t " + name + "'s CALENDAR\n"); sb.append("........
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String viewAnyCalendar(String name) throws RemoteException {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (userName.equals(name)){\n\t\t\tString result = viewCalendar(userName);\n\t\t\treturn result;\n\t\t} else {\n\n\t\t\tsb = new StringBuilder();\n\t\t\tsb.append(\"\\t\\t\\t \" + name + \"'s CALE...
[ "0.6722279", "0.64492106", "0.63649386", "0.6127666", "0.6004779", "0.5983151", "0.5954701", "0.5938677", "0.5791079", "0.578467", "0.5756449", "0.57369727", "0.5733158", "0.5718034", "0.5707108", "0.56894374", "0.5666708", "0.5606515", "0.55851376", "0.55378544", "0.5495619"...
0.77926487
0
Display the calendar of name to this.userName If name is not this.userName, then do not display private events
public String viewAnyCalendar(String name) throws RemoteException { StringBuilder sb = new StringBuilder(); if (userName.equals(name)){ String result = viewCalendar(userName); return result; } else { sb = new StringBuilder(); sb.append("\t\t\t " + name + "'s CALENDAR \n"); sb.append("...............
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String viewAllCalendars() throws RemoteException {\n\t\tSystem.out.println(\"Server: Message > \" + \"viewAllCalendars() invoked\");\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (!names.isEmpty()) {\n\t\t\tfor (String name : userCalendar.keySet()) {\n\t\t\t\tsb.append(\"\\t\\t\\t \" + name + \"'s C...
[ "0.7211725", "0.69065315", "0.57966495", "0.5778899", "0.5761572", "0.568315", "0.5599427", "0.5597115", "0.55780596", "0.55496585", "0.5534221", "0.54872715", "0.5466755", "0.54108316", "0.53821975", "0.5308573", "0.5288046", "0.5276598", "0.5270758", "0.52698416", "0.524990...
0.75457215
0
This data item is a pointer to _citation.id in the CITATION category.
public StrColumn getCitationId() { return (StrColumn) (isText ? textFields.computeIfAbsent("citation_id", StrColumn::new) : getBinaryColumn("citation_id")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCID(){\n\t\treturn cid;\n\t}", "public String getCid() {\n return cid;\n }", "public Integer getCid() {\n return cid;\n }", "public Integer getCid() {\n return cid;\n }", "public String getcid() {\n\treturn cid;\n }", "@Override\n \tpublic void addCitatio...
[ "0.5744053", "0.57237244", "0.57149386", "0.57149386", "0.563037", "0.55858636", "0.5572502", "0.5550556", "0.5509148", "0.54059213", "0.53781044", "0.53688616", "0.53608394", "0.5340553", "0.5340553", "0.532718", "0.53239167", "0.52935463", "0.52904874", "0.52889913", "0.527...
0.5958645
0
Names of an editor of the citation; relevant for books and book chapters. The family name(s), followed by a comma and including any dynastic components, precedes the first name(s) or initial(s).
public StrColumn getName() { return (StrColumn) (isText ? textFields.computeIfAbsent("name", StrColumn::new) : getBinaryColumn("name")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getName(EditorInterface editor) {\n\t\treturn \"Selection\";\n\t}", "private String getOpinionAuthor() {\n String opinion = opinionView.getSelectionModel().getSelectedItem();\n String username = \"\";\n int i = 0;\n while (opinion.charAt(i) != ' '){\n ...
[ "0.5405519", "0.53285784", "0.5319557", "0.5246752", "0.52100724", "0.5195354", "0.5117225", "0.50669456", "0.5059913", "0.50591993", "0.5058482", "0.5030255", "0.50256306", "0.5015023", "0.5003955", "0.4936825", "0.4932086", "0.4930703", "0.49137315", "0.49096957", "0.490423...
0.0
-1
This data item defines the order of the editor's name in the list of editors of a citation.
public IntColumn getOrdinal() { return (IntColumn) (isText ? textFields.computeIfAbsent("ordinal", IntColumn::new) : getBinaryColumn("ordinal")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ImmutableList<SchemaOrgType> getEditorList();", "@Override\r\n\tpublic String getTagName() {\n\t\treturn \"author\";\r\n\t}", "Builder addEditor(String value);", "public String getEditor() {\n return (String)getAttributeInternal(EDITOR);\n }", "public String getEditor() {\n return (String)...
[ "0.5334724", "0.5271725", "0.5209217", "0.51430583", "0.51430583", "0.5135092", "0.5127053", "0.51118267", "0.5095109", "0.5070371", "0.5064453", "0.5054274", "0.50422543", "0.50201464", "0.5010913", "0.49995545", "0.49600127", "0.49583653", "0.495604", "0.49526635", "0.49167...
0.0
-1
return ((n1 > n2 ? n1 : n2) > n3) ? (n1 > n2 ? n1 : n2) : n3;
public double max(double n1,double n2,double n3){ double max1 = n1 > n2 ? n1 : n2; return max1 > n3 ? max1 : n3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int conditionalOp(int n1,int n2, double n3)\n\t{\n\t\tdouble x=n1; //implicit data type conversion\n\t\tSystem.out.println(\"value after implicit type casting: \"+x);\n\t\treturn (int)((((n1>n2)?n1:n2)>n3)?((n1>n2)?n1:n2):n3); //one line conditional operator and explicit data type conversion;\n\t}", ...
[ "0.6849662", "0.62437177", "0.6080675", "0.6027522", "0.5939543", "0.5843582", "0.5787694", "0.57731116", "0.5681669", "0.56571895", "0.5632526", "0.5617842", "0.5561656", "0.5534226", "0.5505873", "0.5487082", "0.5476769", "0.5468868", "0.54616714", "0.5421411", "0.5384846",...
0.6300688
1
Put your code here }}
public void init() throws ServletException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void view() {\n\t\t\n\t}", "public void themesa()\n {\n \n \n \n \n }", "@Override\r\n public void prenderVehiculo() {\r\n System.out.println(\"__________________________________________________...
[ "0.52866465", "0.51955193", "0.5166503", "0.5159055", "0.5155235", "0.5121048", "0.5099799", "0.5071902", "0.5050272", "0.5014657", "0.5011216", "0.4999596", "0.4973127", "0.49681154", "0.49409515", "0.49259058", "0.49164376", "0.4912908", "0.4910557", "0.49056315", "0.489767...
0.0
-1
todo: Make validation to login and password
@Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String email = req.getParameter("email"); String pass = req.getParameter("key"); Login_Validation validation = new Login_Validation(); try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void login(String username,String password){\n\n }", "void login(String user, String password);", "boolean validateUserAndPassword(String username, String password);", "private void login() {\n\t\t \tetUserName.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextCha...
[ "0.7788978", "0.77350897", "0.75045615", "0.7327047", "0.7320896", "0.7299723", "0.727396", "0.72559243", "0.72482014", "0.7239437", "0.7227166", "0.71997243", "0.7184379", "0.71835494", "0.7174625", "0.71608233", "0.71537334", "0.7153291", "0.70732546", "0.7069966", "0.70667...
0.0
-1
It creates an object which will build the spans in a zipkin V2_JSON format
public static OperationContext createOperationCtx(final Task task, final SpanClock spanClock, final ZipkinContext zipkinContext) { return API.Match(task.getComponent().getLocalComponent()).of( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Span createSpan();", "synchronized V1Span toSpan() {\n for (V1Annotation a : annotations) {\n Endpoint ep = Endpoints.boundEndpoint(a.endpoint());\n span.addAnnotation(a.timestamp(), a.value(), ep.toBuilder().serviceName(service).build());\n }\n for (V1BinaryAnnotation ann : binaryAnnotations)...
[ "0.626376", "0.60728747", "0.57979023", "0.56790704", "0.52854764", "0.52532846", "0.5233508", "0.51883125", "0.51123124", "0.502446", "0.49658504", "0.4902361", "0.48435643", "0.48412678", "0.47638035", "0.4679656", "0.46750408", "0.46632347", "0.46590722", "0.46562067", "0....
0.0
-1
getSpeedType() is used for giving the customer information about the vehicles speed.
@Override public String getSpeedType() { return type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getVehicleSpeed() {\n return vehicleSpeed;\n }", "public double getSpeed();", "public double getSpeed() {\n return speed;\n }", "public TransmissionAndSpeed getSpeed()\n {\n\treturn this.speed;\n }", "public Speed getSpeed() {\n\t\treturn speed;\n\t}", "public int getS...
[ "0.7060088", "0.682313", "0.68120396", "0.6811146", "0.6803259", "0.67995083", "0.67839164", "0.67781204", "0.67781204", "0.67781204", "0.67781204", "0.67781204", "0.67781204", "0.6751654", "0.6751654", "0.6751654", "0.6751654", "0.6751654", "0.6751654", "0.6748769", "0.67487...
0.8264461
0
Converts an entity list to a DTO list for groups.
private List<GroupDetailDTO> listEntity2DTO(List<GroupEntity> entityList) { List<GroupDetailDTO> list = new ArrayList<>(); for (GroupEntity entity : entityList) { list.add(new GroupDetailDTO(entity)); } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<D> mapToDTO(List<E> entity);", "private List<ComentarioDTO> listEntity2DTO(List<ComentarioEntity> entityList) {\n List<ComentarioDTO> list = new ArrayList();\n for (ComentarioEntity entity : entityList) {\n list.add(new ComentarioDTO(entity));\n }\n return list;\n }...
[ "0.69763917", "0.69561577", "0.6936655", "0.6872755", "0.6774995", "0.6736715", "0.670453", "0.66948336", "0.6670873", "0.66646624", "0.66542286", "0.65893644", "0.65877676", "0.65562266", "0.65507096", "0.6541151", "0.6510634", "0.6471039", "0.6358083", "0.6326808", "0.62823...
0.7969316
0
Connects /groups route with /members route which are dependent of group resource, by redirecting to the service managing the URL segment in charge of the members
@Path("{groupsId: \\d+}/members") public Class<GroupMemberResource> getGroupMemberResource(@PathParam("groupsId") Long groupsId, @PathParam("neighborhoodId") Long neighId) { if (groupLogic.getGroup(groupsId, neighId) == null) { throw new WebApplicationException("Resource /groups/" + groupsId + "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IGroupActionHelper {\n\t\n\t/**\n\t * Restituisce l'insieme delle referenze sul gruppo specificato.\n\t * Il metodo restituisce la mappa della lista degli oggetti referenzianti, indicizzata in base al nome \n\t * del manager che gestisce gli oggetti specifici.\n\t * @param group Il gruppo cui rica...
[ "0.517516", "0.51679033", "0.5107752", "0.503226", "0.49996486", "0.4962626", "0.48967677", "0.4869917", "0.4839895", "0.48107144", "0.47998756", "0.47710046", "0.47500142", "0.47392553", "0.4738564", "0.4731567", "0.47297946", "0.4719528", "0.471367", "0.4660636", "0.4641299...
0.5236685
0
Connects /residents path with /events path which depends on the group resource, by redirecting to the service managing the URL segment in charge of the event.
@Path("{groupsId: \\d+}/events") public Class<EventGroupResource> getEventGroupResource(@PathParam("groupsId") Long groupsId, @PathParam("neighborhoodId") Long neighId) { if (groupLogic.getGroup(groupsId, neighId) == null) { throw new WebApplicationException("Resource /groups/" + groupsId + " do...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic Event process(Event event) {\r\n\t\t// The id of the processing node\r\n\t\tString id;\r\n\t\t// Update the time stamp of the last event processed.\r\n\t\tlastTime = event.getTimeStamp();\r\n\t\t// Do transient accounting, if applicable\r\n\t\tif (lastTim...
[ "0.49505103", "0.4943864", "0.47230637", "0.47081983", "0.46655086", "0.46339592", "0.4523868", "0.4436166", "0.44289306", "0.44180918", "0.43883008", "0.43115833", "0.4288292", "0.42693356", "0.42634922", "0.42478937", "0.42240232", "0.4216434", "0.42105567", "0.41941333", "...
0.469273
4
Connects /residents path with /posts path which depends on the group resource, by redirecting to the service managing the URL segment in charge of the post.
@Path("{groupsId: \\d+}/posts") public Class<PostGroupResource> getPostGroupResource(@PathParam("groupsId") Long groupsId, @PathParam("neighborhoodId") Long neighId) { if (groupLogic.getGroup(groupsId, neighId) == null) { throw new WebApplicationException("Resource /groups/" + groupsId + " does ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void redirectTo( Part p ) {\n Set<Long> ids = Collections.emptySet();\n setResponsePage( new RedirectPage( SegmentLink.linkStringFor( p, ids ) ) );\n }", "void remotePublish(NamedResource res, PeerGroup group)\n {\n // cache first the resource locally\n publish(res);\n ...
[ "0.53692377", "0.5044943", "0.49130186", "0.47925115", "0.4639442", "0.45975897", "0.45715573", "0.45124376", "0.45003712", "0.43911433", "0.43491328", "0.4312403", "0.42988968", "0.4290691", "0.42652297", "0.42633197", "0.424084", "0.423446", "0.4224898", "0.42154095", "0.42...
0.50254095
2
Connects /residents path with /favors path which depends on the group resource, by redirecting to the service managing the URL segment in charge of the favor.
@Path("{groupsId: \\d+}/favors") public Class<FavorGroupResource> getFavorGroupResource(@PathParam("groupsId") Long groupsId, @PathParam("neighborhoodId") Long neighId) { if (groupLogic.getGroup(groupsId, neighId) == null) { throw new WebApplicationException("Resource /groups/" + groupsId + " do...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void redirectTo( Part p ) {\n Set<Long> ids = Collections.emptySet();\n setResponsePage( new RedirectPage( SegmentLink.linkStringFor( p, ids ) ) );\n }", "void redirect(ReagentSynonym synonym);", "void redirect(Reagent reagent);", "@PostMapping(path = {\"/{id}\", \"/{id}/\"})\n publ...
[ "0.5105392", "0.4986498", "0.4876528", "0.47863084", "0.4637311", "0.45260972", "0.44611573", "0.44506449", "0.4353871", "0.43232024", "0.4262663", "0.42503446", "0.42454773", "0.42055383", "0.41925523", "0.4183341", "0.4174026", "0.41736376", "0.41655457", "0.4145868", "0.41...
0.5391321
0
com.qmetry.qaf.automation.core.ui.api.TestPage.java The root interface in the test page hierarchy. A test page represents a webpage of your a web/mobileweb application or a view of mobilenative application. TestPage increases reusability by reduces the amount of duplicated code and means that if the UI changes, the fix...
public interface TestPage<D> { public TestPage<D> getParent(); public PageLocator getPageLocator(); /*** * This method check for existence of page in browser so we can proceed * further with page functionality. * * @param args * optional arguments required to identify page. * @re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HomePageTest(){\n\t\tsuper();\n\t}", "protected GuiTestObject html_main() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"html_main\"));\n\t}", "public void testRenderMyPage() {\n tester.startPage(HomePage.class);\r\n\r\n // assert rendered page class\r\...
[ "0.6487837", "0.621718", "0.6100228", "0.60733646", "0.5982086", "0.5970597", "0.59601235", "0.58961767", "0.5865564", "0.580995", "0.5792865", "0.57519174", "0.5657398", "0.56368744", "0.55895317", "0.5584616", "0.55742824", "0.55697745", "0.5548406", "0.55473167", "0.554375...
0.69084156
0
This method check for existence of page in browser so we can proceed further with page functionality.
public boolean isPageActive(PageLocator loc, Object... args);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasPage();", "boolean hasPage();", "public boolean verifyHomePageDisplayed(){\r\n\t\tWebDriver driver = SeleniumDriver.getInstance().getWebDriver();\r\n\t\tWebElement body;\r\n\t\ttry{\r\n\t\t\tbody = driver.findElement(By.tagName(\"body\"));\r\n\t\t\tif(body.getAttribute(\"class\").contains(\"home pag...
[ "0.7067338", "0.7067338", "0.68478304", "0.67393214", "0.6554825", "0.6554367", "0.6444606", "0.639524", "0.63517755", "0.6332809", "0.63255644", "0.6313358", "0.6291229", "0.6271376", "0.62645394", "0.6256443", "0.62319213", "0.6169531", "0.61357284", "0.6135579", "0.6135579...
0.55674666
80
selenium base instance to provide selenium
public UiTestBase<D> getTestBase();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SeleniumFactory getSeleniumFactory();", "protected WebDriver getDriver() {\n return Web.getDriver(Browser.CHROME, server.getURL() + \"TEST\", By.className(\"AuO\"));\n }", "private WebDriver getDriver() {\n return new ChromeDriver();\n }", "public BasePage(WebDriver driver) {\n thi...
[ "0.7767121", "0.72166187", "0.7189402", "0.71317333", "0.7080909", "0.7024738", "0.7004839", "0.69690365", "0.6964471", "0.6896746", "0.6844611", "0.6841697", "0.68252087", "0.67950684", "0.67885166", "0.67620724", "0.67370933", "0.6729657", "0.6718402", "0.67116594", "0.6708...
0.0
-1
Returns the body text of the current page
public String getText();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTextOnPage()\n {\n return mainText.getText();\n }", "public String getWholePageText(Document pageDocument) {\n\t\treturn pageDocument.body().text();\n\t}", "public String getPageText();", "public String getBodyText() {\n return bodyText;\n }", "public final String ...
[ "0.74722457", "0.72406477", "0.71471494", "0.6963145", "0.6897827", "0.6617591", "0.65531707", "0.62589633", "0.6185146", "0.61671036", "0.61623716", "0.61623716", "0.61623716", "0.61623716", "0.61250013", "0.61137646", "0.60035414", "0.5998762", "0.59931135", "0.59925336", "...
0.0
-1
You can specify launch behavior before launching the page by calling this method.
public void setLaunchStrategy(LaunchStrategy strategy);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Given(\"^Launch the page$\")\r\n\tpublic void launch_the_page() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedrivernew....
[ "0.65913486", "0.65913486", "0.65913486", "0.6463487", "0.63487774", "0.6125139", "0.6116903", "0.59106684", "0.58752453", "0.585993", "0.57635397", "0.57635397", "0.5722371", "0.5715218", "0.5705833", "0.56801665", "0.56694204", "0.56627816", "0.5630634", "0.5614365", "0.561...
0.6713155
0
to avoid a load of casts
@Override public boolean isVampire() { return dataTracker.get(Vampirable.Companion.getIS_VAMPIRE()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\r\n\t}", "@Override\n\tpublic void visit(CastExpression arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void visit(...
[ "0.65944904", "0.65944904", "0.65944904", "0.6288908", "0.5639227", "0.55657846", "0.5503517", "0.54808384", "0.5336792", "0.5322235", "0.53097254", "0.5301453", "0.52808046", "0.52400744", "0.5203062", "0.51688015", "0.51617396", "0.515129", "0.5147356", "0.51205105", "0.508...
0.0
-1
Call server with arguments like this: 8080
public static void main(String[] args) throws IOException { int port = 8080; try { if (args.length == 1) { port = Integer.parseInt(args[0]); } ServerSocket serverSocket = new ServerSocket(port); ChatServer server = new ChatServer(serverSoc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n int port = 7788;\n Server server = new Server(port);\n server.listen();\n }", "public static void main(String args[]) {\n\t\tif (args.length == 1)\n\t\t\tport = Integer.parseInt(args[0]);\n\t\tnew calculatorserver();\n\t}", "...
[ "0.74462676", "0.7370051", "0.72580934", "0.7151919", "0.7133741", "0.707783", "0.7010528", "0.69158655", "0.69144994", "0.69015515", "0.6894945", "0.68768084", "0.6842525", "0.6839848", "0.67835945", "0.6752231", "0.6738879", "0.67110306", "0.6697529", "0.6659969", "0.663285...
0.7169811
3
TODO Autogenerated method stub
@Override public int compareTo(employee empobj) { if(this.id==empobj.id){ return 0; }else if(this.id>empobj.id){ return 1; }else if(this.id<empobj.id) { return -1; } return id; }
{ "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
Creates new form ChartTest
public ChartTest() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public testChart() {\n initComponents();\n }", "@Test\n public void createTest() throws ApiException {\n PostInterestRateChartsRequest body = null;\n PostInterestRateChartsResponse response = api.create(body);\n\n // TODO: test validations\n }", "private Chart(){}", "priv...
[ "0.6474768", "0.6068407", "0.6047416", "0.59862274", "0.59570855", "0.58608395", "0.5734705", "0.5655407", "0.562808", "0.56136435", "0.55172485", "0.5510764", "0.54413813", "0.54205894", "0.5392107", "0.5295295", "0.5280689", "0.52709305", "0.5255754", "0.5242973", "0.522613...
0.6650526
0
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(); jButton1 = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); setDefaultClose...
{ "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.7322098", "0.7292275", "0.7292275", "0.7292275", "0.72872275", "0.72507876", "0.7214814", "0.7209056", "0.7197325", "0.71918863", "0.71856284", "0.7160448", "0.7148918", "0.7094831", "0.70820963", "0.70585436", "0.6988433", "0.6978755", "0.69569016", "0.6955245", "0.694635...
0.0
-1
TODO Autogenerated method stub
public List<QnA_Reply> qnareplyread(QnA_Reply qnA_Reply) { return session.selectList(namespace+".qnareplyread", qnA_Reply); }
{ "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
Creating a Workbook from an Excel file (.xls or .xlsx)
public ExcelReader() throws IOException, InvalidFormatException { this.workbook = WorkbookFactory.create(new File(SAMPLE_XLSX_FILE_PATH)); // Retrieving the number of sheets in the Workbook System.out.println("Workbook has " + workbook.getNumberOfSheets() + " Sheets : "); // Obtain a ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Workbook getWorkBook(String filename) throws java.io.IOException {\n CurrentFileName = filename;\n FileInputStream file = new FileInputStream(new File(filename));\n\n if (filename.endsWith(\".xlsx\") || filename.endsWith(\".xlsm\")) {\n return new XSSFWorkbook(file);\n\n ...
[ "0.721921", "0.6705838", "0.6460433", "0.6345349", "0.61971265", "0.6119898", "0.6104001", "0.6091596", "0.60633755", "0.6033856", "0.6014244", "0.5906367", "0.5875879", "0.5869548", "0.58690286", "0.58542615", "0.5817851", "0.57958025", "0.57883024", "0.5774523", "0.5772435"...
0.5289024
51
Getting the Sheet at index zero
public void getF1F2labels(int sheetIndex) { Sheet sheet = workbook.getSheetAt(sheetIndex); String sheetName = sheet.getSheetName(); // Create a DataFormatter to format and get each cell's value as String DataFormatter dataFormatter = new DataFormatter(); for (int rowIndex = 1; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Sheet getSheetAt(int arg0) {\n\t\treturn null;\n\t}", "ISheet getSheet(int index);", "public int getSheetIndex(Sheet arg0) {\n\t\treturn 0;\n\t}", "public int getSheetIndex(String arg0) {\n\t\treturn 0;\n\t}", "public Sheet getSheet(String arg0) {\n\t\treturn null;\n\t}", "public Sheet getSheet()\...
[ "0.8441341", "0.8038413", "0.7813698", "0.778292", "0.77265215", "0.7490315", "0.7451057", "0.7303683", "0.7022323", "0.68510675", "0.66300404", "0.6563769", "0.65196514", "0.6504436", "0.6469028", "0.6299836", "0.62886685", "0.6251819", "0.6250444", "0.6220814", "0.62157416"...
0.0
-1
Getting the Sheet at index zero
public void browseAllCells() throws IOException, InvalidFormatException { Sheet sheet = workbook.getSheetAt(0); // Create a DataFormatter to format and get each cell's value as String DataFormatter dataFormatter = new DataFormatter(); System.out.println("\n\nIterating over Rows and Col...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Sheet getSheetAt(int arg0) {\n\t\treturn null;\n\t}", "ISheet getSheet(int index);", "public int getSheetIndex(Sheet arg0) {\n\t\treturn 0;\n\t}", "public int getSheetIndex(String arg0) {\n\t\treturn 0;\n\t}", "public Sheet getSheet(String arg0) {\n\t\treturn null;\n\t}", "public Sheet getSheet()\...
[ "0.8441341", "0.8038413", "0.7813698", "0.778292", "0.77265215", "0.7490315", "0.7451057", "0.7303683", "0.7022323", "0.68510675", "0.66300404", "0.6563769", "0.65196514", "0.6504436", "0.6469028", "0.6299836", "0.62886685", "0.6251819", "0.6250444", "0.6220814", "0.62157416"...
0.0
-1
get the value of the 2 users textview to pass it in the next activity
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { TextView textView = (TextView) view.findViewById(R.id.nameToNameTextView); String text = textView.getText().toString(); Intent a = new Intent(MainActivity.this, Strin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n GREETER=edit.getText().toString();\n\n //Acceder al segundo Activity y mandarle un string\n Intent intent=new Intent(MainActivity.this,SecondActivity.class);\n intent.putExtra(\"greeter\",GREETER); //...
[ "0.68318087", "0.67242306", "0.6637233", "0.6601716", "0.65965915", "0.65902424", "0.6588438", "0.6553532", "0.6526588", "0.6486955", "0.64480305", "0.63300455", "0.6291635", "0.6264172", "0.6256812", "0.624883", "0.6248084", "0.62306297", "0.6184973", "0.61505777", "0.613209...
0.0
-1
Make the fetched config available via FirebaseRemoteConfig get calls, e.g., getLong, getString.
@Override public void onSuccess(Void aVoid) { mFirebaseRemoteConfig.activateFetched(); // Update the EditText length limit with // the newly retrieved values from Remote Config. applyRetrievedLengthLimit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadRemoteConfig()\n {\n try\n {\n if ( Config.getInstance().getProperty( GlobalIds.CONFIG_REALM ) == null )\n {\n LOG.warn( \"Config realm not enabled\" );\n return;\n }\n // Retrieve parameters from the config...
[ "0.61914814", "0.5770196", "0.5714019", "0.56916445", "0.5667351", "0.563858", "0.56242955", "0.5611626", "0.55968636", "0.5567807", "0.55611813", "0.5551257", "0.55125517", "0.54953736", "0.54888785", "0.5479964", "0.54722655", "0.546871", "0.5448928", "0.5413607", "0.540095...
0.5198484
37
An error occurred when fetching the config.
@Override public void onFailure(@NonNull Exception e) { Log.w(TAG, "Error fetching config", e); // Update the EditText length limit with // the newly retrieved values from Remote Config. applyRetrievedLe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CommandFailedByConfigException(String msg) {\n super(msg);\n }", "public CommandFailedByConfigException(Throwable ex) {\n super(ex);\n }", "public ConfigurationServerFailureException() {\n\t\tsuper();\n\t}", "public CommandFailedByConfigException(String msg, Throwable ex) {\n super(msg, ex)...
[ "0.6020308", "0.5966534", "0.5893505", "0.56684387", "0.55994695", "0.54314476", "0.5385963", "0.5343326", "0.5324862", "0.52698106", "0.5262534", "0.5254419", "0.5226906", "0.5181926", "0.5128337", "0.5109881", "0.5090601", "0.5081809", "0.5078349", "0.5076897", "0.5067823",...
0.6740826
0
what happens when click
@Override public void onClick(View v) { Intent next = new Intent(HomeActivity.this,Playerinfo.class); //set intent for going to playerinfo class startActivity(next); // click to continue to the next activity //player.pause(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mouseClicked(MouseEvent e) \t{\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t...
[ "0.79052585", "0.787622", "0.7858088", "0.7858088", "0.7858088", "0.7858088", "0.7858088", "0.7858088", "0.7858088", "0.7858088", "0.7858088", "0.7858088", "0.7858088", "0.78546286", "0.78546286", "0.78546286", "0.784477", "0.784477", "0.78382003", "0.78380626", "0.78304017",...
0.0
-1
Construct a new QueryExpansion
QueryExpansion(Map<String, FreqAndLists> map, ScoringFunction sf, int qryId) { this.map = map; this.sf = sf; scoreMap = new HashMap<Double, List<String>>(); this.qryId = qryId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "public Query(){\n this(new MongoQueryFilter.MongoQueryFilterBuilder());\n }", "public static QueryInterface createQuery() {\n return new XmlQu...
[ "0.6233847", "0.617391", "0.61008626", "0.60746425", "0.6054937", "0.603018", "0.60286915", "0.6009703", "0.6005365", "0.5986386", "0.5973929", "0.59709567", "0.5945562", "0.59378487", "0.5908836", "0.58577305", "0.5829", "0.5779024", "0.57781875", "0.576342", "0.5743478", ...
0.5636583
28
to get the expanded query
String getExpandedQuery(int parameterX, String originalQuery) { getOriginalTerms(originalQuery); String [] terms = getTopX(parameterX, originalQuery); StringBuffer strBuffer = new StringBuffer(originalQuery); if (terms != null) { // important, for indri return no true feedback for (String phrase : terms) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Query advancedQuery() \n {\n return null;\n }", "IQuery getQuery();", "public String getExpandedQuery(String query) {\n StringBuilder expandedQuery = new StringBuilder(query);\n\n Tokenizer tkn = new SimpleTokenizer();\n tkn.tokenize(query, \"[a-zA-Z]{3,}\", false, true);\n\n ...
[ "0.67868084", "0.6523166", "0.64025533", "0.63237154", "0.625472", "0.6254145", "0.6245048", "0.62304664", "0.6221328", "0.6214676", "0.6209182", "0.61895543", "0.61796564", "0.61391056", "0.6093393", "0.6091649", "0.6091649", "0.60883987", "0.60839283", "0.6034218", "0.60273...
0.67069834
1
to get the top X terms array
private String [] getTopX(int parameterX, String originalQuery) { getScoreMap(); if (scoreMap.isEmpty()) { // important, for indri return no true feedback System.out.println(qryId); return null; } /*for (Map.Entry<Double, List<String>> entry : scoreMap.entrySet()) { System.out.println(entry.getKey()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String[][] getTopWords();", "private Artist[] getTop10(List<User> users){\n\t\tArtist[] top=new Artist[10];\n\t\tHashMap<Artist, Integer> rank=new HashMap<Artist,Integer>();\n\t\tfor(User u:users) {\n\t\t\tfor(int i=0;i<u.artists.size();i++) {\n\t\t\t\tArtist a=u.artists.get(i);\n\t\t\t\tInteger ...
[ "0.6823772", "0.6684247", "0.66650134", "0.64407617", "0.64383084", "0.6232399", "0.62127316", "0.62089825", "0.62055653", "0.61885023", "0.6185214", "0.609429", "0.6052148", "0.59697855", "0.5947127", "0.594246", "0.5930898", "0.5920791", "0.5908764", "0.59077775", "0.588930...
0.6285754
5
to get the score map (which is the scores of all the terms in dr) Map.Entry:
private Map<Double, List<String>> getScoreMap() { //dfMap = new HashMap<String, Integer>(); for (Map.Entry<String, FreqAndLists> entry: map.entrySet()) { String term = entry.getKey(); if (originalTerms.contains(term)) { // expanded terms should not contain original terms continue; } double total...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n ...
[ "0.62557685", "0.6072993", "0.6024586", "0.60066736", "0.5919061", "0.59132266", "0.5815316", "0.58142376", "0.5793258", "0.56386024", "0.5628839", "0.5606558", "0.5606279", "0.5565121", "0.5563121", "0.5529411", "0.55277336", "0.5524562", "0.54826677", "0.548181", "0.5442236...
0.7760866
0
sortEvents Sorts the array of events stored.
public void sortEvents() { Collections.sort(events); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void sortEvents(){\n if(events.size()>0){\n Comparator<Event> comp = new Comparator<Event>(){\n public int compare(Event e1, Event e2){\n if(e1.getEventStartTime().before(e2.getEventStartTime())){\n return -1;\n }\n ...
[ "0.7876744", "0.7630809", "0.74779916", "0.7344958", "0.7226889", "0.7155182", "0.6745985", "0.64225817", "0.6241028", "0.6203561", "0.61837894", "0.6085469", "0.60784495", "0.60436195", "0.5874604", "0.5860217", "0.5830139", "0.5802193", "0.5785859", "0.5744504", "0.57328814...
0.8364799
0
TODO add a menu where users can choose to add multiple events before quitting. to be placed where we will sorting function will be. calcGCD Calculates the Great Circle Distance to the next event, if it exists unless GEO is blank, or the date difference is too great
public void calcGCD() { // if there are at least two events in the list if (events.size() >= 2) { //for each event until the event before the last for (int i = 0; i < events.size() - 1; i++) { String date1 = events.get(i).getVal("DTEND"); String date2 = events.get(i+1).getVal("DTSTART"); i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void compute() {\n\n this.jddPtsInflexion.clear();\n ILineString lsInitialee = this.geom;\n\n ILineString lsInitiale = Operateurs.resampling(lsInitialee, 1);\n ILineString lsLisse = GaussianFilter.gaussianFilter(lsInitiale, 5, 1);\n\n double sumOfDistances = 0;\n double length = 70;// 200 ...
[ "0.5173448", "0.5154702", "0.50616837", "0.50032103", "0.5001069", "0.49920014", "0.49623042", "0.48367783", "0.4828035", "0.48193803", "0.4808749", "0.47941995", "0.4783479", "0.47828826", "0.4778787", "0.47706422", "0.47665426", "0.47632307", "0.4757944", "0.4741441", "0.47...
0.7952855
0
Returns true if the metadata should be handled by this object.
public boolean isGucci(EntityType type, Metadata metadata) { if (!hasHandler()) return false; if (hasType() && (filterFamily ? !type.isOrHasParent(filterType) : !filterType.is(type))) { return false; } return !hasIndex() || metadata.getId() == filterIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public boolean hasMetadata() {\n return metadata_ != null;\n }", "@java.lang.Override\n public boolean hasMetadata() {\n return metadata_ != null;\n }", "@java.lang.Override\n public boolean hasMetadata() {\n return metadata_ != null;\n }", "boolean hasMetadata();", "bo...
[ "0.72735167", "0.72735167", "0.72735167", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", "0.7229772", ...
0.0
-1
/ uri : /artist/track
private Cursor queryTrack(Uri uri, String[] projection, String selection, String[] selArgs) { List<String> segments = uri.getPathSegments(); String track = segments.get(segments.size() - 1); String artist = segments.get(segments.size() - 2); Cursor c = readDb.query(TrackTable.TABLE_NAME,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getArtURL(String song, String artist, String album) {\n Uri.Builder builder = new Uri.Builder()\n .scheme(\"http\")\n .authority(\"album-art-engine.herokuapp.com\")\n .appendPath(\"getAA\");\n\n /* Check for not null parameters */\n ...
[ "0.62669325", "0.61875707", "0.6095245", "0.59451807", "0.5904743", "0.5863698", "0.5860518", "0.58056617", "0.5794957", "0.57843065", "0.56368333", "0.5632626", "0.56206185", "0.56206185", "0.55555314", "0.5544168", "0.55409944", "0.5532968", "0.55322343", "0.55310625", "0.5...
0.5546415
15
get table text cell settings
@Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { DefaultTableCellRenderer baseRenderer = (DefaultTableCellRenderer) table.getDefaultRenderer(String.class); JLabel baseComp = (JLabel) baseRend...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCellText(){return cellText;}", "public String fullCellText();", "private TableCell getTextWrappingCell(){\r\n\t\tTableCell cell = new TableCell<>();\r\n Text text = new Text();\r\n text.setStyle(\"-fx-fill: -fx-text-background-color;\");\r\n cell.setGraphic(text);\r\n ...
[ "0.66144186", "0.6165776", "0.6063893", "0.6051145", "0.58305824", "0.56675124", "0.5633258", "0.55360276", "0.5520767", "0.5480506", "0.546462", "0.54615074", "0.5359026", "0.53575206", "0.5302908", "0.52410924", "0.5239254", "0.52302694", "0.5216711", "0.52120894", "0.52120...
0.0
-1
randomize timeouts to fix calls waves slow server can creates queue and moves all clients to same call window
public static int randomizeTimout(int minTimout) { int increase = (int) (minTimout * REFRESH_TIMEOUTS_INCREASE_FACTOR); return minTimout + RandomUtil.nextInt(increase); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int maxTimeout() { return 15*1000*1000; }", "private static void timeout(String user, int time) { sendMessage(\"/timeout \" + user + \" \" + time); }", "public void testSapServerTimeouts() {\n Intent sapDisconnectIntent = new Intent(SapServer.SAP_DISCONNECT_ACTION);\n sapDisconnectInten...
[ "0.6109813", "0.5886368", "0.5853408", "0.5852056", "0.58307534", "0.57918626", "0.57427764", "0.57201666", "0.5680268", "0.566745", "0.56525195", "0.5630165", "0.5621006", "0.5614228", "0.5609701", "0.56041354", "0.55818117", "0.55723226", "0.5569633", "0.5564019", "0.554824...
0.56179905
13
Creates new form TablesPanel
public TablesPanel() { tableModel = new TablesTableModel(); matchesModel = new MatchesTableModel(); gameChooser = new GameChooser(); initComponents(); // tableModel.setSession(session); // formater // change default just now from 60 to 30 secs ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupPanel(String selectedTable)\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tthis.add(queryButton);\n\t\tint spacing = 50;\n\t\t\n\t\tString [] columns = baseController.getDataController().getDatabaseColumnNames(selectedTable);\n\t\t\n\t\tfor(int spot = 0; spot < columns.length; spot++)\n\t\t{\n\t\t\ti...
[ "0.7199888", "0.7176877", "0.6965658", "0.6924832", "0.6910728", "0.6858227", "0.6844021", "0.67628807", "0.67475814", "0.67263794", "0.66846985", "0.6679858", "0.6574559", "0.65680444", "0.6560199", "0.6529623", "0.65281147", "0.64997417", "0.6492237", "0.64793", "0.647697",...
0.6392349
31
special sort for created and seat column
@Override public void toggleSortOrder(int column) { if (column == TablesTableModel.COLUMN_CREATED || column == TablesTableModel.COLUMN_SEATS) { List<? extends SortKey> sortKeys = getSortKeys(); if (sortKeys.size() == 2) { // cle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getSortColumn();", "public void sortCompetitors(){\n\t\t}", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "@Override\r\n\tpubli...
[ "0.6439513", "0.6191104", "0.6146588", "0.6075003", "0.6036012", "0.60206693", "0.598729", "0.5959095", "0.589672", "0.58559537", "0.58551234", "0.57898676", "0.57753175", "0.5767599", "0.5754799", "0.5754012", "0.57470864", "0.574482", "0.57382137", "0.5729855", "0.5725602",...
0.65259105
0
save divider locations and divider saveDividerLocations
private void saveDividerLocations() { GuiDisplayUtil.saveCurrentBoundsToPrefs(); GuiDisplayUtil.saveDividerLocationToPrefs(KEY_TABLES_DIVIDER_LOCATION_1, this.jSplitPane1.getDividerLocation()); GuiDisplayUtil.saveDividerLocationToPrefs(KEY_TABLES_DIVIDER_LOCATION_2, this.jSplitPaneTables.getDivi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void setDividerLocation(JSplitPane jc, int location);", "public abstract int getDividerLocation(JSplitPane jc);", "protected String getDividerLocationProperty() {\n return SPLIT_DIVIDER_LOCATION_PROPERTY;\n }", "public abstract int getMaximumDividerLocation(JSplitPane jc);", "priv...
[ "0.662286", "0.6199823", "0.572911", "0.5392848", "0.52390724", "0.52190596", "0.5214762", "0.51924634", "0.5061163", "0.50493693", "0.49688745", "0.49508393", "0.49256015", "0.491746", "0.49121892", "0.4900793", "0.48902866", "0.48703575", "0.48602593", "0.47910422", "0.4759...
0.84706503
0
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() { java.awt.GridBagConstraints gridBagConstraints; jPanelTop = new javax.swing.JPanel(); btnNewTable = new javax.swing.JButton(); ...
{ "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.73192346", "0.7290526", "0.7290526", "0.7290526", "0.7285891", "0.72480357", "0.7213616", "0.7207808", "0.71955067", "0.71891475", "0.71844363", "0.7159038", "0.71474695", "0.7092269", "0.7079923", "0.70560205", "0.69864315", "0.697697", "0.69552195", "0.6953691", "0.69458...
0.0
-1
Read match making record Service Name MatchMaking Service Operation Read
public void read(IServerCallback callback) { ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.READ, null, callback); _client.sendRequest(sc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testgetMatch() throws java.lang.Exception{\n\n /* org.seadva.matchmaker.webservice.MatchMakerServiceStub stub =\n new org.seadva.matchmaker.webservice.MatchMakerServiceStub();//the default implementation should point to the right endpoint\n\n org.seadv...
[ "0.58192986", "0.5622878", "0.5405761", "0.5329796", "0.5323456", "0.52925664", "0.5281875", "0.52588534", "0.5208446", "0.5193498", "0.5180284", "0.51535124", "0.50380063", "0.50372237", "0.49978438", "0.4978574", "0.49352297", "0.49215093", "0.4918967", "0.49153593", "0.489...
0.52054495
9
Sets player rating Service Name MatchMaking Service Operation SetPlayerRating
public void setPlayerRating(long playerRating, IServerCallback callback) { try { JSONObject data = new JSONObject(); data.put(Parameter.playerRating.name(), playerRating); ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.SET_PLAYER_RATING, data, call...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRating(int rating);", "public void setRating(java.lang.String rating) {\n this.rating = rating;\n }", "void updateRating(String name, String park, double rating);", "public void setRating(int rating) {\r\n this.rating = rating;\r\n }", "public void setRating(int rating)\n...
[ "0.61968213", "0.6164926", "0.61412406", "0.61053383", "0.6087742", "0.6081406", "0.6049209", "0.6033478", "0.5922828", "0.59197545", "0.59083855", "0.5865583", "0.5848806", "0.5836783", "0.57371604", "0.5655941", "0.5603109", "0.55860984", "0.55709624", "0.55678445", "0.5562...
0.68256366
0
Resets player rating Service Name MatchMaking Service Operation ResetPlayerRating
public void resetPlayerRating(IServerCallback callback) { ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.RESET_PLAYER_RATING, null, callback); _client.sendRequest(sc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void reset() {\n updateDice(1, 1);\n playerCurrentScore = 0;\n playerScore = 0;\n updateScore();\n notifyPlayer(\"\");\n game.init();\n }", "public void resetPlayer() {\n\t\tthis.carrotCards = 65;\n\t\tthis.playerSpace = 0;\n\n\t}", "public voi...
[ "0.6190036", "0.6084013", "0.6003617", "0.59881717", "0.5808612", "0.5804607", "0.578542", "0.57828295", "0.5768731", "0.5764315", "0.57365406", "0.57285124", "0.5718293", "0.57127273", "0.5679754", "0.56461614", "0.5643762", "0.5632755", "0.55982006", "0.55931664", "0.556129...
0.7133561
0
Increments player rating Service Name MatchMaking Service Operation IncrementPlayerRating
public void incrementPlayerRating(long increment, IServerCallback callback) { try { JSONObject data = new JSONObject(); data.put(Parameter.playerRating.name(), increment); ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.INCREMENT_PLAYER_RATING, data,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int incrementScore(int player) {\n switch (player) {\n case PLAYER_A:\n return ++scoreA;\n case PLAYER_B:\n return ++scoreB;\n }\n return -1;\n }", "@Override\r\n\tpublic void updateDriverRate(int score, String driverID) {\n\t\t\r...
[ "0.6088991", "0.6010545", "0.5769688", "0.57687455", "0.5757044", "0.57513607", "0.5645901", "0.56376696", "0.56104755", "0.55860263", "0.5585466", "0.5561647", "0.55603385", "0.55456924", "0.5542347", "0.55420077", "0.55132174", "0.5495448", "0.5484301", "0.54801255", "0.547...
0.6818086
0
Decrements player rating Service Name MatchMaking Service Operation DecrementPlayerRating
public void decrementPlayerRating(long decrement, IServerCallback callback) { try { JSONObject data = new JSONObject(); data.put(Parameter.playerRating.name(), decrement); ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.DECREMENT_PLAYER_RATING, data,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void decrementTotalScore(){\n totalScore -= 1;\n }", "private void decrementOpponentRechargeTimes()\n\t{\n\t\tfor (Map.Entry<Skills, Integer> pair : rechargingOpponentSkills.entrySet())\n\t\t{\n\t\t\tint val = pair.getValue();\n\t\t\tSkills s = pair.getKey();\n\t\t\t\n\t\t\tif (val > 0)\n\t\t\t{...
[ "0.5924193", "0.5761322", "0.5723752", "0.56611484", "0.5597498", "0.5451684", "0.5430325", "0.5418956", "0.53842586", "0.53824717", "0.5379169", "0.5344065", "0.525947", "0.5254858", "0.52450955", "0.52214587", "0.52202725", "0.51779294", "0.5163615", "0.51621896", "0.515517...
0.6414636
0
Turns shield on Service Name MatchMaking Service Operation ShieldOn
public void turnShieldOn(IServerCallback callback) { ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.SHIELD_ON, null, callback); _client.sendRequest(sc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setServiceName(java.lang.String param){\n localServiceNameTracker = true;\n \n this.localServiceName=param;\n \n\n }", "public void ...
[ "0.5930995", "0.5806408", "0.56790274", "0.56646585", "0.56577325", "0.560366", "0.552053", "0.5398541", "0.53581816", "0.5283928", "0.525061", "0.5219682", "0.520704", "0.51643324", "0.51515186", "0.5148552", "0.51476467", "0.51431", "0.5136196", "0.5132085", "0.5126068", ...
0.6227448
0
Turns shield on for the specified number of minutes Service Name MatchMaking Service Operation ShieldOnFor
public void turnShieldOnFor(int minutes, IServerCallback callback) { try { JSONObject data = new JSONObject(); data.put(Parameter.minutes.name(), minutes); ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.SHIELD_ON_FOR, data, callback); _c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void turnShieldOn(IServerCallback callback) {\n ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.SHIELD_ON, null, callback);\n _client.sendRequest(sc);\n }", "public void incrementShieldOnFor(int minutes, IServerCallback callback) {\n try {\n JSON...
[ "0.57882506", "0.5706018", "0.5694959", "0.5316889", "0.52253693", "0.51754135", "0.51264095", "0.50065005", "0.49760282", "0.4915859", "0.4905697", "0.4905447", "0.48836562", "0.48679945", "0.48391604", "0.48033476", "0.47515872", "0.4732524", "0.4716249", "0.4707712", "0.46...
0.6396062
0
Increases the shield on time by specified number of minutes Service Name MatchMaking Service Operation ShieldOnFor
public void incrementShieldOnFor(int minutes, IServerCallback callback) { try { JSONObject data = new JSONObject(); data.put(Parameter.minutes.name(), minutes); ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.INCREMENT_SHIELD_ON_FOR, data, callback);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void turnShieldOnFor(int minutes, IServerCallback callback) {\n try {\n JSONObject data = new JSONObject();\n data.put(Parameter.minutes.name(), minutes);\n\n ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.SHIELD_ON_FOR, data, callback);\n ...
[ "0.60755336", "0.5208785", "0.5112562", "0.51019895", "0.5096504", "0.50628847", "0.50099427", "0.5005469", "0.49492875", "0.49474096", "0.49440503", "0.49307927", "0.48943153", "0.4880979", "0.48748556", "0.48716673", "0.4864741", "0.48607147", "0.48248675", "0.48143882", "0...
0.5978332
1
Turns shield off Service Name MatchMaking Service Operation ShieldOff
public void turnShieldOff(IServerCallback callback) { ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.SHIELD_OFF, null, callback); _client.sendRequest(sc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void turnOff() throws ActorServiceCallException;", "public void turnOff(){\n vendingMachine = null;\n Logger.getGlobal().log(Level.INFO,\" Turning Off...\");\n }", "public void disable()\n {\n // Verify service is connected\n assertService();\n \n try {\n ...
[ "0.6641559", "0.6115379", "0.60282767", "0.58920395", "0.58826697", "0.57557577", "0.5741755", "0.57279444", "0.5647396", "0.55979246", "0.5584524", "0.55488807", "0.548046", "0.5473377", "0.544698", "0.5425544", "0.5415947", "0.54103154", "0.5405968", "0.54026", "0.5397326",...
0.66396964
1
Gets the shield expiry for the given player id. Passing in a null player id will return the shield expiry for the current player. The value returned is the time in UTC millis when the shield will expire. Service Name MatchMaking Service Operation GetShieldExpiry
public void getShieldExpiry(String playerId, IServerCallback callback) { try { JSONObject data = new JSONObject(); if (StringUtil.IsOptionalParameterValid(playerId)) { data.put(Parameter.playerId.name(), playerId); } ServerCall sc = new ServerCal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getExpiry();", "String getSpecifiedExpiry();", "String getExpiry();", "int getExpiryTimeSecs();", "public int getExpiry()\n {\n return expiry;\n }", "public Integer getExpiry() {\n return expiry;\n }", "public long getExpiry() {\n return this.expiry;\n }", ...
[ "0.5741126", "0.55484754", "0.5540396", "0.53349096", "0.53339773", "0.529408", "0.52242863", "0.5222602", "0.52069414", "0.51475483", "0.51096773", "0.5107636", "0.506256", "0.5025645", "0.502538", "0.5025061", "0.49966046", "0.4988725", "0.49856907", "0.49615243", "0.492069...
0.80426764
0
Finds matchmaking enabled players Service Name MatchMaking Service Operation FIND_PLAYERS
public void findPlayers(long rangeDelta, long numMatches, IServerCallback callback) { findPlayersWithAttributes(rangeDelta, numMatches, null, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "pb4server.FindAllPlayerAskReq getFindAllPlayerAskReq();", "List<Player> findAllPlayers();", "private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }", "@Override\r\n\tpublic ArrayList<...
[ "0.6121262", "0.569853", "0.5689499", "0.5688179", "0.56336284", "0.55844426", "0.5561767", "0.55064034", "0.54910344", "0.5482656", "0.546506", "0.54131764", "0.5400362", "0.5379938", "0.5361703", "0.5338781", "0.5307407", "0.5305546", "0.52889884", "0.5255522", "0.5254261",...
0.5242789
21
Finds matchmaking enabled players with additional attributes Service Name MatchMaking Service Operation FIND_PLAYERS
public void findPlayersWithAttributes(long rangeDelta, long numMatches, String jsonAttributes, IServerCallback callback) { try { JSONObject data = new JSONObject(); data.put(Parameter.rangeDelta.name(), rangeDelta); data.put(Parameter.numMatches.name(), numMatches); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "pb4server.FindAllPlayerAskReq getFindAllPlayerAskReq();", "List<Player> findAllPlayers();", "public void findPlayersWithAttributesUsingFilter(long rangeDelta, long numMatches, String jsonAttributes, String jsonExtraParms, IServerCallback callback) {\n try {\n JSONObject data = new JSONObject(...
[ "0.60353756", "0.5851072", "0.57069635", "0.56849265", "0.56816787", "0.56672686", "0.56184614", "0.54325944", "0.54302126", "0.5427641", "0.54234946", "0.5414818", "0.5409377", "0.5397654", "0.53941375", "0.53151023", "0.5279587", "0.5279392", "0.52781016", "0.5268365", "0.5...
0.5871134
1
Finds matchmaking enabled players using a cloud code filter Service Name MatchMaking Service Operation FIND_PLAYERS_USING_FILTER
public void findPlayersUsingFilter(long rangeDelta, long numMatches, String jsonExtraParms, IServerCallback callback) { findPlayersWithAttributesUsingFilter(rangeDelta, numMatches, null, jsonExtraParms, callback); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void findPlayersWithAttributesUsingFilter(long rangeDelta, long numMatches, String jsonAttributes, String jsonExtraParms, IServerCallback callback) {\n try {\n JSONObject data = new JSONObject();\n data.put(Parameter.rangeDelta.name(), rangeDelta);\n data.put(Paramete...
[ "0.59540135", "0.549049", "0.54262066", "0.5384828", "0.5383011", "0.53809077", "0.5296124", "0.5196272", "0.5193746", "0.51794684", "0.5159702", "0.5157844", "0.5157033", "0.51003706", "0.50982624", "0.5087062", "0.50511026", "0.5050565", "0.50463295", "0.50410193", "0.50154...
0.5885129
1
Finds matchmaking enabled players using a cloud code filter and additional attributes Service Name MatchMaking Service Operation FIND_PLAYERS_USING_FILTER
public void findPlayersWithAttributesUsingFilter(long rangeDelta, long numMatches, String jsonAttributes, String jsonExtraParms, IServerCallback callback) { try { JSONObject data = new JSONObject(); data.put(Parameter.rangeDelta.name(), rangeDelta); data.put(Parameter.numMatc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void findPlayersUsingFilter(long rangeDelta, long numMatches, String jsonExtraParms, IServerCallback callback) {\n findPlayersWithAttributesUsingFilter(rangeDelta, numMatches, null, jsonExtraParms, callback);\n }", "public void findPlayersWithAttributes(long rangeDelta, long numMatches, String j...
[ "0.5943058", "0.5746359", "0.5257665", "0.52494526", "0.5243465", "0.5229197", "0.51896906", "0.5106788", "0.507593", "0.5053377", "0.5044634", "0.50427914", "0.4980704", "0.49441803", "0.49305552", "0.49257743", "0.4899177", "0.48936808", "0.48548588", "0.48486778", "0.48263...
0.6400447
0
Enables Match Making for the Player Service Name MatchMaking Service Operation EnableMatchMaking
public void enableMatchMaking(IServerCallback callback) { ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.ENABLE_FOR_MATCH, null, callback); _client.sendRequest(sc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void turnOn() throws ActorServiceCallException;", "private void startMatch() {\n game = new Match(players.get(0), players.get(1), \"Nueva Partida\");\n showMatch();\n state = 1;\n }", "@Override\n public void action() {\n System.out.println(\"Matchmaker Behaviour\");\n ...
[ "0.54529095", "0.54503787", "0.5408795", "0.5310696", "0.5305889", "0.5304529", "0.5237116", "0.52273357", "0.51922363", "0.5186863", "0.51484776", "0.51344615", "0.5108402", "0.50946593", "0.50755674", "0.50749075", "0.50510293", "0.5039258", "0.50382453", "0.5036906", "0.50...
0.740215
0
Disables Match Making for the Player Service Name MatchMaking Service Operation EnableMatchMaking
public void disableMatchMaking(IServerCallback callback) { ServerCall sc = new ServerCall(ServiceName.matchMaking, ServiceOperation.DISABLE_FOR_MATCH, null, callback); _client.sendRequest(sc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stopMatch() {\n GovernThread game = GovernThread.getInstance();\n if (game != null) {\n game.emergencyStopMatch();\n }\n beginMatchButton.setEnabled(false);\n resetButton.setEnabled(true);\n switcherButton.setEnabled(true);\n stopMatchButton.s...
[ "0.66728425", "0.61301637", "0.5918488", "0.5850301", "0.57885766", "0.5698673", "0.5631117", "0.5602863", "0.56022555", "0.5601166", "0.55716693", "0.55438983", "0.55438983", "0.55247855", "0.55120665", "0.5488793", "0.5463702", "0.53832936", "0.5374012", "0.53716743", "0.53...
0.73647785
0
tport public listSize [size]
@Override public void run(String[] args, Player player) { if (args.length == 2) { sendInfoTranslation(player, "tport.command.public.listSize.succeeded", getPublicTPortSize()); } else if (args.length == 3) { if (!emptySize.hasPermissionToRun(player, true)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setListSize(int value) {\n this.listSize = value;\n }", "int getListSize(int list) {\n\t\treturn m_lists.getField(list, 4);\n\t}", "public BubSortList() {\n\t\tray = new int[MAXSIZE];\n\t\tnowLength = 0;\n\t}", "OrderedIntList(int size)\n\t{\n\t\tdata = new int[size];\n\t\tcount = 0;\n\...
[ "0.6776555", "0.6651873", "0.64110154", "0.62921405", "0.6091834", "0.60234576", "0.60058266", "0.5987905", "0.59802556", "0.59212327", "0.5899865", "0.5876585", "0.5862329", "0.5846168", "0.58447194", "0.58154404", "0.58133954", "0.5808055", "0.5748184", "0.5697371", "0.5686...
0.0
-1
Constructs a prototypical Event.
public YahooWeatherEvent(Object source) { super(source); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Event createEvent();", "Event createEvent();", "BasicEvent createBasicEvent();", "public Event() {}", "BasicEvents createBasicEvents();", "public Event() {\r\n\r\n\t}", "public\n CreateEvent()\n {}", "public Event() {\n\t}", "public Event(){\n \n }", "public Event(){\n\n }", "public ...
[ "0.76908594", "0.76908594", "0.75281155", "0.7197754", "0.7001196", "0.695871", "0.6946532", "0.69160366", "0.6910357", "0.68885505", "0.6885849", "0.68744165", "0.68744165", "0.6871053", "0.67088133", "0.6532806", "0.652504", "0.65150064", "0.6464161", "0.640194", "0.6342035...
0.0
-1
set the weather information
public void setResult_Weather_Information(YahooWeatherInformation info){ this.Result_Weather_Information=info; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWeather(String W){\n weatherID = W ;\n }", "private void setWeather(JSONArray weather) throws JSONException {\n TextView mainWeatherTxtView = findViewById(R.id.mainWeatherTxtView);\n mainWeatherTxtView.setText((weather.getJSONObject(0)).get(\"main\").toString());\n\n ...
[ "0.7273225", "0.6784595", "0.67596847", "0.6711843", "0.6616473", "0.65677255", "0.65622044", "0.6530893", "0.6505943", "0.64304185", "0.63240725", "0.6263451", "0.62589884", "0.6247843", "0.6244097", "0.6229311", "0.61858904", "0.61261207", "0.6118549", "0.6098504", "0.60949...
0.7151819
1
get the result information
public YahooWeatherInformation getResult_Weather_Information(){ return this.Result_Weather_Information; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getResult();", "public String getResult();", "public String getResult();", "Result getResult();", "java.lang.String getResult();", "public String getResult()\r\n\t{\r\n\t\treturn result;\r\n\t}", "public Result getResults()\r\n {\r\n return result;\r\n }", "public Result ge...
[ "0.71855193", "0.71855193", "0.71855193", "0.71761066", "0.7053783", "0.69802576", "0.68108124", "0.6802656", "0.67900115", "0.6779492", "0.67787117", "0.6767872", "0.6767872", "0.6767201", "0.6765212", "0.6765212", "0.6722415", "0.6722415", "0.6722415", "0.6710636", "0.67071...
0.0
-1
Creates a new AsynchronousPIDSubsystem.
public AsynchronousPIDSubsystem(PIDController controller) { requireNonNull(controller); m_controller = controller; m_runner = new AsynchronousControllerRunner(m_controller, this::getReference, this::getMeasurement, this::useOutput); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PnuematicSubsystem() {\n\n }", "Subprocess createSubprocess();", "public AsyncService() {\n super(2, 2);\n }", "public AsynchronousProcess(final Process process) {\n super();\n this.process = process;\n processWrapper = new PriTh(process, this);\n }", "private String createPID()...
[ "0.58262104", "0.56590706", "0.53454006", "0.5322675", "0.5093542", "0.49870375", "0.4898836", "0.48236296", "0.47830608", "0.4738381", "0.47354275", "0.4631452", "0.46228883", "0.4622036", "0.4622036", "0.4622036", "0.45889056", "0.4582774", "0.4528266", "0.4525893", "0.4520...
0.6164869
0
Uses the output from the PIDController. Should be synchronized to remain threadsafe.
public abstract void useOutput(double output);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void usePIDOutput(double output) {\n liftmotor.pidWrite(output);\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=OUTPUT\n }", "@Override\n\tprotected void usePIDOutput(double output) {\n\t\tarm.set(output);\n\t}", "protected void usePIDOutput(double output) {\n\t...
[ "0.70379436", "0.69610375", "0.69058", "0.66330385", "0.65030205", "0.6349127", "0.62621176", "0.6202339", "0.6064327", "0.6063382", "0.6049217", "0.60033596", "0.59646404", "0.5935429", "0.58598775", "0.5859736", "0.5833654", "0.5825233", "0.5768003", "0.57621497", "0.572638...
0.54009783
39
Returns the reference(setpoint) used by the PIDController. Should be synchronized to remain threadsafe.
public abstract double getReference();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point getReferencePoint(){\n return referencePoint;\n }", "public Vec4 getReferencePoint()\n {\n return this.currentData.getReferencePoint();\n }", "public double getSetpoint() {\n return getController().getSetpoint();\n }", "public double GetSetpoint() {\n\t\treturn msc.GetSetpoi...
[ "0.67244893", "0.6420872", "0.63114667", "0.5830699", "0.5799511", "0.5796238", "0.5793347", "0.57634145", "0.5739442", "0.56994873", "0.5688672", "0.5638466", "0.5632624", "0.5620851", "0.55861753", "0.55851513", "0.55828094", "0.55743825", "0.5568527", "0.5557419", "0.55428...
0.0
-1
Returns the measurement of the process variable used by the PIDController. Should be synchronized to remain threadsafe.
public abstract double getMeasurement();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double pidGet () {\n return super.pidGet() % 360D;\n }", "protected double returnPIDInput() {\n\t\t\n ScraperBike.debugToTable(\"PIDInput\", RobotMap.shootEncoder.getRate()*60);\n \n return RobotMap.shootEncoder.getRate()*60;\n }", "public YangUInt32 getProcessPidValue(...
[ "0.6740631", "0.6322794", "0.62783104", "0.6270646", "0.61965036", "0.61855483", "0.6069011", "0.6020705", "0.6016611", "0.5933206", "0.58047", "0.5804222", "0.5770119", "0.5768712", "0.5760134", "0.574331", "0.57370013", "0.5727442", "0.5723279", "0.5693739", "0.56785995", ...
0.5351501
100
Enables the PID control. Resets the controller.
public void enable() { m_controller.reset(); m_runner.enable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enable() {\n\t\tm_enabled = true;\n\t\tm_controller.reset();\n\t}", "public void enable() {\n\t\tenabled = true;\n\t\t//System.out.println(\"Enabled Controller\");\n\t}", "@Override\n protected void execute() {\n armPID_SetZero.enable();\n }", "public void enableKillSwitch(){\n isClim...
[ "0.70692986", "0.66849375", "0.64775735", "0.64203024", "0.5956215", "0.593202", "0.59131056", "0.58918273", "0.5880904", "0.5875564", "0.58480006", "0.5845043", "0.58443993", "0.5831643", "0.5828875", "0.57963955", "0.5790478", "0.576944", "0.5732483", "0.5727864", "0.571340...
0.68400556
1
Disables the PID control. Sets the output to zero.
public void disable() { m_runner.disable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disable() {\r\n m_enabled = false;\r\n useOutput(0, 0);\r\n }", "public void disable() {\n\t\tm_enabled = false;\n\t\tuseOutput(0);\n\t}", "@Override\n protected void execute() {\n armPID_SetZero.enable();\n }", "void disablePWM();", "protected void end() {\n \tpid.disa...
[ "0.70058596", "0.6900374", "0.66967213", "0.640812", "0.6373106", "0.6296657", "0.629246", "0.61237156", "0.60789996", "0.60578346", "0.6039137", "0.6023889", "0.5990003", "0.5945469", "0.5905646", "0.5890067", "0.5830761", "0.5828715", "0.5827672", "0.5810664", "0.57935977",...
0.53043157
98
TODO Autogenerated method stub
@Override public int hashCode() { return super.hashCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean equals(Object obj) { return super.equals(obj); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String toString() { return super.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static Board3 createEntity(EntityManager em) { Board3 board3 = new Board3() .title(DEFAULT_TITLE) .contents(DEFAULT_CONTENTS) .createdDate(DEFAULT_CREATED_DATE); return board3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "protected abstract EntityBase createEntity() throws Exception;", "TestEntity buildEntity () {\n TestEn...
[ "0.77226716", "0.750445", "0.74874914", "0.7361726", "0.7314355", "0.7155933", "0.7155933", "0.7150344", "0.7149603", "0.7077518", "0.70167005", "0.6802822", "0.6751462", "0.67395633", "0.67395633", "0.6712353", "0.6681982", "0.66653734", "0.66409564", "0.6624674", "0.6623383...
0.0
-1
Create an updated entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static Board3 createUpdatedEntity(EntityManager em) { Board3 board3 = new Board3() .title(UPDATED_TITLE) .contents(UPDATED_CONTENTS) .createdDate(UPDATED_CREATED_DATE); return board3; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Student createUpdatedEntity(EntityManager em) {\n Student student = new Student()\n .firstName(UPDATED_FIRST_NAME)\n .middleName(UPDATED_MIDDLE_NAME)\n .lastName(UPDATED_LAST_NAME)\n .studentRegNumber(UPDATED_STUDENT_REG_NUMBER)\n .dateOfB...
[ "0.69451517", "0.6788456", "0.6788399", "0.6719122", "0.66941375", "0.66920644", "0.6663383", "0.6637166", "0.66222155", "0.6515608", "0.6510221", "0.64486396", "0.6424878", "0.64218825", "0.64217436", "0.64165294", "0.6412185", "0.6411173", "0.64052176", "0.6395039", "0.6391...
0.0
-1
Executes the search, and checks that the default entity is returned.
private void defaultBoard3ShouldBeFound(String filter) throws Exception { restBoard3MockMvc.perform(get("/api/board-3-s?sort=id,desc&" + filter)) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)) .andExpect(jsonPath("$.[*].id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public boolean performSearch();", "private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter....
[ "0.6002248", "0.599926", "0.5819772", "0.57409084", "0.5733542", "0.5717274", "0.56914985", "0.5643767", "0.5622619", "0.55546004", "0.5492257", "0.54534715", "0.54459614", "0.54414296", "0.54359335", "0.543068", "0.5399745", "0.5389067", "0.53806114", "0.5378959", "0.5367724...
0.0
-1
Executes the search, and checks that the default entity is not returned.
private void defaultBoard3ShouldNotBeFound(String filter) throws Exception { restBoard3MockMvc.perform(get("/api/board-3-s?sort=id,desc&" + filter)) .andExpect(status().isOk()) .andExpect(content().contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)) .andExpect(jsonPath("$").i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public boolean performSearch();", "private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter....
[ "0.601686", "0.6002167", "0.5994474", "0.5872058", "0.57970196", "0.57804906", "0.5770515", "0.5636761", "0.55757916", "0.5573412", "0.5554509", "0.5548558", "0.55403936", "0.55111706", "0.55065143", "0.5460818", "0.5422821", "0.5400522", "0.5346139", "0.5345745", "0.5341298"...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String str = "Lets go fishing!"; String str1 = str.replaceAll("[ ]", ""); System.out.println(str1); String str2 = "HVDV 786bh f73%7jf hj^&^hdjhd%"; String str3 = str2.replaceAll("[a-z A-Z0-9]", ""); System.out.println(str3 + " " + str3.length()); String a = "...
{ "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
Inheritence1 F=new Inheritence1(); F.add(); TODO Autogenerated method stub
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tInheritence a=new Inheritence();\r\n\t\t\r\n\t\t country();\r\n\tcity();\r\n\tage();\r\n\r\n\ta.flower();\t\r\n\tSystem.out.println(l);\r\n\tSystem.out.println(a.d);\r\n\r\n\t}", "public void addInheritanceRelation(InheritanceRelation relation);", "public void addI...
[ "0.61144525", "0.6059185", "0.6025742", "0.59751606", "0.59315556", "0.5922464", "0.5890717", "0.5884275", "0.5810608", "0.5800384", "0.5793439", "0.57373655", "0.57098323", "0.57003075", "0.5692443", "0.5683118", "0.568148", "0.56669253", "0.56612706", "0.56271255", "0.56071...
0.0
-1
This method returns all active automatic promotion codes along with their last modified timestamp. TODO Later the Promotion codes has to be replaced with Promotion IDs when new data model changes for AI is implemented.
public static Map<String,Timestamp> getAllAutomaticPromotionCodes(Connection conn) throws SQLException { Map<String,Timestamp> promoCodes = new HashMap<String,Timestamp>(); //TODO later the where clause need to be changed to point to ID column instead of Code. String query = getAllActiveAutomaticPromotionCodes.r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Promotion> getAllActivePromotions();", "@SuppressWarnings(\"rawtypes\")\n private List<AppliedPromotion> applyRemainingActivePromotions(List activePromotions, List<AppliedPromotion> orderAppliedPromotions) throws ClaimableException {\n\n RepositoryItem[] couponItems = null;\n if (orderAppliedP...
[ "0.65877086", "0.5764806", "0.5113552", "0.5097794", "0.49753514", "0.49572933", "0.48246726", "0.48065728", "0.4800185", "0.4796079", "0.47882402", "0.47792584", "0.47689253", "0.473488", "0.46892142", "0.4682242", "0.46572188", "0.46377885", "0.46362233", "0.46049026", "0.4...
0.68403274
0
Load Promotion for a given Promotion PK.
public static PromotionI loadPromotion(Connection conn, String promoId) throws SQLException { Promotion promo = null; //TODO later the where clause need to be changed to point to ID column instead of Code. PreparedStatement ps = conn.prepareStatement("SELECT * FROM CUST.PROMOTION_NEW where code = ?"); ps.setSt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SupplyPO load(Integer pk)\r\n\t{\r\n\t\ttry{\r\n\t\t\r\n\t\t\tSupplyDAO dao = new SupplyDAO();\r\n\t\t\treturn (SupplyPO)dao.loadObject(SupplyPO.class,pk);\r\n\t\t\t\r\n\t\t}\tcatch (Exception e){\r\n\t\t\r\n\t\t\tlog.error(e.toString());\r\n\t\t\treturn null;\r\n\t\t\t\r\n\t\t}\r\n\t}", "T load(PK id);",...
[ "0.6166159", "0.5656827", "0.54174024", "0.53204286", "0.5274729", "0.52268624", "0.5186197", "0.51530486", "0.51460755", "0.5014027", "0.50049627", "0.49669537", "0.49594918", "0.49444932", "0.49389476", "0.49381158", "0.49296534", "0.4875274", "0.48547596", "0.48534697", "0...
0.57927465
1
Load a redemption promotion
public static String getRedemptionPromotionId(Connection conn, String redemptionCode) throws SQLException { String promoId = null; //TODO later the select query need to be changed to return ID column instead of Code. PreparedStatement ps = conn.prepareStatement("SELECT code FROM CUST.PROMOTION_NEW where UPPER(re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPromotion(String promotion)\n {\n this.promotion = promotion;\n }", "public void setPromotion(Long promotion) {\n this.promotion = promotion;\n }", "public Promotion getPromotion() {\n return promotion;\n }", "public void deletePromo() {\n\t\tviewPromoPackage();\n\...
[ "0.61882216", "0.5760908", "0.53965896", "0.5316916", "0.53125805", "0.52996904", "0.5250821", "0.5132667", "0.5079899", "0.5061504", "0.50358295", "0.49239013", "0.4865903", "0.48433837", "0.48113987", "0.47942013", "0.47840023", "0.4773517", "0.47022313", "0.46972784", "0.4...
0.43122363
59
Load a redemption promotion
public static Integer getRedemptions(Connection conn, String promoId, Date requestedDate) throws SQLException { PreparedStatement ps = null; if(requestedDate != null) { ps = conn.prepareStatement(promoRedemptionsWithDlvDateSQL); } else { ps = conn.prepareStatement(promoRedemptionsWithNoDlvDateSQL); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPromotion(String promotion)\n {\n this.promotion = promotion;\n }", "public void setPromotion(Long promotion) {\n this.promotion = promotion;\n }", "public Promotion getPromotion() {\n return promotion;\n }", "public void deletePromo() {\n\t\tviewPromoPackage();\n\...
[ "0.61882216", "0.5760908", "0.53965896", "0.5316916", "0.53125805", "0.52996904", "0.5250821", "0.5132667", "0.5079899", "0.5061504", "0.50358295", "0.49239013", "0.4865903", "0.48433837", "0.48113987", "0.47942013", "0.47840023", "0.4773517", "0.47022313", "0.46972784", "0.4...
0.0
-1
Used to drive processing from the render, use this when you need the rendering to drive behavior or other calculations.
@Deprecated public interface FrameListener { /** * Called when a new frame shall be processed (by the logic) * Update objects position, behavior, animation etc based on the deltaTime. * Do not update any GL data to keep this thread-safe for GL. * * @param deltaT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void dynamicRendering();", "public void prerender() {\n }", "public void prerender() {\n }", "public void startRendering() {\n if (!justRendered) {\n justRendered = true;\n \n if (Flags.wireFrame) p.render_wireFrame();\n else p.render();\n }\n }", "public ...
[ "0.6768764", "0.671446", "0.671446", "0.6574251", "0.6433719", "0.6427559", "0.64143234", "0.6375444", "0.6352645", "0.6321387", "0.62844765", "0.62678033", "0.62131053", "0.61659247", "0.61608195", "0.61463803", "0.6144795", "0.6110096", "0.6087378", "0.608533", "0.6075863",...
0.0
-1
Called when a new frame shall be processed (by the logic) Update objects position, behavior, animation etc based on the deltaTime. Do not update any GL data to keep this threadsafe for GL.
public void processFrame(float deltaTime);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void update(float deltaTime) {\n\t\t// Set camera to origin with zoom 10\n\t\twindow.setRelativeTransform(Transform.I.scaled(10.0f));\n\t\tworld.update(deltaTime);\n\n\t\tint numberOfCollisions = contactListener.getEntities().size();\n\t\tif (numberOfCollisions > 0) {\n\t\t\tballGraphics.setFil...
[ "0.6714399", "0.66983384", "0.66626674", "0.66626674", "0.66626674", "0.6642406", "0.65593225", "0.65318227", "0.6501522", "0.6490769", "0.648489", "0.648357", "0.6464507", "0.64628446", "0.64454365", "0.6399857", "0.63885427", "0.63792104", "0.6356034", "0.6344468", "0.63298...
0.72033674
0