query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub
@Override public void windowClosing(WindowEvent e) { System.out.println("触发windowClosing事件"); Object[] options = { "确定", "取消" }; int result = JOptionPane.showOptionDialog(null, "确定退出本窗口?", "提示", JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, null, options, options[0]); if(result == 0){ DownloadView.this.dispose();//关闭窗体 if(restListener!=null)restListener.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.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
but what if year and month are not in format???
private static String generateDateString(int year, int month, int dayOfMonth){ //Add one to month b/c Android is zero-based while SimpleDateFormatter is not month++; String yearString = String.format(Locale.getDefault(), "%04d", year); String monthString = String.format(Locale.getDefault(), "%02d", month); String dayOfMonthString = String.format(Locale.getDefault(), "%02d", dayOfMonth); String result = yearString + "." + monthString + "." + dayOfMonthString; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test public void Year_2__month__day()\t\t\t\t\t\t\t{tst_date_(\"03/31/2001\"\t\t\t\t, \"2001-03-31\");}", "@Test public void Year_0__month__day()\t\t\t\t\t\t\t{tst_date_(\"2001-03-31\"\t\t\t\t, \"2001-03-31\");}", "@Test public void Month_name_1__day__year__guess()\t\t\t\t{tst_date_(\"02 Mar 01\"\t\t\t\t, ...
[ "0.6652097", "0.6576376", "0.65243685", "0.651445", "0.6440659", "0.6416384", "0.6404499", "0.6390229", "0.6348734", "0.6338254", "0.62675077", "0.6222348", "0.62155765", "0.60976386", "0.60839576", "0.60625523", "0.60539925", "0.6040333", "0.6015361", "0.60113174", "0.599574...
0.0
-1
Devuelve la entidad por si Id
Usuario findById(long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean containsId(int Id) {\n try {\n Entity retValue = null; \n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT * FRO...
[ "0.67848617", "0.67641747", "0.6484233", "0.6432483", "0.64266443", "0.6390616", "0.63881814", "0.6366518", "0.6347138", "0.6332997", "0.6314305", "0.62872744", "0.62782377", "0.6209382", "0.6190617", "0.61704284", "0.6159766", "0.6130434", "0.6116258", "0.61160785", "0.61095...
0.0
-1
Obtiene Todos los cursos
List<Usuario> findAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getAllCursos() {\n String query = \"\";\n Conexion db = new Conexion();\n\n try {\n query = \"SELECT * FROM curso;\";\n Statement stm = db.conectar().createStatement();\n ResultSet rs = stm.executeQuery(query);\n\n while (rs.next()) {\n ...
[ "0.65823376", "0.6434567", "0.6055974", "0.59866875", "0.5918389", "0.5742652", "0.5728211", "0.5664589", "0.56514263", "0.56078726", "0.56077474", "0.55625284", "0.55608666", "0.5554733", "0.5539991", "0.5505057", "0.5502568", "0.5490373", "0.54873645", "0.5485272", "0.54731...
0.0
-1
Obtiene los usuario con estado > 0
@Query("SELECT u FROM Usuario u WHERE u.estado > 0") List<Usuario> obtenerUsuariosActivos();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getUsuarioSuscrito(){\n return !(suscribirClientBean.getUsuarioSuscrito(idOferta).length == 0);\r\n }", "private boolean comprobarUsuario(String nombre, String contrasenia, String grupo) {\n\n return true;\n }", "public boolean hasUser(){\n return numUser < MAX_USER;\n }"...
[ "0.6756977", "0.64380974", "0.63625145", "0.61966", "0.61612695", "0.6133471", "0.60757875", "0.6040128", "0.5861425", "0.58578914", "0.5855756", "0.58430666", "0.5767755", "0.5722759", "0.57170284", "0.5696962", "0.56837267", "0.5682084", "0.5674556", "0.5661145", "0.5655517...
0.6405034
2
get all download list from database
public void getDownloadItem() { List<Download> downloadList = dataSource.getDownloadLists(); DownloadListAdapter downloadListAdapter = new DownloadListAdapter(DownloadActivity.this, downloadList); recyclerViewDownloadList.setAdapter(downloadListAdapter); recyclerViewDownloadList.setLayoutManager(new LinearLayoutManager(this)); downloadListAdapter.notifyDataSetChanged(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<UploadDF> getAll() {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tList<UploadDF> list = session.createCriteria(UploadDF.class).addOrder(Order.desc(\"id\")).list();\n\t\t\tsession.getTransaction().commit();\n\t\t\treturn list;\n\t\t}catch...
[ "0.6698991", "0.6692516", "0.6558856", "0.6531353", "0.6461014", "0.64145947", "0.63858134", "0.6372907", "0.6282383", "0.62647253", "0.6262355", "0.6240543", "0.6088542", "0.6079143", "0.60744774", "0.597367", "0.5968437", "0.5966432", "0.59299743", "0.5929936", "0.59151185"...
0.5748529
48
Affiche le message dans la console
public void afficherMessage();
{ "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 showMessage(String message);", "public static void displayMsg() {\n\t}", "public void showMessage(String message) \r\n\...
[ "0.7212123", "0.720856", "0.7208409", "0.7181703", "0.7176213", "0.7138352", "0.71319103", "0.71280926", "0.7083962", "0.7068207", "0.7057897", "0.7030581", "0.7027842", "0.7027292", "0.6962945", "0.6961878", "0.69390947", "0.6935593", "0.69251454", "0.69118977", "0.69115424"...
0.0
-1
add a vehicle to the garage
public void addVehicle(Vehicle v) { vehicles.add(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addVehicle(Vehicle vehicle) {\n\t\tvehicleList.add(vehicle);\n\t\tSystem.out.println(vehicle.getMake() + \" added to garage!\");\n\t}", "public void addVehicle(Vehicle vehicle) {\n this.vehicles.add(vehicle);\n }", "public void addVehicle(Vehicle vehicle) {\n\t\tvehicles.add(vehicle);\n\t...
[ "0.80029285", "0.79530185", "0.7768063", "0.77064884", "0.77034706", "0.75871706", "0.73121434", "0.7295324", "0.7266963", "0.7229025", "0.7141671", "0.7026961", "0.6951744", "0.69446814", "0.6821052", "0.67723626", "0.6759044", "0.6704221", "0.6412956", "0.64051104", "0.6349...
0.7847286
2
populate the garage with vehicles
public void fillGarage() { for (int i = 0; i < 10; i++) { // 10 cars addVehicle(new Car("Silver", "Audi", "petrol", 250, 4, 40000)); } for (int i = 0; i < 20; i++) { // 20 motorcycles addVehicle(new Motorcycle("Red", "Suzuki", "petrol", 300, 2, 80000)); } for (int i = 0; i < 3; i++) { // 3 buses addVehicle(new Bus("White", "Volvo", "diesel", 140, 4, 100000)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void populateVehicleList() {\n\t\tfor (int i = 0; i < VEHICLE_LIST_SIZE; i++) {\n\t\t\tvehicleList[i] = createNewVehicle();\n\t\t}\n\t}", "public void viewVehiclesInGarage() {\n\t\tfor (Vehicle vehicle : vehicleList) {\n\t\t\tvehicle.print();\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "public void p...
[ "0.7476374", "0.6518172", "0.6446171", "0.64333254", "0.64046717", "0.6400899", "0.63259417", "0.59983855", "0.5909069", "0.5894866", "0.5874578", "0.58727676", "0.58689964", "0.5866083", "0.5838136", "0.58081657", "0.5781944", "0.5745372", "0.5690393", "0.568627", "0.568627"...
0.813857
0
Calculate bill for each type of vehicle
public int chargeVehicle() { int price = 0; for (int i = 0; i < vehicles.size(); i++) { if(vehicles.get(i) instanceof Car) { // charge 10 GBP per car price += 10; } else if(vehicles.get(i) instanceof Motorcycle) { // charge 5 GBP per motorcycle price += 5; } else if(vehicles.get(i) instanceof Bus) { // charge 25 GBP per bus price += 25; } } return price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int calculateBill() {\n\t\treturn chargeVehicle(); \n\t}", "private void calculateBill() {\n\t\tif (unit <= 100) {\r\n\t\t\tbill = unit * 5;\r\n\t\t}else if(unit<=200){\r\n\t\t\tbill=((unit-100)*7+500);\r\n\t\t}else if(unit<=300){\r\n\t\t\tbill=((unit-200)*10+1200);\r\n\t\t}else if(unit>300){\r\n\t\t\tbil...
[ "0.67871106", "0.63073534", "0.6280403", "0.6114767", "0.6040699", "0.58991086", "0.57881707", "0.5772392", "0.5744952", "0.5713955", "0.5575164", "0.5549508", "0.5538981", "0.55260044", "0.55074424", "0.5480327", "0.5475882", "0.5464903", "0.5428279", "0.5421355", "0.5380817...
0.5967232
5
remove all buses from the garage
public void removeVehicle () { for(int i = 0; i <= vehicles.size(); i++) { if(vehicles.get(i) instanceof Car) { continue; } else if(vehicles.get(i) instanceof Motorcycle) { continue; } else if(vehicles.get(i) instanceof Bus) { vehicles.remove(i); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeBalls() {\r\n for (Ball ball : this.ballsList) {\r\n ball.removeFromGame(this);\r\n }\r\n this.ballsList.clear();\r\n }", "public void resetArboles()\r\n {\r\n this.arboles = null;\r\n }", "public void clearBalls();", "public void removeFromSi...
[ "0.68310666", "0.6580089", "0.65655273", "0.6504228", "0.64408976", "0.6406448", "0.63249505", "0.62127936", "0.62111586", "0.61958", "0.6167323", "0.6151262", "0.61439013", "0.61367613", "0.60969144", "0.60969144", "0.60969144", "0.60969144", "0.60969144", "0.60969144", "0.6...
0.0
-1
calculate the total charge for all vehicles
public int calculateBill() { return chargeVehicle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int chargeVehicle() {\n\t\t\n\t\tint price = 0; \n\t\t\n\t\tfor (int i = 0; i < vehicles.size(); i++) {\n\t\t\t\n\t\t\tif(vehicles.get(i) instanceof Car) { // charge 10 GBP per car \n\t\t\t\tprice += 10;\n\t\t\t}\n\t\t\telse if(vehicles.get(i) instanceof Motorcycle) { // charge 5 GBP per motorcycle \n\t\t\t...
[ "0.7888359", "0.6837595", "0.67007774", "0.6627601", "0.6306137", "0.6302368", "0.62835133", "0.6269724", "0.61650956", "0.6116365", "0.6098116", "0.6085919", "0.5959664", "0.5959109", "0.5918069", "0.5915158", "0.59092706", "0.5902343", "0.5888233", "0.5878758", "0.5866228",...
0.6548585
4
empty the garage completely
public void vacateGarage() { vehicles.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear() {\r\n\t\tsize = 0;\r\n\t}", "public void clear() {\n\t\t\r\n\t}", "public void clear() {\n size = 0;\n }", "public void clear()\n {\n }", "private void clear() {\n }", "public final void clear() {\n clear(true);\n }", "public void clear() {\n\t\t...
[ "0.7174014", "0.716679", "0.71384144", "0.70666575", "0.7012645", "0.700166", "0.69982314", "0.6987298", "0.6987298", "0.6987298", "0.6987298", "0.6987298", "0.6987298", "0.6987298", "0.6987298", "0.6987298", "0.6987298", "0.6987298", "0.6987298", "0.6987298", "0.6987298", ...
0.0
-1
initialize controller and mock object the mock object will be automatically inject into the controller
@Before public void setup(){ MockitoAnnotations.initMocks(this); // create a standalone MVC Context to mocking mockMvc = MockMvcBuilders.standaloneSetup(customerController).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\r\n\tpublic void init() {\r\n\t\tMockitoAnnotations.initMocks(this);\r\n\t\tmockMvc = MockMvcBuilders.standaloneSetup(tokenController).build();\r\n\r\n\t\t// mockMvc = MockMvcBuilders.webAppContextSetup(context).build();\r\n\t}", "@BeforeEach\n public void initEach() {\n sut = new ApiKeyController(ap...
[ "0.8011271", "0.7359689", "0.725353", "0.71947515", "0.7147558", "0.713021", "0.70178473", "0.68358725", "0.6711686", "0.66852677", "0.6653395", "0.6578273", "0.6568835", "0.65408635", "0.6538354", "0.65157664", "0.64872074", "0.6459751", "0.6415912", "0.64153254", "0.6411809...
0.76874816
1
======================================= = Testing Unit = =======================================
@Test public void testListCustomers() throws Exception{ List<Customer> customers = new ArrayList<>(); customers.add(new Customer()); customers.add(new Customer()); when(customerService.listAll()).thenReturn((List) customers); mockMvc.perform(get("/customers")) .andExpect(status().isOk()) .andExpect(view().name("customer/customers")) .andExpect(model().attribute("customers", hasSize(2))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public void testWriteOrders() throws Exception {\n }", "public void testGetBasedata() {\n }", "@Test\n public void testAddACopy() {\n }", "@Test\n public void testGetProductInfo() throws Exception {\n }", "public void testSetBasedata()...
[ "0.7065176", "0.6970864", "0.69523007", "0.6939009", "0.69243073", "0.690071", "0.6871283", "0.68199456", "0.6811747", "0.6761578", "0.6711731", "0.669017", "0.6667608", "0.6660446", "0.66570556", "0.66534513", "0.66491884", "0.6640165", "0.6631356", "0.66204417", "0.6602179"...
0.0
-1
Service Interface for managing BindBank.
public interface UserCidService { /** * Save */ UserCidDTO save(UserCidDTO userCidDTO); HashMap<String,Object> checkSave(UserCidDTO userCidDTO); List<UserCidDTO> findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TransBankService {\n /**\n * 获的所有的银行\n * @return\n */\n List<TransBank> getBankList();\n\n TransBank getBank(String bankId);\n /**\n * 获得银行的信息\n * @param regionCode\n * @return\n */\n List<TransBank> getBankListByRegion(String regionCode);\n\n /**\n ...
[ "0.71687883", "0.698817", "0.68668956", "0.6810616", "0.6728567", "0.6595855", "0.64276767", "0.6384154", "0.62577385", "0.6223979", "0.6199916", "0.61874366", "0.61468494", "0.613599", "0.6112544", "0.6095716", "0.6081535", "0.608142", "0.6042142", "0.59658337", "0.5952748",...
0.0
-1
C++ TO JAVA CONVERTER TODO TASK: The implementation of the following method could not be found: int j(int x);
public static int Main() { int[] b = new int[12]; int w; int i; int[] a = {13, 44, 72, 103, 133, 164, 194, 225, 256, 286, 317, 347}; String tempVar = ConsoleInput.scanfRead(); if (tempVar != null) { w = Integer.parseInt(tempVar); } for (i = 0;i < 12;i++) { b[i] = a[i] % 7 - 1; b[i] = (b[i] + w) % 7; } for (i = 0;i < 12;i++) { if (b[i] == 5) { System.out.printf("%d\n",i + 1); } } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void j() {\n }", "public abstract int a(long j2, int i2);", "public void mo9223a(long j, int i, int i2) {\n }", "public abstract void mo9811b(int i, long j);", "public abstract int mo9745j();", "public int j() {\n \treturn j; \n }", "public abstract AbstractC5663d mo39570a(long j, in...
[ "0.64970034", "0.6343328", "0.6248956", "0.6218174", "0.6217151", "0.61998826", "0.61668116", "0.61425066", "0.6138536", "0.6112295", "0.60917854", "0.6087146", "0.60798794", "0.6075007", "0.6067451", "0.6043189", "0.6028741", "0.60127324", "0.6005791", "0.5987971", "0.597932...
0.0
-1
Parse the JSON Object from the Udacity Server, extracting the values associated with the given keys. Add the values to the fields inside the Recipe Object, and add the object to the ArrayList of Recipe objects
public static List<Recipe> parseJson(String recipeJson) { //Verify Json is valid if (TextUtils.isEmpty(recipeJson)) { return null; } try { //Instantiate a JsonArray containing the response from the network request JSONArray baseJsonArray = new JSONArray(recipeJson); //Iterate through the list of objects inside the first array for (int i = 0; i < baseJsonArray.length(); i++) { //Get the first object in the list of objects from the baseJson JSONObject jsonObject = baseJsonArray.getJSONObject(i); //Get the name of the recipe String recipeName = jsonObject.optString(JSON_RECIPE_NAME); //Get the array listing the various ingredients JSONArray ingredients = jsonObject.optJSONArray(JSON_RECIPE_INGREDIENTS); //Generate a list of the amount, measure, and names of the ingredients ArrayList<String> ingredientList = ingredientParse(ingredients); //Get the array listing the recipe steps, and videos JSONArray steps = jsonObject.optJSONArray(JSON_RECIPE_STEPS); //Generate a list of short recipe steps ArrayList<String> briefList = briefDescriptionParse(steps); //Generate a list of detailed recipe steps ArrayList<String> detailedList = detailedDescriptionParse(steps); //Generate a list of video URLs ArrayList<String> videoUrlList = videoUrlParse(steps); //Generate a list of thumbnail URLs ArrayList<String> thumbnailUrlList = thumbnailParse(steps); recipes.add(new Recipe( recipeName, ingredientList, briefList, detailedList, videoUrlList, thumbnailUrlList)); } } catch (JSONException e) { Log.e(LOG_TAG, "JSON Error", e); } return recipes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static ArrayList<Recipe> convertJsonToRecipeObjects() throws JSONException {\n //Convert fullJsonMoviesData to JsonObject\n String urlResponse = null;\n URL jsonURL = buildUrl();\n try {\n urlResponse = getResponseFromHttpUrl(jsonURL);\n } catch (Exception e) {\...
[ "0.65890646", "0.658738", "0.5983225", "0.597028", "0.58252907", "0.56983626", "0.5688938", "0.54676974", "0.5386742", "0.5284537", "0.52415204", "0.52164733", "0.51558805", "0.50306666", "0.50223154", "0.5020367", "0.5011275", "0.5000616", "0.49621657", "0.49583206", "0.4954...
0.6808225
0
HELPER METHODS Parse the list of Ingredient Objects and create an ArrayList
private static ArrayList<String> ingredientParse (JSONArray array) { ArrayList<String> list = new ArrayList<>(); for (int index = 0; index < array.length(); index++) { try { JSONObject ingredientObject = array.getJSONObject(index); double quantity = ingredientObject.optDouble(JSON_QUANTITY); String measure = ingredientObject.optString(JSON_MEASURE); String ingredient = ingredientObject.optString(JSON_INGREDIENT); list.add(quantity + " " + measure + " " + ingredient + "\n"); } catch (JSONException e) { e.printStackTrace(); } } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Ingredient> toIngredient(List<String> ingredientsList) {\n\t\tList<Ingredient> ingredients = new ArrayList<Ingredient>();\n\t\tfor (int i = 0; i < ingredientsList.size(); i++) {\n\t\t\tingredients.add(new Ingredient(ingredientsList.get(i)));\n\t\t}\n\t\treturn ingredients;\n\t}", "public ArrayList<St...
[ "0.70530283", "0.69459885", "0.68255764", "0.6789682", "0.64043576", "0.63074696", "0.63025", "0.62431544", "0.6168134", "0.6147892", "0.6068835", "0.6034965", "0.59928024", "0.597532", "0.585606", "0.583377", "0.58201236", "0.5784021", "0.57557476", "0.5719643", "0.5711928",...
0.6820602
3
this will never be called
@Override public void onClick(DialogInterface dialog, int which) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@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}", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\...
[ "0.7095382", "0.70567584", "0.6876691", "0.6728307", "0.6722757", "0.67088574", "0.67019296", "0.6681685", "0.6681685", "0.66792643", "0.6627785", "0.6602804", "0.6521864", "0.65211284", "0.6513337", "0.6484387", "0.6484387", "0.6455773", "0.6437185", "0.64234835", "0.6402153...
0.0
-1
this will never be called
@Override public void onClick(DialogInterface dialog, int which) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@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}", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\...
[ "0.7095382", "0.70567584", "0.6876691", "0.6728307", "0.6722757", "0.67088574", "0.67019296", "0.6681685", "0.6681685", "0.66792643", "0.6627785", "0.6602804", "0.6521864", "0.65211284", "0.6513337", "0.6484387", "0.6484387", "0.6455773", "0.6437185", "0.64234835", "0.6402153...
0.0
-1
setting the fonts, colours, images and titles in the window and for the buttons as well as the frame. adding all of these features to the main menu GUI
public Window(){ //character is updated File fi=new File("./config/character"); _character=(new FileHandling()).readFromFile(fi); txtrHiThere.setFont(new Font("Lucida Sans", Font.BOLD, 13)); txtrHiThere.setText(" "); txtrHiThere.setBackground(new Color(255, 250, 205)); txtrHiThere.setBounds(252, 470, 198, 100); txtrHiThere.setEditable(false); panel.addMouseMotionListener(new MouseMotionAdapter() { @Override public void mouseMoved(MouseEvent e) { //updates speech bubble txtrHiThere.setText(null); txtrHiThere.append("Hi guys! I am "+_character+"\nLet's learn words together\nwith VOXSPELL."+" Move your\nmouse over each of these\n buttons to see what they do"); } }); panel.add(txtrHiThere); txtrHiThere.append("Hi guys! I am "+_character+"\nLet's learn words together\nwith VOXSPELL."+" Move your\nmouse over each of these\n buttons to see what they do"); panel.setBackground(new Color(0, 128, 128)); panel.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 100, 0))); panel.setPreferredSize(new Dimension(800, 880)); panel.setLayout(null); btnN.addMouseMotionListener(new MouseMotionAdapter() { @Override public void mouseMoved(MouseEvent e) { //updates speech bubble txtrHiThere.setText(null); txtrHiThere.append("You will be asked to\nspell 10 words"+"from the level you\npick when you click on the\nlittle arrow below the button"); } }); btnN.setBounds(509, 593, 263, 65); btnN.setFont(new Font("Purisa", Font.BOLD, 18)); btnN.setBackground(new Color(255, 250, 205)); //adding buttons panel.add(btnN); btnN.addActionListener(this); btnR.addMouseMotionListener(new MouseMotionAdapter() { @Override public void mouseMoved(MouseEvent e) { //updates speech bubble txtrHiThere.setText(null); txtrHiThere.append("You will be asked to review\nsome of the mistakes in the\npast quizzes. If you haven't\nstarted one already,don't\nworry about it. Start\na new quiz instead. :)"); } }); btnR.setBounds(568, 792, 204, 65); btnR.setFont(new Font("Purisa", Font.BOLD, 18)); btnR.setBackground(new Color(255, 250, 205)); panel.add(btnR); comboBox.setModel(new DefaultComboBoxModel(new String[] {"1", "2", "3","4","5","6","7","8","9","10","11"})); comboBox.setBounds(509, 705, 263, 24); panel.add(comboBox); btnS.addMouseMotionListener(new MouseMotionAdapter() { @Override public void mouseMoved(MouseEvent e) { //updates speech bubble txtrHiThere.setText(null); txtrHiThere.append(" Here you can change\n all your settings: like\n deleting saved progress,\n changing voices and\n getting a new wordlist"); } }); btnS.setBounds(25, 792, 170, 65); btnS.setFont(new Font("Purisa", Font.BOLD, 19)); btnS.setBackground(new Color(255, 250, 205)); panel.add(btnS); btnR.addActionListener(this); btnS.addActionListener(this); getContentPane().add(panel, BorderLayout.SOUTH); JLabel lblSelectLevel = new JLabel("Select Level"); lblSelectLevel.setBounds(334, 696, 157, 33); lblSelectLevel.setForeground(new Color(255, 250, 240)); lblSelectLevel.setFont(new Font("Purisa", Font.BOLD, 20)); panel.add(lblSelectLevel); JLabel lblNewLabel = new JLabel(""); lblNewLabel.setBounds(-231, -25, 1056, 436); lblNewLabel.setIcon(new ImageIcon("./resources/main_menu_image.jpg")); panel.add(lblNewLabel); JLabel lblNewLabel_1 = new JLabel(""); lblNewLabel_1.setIcon(new ImageIcon("./resources/"+_character+"_2.png")); lblNewLabel_1.setBounds(54, 485, 180, 297); panel.add(lblNewLabel_1); //window listener to show a pop up when user tries to close the application addWindowListener(new WindowAdapter() { //code obtained from http://docs.oracle.com/javase/tutorial/uiswing/components/dialog.html public void windowClosing(WindowEvent e) { Object[] options = {"Yes, Please", "No I want to stay!"}; int num = JOptionPane.showOptionDialog(panel, "Are you sure you want to leave the game already?", "Attention!", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, options,null); //if yes if(num==0){ setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } //otherwise else{ setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); } } }); JLabel lblNewLabel_2 = new JLabel(""); lblNewLabel_2.setIcon(new ImageIcon("./resources/bubble_main.png")); lblNewLabel_2.setBounds(207, 423, 281, 200); panel.add(lblNewLabel_2); JButton progbutton = new JButton("See how you're going!"); progbutton.addMouseMotionListener(new MouseMotionAdapter() { @Override public void mouseMoved(MouseEvent e) { //speech bubble updated txtrHiThere.setText(null); txtrHiThere.append(" Here, you can see how you\n are going! It will show you\n how many words you have\n mastered as well as a cool\n graph to help you see\n your performance"); } }); progbutton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //leads to the statistics window PersonalBests s=new PersonalBests(); dispose(); s.setVisible(true); } }); progbutton.setBackground(new Color(255, 250, 205)); progbutton.setFont(new Font("Purisa", Font.BOLD, 16)); progbutton.setBounds(231, 792, 292, 65); panel.add(progbutton); pack(); setTitle("Welcome to the VOXSPELL Spelling Aid"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setLocationRelativeTo(null); setResizable(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void initGUI(){\n\t\t// use border layout for our main frame\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t// create a new TitlePage and add it to the GUI. This is initially the only instantiated item\n\t\ttitlePage = new TitlePage(this);\n\t\tadd(titlePage);\n\t\t\n\t\tsetBackground( new Color(30, 130, 76) );\t/...
[ "0.74497586", "0.73811656", "0.7270953", "0.72615874", "0.7204111", "0.7158064", "0.7130989", "0.7102753", "0.7101332", "0.7081586", "0.7077135", "0.7063115", "0.7036585", "0.7027168", "0.7026152", "0.70031756", "0.6996287", "0.6992255", "0.6978245", "0.6974488", "0.6959697",...
0.0
-1
leads to the statistics window
public void actionPerformed(ActionEvent e) { PersonalBests s=new PersonalBests(); dispose(); s.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void statsAction() {\n StatsWin newWindow = getSelectedCell().mkStatsWin();\n WindowUtils.avoidParent(newWindow, parentFrame);\n watchers.add(newWindow);\n }", "private void reCalcularWindows(){\n }", "public void updateStatisticsData() {\r\n\t\tif (this.statisticsTabItem != n...
[ "0.73564404", "0.66273165", "0.6468676", "0.64274657", "0.6426693", "0.6387972", "0.635583", "0.62724733", "0.6256255", "0.61405015", "0.612743", "0.6099315", "0.6091212", "0.6082602", "0.6060837", "0.60173124", "0.6016345", "0.59865195", "0.59529406", "0.58970845", "0.587687...
0.0
-1
running the main menu GUI on initial start up.
public void windowClosing(java.awt.event.WindowEvent windowEvent) { if (JOptionPane.showConfirmDialog(panel, "Are you sure to close this window?", "Attention!", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION){ System.exit(0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public startingMenu() {\r\n initComponents();\r\n }", "public void initMenu(){\n\t}", "public static void launch() {\r\n\t\tint choice = EXIT;\r\n\t\tdo {\r\n\t\t\tchoice = displayMenu();\r\n\t\t\texecuteMenuItem(choice);\r\n\t\t} while (choice != EXIT);\r\n\t}", "private void initialize() {\r\n ...
[ "0.75782454", "0.7210457", "0.7189909", "0.7174388", "0.7133439", "0.708789", "0.70800024", "0.70742977", "0.7071622", "0.70691985", "0.70634896", "0.7058481", "0.7058307", "0.7043568", "0.70315456", "0.6973392", "0.6924273", "0.69179034", "0.69100636", "0.688635", "0.6870892...
0.0
-1
Inserts a new row in the sgfens_pedido_producto table.
public SgfensPedidoProductoPk insert(SgfensPedidoProducto dto) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert(ProdutoPedido produtoPedido) {\n\t\tem.getTransaction().begin();\n\t\tem.persist(produtoPedido);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\t\temf.close();\n\t}", "public void insertNewProduto(ProdutoTO produto){\n\t\ttry {\n\t\t\tmodelProduto.insertNewProduto(produto);\n\t\t\tsuper...
[ "0.6855455", "0.6703213", "0.64595085", "0.6358947", "0.6358723", "0.6289244", "0.62717736", "0.62698275", "0.62612015", "0.62447923", "0.62424374", "0.6241238", "0.62337625", "0.62199897", "0.61781126", "0.6177487", "0.61604065", "0.61309695", "0.6106681", "0.6099358", "0.60...
0.68057287
1
Updates a single row in the sgfens_pedido_producto table.
public void update(SgfensPedidoProductoPk pk, SgfensPedidoProducto dto) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProveedorEntity updateProveedor(Long id_pago, ProveedorEntity proveedor){\n ProveedorEntity proveedorEntity = proveedorPersistence.update(proveedor);\n return proveedorEntity;\n }", "@Override\n\tpublic void editar(ProdutoPedido produtoPedido) {\n\t\tdao.update(produtoPedido);\n\t}", "@...
[ "0.68581396", "0.6801628", "0.64553654", "0.63447857", "0.62956303", "0.6291415", "0.627736", "0.62762845", "0.6275297", "0.62506604", "0.6244455", "0.61805826", "0.61564296", "0.6136486", "0.60419005", "0.60351586", "0.6032025", "0.60244244", "0.601896", "0.6016863", "0.6015...
0.70521706
0
Deletes a single row in the sgfens_pedido_producto table.
public void delete(SgfensPedidoProductoPk pk) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteProveedor (Long id_proveedor){\n proveedorPersistence.delete(id_proveedor);\n }", "@Delete({\n \"delete from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n int deleteByPrimaryKey(Long idSoggetto);", "public void el...
[ "0.7337183", "0.6982083", "0.6950407", "0.69399464", "0.6808016", "0.6806723", "0.6711378", "0.6704109", "0.6699876", "0.6694093", "0.66789204", "0.66522163", "0.66285974", "0.6582788", "0.6570374", "0.6548588", "0.6544602", "0.6519436", "0.65097445", "0.6479255", "0.647613",...
0.7638367
0
Returns the rows from the sgfens_pedido_producto table that matches the specified primarykey value.
public SgfensPedidoProducto findByPrimaryKey(SgfensPedidoProductoPk pk) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public ProductosPuntoVenta findByPrimaryKey(Integer idPuntoVenta,\r\n Integer idProducto) throws ProductosPuntoVentaDaoException {\r\n ProductosPuntoVenta[] ret = findByDynamicSelect(SQL_SELECT\r\n + \" WHERE id_pdv = ? AND id_producto = ?\", new Object[] {\r\n ...
[ "0.66776377", "0.66238904", "0.6415193", "0.63918227", "0.6241976", "0.62138844", "0.6151456", "0.6112614", "0.6024908", "0.60154015", "0.59575593", "0.59225297", "0.5880238", "0.58697486", "0.58691853", "0.5820611", "0.5819825", "0.57919484", "0.5790774", "0.57903445", "0.57...
0.711805
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'ID_PEDIDO = :idPedido AND ID_CONCEPTO = :idConcepto'.
public SgfensPedidoProducto findByPrimaryKey(int idPedido, int idConcepto) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findWhereIdConceptoEquals(int idConcepto) throws SgfensPedidoProductoDaoException;", "public SgfensPedidoProducto[] findWhereIdPedidoEquals(int idPedido) throws SgfensPedidoProductoDaoException;", "@Override\r\n public ProductosPuntoVenta[] findByProducto(Integer idProducto)\r\...
[ "0.6980257", "0.6917965", "0.6559193", "0.62814003", "0.6273163", "0.6245627", "0.6243226", "0.62420905", "0.61966926", "0.6169178", "0.6162142", "0.6148656", "0.60809207", "0.60716075", "0.6030132", "0.60161227", "0.600593", "0.59866565", "0.59404254", "0.59279346", "0.59226...
0.68810725
2
Returns all rows from the sgfens_pedido_producto table that match the criteria ''.
public SgfensPedidoProducto[] findAll() throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findWhereUnidadEquals(String unidad) throws SgfensPedidoProductoDaoException;", "public SgfensPedidoProducto[] findWhereComentariosEquals(String comentarios) throws SgfensPedidoProductoDaoException;", "public SgfensPedidoProducto[] findWhereIdentificacionEquals(String identificaci...
[ "0.6749203", "0.6703222", "0.6585278", "0.63600445", "0.626345", "0.62392926", "0.62093776", "0.61952287", "0.6176639", "0.61331826", "0.6021486", "0.60194224", "0.60149854", "0.6012858", "0.600921", "0.600234", "0.60004836", "0.59795344", "0.59717876", "0.5970845", "0.596556...
0.62181604
6
Returns all rows from the sgfens_pedido_producto table that match the criteria 'ID_PEDIDO = :idPedido'.
public SgfensPedidoProducto[] findWhereIdPedidoEquals(int idPedido) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public ProductosPuntoVenta[] findByProducto(Integer idProducto)\r\n throws ProductosPuntoVentaDaoException {\r\n return findByDynamicSelect(SQL_SELECT + \" WHERE id_producto = ?\",\r\n new Object[] { idProducto });\r\n }", "public ArrayList<PedidoProduto> sele...
[ "0.71979207", "0.6673304", "0.6613298", "0.6589095", "0.65712607", "0.6548903", "0.6535551", "0.650105", "0.6456175", "0.64307517", "0.6367619", "0.6328566", "0.632656", "0.6312738", "0.62640697", "0.6254935", "0.6247173", "0.62196654", "0.61913687", "0.61455804", "0.6141169"...
0.76253974
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'ID_CONCEPTO = :idConcepto'.
public SgfensPedidoProducto[] findWhereIdConceptoEquals(int idConcepto) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto findByPrimaryKey(int idPedido, int idConcepto) throws SgfensPedidoProductoDaoException;", "@Override\n public List<FecetProrrogaOrden> findWhereIdContribuyenteEquals(final BigDecimal idContribuyente) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQ...
[ "0.6722596", "0.64354694", "0.6232141", "0.614438", "0.6092926", "0.6011397", "0.5996409", "0.5894058", "0.58789164", "0.5806944", "0.58013743", "0.57871264", "0.57691425", "0.57286423", "0.57142234", "0.57019323", "0.5684599", "0.56778926", "0.5649661", "0.5586892", "0.55815...
0.7421242
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'DESCRIPCION = :descripcion'.
public SgfensPedidoProducto[] findWhereDescripcionEquals(String descripcion) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NominaPuesto[] findWhereDescripcionEquals(String descripcion) throws NominaPuestoDaoException;", "@Override\n\tpublic Pais findByNombre(String descripcion) {\n\t\treturn (Pais) getSession().createQuery(\"from Pais where descripcion = :descripcion\").setParameter(\"descripcion\", descripcion).uniqueResult(...
[ "0.66025525", "0.6531464", "0.62618345", "0.6245837", "0.6206268", "0.61777174", "0.61602336", "0.595655", "0.5890779", "0.5869599", "0.575078", "0.57432544", "0.57338464", "0.57211345", "0.56816655", "0.56453675", "0.5627931", "0.562717", "0.5618233", "0.5613434", "0.5609391...
0.72900754
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'UNIDAD = :unidad'.
public SgfensPedidoProducto[] findWhereUnidadEquals(String unidad) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findWhereIdentificacionEquals(String identificacion) throws SgfensPedidoProductoDaoException;", "public SgfensPedidoProducto[] findWherePrecioUnitarioEquals(double precioUnitario) throws SgfensPedidoProductoDaoException;", "public List<CXPFactura> buscarFacturasPorRequisitar(final...
[ "0.5940178", "0.5924437", "0.56028044", "0.55107164", "0.54891646", "0.54702747", "0.5466403", "0.54243684", "0.54222023", "0.5401255", "0.5384518", "0.5366353", "0.53651965", "0.5337648", "0.5313982", "0.5312617", "0.53100467", "0.52935094", "0.5288993", "0.5274834", "0.5273...
0.76751995
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'IDENTIFICACION = :identificacion'.
public SgfensPedidoProducto[] findWhereIdentificacionEquals(String identificacion) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findWhereIdClasificacionEquals(int idClasificacion) throws SgfensPedidoProductoDaoException;", "public SgfensPedidoProducto[] findWhereUnidadEquals(String unidad) throws SgfensPedidoProductoDaoException;", "public SgfensPedidoProducto[] findWhereComentariosEquals(String comentario...
[ "0.6508119", "0.6449964", "0.60779506", "0.5968479", "0.5860674", "0.5823285", "0.5819078", "0.5719971", "0.5712051", "0.563524", "0.56020665", "0.5598821", "0.5562039", "0.55609906", "0.5520591", "0.5485444", "0.5484055", "0.5476474", "0.54633486", "0.54607344", "0.5441925",...
0.7600449
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'CANTIDAD = :cantidad'.
public SgfensPedidoProducto[] findWhereCantidadEquals(double cantidad) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findWhereCantidadEntregadaEquals(double cantidadEntregada) throws SgfensPedidoProductoDaoException;", "public RelacionConceptoEmbalaje[] findWhereCantidadEquals(double cantidad) throws RelacionConceptoEmbalajeDaoException;", "@Override\r\n public ProductosPuntoVenta[] findByPro...
[ "0.66426826", "0.61883444", "0.6141649", "0.6022464", "0.6021047", "0.5953118", "0.59529865", "0.5943347", "0.59427863", "0.5784089", "0.5723118", "0.5701311", "0.5629614", "0.5611586", "0.5602968", "0.55977917", "0.5594353", "0.55898935", "0.55840075", "0.55665004", "0.55623...
0.7131359
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'PRECIO_UNITARIO = :precioUnitario'.
public SgfensPedidoProducto[] findWherePrecioUnitarioEquals(double precioUnitario) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findWhereCostoUnitarioEquals(double costoUnitario) throws SgfensPedidoProductoDaoException;", "public SgfensPedidoProducto[] findWhereUnidadEquals(String unidad) throws SgfensPedidoProductoDaoException;", "@Query(value = \"SELECT * FROM proveedor where (:idTipoProveedor \"\n ...
[ "0.66818905", "0.6359892", "0.617695", "0.60173017", "0.6009308", "0.59235555", "0.58995664", "0.5890193", "0.58808416", "0.5870757", "0.584854", "0.584439", "0.5836461", "0.583404", "0.5753771", "0.5727222", "0.57088375", "0.5636742", "0.5626879", "0.56220746", "0.5607343", ...
0.7762966
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'DESCUENTO_PORCENTAJE = :descuentoPorcentaje'.
public SgfensPedidoProducto[] findWhereDescuentoPorcentajeEquals(double descuentoPorcentaje) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findWhereDescuentoMontoEquals(double descuentoMonto) throws SgfensPedidoProductoDaoException;", "@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n public java.util.Collection findPlanMedioMesByValorDescuento(java.math.BigDecimal valorDescuento) {\r\n\r\n String qu...
[ "0.6908186", "0.6360077", "0.634778", "0.6222486", "0.60642207", "0.5922428", "0.5853945", "0.58451265", "0.5829322", "0.5805728", "0.5805362", "0.5766359", "0.57353526", "0.5732361", "0.571749", "0.57043177", "0.56883276", "0.56765026", "0.5654341", "0.5648534", "0.56123656"...
0.7274446
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'DESCUENTO_MONTO = :descuentoMonto'.
public SgfensPedidoProducto[] findWhereDescuentoMontoEquals(double descuentoMonto) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n public java.util.Collection findPlanMedioMesByValorDescuento(java.math.BigDecimal valorDescuento) {\r\n\r\n String queryString = \"from PlanMedioMesEJB e where e.valorDescuento = :valorDescuento \";\r\n // Add a an order by on all primary ke...
[ "0.6716816", "0.6507345", "0.59580344", "0.5877839", "0.57008827", "0.56325823", "0.56232613", "0.559207", "0.55875355", "0.55457175", "0.55099416", "0.55002844", "0.5484506", "0.5483098", "0.5481289", "0.5464146", "0.54553217", "0.5408504", "0.5398649", "0.5381963", "0.53632...
0.7508799
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'SUBTOTAL = :subtotal'.
public SgfensPedidoProducto[] findWhereSubtotalEquals(double subtotal) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<Subproducto> listarSubproducto(EntityManager sesion, Subproducto subproducto);", "public Collection<VistaProveedorDTO> buscarProveedorPorSubbodega(OrdenCompraContingenciaPedidoAsistidoVO parametrosBusqueda, Integer firstResult, Integer maxResult) ;", "BigDecimal getSubtotal();", "void se...
[ "0.6070163", "0.6069709", "0.60200524", "0.59102726", "0.5676225", "0.56410086", "0.5531659", "0.5485606", "0.54188883", "0.5386223", "0.5369296", "0.5369296", "0.5344788", "0.5325743", "0.52487636", "0.52093655", "0.5153184", "0.51478714", "0.5124172", "0.5083112", "0.506460...
0.8042539
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'COSTO_UNITARIO = :costoUnitario'.
public SgfensPedidoProducto[] findWhereCostoUnitarioEquals(double costoUnitario) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findWherePrecioUnitarioEquals(double precioUnitario) throws SgfensPedidoProductoDaoException;", "public SgfensPedidoProducto[] findWhereUnidadEquals(String unidad) throws SgfensPedidoProductoDaoException;", "public SgfensPedidoProducto[] findWhereComentariosEquals(String comentari...
[ "0.677244", "0.60757816", "0.5943511", "0.5852942", "0.57570314", "0.57024765", "0.5669441", "0.5651231", "0.56452256", "0.56439406", "0.5632523", "0.5622815", "0.5610037", "0.5603798", "0.5580834", "0.5566181", "0.55475867", "0.5537105", "0.55241185", "0.55158925", "0.551507...
0.74638796
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'PORCENTAJE_COMISION_EMPLEADO = :porcentajeComisionEmpleado'.
public SgfensPedidoProducto[] findWherePorcentajeComisionEmpleadoEquals(double porcentajeComisionEmpleado) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findWhereComentariosEquals(String comentarios) throws SgfensPedidoProductoDaoException;", "@Query(value = \"SELECT * FROM proveedor where (:idTipoProveedor \"\n + \"= 0 or idTipoProveedor=:idTipoProveedor) and (:idLocalidad \"\n + \"= 0 or idLocalidad=:idLocali...
[ "0.6390023", "0.61240184", "0.60551775", "0.6022716", "0.60220605", "0.60051817", "0.59785885", "0.59756285", "0.5939052", "0.59236735", "0.58850783", "0.5876176", "0.5801687", "0.57886654", "0.578339", "0.57708144", "0.5770178", "0.5769651", "0.57618076", "0.5758541", "0.574...
0.71730024
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'CANTIDAD_ENTREGADA = :cantidadEntregada'.
public SgfensPedidoProducto[] findWhereCantidadEntregadaEquals(double cantidadEntregada) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findWhereCantidadEquals(double cantidad) throws SgfensPedidoProductoDaoException;", "public SgfensPedidoProducto[] findWhereFechaEntregaEquals(Date fechaEntrega) throws SgfensPedidoProductoDaoException;", "public RelacionConceptoEmbalaje[] findWhereCantidadEquals(double cantidad) ...
[ "0.691811", "0.61743665", "0.61731005", "0.60938585", "0.597939", "0.59228295", "0.59179115", "0.58951944", "0.58618855", "0.5847117", "0.58040446", "0.57778597", "0.5744128", "0.5732734", "0.56573343", "0.5594336", "0.55691195", "0.5559343", "0.54969454", "0.5495836", "0.547...
0.7235258
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'FECHA_ENTREGA = :fechaEntrega'.
public SgfensPedidoProducto[] findWhereFechaEntregaEquals(Date fechaEntrega) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<FecetProrrogaOrden> findWhereFechaFirmaEquals(Date fechaFirma) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_SELECT).append(SQL_ALL_COLUMNS).append(SQL_FROM).append(getTableName())\n .append(\" WHERE FECHA_FIRMA = ? ORDER BY FECHA_FIRM...
[ "0.6972869", "0.6600244", "0.65747815", "0.6399678", "0.6346512", "0.6286421", "0.61950284", "0.6183847", "0.6104801", "0.60448486", "0.60068357", "0.60031474", "0.59421325", "0.5941315", "0.5938322", "0.5930982", "0.592127", "0.5913557", "0.5912031", "0.5903964", "0.5886296"...
0.7803694
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'ESTATUS = :estatus'.
public SgfensPedidoProducto[] findWhereEstatusEquals(short estatus) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<FecetProrrogaOrden> findWhereIdEstatusIdOrdenEquals(final BigDecimal estado, BigDecimal idOrden) {\n StringBuilder query = new StringBuilder();\n query.append(SQL_SELECT).append(SQL_ALL_COLUMNS).append(SQL_FROM).append(getTableName());\n query.append(\" WHERE ID_ORDE...
[ "0.6673916", "0.63716966", "0.62499464", "0.6196883", "0.61199397", "0.6089909", "0.60139763", "0.5986747", "0.59661305", "0.5706558", "0.5669159", "0.5574393", "0.55184954", "0.54539025", "0.5431364", "0.53943855", "0.53930885", "0.53757817", "0.5371651", "0.53696537", "0.53...
0.7304483
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'id_Almacen_Origen = :idAlmacenOrigen'.
public SgfensPedidoProducto[] findWhereIdAlmacenOrigenEquals(int idAlmacenOrigen) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<FecetProrrogaOrden> findWhereIdProrrogaEquals(BigDecimal idProrroga) {\n\n StringBuilder query = new StringBuilder();\n query.append(SQL_SELECT).append(SQL_ALL_COLUMNS).append(SQL_FROM).append(getTableName())\n .append(\" WHERE ID_PRORROGA_ORDEN = ? ORDER BY ...
[ "0.68822324", "0.6444281", "0.6383116", "0.63407236", "0.62753", "0.6240923", "0.61998796", "0.6185798", "0.6167448", "0.6164216", "0.61476713", "0.6118605", "0.61010814", "0.6100246", "0.60554796", "0.60545653", "0.599259", "0.59878623", "0.5975751", "0.5932196", "0.5927207"...
0.79582804
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'APTO_PARA_VENTA = :aptoParaVenta'.
public SgfensPedidoProducto[] findWhereAptoParaVentaEquals(double aptoParaVenta) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public ProductosPuntoVenta[] findByPuntoVenta(Integer idPuntoVenta)\r\n throws ProductosPuntoVentaDaoException {\r\n return findByDynamicSelect(SQL_SELECT + \" WHERE id_pdv = ?\",\r\n new Object[] { idPuntoVenta });\r\n }", "@Override\r\n public ProductosPu...
[ "0.6873144", "0.6814443", "0.6508284", "0.6447737", "0.6375466", "0.630746", "0.62736964", "0.6252246", "0.618885", "0.60111105", "0.5987986", "0.5987623", "0.5981542", "0.5966428", "0.59395325", "0.5895171", "0.5845436", "0.58095723", "0.58036137", "0.5765737", "0.5734698", ...
0.7247009
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'NO_APTO_PARA_VENTA = :noAptoParaVenta'.
public SgfensPedidoProducto[] findWhereNoAptoParaVentaEquals(double noAptoParaVenta) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findWhereAptoParaVentaEquals(double aptoParaVenta) throws SgfensPedidoProductoDaoException;", "@Override\r\n public ProductosPuntoVenta[] findByPuntoVenta(Integer idPuntoVenta)\r\n throws ProductosPuntoVentaDaoException {\r\n return findByDynamicSelect(SQL_SELEC...
[ "0.69931555", "0.6689523", "0.66315705", "0.6470416", "0.638277", "0.62318116", "0.6150536", "0.60776365", "0.60618955", "0.6026005", "0.5998933", "0.59802014", "0.59761757", "0.5962395", "0.5946052", "0.5890182", "0.585412", "0.5830781", "0.58033913", "0.5714447", "0.5697832...
0.7013138
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'ID_CLASIFICACION = :idClasificacion'.
public SgfensPedidoProducto[] findWhereIdClasificacionEquals(int idClasificacion) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findWhereIdentificacionEquals(String identificacion) throws SgfensPedidoProductoDaoException;", "@Override\n\tpublic List<Producto> productos(int id) {\n\n\t\tQuery query = entity.createQuery(\"FROM Seccion s WHERE s.id =: id_seccion\",Seccion.class);\n\t\tquery.setParameter(\"id_se...
[ "0.6637476", "0.6290505", "0.6265425", "0.61949366", "0.6127397", "0.61118203", "0.6073922", "0.60415214", "0.60159117", "0.59299767", "0.5928777", "0.5907531", "0.5887444", "0.58471215", "0.5843371", "0.5838384", "0.58266103", "0.58184284", "0.58067626", "0.5776658", "0.5744...
0.74948955
0
Returns all rows from the sgfens_pedido_producto table that match the criteria 'COMENTARIOS = :comentarios'.
public SgfensPedidoProducto[] findWhereComentariosEquals(String comentarios) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensBanco[] findWhereComentariosEquals(String comentarios) throws SgfensBancoDaoException;", "@Override\n\tpublic List<Comisiones> buscar(Comisiones comisiones) {\n\t\tEntityManager manager = createEntityManager();\n\t\tCriteriaBuilder builder = manager.getCriteriaBuilder();\n\t\t\n\t\tCriteriaQuery<Com...
[ "0.7148809", "0.6294366", "0.6265672", "0.62293416", "0.6122599", "0.60329604", "0.60092837", "0.6005074", "0.59714866", "0.5950814", "0.59444535", "0.59400266", "0.59171385", "0.58975685", "0.5896584", "0.5867767", "0.5855981", "0.58544636", "0.5849017", "0.5829055", "0.5828...
0.7423586
0
Sets the value of maxRows
public void setMaxRows(int maxRows);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMaxRows(int maxRows)\r\n\t{\r\n\t\tthis.maxRows = maxRows;\r\n\t}", "public void setMaxRows(int maxRows)\r\n\t{\r\n\t\tthis.maxRows = maxRows;\r\n\t}", "public void setMaxRows(int maxRows) {\n\t\tthis.maxRows = maxRows;\n\t}", "public void setMaxRows(int maxRows) {\n\t\tthis.maxRows = maxRows;...
[ "0.87787557", "0.87787557", "0.87161684", "0.87161684", "0.87161684", "0.8707965", "0.8707965", "0.8358402", "0.8312648", "0.82936466", "0.7996199", "0.7944771", "0.760557", "0.760557", "0.755075", "0.755075", "0.7532389", "0.7532389", "0.7522595", "0.7461296", "0.74321204", ...
0.8893311
17
Gets the value of maxRows
public int getMaxRows();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMaxRows()\r\n\t{\r\n\t\treturn maxRows;\r\n\t}", "public int getMaxRows()\r\n\t{\r\n\t\treturn maxRows;\r\n\t}", "public int getMaxRows()\n\t{\n\t\treturn maxRows;\n\t}", "public int getMaxRows()\n\t{\n\t\treturn maxRows;\n\t}", "public int getMaxRows() {\n\t\treturn maxRows;\n\t}", "public...
[ "0.89268667", "0.89268667", "0.8919737", "0.8919737", "0.89009005", "0.89009005", "0.8418783", "0.8381294", "0.8103122", "0.79800224", "0.7852489", "0.77319413", "0.76905364", "0.76470834", "0.75391483", "0.75391483", "0.75257224", "0.74832594", "0.74832594", "0.74832594", "0...
0.8692703
23
Returns all rows from the sgfens_pedido_producto table that match the specified arbitrary SQL statement
public SgfensPedidoProducto[] findByDynamicSelect(String sql, Object[] sqlParams) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findByDynamicWhere(String sql, Object[] sqlParams) throws SgfensPedidoProductoDaoException;", "@Override\r\n public ProductosPuntoVenta[] findByDynamicWhere(String sql,\r\n Object[] sqlParams) throws ProductosPuntoVentaDaoException {\r\n PreparedStatement stmt =...
[ "0.6396459", "0.6326005", "0.61733353", "0.60115546", "0.588676", "0.58576953", "0.5811237", "0.5788915", "0.57886446", "0.57736796", "0.57593846", "0.5750646", "0.5736255", "0.5734371", "0.56961334", "0.5669764", "0.56349623", "0.5630816", "0.5609022", "0.5604425", "0.558433...
0.64207315
0
Returns all rows from the sgfens_pedido_producto table that match the specified arbitrary SQL statement
public SgfensPedidoProducto[] findByDynamicWhere(String sql, Object[] sqlParams) throws SgfensPedidoProductoDaoException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SgfensPedidoProducto[] findByDynamicSelect(String sql, Object[] sqlParams) throws SgfensPedidoProductoDaoException;", "@Override\r\n public ProductosPuntoVenta[] findByDynamicWhere(String sql,\r\n Object[] sqlParams) throws ProductosPuntoVentaDaoException {\r\n PreparedStatement stmt ...
[ "0.642091", "0.63256747", "0.61734253", "0.60099053", "0.588646", "0.5857562", "0.5810495", "0.5789702", "0.578918", "0.577355", "0.5757561", "0.5750166", "0.5734133", "0.5733459", "0.56956697", "0.5669183", "0.56350535", "0.5629646", "0.5609412", "0.5603529", "0.5585217", ...
0.63959897
1
TODO Autogenerated method stub
@Override public int getCount() { return list.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Object getItem(int arg0) { return list.get(arg0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public long getItemId(int arg0) { return arg0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public View getView(int arg0, View arg1, ViewGroup arg2) { if (arg1 == null) { arg1 = inflater.inflate(R.layout.mesconf_fragment, arg2, false); } TextView title = (TextView) arg1.findViewById(R.id.tvTitle); TextView description = (TextView) arg1.findViewById(R.id.tvDescription); MyConferences chapter = list.get(arg0); title.setText(chapter.conferenceName); description.setText(chapter.conferenceDescription); return arg1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
Parse the time in milliseconds into String with the format: hh:mm:ss or mm:ss
@SuppressLint("DefaultLocale") public static String formatDuration(int duration) { duration /= 1000; // milliseconds into seconds int minute = duration / 60; int hour = minute / 60; minute %= 60; int second = duration % 60; if (hour != 0) return String.format("%2d:%02d:%02d", hour, minute, second); else return String.format("%02d:%02d", minute, second); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String displayTime(long milliseconds) {\n String displayTime = \"\";\n double seconds = milliseconds / 1000.0;\n int minute = (int) (seconds / 60);\n double second = seconds % 60;\n displayTime = String.format(\"%02d:%06.3f\", minute, second);\n\n return disp...
[ "0.6928571", "0.68795097", "0.6769713", "0.673803", "0.67201215", "0.6695832", "0.660763", "0.660017", "0.6582585", "0.65696245", "0.6512893", "0.6487785", "0.64873546", "0.64605796", "0.645595", "0.6433018", "0.64264905", "0.6337126", "0.632736", "0.62911546", "0.628012", ...
0.0
-1
Method to format date according to the date string value
public static String formatDate(String dateValue) { Date uploadDateTime = null; try { uploadDateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.US).parse(dateValue); } catch (ParseException e) { e.printStackTrace(); } return new SimpleDateFormat("dd/MM/yyyy HH:mm", Locale.US).format(uploadDateTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String formatDate(String dateString) {\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"LLL dd, yyyy\");\n LocalDate localDate = LocalDate.parse(dateString.substring(0, 10));\n return dateTimeFormatter.format(localDate);\n }", "private String formatDate(Stri...
[ "0.7488953", "0.7427288", "0.7360176", "0.7238251", "0.71683884", "0.705636", "0.7054094", "0.7038914", "0.6984517", "0.69722444", "0.69233054", "0.69178385", "0.68780446", "0.6782788", "0.67701477", "0.6746438", "0.6733033", "0.67053896", "0.6699596", "0.6693902", "0.6689263...
0.6864967
13
getting email and password from edit texts
private void registerUser(){ final String email = editTextEmail.getText().toString().trim(); final String password = editTextPassword.getText().toString().trim(); final String name=editTextName.getText().toString().trim(); final String joiningdate=editTextJoiningDate.getText().toString().trim(); //final String uid=firebaseAuth.getCurrentUser().getUid(); //checking if email and passwords are empty if(TextUtils.isEmpty(email)){ Toast.makeText(this,"Please enter email",Toast.LENGTH_LONG).show(); return; } if(TextUtils.isEmpty(password)){ Toast.makeText(this,"Please enter password",Toast.LENGTH_LONG).show(); return; } if(TextUtils.isEmpty(name)){ Toast.makeText(this,"Please enter Name",Toast.LENGTH_LONG).show(); return; } if(TextUtils.isEmpty(joiningdate)){ Toast.makeText(this,"Please enter Joining Date",Toast.LENGTH_LONG).show(); return; } //if the email and password are not empty //displaying a progress dialog progressDialog.setMessage("Registering Please Wait..."); progressDialog.show(); getLocation(); //creating a new user firebaseAuth.createUserWithEmailAndPassword(email, password) .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() { @Override public void onComplete(@NonNull Task<AuthResult> task) { Log.i("Hey Entered OnComplete",""); //checking if success if(task.isSuccessful()){ Log.i("Hey Entered issuccess",""); User user= new User(name,joiningdate,email,loc); // Map map=new HashMap(); // map.put("name",name); // map.put("joining date",joiningdate); // map.put("email",email); // map.put("uid",uid); database=FirebaseDatabase.getInstance(); myRef=database.getReference("Users"); myRef.child(FirebaseAuth.getInstance().getCurrentUser().getUid()) .setValue(user).addOnCompleteListener(new OnCompleteListener<Void>() { @Override public void onComplete(@NonNull Task<Void> task) { if(task.isSuccessful()){ Toast.makeText(MainActivity.this,"Registration Successful",Toast.LENGTH_LONG).show(); startActivity(new Intent(getApplicationContext(),MenuActivity.class)); } else{ Toast.makeText(MainActivity.this,"Registration Error",Toast.LENGTH_LONG).show(); } } }); // String id=myRef.push().getKey(); // myRef.child(id).setValue(user); } else{ //display some message here Toast.makeText(MainActivity.this,"Registration Error",Toast.LENGTH_LONG).show(); } progressDialog.dismiss(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n if (validate()) {\n\n //Get values from EditText fields\n String Email = editTextEmail.getText().toString();\n String Password = editTextPassword.getText().toString();\n ...
[ "0.68354255", "0.67291176", "0.6609396", "0.6513028", "0.65088433", "0.6393484", "0.63653255", "0.6329478", "0.62779546", "0.6253445", "0.6244409", "0.62174016", "0.62155163", "0.6205592", "0.6190317", "0.6146544", "0.6135588", "0.61281514", "0.61281514", "0.61281514", "0.612...
0.0
-1
Manhattan distance (for 4 directions maps) see:
int distanceMan(Coord other) { int deltaX = abs(x - other.x); int deltaY = abs(y - other.y); return deltaX + deltaY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int manhattan() {\n int distance = 0;\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n int value = _tiles[i][j];\n if (value != 0) {\n int yDim = (value - 1) % _N;\n int xDim = (value - 1) / _N;\n...
[ "0.83509433", "0.8180195", "0.77088535", "0.76643753", "0.7662323", "0.7535306", "0.75243175", "0.7457595", "0.7457348", "0.7399719", "0.73089343", "0.72267675", "0.7173386", "0.71336925", "0.70872843", "0.7075581", "0.7060137", "0.7049315", "0.70348865", "0.7024022", "0.6960...
0.0
-1
Note: for hexa grid prefer using CubeCoord
Coord add(Direction6 dir) { return toCubeCoord().add(dir).toCoord(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int cubeCol() {\n return c; \n }", "@Override\r\n\t\tpublic int cube() {\n\t\t\treturn width*width*width;\r\n\t\t}", "public void coFromInt(int coord) {\n int twist = 0;\n for(int j = 0; j < 7; j ++) {\n co[6 - j] = coord % 3;\n twist = (twist + coord % 3) % 3;\n ...
[ "0.6390304", "0.6087967", "0.59153724", "0.5846743", "0.5836352", "0.5822909", "0.57580674", "0.57541955", "0.5738112", "0.5730674", "0.57251215", "0.57248527", "0.57041574", "0.56967956", "0.5605517", "0.56044364", "0.55956817", "0.55910397", "0.5559604", "0.5545584", "0.554...
0.55173874
22
Hexagonal distance (for 6 direction maps)
int distanceHexa(Coord other) { // Note: for hexa grid prefer using CubeCoord return toCubeCoord().distanceHexa(other.toCubeCoord()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double distance (double px, double py);", "public static void main(String[] args) {\n System.out.println(hammingDistance(1,4));\n }", "public int distance(Coord coord1, Coord coord2);", "private float distancePixels(int nX1, int nY1, int nX2, int nY2)\n {\n\t return FloatMath.sqrt((nX2-nX1)^2 +...
[ "0.64389247", "0.6116585", "0.5921558", "0.5903646", "0.58890253", "0.5886532", "0.5885583", "0.5880373", "0.5857779", "0.58480865", "0.5829424", "0.5799577", "0.57818115", "0.5759244", "0.5725951", "0.56595564", "0.56507593", "0.56499165", "0.56451136", "0.5641651", "0.56393...
0.68571603
0
Chebyshev distance (for 8 directions maps) see:
int distanceCheb(Coord other) { int deltaX = abs(x - other.x); int deltaY = abs(y - other.y); return max(deltaX, deltaY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getSquareDistance();", "double getDistance();", "private static double dist(Data d, Centroid c)\r\n \t{\r\n \t\treturn Math.sqrt(Math.pow((c.Y() - d.Y()), 2) + Math.pow((c.X() - d.X()), 2));\r\n \t}", "double distance (double px, double py);", "public double ComputeDistance(){ \n\t\tdouble lat1 = t...
[ "0.6465314", "0.64502513", "0.62218916", "0.617159", "0.61476266", "0.61339915", "0.6133591", "0.6099337", "0.6078944", "0.6056536", "0.6051908", "0.6017921", "0.601531", "0.6013181", "0.593321", "0.59263957", "0.5921518", "0.589619", "0.58940244", "0.5890245", "0.58387995", ...
0.54694676
71
Euclidean distance (for physics engine)
double distanceEcl(Coord other) { int deltaX = x - other.x; int deltaY = y - other.y; return sqrt(((double)deltaX * deltaX) + ((double)deltaY * deltaY)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double distance(double x, double y);", "public static double euclideanDistance(Prototype one, Prototype two)\r\n {\r\n return d(one, two);\r\n }", "public int euclideanDistance(DataValue<T> value1, DataValue<T> value2)\r\n\t{\n\t\tint difference = value1.difference(value2);\r\n\t\tdifferenc...
[ "0.7318042", "0.72224706", "0.71544355", "0.7150839", "0.71434695", "0.71346074", "0.7094994", "0.70382833", "0.7030333", "0.7017058", "0.6996778", "0.6982887", "0.6980083", "0.69615245", "0.69560826", "0.69448316", "0.68920815", "0.686285", "0.6842513", "0.683331", "0.682411...
0.6595169
40
return x + " " + y; // TODO change if you use Coord in System.out
public String toString() { return "[" + x + ", " + y + "]"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String coords(int x, int y) {\n return String.format(\"%d,%d\", x, y);\n }", "public String toString() {\r\n \treturn new String(\"x: \" + x + \" y: \" + y);\r\n }", "public String toString(){\n return \"(\" + this.x + \",\" + this.y + \")\";\n }", "public String toString() ...
[ "0.76732016", "0.76731", "0.7603335", "0.75576115", "0.7533509", "0.7499615", "0.7497726", "0.7493918", "0.74843323", "0.7482346", "0.7455676", "0.74017805", "0.73892933", "0.73584515", "0.7346733", "0.73298466", "0.7264337", "0.7233506", "0.71989095", "0.71623963", "0.713889...
0.6747429
42
Check if a point is inside a bounding box
boolean inBoundingBox(Coord pos) { return min(from.x, to.x) <= pos.x && pos.x <= max(from.x, to.x) && min(from.y, to.y) <= pos.y && pos.y <= max(from.y, to.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static final boolean isInside(int x, int y, Rect box) {\n return (box.x < x && x < box.x + box.w && box.y < y && y < box.y + box.h);\n }", "public boolean isPointInBox(final Vec3 inP)\n {\n // Rotate the point into the box's coordinates\n Vec4 p = m.getInverseSimple().multiply(i...
[ "0.72570986", "0.7205829", "0.7186656", "0.7131474", "0.7093997", "0.7088753", "0.70567375", "0.695294", "0.695248", "0.69458306", "0.6923467", "0.6919015", "0.6902988", "0.68999064", "0.6893348", "0.689108", "0.6780654", "0.67704487", "0.6765071", "0.67381465", "0.67368186",...
0.7399504
0
Find the orientation of the triplet (from, to, pos) Returns 1 when clockwise, 0 when colinear, 1 when counterclockwise
int orientation(Coord pos) { int val = (to.y - from.y) * (pos.x - to.x) - (to.x - from.x) * (pos.y - to.y); return (val > 0) ? 1 : ((val < 0) ? -1 : 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int orientation(Coord p, Coord r, Coord q) \n { \n // See https://www.geeksforgeeks.org/orientation-3-ordered-points/ \n // for details of below formula. \n int val = (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y); \n \n if (val == 0) return 0; // colinear \n \n ...
[ "0.71960765", "0.6773472", "0.6529044", "0.6507864", "0.6488069", "0.6444184", "0.6108681", "0.5841433", "0.5784352", "0.5614299", "0.5525704", "0.5509987", "0.54630375", "0.54291344", "0.5404273", "0.5400754", "0.5383165", "0.5369978", "0.53589505", "0.5347077", "0.53208524"...
0.76388884
0
Test if 2 segments intersects
boolean intersect(Segment other) { int o1 = orientation(other.from); int o2 = orientation(other.to); int o3 = other.orientation(from); int o4 = other.orientation(to); return (o1 != o2 && o3 != o4) // <- General case, special case below || (o1 == 0 && inBoundingBox(other.from)) || (o2 == 0 && inBoundingBox(other.to)) || (o3 == 0 && other.inBoundingBox(from)) || (o4 == 0 && other.inBoundingBox(to)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\t\tpublic void testIntersectAtEndPoints2(){\n\t\t\tGenericLineSegmentsIntersect v=new GenericLineSegmentsIntersect();\n\t\t\tint[][] lines={\n\t\t\t\t\t{1,5,5,1},\n\t\t\t\t\t{1,4,5,0},\n\t\t\t\t\t{2,2,6,10}\n\t\t\t};\n\n\t\t\tassertTrue(v.intersects(lines));\n\t\t}", "private boolean intersects(int from1...
[ "0.7133007", "0.70936215", "0.7082795", "0.70824206", "0.70311755", "0.70230675", "0.69435", "0.68594253", "0.67476434", "0.67262477", "0.66925406", "0.66780716", "0.66257995", "0.6615827", "0.6552815", "0.65456676", "0.6532896", "0.6496274", "0.6490898", "0.6474299", "0.6449...
0.74374413
0
This method was generated by MyBatis Generator. This method corresponds to the database table entrance_guard_user_info
public EntranceGuardUserInfoExample() { oredCriteria = new ArrayList<Criteria>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "UserInfoDao getUserInfoDao();", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, ...
[ "0.6172911", "0.6069693", "0.60679036", "0.6000832", "0.59550804", "0.5951446", "0.59347814", "0.59060615", "0.58843535", "0.5882353", "0.58751446", "0.58408374", "0.5809752", "0.5751213", "0.57458687", "0.57420397", "0.5731582", "0.56887525", "0.56650054", "0.5659467", "0.56...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table entrance_guard_user_info
public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "UserInfoDao getUserInfoDao();", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, ...
[ "0.6172911", "0.6069693", "0.60679036", "0.6000832", "0.59550804", "0.5951446", "0.59347814", "0.59060615", "0.58843535", "0.5882353", "0.58751446", "0.58408374", "0.5809752", "0.5751213", "0.57458687", "0.57420397", "0.5731582", "0.56887525", "0.56650054", "0.5659467", "0.56...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table entrance_guard_user_info
public String getOrderByClause() { return orderByClause; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimp...
[ "0.6173405", "0.6069453", "0.60693234", "0.6001729", "0.59549326", "0.5951435", "0.5935307", "0.59068507", "0.5886133", "0.5882975", "0.58757824", "0.58403635", "0.58110064", "0.57537323", "0.57463974", "0.57431906", "0.57330006", "0.56895775", "0.56658363", "0.566134", "0.56...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table entrance_guard_user_info
public void setDistinct(boolean distinct) { this.distinct = distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "UserInfoDao getUserInfoDao();", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, ...
[ "0.6173084", "0.60701936", "0.60694224", "0.6002439", "0.59556735", "0.59521073", "0.59360486", "0.59065175", "0.58841795", "0.5883097", "0.58748585", "0.58405423", "0.58102", "0.57517236", "0.5746697", "0.5742332", "0.5732223", "0.5690278", "0.5665257", "0.56604236", "0.5657...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table entrance_guard_user_info
public boolean isDistinct() { return distinct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "UserInfoDao getUserInfoDao();", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, ...
[ "0.6172911", "0.6069693", "0.60679036", "0.6000832", "0.59550804", "0.5951446", "0.59347814", "0.59060615", "0.58843535", "0.5882353", "0.58751446", "0.58408374", "0.5809752", "0.5751213", "0.57458687", "0.57420397", "0.5731582", "0.56887525", "0.56650054", "0.5659467", "0.56...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table entrance_guard_user_info
public List<Criteria> getOredCriteria() { return oredCriteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "UserInfoDao getUserInfoDao();", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, ...
[ "0.6172911", "0.6069693", "0.60679036", "0.6000832", "0.59550804", "0.5951446", "0.59347814", "0.59060615", "0.58843535", "0.5882353", "0.58751446", "0.58408374", "0.5809752", "0.5751213", "0.57458687", "0.57420397", "0.5731582", "0.56887525", "0.56650054", "0.5659467", "0.56...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table entrance_guard_user_info
public void or(Criteria criteria) { oredCriteria.add(criteria); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimp...
[ "0.6173405", "0.6069453", "0.60693234", "0.6001729", "0.59549326", "0.5951435", "0.5935307", "0.59068507", "0.5886133", "0.5882975", "0.58757824", "0.58403635", "0.58110064", "0.57537323", "0.57463974", "0.57431906", "0.57330006", "0.56895775", "0.56658363", "0.566134", "0.56...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table entrance_guard_user_info
public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "UserInfoDao getUserInfoDao();", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, ...
[ "0.6173084", "0.60701936", "0.60694224", "0.6002439", "0.59556735", "0.59521073", "0.59360486", "0.59065175", "0.58841795", "0.5883097", "0.58748585", "0.58405423", "0.58102", "0.57517236", "0.5746697", "0.5742332", "0.5732223", "0.5690278", "0.5665257", "0.56604236", "0.5657...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table entrance_guard_user_info
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "UserInfoDao getUserInfoDao();", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, ...
[ "0.6172911", "0.6069693", "0.60679036", "0.6000832", "0.59550804", "0.5951446", "0.59347814", "0.59060615", "0.58843535", "0.5882353", "0.58751446", "0.58408374", "0.5809752", "0.5751213", "0.57458687", "0.57420397", "0.5731582", "0.56887525", "0.56650054", "0.5659467", "0.56...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table entrance_guard_user_info
protected Criteria createCriteriaInternal() { Criteria criteria = new Criteria(); return criteria; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "UserInfoDao getUserInfoDao();", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, ...
[ "0.6172911", "0.6069693", "0.60679036", "0.6000832", "0.59550804", "0.5951446", "0.59347814", "0.59060615", "0.58843535", "0.5882353", "0.58751446", "0.58408374", "0.5809752", "0.5751213", "0.57458687", "0.57420397", "0.5731582", "0.56887525", "0.56650054", "0.5659467", "0.56...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table entrance_guard_user_info
public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Map<String, Object> getUserInfo(Map<String, Object> map) {\n\t\tString sql=\"select * from tp_users where userId=:userId\";\n\t\treturn joaSimpleDao.queryForList(sql, map).get(0);\n\t}", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimp...
[ "0.6173405", "0.6069453", "0.60693234", "0.6001729", "0.59549326", "0.5951435", "0.5935307", "0.59068507", "0.5886133", "0.5882975", "0.58757824", "0.58403635", "0.58110064", "0.57537323", "0.57463974", "0.57431906", "0.57330006", "0.56895775", "0.56658363", "0.566134", "0.56...
0.0
-1
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static EtudeProfil createEntity(EntityManager em) { EtudeProfil etudeProfil = new EtudeProfil() .anneeEtudeDebut(DEFAULT_ANNEE_ETUDE_DEBUT) .anneEtudeFin(DEFAULT_ANNE_ETUDE_FIN) .comment(DEFAULT_COMMENT); return etudeProfil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "protected abstract EntityBase createEntity() throws Exception;", "TestEntity buildEntity () {\n TestEn...
[ "0.77237517", "0.75055355", "0.7489123", "0.7362241", "0.73148507", "0.71567076", "0.71567076", "0.7151556", "0.71502143", "0.7078192", "0.70171237", "0.6803645", "0.6753588", "0.67406213", "0.67406213", "0.67118007", "0.6682163", "0.66666734", "0.6640775", "0.6625193", "0.66...
0.0
-1
draw the box in the background
private void paintBox(Graphics g, TextInBox textInBox) { g.setColor(BOX_COLOR); Rectangle2D.Double box = getBoundsOfNode(textInBox); g.fillRoundRect((int) box.x, (int) box.y, (int) box.width - 1, (int) box.height - 1, ARC_SIZE, ARC_SIZE); g.setColor(BORDER_COLOR); g.drawRoundRect((int) box.x, (int) box.y, (int) box.width - 1, (int) box.height - 1, ARC_SIZE, ARC_SIZE); // draw the text on top of the box (possibly multiple lines) g.setColor(TEXT_COLOR); String[] lines = textInBox.text.split("\n"); FontMetrics m = getFontMetrics(getFont()); int x = (int) box.x + ARC_SIZE / 2; int y = (int) box.y + m.getAscent() + m.getLeading() + 1; for (int i = 0; i < lines.length; i++) { g.drawString(lines[i], x, y); y += m.getHeight(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawBox(Graphics window, int hsBtoRGB, int x, int y) {\n\t\t\n\t}", "public void drawBox( Graphics window, Color i, int x, int y )\n\t{\n\t\twindow.setColor(i);\n\t\twindow.fillRect(x,y,100,100);\n\t\t// this code \"erases\" the center of the box by painting over it in white\n\t\twindow.setColor(Co...
[ "0.74850035", "0.7285651", "0.7251675", "0.7041756", "0.70142865", "0.7004185", "0.6985285", "0.69806176", "0.6939", "0.69019943", "0.69012815", "0.6889491", "0.6865201", "0.68299454", "0.68016887", "0.67974496", "0.67840844", "0.675985", "0.67551357", "0.6710688", "0.6710288...
0.6668541
22
On back button pressed, show lock screen
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) { Intent returnIntent = new Intent(); setResult(RESULT_OK, returnIntent); Utility.fromAdd = true; finish(); return true; } return super.onKeyDown(keyCode, event); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void backButtonAction() {\n CurrentUI.changeScene(SceneNames.LOGIN);\n }", "@Override\n public void onBackPressed() {\n Intent intent = new Intent(this, SplashActivity.class);\n startActivity(intent);\n }", "private void backToMenu() {\n game.setScreen(new StartScre...
[ "0.7190382", "0.69980603", "0.6996514", "0.6945652", "0.6934372", "0.69167066", "0.69116193", "0.69103605", "0.68489367", "0.68434864", "0.6831391", "0.6775181", "0.6773316", "0.6773", "0.6727573", "0.6721714", "0.6719637", "0.67139554", "0.67111325", "0.6710928", "0.67093265...
0.0
-1
On return from background
@Override protected void onRestart() { super.onRestart(); Intent returnIntent = new Intent(); setResult(RESULT_CANCELED, returnIntent); onRestart = true; finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enterBackground();", "public void afterBackground(OUT out) {\n\n }", "public void onBackPresed() {\n\t\t\tandroid.os.Process.killProcess(android.os.Process.myPid());\n\t\t\t\n\n\t}", "@Override\r\n\tprotected void onPause() {\n\t\tif (SystemCheckTools.isApplicationSentToBackground(AppStartToMa...
[ "0.696375", "0.6932412", "0.6923684", "0.6767689", "0.67092973", "0.65600187", "0.6534845", "0.65208536", "0.64858836", "0.64247876", "0.6405329", "0.6224718", "0.61877656", "0.6162294", "0.6158664", "0.6150315", "0.61444515", "0.61294705", "0.6097706", "0.6096031", "0.609118...
0.0
-1
Set the listener to watch for value changes.
private static void bindPreferenceSummaryToValue(Preference preference) { preference.setOnPreferenceChangeListener(sBindPreferenceSummaryToValueListener); // Trigger the listener immediately with the preference's // current value. sBindPreferenceSummaryToValueListener.onPreferenceChange(preference, PreferenceManager .getDefaultSharedPreferences(preference.getContext()) .getString(preference.getKey(), "")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onValueChange(final ChangeListener listener) {\n\t\tchangeListener = listener;\n\t\treturn;\n\t}", "public void addListener(ValueChangedListener listener) {\n\t\t_listenerManager.addListener(listener);\n\t}", "public void setChangeListener();", "public void setOnKnobValuesChangedListener (KnobVal...
[ "0.7387643", "0.68382007", "0.68140167", "0.6793841", "0.67833054", "0.663912", "0.64783984", "0.6468164", "0.6338804", "0.63317376", "0.6330817", "0.6330817", "0.63253194", "0.6320923", "0.631575", "0.631575", "0.6306144", "0.6245242", "0.61341757", "0.613266", "0.6106095", ...
0.0
-1
Creates the deck with the specified number of decks
@Override public void createShoe(int ndecks) { Deck deck; for (int i = 0; i < ndecks; i++) { deck = new Deck(); this.cards.addAll(deck.getDeck()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void buildDeck(int numDecks) {\n for (int i = 0; i < numDecks; ++i) {\n for (int j = 1; j < 14; ++j) {\n deck.add(new Card(j, Suit.Clubs));\n deck.add(new Card(j, Suit.Hearts));\n deck.add(new Card(j, Suit.Diamonds));\n deck.add(...
[ "0.79922485", "0.79167485", "0.7886422", "0.76493293", "0.7584557", "0.7266947", "0.7156782", "0.7152926", "0.71057737", "0.7058875", "0.7001999", "0.69405943", "0.6939166", "0.6923349", "0.6903831", "0.6852141", "0.68394256", "0.6806678", "0.6799581", "0.6789631", "0.6764850...
0.75894696
4
Creates the shoe from file
@Override public void createShoeFromFile(String fileName) { File file = new File(fileName); Scanner myReader = null; try { myReader = new Scanner(file); } catch (FileNotFoundException e) { e.printStackTrace(); } while (myReader.hasNextLine()) { String rankStr = ""; Rank rank; rank = Rank.ACE; String suit = ""; // The cards are separated by spaces in the file // Splits next line of the file into chunks containing each Card of the Shoe // Iterates over each card for (String data : myReader.nextLine().split(" ")) { int len = data.length(); if(data.length() == 3){ rankStr = ""; suit = ""; rankStr += String.valueOf(data.charAt(0)); rankStr += String.valueOf(data.charAt(1)); //1 char suit suit = String.valueOf(data.charAt(2)); this.cards.add(new Card( Suit.valueOf(suit), rank.getRank(rankStr), true)); }else if(data.length() == 2){ rankStr = ""; suit = ""; rankStr = String.valueOf(data.charAt(0)); suit = String.valueOf(data.charAt(1)); this.cards.add(new Card(Suit.valueOf(suit), rank.getRank(rankStr), true)); }else if(data.length() == 0){ return; }else{ System.out.println("Error reading card."); System.exit(0); } } } myReader.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void createSprites() throws FileNotFoundException;", "@SuppressWarnings(\"resource\")\n\tpublic void setPieces(String filename) throws IOException\n {\n\tString[] colors = new String[11]; //array containing the colors of the pieces\n\tcolors[0] = \"Red\";\n\tcolors[1] = \"Orange\";\n\tcolors[2...
[ "0.58499163", "0.5751605", "0.5711513", "0.5667484", "0.5666145", "0.563188", "0.5556618", "0.5549265", "0.5352801", "0.5328735", "0.5327591", "0.53165805", "0.52575034", "0.52481294", "0.5233291", "0.52038056", "0.517564", "0.5175044", "0.515222", "0.5144641", "0.5144121", ...
0.7199949
0
Shuffles the cards in the shoe
@Override public void shuffle() { System.out.println("shuffling the shoe..."); Collections.shuffle(this.cards); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "public void shuffle() {\n\t\tCollections.shuffle(Shoe);\n\t}", "public void shuffle(){\r\n Collections.shuffle(cards);\r\n }", "public void shuffle() {\r\n for ( int i = deck.size()-1; i > 0; i-- ) {\r\n int rand = (int)(...
[ "0.81037927", "0.8062304", "0.79791033", "0.7951748", "0.78829527", "0.78666824", "0.7848585", "0.7835517", "0.7827754", "0.7823813", "0.7810385", "0.7767041", "0.7762954", "0.7761461", "0.77563435", "0.77431834", "0.7737196", "0.77249473", "0.7711048", "0.76930505", "0.76763...
0.8268003
0
Removes a card (index i) from the shoe
@Override public void removeCard(int i) { this.cards.remove(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeCard(int index) {\n cards.remove(index);\n }", "public Card removeCard(){\n Card temp = pile[0]; //removes top card. putting placement card to avoid null pointer\n for(int i = 0; i < pilePlace; i++){ //shifts cards\n pile[i] = pile[i+1];\n }\n pilePlace--;\n return...
[ "0.7834818", "0.766974", "0.7581872", "0.74000174", "0.7195049", "0.7108414", "0.70204246", "0.701168", "0.68682176", "0.6822399", "0.6817762", "0.6804617", "0.67394745", "0.6734226", "0.6711573", "0.6669831", "0.6650413", "0.6638087", "0.66288453", "0.65624905", "0.65557015"...
0.8209554
0
Gets the card from the shoe without removing it
@Override public Card getCard(int i) { return this.cards.get(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Card drawCard() {\n Card c = cards.get(0);//get a card\n cards.remove(0);//remove the card form the deck that's given out\n discard.add(c);//so the card given out is added to the discard list\n return c;//return a card object\n\n }", "public TrainCard usedCard(){\n TrainCard removedCard...
[ "0.7103684", "0.70501524", "0.7049173", "0.703933", "0.6828719", "0.67926025", "0.67882365", "0.6767238", "0.6725021", "0.67053926", "0.6661999", "0.66570956", "0.6655319", "0.664109", "0.6626553", "0.6554515", "0.654888", "0.6506976", "0.65028405", "0.6479016", "0.645608", ...
0.0
-1
Receives list of cards and adds them to shoe Useful when reshuffling
@Override public void moveAllToShoe(ArrayList<Card> cardsToAdd) { this.cards.addAll(cardsToAdd); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void shuffleAndGiveCards() {\n\n List<Card> tmpDeck= new ArrayList<Card>(deck); \n Collections.shuffle(tmpDeck, shuffleRng);\n \n for (int i=0; i<players.size(); ++i) {\n int startIndex= Jass.HAND_SIZE*i; //So for player 0 the startIndex will be 0, for player2 9, etc....
[ "0.7364878", "0.7259722", "0.7050741", "0.6844212", "0.6813486", "0.68067116", "0.6805991", "0.6781339", "0.67678684", "0.6711434", "0.6710473", "0.66992587", "0.6671019", "0.6645906", "0.6624287", "0.6608282", "0.6584469", "0.6572945", "0.65727365", "0.65671486", "0.6557293"...
0.7035703
3
Gets the size of the shoe
@Override public int getShoeSize() { return this.cards.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getSize();", "public int getSize(){\n\t\treturn shipSize;\n\t}", "public double getSize()\n\t{\n\t\treturn size;\n\t}", "@Override\n\tpublic double getSize() {\n\t\treturn Math.sqrt(getMySize())/2;\n\t}", "Dimension getSize();", "Dimension getSize();", "public int getSize() {\n\t\treturn WORLD_S...
[ "0.7048648", "0.70337605", "0.6981179", "0.69721687", "0.6970916", "0.6970916", "0.6933545", "0.6919676", "0.6905563", "0.68609154", "0.6824172", "0.6824172", "0.6824172", "0.6824172", "0.6824172", "0.6824172", "0.6824172", "0.6824172", "0.6824172", "0.6824172", "0.6824172", ...
0.8017662
0
Prints all cards in the shoe
public String toString() { String cardListOutput = ""; for (Card aCard : this.cards) { cardListOutput += aCard.toString() + "\n"; } return cardListOutput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showCards() {\n\t\tfor(int i=0;i<cards.size();i++) {\n\t\t\tSystem.out.println(cards.get(i).toString());\n\t\t}\n\t}", "public void displayCards() {\n\t\tSystem.out.println(\"\\n---------- Deck Worker ----------\");\n\t\tfor(Card worker : this.deckWorker) {\n\t\t\tSystem.out.print(worker.toString());...
[ "0.8026635", "0.77610874", "0.7683753", "0.76577073", "0.76401824", "0.76234245", "0.75988376", "0.75972074", "0.73543376", "0.72456354", "0.72273177", "0.7209421", "0.7138729", "0.7102188", "0.702203", "0.6875583", "0.6859883", "0.6819752", "0.67598414", "0.6728301", "0.6686...
0.6290614
50
/ declare 3 numbers if n1 and n2 are equal => n1$n2 are equal if n2 and n3 are equal => n2&n3 are equal if n3 and n1 are equal => n3&n1 are equal if all equal => all equal if none are equal => none of them are equal Do NOT use single if statement
public static void main(String[] args) { int n1 = 0; int n2 = 0; int n3 = 0; if (n1 == n2 && n1 != n3) { System.out.println("n1 and n2 equal"); } else if (n2 == n3 && n2 != n1) { System.out.println("n2 and n3 equal"); } else if (n3 == n1 && n1 != n2) { System.out.println("n3 and n1 equal"); } else if (n1 == n2 && n1 == n3) { System.out.println("all equal"); } else { System.out.println("none equal"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n\t\tint n1, n2, n3;\n\t\tn1 = 41;\n\t\tn2 = 4;\n\t\tn3 = 421;\n\n\t\tif (n1 == n2 && n1 != n3) {\n\t\t\tSystem.out.println(\"n1 and n2 are equal.\");\n\t\t}\n\n\t\telse if (n2 == n3 && n2 != n1) {\n\t\t\tSystem.out.println(\"n2 and n3 are equal.\");\n\t\t}\n\n\t\telse if...
[ "0.80127794", "0.6806918", "0.60699815", "0.59473723", "0.58617514", "0.581993", "0.58182687", "0.5765056", "0.57392406", "0.57030416", "0.5656571", "0.56148005", "0.55922115", "0.5583524", "0.5562583", "0.5515766", "0.55136937", "0.54952806", "0.54932326", "0.54924905", "0.5...
0.8044534
0
Created by Administrator on 2018/4/8 0008.
public interface View { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "public void mo38117a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void entrenar() {\n\t...
[ "0.60921514", "0.59446394", "0.5823108", "0.5760146", "0.5681099", "0.56693035", "0.5642316", "0.56415427", "0.5637409", "0.56101817", "0.5599942", "0.5599942", "0.5599942", "0.5599942", "0.5599942", "0.5599942", "0.5599942", "0.5599225", "0.55550027", "0.5553378", "0.5552459...
0.0
-1
TODO Autogenerated method stub
public static JPanel newPanel() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Finds all airports in provided txt file, with corresponding city with comments in database. Airport that does not have active city in database is not part of resulting HashMap.
@Override public HashMap<String, Airport> findAll() { List<City> cities = cityDao.findAll(0); airportFile = new File(AirportDao.class.getClassLoader().getResource("airports.txt").getPath()); try { FlightFileReader.consumeNonEmptyLinesFromFile(airportFile, line -> { String[] params = line.split(",(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)", -1); String airportID = params[0].replace("\"", ""); String airportIATA = params[4].replace("\"", ""); String airportICAO = params[5].replace("\"", ""); String airportMapKey = (airportIATA.isEmpty() && airportICAO.isEmpty()) ? airportID : (airportIATA.equals("\\N") ? airportICAO : airportIATA); try { if (isCityAvailable(cities, params[2].replace("\"", ""))) { airportsMap.put(airportMapKey, Airport.builder() .airportId(Integer.parseInt(params[0])) .name(params[1].replace("\"", "")) .city(params[2].replace("\"", "")) .country(params[3].replace("\"", "")) .iata(params[4].replace("\"", "")) .icao(params[5].replace("\"", "")) .latitude(Double.parseDouble(params[6])) .longitude(Double.parseDouble(params[7])) .altitude(Double.parseDouble(params[8])) .timezone(params[9]) .dst(params[10].replace("\"", "")) .tz(params[11].replace("\"", "")) .type(params[12].replace("\"", "")) .source(params[13].replace("\"", "")) .build()); } } catch (Exception ex) { lgr.log(Level.SEVERE, ex.getMessage(), ex); } }); } catch (Exception ex) { lgr.log(Level.SEVERE, ex.getMessage(), ex); } return airportsMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Map<String, City> readCityFromFile(String filePath) throws FileNotFoundException {\n Scanner scan = new Scanner(new File(filePath));\n Map<String, City> cities = new HashMap<String, City>();\n String cityName;\n int cityPoints;\n double latitude;\n double lon...
[ "0.583706", "0.56193703", "0.55379367", "0.53961354", "0.5390599", "0.53044575", "0.5265762", "0.52642", "0.52436966", "0.52344674", "0.52336764", "0.51884556", "0.51430285", "0.5091842", "0.5091625", "0.5075073", "0.50723773", "0.50617826", "0.50398576", "0.50239015", "0.501...
0.73958075
0
Provide airport validation. On case airport city is also part of cities inside database, current airport will be forwarded to resulting HashMap
private boolean isCityAvailable(List<City> cities, String param) { boolean flag = false; for (City city : cities){ if(city.getName().equals(param.trim())){ flag=true; break; } } return flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasValidIAta(AirportDTO airportDTO);", "List<AirportDTO> getAirportsByCity(String city);", "@Override\n public HashMap<String, Airport> findAll() {\n\n List<City> cities = cityDao.findAll(0);\n\n airportFile = new File(AirportDao.class.getClassLoader().getResource(\"airports.txt\").get...
[ "0.65867203", "0.6076825", "0.6016574", "0.57935095", "0.5765777", "0.5633724", "0.5630206", "0.5609411", "0.55999273", "0.5597356", "0.5577616", "0.5567426", "0.55157536", "0.5494862", "0.5476031", "0.54100716", "0.53995126", "0.5382538", "0.5363256", "0.5308594", "0.530185"...
0.0
-1
own transaction handling because of
@Test(expected = NotFoundException.class) public void testDeleteEntityFromGDC() { Transaction tx = graphDatabaseContext.beginTx(); Person p = new Person("Michael", 35); Person spouse = new Person("Tina", 36); p.setSpouse(spouse); long id = spouse.getId(); graphDatabaseContext.removeNodeEntity(spouse); tx.success(); tx.finish(); Assert.assertNull("spouse removed " + p.getSpouse(), p.getSpouse()); NodeFinder<Person> finder = finderFactory.createNodeEntityFinder(Person.class); Person spouseFromIndex = finder.findByPropertyValue(Person.NAME_INDEX, "name", "Tina"); Assert.assertNull("spouse not found in index",spouseFromIndex); Assert.assertNull("node deleted " + id, graphDatabaseContext.getNodeById(id)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void commitTx() {\n \n }", "@Override\n public void rollbackTx() {\n \n }", "public void beginTransaction() {\n\r\n\t}", "public void beginTransaction() throws Exception;", "Transaction getCurrentTransaction();", "Transaction beginTx();", "IDbTransaction beginTransaction();...
[ "0.7084265", "0.69228685", "0.6856873", "0.6844814", "0.68447196", "0.67623", "0.67584676", "0.66778517", "0.6677601", "0.66648364", "0.66596025", "0.6573303", "0.6560272", "0.655164", "0.6544688", "0.65387106", "0.65360296", "0.6535951", "0.65321064", "0.6493491", "0.6490301...
0.0
-1