query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub
public List getNewAFDetails(Calendar afterDate) { return AffiliateDAOUtil.getNewAFDetails(afterDate); }
{ "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
public List getNewAFDetails(Long affiliateId, Calendar afterDate) { return AffiliateDAOUtil.getNewAFDetails(affiliateId, afterDate); }
{ "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
public List getNewAffiliates(Calendar afterDate) { return AffiliateDAOUtil.getNewAffiliates(afterDate); }
{ "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
public void updateAFDetail(VBAFDetail vbAFDetail) { AffiliateDAOUtil.updateAFDetail(vbAFDetail); }
{ "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
public void updateAffiliate(VBAffiliate vbaffiliate) { AffiliateDAOUtil.updateAffiliate(vbaffiliate); }
{ "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
Modifie manuellement le compteur ASA A48 d un agent RequestBody : Format du type timestamp : "/Date(1396306800000+1100)/"
@ResponseBody @RequestMapping(value = "/addManual", produces = "application/json;charset=utf-8", method = RequestMethod.POST) public ReturnMessageDto addAsaA48ManuelForAgent(@RequestParam("idAgent") int idAgent, @RequestBody(required = true) CompteurDto compteurDto, HttpServletResponse response) { logger.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getRequestDate();", "@POST // This has to be POST because we can't allow caching.\n @Path(\"fresh-timestamp\")\n @Produces(MediaType.APPLICATION_JSON)\n long getFreshTimestamp();", "public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\")...
[ "0.57833976", "0.564816", "0.55872476", "0.5519778", "0.540238", "0.5395099", "0.5371507", "0.525567", "0.5251516", "0.52264756", "0.5173635", "0.509739", "0.50718105", "0.5042189", "0.5037684", "0.50361323", "0.5033573", "0.5026852", "0.50204057", "0.50201845", "0.5016227", ...
0.0
-1
Liste des compteurs ASA A48 ResponseBody : Format du type timestamp : "/Date(1396306800000+1100)/"
@ResponseBody @RequestMapping(value = "/listeCompteurA48", produces = "application/json;charset=utf-8", method = RequestMethod.GET) public List<CompteurDto> getListeCompteur(@RequestParam(value = "annee", required = false) Integer annee, @RequestParam(value = "idOrganisation", required = false) Integer idOrgani...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BigInteger getResponse_time();", "public Date getDateResponsed();", "public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n Date d = null;\n try {\n d = sdf.parse(creationDate);\n } catch (ParseException e) {\n ...
[ "0.56174284", "0.56087923", "0.53861", "0.5331759", "0.5313166", "0.5254932", "0.5201062", "0.50371546", "0.5036309", "0.50233155", "0.5011364", "0.49971032", "0.49798617", "0.49632835", "0.49622715", "0.49508727", "0.49474934", "0.49407908", "0.49354547", "0.49109396", "0.49...
0.0
-1
Modifie les representants ASA A48 d une organisation syndicale
@ResponseBody @RequestMapping(value = "/saveRepresentant", produces = "application/json;charset=utf-8", method = RequestMethod.GET) public ReturnMessageDto saveRepresentantA48(@RequestParam("idOrganisationSyndicale") int idOrganisationSyndicale, @RequestParam("idAgent") int idAgent) { logger.debug("entered...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void carregarAno() {\n\t\tif (usuario.getOrganizacaoMilitar().toString().equals(\"AMAN\")){\n\t\t\tano.addAll(Arrays.asList(Ano.values()));\n\t\t}\n\t\telse if (usuario.getOrganizacaoMilitar().toString().equals(\"ECEME\")){\n\t\t\tano.addAll(Arrays.asList(Ano.values()));\n\t\t\tano.remove(Ano.TERCEIRO);\n\t...
[ "0.57629067", "0.5644236", "0.55065024", "0.548227", "0.54475397", "0.5307503", "0.52867573", "0.5266385", "0.52538496", "0.5239397", "0.52217513", "0.5193184", "0.51327556", "0.5131447", "0.5122991", "0.5110098", "0.5075634", "0.5067933", "0.504882", "0.50346833", "0.5015385...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int[][] rectangle = { {1,2,3}, {4,5,6}, {7,8,9}, // {1,2,3,4,5}, // {1,2,3,4,5}, // {1,2,3,4,5}, // {1,2,3,4,5}, // {1,2,3,4,5}, // {1,2,3,4,5}, // {1,2,3,4,5}, }; // 1 //00 // 2 4 //01,10 // 3 5 7 //02,11,20 // 6 8 //12,21 // ...
{ "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
Gets the "ejblocalref" element
public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType getEjbLocalRef() { synchronized (monitor()) { check_orphaned(); org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null; target = (org.apache.geronimo.xbeans.geronimo.naming.G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType addNewEjbLocalRef()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null;\n target = (org.apache.geronimo.xbeans.ger...
[ "0.67203534", "0.64357376", "0.6335064", "0.6327335", "0.6233223", "0.61201465", "0.60808474", "0.6003929", "0.5985431", "0.59688205", "0.5951084", "0.58197236", "0.57795763", "0.57320327", "0.5714853", "0.55931294", "0.55930096", "0.55655247", "0.55617213", "0.55557674", "0....
0.79452395
0
Sets the "ejblocalref" element
public void setEjbLocalRef(org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType ejbLocalRef) { synchronized (monitor()) { check_orphaned(); org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null; target = (org.apache.geronimo.xbeans.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void setEmpresa(\n\t\tco.com.telefonica.atiempo.ejb.eb.EmpresaLocal anEmpresa);", "public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType addNewEjbLocalRef()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.geronimo.xbeans.ge...
[ "0.6549542", "0.6443375", "0.6246466", "0.6047497", "0.5927953", "0.5808699", "0.57759243", "0.5573901", "0.5454199", "0.5419395", "0.5401409", "0.53621155", "0.53600985", "0.53042233", "0.53038895", "0.52830577", "0.52673435", "0.52524585", "0.52160853", "0.521414", "0.51944...
0.82237506
0
Appends and returns a new empty "ejblocalref" element
public org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType addNewEjbLocalRef() { synchronized (monitor()) { check_orphaned(); org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null; target = (org.apache.geronimo.xbeans.geronimo.namin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEjbLocalRef(org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType ejbLocalRef)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.geronimo.xbeans.geronimo.naming.GerEjbLocalRefType target = null;\n target = (org.apache.geroni...
[ "0.6226703", "0.6113057", "0.59704375", "0.54883915", "0.53663486", "0.53187716", "0.52120644", "0.5122232", "0.50629944", "0.5056258", "0.5042958", "0.49931026", "0.4953778", "0.49488252", "0.49458027", "0.49251482", "0.4874922", "0.48495018", "0.48408315", "0.48328996", "0....
0.7365582
0
Created by yang.qiang on 2017/3/7.
public interface CommonService { List<FreshLabel> queryLabels(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n pu...
[ "0.5926116", "0.586856", "0.57503957", "0.56575614", "0.56575614", "0.5650757", "0.55994314", "0.55920434", "0.558102", "0.5565989", "0.55642855", "0.55308497", "0.54959", "0.5483976", "0.54655606", "0.5453149", "0.54504865", "0.54446226", "0.5442838", "0.54384077", "0.542939...
0.0
-1
String[] s = In.readStrings(args[0]);
public static void main(String[] args) { Integer[] s = {39, 20, 40, 1, 2, 3, 4, 5, 6, 7}; Stopwatch timer = new Stopwatch(); sort(s); double time = timer.elapsedTime(); assert isSorted(s); StdOut.print("time: " + time); StdOut.println(); show(s); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String[] getInput(String[] args){\n if(args.length == 2){\n File f = new File(args[1]);\n try{\n List<String> in = new ArrayList<>();\n BufferedReader reader = new BufferedReader(new FileReader(f));\n String line;\n ...
[ "0.7325983", "0.6510382", "0.6341057", "0.6334693", "0.61651784", "0.6122416", "0.60060424", "0.59786355", "0.59263974", "0.5898597", "0.5869942", "0.58481437", "0.5843087", "0.58267576", "0.5815804", "0.5792981", "0.5789062", "0.5785292", "0.5723788", "0.5723642", "0.5719778...
0.0
-1
DO NOT DELETE !!!!!!!!!!!!!!
public List<String> totestParametizedTypes() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private void delete() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \...
[ "0.6664414", "0.66285205", "0.66285205", "0.6538082", "0.6461184", "0.6349257", "0.63017327", "0.62876046", "0.6255818", "0.6254735", "0.62525755", "0.6251516", "0.618822", "0.616916", "0.6150721", "0.612885", "0.6125546", "0.61104184", "0.6098383", "0.60803294", "0.60595375"...
0.0
-1
Returns the Heaviside function of x.
public static double heaviside(double x) { if (Double.isNaN(x)) return Double.NaN; if (x < 0) return 0; if (x > 0) return 1; return 0.5; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static final float asinh(float x) {\n //\t\tlogger.info(\"enter asinh \" + x);\n \t\treturn MoreMath.log(x + ((float) Math.sqrt(x * x + 1)));\n \t}", "public static double \t\tsinh(double _x) {\n\t\treturn 0.5D * (Math.exp(_x) - Math.exp(- _x));\n\t}", "public static final float sinh(float x) {\n \t\tre...
[ "0.6271038", "0.6216671", "0.5990955", "0.57984173", "0.57137316", "0.5679922", "0.56774193", "0.5674927", "0.5650767", "0.5649605", "0.55421686", "0.5506958", "0.5465176", "0.5418644", "0.53492886", "0.53285825", "0.53129095", "0.52849853", "0.52795225", "0.5264061", "0.5260...
0.8170693
0
Returns the sigmoid function of x.
public static double sigmoid(double x) { if (Double.isNaN(x)) return Double.NaN; return 1 / (1 + Math.exp(-x)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double sigmoid(double x) {\r\n return 1 / (1 + Math.pow(Math.E, (-x)));\r\n }", "private double getSigmoidValue( double x )\n\t{\n\t\treturn (1 / (1 + Math.exp( -x )));\n\t}", "public double derivativeSigmoid(double x){\n return sigmoid(x) * (1 - sigmoid(x));\n }", "public s...
[ "0.8901027", "0.83623934", "0.7763234", "0.7708746", "0.748348", "0.7341024", "0.7225152", "0.71775484", "0.7086755", "0.67551905", "0.66760695", "0.6580486", "0.65413105", "0.6519751", "0.6509036", "0.63766545", "0.63369095", "0.6332902", "0.62227345", "0.6178696", "0.607265...
0.873645
1
Returns the hyperbolic tangent of x.
public static double tanh(double x) { if (Double.isNaN(x)) return Double.NaN; double result = (Math.exp(x) - Math.exp(-x)) / (Math.exp(x) + Math.exp(-x)); if (Double.isNaN(result)) return (x < 0) ? -1.0 : 1.0; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double hypTan(double x){\n\t\t//System.out.print(\".\");\n\t\treturn (Math.tanh(k*x)*0.5) + 0.5;\t\n\t}", "public static double \t\ttanh(double _x) {\n\t\treturn sinh(_x) / cosh(_x);\n\t}", "@Override\n\tpublic double f(double x) {\n\t\treturn Math.tanh(x);\n\t}", "public double tanSlope(double x) {\...
[ "0.739294", "0.7138261", "0.7056737", "0.6678822", "0.66762424", "0.6668184", "0.64872175", "0.6453618", "0.6444685", "0.6443209", "0.63698405", "0.6341096", "0.63372344", "0.6194581", "0.6179409", "0.6149681", "0.6083473", "0.6059611", "0.598345", "0.5976961", "0.59613943", ...
0.74539727
0
Returns the softsign function of x.
public static double softsign(double x) { if (Double.isNaN(x)) return Double.NaN; double result = x / (1 + Math.abs(x)); if (Double.isNaN(result)) return (x < 0) ? -1.0 : 1.0; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int sign(double x) {\n\t // A true signum could be implemented in C++ as below.\n\t // template <typename T> int sgn(T val) {\n\t // return (T(0) < val) - (val < T(0));\n //}\n if (x >= 0)\n return 1;\n return -1;\n }", "private double f(double x) {\n return (1 / (1 + Math.ex...
[ "0.66095173", "0.6391834", "0.63801754", "0.63484544", "0.6342566", "0.6289028", "0.628135", "0.6202734", "0.60284984", "0.6006891", "0.5973275", "0.59082407", "0.5908231", "0.5906518", "0.59044677", "0.58482355", "0.5809742", "0.5790693", "0.5760641", "0.57556856", "0.574098...
0.804146
0
Returns the square nonlinearity function of x.
public static double sqnl(double x) { if (Double.isNaN(x)) return Double.NaN; if (x <= -2) return -1.0; if (x < 0) return x + (Math.pow(x, 2) / 4); if (x < 2) return x - (Math.pow(x, 2) / 4); return 1.0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double fren(double x) {\r\n double v = fapprox(Math.sqrt(x));\r\n return v * v;\r\n }", "private double square(double x) {\r\n return x * x;\r\n }", "private static double square (double x)\r\n\t{\r\n\t\treturn x * x;\r\n\t}", "public static double square(double x)\n ...
[ "0.6949994", "0.6594325", "0.6496957", "0.6473302", "0.64151335", "0.61905605", "0.6164424", "0.6124807", "0.6124807", "0.5918144", "0.5858391", "0.58117616", "0.57924634", "0.57886314", "0.5788168", "0.57832", "0.57634026", "0.575056", "0.5738716", "0.57019633", "0.5656996",...
0.6203201
5
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view=inflater.inflate(R.layout.fragment_lcl_detail, container, false); ButterKnife.bind(this,view); initView(); 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
Use this factory method to create a new instance of this fragment using the provided parameters.
public static PlaylistFragment newInstance() { PlaylistFragment fragment = new PlaylistFragment(); Bundle args = new Bundle(); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
private final long currentTerm;
public BallotBox(List<PeerId> list, long currentIndex, long length) { this.peerList = new ArrayList<>(list); this.peerList.add(NodeImpl.getNodeImple().getLeaderId().getPeerId()); this.currentIndex = currentIndex; this.length = length; //this.currentTerm = currentTerm; thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Term getCurrentTerm() {\n return currentTerm;\n }", "Term getTerm();", "public java.lang.Integer getTerm() {\n return term;\n }", "public java.lang.Integer getTerm() {\n return term;\n }", "public int getTermIndex() {return termIndex;}", "public String getTerm() {\n return term;\n ...
[ "0.8246968", "0.7490782", "0.731882", "0.7261633", "0.72419906", "0.706141", "0.6875303", "0.6869241", "0.68641776", "0.6836454", "0.65433574", "0.6457734", "0.6366093", "0.63429725", "0.631919", "0.6290384", "0.627045", "0.6202307", "0.62003946", "0.6165435", "0.60038006", ...
0.0
-1
Returns true when the ballot is granted.
public boolean isGranted(){ // if (BallotBoxState.Granted.equals(getBallotBoxState()) || this.quorum.get() <= 0) { // setBallotBoxState(BallotBoxState.Granted); // return true; // } // return false; return this.quorum.get() <= 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean granted(){\n\t\treturn this.granted;\n\t}", "boolean hasAllowedCredit();", "public Boolean canBorrowBook() {\n\t\tif (loans.size() >= getLoanLimit()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@JsonProperty(\"granted\")\n public boolean isGranted() {\n return granted;\n ...
[ "0.6985056", "0.6800374", "0.643417", "0.63115704", "0.62980366", "0.6291668", "0.62761664", "0.6213094", "0.620425", "0.62042433", "0.6203855", "0.6183099", "0.616316", "0.60804605", "0.60382915", "0.60240686", "0.60153425", "0.59999067", "0.59883475", "0.59868485", "0.59813...
0.7559052
0
TODO Autogenerated method stub
@Override public void check(String arguments, Map<String, String> defValue, Set<String> errors) { }
{ "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
Return an instance of the class being tested.
public ResumptionTokenDTO getFixture21() throws Exception { if (fixture21 == null) { fixture21 = new ResumptionTokenDTO(); fixture21.setCreationDate(new Timestamp(644344036000L)); fixture21.setId(Integer.valueOf(1)); fixture21.setMetadataPrefix("Ant-1.0.txt"); fixture21.setQuery("Ant-1.0.txt")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Class<?> getTestClass()\r\n {\r\n return target.getClass();\r\n }", "public Class getTestedClass() {\n\t\treturn Application.class;\n\t}", "Class createClass();", "Instance createInstance();", "<T> T instanceFor(Class<T> type);", "public abstract Class getExpectedClass ();", "public...
[ "0.6857872", "0.67978084", "0.66984123", "0.6530566", "0.65182227", "0.65137655", "0.63651633", "0.63366646", "0.6258498", "0.6248159", "0.6214827", "0.6198096", "0.61841035", "0.6155367", "0.6123007", "0.6099196", "0.6096541", "0.60780483", "0.60755044", "0.59793794", "0.597...
0.0
-1
Returns current selenium version from JAR set in classpath.
public static String fromClassPath() { Set<String> versions = new HashSet<>(); try { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); Enumeration<URL> manifests = classLoader.getResources("META-INF/MANIFEST.MF"); while (manifests.hasMoreEleme...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void findRunimeVersion(WebDriver driver) {\n Object response = executeAsyncJavascript(driver,\n \"var callback = arguments[arguments.length - 1];\" +\n \"fin.desktop.System.getVersion(function(v) { callback(v); } );\");\n System.out.println(\"OpenF...
[ "0.65730864", "0.64805955", "0.60003316", "0.5842588", "0.58184564", "0.5615542", "0.5577811", "0.55266845", "0.5497521", "0.5486276", "0.5473037", "0.54448116", "0.5429321", "0.5428173", "0.5416018", "0.54030466", "0.5391757", "0.5390341", "0.5368479", "0.53477925", "0.53356...
0.8146525
0
map String > List of ClassEntity. The String gives the name of the imported static member(s) from the given class(es).
public ImportsCollection() { normalImports = new HashMap(); wildcardImports = new ArrayList(); staticWildcardImports = new ArrayList(); staticImports = new HashMap(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<WrapperEntity> getEntitiesClassNamed(String className){\r\n\t\tList<WrapperEntity> entities = new ArrayList<WrapperEntity>();\r\n\t\tfor(Entity entity : world.loadedEntityList){\r\n\t\t\tif(entity.getClass().getCanonicalName().equals(className)){\r\n\t\t\t\tentities.add(WrapperEntity.getWrapperFor(enti...
[ "0.6476012", "0.59350437", "0.5674768", "0.5647415", "0.55849516", "0.55309415", "0.55059123", "0.54758215", "0.54257756", "0.54168165", "0.54021084", "0.53950435", "0.53582144", "0.5325729", "0.53252155", "0.53152484", "0.5302423", "0.52661586", "0.5258028", "0.5257225", "0....
0.4802334
77
Remove all imports from the collection.
public void clear() { normalImports.clear(); wildcardImports.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unsetImport()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(IMPORT$0, 0);\n }\n }", "public void removeAllPackages() {\r\n myPackages.clear();\r\n }", "@Override\r\n\tpublic void removeAll() {\r\n\t\tfo...
[ "0.6398405", "0.6341961", "0.6253277", "0.619618", "0.61071694", "0.60974777", "0.60974777", "0.60974777", "0.60974777", "0.60974777", "0.60974777", "0.60974777", "0.60974777", "0.60974777", "0.60974777", "0.60916936", "0.6066907", "0.6065225", "0.6041275", "0.5987613", "0.59...
0.786049
0
Add a (nonwildcard) import to the collection.
public void addNormalImport(String name, JavaEntity importEntity) { normalImports.put(name, importEntity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addWildcardImport(PackageOrClass importEntity)\n {\n wildcardImports.add(importEntity);\n }", "public void addImport(String importVal)\n\t\t\tthrows JavaFileCreateException {\n\t\tif (importVal == null || \"\".equals(\"\")) {\n\t\t\tthrow new JavaFileCreateException(\n\t\t\t\t\tDictionar...
[ "0.7157621", "0.7031285", "0.6814786", "0.6803006", "0.6662935", "0.66411406", "0.6622709", "0.6550011", "0.64295316", "0.61137575", "0.60967004", "0.60958856", "0.60760486", "0.6063327", "0.6000717", "0.5987849", "0.5968883", "0.5890096", "0.5835012", "0.58212066", "0.580936...
0.6499246
8
Add a wildcard import to the collection.
public void addWildcardImport(PackageOrClass importEntity) { wildcardImports.add(importEntity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addStaticWildcardImport(ClassEntity importEntity)\n {\n staticWildcardImports.add(importEntity);\n }", "void addImports(Set<String> allImports) {\n allImports.add(\"io.ebean.typequery.\" + propertyType);\n }", "public void addWildcard(String wildcardString){\r\n\t\twildcardList.add...
[ "0.7220677", "0.5872446", "0.58324814", "0.5733022", "0.5613114", "0.5569821", "0.5542798", "0.54750156", "0.54747605", "0.53588957", "0.53381056", "0.5272273", "0.5261503", "0.522813", "0.52192324", "0.5211522", "0.5178617", "0.5089139", "0.50459045", "0.5010205", "0.4977332...
0.77200204
0
Add a static (nonwildcard) import to the collection.
public void addStaticImport(String name, ClassEntity importEntity) { List l = (List) staticImports.get(name); if (l == null) { l = new ArrayList(); staticImports.put(name, l); } l.add(importEntity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addStaticWildcardImport(ClassEntity importEntity)\n {\n staticWildcardImports.add(importEntity);\n }", "public void addWildcardImport(PackageOrClass importEntity)\n {\n wildcardImports.add(importEntity);\n }", "public org.globus.swift.language.ImportsDocument.Imports addNe...
[ "0.77775854", "0.6774029", "0.6121426", "0.611233", "0.61121213", "0.6046879", "0.5969043", "0.59606385", "0.5926272", "0.5893423", "0.5884138", "0.5674417", "0.5671374", "0.5669842", "0.5639394", "0.55956405", "0.556438", "0.5555611", "0.5519027", "0.5504342", "0.55004084", ...
0.777847
0
Add a static wildcard import to the collection.
public void addStaticWildcardImport(ClassEntity importEntity) { staticWildcardImports.add(importEntity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addWildcardImport(PackageOrClass importEntity)\n {\n wildcardImports.add(importEntity);\n }", "public List getStaticWildcardImports()\n {\n return staticWildcardImports;\n }", "public void addStaticImport(String name, ClassEntity importEntity)\n {\n List l = (Lis...
[ "0.74966186", "0.6752729", "0.64054006", "0.5956913", "0.5699767", "0.56790936", "0.53684866", "0.5354271", "0.53226894", "0.5265619", "0.52506715", "0.5139631", "0.5129261", "0.5119425", "0.5083", "0.5044339", "0.49711585", "0.49572554", "0.4944725", "0.4933001", "0.49310258...
0.8031853
0
Try to find an imported type. Does not check wildcard imports (see getTypeImportWC). Returns null if no imported type with the given name exists.
public ClassEntity getTypeImport(String name) { // See if there is a normal import for the given name ClassEntity r = (ClassEntity) normalImports.get(name); if (r != null) return r; // There might be a suitable static import List l = (List) staticImports....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ClassEntity getTypeImportWC(String name)\n {\n // Try non-static wildcard imports first\n Iterator i = wildcardImports.iterator();\n \n while (i.hasNext()) {\n PackageOrClass importEntity = (PackageOrClass) i.next();\n try {\n PackageOrClas...
[ "0.73425144", "0.57632744", "0.57611066", "0.572073", "0.54696876", "0.5371459", "0.5366731", "0.5353708", "0.51914847", "0.5161915", "0.51487046", "0.5120109", "0.51112485", "0.5106785", "0.5066245", "0.506457", "0.50628924", "0.5054973", "0.5047832", "0.504434", "0.50230044...
0.71823764
1
Retrieve all the static import classes for a given import name. The returned list must not be modified.
public List getStaticImports(String name) { List l = (List) staticImports.get(name); if (l == null) l = Collections.EMPTY_LIST; return l; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getStaticWildcardImports()\n {\n return staticWildcardImports;\n }", "public void addStaticImport(String name, ClassEntity importEntity)\n {\n List l = (List) staticImports.get(name);\n if (l == null) {\n l = new ArrayList();\n staticImports.put(nam...
[ "0.65587616", "0.6329492", "0.6294056", "0.6095181", "0.5947634", "0.5926589", "0.59003085", "0.58707786", "0.58296955", "0.57692033", "0.57687515", "0.5669871", "0.56424606", "0.5635421", "0.56029224", "0.55924743", "0.5539761", "0.5536767", "0.54942226", "0.5490788", "0.548...
0.770902
0
Retrieve a list of all the static wildcard imports.
public List getStaticWildcardImports() { return staticWildcardImports; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getStaticImports(String name)\n {\n List l = (List) staticImports.get(name);\n if (l == null)\n l = Collections.EMPTY_LIST;\n return l;\n }", "public void addStaticWildcardImport(ClassEntity importEntity)\n {\n staticWildcardImports.add(importEntity);\n...
[ "0.7209201", "0.62947685", "0.6025457", "0.59949493", "0.5930926", "0.59080297", "0.57951194", "0.5793953", "0.5741714", "0.5725881", "0.5710132", "0.5706955", "0.56116694", "0.55123365", "0.5421258", "0.540961", "0.54016423", "0.5395498", "0.53750074", "0.53575915", "0.53087...
0.8525558
0
Try to find a type accessible via a wildcard import. Return null if no such type can be found.
public ClassEntity getTypeImportWC(String name) { // Try non-static wildcard imports first Iterator i = wildcardImports.iterator(); while (i.hasNext()) { PackageOrClass importEntity = (PackageOrClass) i.next(); try { PackageOrClass member = im...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static IInterfaceDefinition searchType(String unresolvedTypeName,\n\t\t\tEnvironment env)\n\t{\n\t\tfor (IClassDefinition cd : env.getClasses())\n\t\t{\n\t\t\tif (env.isTreeNode(cd))\n\t\t\t{\n\t\t\t\tif (env.classToType.get(cd) == ClassType.Token\n\t\t\t\t\t\t&& checkName(cd, unresolvedTypeName, true, env)...
[ "0.62193036", "0.5726103", "0.551929", "0.53152186", "0.5315171", "0.52939904", "0.52364755", "0.5233672", "0.51719695", "0.51651067", "0.5147227", "0.5141799", "0.5130106", "0.5119599", "0.5088051", "0.5061541", "0.5049453", "0.50191605", "0.50082284", "0.49994218", "0.49926...
0.61010814
1
/ Convert the imports collection to a series of java "import" statements.
public String toString() { String rr = ""; // First process the normal (non-wildcard non-static) imports Iterator i = normalImports.values().iterator(); while (i.hasNext()) { // String importName = () JavaEntity importEntity = (JavaEntity) i.next(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Imports createImports();", "private List<JCExpression> makeAdditionalImports(DiagnosticPosition diagPos, List<ClassSymbol> baseInterfaces) {\n ListBuffer<JCExpression> additionalImports = new ListBuffer<JCExpression>();\n for (ClassSymbol baseClass : baseInterfaces) {\n if (baseClass....
[ "0.681115", "0.6673721", "0.6584813", "0.6351316", "0.5984196", "0.5984196", "0.5948814", "0.58618677", "0.58401287", "0.5797698", "0.5777569", "0.5774778", "0.5745037", "0.56936556", "0.5657204", "0.5654697", "0.56473243", "0.5645468", "0.5643436", "0.55934364", "0.55370325"...
0.56211853
19
Created by michael on 20170703.
public interface ChannelCollection { public void addChannel(Channel c); public void removeChannel(Channel c); public ChannelIterator iterator(ChannelTypeEnum type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@...
[ "0.579414", "0.5641277", "0.56361103", "0.55816895", "0.55640495", "0.55429304", "0.55246973", "0.55246973", "0.55006486", "0.5463088", "0.54523957", "0.5440587", "0.54332703", "0.5422263", "0.54221016", "0.5416073", "0.5403871", "0.5394669", "0.5391295", "0.5391295", "0.5391...
0.0
-1
Constructor takes properties, fileHandler and uploadUtil via DI.
@Autowired public UploadHandlerImpl(UploadFolderProperties properties, FileHandler fileHandler, UploadUtil uploadUtil) { this.fileHandler = fileHandler; this.uploadFolder = properties.getUploadFolder(); this.uploadUtil = uploadUtil; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UploadManager() {\n }", "public Uploader() {\n super();\n }", "public FileUploadService()\r\n\t{\r\n\t\tsetAccessKey(\"\");\r\n\t\tsetSecretKey(\"\");\r\n\t\tsetBucket(\"filehavendata\");\r\n\t\tdoRefreshConnection();\r\n\t}", "public FileUploadHelper() throws IOException {\n //For using...
[ "0.7141113", "0.6934965", "0.6862452", "0.67986345", "0.64236623", "0.64017916", "0.6396679", "0.6315123", "0.6259026", "0.6219054", "0.61990887", "0.6182597", "0.61683273", "0.61662143", "0.6122522", "0.6107929", "0.6102758", "0.6091237", "0.60794735", "0.6054819", "0.604520...
0.81293994
0
Method for creating subfolder of files from one upload.
private Path initFolder(String folder) throws IOException { return Files.createDirectory(Paths.get(uploadFolder + "/" + folder)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Folder createFolder();", "public void createSubDirData() {\n\t\tFile f = new File(getPFDataPath());\n\t\tf.mkdirs();\n\t}", "private void addFolder(){\n }", "public void createSubDirCameraTaken() {\n\t\tFile f = new File(getPFCameraTakenPath());\n\t\tf.mkdirs();\n\t}", "public void createFolder (String fo...
[ "0.62129873", "0.61002314", "0.59543383", "0.5948338", "0.59368324", "0.59204125", "0.5917452", "0.5815971", "0.5807791", "0.5752504", "0.5745022", "0.57387006", "0.56755954", "0.56143093", "0.55946714", "0.55495375", "0.55399483", "0.553658", "0.55231696", "0.5522373", "0.55...
0.632959
0
Method for saving files to disk. Counts uploaded files.
public int fileSaver(MultipartFile[] files) throws IOException { MultipartFile[] checkedFiles = fileHandler.checkedFiles(files); int counter = 0; if (checkedFiles.length > 0) { String folder = checkedFiles[0].getOriginalFilename() .substring(0, checkedFiles[0].getOriginalFilename() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incFileCount(){\n\t\tthis.num_files++;\n\t}", "public void incuploadcount(){\n\t\tthis. num_upload++;\n\t}", "protected void work() {\n try {\n if(theFile!=null) { \n //construct filePath, fileSize\n int fileSize = theFile.getFileSize();\n if(fileSize==0) fileSize=1;...
[ "0.66032606", "0.6560529", "0.63860214", "0.6147702", "0.6130413", "0.6130413", "0.60743856", "0.5967668", "0.5949836", "0.593657", "0.5915706", "0.5850469", "0.58172256", "0.57990235", "0.5745721", "0.5711882", "0.56979877", "0.56850374", "0.5679204", "0.56449497", "0.561511...
0.7393316
0
Initialize the contents of the frame.
private void initialize() { frmAddForm = new JFrame(); frmAddForm.setTitle("Add Form"); frmAddForm.setBounds(100, 100, 450, 300); frmAddForm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frmAddForm.getContentPane().setLayout(null); JLabel addFormTitle = new JLabel("Add Form"); addFormTitle.setFont(ne...
{ "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.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.71079...
0.0
-1
ClassName: CompanyDao Author: tandingbo CreateTime: 20170416 15:06
public interface CompanyDao { /** * 根据主键ID获取企业信息 * * @param id * @return */ Company getById(Long id); /** * 根据会员ID获取企业信息 * * @param memberId * @return */ Company getByMemberId(Long memberId); /** * 根据企业名字查询 * * @param company ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DAOCompanies {\n\n void create(Company company);\n boolean update (int companyId, Company company);\n Company read(int companyId);\n boolean delete(int companyId);\n void addCompanyToDeveloper(int compId, int devId);\n\n}", "AuthorDao getAuthorDao();", "UserInfoDao getUserInfoDa...
[ "0.63903624", "0.6319295", "0.62974596", "0.6287725", "0.6185915", "0.6164565", "0.6102214", "0.60943013", "0.6090551", "0.6088614", "0.6083068", "0.60433596", "0.603326", "0.6023966", "0.59891135", "0.59876055", "0.59716237", "0.5955628", "0.59226304", "0.5919991", "0.590363...
0.70960796
0
TODO Autogenerated method stub
@Override public void deleteEmployee(int id) { try { DirectlyDatabase.update(PropertyManager.getProperty("db_employee_delete"), id +""); } catch (SQLException ex) { System.out.println(ex.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
The default IMAPClient constructor. Initializes the state to DISCONNECTED_STATE.
public IMAP() { setDefaultPort(DEFAULT_PORT); __state = IMAPState.DISCONNECTED_STATE; _reader = null; __writer = null; _replyLines = new ArrayList<String>(); _commandSupport_ = new ProtocolCommandSupport(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private NotificationClient() { }", "public RedisClient() {\n init();\n }", "public LpsClient() {\n super();\n }", "public Client() {}", "public ClientLoginService(){\n this(MessageConnection.CHANNEL_DEFAULT_RELIABLE);\n }", "public Client (String ipAdresse, int port) {\n\t\t...
[ "0.60891956", "0.5718827", "0.5683365", "0.5666076", "0.56615543", "0.5596595", "0.5479659", "0.546721", "0.54407567", "0.5430445", "0.5371689", "0.5343743", "0.53433126", "0.53420043", "0.53337574", "0.53255284", "0.53255284", "0.5290574", "0.5273512", "0.52306944", "0.52059...
0.8331864
0
Get the reply for a command that expects a tagged response.
private void __getReply() throws IOException { __getReply(true); // tagged response }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.ipay.api.grpc.ServiceGenericReply getReply();", "network.message.PlayerResponses.Command getCommand();", "network.message.PlayerResponses.CommandOrBuilder getCommandOrBuilder();", "public network.message.PlayerResponses.CommandOrBuilder getCommandOrBuilder() {\n if (responseCase_ == 2) {\n r...
[ "0.62219846", "0.59876615", "0.5934582", "0.5837473", "0.57885075", "0.5700656", "0.56662995", "0.5635769", "0.56299263", "0.55966043", "0.55659634", "0.5337172", "0.53048915", "0.5268946", "0.5258396", "0.5208422", "0.51986974", "0.5158631", "0.51262826", "0.51262826", "0.51...
0.7109096
0
Sets IMAP client state. This must be one of the _STATE constants.
protected void setState(IMAP.IMAPState state) { __state = state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IMAP.IMAPState getState()\n {\n return __state;\n }", "public IMAP()\n {\n setDefaultPort(DEFAULT_PORT);\n __state = IMAPState.DISCONNECTED_STATE;\n _reader = null;\n __writer = null;\n _replyLines = new ArrayList<String>();\n _commandSup...
[ "0.60035866", "0.5729566", "0.55113477", "0.546662", "0.53992975", "0.53642267", "0.5349957", "0.53443956", "0.5292146", "0.5264493", "0.5264332", "0.5264197", "0.5239403", "0.5236696", "0.52113867", "0.51536566", "0.51510835", "0.5134548", "0.5132551", "0.51199687", "0.50830...
0.7012954
0
Returns the current IMAP client state.
public IMAP.IMAPState getState() { return __state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Client getCurrentClient(){\r\n return currClient;\r\n }", "public Client getCurrentClient() {\n return currentClient;\n }", "public ClientInfo getClientInfo() {\n // Lazy initialization with double-check.\n ClientInfo c = this.clientInfo;\n if (c == null) ...
[ "0.6367828", "0.6216892", "0.61913246", "0.6147587", "0.60996103", "0.60773665", "0.6024432", "0.5982926", "0.59724784", "0.59602493", "0.59602493", "0.59406334", "0.59347755", "0.5906937", "0.58102095", "0.5796365", "0.5790802", "0.5787767", "0.5777235", "0.57687086", "0.576...
0.7485273
0
Disconnects the client from the server, and sets the state to DISCONNECTED_STATE . The reply text information from the last issued command is voided to allow garbage collection of the memory used to store that information.
@Override public void disconnect() throws IOException { super.disconnect(); _reader = null; __writer = null; _replyLines.clear(); setState(IMAPState.DISCONNECTED_STATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disconnect(){\n\n\t\tserverConnection.disconnect();\n\t}", "@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\n\t\t\t\t\tSystem.out.println(\"CLIENT DISCONNECTED FROM SERVER.\");\r\n\t\t\t\t}", "public void doDisconnect() {\n Debug.logInfo(\"MQTT Disconnecting cl...
[ "0.68481356", "0.67955554", "0.676463", "0.67103916", "0.6703919", "0.6690821", "0.66429645", "0.66046655", "0.65946513", "0.65831256", "0.6580062", "0.65622425", "0.655868", "0.6515308", "0.6504256", "0.6494252", "0.64887685", "0.64815617", "0.64579487", "0.6436224", "0.6425...
0.62963784
29
Sends a command an arguments to the server and returns the reply code.
private int sendCommandWithID(String commandID, String command, String args) throws IOException { StringBuilder __commandBuffer = new StringBuilder(); if (commandID != null) { __commandBuffer.append(commandID); __commandBuffer.append(' '); } __...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int sendCommand(String command, String args) throws IOException\n {\n return sendCommandWithID(generateCommandID(), command, args);\n }", "public int sendCommand(IMAPCommand command, String args) throws IOException\n {\n return sendCommand(command.getIMAPCommand(), args);\n ...
[ "0.75191116", "0.7022384", "0.6741517", "0.6432275", "0.6222364", "0.61982596", "0.6165453", "0.6136136", "0.6036028", "0.60354424", "0.5971085", "0.59134275", "0.5882122", "0.5862107", "0.5859952", "0.58378404", "0.57896096", "0.5756783", "0.57171935", "0.57083625", "0.56900...
0.6690122
3
Sends a command an arguments to the server and returns the reply code.
public int sendCommand(String command, String args) throws IOException { return sendCommandWithID(generateCommandID(), command, args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int sendCommand(IMAPCommand command, String args) throws IOException\n {\n return sendCommand(command.getIMAPCommand(), args);\n }", "int send(final Command command) throws ZigBeeException;", "private int sendCommandWithID(String commandID, String command, String args) throws IOException...
[ "0.7023069", "0.67381734", "0.66900986", "0.64290357", "0.6217419", "0.6195719", "0.616368", "0.6130875", "0.603339", "0.6033038", "0.5969755", "0.59126985", "0.58818096", "0.58614975", "0.58595866", "0.58352524", "0.57846534", "0.575549", "0.57170814", "0.5706211", "0.568846...
0.7520299
0
Sends a command with no arguments to the server and returns the reply code.
public int sendCommand(String command) throws IOException { return sendCommand(command, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int send(final Command command) throws ZigBeeException;", "public int sendCommand(IMAPCommand command) throws IOException\n {\n return sendCommand(command, null);\n }", "public abstract void sendQuietly(String command, Object... args);", "@Override\n\tpublic IResponse sendCommand(ICommand com...
[ "0.7231769", "0.6881731", "0.6647627", "0.6577586", "0.65275", "0.65216213", "0.64246064", "0.6386985", "0.6299627", "0.6151928", "0.6096692", "0.60376847", "0.6030822", "0.59937584", "0.59698814", "0.593022", "0.5881916", "0.5872621", "0.58391947", "0.5805392", "0.5796907", ...
0.72573686
0
Sends a command and arguments to the server and returns the reply code.
public int sendCommand(IMAPCommand command, String args) throws IOException { return sendCommand(command.getIMAPCommand(), args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int sendCommand(String command, String args) throws IOException\n {\n return sendCommandWithID(generateCommandID(), command, args);\n }", "int send(final Command command) throws ZigBeeException;", "public int sendCommand(String command) throws IOException\n {\n return sendCom...
[ "0.73040015", "0.7003078", "0.6875291", "0.66585374", "0.65957016", "0.6512227", "0.63994265", "0.6351266", "0.6308415", "0.6080618", "0.6067184", "0.6059542", "0.59866315", "0.59423053", "0.592782", "0.5859833", "0.5854252", "0.5781709", "0.57814187", "0.5683758", "0.5649401...
0.69119346
2
Sends a command with no arguments to the server and returns the reply code.
public int sendCommand(IMAPCommand command) throws IOException { return sendCommand(command, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int sendCommand(String command) throws IOException\n {\n return sendCommand(command, null);\n }", "int send(final Command command) throws ZigBeeException;", "public abstract void sendQuietly(String command, Object... args);", "@Override\n\tpublic IResponse sendCommand(ICommand command)...
[ "0.7260174", "0.72344595", "0.6647835", "0.6578436", "0.6530679", "0.65244967", "0.64273435", "0.639049", "0.6300721", "0.6155138", "0.60995233", "0.6040666", "0.60323054", "0.5997611", "0.5972849", "0.5929018", "0.5885005", "0.58753884", "0.58393717", "0.580589", "0.5800635"...
0.68844664
2
Sends data to the server and returns the reply code.
public int sendData(String command) throws IOException { return sendCommandWithID(null, command, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean sendData(String data) throws IOException;", "public abstract boolean send(byte[] data);", "public int sendDataPacket()\n{\n \n return(0);\n\n}", "boolean send(byte[] data);", "public boolean send(NetData data)\n {\n writer.println(data.toString());\n xMessenger.miniMes...
[ "0.7007524", "0.6759673", "0.6557843", "0.6523564", "0.6403621", "0.6313657", "0.6260461", "0.6251829", "0.62431014", "0.61430126", "0.6141677", "0.6123572", "0.60607153", "0.6053538", "0.60094637", "0.59974664", "0.5985181", "0.59703684", "0.59646475", "0.59472114", "0.59402...
0.6566342
2
Returns an array of lines received as a reply to the last command sent to the server. The lines have end of lines truncated.
public String[] getReplyStrings() { return _replyLines.toArray(new String[_replyLines.size()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getReplyString()\n {\n StringBuilder buffer = new StringBuilder(256);\n for (String s : _replyLines)\n {\n buffer.append(s);\n buffer.append(SocketClient.NETASCII_EOL);\n }\n \n return buffer.toString();\n }", "public String[] ...
[ "0.68165994", "0.57854956", "0.5693365", "0.5679637", "0.5559517", "0.5546312", "0.55451554", "0.5536292", "0.55220777", "0.54818654", "0.53712255", "0.53679836", "0.53050554", "0.5292805", "0.5285657", "0.5261194", "0.5247459", "0.52334815", "0.5231494", "0.51905876", "0.518...
0.66797304
1
Returns the reply to the last command sent to the server. The value is a single string containing all the reply lines including newlines.
public String getReplyString() { StringBuilder buffer = new StringBuilder(256); for (String s : _replyLines) { buffer.append(s); buffer.append(SocketClient.NETASCII_EOL); } return buffer.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLastCommand() {\n return lastCommand;\n }", "public String getLastMsg() {\n String s = msgs.peekTail();\n return s == null ? \"\" : s;\n }", "final Commands getLastCommand() {\n\t\t// retornamos el ultimo comando enviado\n\t\treturn this.lastCommand;\n\t}", "public...
[ "0.6855349", "0.6623975", "0.6416253", "0.63661766", "0.6359167", "0.60575867", "0.605552", "0.5854801", "0.5848018", "0.5803288", "0.5755985", "0.57422435", "0.57184684", "0.5695816", "0.5659763", "0.5652604", "0.564637", "0.5619593", "0.5607453", "0.5601431", "0.5581742", ...
0.75425225
0
Generates a new command ID (tag) for a command.
protected String generateCommandID() { String res = new String (_initialID); // "increase" the ID for the next call boolean wasIncr = false; for (int i = _initialID.length-1; i>=0; i--) { if (_initialID[i] >= 'Z') { _initialID[i] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCommandId();", "private Command createCommand(String command) {\n\t\tString[] tokens = command.split(\" \");\n\t\tswitch(tokens[0].toLowerCase()) {\n\t\tcase DRAW:\n\t\t\treturn createDrawCommand(command);\n\t\t\n\t\tcase SKIP:\n\t\t\treturn createSkipCommmand(command);\n\t\t\t\n\t\tcase SCALE:\n\t\t\t...
[ "0.6738369", "0.60485804", "0.59354156", "0.59126693", "0.5858444", "0.58140665", "0.57701474", "0.5768864", "0.5666489", "0.5622714", "0.56099254", "0.5608824", "0.55904365", "0.5589221", "0.558473", "0.5465692", "0.5451399", "0.54353654", "0.54063237", "0.53949857", "0.5390...
0.68531495
0
gff3 parser test File gff3file = new File("I:/commons/mm10alignment_2/mmu.gff3"); FileReader gff3flrdr = new FileReader(gff3file); BufferedReader gff3bf = new BufferedReader(gff3flrdr); TabParserGff3Impl gff3input = new TabParserGff3Impl(gff3bf); BedRecord bed = gff3input.getNextRecord(); bed.printall();
@Test public void test() throws IOException, IllegalArgumentException, IllegalAccessException { List<SAMRecord> samarrl= new ArrayList<SAMRecord>(); BedRecord bed = new BedRecord(); bed.setChrom("chr9"); bed.setStart(122669886); bed.setEnd(122672448); bed.setStrand("+"); SAMRecordIterator samit = null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void importFnaBitSequences(String filename, int start, int end) {\n\n int currentKID = -1;\n SuperString currentSeq = new SuperString();\n //String currentName = \"\";\n boolean ignore = true; //do not write empty sequence to database\n\n TimeTotals tt ...
[ "0.55723155", "0.55502605", "0.5403445", "0.52812725", "0.51659393", "0.5154761", "0.5108709", "0.5031304", "0.5018705", "0.49795282", "0.49391213", "0.49373323", "0.49125397", "0.49052796", "0.49011", "0.48980334", "0.48911765", "0.48867968", "0.4858438", "0.48461503", "0.48...
0.49915555
9
This method is used to create n perceptrons and find the average accuracy and cutoff values.
public static void test(ArrayList<Image> img){ double avCutoff = 0; double avAcc = 0 ; double adjCut = 0; int n = 100; for(int i = 0; i < n; i++){ Perceptron p = new Perceptron(img); p.start(); avCutoff = avCutoff + p.cuttoff; avAcc = avAcc + p.Acc; if(p.cuttoff < 1000){adjCut = adjCut + p.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void trainPerceptrons(){\n double activationValues[] = new double[4];\n for(Image image:asciiReader.getTrainingImages()){\n for (int j = 0 ; j < activationValues.length; j++){\n activationValues[j] = activationFunction\n .apply(sumWeights(j,ima...
[ "0.70669985", "0.69715387", "0.67850566", "0.6630342", "0.6511172", "0.63465214", "0.6151474", "0.5972149", "0.58962506", "0.57561135", "0.575551", "0.5726362", "0.5719699", "0.56727535", "0.56406814", "0.560291", "0.5600526", "0.5475637", "0.54723525", "0.5457057", "0.543578...
0.7038399
1
TODO Autogenerated method stub
@Override public boolean onScale(ScaleGestureDetector detector) { Matrix mMatrix = new Matrix(); //缩放比例 float scale = detector.getScaleFactor() / 3; mMatrix.setScale(scale, scale); //锁定整个SurfaceView Canvas mCanvas = mSurfaceHolder.lockCan...
{ "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 onScaleEnd(ScaleGestureDetector detector) { }
{ "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
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_scale_gesture, 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.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
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.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577...
0.0
-1
Constructor for objects of class Catalogue
public Catalogue() { SupplierId = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Catalog() {\r\n }", "public Cattery()\r\n {\r\n businessName = \"unknown business\";\r\n catCollection = new ArrayList<Cat>();\r\n }", "public Producto() {\r\n }", "private CatalogContract() {}", "public CatalogSettings() {\n init();\n }", "public Producto (){\...
[ "0.7832385", "0.67206335", "0.665992", "0.66256845", "0.65841347", "0.65713304", "0.65710354", "0.63945794", "0.6393495", "0.635534", "0.633989", "0.63146526", "0.630584", "0.62984085", "0.62984085", "0.62980103", "0.628416", "0.6274571", "0.6274377", "0.6256576", "0.6256576"...
0.7377689
1
Method to set SupplierId
public void setSupplierId(int SupplierIdIn) { this.SupplierId = SupplierIdIn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }", "public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }", "public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}", "public void setSupplier...
[ "0.82367045", "0.8086443", "0.7880424", "0.77119094", "0.74298334", "0.7381897", "0.7276238", "0.70933187", "0.6983757", "0.69035935", "0.689247", "0.6838226", "0.6778348", "0.6719631", "0.6593135", "0.6503098", "0.64632136", "0.64020467", "0.6362053", "0.6338776", "0.6321235...
0.8236812
0
Method to get a SupplierId
public int getSupplierId() { return(this.SupplierId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getSupplierID();", "public Integer getSupplierId() {\n return supplierId;\n }", "public Long getSupplierId() {\n\t\treturn supplierId;\n\t}", "public Integer getSupplierid() {\r\n return supplierid;\r\n }", "@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tStrin...
[ "0.8521093", "0.8227658", "0.814225", "0.7991721", "0.7889648", "0.7050226", "0.6976438", "0.693609", "0.6927069", "0.68485004", "0.67855626", "0.6753749", "0.6681839", "0.6648447", "0.66436386", "0.65927655", "0.6560464", "0.6558024", "0.646026", "0.6430193", "0.63812745", ...
0.80116826
3
Returns rdfs:label annotation value for the axiom.
public synchronized String getLabel(final IRI iri) { final OWLOntology ontology = getOntology(); if (ontology != null) { final Set<OWLOntology> ontologies = ontology.getOWLOntologyManager().getOntologies(); for (OWLOntology o : ontologies) { final Set<OWLAnno...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String aoy() {\n return this.label;\n }", "java.lang.String getLabel();", "public java.lang.String getLabel();", "public String getLabel() {\n return getElement().getChildren()\n .filter(child -> child.getTag().equals(\"label\")).findFirst()\n .get(...
[ "0.6952814", "0.6862617", "0.683091", "0.68056947", "0.67246723", "0.67173725", "0.6711988", "0.6704087", "0.6704087", "0.66883177", "0.6672644", "0.6664511", "0.6663459", "0.6663075", "0.6660225", "0.6659711", "0.66460556", "0.66460556", "0.6643265", "0.6643265", "0.6643265"...
0.63240427
73
Read in a file and create a Bible object from it and return it.
public static VerseList readBible(File bibleFile) { String name = bibleFile.getName(); String extension = name.substring(name.lastIndexOf('.') + 1, name.length()); // Call the read method based on the file type. if ("atv".equals(extension.toLowerCase())) { return readATV(bibleFile); } else if ("xmv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static StoryModel getStory(File file) {\n StoryModel story = null;\n try {\n story = new StoryModel();\n\n if (!file.exists()) {\n throw new FileNotFoundException();\n }\n else{\n FileInputStream fis = new FileInputStre...
[ "0.6138151", "0.59830207", "0.5979506", "0.593959", "0.59380805", "0.5933149", "0.5913623", "0.5908788", "0.58932364", "0.58714336", "0.5803244", "0.57543963", "0.5736696", "0.573604", "0.56791633", "0.5667139", "0.56630325", "0.5594618", "0.5589276", "0.55876976", "0.558574"...
0.685305
0
Read in a Bible that is saved in the "ATV" format. The format is described below.
private static VerseList readATV(File bibleFile) { VerseList v = null; try { FileReader FR = new FileReader(bibleFile); BufferedReader BR = new BufferedReader(FR); String line = BR.readLine(); if (line.length() == 0) { v = new VerseList("unknown", ""); } else { if (line.contains(": "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static VerseList readBible(File bibleFile) {\r\n\t\tString name = bibleFile.getName();\r\n\t\tString extension = name.substring(name.lastIndexOf('.') + 1, name.length());\r\n\r\n\t\t// Call the read method based on the file type.\r\n\t\tif (\"atv\".equals(extension.toLowerCase())) {\r\n\t\t\treturn readATV(...
[ "0.6041345", "0.5873285", "0.584521", "0.51588625", "0.513899", "0.5116885", "0.5088655", "0.50641793", "0.5035751", "0.5013979", "0.49806955", "0.49739584", "0.49603206", "0.49562466", "0.48803186", "0.48708913", "0.48458162", "0.48458067", "0.48378515", "0.482366", "0.48179...
0.6893653
0
Read in the Bible that is stored in the XMV format.
private static VerseList readXMV(File bibleFile) { VerseList v = null; try { FileReader FR = new FileReader(bibleFile); BufferedReader BR = new BufferedReader(FR); String line = BR.readLine(); if (line.length() == 0) { v = new VerseList("unknown", ""); } else { if (line.contains(": "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static VerseList readBible(File bibleFile) {\r\n\t\tString name = bibleFile.getName();\r\n\t\tString extension = name.substring(name.lastIndexOf('.') + 1, name.length());\r\n\r\n\t\t// Call the read method based on the file type.\r\n\t\tif (\"atv\".equals(extension.toLowerCase())) {\r\n\t\t\treturn readATV(...
[ "0.587529", "0.5577605", "0.5335539", "0.5268575", "0.52512604", "0.5138121", "0.51095945", "0.50980157", "0.50980157", "0.50980157", "0.5093853", "0.50888777", "0.506763", "0.50491875", "0.50402015", "0.4993148", "0.49613497", "0.49389434", "0.49380597", "0.49208766", "0.491...
0.70250094
0
Note: In the following methods, we should really ensure that the file extension is correct (i.e. it should be ".atv"). However for now we won't worry about it. Hopefully the GUI code will be written in such a way that it will require the extension to be correct if we are concerned about it. Write out the Bible in the A...
public static void writeBibleATV(File file, Bible bible) { writeVersesATV(file, bible.getVersion() + ": " + bible.getTitle(), bible.getAllVerses()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\n\t\t\t\tJFileChooser chooser = new JFileChooser();\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"HALTING Files\", EXT);\n\t\t\t\tchooser.setFileFilter(filter);\n\t\t\t\tint choice = chooser.showSaveDialog(MainWindow.this);\n\...
[ "0.5811643", "0.55041766", "0.5460083", "0.5402546", "0.5400192", "0.53568065", "0.5337093", "0.5332873", "0.5314668", "0.5225063", "0.52074516", "0.52029663", "0.5190477", "0.5186889", "0.51605856", "0.5129994", "0.50996137", "0.50887644", "0.5088736", "0.50749594", "0.50630...
0.671761
0
Write out the given verses in the ATV format, using the description as the first line of the file.
public static void writeVersesATV(File file, String description, VerseList verses) { try{ FileWriter FW = new FileWriter(file); BufferedWriter BW = new BufferedWriter(FW); BW.write(description + "\n"); for(Verse verse: verses){ Reference r = verse.getReference(); BW.write(r.getBook() + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void writeBibleATV(File file, Bible bible) {\r\n\t\t\r\n\t\twriteVersesATV(file, bible.getVersion() + \": \" + bible.getTitle(), bible.getAllVerses());\r\n\t}", "public void crearNotaDeVenta (HistorialVentas ventas){\r\n String currentDate = this.dateFormat.format(this.date);\r\n try{...
[ "0.5968529", "0.55899006", "0.51601475", "0.51446235", "0.51442623", "0.5137292", "0.5047204", "0.49914", "0.49645996", "0.49289072", "0.48886102", "0.48614278", "0.48563918", "0.48272374", "0.48043752", "0.4794103", "0.47444102", "0.47253704", "0.47168112", "0.47153205", "0....
0.8060168
0
Write the string out to the given file. It is presumed that the string is an HTML rendering of some verses, but really it can be anything.
public static void writeText(File file, String text) { try{ System.out.println(text); FileWriter FW = new FileWriter(file); BufferedWriter BW = new BufferedWriter(FW); BW.write(text); BW.close(); } catch (IOException e){ System.out.println("error writing text"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void writeOutputFile(String str, String file) throws Exception {\n FileOutputStream fout = new FileOutputStream(file);\n\n fout.write(str.getBytes());\n fout.close();\n }", "public void saveToFile(String datafile) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingEx...
[ "0.64936537", "0.64780056", "0.64502275", "0.63107", "0.61517787", "0.60394037", "0.6011234", "0.597389", "0.5964421", "0.5911895", "0.59099144", "0.5854864", "0.5816673", "0.57927173", "0.578105", "0.57712644", "0.5762091", "0.5746637", "0.5715493", "0.5696209", "0.56936616"...
0.5412426
45
Retrieves a Map of styles from a Birt report. The styles are retrieved from report/styles/style, which is the global definition of Birt styles.
public static Map<String, Style> getStyles( XMLDataObject xml) { Map<String, Style> styleMap = new HashMap<String, Style>(); try { List<XMLDataObject> objects = xml.getList("report/styles/style"); for (XMLDataObject object : objects) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MarkStyle[] getStyles() {\n return styles_;\n }", "private static Map<String, CellStyle> createStyles(Workbook wb) {\n Map<String, CellStyle> styles = new HashMap<>();\n\n CellStyle style;\n Font headerFont = wb.createFont();\n headerFont.setBold(true);\n style = createBorderedS...
[ "0.60780245", "0.5886106", "0.5843997", "0.58287287", "0.57687676", "0.567347", "0.5558029", "0.5439348", "0.5425841", "0.5422814", "0.5383311", "0.5354311", "0.5295776", "0.5267953", "0.5213509", "0.51848984", "0.5139231", "0.51316494", "0.51282746", "0.51239175", "0.5111211...
0.7379937
0
Converts a Birt Style node in a tinyreport Style object. The Style object will contain the name of the Birt style, and a single CSS string containing all of the styles defined in the property nodes.
protected static Style getStyle(XMLDataObject xml) { Style style = new Style(); style.setName(xml.getString("@name")); style.setValue(getCssString(xml)); return style; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Style getStyle();", "public String getStyle() {\r\n if (style != null) {\r\n return style;\r\n }\r\n ValueBinding vb = getValueBinding(\"style\");\r\n return vb != null ? (String) vb.getValue(getFacesContext()) : null;\r\n }", "public String getStyle() {\n\t\treturn st...
[ "0.6046", "0.5970068", "0.58921874", "0.5849048", "0.5773896", "0.5773896", "0.5773896", "0.5773896", "0.5754619", "0.57510227", "0.56562567", "0.5641292", "0.55845255", "0.54041827", "0.53746355", "0.5324671", "0.5314145", "0.5310343", "0.52928215", "0.52697355", "0.52288187...
0.5884009
3
Given an xml node, this will find all child property elements. Any elements that are Birt styles will be converted to css styles. All css styles will be concatinated into a sinle css string.
public static String getCssString(XMLDataObject xml) { //Style string StringBuilder styleString = new StringBuilder(); //Get the list of properties List<XMLDataObject> objects = xml.getList("property"); //Loop through properties to get the style for (XMLDataObject obje...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void parseProperties()\n {\n List children = rootElement.getChildren(\"property\");\n\n for (Object aChildren : children)\n {\n Element child = (Element) aChildren;\n Property property = new Property(child, properties, this);\n }\n }", "private void processPropertyParentNode(E...
[ "0.57979923", "0.5369439", "0.523957", "0.52200955", "0.50659066", "0.5025562", "0.49440804", "0.48918682", "0.48595327", "0.48567003", "0.48431385", "0.4842103", "0.48383528", "0.48330817", "0.46205878", "0.45959672", "0.45835823", "0.45829326", "0.45610458", "0.4554967", "0...
0.6402359
0
Getters for all language fields:
public String getFolderPath() { return folderPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTranslationField();", "public String getLanguage();", "public Language getLanguage() {\n return this.language;\n }", "@Override\n protected String[] onGetLanguage() {\n return mCurrentLanguage;\n }", "String getLanguage();", "String getLanguage();", "String getLanguage();", "p...
[ "0.6941535", "0.66211504", "0.6476066", "0.64325327", "0.6410577", "0.6410577", "0.6410577", "0.63572663", "0.6291353", "0.6248949", "0.6247468", "0.62351835", "0.62333804", "0.6228519", "0.62278026", "0.62065935", "0.61911243", "0.6188295", "0.61836284", "0.61743915", "0.616...
0.0
-1
FactoryProducer factoryProducer = new FactoryProducer(); error ShapeFactory s = (ShapeFactory) FactoryProducer.getFactory("color");
public static void main(String[] args){ AbstractFactory s = FactoryProducer.getFactory("shape"); AbstractFactory c = FactoryProducer.getFactory("color"); s.getShape("circular").draw(); c.getColor("red").fill(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DISPID(1610940422) //= 0x60050006. The runtime will prefer the VTID if present\n @VTID(28)\n Factory shapeFactory();", "public interface ShapeFactory{\n Line createLine();\n Rectangle createRectangle();\n Circle createCircle();\n Polygon createPolygon();\n}", "public abstract ProductFactory getF...
[ "0.73026603", "0.71819", "0.69863915", "0.65897703", "0.65770435", "0.6487077", "0.6454022", "0.64515257", "0.64337", "0.63646847", "0.63541824", "0.6314487", "0.6295127", "0.62937653", "0.62933666", "0.62921", "0.62903005", "0.6195057", "0.6141882", "0.6096452", "0.6095043",...
0.72711354
1
Adds a new tab folder for a given control
public void ensureTab(final String text, final Image image, final ControlBuilder builder, int type) { Optional<CTabItem> tab = tabExists(text); if (tab.isPresent()) { tabs.setSelection(tab.get()); } else { CTabItem item = new CTabItem(tabs, type); item.setText(text); item.setImage(image); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNewTab() {\n int count = workspaceTabs.getComponentCount() + 1;\n String title = \"Workspace \" + count;\n WorkspacePanel panel = new WorkspacePanel(title);\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(drop...
[ "0.69712186", "0.6903589", "0.663952", "0.63942194", "0.6167738", "0.6155361", "0.61047333", "0.6081164", "0.605986", "0.6033425", "0.600262", "0.593251", "0.5884119", "0.5876362", "0.5846086", "0.58305746", "0.5795078", "0.57581633", "0.5724419", "0.56890684", "0.56844586", ...
0.0
-1
Since we want each test to start with a clean slate
void deleteTheDatabase() { mContext.deleteDatabase(MoviesDbHelper.DATABASE_NAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void nothing() throws Exception {\n startCleaner();\n }", "void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}", "@Override\r\n protected void tearDown()\r\n {\r\n seed = null;\r\n island = null;\r\n position = null;\r\n }", "...
[ "0.72108847", "0.7129377", "0.70221657", "0.69143367", "0.6894328", "0.6864375", "0.68541414", "0.6846452", "0.68429387", "0.68429387", "0.684243", "0.6821681", "0.6795423", "0.6737249", "0.6708971", "0.6704535", "0.66756725", "0.6649599", "0.66472656", "0.66413105", "0.66390...
0.0
-1
/ This function gets called before each test is executed to delete the database. This makes sure that we always have a clean test.
@Override public void setUp() { deleteTheDatabase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUp() {\n deleteTheDatabase();\n }", "public void setUp() {\n deleteTheDatabase();\n }", "@BeforeClass\n public static void clean() {\n DatabaseTest.clean();\n }", "@After\n public void cleanDatabaseTablesAfterTest() {\n databaseCleaner.clean();\n }...
[ "0.87973446", "0.87973446", "0.83493674", "0.8256613", "0.8115917", "0.80179626", "0.8016218", "0.7987053", "0.796052", "0.78945595", "0.7789356", "0.7772628", "0.7771254", "0.7629689", "0.76187825", "0.75955576", "0.7581302", "0.75352144", "0.753189", "0.7493901", "0.7454191...
0.8692527
2
build a HashSet of all of the table names we wish to look for Note that there will be another table in the DB that stores the Android metadata (db version information)
public void testCreateDb() throws Throwable { final HashSet<String> tableNameHashSet = new HashSet<String>(); tableNameHashSet.add(MoviesContract.MovieEntry.TABLE_NAME); //Add all the remaining tables //mContext.deleteDatabase(MoviesDbHelper.DATABASE_NAME); SQLiteDatabase db = n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> get_table_names() {\n LinkedList<String> res = new LinkedList<>();\n\n //the table name information is stored in sqlite_master\n ResultSet resultSet = execute_statement(\"SELECT name FROM sqlite_master WHERE type='table'\" +\n \"AND name <> 'sqlite_sequence' ...
[ "0.69399416", "0.67935985", "0.6564618", "0.6514062", "0.63036907", "0.6244303", "0.6165568", "0.6126993", "0.61188674", "0.6085974", "0.6047727", "0.6006599", "0.6004353", "0.59497666", "0.5917717", "0.5855988", "0.57968426", "0.5778916", "0.57786256", "0.5728264", "0.570763...
0.0
-1
First step: Get reference to writable database If there's an error in those massive SQL table creation Strings, errors will be thrown here when you try to get a writable database.
public long insertMovie() { MoviesDbHelper dbHelper = new MoviesDbHelper(mContext); SQLiteDatabase db = dbHelper.getWritableDatabase(); // Second Step: Create ContentValues of what you want to insert ContentValues testValues = TestUtilities.createJurassicWorldMovieValues(); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Database createDatabase();", "protected abstract ODatabaseInternal<?> newDatabase();", "@Override\n\tpublic SQLiteDatabase getWritableDatabase() {\n \t// TODO Auto-generated method stub\n \tsynchronized(DBOpenHelper.class) {\n \t\tif ((myWritableDb == null) || (!myWritableDb.isOpen())) {\n \t\t\tre...
[ "0.6466736", "0.6409488", "0.6250162", "0.62212056", "0.6210661", "0.6191925", "0.6188914", "0.615499", "0.61314005", "0.61206084", "0.60646975", "0.605705", "0.6053588", "0.6049876", "0.6038113", "0.6034913", "0.60336214", "0.6021307", "0.5980119", "0.5970158", "0.59340525",...
0.0
-1
First step: Get reference to writable database If there's an error in those massive SQL table creation Strings, errors will be thrown here when you try to get a writable database.
public void insertTrailers(long movieRowId) { MoviesDbHelper dbHelper = new MoviesDbHelper(mContext); SQLiteDatabase db = dbHelper.getWritableDatabase(); // Second Step: Create ContentValues of what you want to insert ContentValues[] testValues = TestUtilities.createTrailerValues(movieR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Database createDatabase();", "protected abstract ODatabaseInternal<?> newDatabase();", "@Override\n\tpublic SQLiteDatabase getWritableDatabase() {\n \t// TODO Auto-generated method stub\n \tsynchronized(DBOpenHelper.class) {\n \t\tif ((myWritableDb == null) || (!myWritableDb.isOpen())) {\n \t\t\tre...
[ "0.64660263", "0.640888", "0.624887", "0.6220312", "0.62098914", "0.619072", "0.6188162", "0.6154524", "0.6130405", "0.61206424", "0.6063832", "0.60569304", "0.60531986", "0.6049769", "0.6036453", "0.6035157", "0.6033929", "0.60205936", "0.59796864", "0.5969657", "0.5934233",...
0.0
-1
First step: Get reference to writable database If there's an error in those massive SQL table creation Strings, errors will be thrown here when you try to get a writable database.
public void insertReviews(long movieRowId){ MoviesDbHelper dbHelper = new MoviesDbHelper(mContext); SQLiteDatabase db = dbHelper.getWritableDatabase(); // Second Step (Review): Create review values ContentValues[] reviewValues = TestUtilities.createReviewValues(movieRowId); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Database createDatabase();", "protected abstract ODatabaseInternal<?> newDatabase();", "@Override\n\tpublic SQLiteDatabase getWritableDatabase() {\n \t// TODO Auto-generated method stub\n \tsynchronized(DBOpenHelper.class) {\n \t\tif ((myWritableDb == null) || (!myWritableDb.isOpen())) {\n \t\t\tre...
[ "0.6466224", "0.6409426", "0.6249061", "0.6221554", "0.6210274", "0.61915064", "0.6189483", "0.61542547", "0.61304325", "0.61202693", "0.6064001", "0.60575265", "0.60532707", "0.6050865", "0.60379297", "0.603461", "0.60336274", "0.60208666", "0.5980196", "0.5970296", "0.59347...
0.0
-1
TODO Autogenerated method stub Matrices o arrays multidimensionales
public static void main(String[] args) { int[] numeros = new int[10]; int[][] matriz = new int [10][2]; //posicion 5 del array numeros[5] = 23; //posicion en matriz matriz[1][2] = 45; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Matriz(Complejo[][] numeros){\n\t\tthis.numeros = numeros;\n\t}", "public void redimensionarArray() {\r\n\t\t\r\n\t\tint nuevaCapacidad = tamanioArrayPosicionesCelulas * 2;\r\n\t\t// Copia los arrays originales y les da la nueva capacidad se quiere tener.\r\n\t\tfilasDeCelulas = Arrays.copyOf(filasDeCelul...
[ "0.6594716", "0.629825", "0.62425417", "0.61868376", "0.6173596", "0.61527973", "0.6112022", "0.61014223", "0.6048464", "0.6016617", "0.60143834", "0.599933", "0.59952635", "0.5993415", "0.59899044", "0.5953781", "0.59185296", "0.59025747", "0.58887506", "0.5875571", "0.58609...
0.0
-1
ES AUXILIAR PARA WINDOWS FORMS
public DireccionJInternalFrame() throws Exception { super(PaginaTipo.PRINCIPAL); //super("Direccion No " + (++openFrameCount),true, /*resizable*/true, /*closable*/true, /*maximizable*/true);//iconifiable try { //Boolean cargarRelaciones=false; initialize(null,false,false,false/*cargarRelac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tOSFactory osFactory = new OSFactory();\n\t\tOS os = osFactory.getOs(\"windows\");\n\t\tos.spec();\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n ICommand[] commandRegister = {\n new LeagueCmd(),\n new TeamCmd(),\n ...
[ "0.6009097", "0.56282794", "0.5561097", "0.5558826", "0.55431485", "0.55391246", "0.55389416", "0.5533476", "0.5531501", "0.5516032", "0.55109525", "0.54850745", "0.5469402", "0.5446484", "0.54393137", "0.5427187", "0.5419712", "0.54158086", "0.54078263", "0.54006743", "0.539...
0.0
-1
Main java thread that begins execution.
public static void main(String[] args) { try { if (args.length >= 1) new SleepingTeacherAssistant(Integer.parseInt(args[0])); else { System.out.println("Please enter number of students as argument."); System.exit(0); } } catch (Exception...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void start() {\r\n\t\tif (running)\r\n\t\t\treturn;\r\n\t\trunning = true;\r\n\t\tthread = new Thread(this);//creates threat to run program on\r\n\t\tthread.start();\r\n\t}", "public void run()\n {\n try\n {\n java.lang.Object sync = new java.lang.Object();\n synchronized (sync)\n {...
[ "0.7257553", "0.70308954", "0.6982997", "0.6940073", "0.6916084", "0.6916084", "0.6881178", "0.68476343", "0.6833554", "0.6794251", "0.67702854", "0.67635864", "0.6751446", "0.6739315", "0.67314315", "0.6724985", "0.6718988", "0.6718988", "0.6718988", "0.6718988", "0.67145765...
0.0
-1
SleepingTeacherAssistant class constructor that creates TA and student threads based on the command line argument.
public SleepingTeacherAssistant(int numStudents) { // Spawn the TA thread. new Thread(new TeachingAssistant()).start(); // Spawn the student threads. for (int i = 0; i < numStudents; i++) new Thread(new Student()).start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\r\n try {\r\n if (args.length >= 1)\r\n new SleepingTeacherAssistant(Integer.parseInt(args[0]));\r\n else {\r\n System.out.println(\"Please enter number of students as argument.\");\r\n System.exit(0);\r\n }\r\n ...
[ "0.68452394", "0.6725675", "0.6349182", "0.59738016", "0.5921447", "0.5912956", "0.585135", "0.5846689", "0.58303654", "0.5800856", "0.57636774", "0.57516396", "0.57194644", "0.5716974", "0.5709608", "0.5686352", "0.5673097", "0.5657406", "0.56293863", "0.55863726", "0.558552...
0.7689555
0
listar todos os alunos podendo filtrar por nome ou idade
public List<Aluno> findAll(String nome, Integer idade){ List<Aluno> alunosFiltrados = new ArrayList(); if(nome != null && idade !=null){ alunosFiltrados = alunos.stream() .filter(aluno -> aluno.getNome().contains(nome) && aluno.getIdade().equals(idade)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<FilmeAtor> buscarFilmesAtoresPeloNomeFilmeOuNomeAtor(String nomeFilmeOuAtor) {\n EntityManager gerenciador = JPAUtil.getGerenciador();\r\n\r\n //Criando a consulta ao BD\r\n TypedQuery<FilmeAtor> consulta = gerenciador.createQuery(\r\n \"SELECT new dados.dto.FilmeAto...
[ "0.66019106", "0.64428097", "0.64293134", "0.6370039", "0.63418674", "0.63190633", "0.62547743", "0.6249151", "0.6181993", "0.61606216", "0.61434454", "0.61302346", "0.608642", "0.60745", "0.6068993", "0.6057835", "0.6012819", "0.5959015", "0.59401745", "0.59378976", "0.59290...
0.7556426
0
buscar aluno por id
public Aluno findById(Integer id){ Aluno alunoEncontrado = this.alunos.stream() .filter(aluno -> aluno.getId().equals(id)) .findFirst() .orElse(null); if(alunoEncontrado != null){ return alunoEncontrado; } throw new AlunoInexist...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public Assunto buscarId(int id) {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"SELECT a FROM Assunto a WHERE a.id =:id\");\r\n query.setParameter(\"id\", id);\r\n \r\n List<Assunto> assunto = query.getResultList();...
[ "0.75253844", "0.7243714", "0.72150975", "0.7073675", "0.7071352", "0.7011177", "0.6965378", "0.6887358", "0.68146765", "0.6790136", "0.6790136", "0.6790136", "0.6790136", "0.6790136", "0.6790136", "0.6790136", "0.6790136", "0.6790136", "0.6790136", "0.6790136", "0.6790136", ...
0.6591763
87
remover registro de aluno
public ResponseEntity delete(Integer id){ alunos.removeIf(aluno -> aluno.getId().equals(id)); return new ResponseEntity(HttpStatus.NO_CONTENT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void eliminar(Long idRegistro) {\n\t\t\r\n\t}", "private void remover() {\n int confirma = JOptionPane.showConfirmDialog(null, \"Tem certeza que deseja remover este cliente\", \"Atenção\", JOptionPane.YES_NO_OPTION);\n if (confirma == JOptionPane.YES_OPTION) {\n Str...
[ "0.7587892", "0.75586224", "0.7472289", "0.74055296", "0.7394977", "0.73787296", "0.7359197", "0.7252316", "0.72190225", "0.72070044", "0.7203006", "0.717571", "0.71520686", "0.71415126", "0.71188676", "0.70923096", "0.7065583", "0.7060665", "0.7031548", "0.70232534", "0.7015...
0.0
-1
Default constructor when performing a new search.
public SearchPage() { doRender(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Search() {}", "public search() {\n }", "public NotSearch()\n\t\t{\n\t\t}", "public SearchDocument() {\n super();\n }", "public Search() {\n this.timestamp = System.currentTimeMillis();\n }", "public SearchSettings() { }", "public AbstractSearchEngine() {}", "public List...
[ "0.8187555", "0.78080225", "0.78073996", "0.7662931", "0.7490576", "0.7296154", "0.72420245", "0.7011202", "0.68765604", "0.68625844", "0.68591106", "0.6849134", "0.6814915", "0.67768985", "0.677576", "0.67654335", "0.6761681", "0.6631596", "0.66224873", "0.6606888", "0.65988...
0.5913725
91
constructor stuff static for the singleton design pattern used by other classes instead of calling the constructor
public static UtilityDatabaseController getInstance() { if(instance == null) { instance = new UtilityDatabaseController(); } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton()\n\t\t{\n\t\t}", "private Singleton() {\n\t}", "private SingletonObject() {\n\n\t}", "private Singleton(){}", "private Singleton() { }", "private SingletonSample() {}", "private Singleton(){\n }", "private SingletonSigar(){}", "private LazySingleton(){}", "private SingletonE...
[ "0.8064631", "0.798626", "0.7977115", "0.79716367", "0.7929688", "0.7756926", "0.7692715", "0.7654022", "0.74260145", "0.73659825", "0.73190004", "0.7299727", "0.7276329", "0.72705853", "0.72315097", "0.7225302", "0.7216014", "0.7188287", "0.7188287", "0.7182707", "0.7145027"...
0.0
-1
private constructor for the singleton design pattern
private UtilityDatabaseController() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Singleton()\n\t\t{\n\t\t}", "private Singleton() {\n\t}", "private Singleton(){}", "private Singleton() { }", "private SingletonObject() {\n\n\t}", "private Singleton(){\n }", "private SingletonSample() {}", "private SingletonSigar(){}", "private LazySingleton(){}", "private SparkeySer...
[ "0.8605436", "0.8566861", "0.85587347", "0.85395414", "0.83990014", "0.8272092", "0.8080335", "0.8017137", "0.7943324", "0.7903655", "0.78164816", "0.7769152", "0.77678704", "0.77557683", "0.77387846", "0.768379", "0.76677054", "0.7538493", "0.7538493", "0.750165", "0.7499853...
0.0
-1
Property database functions for Railroads, Utilities, and Realestate gets user from the database that corresponds to that user's unique id If successful returns a new User object with the data values belonging to the user, else returns a NULL User object.
public Utility getUtilityByID(int gameID, int spaceID) { String query1, query2; Utility utility = null; try { if(connection == null) { getDatabaseConnection(); } query1 = "SELECT * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User getUser(long id) {\n\t\tUser user = null;\n\t\t\n\t\tString queryString = \n\t\t\t \"PREFIX sweb: <\" + Config.NS + \"> \" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \" +\n\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \" +\n\t\t\t \"...
[ "0.6938211", "0.6920116", "0.6920116", "0.69078916", "0.6851307", "0.68495536", "0.6822079", "0.68212324", "0.6783355", "0.67549634", "0.674037", "0.67371875", "0.6733352", "0.6726959", "0.6707965", "0.67037696", "0.66985106", "0.66956824", "0.66948366", "0.6692499", "0.66923...
0.0
-1
Saves the user's new login information to the database so it can be used in logins later. If the new user login information is not unique or the user id is not in the database, then the save will fail and return false. if successful returns true
public boolean updateUtility(Utility utility) { String query; boolean success = true; boolean hasMortgage = utility.getIsMortgaged(); int spaceID = utility.getSpaceID(); int owner = utility.getOwnerID(); int gameID = utility.getGameID(); try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean saveLastLogin(User user);", "public boolean insertUser(){\n\n //Look if the user exist already.\n boolean existAlready = false;\n if(!this.userName.equals(\"\") && !this.password.equals(\"\"))\n existAlready = tryConnection(this.userName,this.password);\n if(...
[ "0.7278887", "0.6933021", "0.6919709", "0.6818955", "0.68176615", "0.67238915", "0.669725", "0.66365504", "0.6439506", "0.6418076", "0.6412076", "0.63768315", "0.6358258", "0.6353389", "0.63470286", "0.6342352", "0.6291215", "0.62768054", "0.62626106", "0.6262201", "0.6262114...
0.0
-1
Saves the new player information to the database so it be used in a game. The database then assigns the new player an id, token, space 1, and active status. If successful returns a new Player object with the data values belonging to the user, else returns a NULL Player object.
public ArrayList<Property> addBothUtilitiesToGame(int gameID) { String query; int space; // flag for not owned by a player, but owned by the bank int owner = -1; String name; int price; ArrayList<Property> utilityList = new ArrayList<Property>(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Player createPlayer(Player player) {\n // check whether unique player can be created or not\n if (playerRepository.existsByUsername(player.getUsername())) {\n return null;\n }\n if (playerRepository.existsByEmailAddress(player.getEmailAddress())) {\n return ...
[ "0.6489835", "0.6320559", "0.6093962", "0.58919847", "0.58841735", "0.5878071", "0.5867582", "0.57495576", "0.5735735", "0.5679429", "0.5677911", "0.5654359", "0.56495655", "0.5577645", "0.5554446", "0.5546309", "0.5529634", "0.5456424", "0.53975654", "0.53819436", "0.5376042...
0.0
-1