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
This method is for the Burning Ship Set Fractal
public int[][] FractalShip(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) { BurningShipSet burn = new BurningShipSet(); int[][] fractal = new int[512][512]; double n = 512; double xVal = xRangeStart; double yVal = yRangeStart; double xDiff = (xRangeEnd - xRangeStart) / n; double yDiff = (yRangeEnd - yRangeStart) / n; for (int x = 0; x < n; x++) { xVal = xVal + xDiff; yVal = yRangeStart; for (int y = 0; y < n; y++) { yVal = yVal + yDiff; Point2D cords = new Point.Double(xVal, yVal); int escapeTime = burn.burningShip(cords); fractal[x][y] = escapeTime; } } return fractal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createShips() {\n //context,size, headLocation, bodyLocations\n Point point;\n Ship scout_One, scout_Two, cruiser, carrier, motherShip;\n if(player) {\n point = new Point(maxN - 1, 0); //row, cell\n scout_One = new Ship(1, point, maxN, \"Scout One\", p...
[ "0.6229569", "0.6071517", "0.6026356", "0.5918195", "0.5908817", "0.58977884", "0.5803731", "0.5768349", "0.5689709", "0.56894386", "0.5651043", "0.5631334", "0.56304705", "0.5619451", "0.5617464", "0.56159705", "0.5604529", "0.5602328", "0.55869055", "0.55823934", "0.5572293...
0.61352795
1
This method is for the Mandelbrot Set Fractal
public int[][] FractalMandel(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) { MandelbrotSet man = new MandelbrotSet(); int[][] fractal = new int[512][512]; double n = 512; double xVal = xRangeStart; double yVal = yRangeStart; double xDiff = (xRangeEnd - xRangeStart) / n; double yDiff = (yRangeEnd - yRangeStart) / n; for (int x = 0; x < n; x++) { xVal = xVal + xDiff; yVal = yRangeStart; for (int y = 0; y < n; y++) { yVal = yVal + yDiff; Point2D cords = new Point.Double(xVal, yVal); int escapeTime = man.mandelbrot(cords); fractal[x][y] = escapeTime; } } return fractal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createMandelbrot(int steps) {\r\n if (initialValue == null) {\r\n System.out.println(\"Initial value for Mandelbrot set undefined\");\r\n return;\r\n }\r\n if (colors.size() < 2) {\r\n System.out.println(\"At least two colors are needed to calculate...
[ "0.67423964", "0.6371584", "0.6345986", "0.62322336", "0.6064482", "0.5909035", "0.58433324", "0.5714331", "0.56933355", "0.55134654", "0.5369383", "0.5297488", "0.5229921", "0.5185284", "0.5179287", "0.5157931", "0.5155008", "0.51493037", "0.5139861", "0.51329875", "0.511227...
0.72545993
0
This method is for the Julia Set Fractal
public int[][] FractalJulia(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) { JuliaSet julia = new JuliaSet(); int[][] fractal = new int[512][512]; double n = 512; double xVal = xRangeStart; double yVal = yRangeStart; double xDiff = (xRangeEnd - xRangeStart) / n; double yDiff = (yRangeEnd - yRangeStart) / n; for (int x = 0; x < n; x++) { xVal = xVal + xDiff; yVal = yRangeStart; for (int y = 0; y < n; y++) { yVal = yVal + yDiff; Point2D cords = new Point.Double(xVal, yVal); int escapeTime = julia.juliaset(cords); fractal[x][y] = escapeTime; } } return fractal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "public void computeFractal(){\n\t\tint deltaX =p5.getX()-p1.getX();\n\t\tint deltaY =p5.getY()- p1.getY();\n\t\tint x2= p1.getX()+ (deltaX/3);\n\t\tint y2= p1.getY()+ (deltaY/3);\n\t\tdouble x3=((p1.getX()+p5.getX())/2)+( Math.sqrt(3)*\n\t\t\t\t(p1.getY()-p5.getY()))/6;\n...
[ "0.6013339", "0.5914425", "0.5750162", "0.5702223", "0.56645954", "0.55140394", "0.53723735", "0.53624415", "0.533266", "0.5319593", "0.5304892", "0.52828026", "0.52025884", "0.52016026", "0.51894176", "0.5180206", "0.5164546", "0.5155662", "0.51415545", "0.5132078", "0.50698...
0.6458627
0
This method is for the Multibrot Set Fractal
public int[][] FractalMulti(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) { MultibrotSet multi = new MultibrotSet(); int[][] fractal = new int[512][512]; double n = 512; double xVal = xRangeStart; double yVal = yRangeStart; double xDiff = (xRangeEnd - xRangeStart) / n; double yDiff = (yRangeEnd - yRangeStart) / n; for (int x = 0; x < n; x++) { xVal = xVal + xDiff; yVal = yRangeStart; for (int y = 0; y < n; y++) { yVal = yVal + yDiff; Point2D cords = new Point.Double(xVal, yVal); int escapeTime = multi.multibrot(cords); fractal[x][y] = escapeTime; } } return fractal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[][] FractalMandel(double xRangeStart, double xRangeEnd,double yRangeStart,double yRangeEnd) {\r\n\t\tMandelbrotSet man = new MandelbrotSet();\r\n\t\tint[][] fractal = new int[512][512];\r\n\t\tdouble n = 512;\r\n\t\t\r\n\r\n\t\t\r\n\t\tdouble xVal = xRangeStart;\r\n\t\tdouble yVal = yRangeStart;\r\n\t\t...
[ "0.62266576", "0.5702022", "0.56328607", "0.5504933", "0.5471488", "0.54010314", "0.53891706", "0.53386676", "0.53314817", "0.5307449", "0.5270106", "0.5261657", "0.5237855", "0.51716083", "0.51437235", "0.51230574", "0.51111096", "0.5103118", "0.5094893", "0.50904465", "0.50...
0.7022388
0
seekBarValue.setText(String.valueOf(progress)); seekBarNum = progress;
public void onProgressChanged(SeekBar arg0, int progress, boolean fromUser) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n seek_bar1.setMax(10);\n txt1.setText(String.valueOf(progress));\n yemekAdet = progress; \n \n }", "@Override\n ...
[ "0.7558833", "0.75309366", "0.7473332", "0.74566984", "0.74337894", "0.7395942", "0.73752403", "0.7328539", "0.7322279", "0.7303404", "0.72760206", "0.7233457", "0.71933854", "0.7182855", "0.7139775", "0.71220225", "0.70999396", "0.70737374", "0.706699", "0.70408815", "0.7037...
0.6566965
50
Create a new HttpClient and Post Header
public void postData() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HttpClientHelper() {\n defaultHeaders.put(\"Content-Type\", \"application/json\");\n defaultHeaders.put(\"Accept-Encoding\", \"gzip\");\n\n //postDefaultHeaders.put(\"Content-Type\", \"application/json\");\n //postDefaultHeaders.put(\"Content-Encoding\", \"gzip\");\n\n Str...
[ "0.6946483", "0.6791638", "0.6690835", "0.64410734", "0.62591386", "0.6240455", "0.6178956", "0.6175448", "0.61484545", "0.6023752", "0.5957844", "0.59496754", "0.5921056", "0.59040177", "0.59015733", "0.5873391", "0.5845826", "0.58342654", "0.58114904", "0.5791647", "0.57178...
0.0
-1
/ restricciones de gps 1) checar que este en el campus 2) despues de media hora de clase y hasta la hora
@Override public void onClick(View arg0) { String CadenaTemp = (child.get(childPosition)); String largoCadena = String.valueOf(CadenaTemp.length()); final String grupo = String.valueOf(groupPosition); Integer largoc = Integer.parseInt(largoCadena); Integer ngrupo = Integer.parseInt(grupo); List <String> miListaDePalabras = new ArrayList <String> (); if ((largoc > 70) && (ngrupo != 0)) { //Toast.makeText(context, child.get(childPosition), Toast.LENGTH_LONG).show(); // Log.d("cadena1",CadenaTemp); // Log.d("cadena2",largoCadena); // Log.d("cadena3",largoc.toString()); //Log.d("cadena4",ngrupo.toString()); ///String str = CadenaTemp; //str = str.replaceAll("[^-?0-9]+", " "); //String newName = CadenaTemp.replaceAll(":", " "); // System.out.println(Arrays.asList(str.trim().split(" "))); //System.out.println(Arrays.asList(newName.trim().split(" "))); // miListaDePalabras=Arrays.asList(newName.trim().split(" ")); //Log.d("Cadena 5", miListaDePalabras.get(2)); String lines[]=CadenaTemp.split("\\r?\\n"); Log.d("Cadena 6 ",lines[0]); final String linea0[]=lines[0].split(":",2); Log.d("materia",linea0[1]); final String linea1[]=lines[1].split(":",2); Log.d("Horario",linea1[1]); final String linea2[]=lines[2].split(":",2); Log.d("Edificio",linea2[1]); final String linea3[]=lines[3].split(":",2); Log.d("Aula",linea3[1]); final String linea4[]=lines[4].split(":",2); Log.d("profesor",linea4[1]); AlertDialog.Builder builder = new AlertDialog.Builder(context); builder.setTitle(R.string.tutorDialogTitle) .setMessage(R.string.tutorDialogMessage) .setCancelable(true) .setPositiveButton(R.string.tutorDialogAccept, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy); String url = "http://dcc.netai.net/insertaDatosDedocucei.php"; String aux = ""; if(isValidTime(linea1[1],grupo) && isValidLocation()) { try { DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(url); // HttpPost httpPost = new // HttpPost("http://localhost/siiau1/profesores.php"); List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2); nameValuePairs.add(new BasicNameValuePair("hora", linea1[1])); nameValuePairs.add(new BasicNameValuePair("modulo", linea2[1] + "," + linea3[1])); nameValuePairs.add(new BasicNameValuePair("materia", linea0[1])); nameValuePairs.add(new BasicNameValuePair("maestro", linea4[1])); httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse httpResponse = httpClient.execute(httpPost); HttpEntity httpEntity = httpResponse.getEntity(); httpResponse.getStatusLine(); if (httpEntity != null) { aux = EntityUtils.toString(httpEntity); } else { aux = "Error"; } Log.d("Servidor", aux); } catch (UnsupportedEncodingException e) { e.printStackTrace(); } catch (ClientProtocolException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } }else{ showNotValidRequestDialog(); } dialog.cancel(); } }) .setNegativeButton(R.string.tutorDialogCancel, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.cancel(); } }) ; AlertDialog alert = builder.create(); alert.show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n SubPlanListDTO llh = (SubPlanListDTO)v.getTag();\n //Toast.makeText(getApplicationContext(),\"위치 x=\"+llh.getLlh_x()+\"y=\"+llh.getLlh_y(),Toast.LENGTH_SHORT).show();\n ////여기수정하면됨......
[ "0.61185586", "0.6113051", "0.5880176", "0.57125777", "0.57060724", "0.56879747", "0.56783766", "0.5639937", "0.5600629", "0.5542511", "0.547034", "0.5417048", "0.53687084", "0.53619474", "0.5280895", "0.52747285", "0.52734125", "0.52691364", "0.5264225", "0.52619946", "0.524...
0.0
-1
here you can add functions
public void onClick(DialogInterface dialog, int which) { dialog.cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void adicionar(Funcionario funcionario) {\n\n }", "private static void addFunciones() {\n funciones = new ArrayList<GlobalSimilarityNode>();\n funciones.add(new ParticularSimilGLNode());\n funciones.add(new TemporalSimilGLNode());\n\n }", "public void parseFu...
[ "0.70194083", "0.69169265", "0.68654996", "0.6850241", "0.67241734", "0.6656873", "0.656301", "0.656301", "0.65612465", "0.64952403", "0.64216846", "0.63547844", "0.63547844", "0.6318972", "0.6291798", "0.6255117", "0.6254997", "0.6241528", "0.62272817", "0.6179397", "0.61771...
0.0
-1
Initialize the contents of the frame.
private void initialize() { frmLogisticsNegotium = new JFrame(); frmLogisticsNegotium.setTitle("Logistics Negotium"); frmLogisticsNegotium.setBounds(100, 100, 450, 300); frmLogisticsNegotium.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frmLogisticsNegotium.getContentPane().setLayout(null); JButton btnAddVehicle = new JButton("Add Vehicle"); btnAddVehicle.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JAddVehicleFrame.main(); } }); btnAddVehicle.setBounds(44, 198, 134, 23); frmLogisticsNegotium.getContentPane().add(btnAddVehicle); JButton btnRequestDelivery = new JButton("Request Delivery"); btnRequestDelivery.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JRequestDeliveryFrame.main(); } }); btnRequestDelivery.setBounds(258, 198, 134, 23); frmLogisticsNegotium.getContentPane().add(btnRequestDelivery); JLabel lblChooseBetweenThe = new JLabel("Choose between the options"); lblChooseBetweenThe.setBounds(143, 100, 181, 14); frmLogisticsNegotium.getContentPane().add(lblChooseBetweenThe); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.7768924", "0.7563384", "0.74402106", "0.73670715", "0.73646426", "0.73560405", "0.7312289", "0.7306752", "0.7296544", "0.72960514", "0.72767645", "0.7270245", "0.72680706", "0.72680706", "0.72132725", "0.7179349", "0.71677345", "0.71392596", "0.7139034", "0.7125148", "0.71...
0.0
-1
This class was generated by Apache CXF 2.7.3 20130306T10:01:11.30406:00 Generated source version: 2.7.3
@WebService(targetNamespace = "http://schemas.bigfix.com/Relevance", name = "DashboardVariablePortType") @XmlSeeAlso({ObjectFactory.class}) public interface DashboardVariablePortType { @ResponseWrapper(localName = "StoreSharedVariableResponse", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.StoreSharedVariableResponse") @RequestWrapper(localName = "StoreSharedVariable", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.StoreSharedVariable") @WebMethod(operationName = "StoreSharedVariable") public Response<com.bigfix.schemas.relevance.StoreSharedVariableResponse> storeSharedVariableAsync( @WebParam(name = "dashboardVariableIdentifier", targetNamespace = "http://schemas.bigfix.com/Relevance") com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier, @WebParam(name = "variableValue", targetNamespace = "http://schemas.bigfix.com/Relevance") java.lang.String variableValue, @WebParam(name = "RequestHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) RequestHeader requestHeader, @WebParam(mode = WebParam.Mode.OUT, name = "ResponseHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) javax.xml.ws.Holder<ResponseHeader> responseHeader ); @ResponseWrapper(localName = "StoreSharedVariableResponse", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.StoreSharedVariableResponse") @RequestWrapper(localName = "StoreSharedVariable", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.StoreSharedVariable") @WebMethod(operationName = "StoreSharedVariable") public Future<?> storeSharedVariableAsync( @WebParam(name = "dashboardVariableIdentifier", targetNamespace = "http://schemas.bigfix.com/Relevance") com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier, @WebParam(name = "variableValue", targetNamespace = "http://schemas.bigfix.com/Relevance") java.lang.String variableValue, @WebParam(name = "RequestHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) RequestHeader requestHeader, @WebParam(mode = WebParam.Mode.OUT, name = "ResponseHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) javax.xml.ws.Holder<ResponseHeader> responseHeader, @WebParam(name = "asyncHandler", targetNamespace = "") AsyncHandler<com.bigfix.schemas.relevance.StoreSharedVariableResponse> asyncHandler ); @WebResult(name = "success", targetNamespace = "http://schemas.bigfix.com/Relevance") @ResponseWrapper(localName = "StoreSharedVariableResponse", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.StoreSharedVariableResponse") @RequestWrapper(localName = "StoreSharedVariable", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.StoreSharedVariable") @WebMethod(operationName = "StoreSharedVariable", action = "http://schemas.bigfix.com/Relevance/soapaction") public boolean storeSharedVariable( @WebParam(name = "dashboardVariableIdentifier", targetNamespace = "http://schemas.bigfix.com/Relevance") com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier, @WebParam(name = "variableValue", targetNamespace = "http://schemas.bigfix.com/Relevance") java.lang.String variableValue, @WebParam(name = "RequestHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) RequestHeader requestHeader, @WebParam(mode = WebParam.Mode.OUT, name = "ResponseHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) javax.xml.ws.Holder<ResponseHeader> responseHeader ); @ResponseWrapper(localName = "DeleteSharedVariableResponse", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.DeleteSharedVariableResponse") @RequestWrapper(localName = "DeleteSharedVariable", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.DeleteSharedVariable") @WebMethod(operationName = "DeleteSharedVariable") public Response<com.bigfix.schemas.relevance.DeleteSharedVariableResponse> deleteSharedVariableAsync( @WebParam(name = "dashboardVariableIdentifier", targetNamespace = "http://schemas.bigfix.com/Relevance") com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier, @WebParam(name = "RequestHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) RequestHeader requestHeader, @WebParam(mode = WebParam.Mode.OUT, name = "ResponseHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) javax.xml.ws.Holder<ResponseHeader> responseHeader ); @ResponseWrapper(localName = "DeleteSharedVariableResponse", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.DeleteSharedVariableResponse") @RequestWrapper(localName = "DeleteSharedVariable", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.DeleteSharedVariable") @WebMethod(operationName = "DeleteSharedVariable") public Future<?> deleteSharedVariableAsync( @WebParam(name = "dashboardVariableIdentifier", targetNamespace = "http://schemas.bigfix.com/Relevance") com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier, @WebParam(name = "RequestHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) RequestHeader requestHeader, @WebParam(mode = WebParam.Mode.OUT, name = "ResponseHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) javax.xml.ws.Holder<ResponseHeader> responseHeader, @WebParam(name = "asyncHandler", targetNamespace = "") AsyncHandler<com.bigfix.schemas.relevance.DeleteSharedVariableResponse> asyncHandler ); @WebResult(name = "success", targetNamespace = "http://schemas.bigfix.com/Relevance") @ResponseWrapper(localName = "DeleteSharedVariableResponse", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.DeleteSharedVariableResponse") @RequestWrapper(localName = "DeleteSharedVariable", targetNamespace = "http://schemas.bigfix.com/Relevance", className = "com.bigfix.schemas.relevance.DeleteSharedVariable") @WebMethod(operationName = "DeleteSharedVariable", action = "http://schemas.bigfix.com/Relevance/soapaction") public boolean deleteSharedVariable( @WebParam(name = "dashboardVariableIdentifier", targetNamespace = "http://schemas.bigfix.com/Relevance") com.bigfix.schemas.relevance.DashboardVariableIdentifier dashboardVariableIdentifier, @WebParam(name = "RequestHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) RequestHeader requestHeader, @WebParam(mode = WebParam.Mode.OUT, name = "ResponseHeaderElement", targetNamespace = "http://schemas.bigfix.com/Relevance", header = true) javax.xml.ws.Holder<ResponseHeader> responseHeader ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebService(targetNamespace = \"http://demo.cxf.com/\", name = \"SampleService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface SampleService {\n\n @WebMethod\n @RequestWrapper(localName = \"serviceMethod\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceM...
[ "0.6623832", "0.64621055", "0.6354315", "0.63485867", "0.6342769", "0.63178897", "0.6184071", "0.6173265", "0.61537236", "0.60798013", "0.60722595", "0.60687053", "0.606493", "0.6058197", "0.6055943", "0.60452783", "0.6016187", "0.599254", "0.5986505", "0.5947432", "0.5932394...
0.0
-1
TODO Autogenerated method stub
@Override public Iterable<Chitietdonhang> findAll() { return chiTietDonHangRepository.findAll(); }
{ "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
TODO Autogenerated method stub
@Override public Optional<Chitietdonhang> findById(Integer id) { return chiTietDonHangRepository.findById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void save(Chitietdonhang danhMuc) { chiTietDonHangRepository.save(danhMuc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void delete(Integer id) { chiTietDonHangRepository.deleteById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Page<Chitietdonhang> findAllChiTietDonHang(Pageable pageable) { return chiTietDonHangRepository.findAllChiTietDonHang(pageable); }
{ "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
TODO Autogenerated method stub
@Override public Chitietdonhang findByIdChiTietDonHang(Integer id) { return chiTietDonHangRepository.findByIdChiTietDonHang(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public List<Chitietdonhang> findByIdChiTietDonHangActive() { return chiTietDonHangRepository.findByIdChiTietDonHangActive(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public List<Chitietdonhang> findAllByGioHang(Integer id) { return chiTietDonHangRepository.findAllByGioHang(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Chitietdonhang findAllByGioHang(Integer id, Integer idSanpham) { return chiTietDonHangRepository.findAllByGioHang(id, idSanpham); }
{ "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
TODO Autogenerated method stub
@Override public Integer groupBy(Integer id) { return chiTietDonHangRepository.groupBy(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Integer count(Integer id) { return chiTietDonHangRepository.count(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public List<Chitietdonhang> findAllGioHangTheoDonHang(Integer id) { return chiTietDonHangRepository.findAllGioHangTheoDonHang(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public long countchitietdonhang() { return chiTietDonHangRepository.countchitietdonhang(); }
{ "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
TODO Autogenerated method stub
@Override public Page<Chitietdonhang> findAllSanPhamBanChay(Pageable pageable) { return chiTietDonHangRepository.findAllSanPhamBanChay(pageable); }
{ "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 int tinhSoLuongSanPham(Integer id) { return chiTietDonHangRepository.tinhSoLuongSanPham(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public List<Chitietdonhang> findAllSanPhamBanChayTheoNgay(Integer nam, Integer thang, Integer ngay) { return chiTietDonHangRepository.findAllSanPhamBanChayTheoNgay(nam, thang, ngay); }
{ "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 int tinhSoLuongSanPhamTheoNgay(Integer id, Integer nam, Integer thang, Integer ngay) { return chiTietDonHangRepository.tinhSoLuongSanPhamTheoNgay(id, nam, thang, ngay); }
{ "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
TODO Autogenerated method stub
@Override public List<Chitietdonhang> findAllSanPhamBanChayTheoThang(Integer nam, Integer thang) { return chiTietDonHangRepository.findAllSanPhamBanChayTheoThang(nam, thang); }
{ "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 int tinhSoLuongSanPhamTheoThang(Integer id, Integer nam, Integer thang) { return chiTietDonHangRepository.tinhSoLuongSanPhamTheoThang(id, nam, thang); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public List<Chitietdonhang> findAllSanPhamBanChayTheoNam(Integer nam) { return chiTietDonHangRepository.findAllSanPhamBanChayTheoNam(nam); }
{ "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 int tinhSoLuongSanPhamTheoNam(Integer id, Integer nam) { return chiTietDonHangRepository.tinhSoLuongSanPhamTheoNam(id, nam); }
{ "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
TODO Autogenerated method stub
@Override public List<Chitietdonhang> tinhDoanhThuTheoNgay(Integer nam, Integer thang, Integer ngay) { return chiTietDonHangRepository.tinhDoanhThuTheoNgay(nam, thang, ngay); }
{ "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 List<Chitietdonhang> tinhDoanhThuTheoThang(Integer nam, Integer thang) { return chiTietDonHangRepository.tinhDoanhThuTheoThang(nam, thang); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public List<Chitietdonhang> tinhDoanhThuTheoNam(Integer nam) { return chiTietDonHangRepository.tinhDoanhThuTheoNam(nam); }
{ "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
insert a new value into the list of values associated to a key in tables
public void addValue(HashMap<String, HashSet<String>> table, String key, String newValue) { HashSet<String> currentValue = table.get(key); if (currentValue == null) { currentValue = new HashSet<String>(); table.put(key, currentValue); } currentValue.add(newValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertValues(String tablename, ArrayList<Value> valueList) throws SQLException {\n String sql = \"INSERT INTO `\" + tablename + \"` \";\n String keys = \"( `\" + valueList.get(0).getKey() + \"`\";\n String values = \") VALUES ('\" + valueList.get(0).getValue() + \"'\";\n\n for(Valu...
[ "0.67649204", "0.6741922", "0.65454686", "0.63704324", "0.6318482", "0.63117313", "0.63117313", "0.6273407", "0.6206838", "0.6123891", "0.6102043", "0.60971767", "0.6015384", "0.5982745", "0.5974958", "0.5972766", "0.59589726", "0.59542245", "0.59295756", "0.5899597", "0.5863...
0.59117705
19
general el archivo de depliegue de pruebas
@Deployment public static Archive<?> createTestArchive() { return ShrinkWrap.create(WebArchive.class, "test.war").addPackage(Persona.class.getPackage()) .addAsResource("persistenceForTest.xml", "META-INF/persistence.xml") .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Path getMainCatalogueFilePath();", "public Polipara() {\n // Iniciar el programa cargando el archivo de propiedades si existe.\n\n if (this.validarSerializacion()) {\n int response = JOptionPane.showConfirmDialog(null, \"Hay una versión anterior de una copa,\\n\"\n + \...
[ "0.6141855", "0.5873375", "0.5710931", "0.5547218", "0.55422103", "0.5419801", "0.54158485", "0.5379406", "0.5371479", "0.5366185", "0.5364388", "0.5358776", "0.532977", "0.531683", "0.52673656", "0.52669865", "0.5266433", "0.5262413", "0.5248629", "0.52395606", "0.5235987", ...
0.0
-1
lista todos los empleados
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void listarEmpleadosTest() { TypedQuery<Empleado> query = entityManager.createNamedQuery(Empleado.LISTAR_EMPLEADOS, Empleado.class); List<Empleado> listaEmpleados = query.getResultList(); Assert.assertEquals(listaEmpleados.size(), 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Empleado> buscarTodos() {\n\t\tList<Empleado> listEmpleados;\n\t\tQuery query = entityManager.createQuery(\"SELECT e FROM Empleado e WHERE estado = true\");\n\t\tlistEmpleados = query.getResultList();\n\t\tIterator iterator = listEmpleados.iterator();\n\t\twhile(iterator.hasNext())\n\t\t{\n\t\t\tSystem...
[ "0.7710959", "0.76797163", "0.7616711", "0.7420977", "0.7399745", "0.7251678", "0.7247781", "0.72350353", "0.7193124", "0.7173628", "0.71377057", "0.7125559", "0.708229", "0.7076199", "0.70709825", "0.70480096", "0.70255923", "0.6970271", "0.6956465", "0.69561523", "0.6942487...
0.6740982
45
metodo test para saber que personas no han realizado registros de plantas
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void obtenerPersonaSinRegistro() { TypedQuery<Persona> query = entityManager.createNamedQuery(Persona.PERSONA_SIN_REGISTRO, Persona.class); List<Persona> listaPersonas = query.getResultList(); Iterator<Persona> iterator = listaPersonas.iterator(); while (iterator.hasNext()) { System.out.println(iterator.next()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void checkFuelEmpty() {\n Game.getInstance().getPlayer().setSolarSystems(SolarSystems.SOMEBI);\n Game.getInstance().getPlayer().setFuel(0);\n assertFalse(SolarSystems.SOMEBI.canTravel(SolarSystems.ADDAM));\n \n \n \n }", "@Test\n ...
[ "0.62858766", "0.6258031", "0.62562567", "0.62147105", "0.62102646", "0.617771", "0.61020625", "0.6066544", "0.6050932", "0.6026392", "0.6002325", "0.5973324", "0.5955133", "0.5906909", "0.58954936", "0.58723515", "0.58394164", "0.58238107", "0.579555", "0.57669586", "0.57631...
0.0
-1
lista todas las plantas por aprovacion
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void listarPlantasAprovadasFromEmpleadoTest() { TypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_APROVACION, Planta.class); query.setParameter("aprovacion", 1); List<Planta> listaPlantas = query.getResultList(); Assert.assertEquals(listaPlantas.size(), 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }", "public ListaPracownikow() {\n generujPracownikow();\n ...
[ "0.66150105", "0.6123597", "0.6099912", "0.6091807", "0.60671663", "0.604585", "0.604501", "0.6035578", "0.6018041", "0.6003796", "0.5994849", "0.5938762", "0.59293103", "0.59286326", "0.59164345", "0.59145015", "0.5892132", "0.58758", "0.5872487", "0.58618563", "0.5837869", ...
0.6268782
1
lista todas las plantas por familia
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void listarPlantasPorFamiliaFromEmpleadoTest() { TypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_FAMILIA, Planta.class); query.setParameter("familia", "telepiatos"); List<Planta> listaPlantas = query.getResultList(); Assert.assertEquals(listaPlantas.size(), 3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }", "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\...
[ "0.6470177", "0.62446517", "0.6071636", "0.60646504", "0.5908274", "0.58576787", "0.5778132", "0.57601064", "0.57567096", "0.5748862", "0.57342076", "0.5728929", "0.5709461", "0.57093215", "0.5654792", "0.5646926", "0.56193596", "0.5612929", "0.5607553", "0.5589503", "0.55890...
0.6776251
0
listar plantas por genero
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void listarPlantasPorGeneroFromEmpleadoTest() { TypedQuery<Planta> query = entityManager.createNamedQuery(Planta.LISTAR_PLANTAS_POR_GENERO, Planta.class); query.setParameter("genero", "carnivoras"); List<Planta> listaPlantas = query.getResultList(); Assert.assertEquals(listaPlantas.size(), 2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populatePlantList(){\n\n for (Document doc : getPlantList()) {\n String picture = doc.getString(\"picture_url\");\n String name = doc.getString(\"plant_name\");\n String description = doc.getString(\"description\");\n ArrayList sunlightArray = doc.get...
[ "0.63393", "0.6323891", "0.6321515", "0.62198776", "0.6074276", "0.58732945", "0.5861903", "0.58558416", "0.5830429", "0.5812886", "0.5803215", "0.58025604", "0.5800688", "0.57331115", "0.5720308", "0.56806165", "0.5676782", "0.56694776", "0.5637494", "0.5635906", "0.5633965"...
0.6131824
4
test para eliminar un empleado
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void eliminarEmpladoTest() { Empleado ad = entityManager.find(Empleado.class, "125"); Assert.assertNotNull(ad); entityManager.remove(ad); Assert.assertNull("No se ha eliminado", entityManager.find(Administrador.class, "125")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeEmpleado(){\n //preguntar al empleado si realmente eliminar o no al objeto empleado\n this.mFrmMantenerEmpleado.messageBox(Constant.APP_NAME, \"<html>\"\n + \"¿Deseas remover el empleado del sistema?<br> \"\n ...
[ "0.7233925", "0.7143173", "0.7135969", "0.70055544", "0.6980363", "0.69771457", "0.6967723", "0.6946858", "0.68957174", "0.6876745", "0.6814409", "0.68112874", "0.6764435", "0.67638445", "0.67555684", "0.6752335", "0.67292786", "0.6716911", "0.6694446", "0.66532516", "0.66299...
0.7940379
0
test para eliminar un empleado
@Test @Transactional(value = TransactionMode.ROLLBACK) @UsingDataSet({ "persona.json", "registro.json", "administrador.json", "cuenta.json", "empleado.json", "familia.json", "genero.json", "recolector.json", "planta.json" }) public void modificarEmpleadoTest() { Empleado ad = entityManager.find(Empleado.class, "125"); Assert.assertNotNull(ad); ad.setNombre("Alfredo"); entityManager.merge(ad); ad = null; ad = entityManager.find(Empleado.class, "125"); Assert.assertEquals("Alfredo", ad.getNombre()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void eliminarEmpladoTest() {\n\t\tEmpleado ad = e...
[ "0.79404014", "0.72344655", "0.7142826", "0.7135009", "0.70060575", "0.69809437", "0.69780636", "0.6967882", "0.6947601", "0.68962944", "0.6877523", "0.6814592", "0.6812228", "0.6765036", "0.67645276", "0.67565125", "0.67533696", "0.6730062", "0.67173326", "0.66952634", "0.66...
0.0
-1
method to print the list of movies that is not END_SHOWING
public int printChoicesWithoutEndShowing() { int i=0; int N = this.getDataLength(); while (i<N) { if (this.dataList.get(i).isEndShowing()) break; System.out.println(i+" : "+this.dataList.get(i).toString()); i++; } return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showMovies() {\n System.out.println(\"Mina filmer:\");\n for (int i = 0; i < myMovies.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myMovies.get(i).getTitle() +\n \"\\nRegissör: \" + myMovies.get(i).getDirector() + \" | \" +\n ...
[ "0.7216688", "0.66083217", "0.66082054", "0.6493487", "0.6484776", "0.6388543", "0.6386381", "0.623673", "0.62259245", "0.6209855", "0.60948753", "0.6047802", "0.60138524", "0.59865266", "0.5983409", "0.59409523", "0.5868965", "0.5861798", "0.58401316", "0.58033496", "0.57560...
0.5304798
54
method to print list of movies that is not COMING_SOON
public int printChoicesForShowtimes() { int i=0; int N = this.getDataLength(); while(i<N) { if (this.dataList.get(i).isComingSoon()) break; System.out.println(i+" : "+this.dataList.get(i).toString()); ++i; } return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showMovies() {\n System.out.println(\"Mina filmer:\");\n for (int i = 0; i < myMovies.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myMovies.get(i).getTitle() +\n \"\\nRegissör: \" + myMovies.get(i).getDirector() + \" | \" +\n ...
[ "0.61034495", "0.60122055", "0.5969728", "0.5951616", "0.59065074", "0.5888651", "0.57085603", "0.55655897", "0.5548812", "0.5477388", "0.5465659", "0.54617584", "0.54491276", "0.53764856", "0.53194356", "0.5292533", "0.5277613", "0.5277457", "0.5268469", "0.52237165", "0.521...
0.0
-1
method to check if the movie exists based on its id
public boolean checkExistenceId(int id) { for (int i=0; i<getDataLength(); i++) { if (this.dataList.get(i).getId()==id) return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean exists(String id);", "public boolean isRatingGivenByUserExist(long movieId){\n SQLiteDatabase sqLiteDatabase = this.getReadableDatabase();\n String query = \"SELECT \" + MoviesDetailsEntry.COLUMN_USER_RATING + \" FROM \" + MoviesDetailsEntry.TABLE_NAME + \" WHERE \" +\n ...
[ "0.6915295", "0.6789345", "0.6653901", "0.6615706", "0.65835726", "0.65295655", "0.6522545", "0.6521446", "0.6501338", "0.6473628", "0.6456782", "0.63922447", "0.6389648", "0.6363381", "0.63522226", "0.63206774", "0.62987447", "0.6290888", "0.6290888", "0.6290888", "0.6290888...
0.5866167
94
method to create movie object with the parameters as its attributes
public void createMovie(int id, String title, int statusChoice, int typeChoice, int ratingChoice, String synopsis, String director, ArrayList<String> cast, int duration) { Movie movie = new Movie(id, title, statusChoice, typeChoice, ratingChoice, synopsis, director, cast, duration); this.create((T)movie); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Movie createNewMovie(String movieName, String directorName, String act1, String act2, String act3, int star)\n {\n Movie clip = new Movie(movieName, directorName, act1, act2, act3, star);\n return clip;\n }", "public Movie() {}", "public Movie() {}", "public Movie() {\n\n }", ...
[ "0.7180434", "0.69416577", "0.69416577", "0.6800658", "0.6781426", "0.65835613", "0.65774196", "0.6368596", "0.6294605", "0.62159044", "0.61758673", "0.6142051", "0.6122035", "0.6100587", "0.6087629", "0.60642743", "0.6058142", "0.5960854", "0.59518945", "0.593748", "0.593622...
0.6371472
7
method to update the tickets sold for each movie
public void updateTicketSales(int movieId, int sales) { for (int i=0; i<getDataLength(); ++i) { if (this.dataList.get(i).getId()==movieId) { this.dataList.get(i).updateTicketSales(sales); } } this.save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdateTickets (int updateTickets)\n {\n this.unsoldTickets=this.unsoldTickets + updateTickets; \n }", "private void updatePriceAndSaving() {\n movieOrder = new MovieOrder(movie, Weekday.weekdayForValue(selectedDay), flagsApplied, numberOfTickets);\n\n tvTotalPriceNewTicke...
[ "0.653591", "0.6437261", "0.6362104", "0.6084088", "0.6046156", "0.5777086", "0.5667205", "0.5665861", "0.55494297", "0.55208355", "0.54927504", "0.5426963", "0.5384039", "0.5341894", "0.53324485", "0.5320096", "0.5290425", "0.52729553", "0.52574825", "0.52414656", "0.5235495...
0.6924861
0
accessor method to get movie name
public Movie getMovie(int idx) { return (Movie)this.dataList.get(idx); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getMovieName()\r\n\t{\r\n\t\treturn movieNameConnection;\t\r\n\t}", "public long getmovieName() {\n\t\treturn 0;\r\n\t}", "public String getMovieTitle() {\n return movieTitle;\n }", "public java.lang.String getVideoName() {\n return videoName;\n }", "public Movie...
[ "0.79466665", "0.7343772", "0.73371166", "0.68594134", "0.6798926", "0.67895573", "0.67759436", "0.67564434", "0.6745809", "0.6702139", "0.66992533", "0.6691757", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.6649204", "0.664920...
0.0
-1
accessor method to get movie name by id
public Movie getMovieById(int movieId) { for (int i=0; i<getDataLength(); ++i) { if (this.dataList.get(i).getId()==movieId) return (Movie)this.dataList.get(i); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getItemTitle(int id) {\n return mMovieInfoData[id].getTitle();\n }", "@Override\n public Movie getFromId (Integer id) {return this.movies.get(id);}", "Movie getMovieById(final int movieId);", "public String getMovieId() {\n return movieID;\n }", "@Override\r\n\tpu...
[ "0.6992086", "0.68711466", "0.6801958", "0.6781333", "0.66954243", "0.66421235", "0.6640808", "0.66104025", "0.6509017", "0.6496973", "0.64855146", "0.64135695", "0.63503927", "0.6345932", "0.63363093", "0.6312295", "0.6299946", "0.62635654", "0.6262328", "0.61829036", "0.617...
0.0
-1
method to print out the list of movies by their id
public void printMovieListById(ArrayList<Integer> movieIdList) { ArrayList<Movie> movieList = new ArrayList<>(); Movie movie; for (int i=0; i<movieIdList.size(); ++i) { movie = this.getMovieById(movieIdList.get(i)); System.out.println(i+" : "+movie.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showMovies() {\n System.out.println(\"Mina filmer:\");\n for (int i = 0; i < myMovies.size(); i++) {\n System.out.println(\"\\n\" + (i + 1) + \". \" + myMovies.get(i).getTitle() +\n \"\\nRegissör: \" + myMovies.get(i).getDirector() + \" | \" +\n ...
[ "0.7231179", "0.71526057", "0.714216", "0.7140363", "0.7086457", "0.6876227", "0.685396", "0.6815073", "0.6811124", "0.67933", "0.6712352", "0.66572464", "0.65505636", "0.6507893", "0.64533293", "0.6371362", "0.6309769", "0.62878025", "0.62847626", "0.6246198", "0.6237393", ...
0.718018
1
accessor method to get the search result of the movie based on its availability in the cinema
public ArrayList<Movie> getSearchResult(String search) { ArrayList<Movie> res = new ArrayList<>(); for (int i=0; i<getDataLength(); ++i) { boolean check = false; check = this.dataList.get(i).getTitle().toLowerCase().contains(search.toLowerCase()); boolean checkEndShowing = this.dataList.get(i).isEndShowing(); if (check&&!checkEndShowing) res.add((Movie)this.dataList.get(i)); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Movie> search() {\n keyword = URLEncoder.encode(keyword);\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=yedukp76ffytfuy24zsqk7f5&q=\"\n + keyword + \"&page_limit=20\";\n apicall(url);\n System.out.println(url);\n Syst...
[ "0.66322654", "0.63521224", "0.6236351", "0.6219011", "0.6128015", "0.60561913", "0.60038257", "0.59866065", "0.5978051", "0.5952159", "0.5929198", "0.5878933", "0.58600867", "0.5845874", "0.58439016", "0.58425665", "0.5832162", "0.58273494", "0.5820245", "0.5807086", "0.5806...
0.6354794
1
method to print the movies with the 5 highest ratings
public void printTopRatingMovies() { Collections.sort(this.dataList, new SortByRating()); int top = Math.min(5, getDataLength()); for (int i=0; i<top; ++i) { System.out.println(this.dataList.get(i).toString()); } Collections.sort(this.dataList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void listByRating(){\r\n System.out.println('\\n'+\"List by Rating\");\r\n CompareRatings compareRatings = new CompareRatings();\r\n Collections.sort(movies, compareRatings);\r\n for (Movie movie: movies){\r\n System.out.println('\\n'+\"Rating: \"+ movie.getRating()+'\\n'+\"Title: \"...
[ "0.71010995", "0.7083653", "0.68456125", "0.6734531", "0.67082125", "0.6639107", "0.65964514", "0.65725034", "0.65656966", "0.65500945", "0.6535082", "0.65120137", "0.6492447", "0.64811945", "0.6455383", "0.64248365", "0.6375078", "0.6355581", "0.6350767", "0.6325404", "0.629...
0.82889634
0
method to print the movies with the 5 highest tickets sold
public void printTopSalesMovies() { Collections.sort(this.dataList, new SortBySales()); int top = Math.min(5, getDataLength()); for (int i=0; i<top; ++i) { System.out.println(this.dataList.get(i).toString()); } Collections.sort(this.dataList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printTopRatingMovies() {\n\t\tCollections.sort(this.dataList, new SortByRating());\n\t\tint top = Math.min(5, getDataLength());\n\t\tfor (int i=0; i<top; ++i) {\n\t\t\tSystem.out.println(this.dataList.get(i).toString());\n\t\t}\n\t\tCollections.sort(this.dataList);\n\t}", "Movie mostPopularMovieRevie...
[ "0.7383868", "0.6462457", "0.6451904", "0.64252186", "0.6367487", "0.62219787", "0.6156567", "0.6143282", "0.6095761", "0.6085492", "0.6065349", "0.5886168", "0.5880396", "0.585224", "0.5838022", "0.5819576", "0.5799105", "0.5793464", "0.5784106", "0.5754854", "0.5752323", ...
0.7273191
1
method to compare the ratings of 2 movies
public int compare(Movie a, Movie b) { double aRating = a.computeRating(); double bRating = b.computeRating(); if (aRating>bRating) return -1; else if (aRating<bRating) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int compare(Movie o1, Movie o2) {\n\t\t\r\n\t\tif(o1.getRating()<o2.getRating()) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\tif(o1.getRating()>o2.getRating()) {\r\n\t\t\treturn 1;\r\n\t\t}else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "@Test\n public void testGetRating() {\n final double e...
[ "0.69957423", "0.65069395", "0.6441992", "0.6348227", "0.62884015", "0.6227374", "0.6210153", "0.6201202", "0.61971885", "0.6183189", "0.6139757", "0.6136547", "0.61161345", "0.6063475", "0.59681606", "0.59680307", "0.59302664", "0.5905397", "0.5896923", "0.5882369", "0.58289...
0.7494238
0
method to compare the tickets sold between 2 movies
public int compare(Movie a, Movie b) { if (a.getTicketSales()>b.getTicketSales()) return -1; else if (a.getTicketSales()<b.getTicketSales()) return 1; else return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int compare(Movie a, Movie b) {\n\t\tdouble aRating = a.computeRating();\n\t\tdouble bRating = b.computeRating();\n\t\tif (aRating>bRating)\n\t\t\treturn -1;\n\t\telse if (aRating<bRating)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "public int compareTo(Movie m)\n\t{\n\t\treturn this.year - m.year...
[ "0.6114418", "0.59613377", "0.5838165", "0.5720028", "0.5667119", "0.56497574", "0.55625373", "0.5562042", "0.55455893", "0.5323991", "0.5307871", "0.5297075", "0.52741605", "0.52587634", "0.5234855", "0.5220045", "0.5208408", "0.52019477", "0.51885235", "0.5175949", "0.51675...
0.6596433
0
Let's take the tumor bean in common to test tumor has 3 properties: tumorId, tumorName, tumorDescription;
@Test public void testGetterMethodSucess() throws Exception { Method m = GetterMethod.getGetter(Tumor.class, "tumorId"); assertNotNull(m); assertEquals("getTumorId", m.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void getTarjetaPrepagoTest()\n {\n TarjetaPrepagoEntity entity = data.get(0);\n TarjetaPrepagoEntity resultEntity = tarjetaPrepagoLogic.getTarjetaPrepago(entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId(...
[ "0.55626076", "0.54971206", "0.54813707", "0.54811174", "0.54636276", "0.5432305", "0.5417683", "0.5325311", "0.52472025", "0.51995707", "0.51799047", "0.5172587", "0.51701355", "0.51559806", "0.51553625", "0.51335377", "0.5127935", "0.5127483", "0.51272887", "0.512695", "0.5...
0.5331847
7
Method that clears and sends keys
public static void sendText(WebElement element, String text) { element.clear(); element.sendKeys(text); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void flushKeys() {\n getKeyStates();\n }", "void unsetKeyBox();", "void clear(String key);", "public void clearEscAndType(CharSequence... keysToSend) {\n clear();\n getWrappedElement().sendKeys(Keys.ESCAPE);\n type(keysToSend);\n }", "public void clearCommand(){\n up = fa...
[ "0.67213726", "0.6649998", "0.65452456", "0.6506302", "0.6369915", "0.6202619", "0.6123335", "0.59969294", "0.5990056", "0.5964096", "0.5896958", "0.5889836", "0.5866349", "0.5830075", "0.58127415", "0.57850987", "0.57502985", "0.57380617", "0.57185227", "0.5712088", "0.57045...
0.0
-1
git add Method checks if radio/checkbox is enable and clicks it
public static void clickRadioOrCheckbox(List<WebElement> radioOrCheckbox, String value) { for (WebElement el : radioOrCheckbox) { String actualValue = el.getAttribute("value").trim(); if (el.isEnabled() && actualValue.equals(value)) { el.click(); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkboxaddClicked(View view) {\n flag++;\n mRlNote.setVisibility(View.GONE);\n mRlAddItem.setVisibility(View.VISIBLE);\n }", "@Override\n public boolean handleClick(ContentElement element, EditorEvent event) {\n boolean isImplChecked = getImplAsInputElement(element).i...
[ "0.60400176", "0.5962929", "0.5889011", "0.5831492", "0.5749661", "0.572433", "0.5649494", "0.5644873", "0.5639375", "0.55725807", "0.5560842", "0.55338436", "0.550799", "0.55062205", "0.5499125", "0.5484672", "0.5483723", "0.548167", "0.5476546", "0.5465536", "0.5458807", ...
0.0
-1
Method that selects value by index
public static void selectDdValue(WebElement element, int index) { try { Select select = new Select(element); int size = select.getOptions().size(); if (size > index) { select.deselectByIndex(index); } } catch (UnexpectedTagNameException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getValue(int index);", "public int get(int index);", "abstract public Object getValue(int index);", "Object get(int index);", "Object get(int index);", "public Object get(int index);", "public Object get(int index);", "abstract int get(int index);", "int get(int idx);", "void select...
[ "0.8145449", "0.79755455", "0.79195684", "0.79015714", "0.79015714", "0.7824463", "0.7824463", "0.7644763", "0.7624796", "0.7615933", "0.7564049", "0.7564049", "0.7564049", "0.74566895", "0.74566895", "0.74566895", "0.74566895", "0.74566895", "0.74373883", "0.73781747", "0.73...
0.0
-1
Method switches focus to child window
public static void switchToChildWindow() { String mainWindow = driver.getWindowHandle(); Set<String> windows = driver.getWindowHandles(); for (String window : windows) { if (!window.equals(mainWindow)) { driver.switchTo().window(window); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void switchToChildWindow() {\t\t\n\t\tString parent = Constants.driver.getWindowHandle();\n\t\tLOG.info(\"Parent window handle: \" +parent);\n\t\tSet <String> windows = Constants.driver.getWindowHandles();\n\t\tIterator <String> itr = windows.iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tString chi...
[ "0.7189738", "0.69512403", "0.6775618", "0.6762138", "0.66590846", "0.66201377", "0.66097534", "0.6604427", "0.6597881", "0.6563106", "0.65586895", "0.6555596", "0.65424615", "0.65424615", "0.65424615", "0.6516517", "0.6512848", "0.651153", "0.6510347", "0.64875275", "0.64826...
0.734242
0
Method that will scroll the page down based on the passed pixel parameters
public static void scrollDown(int pixel) { getJSObject().executeScript("window.scrollBy(0," + pixel + ")"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void scroll(int scrollTop);", "public void scrollDown() {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n Long value = (Long) javaScriptExecutor.executeScript(\"return window.pageYOffset;\");\n javaScriptExecutor.executeScript(\"scroll(0, \" + (value + 1000) + \");\");\...
[ "0.6704218", "0.64581776", "0.64190245", "0.632289", "0.6319475", "0.62725824", "0.6121382", "0.60426617", "0.59680885", "0.58876485", "0.58628637", "0.5848839", "0.5842464", "0.58019525", "0.5762717", "0.5676505", "0.5664679", "0.5660513", "0.5653849", "0.56491226", "0.56448...
0.71767306
0
Method that will scroll the page up based on the passed pixel parameters
public static void scrollUp(int pixel) { getJSObject().executeScript("window.scrollBy(0,-" + pixel + ")"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void scrollDown(int pixel) {\n\t\tgetJSObject().executeScript(\"window.scrollBy(0,\" + pixel + \")\");\n\t}", "public void scrollUp() {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n Long value = (Long) javaScriptExecutor.executeScript(\"return window.pageYOffse...
[ "0.65320104", "0.6527288", "0.6500197", "0.64451164", "0.6134098", "0.6094623", "0.6023939", "0.60052705", "0.5951949", "0.5862529", "0.58377886", "0.5835441", "0.5817115", "0.578674", "0.57673633", "0.5765992", "0.57393706", "0.57185894", "0.5713891", "0.5695251", "0.5665035...
0.72990084
0
This method will take a screenshot
public static String takeScreenshot(String filename) { TakesScreenshot ts= (TakesScreenshot)driver; File file=ts.getScreenshotAs(OutputType.FILE); String destinationFile=Constants.SCREENSHOT_FILEPATH+filename+".png"; try { FileUtils.copyFile(file, new File("screenshot/"+filename+".pig")); }catch (Exception ex) { System.out.println("Cannot take screenshot!"); } return destinationFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void takesScreenshot();", "public void takeScreenShot();", "public void takeScreenShot(){\n\t\tDate d=new Date();\r\n\t\tString screenshotFile=d.toString().replace(\":\", \"_\").replace(\" \", \"_\")+\".png\";\r\n\t\t// store screenshot in that file\r\n\t\tFile scrFile = ((TakesScreenshot)driver).getScreenshot...
[ "0.83705735", "0.8201672", "0.7973316", "0.7825167", "0.7781062", "0.7768714", "0.7596758", "0.7566903", "0.7560677", "0.74969727", "0.7427694", "0.7393945", "0.7391303", "0.73838055", "0.73655635", "0.73252255", "0.7309225", "0.72536504", "0.72201174", "0.7203507", "0.718685...
0.6635625
59
this method will select a day from a calendar
public static void selectCalendarDate(List<WebElement> element, String text) { for (WebElement pickDate : element) { if (pickDate.isEnabled()) { if (pickDate.getText().equals(text)) { pickDate.click(); break; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void scanCurrentDay(){\n month.getMyCalendar().setDate(dp.getYear(), dp.getMonth(), dp.getDayOfMonth());\n month.setSelectDay(dp.getDayOfMonth());\n month.invalidate();\n this.dismiss();\n }", "@Test(enabled = true)\n\tpublic void selectDateTest() {\n\t\tWebElement calendar...
[ "0.68929076", "0.67917496", "0.6769201", "0.64766186", "0.6428839", "0.6395244", "0.63728774", "0.6332578", "0.6298532", "0.62774557", "0.6244965", "0.62404656", "0.6232382", "0.6232365", "0.62162894", "0.62118715", "0.6207272", "0.620654", "0.6196433", "0.6196186", "0.619183...
0.5895076
58
logging, safe to ignore
@Override public CommandResult execute(String commandText) throws CommandException, ParseException { logger.info("----------------[USER COMMAND][" + commandText + "]"); CommandResult commandResult; //Parse user input from String to a Command Command command = weeblingoParser.parseCommand(commandText); //Executes the Command and stores the result commandResult = command.execute(model); try { // Whenever a command is successfully executed, we will store all the content of FlashcardBook. storage.saveFlashcardBook(model.getFlashcardBook()); } catch (IOException ioe) { throw new CommandException(FILE_OPS_ERROR_MESSAGE + ioe, ioe); } return commandResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void log()\n {\n }", "String getLogHandled();", "public void disableLogging();", "public void enableLogging();", "void log();", "abstract protected void _log(TrackingEvent event) throws Exception;", "@Override\n public void logs() {\n \n }", "abstract prot...
[ "0.7321884", "0.707857", "0.7069428", "0.69702697", "0.6955559", "0.6953239", "0.69412297", "0.677809", "0.6715183", "0.6657147", "0.6640948", "0.6608122", "0.659586", "0.650753", "0.65049", "0.6474814", "0.647146", "0.64586365", "0.6454145", "0.6417969", "0.6417969", "0.64...
0.0
-1
Gets current index of quiz question if a quiz session has started. Otherwise return LIST_INDEX.
@Override public int getCurrentIndex() { if (getCurrentMode() == Mode.MODE_QUIZ_SESSION || getCurrentMode() == Mode.MODE_CHECK_SUCCESS) { int currentIndex = model.getCurrentIndex(); assert currentIndex != LIST_INDEX; return currentIndex; } else { return LIST_INDEX; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getQuestionIndex (SurveyQuestion question) {\n return questions.indexOf(question);\n }", "public int getIndex() { \n\t\t\treturn currIndex;\n\t\t}", "public int getIndex()\n {\n return getInt(\"Index\");\n }", "public int getAnsweredQuestions(int index){\n\t\treturn ...
[ "0.6983353", "0.6007321", "0.5922492", "0.58820176", "0.5871148", "0.58665496", "0.58632505", "0.5860975", "0.5860975", "0.5860975", "0.5860975", "0.5860975", "0.5860975", "0.58595693", "0.5859037", "0.58449525", "0.5833702", "0.5829547", "0.5829547", "0.5829547", "0.5828732"...
0.74747175
0
return a total heuristic value
public int hValue() { if (value != GameParameters.draw) { if (Math.abs(value) > xWin) { return value > 0 ? xWin : oWin; } return value; } return GameParameters.draw; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic double heuristic() {\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tsum += Math.abs(xGoals[i] - state[i]);\n\t\t\t\tsum += Math.abs(yGoals[i] - state[k + i]);\n\t\t\t}\n\t\t\treturn sum;\n\t\t}", "public int getHeuristicScore() {\n \tCell cell=curMap.getCell(nodePos[0]...
[ "0.766298", "0.7552137", "0.7419484", "0.71712154", "0.7058474", "0.6978859", "0.6978625", "0.6963036", "0.676883", "0.67251444", "0.6708578", "0.66970295", "0.66824657", "0.66824657", "0.660618", "0.6574195", "0.6539217", "0.65340793", "0.65334463", "0.64670116", "0.64657545...
0.0
-1
cal value for each line in root node
private void calValue() { for (char[] array : root.lines()) { int[] nums = HeuristicAdvanNode.checkLine(array); value += calHValue(nums[0], nums[1]); if (Math.abs(value) > xWin) { return; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calculateValue() {\n if (!isLeaf && Double.isNaN(value)) {\n for (List<LatticeNode> list : children) {\n double tempVal = 0;\n for (LatticeNode node : list) {\n tempVal += ((CALatticeNode) node).calculateValue();\n }\n ...
[ "0.6158086", "0.5889588", "0.5671609", "0.56495357", "0.55863285", "0.5533046", "0.5404473", "0.5397152", "0.5364882", "0.5318926", "0.5311668", "0.5308528", "0.5299478", "0.52439237", "0.5167239", "0.51477814", "0.5134883", "0.51337445", "0.51055074", "0.5098645", "0.508265"...
0.64515436
0
cal heuristic value for one line of node
private int calHValue(int xNum, int oNum) { if (xNum > 0 && oNum > 0) { return GameParameters.draw; } switch (xNum + oNum) { case 1: return xNum > 0 ? onePoint : -onePoint; case 2: return xNum > 0 ? twoPoint : -twoPoint; case 3: return xNum > 0 ? threePoint : -threePoint; case 4: return xNum > 0 ? xWin : oWin; } return GameParameters.draw; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void calValue() {\r\n for (char[] array : root.lines()) {\r\n int[] nums = HeuristicAdvanNode.checkLine(array);\r\n value += calHValue(nums[0], nums[1]);\r\n if (Math.abs(value) > xWin) {\r\n return;\r\n }\r\n }\r\n }", "private ...
[ "0.73416007", "0.66546714", "0.6412433", "0.6222556", "0.6121988", "0.6109851", "0.6069212", "0.6045279", "0.5979808", "0.5905445", "0.59005237", "0.587288", "0.58688414", "0.5844952", "0.58288157", "0.57947564", "0.5793688", "0.5779455", "0.57741666", "0.57734084", "0.577078...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_doctors_list, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7249256", "0.72037125", "0.7197713", "0.7180111", "0.71107703", "0.70437056", "0.70412415", "0.7014533", "0.7011124", "0.6983377", "0.69496083", "0.69436663", "0.69371194", "0.69207716", "0.69207716", "0.6893342", "0.6886841", "0.6879545", "0.6877086", "0.68662405", "0.686...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79036397", "0.78051436", "0.77656627", "0.7726445", "0.7630767", "0.76211494", "0.75842685", "0.75296193", "0.74868536", "0.74574566", "0.74574566", "0.7437983", "0.7422003", "0.7402867", "0.7391276", "0.73864174", "0.7378494", "0.73696834", "0.736246", "0.7355139", "0.734...
0.0
-1
Getters, setters y constructores
public String prenda() { if(this.getColorSecundario()==null) return this.getTipo().tipo+" de "+this.getTela().toString() +" de color "+this.getColorPrimario().toString(); else return this.getTipo().tipo+" de "+this.getTela().toString() +" de color "+this.getColorPrimario()+" y "+this.getColorSecundario().toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Propuestas() {}", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Es...
[ "0.66497916", "0.6573632", "0.64457494", "0.64429647", "0.64211416", "0.6392464", "0.6383176", "0.63447887", "0.63296235", "0.632744", "0.63059384", "0.6303178", "0.6299057", "0.62667936", "0.6262182", "0.62477714", "0.62409115", "0.62395895", "0.62378937", "0.6237747", "0.62...
0.0
-1
populated from javadoc custom tag Create a doclet of the appropriate type and generate the FreeMarker templates properties.
public static boolean start(final com.sun.javadoc.RootDoc rootDoc) throws IOException { return new GATKHelpDoclet().startProcessDocs(rootDoc); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Documentation createDocumentation();", "Documentation createDocumentation();", "public void generarDoc(){\n generarDocP();\n }", "private static DocumentationImpl createDocumentation() {\n\t\treturn DocumentationImpl.Builder.info(\"A workspace in which other items can be placed, and top-level optio...
[ "0.7059317", "0.7059317", "0.67494416", "0.6083844", "0.6018367", "0.6018192", "0.5937425", "0.59150046", "0.5906148", "0.5629692", "0.553133", "0.5441533", "0.5441533", "0.5419304", "0.5356307", "0.5352928", "0.5313174", "0.53067446", "0.5279754", "0.5279754", "0.5237263", ...
0.0
-1
Return the name of the freemarker template to be used for the index generated by Barclay. Must reside in the folder passed to the Barclay Javadc Doclet via the "settingsdir" parameter.
@Override public String getIndexTemplateName() { return GATK_FREEMARKER_INDEX_TEMPLATE_NAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTemplateName()\n {\n return MY_TEMPLATE;\n }", "protected abstract String getTemplateFilename();", "String getTemplate();", "public File getTemplateFile();", "public String getTemplateName() {\r\n\t\treturn templateName;\r\n\t}", "public String getTemplateName() {\n\t\tretur...
[ "0.6248292", "0.6159301", "0.6041331", "0.60347384", "0.5960071", "0.59378797", "0.59090704", "0.58516455", "0.57523036", "0.5749658", "0.573728", "0.571944", "0.57155806", "0.567983", "0.5677496", "0.5561057", "0.55289817", "0.54569125", "0.540866", "0.5407811", "0.53561485"...
0.7000479
0
Create a GSONWorkUnitderived object that holds our custom data. This method should create the object, and propagate any custom javadoc tags from the template map to the newly created GSON object; specifically "walkertype", which is pulled from a custom javadoc tag.
@Override protected GSONWorkUnit createGSONWorkUnit( final DocWorkUnit workUnit, final List<Map<String, String>> groupMaps, final List<Map<String, String>> featureMaps) { GATKGSONWorkUnit gatkGSONWorkUnit = new GATKGSONWorkUnit(); gatkGSONWorkUnit.setWalkerType((String)workUnit.getRootMap().get(WALKER_TYPE_MAP_ENTRY)); return gatkGSONWorkUnit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void generate() {\n\t\tJavaObject object = new JavaObject(objectType);\n\n\t\t// Fields\n\t\taddFields(object);\n\n\t\t// Empty constructor\n\t\taddEmptyConstructor(object);\n\n\t\t// Types constructor\n\t\taddTypesConstructor(object);\n\n\t\t// Clone constructor\n\t\taddCloneConstructor(object...
[ "0.5054361", "0.50454336", "0.49629635", "0.49264336", "0.47998956", "0.47714442", "0.47136465", "0.47106636", "0.47105166", "0.4682312", "0.46489546", "0.46445203", "0.46214244", "0.4620566", "0.4618621", "0.46083727", "0.46073827", "0.4593872", "0.45480046", "0.45440266", "...
0.7028912
0
Adds a supercategory so that we can customorder the categories in the doc index
@Override protected final Map<String, String> getGroupMap(final DocWorkUnit docWorkUnit) { final Map<String, String> root = super.getGroupMap(docWorkUnit); /** * Add-on super-category definitions. The super-category and spark value strings need to be the * same as used in the Freemarker template. */ root.put("supercat", HelpConstants.getSuperCategoryProperty(docWorkUnit.getGroupName())); return root; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}", "void addCategory(Category category);", "public Document addCategoryToTheDocument(Document document, Integer docCategoryId) {\n DocCatego...
[ "0.60145706", "0.56734705", "0.56259435", "0.5596687", "0.55765617", "0.55708635", "0.54429096", "0.5395706", "0.5392998", "0.5339311", "0.53139824", "0.53021044", "0.52991754", "0.52824485", "0.5265345", "0.5221611", "0.518341", "0.51705086", "0.51697075", "0.5166594", "0.51...
0.5000905
35
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_dashboard, container, false); SharedPreferences pref = getActivity().getApplicationContext().getSharedPreferences("Prefs", 0); if (!pref.contains("semester")) { SharedPreferences.Editor editor = pref.edit(); editor.putInt("semester", 0); editor.apply(); } int semester = pref.getInt("semester", 0); final TextView scoreLabel = view.findViewById(R.id.score_label); Spinner semesterPicker = view.findViewById(R.id.semester_picker); semesterPicker.setSelection(semester); semesterPicker.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { SharedPreferences pref = getActivity().getApplicationContext().getSharedPreferences("Prefs", 0); SharedPreferences.Editor editor = pref.edit(); editor.putInt("semester", position); editor.apply(); int semester = pref.getInt("semester", 0); updateScore(view, semester, scoreLabel); } @Override public void onNothingSelected(AdapterView<?> parent) { } }); updateScore(view, semester, scoreLabel); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Interface for serialization of instances. Implementations should be registered for specific scheme/method/mediatype using registerSerializer method for given connector.
public interface InstanceSerializer { /** * Serialize instance into the <tt>SerializerWrapperObject</tt> * * @param submission submission information. * @param instance instance to serialize. * @param serializerRequestWrapper object to write into. * @param defaultEncoding use this encoding in case user did not provide one. */ void serialize(Submission submission, Node instance, SerializerRequestWrapper serializerRequestWrapper, String defaultEncoding) throws Exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Serializer {\r\n /**\r\n * Gets the value which indicates the encoding mechanism used.\r\n */\r\n String getContentEncoding();\r\n\r\n /**\r\n * Gets the MIME-type suffix\r\n */\r\n String getContentFormat();\r\n\r\n /**\r\n * Serializes the object graph provided an...
[ "0.6332361", "0.61993873", "0.6127247", "0.60971814", "0.60879195", "0.6057096", "0.59863424", "0.59511596", "0.5865501", "0.5855005", "0.58425117", "0.58153385", "0.575912", "0.5704201", "0.56984067", "0.5680726", "0.56621486", "0.565281", "0.56427246", "0.5599899", "0.55775...
0.63215154
1
Serialize instance into the SerializerWrapperObject
void serialize(Submission submission, Node instance, SerializerRequestWrapper serializerRequestWrapper, String defaultEncoding) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface InstanceSerializer {\n\n /**\n * Serialize instance into the <tt>SerializerWrapperObject</tt>\n *\n * @param submission submission information.\n * @param instance instance to serialize.\n * @param serializerRequestWrapper object to write int...
[ "0.6779664", "0.6605162", "0.6493539", "0.6482885", "0.6458055", "0.6338389", "0.6271906", "0.6254958", "0.62374717", "0.6165925", "0.6044645", "0.6041604", "0.5942299", "0.5934833", "0.58998686", "0.58932674", "0.5883231", "0.5837955", "0.5830544", "0.57986253", "0.57985544"...
0.60461766
10
/ renamed from: a
public boolean mo40170a(C4217w wVar) { mo40176a().mo40020d().mo40277a(wVar); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.5827...
0.0
-1
Find the available places for these dates
@SuppressWarnings("unchecked") public JSONCalendar availableHouses(String startDate, String endDate) { // Create a new list with house ID'sz List<String> houseIDs = new ArrayList<>(); List<Calendar> dates = null; List<String> housed = null; List<Calendar> d = null; JSONCalendar ca = new JSONCalendar(); EntityManager em = JPAResource.factory.createEntityManager(); EntityTransaction tx = em.getTransaction(); tx.begin(); // Find the houses id's Query q1 = em.createQuery("SELECT h.houseID from House h"); // It has all the houseIDs housed = q1.getResultList(); //System.out.println(housed); Query q = em.createNamedQuery("Calendar.findAll"); dates = q.getResultList(); for( int i = 0; i < housed.size(); i++ ) { // Select all the dates for every house int k = 0; Query q2 = em.createQuery("SELECT c from Calendar c WHERE c.houseID = :id AND c.date >= :startDate AND c.date < :endDate"); q2.setParameter("id", housed.get(i)); q2.setParameter("startDate", startDate); q2.setParameter("endDate", endDate); d = q2.getResultList(); long idHouse = 0; for(int j = 0; j < d.size(); j++) { //System.out.println(d.get(j).getHouseID()); idHouse = d.get(j).getHouseID(); if(d.get(j).getAvailable() == true) { k++; // System.out.println(k); } // Find out if the houses are available these days } if(k == d.size() && k != 0) { // System.out.println(k); houseIDs.add(String.valueOf(idHouse)); } } // Select all the houses ca.setResults(houseIDs); ca.setNumDates(d.size()); // System.out.println(startDate + " " + endDate); // System.out.println(houseIDs); return ca; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void CheckAvail(LocalDate indate, LocalDate outdate)\r\n {\n if (Days.daysBetween(lastupdate, outdate).getDays() > 30)\r\n {\r\n System.out.println(\"more than 30\");\r\n return;\r\n }//Check if checkin date is before today\r\n if (Days.daysBetween(lastup...
[ "0.6494364", "0.6181539", "0.6078802", "0.607814", "0.58508813", "0.58113617", "0.57177573", "0.57134145", "0.57023066", "0.56948644", "0.5694025", "0.5671803", "0.56400263", "0.56363744", "0.55714774", "0.5487614", "0.54778075", "0.5475429", "0.5464383", "0.5435072", "0.5431...
0.6092265
2
Created by Rico on 20150119.
public interface OrderResolver { String resolve(String lang, String alias, String property, Criteria.OrderMode mode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic ...
[ "0.5964061", "0.5863123", "0.58484423", "0.58188605", "0.580368", "0.57778955", "0.5770573", "0.5770573", "0.5726793", "0.5707032", "0.57004327", "0.5684282", "0.56696355", "0.566746", "0.5654922", "0.5648677", "0.5644957", "0.5641456", "0.5634661", "0.5623823", "0.56230026",...
0.0
-1
This constructor takes no parameters
public BookState() { this("AVAILABLE",new GeoPoint(0,0),null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Generic(){\n\t\tthis(null);\n\t}", "void DefaultConstructor(){}", "defaultConstructor(){}", "public Orbiter() {\n }", "...
[ "0.7984201", "0.76188177", "0.75502944", "0.7211132", "0.710287", "0.71000904", "0.7079572", "0.70465255", "0.7002959", "0.6972785", "0.69458026", "0.692731", "0.6922461", "0.69187653", "0.69179124", "0.6894296", "0.6883291", "0.68662304", "0.6831779", "0.68306327", "0.682377...
0.0
-1
This constructor takes in three parameters
public BookState(String bookStatus, @Nullable GeoPoint geoPoint, @Nullable String handOffState) { this.bookStatus = bookStatus; this.location = geoPoint; this.handOffState = handOffState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "private Vect3() {\n\t\tthis(0.0,0.0,0.0);\n\t}", "public Constructor(){\n\t\t\n\t}", "private D3() {\n super(3);\n }", "public MultiShape3D()\n {\n this( (Geometry)null, (Appearance)null );\n }", "public ListElement()\n\t{\n\t\tthis(null, null, n...
[ "0.70275146", "0.68835104", "0.6715447", "0.66813356", "0.6510731", "0.6491087", "0.639418", "0.6377424", "0.63609004", "0.6347392", "0.631182", "0.6300677", "0.6297043", "0.6294907", "0.6284183", "0.6260662", "0.6259112", "0.6249367", "0.6246713", "0.62433535", "0.6229548", ...
0.0
-1
A constructor for a binary tree using the expression. You should parse the expression and store them recursively.
public BinaryTree(String expression) { String[] arr = expression.split(" "); root = parse(arr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ExpressionTree(TreeNode treeNode) {\n\t\tsuper(treeNode.getValue(), treeNode.getLeft(), treeNode.getRight());\n\t}", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a...
[ "0.7007988", "0.6974175", "0.6965503", "0.69646966", "0.6804854", "0.6788323", "0.6739155", "0.66558754", "0.6602663", "0.6480456", "0.64505243", "0.6425224", "0.6400591", "0.6389595", "0.63793486", "0.6344644", "0.6269181", "0.6259553", "0.6253727", "0.62513894", "0.62168807...
0.87636703
0
Returns the result of calculation for the given expression.
public int calculate() { traversal(root); if(!calResult.isEmpty()){ int answer = Integer.parseInt(calResult.pop()); return answer; } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int expressionEval(String expression){\n\n int result = 0;\n\n\n\n return result;\n }", "@NotNull\n public final Promise<XExpression> calculateEvaluationExpression() {\n return myValueContainer.calculateEvaluationExpression();\n }", "ExpressionCalculPrimary getExpr();", "public S...
[ "0.7102285", "0.7009588", "0.6991423", "0.6964201", "0.69393873", "0.69293165", "0.6842572", "0.6834487", "0.6817366", "0.67938215", "0.67914987", "0.678802", "0.677012", "0.67674935", "0.6746986", "0.6746519", "0.6699768", "0.66983986", "0.6660412", "0.658483", "0.65789616",...
0.5800975
97
Returns the result of postorder traversal of this tree.
public String postorder() { result = ""; traversal(root); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic List<Node<T>> getPostOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPost(raiz, lista);\r\n\t}", "public String postorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to t...
[ "0.763728", "0.751997", "0.7235254", "0.7174672", "0.7174672", "0.7143394", "0.69611883", "0.68758214", "0.68397605", "0.6837044", "0.6828472", "0.6791203", "0.6771862", "0.67226243", "0.6645481", "0.66124135", "0.66011435", "0.65727043", "0.6545497", "0.65444446", "0.654125"...
0.7885308
0
The constructor which expect all properties of the company set
public Company(int shares, int hoursPerMonth){ this.shares = shares; this.hoursPerMonth = hoursPerMonth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Company() {\r\n\t\tsuper();\r\n\t}", "public Company() {\n\t\tsuper();\n\t}", "public CompanyData() {\r\n }", "public AirlineCompany() {\n\t}", "public BeansCompany() {\n\t\tsuper();\n\t}", "public ManagementCompany() {\r\n\t\tthis.name = \"\";\r\n\t\tthis.taxID = \"\";\r\n\t\tthis.mgmFeePer = ...
[ "0.77218175", "0.76532745", "0.7522367", "0.73925465", "0.69824684", "0.690573", "0.6628837", "0.6607052", "0.6474584", "0.6470006", "0.64368784", "0.6431418", "0.63958275", "0.6387167", "0.6296906", "0.62791973", "0.62547314", "0.6213263", "0.61470497", "0.61463964", "0.6144...
0.5937142
32
Returns the shares of the company
public int getShare(){ return this.shares; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<CompanyShare> getShares(Bson companyShareCriteria) {\n FindIterable<Document> sharesMatchingQuery = getSharesCollection().find(companyShareCriteria);\n return toCompanySharesArrayList(sharesMatchingQuery);\n }", "@Override\n public List<CompanyShare> getShares(int l...
[ "0.7527808", "0.69380647", "0.6323941", "0.60753316", "0.58810586", "0.58601755", "0.58223695", "0.5821785", "0.578425", "0.5776525", "0.5694479", "0.5610412", "0.55801696", "0.55539495", "0.5538266", "0.5533677", "0.5494404", "0.54579407", "0.53705335", "0.5325619", "0.52824...
0.61895293
3
Returns the hours an employee has work within a mont
public int getHoursPerMonth(){ return this.hoursPerMonth; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getOccupiedHours(){\n \t\treturn getOccupiedMinutes()/60;\n \t}", "public static double hoursSpent()\n\t{\n\t\treturn 7.0;\n\t}", "public int[] getHours() {\n int[] hoursArray = {this.hours, this.overtimeHours};\n return hoursArray;\n }", "public int getIntervalHours();", "publi...
[ "0.67903453", "0.66022515", "0.64048576", "0.63228256", "0.63053924", "0.625673", "0.6246377", "0.6220523", "0.62070894", "0.6185359", "0.6172548", "0.61245483", "0.6057488", "0.6057488", "0.6028651", "0.60116816", "0.6007323", "0.598498", "0.5970593", "0.5966644", "0.5932087...
0.5848776
29
Creates new form FrmPuntoDeVenta
public FrmPuntoDeVenta(Empleado empleado) throws ParseException { this.date1 = dateFormat.parse(this.date.getYear() + "-" + this.date.getMonth() + "-" + this.date.getDay()); this.jframe = this; this.empleado = empleado; initComponents(); this.cargarBanner(); this.setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tth...
[ "0.6752772", "0.67449856", "0.6620373", "0.6575253", "0.65632796", "0.6557394", "0.6507713", "0.642626", "0.641323", "0.6399268", "0.6396076", "0.63932985", "0.6393033", "0.639273", "0.63752484", "0.63578135", "0.6353758", "0.63522184", "0.63144803", "0.6294415", "0.62761825"...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { lblBanner = new javax.swing.JLabel(); lblEncabezado = new javax.swing.JLabel(); scrollTabla = new javax.swing.JScrollPane(); tblProductosVenta = new javax.swing.JTable(); lblPanda = new javax.swing.JLabel(); lblJMJR = new javax.swing.JLabel(); lblTitulo1 = new javax.swing.JLabel(); txtBascula = new javax.swing.JTextField(); txtCodBarras = new javax.swing.JTextField(); lblTotal = new javax.swing.JLabel(); txtTotal = new javax.swing.JTextField(); txtCantidad = new javax.swing.JTextField(); btnCobrar = new javax.swing.JButton(); lblMenuSupervisor = new javax.swing.JLabel(); lblSoporte = new javax.swing.JLabel(); lblCodBarras = new javax.swing.JLabel(); lblCantidad = new javax.swing.JLabel(); lblBascula = new javax.swing.JLabel(); lblFondo = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Punto de Venta \"Abarrotes el Panda\""); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosed(java.awt.event.WindowEvent evt) { formWindowClosed(evt); } public void windowClosing(java.awt.event.WindowEvent evt) { formWindowClosing(evt); } }); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); lblBanner.setBackground(new java.awt.Color(255, 255, 255)); lblBanner.setFont(new java.awt.Font("Trebuchet MS", 1, 14)); // NOI18N lblBanner.setForeground(new java.awt.Color(0, 51, 255)); lblBanner.setText("Hola"); getContentPane().add(lblBanner, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 1000, 30)); lblEncabezado.setBackground(new java.awt.Color(255, 255, 255)); lblEncabezado.setFont(new java.awt.Font("Trebuchet MS", 1, 14)); // NOI18N lblEncabezado.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/banner.png"))); // NOI18N getContentPane().add(lblEncabezado, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1020, 30)); tblProductosVenta.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { "Codigo de Barras", "Cantidad", "Descripción", "Precio", "Total" } ) { Class[] types = new Class [] { java.lang.String.class, java.lang.Float.class, java.lang.String.class, java.lang.Float.class, java.lang.Float.class }; boolean[] canEdit = new boolean [] { false, false, false, false, false }; public Class getColumnClass(int columnIndex) { return types [columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit [columnIndex]; } }); scrollTabla.setViewportView(tblProductosVenta); getContentPane().add(scrollTabla, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 30, 720, 510)); lblPanda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/Logo.png"))); // NOI18N getContentPane().add(lblPanda, new org.netbeans.lib.awtextra.AbsoluteConstraints(740, 50, -1, -1)); lblJMJR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/panda.jpg"))); // NOI18N getContentPane().add(lblJMJR, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 170, -1, -1)); lblTitulo1.setFont(new java.awt.Font("Gigi", 3, 30)); // NOI18N lblTitulo1.setForeground(new java.awt.Color(255, 255, 255)); lblTitulo1.setText("Abarrotes el Panda"); getContentPane().add(lblTitulo1, new org.netbeans.lib.awtextra.AbsoluteConstraints(730, 280, 300, 30)); txtBascula.setFont(new java.awt.Font("Sylfaen", 1, 18)); // NOI18N txtBascula.setForeground(new java.awt.Color(0, 51, 255)); txtBascula.setHorizontalAlignment(javax.swing.JTextField.CENTER); txtBascula.setText("1"); txtBascula.setBorder(javax.swing.BorderFactory.createCompoundBorder()); txtBascula.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtBasculaActionPerformed(evt); } }); txtBascula.addKeyListener(new java.awt.event.KeyAdapter() { public void keyTyped(java.awt.event.KeyEvent evt) { txtBasculaKeyTyped(evt); } }); getContentPane().add(txtBascula, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 550, 140, 40)); txtCodBarras.setFont(new java.awt.Font("Sylfaen", 1, 18)); // NOI18N txtCodBarras.setForeground(new java.awt.Color(0, 51, 255)); txtCodBarras.setHorizontalAlignment(javax.swing.JTextField.LEFT); txtCodBarras.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { txtCodBarrasKeyReleased(evt); } }); getContentPane().add(txtCodBarras, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 550, 260, 40)); lblTotal.setFont(new java.awt.Font("Impact", 0, 36)); // NOI18N lblTotal.setForeground(new java.awt.Color(255, 255, 255)); lblTotal.setText("Total:"); getContentPane().add(lblTotal, new org.netbeans.lib.awtextra.AbsoluteConstraints(830, 340, -1, -1)); txtTotal.setEditable(false); txtTotal.setFont(new java.awt.Font("Sylfaen", 1, 36)); // NOI18N txtTotal.setForeground(new java.awt.Color(0, 51, 255)); txtTotal.setHorizontalAlignment(javax.swing.JTextField.CENTER); txtTotal.setText("0.00"); getContentPane().add(txtTotal, new org.netbeans.lib.awtextra.AbsoluteConstraints(760, 390, 220, 70)); txtCantidad.setEditable(false); txtCantidad.setFont(new java.awt.Font("Sylfaen", 1, 18)); // NOI18N txtCantidad.setForeground(new java.awt.Color(0, 51, 255)); txtCantidad.setHorizontalAlignment(javax.swing.JTextField.CENTER); txtCantidad.setText("0"); getContentPane().add(txtCantidad, new org.netbeans.lib.awtextra.AbsoluteConstraints(520, 550, 160, 40)); btnCobrar.setText("F1-COBRAR"); btnCobrar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCobrarActionPerformed(evt); } }); getContentPane().add(btnCobrar, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 480, 100, 40)); lblMenuSupervisor.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N lblMenuSupervisor.setForeground(new java.awt.Color(204, 0, 0)); lblMenuSupervisor.setText("F3- Menu Administrador."); getContentPane().add(lblMenuSupervisor, new org.netbeans.lib.awtextra.AbsoluteConstraints(800, 570, -1, -1)); lblSoporte.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N lblSoporte.setForeground(new java.awt.Color(204, 0, 0)); lblSoporte.setText("F2- Ayuda o Soporte"); getContentPane().add(lblSoporte, new org.netbeans.lib.awtextra.AbsoluteConstraints(810, 540, -1, -1)); lblCodBarras.setText("Codigo de Barras"); getContentPane().add(lblCodBarras, new org.netbeans.lib.awtextra.AbsoluteConstraints(310, 590, -1, -1)); lblCantidad.setText("Cantidad"); getContentPane().add(lblCantidad, new org.netbeans.lib.awtextra.AbsoluteConstraints(580, 590, -1, -1)); lblBascula.setText("Bascula"); getContentPane().add(lblBascula, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 590, -1, -1)); lblFondo.setFont(new java.awt.Font("Sylfaen", 3, 36)); // NOI18N lblFondo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/FondoPV.png"))); // NOI18N getContentPane().add(lblFondo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1010, 620)); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453...
0.0
-1
Producto producto; producto = this.controlProductos.obtenerProductoCodBarras(codBarras); producto.setStock(producto.getStock() 1); this.controlProductos.actualizarStock(producto.getId(), producto);
private void actualizarStock(String codBarras) throws SQLException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actualizarStock(Long idProducto, Long cantidad) {\n\t\t\n\t}", "public void reestablecerFullStock() { \n bodega Bodega = new bodega();\n Bodega.setProductosList(this.bodegaDefault());\n }", "public void setProductStock(int qty){\n\t\tstockQuantity = qty;\r\n\t}", "public void set...
[ "0.80000675", "0.68924534", "0.6748576", "0.6731885", "0.6731885", "0.6695677", "0.6694655", "0.6668077", "0.6654968", "0.6634583", "0.6608956", "0.6601666", "0.6585839", "0.65346235", "0.64656055", "0.64534295", "0.6445451", "0.6433735", "0.6424884", "0.641663", "0.64104384"...
0.7474771
1
implement method di bimbel fragment
@Override public void onLogoutClick() { session.doLogout(); addFragment(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void onFragmentStart() {\n\t}", "private void toZB() {\n if (zhiBoFragment == null) {\n zhiBoFragment = new ZhiBoFragment();\n fragmenttransaction.add(R.id.frame_content, zhiBoFragment);\n } else {\n fragmenttransaction.show(zhiBoFragment);\n ...
[ "0.68398356", "0.6817841", "0.68152285", "0.6752113", "0.673444", "0.66796684", "0.6598343", "0.65759623", "0.6529893", "0.6525825", "0.65159416", "0.6513155", "0.65029204", "0.6495856", "0.6480259", "0.6463513", "0.64529777", "0.64515734", "0.6446236", "0.6426667", "0.640748...
0.0
-1
need to be improved (not dynamic, need better study of realm query)
private void filterRecyvlerView() { String query = etSearch.getText().toString(); String[] querySplited = query.split(" "); if(query.equals("")){ rvPostalCodes.removeAllViews(); adapter.setRealmResults(Realm.getDefaultInstance().where(Locations.class).findAll()); }else{rvPostalCodes.removeAllViews(); if(querySplited.length == 1) { adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class) .contains("postalCode", querySplited[0], Case.INSENSITIVE).or() .contains("name", querySplited[0], Case.INSENSITIVE).findAll()); rvPostalCodes.setAdapter(adapter); }else if(querySplited.length == 2){ adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class) .contains("postalCode", querySplited[0], Case.INSENSITIVE).or() .contains("name", querySplited[0],Case.INSENSITIVE) .contains("postalCode", querySplited[1],Case.INSENSITIVE).or() .contains("name", querySplited[1],Case.INSENSITIVE).or() .findAll()); rvPostalCodes.setAdapter(adapter); }else if(querySplited.length == 3){ adapter = new LocationsAdapter(getTargetFragment(), Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class) .contains("postalCode", querySplited[0], Case.INSENSITIVE).or() .contains("name", querySplited[0],Case.INSENSITIVE) .contains("postalCode", querySplited[1],Case.INSENSITIVE).or() .contains("name", querySplited[1],Case.INSENSITIVE) .contains("postalCode", querySplited[2],Case.INSENSITIVE).or() .contains("name", querySplited[2],Case.INSENSITIVE).or() .findAll()); rvPostalCodes.setAdapter(adapter); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private RealmQuery buildRealmQuery(Realm realm, Class myClass) {\n RealmQuery query = RealmQuery.createQuery(realm, myClass);\n return query;\n }", "@Override\n public void execute(Realm realm) {\n }", "private void montaQuery(Publicacao object, Query q) {\t\t\n\t...
[ "0.5652697", "0.5650732", "0.53900117", "0.5376896", "0.52486986", "0.5223419", "0.51440144", "0.51138586", "0.5083357", "0.5065938", "0.5063993", "0.5062676", "0.5057903", "0.5052931", "0.505179", "0.5050949", "0.5041984", "0.5027545", "0.5006308", "0.4994045", "0.49631357",...
0.49402052
22
interface for an algorithm that solves a simple path finding problem
public interface SearchSolver { /** * initializes the algorithm. This method has to be called before calling any other method * @param graph the graph of the map where the search takes place * @param targetStart the start position for the target (in our case the thief) * @param searchStart the start position for the searcher (in our case the police) * @param counter the counter object that counts the expanded nodes */ void initialize(Graph graph, Node targetStart, Node searchStart, ExpandCounter counter); /** * gets the shortest path from search start to target * @return list of edges that describe the path * @throws NoPathFoundException if there is no path to the target */ List<Edge> getPath() throws NoPathFoundException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface PathCalculationStrategy {\n\t\n\t/**\n\t * Returns the shortest path for a Journey.\n\t * \n\t * @param grid the traffic grid.\n\t * @param src the source location.\n\t * @param dest the destination location.\n\t * \n\t * @return a List containing the path for the Journey.\n\t */\n\tList<Point> ge...
[ "0.7354864", "0.71335053", "0.6798205", "0.6709912", "0.6701187", "0.66535383", "0.66166073", "0.66102093", "0.6499912", "0.6497991", "0.64765257", "0.6461117", "0.6458571", "0.6430499", "0.6420677", "0.6415323", "0.6400757", "0.63923186", "0.63881505", "0.6370822", "0.635539...
0.681886
2
initializes the algorithm. This method has to be called before calling any other method
void initialize(Graph graph, Node targetStart, Node searchStart, ExpandCounter counter);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void alg_INIT(){\r\n}", "private AlgorithmTools() {}", "public static void initialize()\n {\n // Initiate election\n Runnable sender = new BullyAlgorithm(\"Sender\",\"election\");\n new Thread(sender).start();\n }", "protected void initialize() {\n\t\televator.zeroEncoder();...
[ "0.7409257", "0.695932", "0.6902483", "0.68671393", "0.6822323", "0.6807607", "0.6752741", "0.67513114", "0.6741952", "0.66694504", "0.66659206", "0.66659206", "0.66659206", "0.66659206", "0.66655785", "0.66470706", "0.6642532", "0.66328275", "0.6631079", "0.662625", "0.66261...
0.0
-1
gets the shortest path from search start to target
List<Edge> getPath() throws NoPathFoundException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Path findShortestPath(Address start, Address destination) throws Exception{\n HashMap<Intersection, Segment> pi = dijkstra(start);\n Segment seg = pi.get(destination);\n if(seg == null){\n throw new Exception();\n }\n LinkedList<Segment> newPathComposition = ne...
[ "0.73229575", "0.7298843", "0.72940296", "0.722239", "0.72221017", "0.7219845", "0.70856434", "0.70753473", "0.7074757", "0.7038299", "0.70036626", "0.69945216", "0.6946636", "0.68676764", "0.68609554", "0.68440866", "0.6753732", "0.67363715", "0.6680956", "0.6679004", "0.665...
0.0
-1
Constructor that accepts a message
public InvalidTokenException(String message) { super(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Message(){}", "public Message() {}", "public Message() {}", "public Message(){\n this(\"Not Specified\",\"Not Specified\");\n }", "public Message() {\n }", "public Message() {\n }", "public Message() {\n }", "public Message() {\n\t\tsuper();\n\t}", "private Message(){\n ...
[ "0.82400924", "0.81257176", "0.81257176", "0.8097193", "0.80188423", "0.7996016", "0.7996016", "0.78435993", "0.77688265", "0.7665793", "0.7596582", "0.75851864", "0.751165", "0.75062686", "0.7468476", "0.7455728", "0.7436177", "0.74213725", "0.74076504", "0.73968863", "0.739...
0.0
-1