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
args mapfilename//set the file name to load if no map it loads blank track//follow the first bird in the list draw//draw data lines sparrownumber// pigeonnumber// hawknumber//
public static void main(String[] args) { mapName = ""; track = false; drawingDataLines = false; Log.getLog().setFilter(Log.NONE); int argindex = 0; while(argindex<args.length) { String arg = args[argindex]; if(arg.compareTo("-map")==0) { mapName = args[argindex+1]; argindex+=2; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadData() {\n String[] animalsListRaw = loadStrings(\"data/animalList.csv\");\n //String[] animalsListRaw = loadStrings(\"data/mythical.creatures.csv\");\n String[] animalList = getList(animalsListRaw);\n SearchQuery newSearch = new SearchQuery(animalList); \n allMaps = newSearch.getMap();\n \n ...
[ "0.62735283", "0.61406046", "0.60586786", "0.6007027", "0.59069526", "0.59030694", "0.58453786", "0.5804971", "0.5797796", "0.5766052", "0.57549644", "0.57418144", "0.57293195", "0.5683919", "0.56502753", "0.56272423", "0.5594923", "0.55887353", "0.55884236", "0.5583315", "0....
0.6597359
0
Action for 'NO' Button
public void onClick(DialogInterface dialog, int id) { dialog.cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}", "public void no() {\n\n\t\tno = new JButton(\"No\");\n\n\t\tno.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprevious = current;...
[ "0.80171525", "0.7585753", "0.7480166", "0.7228392", "0.6872744", "0.6833464", "0.6774446", "0.6667443", "0.6570705", "0.6534198", "0.6530623", "0.6509868", "0.64922786", "0.6374137", "0.6364834", "0.6361135", "0.62876844", "0.62660784", "0.6264709", "0.62499034", "0.62301147...
0.0
-1
Action for 'NO' Button
public void onClick(DialogInterface dialog, int id) { dialog.cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}", "public void no() {\n\n\t\tno = new JButton(\"No\");\n\n\t\tno.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprevious = current;...
[ "0.80171525", "0.7585753", "0.7480166", "0.7228392", "0.6872744", "0.6833464", "0.6774446", "0.6667443", "0.6570705", "0.6534198", "0.6530623", "0.6509868", "0.64922786", "0.6374137", "0.6364834", "0.6361135", "0.62876844", "0.62660784", "0.6264709", "0.62499034", "0.62301147...
0.0
-1
Action for 'NO' Button
public void onClick(DialogInterface dialog, int id) { dialog.cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}", "public void no() {\n\n\t\tno = new JButton(\"No\");\n\n\t\tno.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprevious = current;...
[ "0.80171525", "0.7585753", "0.7480166", "0.7228392", "0.6872744", "0.6833464", "0.6774446", "0.6667443", "0.6570705", "0.6534198", "0.6530623", "0.6509868", "0.64922786", "0.6374137", "0.6364834", "0.6361135", "0.62876844", "0.62660784", "0.6264709", "0.62499034", "0.62301147...
0.0
-1
Action for 'NO' Button
public void onClick(DialogInterface dialog, int id) { dialog.cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}", "public void no() {\n\n\t\tno = new JButton(\"No\");\n\n\t\tno.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprevious = current;...
[ "0.8016679", "0.7583356", "0.7479751", "0.7227294", "0.6871746", "0.68325585", "0.6774685", "0.6668149", "0.6571635", "0.6534731", "0.6531149", "0.65112185", "0.6491578", "0.63744885", "0.6366026", "0.6361411", "0.628921", "0.6265854", "0.6265429", "0.62507087", "0.6231551", ...
0.0
-1
Created by james on 14/9/15.
@Repository public interface UserRepo extends JpaRepository<User, Long> { public List<User> findByEmail(String email); public List<User> findByRole(String role); @Query(value="SELECT new com.harmeetsingh13.dtos.UserPermissionsDto(user.id, perm.id, user.name, user.email, perm.url, perm.permission) FROM " + "Us...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "public void method_4270() {}", "@Override\n public void perish() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}",...
[ "0.56528205", "0.5638197", "0.5636575", "0.56190884", "0.5606511", "0.56056315", "0.560087", "0.55784005", "0.5550791", "0.55479544", "0.55212426", "0.55146474", "0.5506544", "0.5502038", "0.54513705", "0.54513705", "0.5441704", "0.5416096", "0.54159224", "0.54030925", "0.540...
0.0
-1
Toast.makeText(context, "ripple clicked", //Toast.LENGTH_LONG).show(); / Intent i = new Intent(context, NewTabEventActivity.class); i.putExtra("position", position); String eventNamesArray[] = context.getResources().getStringArray(R.array.event_names_array);
@Override public void onComplete(RippleView rippleView) { Intent i = new Intent(context, MainTab.class); i.putExtra(context.getString(R.string.position), position); context.startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClick(DialogInterface dialog, int which) {\n String[] myResArray = getResources().getStringArray(R.array.themes);\n List<String> myResArrayList = Arrays.asList(myResArray);\n Intent intent = new Intent(getActivity(), LivestreamBroad...
[ "0.69554234", "0.63475025", "0.6292452", "0.62714696", "0.6155653", "0.6113391", "0.6106886", "0.6077149", "0.60093707", "0.59690636", "0.59284645", "0.59177536", "0.5910356", "0.5898368", "0.5858284", "0.58438", "0.58203113", "0.5819692", "0.58196896", "0.5818681", "0.581152...
0.64727545
1
Create a new state
public ControllerState(String stateString) { if (stateString == null) throw new IllegalArgumentException("Null state string"); this.stateString = stateString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void create( State state );", "StateType createStateType();", "public State(){}", "@Override\r\n public IObjectiveState createState(final Serializable staticState) {\r\n return new InternalState(this.m_func.createState(staticState));\r\n }", "IfaceState createState(int nlocal,IfaceSafetyStatus sts);",...
[ "0.8538369", "0.7393937", "0.7296307", "0.72710025", "0.72092116", "0.7118763", "0.7009286", "0.6974903", "0.6969525", "0.6947315", "0.6854114", "0.68307716", "0.681365", "0.67961276", "0.6770595", "0.67424214", "0.6734293", "0.6722289", "0.66585094", "0.66517335", "0.6611772...
0.0
-1
Get the state string
public String getStateString() { return stateString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getState();", "String getState();", "String getState();", "String getState();", "public String getStateString()\r\n\t{\r\n\t\treturn stateString;\r\n\t}", "public java.lang.String getState() {\r\n return state;\r\n }", "public java.lang.String getState() {\n return sta...
[ "0.87574226", "0.85556614", "0.85556614", "0.85556614", "0.8539578", "0.8330874", "0.83156073", "0.83156073", "0.8305101", "0.81574595", "0.8107628", "0.8083293", "0.80183464", "0.80153334", "0.79963017", "0.7904302", "0.79030645", "0.79001856", "0.79001856", "0.78925085", "0...
0.85946685
1
The persistence interface for the hotel service. Caching information and settings can be found in portal.properties
public interface HotelPersistence extends BasePersistence<Hotel> { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link HotelUtil} to access the hotel persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. */ /** * Re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PersistentDataStore() {\n datastore = DatastoreServiceFactory.getDatastoreService();\n }", "protected PersistenceStructureService getPersistenceStructureService() {\r\n return persistenceStructureService;\r\n }", "public interface DatosPublicacionSTLocalHome extends javax.ejb.EJBLocalHome ...
[ "0.57827246", "0.55962586", "0.55884904", "0.557811", "0.55646104", "0.5552143", "0.5479643", "0.54600465", "0.5449631", "0.5438081", "0.54296", "0.5428505", "0.54235774", "0.5415061", "0.5409673", "0.5407431", "0.53891814", "0.53843945", "0.538421", "0.5374482", "0.53700835"...
0.6107384
0
Returns the first hotel in the ordered set where uuid = &63;.
public com.Hotel.model.Hotel findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.Hotel.NoSuchHotelException, com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.Hotel.model.Hotel fetchByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public wsihash fetchByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByCom...
[ "0.6750296", "0.58709145", "0.57352626", "0.56453824", "0.56198055", "0.55836016", "0.556967", "0.5533279", "0.54440254", "0.53006256", "0.5267993", "0.52572733", "0.5249488", "0.5214664", "0.516674", "0.51666045", "0.5130599", "0.5128473", "0.5118235", "0.50935686", "0.50707...
0.68523103
0
Returns the first hotel in the ordered set where uuid = &63;.
public com.Hotel.model.Hotel fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.Hotel.model.Hotel findByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;", "public wsihash fetchByUuid_First(java.lang.String uuid,\n\t\tcom...
[ "0.68523103", "0.58709145", "0.57352626", "0.56453824", "0.56198055", "0.55836016", "0.556967", "0.5533279", "0.54440254", "0.53006256", "0.5267993", "0.52572733", "0.5249488", "0.5214664", "0.516674", "0.51666045", "0.5130599", "0.5128473", "0.5118235", "0.50935686", "0.5070...
0.6750296
1
Returns the last hotel in the ordered set where uuid = &63;.
public com.Hotel.model.Hotel findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.Hotel.NoSuchHotelException, com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.Hotel.model.Hotel fetchByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public wsihash fetchByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByCompa...
[ "0.69444746", "0.64181435", "0.6082692", "0.60059655", "0.5899702", "0.584184", "0.577957", "0.569008", "0.5680557", "0.5649236", "0.5479751", "0.54444665", "0.5441413", "0.5393129", "0.5352066", "0.53446704", "0.5279688", "0.5271355", "0.52562374", "0.5235171", "0.52348363",...
0.7111574
0
Returns the last hotel in the ordered set where uuid = &63;.
public com.Hotel.model.Hotel fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.Hotel.model.Hotel findByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;", "public wsihash fetchByUuid_Last(java.lang.String uuid,\n\t\tcom.l...
[ "0.711305", "0.6420331", "0.6084709", "0.60080695", "0.5902182", "0.58442605", "0.5781495", "0.56913424", "0.5680166", "0.56520075", "0.5481458", "0.544627", "0.5442601", "0.53949827", "0.53518754", "0.53465194", "0.5281701", "0.52726156", "0.52585036", "0.52368593", "0.52368...
0.6946448
1
Returns the hotels before and after the current hotel in the ordered set where uuid = &63;.
public com.Hotel.model.Hotel[] findByUuid_PrevAndNext(long hotelId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.Hotel.NoSuchHotelException, com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Location> getPreviousLocations();", "public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer[] findByUuid_PrevAndNext(\n long layerId, java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.e...
[ "0.5120966", "0.49411535", "0.4766296", "0.46166503", "0.4589731", "0.4562653", "0.45596686", "0.45516348", "0.44504187", "0.44060364", "0.43965572", "0.43472493", "0.43412268", "0.43283048", "0.43196872", "0.42996398", "0.42693603", "0.42622638", "0.42546186", "0.4252749", "...
0.6348289
0
Removes all the hotels where uuid = &63; from the database.
public void removeByUuid(java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeByUuid(String uuid);", "public void removeByUuid(String uuid);", "public void removeByUuid(String uuid);", "public void removeByUuid(java.lang.String uuid);", "public static void worldLocsRemove(UUID uuid) {\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tst.executeU...
[ "0.6291677", "0.6291677", "0.6291677", "0.62129444", "0.61928993", "0.6159114", "0.5720603", "0.5700471", "0.56456774", "0.56376475", "0.54002804", "0.54002804", "0.54002804", "0.54002804", "0.53519773", "0.5234642", "0.52312696", "0.52222836", "0.521875", "0.5192571", "0.517...
0.4947545
48
Returns the number of hotels where uuid = &63;.
public int countByUuid(java.lang.String uuid) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int countByUuid(String uuid);", "public int countByUuid(String uuid);", "public int countByUuid(String uuid);", "public int countByUuid(java.lang.String uuid);", "@Override\r\n\tpublic int countByUuid(String uuid) {\r\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_UUID;\r\n\r\n\t\tObject[] finder...
[ "0.7359687", "0.7359687", "0.7359687", "0.729551", "0.66732115", "0.65503025", "0.65435505", "0.65435505", "0.65435505", "0.65435505", "0.65299785", "0.6498628", "0.6498628", "0.61116356", "0.59621227", "0.5955101", "0.5867925", "0.5857139", "0.5857139", "0.5842075", "0.58337...
0.6461074
14
Returns all the hotels where name = &63;.
public java.util.List<com.Hotel.model.Hotel> findByname( java.lang.String name) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<Hotel> getByHotelName(String Name) {\n\t\tList<Hotel> newHotelList = new ArrayList<>();\r\n\t\tfor(Hotel Hotel : showHotelList())\r\n\t\t{\r\n\t\t\tif(Hotel.getHotelName().equals(Name))\r\n\t\t\t\tnewHotelList.add(Hotel);\r\n\t\t}\r\n\t\treturn newHotelList;\r\n\t}", "public ArrayList<...
[ "0.75052583", "0.65346074", "0.6195111", "0.6053121", "0.59853214", "0.59210664", "0.59158564", "0.5910619", "0.58460987", "0.5841385", "0.5802232", "0.5793141", "0.57684976", "0.57642543", "0.5751965", "0.5688433", "0.56845134", "0.5657778", "0.5657418", "0.56423306", "0.562...
0.68468714
1
Returns the first hotel in the ordered set where name = &63;.
public com.Hotel.model.Hotel findByname_First(java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.Hotel.NoSuchHotelException, com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<Hotel> getByHotelName(String Name) {\n\t\tList<Hotel> newHotelList = new ArrayList<>();\r\n\t\tfor(Hotel Hotel : showHotelList())\r\n\t\t{\r\n\t\t\tif(Hotel.getHotelName().equals(Name))\r\n\t\t\t\tnewHotelList.add(Hotel);\r\n\t\t}\r\n\t\treturn newHotelList;\r\n\t}", "@Override\r\n\tpu...
[ "0.6262221", "0.611033", "0.59959286", "0.59717435", "0.5886934", "0.5831933", "0.5822948", "0.5535157", "0.55270195", "0.55180293", "0.55007845", "0.54946", "0.5483882", "0.54671806", "0.5456379", "0.5452976", "0.54373497", "0.54180944", "0.539823", "0.53969425", "0.53903645...
0.6026059
2
Returns the first hotel in the ordered set where name = &63;.
public com.Hotel.model.Hotel fetchByname_First(java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<Hotel> getByHotelName(String Name) {\n\t\tList<Hotel> newHotelList = new ArrayList<>();\r\n\t\tfor(Hotel Hotel : showHotelList())\r\n\t\t{\r\n\t\t\tif(Hotel.getHotelName().equals(Name))\r\n\t\t\t\tnewHotelList.add(Hotel);\r\n\t\t}\r\n\t\treturn newHotelList;\r\n\t}", "@Override\r\n\tpu...
[ "0.6262221", "0.611033", "0.6026059", "0.59717435", "0.5886934", "0.5831933", "0.5822948", "0.5535157", "0.55270195", "0.55180293", "0.55007845", "0.54946", "0.5483882", "0.54671806", "0.5456379", "0.5452976", "0.54373497", "0.54180944", "0.539823", "0.53969425", "0.53903645"...
0.59959286
3
Returns the last hotel in the ordered set where name = &63;.
public com.Hotel.model.Hotel findByname_Last(java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.Hotel.NoSuchHotelException, com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.Hotel.model.Hotel fetchByname_Last(java.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic Legacydb fetchByName_Last(String name,\n\t\tOrderByComparator orderByComparator) th...
[ "0.6502635", "0.59843236", "0.5649817", "0.55578554", "0.55294794", "0.54970837", "0.54887193", "0.54660046", "0.5447745", "0.5444826", "0.542708", "0.5404107", "0.5382546", "0.53806955", "0.53500754", "0.53207636", "0.5292816", "0.52732813", "0.5268207", "0.5229641", "0.5229...
0.662868
0
Returns the last hotel in the ordered set where name = &63;.
public com.Hotel.model.Hotel fetchByname_Last(java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.Hotel.model.Hotel findByname_Last(java.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic Legacydb fetchByName_Last(String name,\n\t\tO...
[ "0.66289204", "0.598462", "0.5651495", "0.55574703", "0.5528785", "0.5495779", "0.54883295", "0.5466108", "0.544518", "0.5441826", "0.5428539", "0.5401506", "0.5383286", "0.53782743", "0.53501534", "0.53198504", "0.5289749", "0.52728665", "0.526951", "0.52280253", "0.52255094...
0.6503706
1
Returns the hotels before and after the current hotel in the ordered set where name = &63;.
public com.Hotel.model.Hotel[] findByname_PrevAndNext(long hotelId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.Hotel.NoSuchHotelException, com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Location> getPreviousLocations();", "public Iterable<Vertex> adjacentTo(String name) {\n Vertex v = getVertex(name);\n if (v == null) return EMPTY_SET;\n return mAdjList.get(getVertex(name));\n }", "@Override\r\n\tpublic List<Hotel> getByHotelName(String Name) {\n\t\tList<Ho...
[ "0.57647157", "0.5751379", "0.53712827", "0.48424268", "0.48179293", "0.47894156", "0.47866654", "0.47398865", "0.47383946", "0.47077918", "0.46167547", "0.45915806", "0.45871568", "0.45793557", "0.4548533", "0.45301682", "0.45226166", "0.45199633", "0.45198652", "0.45147747", ...
0.6333013
0
Removes all the hotels where name = &63; from the database.
public void removeByname(java.lang.String name) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void cleanWarps(String name, FlatDB warpsDB) {\n List<OwnedWarp> plWarps = warps.get(name);\n List<String> warpNames = new ArrayList<String>();\n for(OwnedWarp warp : plWarps)\n warpNames.add(warp.getName());\n for(Row row : warpsDB.getAll())\n if(!warpName...
[ "0.65210855", "0.63957345", "0.6186716", "0.57610554", "0.5580432", "0.5551882", "0.5540711", "0.55396074", "0.5530932", "0.5482711", "0.5468323", "0.54460037", "0.54253584", "0.54185057", "0.540156", "0.5393013", "0.5386406", "0.5351842", "0.5348072", "0.5315304", "0.5315304...
0.51152825
59
Returns the number of hotels where name = &63;.
public int countByname(java.lang.String name) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int searchCountByName(Object name) {\n\t\treturn 0;\r\n\t}", "public int countByname(java.lang.String name);", "@Override\n\tpublic int countByName(String name) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic Long getPlantNameCount(String name) {\n\t\tIterator<Object> iterator = null;\r\n\t\tLong i = ...
[ "0.6917564", "0.6669573", "0.6512877", "0.64620274", "0.6388392", "0.62638634", "0.6221429", "0.6043356", "0.57945347", "0.5782753", "0.5721079", "0.5713924", "0.5657848", "0.56573564", "0.56449616", "0.55336523", "0.5530288", "0.5482401", "0.5475577", "0.5466945", "0.5460526...
0.6172279
7
Caches the hotel in the entity cache if it is enabled.
public void cacheResult(com.Hotel.model.Hotel hotel);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cacheResult(java.util.List<com.Hotel.model.Hotel> hotels);", "@Override\n public void cacheResult(EntityDealer entityDealer) {\n EntityCacheUtil.putResult(EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey(), entityDealer);\n\n ...
[ "0.66325927", "0.6011899", "0.5950112", "0.59293056", "0.5637785", "0.5573217", "0.555637", "0.54848427", "0.54837203", "0.5452768", "0.54464155", "0.5436073", "0.5425836", "0.5422735", "0.5408155", "0.53597903", "0.5345709", "0.53314865", "0.5326829", "0.5323728", "0.5323095...
0.71625686
0
Caches the hotels in the entity cache if it is enabled.
public void cacheResult(java.util.List<com.Hotel.model.Hotel> hotels);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cacheResult(com.Hotel.model.Hotel hotel);", "public void flushEntityCache() {\n super.flushEntityCache();\n }", "@Override\n public void appendCache(List<FavoriteEntity> ltEntity)\n {\n for (FavoriteEntity entity : ltEntity)\n {\n addWithCheckExistID(entity);\...
[ "0.6359236", "0.595379", "0.59401876", "0.5890721", "0.5771216", "0.5726575", "0.5707409", "0.5556968", "0.5526289", "0.5502874", "0.5491006", "0.54426855", "0.54330987", "0.5324245", "0.5300257", "0.5287562", "0.5263624", "0.52616256", "0.52582115", "0.52380735", "0.5236436"...
0.682166
0
Creates a new hotel with the primary key. Does not add the hotel to the database.
public com.Hotel.model.Hotel create(long hotelId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Hotel saveHotel(Hotel hotel);", "@PostMapping(value=\"/insert/hotel\", consumes=MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic ResponseClient insertNewRoom(@RequestBody Hotel hotel){\r\n\t\thotelSer.save(hotel);\r\n\t\tResponseClient res = new ResponseClient();\r\n\t\tres.setResponse(\"successfull hotel_id: \");\...
[ "0.6696896", "0.6471638", "0.6219385", "0.6087694", "0.6075578", "0.6030887", "0.5970459", "0.59168696", "0.5913048", "0.5913048", "0.5773375", "0.5713795", "0.5674828", "0.5639386", "0.56350064", "0.5489617", "0.5461243", "0.54429775", "0.5416073", "0.5399359", "0.53720087",...
0.83485925
0
Removes the hotel with the primary key from the database. Also notifies the appropriate model listeners.
public com.Hotel.model.Hotel remove(long hotelId) throws com.Hotel.NoSuchHotelException, com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void deleteHotel(String hotelId) {\n Optional<Hotel> optionalHotel = hotelRepository.findByHotelId(hotelId);\n Hotel hotel = optionalHotel.orElseThrow(() -> {\n logger.error(\"Hotel information not found | hotelId:{}\", hotelId);\n return new BookingService...
[ "0.65709466", "0.65599734", "0.64431465", "0.6061609", "0.60309863", "0.59544635", "0.58961755", "0.58899313", "0.5886743", "0.5848518", "0.5767583", "0.574281", "0.57190156", "0.5690825", "0.56547666", "0.5653426", "0.56177866", "0.5532382", "0.5529763", "0.55138355", "0.546...
0.56197757
16
Returns the hotel with the primary key or returns null if it could not be found.
public com.Hotel.model.Hotel fetchByPrimaryKey(long hotelId) throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic HotelDetails findHotel(int id) {\n\t\treturn bookingDao.findHotel(id);\n\t}", "@Override\r\n\tpublic Hotel getById(int Id) {\n\t\tfor(Hotel Hotel : showHotelList() ) {\r\n\t\t\tif(Hotel.getHotelId()==Id)\r\n\t\t\t\t\treturn Hotel;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Integer getHot...
[ "0.7006675", "0.69968206", "0.6843682", "0.6843682", "0.6836689", "0.67394775", "0.67394775", "0.67177373", "0.6523632", "0.6272163", "0.62078774", "0.6177289", "0.61589056", "0.589762", "0.5890599", "0.5888801", "0.5836777", "0.5834935", "0.5826656", "0.5754054", "0.5748442"...
0.675392
5
Returns all the hotels.
public java.util.List<com.Hotel.model.Hotel> findAll() throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<Hotel> getAllHotels() {\n\t\treturn showHotelList();\r\n\t}", "public List<Hotel> getAvailableHotels(){\n return databaseManager.findAvailableHotels();\n }", "public Cursor fetchAllHotels() {\r\n\r\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TYPE,...
[ "0.8266437", "0.8087453", "0.7544197", "0.73604923", "0.7318938", "0.7092373", "0.7052918", "0.7018973", "0.6879773", "0.6519848", "0.6448525", "0.6448525", "0.6412932", "0.6296177", "0.6292579", "0.6184976", "0.615412", "0.61465037", "0.60965353", "0.6061201", "0.6050074", ...
0.7247932
5
Removes all the hotels from the database.
public void removeAll() throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }", "...
[ "0.64615124", "0.64099354", "0.6292047", "0.6286399", "0.6256058", "0.6154456", "0.6148605", "0.61409855", "0.61386466", "0.6134823", "0.60985535", "0.609442", "0.60941094", "0.6063846", "0.6061042", "0.60524017", "0.60464686", "0.6031622", "0.60149163", "0.60105616", "0.5984...
0.0
-1
Returns the number of hotels.
public int countAll() throws com.liferay.portal.kernel.exception.SystemException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numberOfHotels() {\r\n \tint anzahlHotel=hotelDAO.getHotelList().size();\r\n \treturn anzahlHotel;\r\n }", "public int getHotelImageURLsCount() {\n return hotelImageURLs_.size();\n }", "public int getHotelImageURLsCount() {\n return hotelImageURLs_.size();\n }", "int g...
[ "0.8321212", "0.68615705", "0.68293613", "0.6791339", "0.6791339", "0.6612925", "0.6575759", "0.65719074", "0.6547172", "0.65090126", "0.65041053", "0.6481675", "0.6477293", "0.6465855", "0.6458362", "0.64307934", "0.6428514", "0.6418192", "0.6417807", "0.6417274", "0.6411352...
0.0
-1
Creates new form uitax
public uitax() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public SignUpForm(Context ctx) {\n super(ctx);\n init();\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "publ...
[ "0.6708867", "0.6115469", "0.6083489", "0.6075215", "0.60476", "0.6040203", "0.59783113", "0.5941599", "0.59322196", "0.59239274", "0.5914983", "0.5882518", "0.58646184", "0.5857528", "0.5845491", "0.5830408", "0.57939243", "0.57695526", "0.5766027", "0.57448673", "0.573962",...
0.5493566
58
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() { jTabbedPane2 = new javax.swing.JTabbedPane(); tab1 = new javax.swing.JPanel(); dividend = new javax.swing.JSpinner(); bonus = ...
{ "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.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.69...
0.0
-1
This method is called when the order button is clicked.
public void submitOrder(View view) { String order = gatherOrder(view); Uri uri = Uri.parse("mailto:" + "dpwh24@umkc.edu") .buildUpon() .appendQueryParameter("to", "dpwh24@umkc.edu") .appendQueryParameter("subject", "Your pizza order") .ap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void orderClicked(View view) {\n Log.d(\"Method\", \"orderClicked()\");\n orderPlace();\n }", "@Override\n\tpublic void processViewOrderButtonClick(ProcessViewOrderObjectEvent e) {\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case...
[ "0.75124985", "0.7374948", "0.7363519", "0.7091973", "0.695491", "0.6912256", "0.68484765", "0.6825866", "0.67753494", "0.677003", "0.6716067", "0.67064244", "0.6697459", "0.6653181", "0.66437024", "0.6601551", "0.6595429", "0.65919274", "0.6582205", "0.6554549", "0.65519637"...
0.61906743
59
Helper function to gather order details into a string
public String gatherOrder(View view) { // get user input EditText userInputNameView = (EditText) findViewById(R.id.user_input); String userInputName = userInputNameView.getText().toString(); // check if whipped cream is selected CheckBox extraCheese = (CheckBox) findViewById(R....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getOrderDetails(Order order) {\n String message = getString(R.string.total) + \"\\n\" + getString(R.string.name) + \": \" + order.getCustomerName() +\n \"\\n\" + getString(R.string.add_cream) + \"? \" + String.valueOf(order.isHasWhippedCream()) +\n \"\\n\" + getS...
[ "0.7663892", "0.725494", "0.7232107", "0.7228493", "0.70202917", "0.6913711", "0.68694997", "0.6848003", "0.682083", "0.6721722", "0.6700569", "0.6606326", "0.65711564", "0.6549575", "0.6546579", "0.65352684", "0.64531565", "0.6388167", "0.63617283", "0.632425", "0.62593454",...
0.5671036
77
On click destination for the summary button
public void orderSummaryPage(View v){ String order = gatherOrder(v); Intent redirect = new Intent(this, SummaryActivity.class); redirect.putExtra(EXTRA_MESSAGE,order); startActivity(redirect); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@When(\"^I click on statististics button$\")\n public void i_click_on_statististics_button() {\n onViewWithId(R.id.btnStatistics).click();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (isDetailed) {\n\t\t\t\t\tcloseDetail();\n\t\t\t\t} else {\n\t\t\t\t\tshowDetail...
[ "0.66370964", "0.65887713", "0.6514845", "0.6370037", "0.6242644", "0.62287563", "0.62185305", "0.6196365", "0.6187509", "0.61789405", "0.6154108", "0.6140861", "0.60757786", "0.6044197", "0.60359347", "0.6010437", "0.5997502", "0.5971758", "0.5968788", "0.5966565", "0.595243...
0.615639
10
Helper function to start the email application
public void sendEmail(Uri uri, String chooserTitle) { Intent emailIntent = new Intent(Intent.ACTION_SENDTO, uri); startActivity(Intent.createChooser(emailIntent, chooserTitle)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void launchEmail(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_MAIN); \n \tsendIntent.addCategory(Intent.CATEGORY_APP_EMAIL);\n\n if (sendIntent.resolveActivity(pacman) != null) {\n \tstartActivity(sendIntent);\n \treturn;\n } else {\n \tToast.makeText...
[ "0.7577246", "0.6871997", "0.6563143", "0.6534883", "0.6518843", "0.64271724", "0.6363996", "0.63532376", "0.6249088", "0.62021923", "0.6192238", "0.6183756", "0.6180444", "0.61655766", "0.6113273", "0.6083414", "0.6081536", "0.6061237", "0.6001664", "0.5998041", "0.59759885"...
0.0
-1
Method to calculate the total price
private double calculatePrice(boolean hasExtraCheese, boolean hasPepperoni, boolean hasHawaiian, String size) { double basePrice = PIZZA_PRICE; if (hasExtraCheese) { basePrice += BASIC_TOPPING_PRICE; } if (hasPepperoni) { basePrice += BASIC_TOPPING_PRICE; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tPro...
[ "0.8216558", "0.81759846", "0.8169011", "0.8090092", "0.8031522", "0.80221653", "0.7943818", "0.7939908", "0.7900492", "0.78745294", "0.78743744", "0.783943", "0.7821186", "0.7817514", "0.7814981", "0.77766466", "0.77706605", "0.7753625", "0.7736126", "0.77338296", "0.7729597...
0.0
-1
This method displays the given quantity value on the screen.
private void display(int number) { TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view); quantityTextView.setText("" + number); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayQuantity(int quantity) {\n final TextView quantityTextView = findViewById(R.id.quantity_text_view);\n quantityTextView.setText(String.valueOf(quantity));\n }", "private void displayQuantity() {\n Log.d(\"Method\", \"displayQuantity()\");\n TextView quantityTextV...
[ "0.8212803", "0.77711016", "0.76877415", "0.7662505", "0.7607749", "0.7584019", "0.75392795", "0.7531482", "0.751727", "0.7496429", "0.7365862", "0.73060924", "0.7296504", "0.72939616", "0.72937334", "0.7285382", "0.7280069", "0.72360295", "0.719142", "0.7120275", "0.6995672"...
0.7305023
18
This method increments the quantity of coffee cups by one
public void increment(View view) { if (quantity < 100) { quantity = quantity + 1; display(quantity); } else { Log.i("MainActivity", "Please select less than one hundred cups of coffee"); Context context = getApplicationContext(); String lowerLi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incrementOrder(View view) {\n final int numberOfCoffees = getNumberOfCoffees();\n if (numberOfCoffees == Constants.MAX_NUM_COFFEES_IN_ORDER) {\n Toast.makeText(getApplicationContext(),\n \"Maximum number of coffees in one order reached\",\n ...
[ "0.73041344", "0.7123678", "0.7000166", "0.6944523", "0.6874585", "0.6866751", "0.6621702", "0.66129464", "0.65552783", "0.6547654", "0.6546013", "0.65441453", "0.6504078", "0.6486318", "0.6422295", "0.6308083", "0.62888956", "0.62809443", "0.6274412", "0.62525296", "0.624039...
0.65296566
12
This method decrements the quantity of coffee cups by one
public void decrement(View view) { if (quantity > 1) { quantity = quantity - 1; display(quantity); } else { Log.i("MainActivity", "Please select atleast one cup of coffee"); Context context = getApplicationContext(); String upperLimitToast = ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void decrementOrder(View view) {\n final int numberOfCoffees = getNumberOfCoffees();\n if (numberOfCoffees == Constants.MIN_NUM_COFFEES_IN_ORDER) {\n Toast.makeText(getApplicationContext(),\n \"Minimum number of coffees in one order reached\",\n ...
[ "0.72077644", "0.70689213", "0.69222826", "0.6917526", "0.6889792", "0.66497004", "0.6598407", "0.63814086", "0.63208324", "0.628817", "0.6254791", "0.62474555", "0.6212521", "0.61589545", "0.61506873", "0.6116589", "0.6098711", "0.6073969", "0.60561925", "0.60436106", "0.603...
0.64776134
7
Do nothing because it cannot be destroy
@Override public void destroy(){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void destroy() {\n\t\t// Do nothing\n\t}", "public void destroy ()\n {\n // do nothing\n }", "@Override\n public void destroy() {\n }", "public void notDestroyable()\n\t{\n\t\tdestroyable = false;\n\t}", "@Override\r\n\t\tpublic void destroy() {\n\t\t\t\r\n\t\t}", "@Override\n ...
[ "0.79803765", "0.7670037", "0.76459223", "0.76409596", "0.7632528", "0.7605976", "0.7571392", "0.7571392", "0.7571392", "0.7571392", "0.7571392", "0.7571392", "0.7571392", "0.7571392", "0.7571392", "0.7571392", "0.7571392", "0.7571392", "0.7571392", "0.7571392", "0.7535817", ...
0.74323374
66
Spring Data Jpa specialization of OperatorStatus repository
public interface SpringDataJpaOperatorStatusRepository extends OperatorStatusRepository, Repository<OperatorStatus, Integer> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository\npublic interface StatusRepository extends IRepository<Status, String> {\n\n}", "@Repository\npublic interface ProviderRepository extends JpaRepository<Provider, Long> {\n long countByStatus(String status);\n}", "@Repository\npublic interface EnumTypeRepository extends BaseRepository<EnumTypeBea...
[ "0.6978497", "0.69029784", "0.6886267", "0.6789563", "0.6735895", "0.6725979", "0.6664233", "0.66611344", "0.6609276", "0.6581394", "0.6579466", "0.6560007", "0.6545457", "0.6530392", "0.6501481", "0.64990354", "0.6491114", "0.6481964", "0.6473596", "0.64692736", "0.6456872",...
0.8142968
0
Renders user position on the map
public Bitmap renderMapWithUserPosition(Bitmap map, Point userPosition) { final Bitmap bitmap = map.copy(Bitmap.Config.ARGB_8888, true); final Canvas canvas = new Canvas(bitmap); canvas.drawOval(getUserPositionOval(userPosition), userPositionPaint); return bitmap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateUserPosition()\n {\n LatLng current = new LatLng(mCurrentLocation.getLatitude(), mCurrentLocation.getLongitude());\n circle.setCenter(current);\n Log.i(\"ZOOM:\", \" \" + mMap.getCameraPosition().zoom);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(current));//mo...
[ "0.6520102", "0.64474565", "0.63293606", "0.6252387", "0.6220058", "0.6094933", "0.60916793", "0.60798943", "0.606417", "0.6041735", "0.59986126", "0.5986103", "0.59427863", "0.5859767", "0.5831117", "0.5778265", "0.576449", "0.5750847", "0.57268476", "0.57220256", "0.5707025...
0.689593
0
Creates new form VCategorias
private void ejecutarAccion(int i) { try { // TODO add your handling code here: GCategorias gestorCategorias = new GCategorias(i); gestorCategorias.setVisible(true); } catch (SQLException ex) { Logger.getLogger(VCategorias.class.getName()).log(Level.SEVERE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VentanaCreaCategoria(VentanaPrincipal v, Categoria c) {\r\n\t\tthis.vp = v;\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tsetTitle(\"Crear categor\\u00EDa\");\r\n\t\tsetBounds(100, 100, 441, 237);\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.s...
[ "0.75349164", "0.69532037", "0.69355124", "0.668776", "0.6668192", "0.66164464", "0.6608735", "0.6506599", "0.6452649", "0.6309919", "0.6258289", "0.6228045", "0.618735", "0.6181445", "0.6179728", "0.61007667", "0.606417", "0.60476154", "0.6031591", "0.59992075", "0.5996016",...
0.0
-1
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(); jLabel1 = new javax.swing.JLabel(); jbVisualizarCategoria = new javax.swing.JButton(); jbA...
{ "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.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.69...
0.0
-1
/ Empty Tiles Locator depends on number of unstarted goal containers
public boolean verifyRetirementTile(String tileName) { log("Verifying the " + tileName + " is displayed..."); return (isElementDisplayed(retirementTile, tileName)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAllPawns(){\n\n for (Map.Entry<Integer, ImageView> entry : actionButtons.entrySet()) {\n Image image = null;\n entry.getValue().setImage(image);\n }\n\n for (Map.Entry<Integer, ImageView> entry : harvestBox.entrySet()) {\n\n Image image = null...
[ "0.5614898", "0.54917526", "0.5220455", "0.5205102", "0.5194499", "0.51744163", "0.5164465", "0.51475716", "0.51364815", "0.5123781", "0.5093403", "0.5089135", "0.500945", "0.49993435", "0.49953637", "0.4979837", "0.49792087", "0.49534273", "0.4947555", "0.49452868", "0.49321...
0.0
-1
parameter retirement: true if retirement Start button should be present; false otherwise
public boolean verifyAddInvestmentGoalModalContents(Boolean retirement) { log("Verifying the contents of the Add Investment Goal modal"); Boolean college = false; Boolean retire = true; if ((retirement == true) && (isElementDisplayed(retirementStartBtn, "Start button for retirement") == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean raceSelected(){\n\t\tif(btnDwarf.isEnabled() && btnElf.isEnabled() && btnHuman.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "public boolean ButtonStatusToRoundTrip(){\n\n wait.until(ExpectedConditions.elementSelectionStateToBe(roundTripButton,false));\n roun...
[ "0.59472895", "0.5713028", "0.56857944", "0.5675603", "0.56703305", "0.5634847", "0.56070846", "0.56066275", "0.5580184", "0.55497974", "0.552137", "0.5507404", "0.5486975", "0.5484208", "0.54768056", "0.54622895", "0.5418821", "0.5397671", "0.5394586", "0.53338003", "0.53150...
0.6160358
0
Navigate for existing college premium goal
public PremiumCollegeDashboardPage clickOnViewDetailsPremiumCollege() { waitAndClick(collegeViewDetailsBtn, "College View Details Button"); return PageFactory.initElements(driver, PremiumCollegeDashboardPage.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private EditPlanDirectToManaged signUpAndReachEditPlan() throws Exception{\n //Initializing investment strategy object used to keep track of Glidepath investment strategy in relation to age to retirement and RTQ\n //Default User has age of 35 and 30 years to retirement\n InvestmentStrategyObje...
[ "0.6005016", "0.57103693", "0.56938714", "0.55324185", "0.55269504", "0.55133563", "0.5503868", "0.5480764", "0.54736", "0.54497755", "0.54278684", "0.5407291", "0.53958976", "0.5378387", "0.5333165", "0.5331922", "0.5317058", "0.5278148", "0.5267276", "0.5262793", "0.5250614...
0.6343948
0
REQUIRES: MODIFIES: EFFECTS:throws NullPointerException if str == nul, if str is palindrome returns true if not returns false
public static boolean IsPalindrome(String str) { int maxIndex = str.length() - 1; if (str.length() <= 1) return true; for (int i = 0; i < str.length() / 2; i++) { if (str.charAt(i) != str.charAt(maxIndex - i)) return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static boolean isPalindrome(String str){\n\t\tString a = str.replaceAll(\"\\\\s+\",\"\");\n\t\tString b = new StringBuilder(a).reverse().toString();\n\t\treturn a.equalsIgnoreCase(b);\n\t}", "static boolean isPalindrome(String str) {\n\n if (str.length() <= 1) return true;\n\n return str.charAt(0) ...
[ "0.8395749", "0.8100094", "0.80336016", "0.8032444", "0.80221003", "0.800649", "0.796329", "0.79597723", "0.79169697", "0.78962743", "0.7854884", "0.78044593", "0.77922404", "0.77344733", "0.7710047", "0.76601774", "0.76525664", "0.7647637", "0.7643337", "0.76180404", "0.7606...
0.7871425
10
groups or topics for group chats
public ServerHelper(Server server, Socket clientsoc) { //server obj is used to to call getlist method and use it this.server = server; this.clientsoc = clientsoc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isGroupChat() {\n return mIsGroupChat;\n }", "private void groupChatSend(UserLogic t) {\n if(((String) UI.getContacts().getSelectedValue()).equals( groupChat)){\r\n if (t != UserLogic.this && t != null) { //Sending to other users chat\r\n if(((Str...
[ "0.6220552", "0.60984755", "0.6009238", "0.5802536", "0.5680637", "0.5631103", "0.5575099", "0.5559137", "0.55467445", "0.5543514", "0.5527238", "0.551966", "0.54531026", "0.54490304", "0.54308414", "0.54239625", "0.5401219", "0.5401219", "0.53799874", "0.531389", "0.5311611"...
0.0
-1
overiding run method of thread
public void run() { try { handle(); } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run(){\n //logic to execute in a thread \n }", "public void run() {\r\n }", "@Override\r\n\tabstract public void run();", "@Override\r\n\tpublic abstract void run();", "@Override\n abstract public void run();", "public final void run() {\r\n }", "public void run()\n\t{\...
[ "0.7817899", "0.7581222", "0.7534948", "0.75141567", "0.7510109", "0.7476706", "0.7453466", "0.74472886", "0.74472886", "0.74472886", "0.74472886", "0.7402193", "0.7402193", "0.7395814", "0.7393553", "0.7393553", "0.7393553", "0.7393553", "0.7393553", "0.73751587", "0.7351885...
0.0
-1
format msg receipient txtmsg format msg topic txtmsg
private void handlemsg(String[] tokens) throws IOException { String sendto = tokens[1]; String body = tokens[2]; boolean istopic = (sendto.charAt(0) == '#'); //if hash then mssg is being sent to group List<ServerHelper> helperList = server.getList(); for (ServerHel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String formatMessage(LogMessage ioM);", "private static String formatSimple(ChannelHandlerContext ctx, String eventName, Object msg) {\n String chStr = getChStr(ctx);\n String msgStr = String.valueOf(msg);\n StringBuilder buf = new StringBuilder(chStr.length() + 1 + eventName.length() + 2 + ...
[ "0.60438436", "0.60372156", "0.592844", "0.58931226", "0.577746", "0.572044", "0.56518304", "0.56388795", "0.5637505", "0.5597512", "0.5569709", "0.55640304", "0.55029774", "0.54659903", "0.54352695", "0.5418847", "0.5393085", "0.5392147", "0.5365976", "0.53188276", "0.530282...
0.5124152
34
/ Function to push an item to stack
private static void push(Stack<Integer> top_ref, int new_data) { //Push the data onto the stack top_ref.push(new_data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(Item item){\n this.stack.add(item);\n\n }", "public void push (E item){\n this.stack.add(item);\n }", "void push(Object item);", "public void push(T item);", "public void push(E object) {stackList.insertAtFront(object);}", "public void push(ILocation item)\n {\n ...
[ "0.8737143", "0.87246245", "0.8274624", "0.82417285", "0.82390714", "0.82221687", "0.8166011", "0.8166011", "0.8157163", "0.7865233", "0.78639406", "0.78310263", "0.7829355", "0.7799064", "0.7764172", "0.7750566", "0.77109855", "0.77108485", "0.7707352", "0.7689631", "0.76811...
0.0
-1
/ Function to pop an item from stack
private static int pop(Stack<Integer> top_ref) { /*If stack is empty then error */ if (top_ref.isEmpty()) { System.out.println("Stack Underflow"); System.exit(0); } //pop the data from the stack return top_ref.pop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void pop();", "public Object pop();", "Object pop();", "public TYPE pop();", "public Object pop( )\n {\n Object item = null;\n\n try\n {\n if ( this.top == null)\n {\n throw new Exception( );\n }\n\n item = this.top.d...
[ "0.8426126", "0.8237759", "0.81471866", "0.80851793", "0.8076504", "0.79972893", "0.79767436", "0.7961367", "0.7954411", "0.79538333", "0.7939478", "0.7939478", "0.7939478", "0.7939478", "0.7939478", "0.7939478", "0.7939478", "0.7939478", "0.7929458", "0.7927687", "0.790703",...
0.0
-1
Function to enqueue an item to the queue
public static void pushQueue(MyQueue q, int x) { push(q.stack1, x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void enqueue(E item);", "public void enqueue(Comparable item);", "public void enqueue(Item item) \n {\n stack1.push(item);\n }", "public void enqueue (T item) {\n leftStack.push(item);\n }", "public void enqueue(Object value);", "public void enqueue(E item) {\n addLa...
[ "0.8446606", "0.8075404", "0.8005448", "0.79769737", "0.7925783", "0.78882277", "0.78811455", "0.78209966", "0.7758588", "0.7753165", "0.7747746", "0.7736808", "0.7675023", "0.76496506", "0.76248866", "0.7615267", "0.758769", "0.7586833", "0.7565528", "0.75515074", "0.754124"...
0.0
-1
Function to dequeue an item from queue
public static int pull(MyQueue q) { int x; if (q.stack1.isEmpty() && q.stack2.isEmpty()) { System.out.println("Q is empty"); System.exit(0); } /* Move elements from stack1 to stack 2 only if stack2 is empty */ if (q.stack2.isEmpty()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object dequeue();", "Object dequeue();", "T dequeue();", "T dequeue();", "public T dequeue();", "public E dequeue();", "E dequeue();", "E dequeue();", "E dequeue();", "public void dequeue()\n\t{\n\t\tq.removeFirst();\n\t}", "public Object dequeue()\n {\n return queue.removeFirst();\n ...
[ "0.86746573", "0.86746573", "0.849106", "0.849106", "0.8463281", "0.82314783", "0.819808", "0.819808", "0.819808", "0.8180667", "0.7956225", "0.79508066", "0.79508066", "0.78698766", "0.7785011", "0.7774367", "0.77315134", "0.7696443", "0.7567527", "0.75233835", "0.7443876", ...
0.0
-1
return str + "[" + this.line +"," + this.col +"]";
@Override public String toString() { return (this.originalValue == null ? this.getValue() : this.originalValue) + (this.nodeType.getName() == null ? "" : (":" + this.nodeType.getName())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String toString() { return new String( \"(\" + row + \", \" + col + \")\" ); }", "@Override\n public String toString(){\n return row + \",\" + column + \",\";\n }", "@Override\n public String toString() {\n\treturn \"\"+rowIndex+colIndex; \n }", "@Override\n publ...
[ "0.74287504", "0.73427093", "0.7288429", "0.7168634", "0.71426916", "0.7110175", "0.6910687", "0.66816026", "0.6601411", "0.6571581", "0.6547507", "0.6476177", "0.64751124", "0.6349677", "0.6334488", "0.633344", "0.63310695", "0.6307568", "0.6288187", "0.6256881", "0.6247732"...
0.0
-1
Created by yin13 on 2019/10/12
public interface ISwipRefreshInterface extends IBaseInterface { RecyclerView.LayoutManager getLayoutManager(); RecyclerView.Adapter getAdapter();//获取适配器 void clear();//清除数据 String getReplaceText();//占位语 Drawable getReplaceDrawable();//占位图 boolean initLoading();//初始化是否加载数据 }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "...
[ "0.58239675", "0.5582649", "0.5539823", "0.5539823", "0.5503609", "0.5502108", "0.5481418", "0.5444099", "0.5399297", "0.5383943", "0.5375307", "0.5356195", "0.5348685", "0.53216636", "0.53138834", "0.5313759", "0.5301973", "0.5296009", "0.5284299", "0.527593", "0.5266329", ...
0.0
-1
Created by ss on 16329.
public interface QueueManager { List<Message> messages = null; int insertQueue(String queueId, Message message); List<Message> getQueue(String queueId, int num); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public ...
[ "0.58624333", "0.57876253", "0.5777888", "0.57544225", "0.57093287", "0.56850463", "0.5679428", "0.5668249", "0.5668249", "0.5666523", "0.56643444", "0.56009895", "0.5597664", "0.559756", "0.5583944", "0.5561433", "0.55386484", "0.5538426", "0.5531316", "0.5530296", "0.552272...
0.0
-1
Creates new form Login
public Login(Main pai) { this.pai = pai; initComponents(); senhaBox.setEchoChar('*'); loginBox.setText("eymar@dono.goldfork.com"); senhaBox.setText("eymar"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public loginForm() {\n initComponents();\n \n }", "public static Result login(){\n String username= Form.form().bindFromRequest().get(\"username\");\n String password= Form.form().bindFromRequest().get(\"password\");\n String new_user= Form.form().bindFromRequest().get(\"n...
[ "0.7087889", "0.69521654", "0.68040574", "0.6786566", "0.6757266", "0.67409855", "0.6692699", "0.66887593", "0.66297597", "0.66144294", "0.6594864", "0.6585462", "0.6571206", "0.652989", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904", "0.6512904"...
0.0
-1
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(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); loginBox = new jav...
{ "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.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.69...
0.0
-1
Creates new form UserManagement
public UserManagement(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); finalizeComponents(); getUserList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = { \"/newuser\" }, method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String newUser(ModelMap model) {\n\t\tUser user = new User();\n\t\tmodel.addAttribute(\"user\", user);\n\t\tmodel.addAttribute(\"edit\", false);\n\t\treturn \"registration\";\n\t}", "@RequestMap...
[ "0.7207697", "0.7016892", "0.69729143", "0.6965364", "0.6934165", "0.6858145", "0.6743014", "0.66815925", "0.6667421", "0.6647675", "0.6621077", "0.6564759", "0.65303826", "0.6488541", "0.6480429", "0.64398265", "0.6423955", "0.64128315", "0.6344764", "0.6337877", "0.63376665...
0.0
-1
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() { userListLabel = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); userList = new javax.swing.JList(); us...
{ "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.731952", "0.72909003", "0.72909003", "0.72909003", "0.72862417", "0.7248404", "0.7213685", "0.72086793", "0.7195972", "0.71903807", "0.71843296", "0.7158833", "0.71475875", "0.70933676", "0.7081167", "0.7056787", "0.69876975", "0.6977383", "0.6955115", "0.6953839", "0.6945...
0.0
-1
End of variables declaration//GENEND:variables
private void getUserList() { // GET ENTRIES FROM DB AND TURN THEM INTO LIST DefaultListModel listModel = new DefaultListModel(); Iterator itr = DBHandler.getListOfObjects("FROM DBUser ORDER BY xname"); while (itr.hasNext()) { DBUser user = (DBUser) itr.next(); li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
listener for kb items list browsing
private void finalizeComponents() { MouseListener mouseListener = new MouseAdapter() { @Override public void mouseClicked(MouseEvent e) { // get currently selected index entry if (userList.getSelectedIndex() < 0) { userList.setSelectedI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ListListener {\n\t/*\n\t * Called by soundfun.ui when a different element\n\t * has been selected. This also is called if no\n\t * element was previously selected and is now selected.\n\t */\n\tpublic void selected(String action);\n}", "void onListClick();", "void contentList_keyPressed(KeyEve...
[ "0.6365864", "0.61584735", "0.6120296", "0.6079859", "0.60424775", "0.5884661", "0.5839076", "0.58040804", "0.5756929", "0.57453656", "0.5737427", "0.572899", "0.5718078", "0.5714094", "0.57131165", "0.570439", "0.5697446", "0.56771773", "0.56708425", "0.5656607", "0.5652229"...
0.0
-1
get currently selected index entry
@Override public void mouseClicked(MouseEvent e) { if (userList.getSelectedIndex() < 0) { userList.setSelectedIndex(0); } String selectedItem = (String) userList.getSelectedValue(); // load entry data from db ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int getIndexSelected() {\n return indexSelected;\n }", "public int getSelectionIndex () {\r\n\tcheckWidget();\r\n\tint [] args = {OS.Pt_ARG_PG_CURRENT_INDEX, 0, 0};\r\n\tOS.PtGetResources (handle, args.length / 3, args);\r\n\treturn args [1] == OS.Pt_PG_INVALID ? -1 : args [1];\r\n}", ...
[ "0.72771156", "0.70394236", "0.7028082", "0.7013888", "0.6850621", "0.67860895", "0.67551875", "0.6685173", "0.6681198", "0.6652868", "0.6603479", "0.6583631", "0.655518", "0.655518", "0.65515333", "0.65484214", "0.6534001", "0.65287364", "0.65234727", "0.6519346", "0.6519346...
0.0
-1
fill GUI with given user details
private void loadUserDetails(DBUser user) { userDetailsLoginText.setText(user.getUserLogin()); userDetailsNameText.setText(user.getUserName()); userDetailsLevelSpinner.setValue(user.getUserLevel()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void populateUserInformation()\n {\n ViewInformationUser viewInformationUser = new ViewFXInformationUser();\n\n viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox);\n }", "private void po...
[ "0.76995564", "0.7555707", "0.70432824", "0.7042927", "0.7009705", "0.6905817", "0.6895606", "0.6809892", "0.68049246", "0.676606", "0.6757398", "0.6754686", "0.67325974", "0.6711115", "0.6684875", "0.6673278", "0.66635513", "0.66609555", "0.66545326", "0.6638388", "0.6629039...
0.66613847
17
TODO scrap this using simulated mouse click on user list but HOW??? disable or enable control buttons buttons has to be disabled after user is deleted and enabled whenever the control actions should be
private void enableButtons(boolean enabled) { saveUserButton.setEnabled(enabled); deleteUserButton.setEnabled(enabled); resetPassButton.setEnabled(enabled); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void disableButtons()\r\n {\r\n }", "private void defineUserListActions(Stage primaryStage) {\n userList.setOnMouseClicked((MouseEvent e) -> { // Define Action for clicking user in list\n if (e.getButton() == MouseButton.SECONDARY) { // right click\n ContextMenu rightClickOptions = new...
[ "0.658933", "0.6528779", "0.63870627", "0.63838005", "0.62333804", "0.6224716", "0.61872494", "0.6097041", "0.604167", "0.6041657", "0.603256", "0.6025841", "0.60182065", "0.6015011", "0.5984124", "0.5975956", "0.5969103", "0.59666693", "0.5950948", "0.5949417", "0.5946842", ...
0.0
-1
display simple message for user
private void infoMessage(String message) { JOptionPane.showMessageDialog(this, message, "VSEGraf - user management", JOptionPane.INFORMATION_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayMessage(){\n //getCouseName obtém o nome do curso\n System.out.printf(\"Welcome to the grade book for \\n%s!\\n\\n\", getCouseName());\n }", "public void DisplayMessage(String massage);", "public void showMessage(String message);", "private void displayMessage(String messa...
[ "0.7851621", "0.7693396", "0.7673246", "0.7661881", "0.761471", "0.76009953", "0.75903666", "0.7570319", "0.755263", "0.74898744", "0.7451663", "0.74154997", "0.74154997", "0.74051577", "0.73620504", "0.729291", "0.72814757", "0.7274345", "0.7203081", "0.7202058", "0.71089435...
0.6977383
30
Retries if not passed limit. Returns true if there retrying or there is another future sync scheduled already
boolean doRetry() { synchronized (mHandler) { boolean doRetry = currentRetry < MAX_RETRIES; boolean futureSync = mHandler.hasMessages(0); if (doRetry && !futureSync) { currentRetry++; mHandler.postDelayed(getNewRunnable...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean retry() {\n return tries++ < MAX_TRY;\n }", "public boolean retry(ITestResult result) {\n\t\tif (counter < retryMaxLimit) {\n\t\t\tcounter++;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean allowRetry(int retry, long startTimeOfExecution);", "boolean hasMaximumBackoff()...
[ "0.66635823", "0.6420639", "0.6414808", "0.63200355", "0.6285705", "0.6265522", "0.6140922", "0.6097074", "0.60169554", "0.6008576", "0.5964376", "0.59440833", "0.5931735", "0.5868993", "0.577995", "0.5756315", "0.574403", "0.57284695", "0.5696724", "0.56202906", "0.5610654",...
0.70730454
0
Get a JSONObject to apply changes to Schedules a job with a short delay to compare changes If there are differences a network call with the changes to made
protected UserState getUserStateForModification() { if (toSyncUserState == null) toSyncUserState = getCurrentUserState().deepClone("TOSYNC_STATE"); scheduleSyncToServer(); return toSyncUserState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "JobResponse.Update update();", "public void scheduleJob() {\n JobInfo.Builder builder = null;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n builder = new JobInfo.Builder(mJobId++, mServiceComponent);\n builder.setMinimumLatency(1000);\n...
[ "0.61893886", "0.6121295", "0.5660003", "0.5656609", "0.5566693", "0.55536264", "0.55456305", "0.54632735", "0.5442671", "0.5435505", "0.5384733", "0.5358366", "0.5346362", "0.53006864", "0.5280271", "0.5272786", "0.52128315", "0.5107219", "0.50934404", "0.5066724", "0.504847...
0.0
-1
Retrieve the brekpoint's type. (type of the value we set the breakpoint for)
public String getConstraintInstance() { return getAttribute("ConstraintInstance", ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static BreakpointType classify(XBreakpoint breakpoint) {\n switch (breakpoint.getType().getId()) {\n case \"java-line\":\n return BreakpointType.LINE;\n\n case \"java-method\":\n return BreakpointType.METHOD;\n\n case \"java-exception\":\...
[ "0.64422166", "0.5892581", "0.5892581", "0.5892581", "0.5892581", "0.5892581", "0.5892581", "0.5892581", "0.5892581", "0.5892581", "0.5892581", "0.5892581", "0.5892581", "0.5892581", "0.5840273", "0.5785781", "0.5777042", "0.57550097", "0.5744701", "0.5740474", "0.5740474", ...
0.0
-1
Updates the message (label of the breakpoint in the debug view).
private void updateMessage() { setMessage("Constraint instance breakpoint on '" + getConstraintInstance() + "'"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void updateDebugText(MiniGame game) {\n }", "@Override\n public void updateDebugText(MiniGame game)\n {\n }", "@Override\r\n\tvoid updateMessage(String msg) {\n\t\tSystem.out.println(msg);\r\n\t}", "public static void updateMessageBox() {\n\t}", "public void displayMessage...
[ "0.6352497", "0.635103", "0.6208823", "0.61473584", "0.61280775", "0.6117943", "0.60898995", "0.603556", "0.6031318", "0.59638405", "0.59537715", "0.5935538", "0.58782524", "0.582488", "0.5820642", "0.58103293", "0.5809279", "0.5801225", "0.57797056", "0.57774955", "0.5775606...
0.7961201
0
Metodo para consultar un turno por Id
@GetMapping("/turno/{id}") public ResponseEntity<Turno> getTurno(@PathVariable("id") Long id) { Turno turn = turnoRepository.findOne(id); if (turn == null) { return ResponseEntity.notFound().header("X-error", "No se encontro el paciente con el Id: "+id).build(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Turno consultarTurno();", "public String getIdTurno() {\n return idTurno;\n }", "Tourst selectByPrimaryKey(String id);", "Tour selectByPrimaryKey(Integer id);", "@ManyToOne\r\n\t@JoinColumn(name=\"idturno\")\r\n\tpublic Turno getTurno() {\r\n\t\treturn this.turno;\r\n\t}", "Movimiento selectByP...
[ "0.7589397", "0.67441326", "0.64887625", "0.6136924", "0.5987909", "0.59723014", "0.59051704", "0.58759975", "0.5867644", "0.58609", "0.58348167", "0.58140427", "0.5798457", "0.57975864", "0.5788787", "0.5771614", "0.5766884", "0.57652897", "0.5750002", "0.57422453", "0.57418...
0.60808164
4
Represents a reflection helper to support multiple versions of NMS
public interface SignReflection { /** * Reads an input packet of sign being updated * * @param packet The input packet of the sign being updated * @return The lines stored in the input packet */ String[] readLines(Object packet); /** * Generates the sign editor packet * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ReflectionUtil()\n {\n }", "@ReflectiveMethod(name = \"t_\", types = {})\n public void t_(){\n NMSWrapper.getInstance().exec(nmsObject);\n }", "@Test\n public void test01()\n {\n MetaClass.forClass(Class, reflectorFactory)\n }", "public interface ExtensionInterface ...
[ "0.5774328", "0.5451564", "0.5400493", "0.5334152", "0.53113276", "0.5252881", "0.521143", "0.51875335", "0.51274776", "0.5127011", "0.512557", "0.5096144", "0.5093663", "0.5043356", "0.5036425", "0.5030948", "0.5022118", "0.5019186", "0.5005209", "0.4992571", "0.49819043", ...
0.4522816
73
Reads an input packet of sign being updated
String[] readLines(Object packet);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean readSignature(Integer[] sig) {\n Scales.sendByte((byte) 's');\n\t /* Get actual signature */\n sig[2] = Scales.getByte();\n sig[1] = Scales.getByte();\n sig[0] = Scales.getByte();\n return true;\n }", "public abstract void read(NetInput in) throws IOException;", ...
[ "0.5685956", "0.5671504", "0.55464226", "0.5542544", "0.55283767", "0.5497878", "0.5457325", "0.5393975", "0.5387252", "0.53644645", "0.53524137", "0.5342065", "0.5340346", "0.52921885", "0.5283539", "0.52384", "0.5196846", "0.51945776", "0.5187056", "0.5185279", "0.515865", ...
0.0
-1
Generates the sign editor packet
Object openSignEditor(Location location);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void signMessage() {\n\n String messageText = messageTextArea.getText();\n SecureCharSequence secureCharSequence = new SecureCharSequence(currentPassword.getPassword());\n String signMessage = this.address.signMessage(messageText, secureCharSequence);\n signature.setText(signMes...
[ "0.5998077", "0.5774479", "0.5740116", "0.56740826", "0.5670346", "0.55597407", "0.5542983", "0.5519668", "0.5515025", "0.548473", "0.54748696", "0.5473582", "0.54693836", "0.54662883", "0.54561484", "0.5454272", "0.54192775", "0.5372148", "0.5342771", "0.5328901", "0.5327673...
0.55336654
7
Update sign lines to the player
void updateSignToPlayer(Player player, Location location, String[] lines);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void signSetter(Block b, Player p, String[] lines) \n\t{\t\t\n\t\t//TODO: virer debug\n\t\t//p.sendMessage(\"dbg1\");\n\t\t\n\t\t\n\t\tif(b==null) \n\t\t\treturn;\n\t\t\n\t\tBoutiqueSign bs = new BoutiqueSign();\n\t\t\n\t\tbs.setOwner(p);\n\t\tbs.setLocation(b.getLocation());\n\t\tbs.setLines(lines);\n\n\t...
[ "0.6263387", "0.61512005", "0.58599645", "0.5839698", "0.5805155", "0.56824106", "0.56309384", "0.5587329", "0.55746484", "0.5542197", "0.54919237", "0.5457574", "0.5398301", "0.53399867", "0.5339516", "0.53352755", "0.53331673", "0.53265274", "0.5322939", "0.5317245", "0.529...
0.83289653
0
Send a block change that sets a certain block to be a sign. Legacy and latest versions of Bukkit API includes different type of sign Material
void sendSignChangeToPlayer(Player player, Location location, byte data);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private org.bukkit.material.Sign getSignMaterial() {\r\n if (this.getBlock() == null) return null;\r\n \r\n org.bukkit.material.Sign material = new org.bukkit.material.Sign(this.getBlock().getType());\r\n material.setData(this.getBlock().getData());\r\n return material;\r\n ...
[ "0.6768346", "0.656461", "0.64040685", "0.6313514", "0.62441236", "0.6239538", "0.62127787", "0.6142195", "0.6080721", "0.6064794", "0.60456663", "0.5998095", "0.5992274", "0.5986399", "0.5954483", "0.5852182", "0.5818843", "0.5816265", "0.57124156", "0.5671193", "0.56211233"...
0.6515033
2
Sends a packet to the player using NMS
void sendPacketToPlayer(Player player, Object packet);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void sendPacket(Player player, Object packet);", "public void sendPacket() throws IOException {\n\t\tbyte[] buf = playerList.toString().getBytes();\n\n\t\t// send the message to the client to the given address and port\n\t\tInetAddress address = packet.getAddress();\n\t\tint port = packet.getPort();\n\t\tpacket ...
[ "0.80055237", "0.741014", "0.7246287", "0.7112514", "0.70636773", "0.70345527", "0.6959099", "0.6684794", "0.6610336", "0.6601115", "0.6477263", "0.6436056", "0.6432929", "0.64050454", "0.6397663", "0.6395187", "0.6349137", "0.63351053", "0.6329943", "0.63278115", "0.6309667"...
0.7786434
1
Constructs a waiting room to let clients connect to the server and wait till there is a room available for a Match
public WaitingRoom(int socketPort, int rmiPort) { this.socketPort = socketPort; this.rmiPort = rmiPort; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showCreatorWaitingRoom();", "@Override\n public void automatch() {\n Bundle am = RoomConfig.createAutoMatchCriteria(1, 1, 0);\n\n // build the room config:\n RoomConfig.Builder roomConfigBuilder = makeBasicRoomConfigBuilder();\n roomConfigBuilder.setAutoMatchCriteria(am);\n RoomConfig roomCo...
[ "0.60036755", "0.5727383", "0.55510616", "0.5527864", "0.55241024", "0.5515243", "0.5510481", "0.55064636", "0.5418462", "0.5405086", "0.54050845", "0.5370992", "0.5365411", "0.5363129", "0.534599", "0.53222", "0.53196895", "0.52974176", "0.5292948", "0.5269159", "0.52422374"...
0.5288964
19
Starts the background task that will collect clients
public void collectAsync() throws IOException { rmiAcceptor = new RMIAcceptor(rmiPort); socketAcceptor = new SocketAcceptor(socketPort); // We prepare the task to get our first Future, it will then be overwritten once we get the promised result currentRMITask = threadPool.submit(rmiAccep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startCollectAppsTraffic() {\n\t\tsubmitCollectAppsTrafficTask();\n\t}", "public void start(){\n log.debug(\"Starting Host Router\");\n lobbyThread = pool.submit(new Runnable() {\n public void run() {\n waitForClients();\n }\n });\n }...
[ "0.64696306", "0.6396652", "0.6346822", "0.6331696", "0.63079774", "0.6303051", "0.62605053", "0.6259793", "0.6255586", "0.61665285", "0.6111713", "0.6107154", "0.6089712", "0.6047865", "0.60133106", "0.5981942", "0.59770966", "0.5918249", "0.5917357", "0.5848695", "0.5822345...
0.5469882
64
Periodically retrieves clients from the acceptors and removes the ones that disconnected
private void scheduledTask() { connectToNewViews(); removeDisconnectedViews(); try { Thread.sleep(SCHEDULED_TASK_PERIOD); // Scheduling future execution synchronized (threadPool) { if (!threadPool.isShutdown()) { threadPool...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void purgeStaleClients() {\n\t\tsynchronized (clients) {\n\t\t\tclients = clients.values().stream()\n\t\t\t .filter(od -> this.server.getClients().stream().anyMatch(c -> c.getName().equals(od.deviceId))\n\t\t\t || !od.purgeable())\n\t\t\t .collect(Collectors.toMap(od -> od.name...
[ "0.6964488", "0.6930813", "0.64885503", "0.6452328", "0.6421518", "0.64075226", "0.6189594", "0.6177859", "0.6142084", "0.6135873", "0.60768986", "0.606869", "0.60192263", "0.5987794", "0.59575945", "0.59528285", "0.5942512", "0.5913777", "0.5910514", "0.59042525", "0.5888247...
0.0
-1
Using the acceptors verifies that one client per technology (socket or RMI) connected and adds it to the queue
private void connectToNewViews() { try { if (currentSocketTask.isDone()) { addNewView(currentSocketTask.get()); // The previous task has been consumed, we can now submit a new task for waiting new views synchronized (threadPool) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n RemoteSensor remoteSensor = RemoteSensorManager.getInstance().addSensorChannel(ctx);\n QueuerManager.getInstance().addClient(remoteSensor);\n// System.out.println(RemoteSensorManager.getInstance().getRemot...
[ "0.6301198", "0.6226915", "0.6217527", "0.6211874", "0.61058474", "0.6071591", "0.60631275", "0.59866536", "0.59186757", "0.58566135", "0.5844254", "0.58356214", "0.57799757", "0.57772344", "0.5771922", "0.57341087", "0.5705851", "0.5696837", "0.56916547", "0.563489", "0.5634...
0.0
-1
Removes views that disconnected while waiting in the queue
private void removeDisconnectedViews() { List<View> disconnectedViews; synchronized (connectedViews) { disconnectedViews = connectedViews .stream() .filter(view -> !view.isConnected()) .collect(Collectors.toList()); conn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public synchronized void shutdownView(View view) {\r\n systems.remove(view); // remove view from system calls\r\n view.shutdown(); // shutdown the view appropriately\r\n running = false; // set running to false, engine will exit on next loop\r\n }", "public static void re...
[ "0.5893624", "0.588447", "0.57860947", "0.57837737", "0.57286316", "0.5714751", "0.5620877", "0.56176686", "0.55838233", "0.5562629", "0.5540261", "0.5455444", "0.5453418", "0.5452869", "0.54526234", "0.5449447", "0.5447492", "0.54352534", "0.54292834", "0.5423298", "0.541964...
0.7508491
0
Return a connected with if there is any, otherwise an empty optional
public Optional<View> pop() { synchronized (connectedViews) { if (connectedViews.isEmpty()) { return Optional.empty(); } else { return Optional.of(connectedViews.remove()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Optional optionalToOptional(ElementOptional optional) throws SemQAException {\n\t\tElement elm = optional.getOptionalElement();\r\n\t\tGraphPattern gp;\r\n\t\tValueConstraint vc;\r\n\t\tif (elm instanceof ElementGroup) {\r\n\t\t\tList<Element> children = ((ElementGroup) elm).getElements();\r\n\t\t\tSet<Gra...
[ "0.5297756", "0.51734835", "0.51473725", "0.5022528", "0.497814", "0.49741417", "0.497387", "0.49726608", "0.49497536", "0.49489436", "0.49113196", "0.49093485", "0.4882565", "0.48348725", "0.4816954", "0.4807559", "0.48034123", "0.48023283", "0.47986937", "0.4786625", "0.478...
0.44601938
71
Add a new listener of the reconnection event
public void addViewReconnectedListener(ViewReconnectedListener l) { this.viewReconnectedListeners.add(l); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addConnectionListener(ConnectionListener listener);", "public void addOnReconnectListener(OnReconnect listener) {\n if (listener != null) {\n synchronized (reconnectListeners) {\n reconnectListeners.add(listener);\n log.debug(\"Added new OnReconnect listener {}\", listener);\n ...
[ "0.6732579", "0.6653271", "0.6540814", "0.65225637", "0.6468832", "0.63442314", "0.62609524", "0.62550664", "0.6241596", "0.62286156", "0.6199089", "0.61574274", "0.605687", "0.605549", "0.59833854", "0.5977145", "0.59559655", "0.5945109", "0.59072465", "0.58993983", "0.58849...
0.6672273
1
Remove a listener of the reconnection event
public void removeViewReconnectedListener(ViewReconnectedListener l) { this.viewReconnectedListeners.remove(l); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeConnectionListener(ConnectionListener listener);", "public void removeConnectionEventListener(ConnectionEventListener listener) {\n eventListener.removeConnectorListener(listener);\n }", "public synchronized void removeConnectionEventListener(ConnectionEventListener connectioneventl...
[ "0.7809647", "0.7497894", "0.74666816", "0.7294062", "0.72849107", "0.7209398", "0.70381445", "0.70180833", "0.6955944", "0.6952031", "0.6889048", "0.68806154", "0.6878445", "0.67823625", "0.6761763", "0.65465605", "0.6487521", "0.64854413", "0.64289355", "0.63926363", "0.638...
0.6991452
8
Closes this object and stops the background threads execution
@Override public void close() throws Exception { socketAcceptor.close(); rmiAcceptor.close(); connectedViews.clear(); synchronized (threadPool) { threadPool.shutdown(); } while (!threadPool.awaitTermination(5, TimeUnit.SECONDS)) { logger.warn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void close() {\n \t\trecallThreads();\n \n \t\tsetSize(0, 0);\n \t\t/* Notify everyone waiting for a thread */\n \t\tnotifyAll();\n \n \t\t// destroy the threadgroup, will never go away otherwise\n \t\ttry {\n \t\t\t// Need to set it to a daemon first otherwise it will not be destroyed\n \t\t\t...
[ "0.7514898", "0.72936183", "0.72403526", "0.7172825", "0.7121503", "0.7010123", "0.7001867", "0.6957425", "0.6880942", "0.6855762", "0.6813037", "0.6795051", "0.6795003", "0.67844486", "0.67825234", "0.6741837", "0.6726887", "0.67142636", "0.67024887", "0.6694227", "0.6691575...
0.6411439
64
TODO Autogenerated method stub
@Override public synchronized void close() { super.close(); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Constructs a new separator control.
public SeparatorControl() { _separator = new JSeparator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SeparatorControl(int orientation) {\n _separator = new JSeparator(orientation);\n }", "private Label createSeparator(Composite parent) {\n \t\tLabel separator= new Label(parent, SWT.NONE);\n \t\tseparator.setVisible(false);\n \t\tGridData gd= new GridData();\n \t\tgd.horizontalAlignment= GridData.FILL...
[ "0.75373137", "0.74378777", "0.7081592", "0.65784407", "0.649482", "0.6350865", "0.5971514", "0.59701145", "0.5924666", "0.5891764", "0.5764662", "0.56633234", "0.5540597", "0.55313635", "0.5496261", "0.54942435", "0.5470134", "0.5449206", "0.5445997", "0.5419748", "0.5391011...
0.8244658
0
Constructs a new separator control with the specified orientation.
public SeparatorControl(int orientation) { _separator = new JSeparator(orientation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SeparatorControl() {\n _separator = new JSeparator();\n }", "private Label createSeparator(Composite parent) {\n \t\tLabel separator= new Label(parent, SWT.NONE);\n \t\tseparator.setVisible(false);\n \t\tGridData gd= new GridData();\n \t\tgd.horizontalAlignment= GridData.FILL;\n \t\tgd.verticalAlignme...
[ "0.678267", "0.656894", "0.61994624", "0.55946994", "0.5581915", "0.5421576", "0.54189754", "0.51682085", "0.5123135", "0.50882405", "0.50527745", "0.50414056", "0.49475837", "0.49421272", "0.48908332", "0.4836623", "0.47549617", "0.4738308", "0.4671554", "0.46377003", "0.462...
0.8354716
0
Returns the GUI component contained by this control.
public Component getComponent() { return _separator; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JComponent getComponent();", "public JComponent getComponent() {\n return getGradleUI().getComponent();\n }", "public JComponent getWidget() {\n return itsComp;\n }", "public JComponent getComponent() {\n return itsComp;\n }", "public String getComponent() {\r\n\t\tretu...
[ "0.7579355", "0.75362724", "0.74813616", "0.72555953", "0.7067986", "0.7008198", "0.6992722", "0.69039506", "0.6881031", "0.6872154", "0.68459594", "0.6829493", "0.68016243", "0.67688894", "0.6741486", "0.6731523", "0.6680582", "0.6644896", "0.66424704", "0.6641696", "0.66112...
0.0
-1
Sets the font on this control.
public void setFont(Font f) { _separator.setFont(f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFont(Font value) {\r\n this.font = value;\r\n }", "private void setFont() {\n\t}", "public void setFont(Font font) {\n this.font = font;\r\n repaint();\r\n }", "public void setFont( Font font ) {\r\n this.font = font;\r\n }", "@Override\n public void s...
[ "0.8235779", "0.82288396", "0.81725985", "0.81414425", "0.8133497", "0.81163645", "0.81072056", "0.80535376", "0.8045172", "0.7982945", "0.7981309", "0.7968219", "0.78580487", "0.7816034", "0.7727839", "0.7718763", "0.7700486", "0.76782453", "0.76599056", "0.7637393", "0.7611...
0.663732
56
maintain the current login user info. after login.
public User getUser() { return user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}", "private void loggedInUser() {\n\t\t\n\t}", "public void updateCurrentTrempitUser() {\n\n // create the trempituser object\n TrempitUser currentUser = new TrempitUser();\n currentUser.setFullName(Profile.get...
[ "0.76778615", "0.7330332", "0.713277", "0.7115174", "0.70872635", "0.68421805", "0.67510843", "0.6728975", "0.6695954", "0.6641069", "0.6606461", "0.6588881", "0.657815", "0.65459114", "0.6544184", "0.651442", "0.6503087", "0.649174", "0.64359385", "0.64359385", "0.64359385",...
0.0
-1
Creates Cold Observable using Observable.just() Because each and every onNext() gets their separate emission
private static void createColdObservable() { var observable = Observable.just(1, 2, 3, 4, 5); observable.subscribe(item -> LOG.info("Observer 1: {}", item)); pause(1000); observable.subscribe(item -> LOG.info("Observer 2: {}", item)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void just() {\n Observable<List<String>> myObservable = Observable.just(Utils.getData());\n myObservable.subscribe(consumerList);\n }", "public static void generateStateless() {\n Observable<String> myObservable = Observable.generate((emitter -> {\n System.out.pri...
[ "0.6635319", "0.64810634", "0.6436047", "0.6346916", "0.6344092", "0.6281219", "0.61726713", "0.6106239", "0.60722184", "0.60659", "0.6039107", "0.6026433", "0.60044014", "0.5981519", "0.5953431", "0.5945126", "0.59192735", "0.58993185", "0.58985484", "0.5861174", "0.5808083"...
0.6894028
0
Creates a Hot Observable The moment we call the publish() method on Observable.just() It Converts the Observable to a Connectable Observable Connectable Observable doesn't start its emission right after you subscribe The moment we call connect() method it starts emission Any Observer which subscribes after calling conn...
private static void createHotAndConnectableObservable() { var observable = Observable.just(1, 2, 3, 4, 5).publish(); observable.subscribe(item -> LOG.info("Connectable Observer 1: {}", item)); observable.subscribe(item -> LOG.info("Connectable Observer 2: {}", item)); pause(1000); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static <T> ConnectableObservable<T> create(Observable<? extends T> source) {\n PublishState<T> ps = new PublishState<>();\n return new OperatorPublish<>(source, ps);\n }", "private static void createColdObservable() {\n var observable = Observable.just(1, 2, 3, 4, 5);\n\n ob...
[ "0.6343003", "0.62546414", "0.5912867", "0.59060776", "0.5864067", "0.5820636", "0.5797016", "0.5791754", "0.576657", "0.5573815", "0.5550954", "0.55042976", "0.5503426", "0.55001235", "0.54846954", "0.5384537", "0.52278227", "0.5212021", "0.5188712", "0.51650155", "0.5164162...
0.86177754
0