query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
This method was generated by MyBatis Generator. This method returns the value of the database column expediente_consulta.p_menor
public String getpMenor() { return pMenor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setpMenor(String pMenor) {\r\n this.pMenor = pMenor;\r\n }", "public String getMenuno() {\r\n return menuno;\r\n }", "public java.lang.Long getPeti_numero();", "public java.lang.Long getPeti_numero();", "public String getEmpresa() {\r\n return empresa;\r\n }", "@...
[ "0.66167194", "0.62695634", "0.579481", "0.579481", "0.5698363", "0.5677028", "0.5676042", "0.5635", "0.56287366", "0.5611691", "0.5556269", "0.5550532", "0.5544068", "0.5542092", "0.5527259", "0.5525802", "0.55148065", "0.55104446", "0.55080914", "0.5507679", "0.5503851", ...
0.69801044
0
This method was generated by MyBatis Generator. This method sets the value of the database column expediente_consulta.p_menor
public void setpMenor(String pMenor) { this.pMenor = pMenor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public String getpMenor() {\r\n return pMenor;\r\n }", "public void setEspecialidad (EspecialidadEntity pEspecialidad)\r\n {\r\n this.especialidad = pEspecialidad;...
[ "0.612589", "0.59617513", "0.5917055", "0.5780962", "0.5780962", "0.5686791", "0.56845605", "0.5670121", "0.56513536", "0.5648036", "0.55997115", "0.55685055", "0.5563558", "0.5525463", "0.5509605", "0.5501221", "0.54632086", "0.54214", "0.5409673", "0.5407533", "0.540057", ...
0.7257931
0
This method was generated by MyBatis Generator. This method returns the value of the database column expediente_consulta.temperatura
public String getTemperatura() { return temperatura; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTemperatura(String temperatura) {\r\n this.temperatura = temperatura;\r\n }", "public String getTemperatura(String temperatura) {\n this.temperatura = temperatura;\n WindowApp.numTemperatura.setText(temperatura);\n return temperatura;\n }", "int getTempo();", ...
[ "0.63099754", "0.58986866", "0.5870595", "0.5745146", "0.5697013", "0.5633528", "0.55721664", "0.55408007", "0.5493661", "0.54711014", "0.5437745", "0.530614", "0.5292341", "0.52773446", "0.5267621", "0.52592397", "0.5255617", "0.52523583", "0.5242587", "0.5239105", "0.521375...
0.68175757
0
This method was generated by MyBatis Generator. This method sets the value of the database column expediente_consulta.temperatura
public void setTemperatura(String temperatura) { this.temperatura = temperatura; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTemperatura() {\r\n return temperatura;\r\n }", "public void setFechaconsulta(Date fechaconsulta) {\r\n this.fechaconsulta = fechaconsulta;\r\n }", "public void setConsulta(final E consulta) {\n\n\t\tthis.consulta = consulta;\n\t}", "public void setContraparte(es.gob.agen...
[ "0.57703185", "0.5739056", "0.56192416", "0.55486333", "0.55276644", "0.54006696", "0.53866297", "0.5372369", "0.5354062", "0.5328536", "0.5294566", "0.5285516", "0.5238824", "0.52385217", "0.5189153", "0.5188531", "0.5169207", "0.5159077", "0.5152424", "0.5141473", "0.512769...
0.7064504
0
This method was generated by MyBatis Generator. This method returns the value of the database column expediente_consulta.altura
public String getAltura() { return altura; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAltura(){\n return this._altura;\n }", "public int dameColumna() {\n return this.columna;\n }", "public int obtenerColumna() {\n\t\treturn columna;\n\t}", "public E getConsulta() {\n\n\t\treturn this.consulta;\n\t}", "public E ultimo() {\n\t\tif(estaVacia()) {\n\t\t\tretur...
[ "0.6163419", "0.5843836", "0.5821846", "0.57785815", "0.5702492", "0.5676471", "0.5557695", "0.55467474", "0.5496098", "0.5475044", "0.5459125", "0.54144186", "0.5412952", "0.5412388", "0.5400153", "0.53978723", "0.53945744", "0.53752714", "0.5372937", "0.5364263", "0.5361745...
0.5132356
58
This method was generated by MyBatis Generator. This method sets the value of the database column expediente_consulta.altura
public void setAltura(String altura) { this.altura = altura; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setConsulta(final E consulta) {\n\n\t\tthis.consulta = consulta;\n\t}", "public int getAltura(){\n return this._altura;\n }", "public void anulaAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAnulaAvaluo())) {\r\n mbTodero.setMens(...
[ "0.5970512", "0.5359237", "0.5330521", "0.53279036", "0.53130543", "0.52753663", "0.5270458", "0.5265721", "0.5263904", "0.52613896", "0.52187806", "0.5215592", "0.52118516", "0.5189569", "0.5177548", "0.51704836", "0.51572186", "0.51543987", "0.5145656", "0.5118269", "0.5118...
0.51985073
13
This method was generated by MyBatis Generator. This method returns the value of the database column expediente_consulta.masa_corp
public String getMasaCorp() { return masaCorp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMasaCorp(String masaCorp) {\r\n this.masaCorp = masaCorp;\r\n }", "public String getMarca() {\n return Marca;\n }", "public String getMarca()\n {\n return marca;\n }", "public String getMarca() {\n\t\treturn marca;\n\t}", "public Long getIdMarca() {\n ...
[ "0.65059626", "0.58626986", "0.57307774", "0.57209927", "0.5702731", "0.559167", "0.55900776", "0.55831665", "0.5518166", "0.5494999", "0.54737437", "0.5446814", "0.53864336", "0.53620714", "0.5348692", "0.5332244", "0.5302029", "0.5284705", "0.5279288", "0.5277418", "0.52649...
0.6751834
0
This method was generated by MyBatis Generator. This method sets the value of the database column expediente_consulta.masa_corp
public void setMasaCorp(String masaCorp) { this.masaCorp = masaCorp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMasaCorp() {\r\n return masaCorp;\r\n }", "public void setMarca( String marca ){\n this.marca = marca;\n }", "public void setMarca(String Marca) {\n this.Marca = Marca;\n }", "public void setCorreo(String aCorreo) {\r\n correo = aCorreo;\r\n }", "pub...
[ "0.604239", "0.5529749", "0.54360956", "0.54310876", "0.5393099", "0.53913635", "0.5342084", "0.5336816", "0.5310618", "0.5309043", "0.53042054", "0.5258977", "0.52575845", "0.52520216", "0.52474326", "0.5233377", "0.51848626", "0.5183493", "0.51772916", "0.5168327", "0.51678...
0.7439176
0
This method was generated by MyBatis Generator. This method returns the value of the database column expediente_consulta.grasa_corp
public String getGrasaCorp() { return grasaCorp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Grafico getGrafico() {\n return this.grafico_comunicacao;\n }", "public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}", "public String getMasaCorp() {\r\n return masaCorp;\r\n }", "public String getRagione_sociale() {\r\n return ragione_sociale;\r\n }", "pub...
[ "0.6210775", "0.60386986", "0.5893692", "0.58854526", "0.5866797", "0.5780323", "0.5752359", "0.567439", "0.56286395", "0.5611856", "0.55951154", "0.5587587", "0.55851233", "0.55712277", "0.5567725", "0.5518218", "0.5515473", "0.5508254", "0.5493347", "0.54887164", "0.5451485...
0.6807998
0
This method was generated by MyBatis Generator. This method sets the value of the database column expediente_consulta.grasa_corp
public void setGrasaCorp(String grasaCorp) { this.grasaCorp = grasaCorp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getGrasaCorp() {\r\n return grasaCorp;\r\n }", "public void setMasaCorp(String masaCorp) {\r\n this.masaCorp = masaCorp;\r\n }", "public void setComentario (String val) {\n this.comentario = val;\n }", "public void setCorreo(String aCorreo) {\r\n correo = aC...
[ "0.6153525", "0.61363435", "0.5735223", "0.5733983", "0.5589022", "0.5512466", "0.5455706", "0.5425385", "0.53961974", "0.53651327", "0.5364632", "0.5331854", "0.5327452", "0.53129596", "0.53010833", "0.52971774", "0.5289333", "0.5284273", "0.52825123", "0.52479136", "0.52440...
0.6916772
0
TODO Autogenerated method stub
private void doDialogMsgBuilder() { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(getResources().getString(R.string.OverAge)) .setCancelable(false) .setPositiveButton(getResources().getString(R.string.ok), new Dial...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { moveScrollDown(); }
{ "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 Loader<Cursor> onCreateLoader(int arg0, Bundle arg1) { setSupportProgressBarIndeterminateVisibility(true); CursorLoader cl = new CursorLoader(this, VisitPersongrow.CONTENT_URI, PROJECTION, "pid=" + getPid(), null, VisitPersongrow.DEFAULT_SORTING); ...
{ "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 onLoadFinished(Loader<Cursor> arg0, Cursor arg1) { setSupportProgressBarIndeterminateVisibility(false); if (arg1.moveToFirst()) { final Cursor c = arg1; mHandler.post(new Runnable() { @Override public void run() { ...
{ "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 onLoaderReset(Loader<Cursor> arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void onTextChanged(CharSequence s, int start, int before, int count) { afterTextChanged(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { afterTextChanged(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void afterTextChanged(Editable s) { System.out.println("STD " + ageStd.getText() + " CAN " + ageCan.getText()); if (!TextUtils.isEmpty(ageStd.getText()) && !TextUtils.isEmpty(ageCan.getText())) { int aStd = Integer.parseInt(ageStd.getText(...
{ "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 onTextChanged(CharSequence s, int start, int before, int count) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { }
{ "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 afterTextChanged(Editable s) { String type = growType.getSelectId(); if (!TextUtils.isEmpty(type)) { Cursor c = getActivity().getContentResolver().query( Grow.CONTENT_URI, new String[]{Grow.STD}, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean onSave(EditTransaction et) { et.retrieveData(VisitPersongrow.GROWCODE, growType, false, null, null); et.retrieveData(VisitPersongrow.AGEMONTHCAN, ageCan, false, 0, 99, getString(R.string.err_no_value)); ContentValues cv = et.getContentValues(); ...
{ "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
Resolves a full class path to a valid class path in the current context
String resolveClassPath(String classPath);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String resolve(String path)\n {\n\n // strip classname\n path = path.substring(path.lastIndexOf(\"/\") + 1);\n\n return path;\n }", "public ClassPath getClassPath();", "private static String getFQClassName(final String root, final String path) {\r\n\t\t//Remove root from front of...
[ "0.69287056", "0.66277707", "0.65130395", "0.63462394", "0.6241654", "0.59956056", "0.5944335", "0.58759654", "0.5693017", "0.5629037", "0.55983776", "0.55761206", "0.55349416", "0.5505375", "0.5433985", "0.5362686", "0.53238726", "0.5320464", "0.52757895", "0.5232542", "0.51...
0.7168379
0
Checks whether .class data can be loaded directly from the class path specified. When this returns true, and the .class file can be loaded as a resource, then this class data is used when compiling atruntime generated methods. When this returns false, then a mock version of the class data is generated using reflection,...
default boolean canLoadClassPath(String classPath) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Programmatic\n public boolean loaded(final Class<?> cls) {\n return loaded(cls.getName());\n }", "boolean isClassMapping() {\n return !path.isEmpty() && !targetClass.isEmpty()\n && condAttr.isEmpty() && condAttrValue.isEmpty() && source.isEmpty()\n && sourceName...
[ "0.60145843", "0.5871874", "0.58268934", "0.565649", "0.55610085", "0.55431634", "0.55248016", "0.5337288", "0.5296452", "0.5255579", "0.5245246", "0.5220525", "0.5219944", "0.51869744", "0.5174369", "0.5168489", "0.515678", "0.50948155", "0.50931066", "0.5079068", "0.5073635...
0.6658101
0
Overrides so that inserting a row will not be selected automatically if the row after it is selected.
@Override public void insertIndexInterval(int index, int length, boolean before) { if (before) { boolean old = isSelectedIndex(index); super.setValueIsAdjusting(true); try { if (old) { removeSelectionInterval(index, index); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveToInsertRow() throws SQLException\n {\n m_rs.moveToInsertRow();\n }", "private void insertButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN\n // -\n // FIRST\n // :\n // event_insertButtonActionPerformed\n int rowIndex = headerTable.getSelec...
[ "0.68538094", "0.68300676", "0.6730089", "0.6598077", "0.6409401", "0.6214454", "0.6213358", "0.61622757", "0.6155662", "0.6149054", "0.6110979", "0.6105205", "0.6031701", "0.6017105", "0.5997928", "0.59877694", "0.5980243", "0.595858", "0.5956218", "0.5943146", "0.592651", ...
0.5562263
61
Stream.of=> We can use Stream.of() to create a stream from similar type of data
public static void main(String[] args) { Stream<Integer> stream = Stream.of(1, 2, 3, 4, 5, 6); stream.forEach(System.out::print); //:: is called method refrence Stream<Integer> stream1 = Stream.of(new Integer[]{1,2,3,4}); stream1.forEach(System.out::println); Stream<String> names2 = Stream.of("D", "A", ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tSystem.out.println(\"Create Stream of Object\\n\");\n\t\tStream<String> stream= Stream.of(\"Saliou\",\"Fatimatou\",\"Mahdiyou\",\"Kolon\");\n\t stream.forEach(System.out::println);\n\t \n // Create Stream from Objects from Collection\n\t\tSystem.out.println(...
[ "0.6804233", "0.6590664", "0.62005305", "0.6108112", "0.60069203", "0.59388834", "0.59078693", "0.59063154", "0.5893102", "0.5891076", "0.57742906", "0.5632172", "0.5626488", "0.56191105", "0.56158686", "0.555528", "0.5551364", "0.55293983", "0.5503756", "0.5498429", "0.54728...
0.5010899
64
Unarchives the archive into the base dir
public void unarchive(String baseDir) throws MojoExecutionException { try (FileInputStream fis = new FileInputStream(archive); ZipArchiveInputStream zipIn = new ZipArchiveInputStream(fis)) { ZipArchiveEntry zipEnry = zipIn.getNextZipEntry(); while (zipEnry != null) { // Create a file for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void unCompress()\n\t{\n\t\ttry\n\t\t{\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tint bytesIn;\n\t\t\tZipFile rfoFile = new ZipFile(path + fileName);\n\t\t\tEnumeration<? extends ZipEntry> allFiles = rfoFile.entries();\n\t\t\twhile(allFiles.hasMoreElements())\n\t\t\t{\n\t\t\t\tZipEntry ze = (ZipEntry)al...
[ "0.64465344", "0.6212317", "0.5959794", "0.5873921", "0.585997", "0.5851541", "0.57831824", "0.5723998", "0.56846917", "0.5684259", "0.56252325", "0.55828965", "0.5543622", "0.5482186", "0.54620296", "0.5440395", "0.5421962", "0.5420699", "0.53919214", "0.5375934", "0.5365424...
0.82277834
0
get the localHost IP address, if the server is running on the some other ip
public void sentRecieve() throws UnknownHostException, IOException, ClassNotFoundException, InterruptedException { InetAddress host = InetAddress.getLocalHost(); Socket socket = null; ObjectOutputStream output = null; ObjectInputStream input = null; LinkedLi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getLocalIpAddress() throws Exception {\n return InetAddress.getLocalHost().getHostAddress();\n }", "private static void getServerIPAddress() {\r\n // Get local IP address\r\n try {\r\n Enumeration<NetworkInterface> enumeratedNetworkInterface = NetworkInterface.ge...
[ "0.7597074", "0.7589292", "0.7575847", "0.7543126", "0.74786186", "0.7440361", "0.74289596", "0.7369984", "0.7340286", "0.7337056", "0.7324824", "0.7299559", "0.7297115", "0.72622997", "0.7261153", "0.7225303", "0.7223697", "0.71848136", "0.71191925", "0.7008869", "0.6996792"...
0.0
-1
TODO Autogenerated method stub
@Override public boolean isReduce() { return true; }
{ "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 Result getResult() { return m_Result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String str(int number) { return "C3("+number+")"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Creates new form ViewUser
public ViewUserGUI(DashBoard cp, User user) { this.cp = cp; this.tc = cp.getMessageCollectionController(); this.pc = cp.getPanelController(); this.user = user; initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newuserclicked(View view) {\n Intent myuserIntent = new Intent(this, UserCreation.class);\n startActivity(myuserIntent);\n }", "public void createAccount(View view) {\n Intent intent = new Intent(this, UserAccountCreateActivity.class);\n startActivity(intent);\n }", ...
[ "0.7281582", "0.7149132", "0.7051442", "0.70313686", "0.69520926", "0.68934643", "0.6869555", "0.6810207", "0.68043756", "0.67990327", "0.67891914", "0.6762574", "0.6755043", "0.67328167", "0.67111194", "0.66701424", "0.6669749", "0.66639185", "0.66440535", "0.66145474", "0.6...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. //GENBEGIN:initComponents
private void initComponents() { ViewUserInfoLabel = new javax.swing.JLabel(); upperSeparator = new javax.swing.JSeparator(); nameLabel = new javax.swing.JLabel(); nameFormattedTextField = new javax.swing.JFormattedTextField(user.getName()); ageFormattedTextField = new javax.swin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public Form() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public GUIForm() { \...
[ "0.7391324", "0.7391324", "0.7391324", "0.73507947", "0.7331336", "0.7329534", "0.7294399", "0.7266276", "0.7225115", "0.7214399", "0.7159046", "0.7153979", "0.7149596", "0.71404046", "0.71353865", "0.71322703", "0.7120659", "0.7118281", "0.71138704", "0.71097445", "0.7087580...
0.0
-1
Returns the value of the 'Interfaces' attribute. If the meaning of the 'Interfaces' attribute isn't clear, there really should be more of a description here...
String getInterfaces();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int[] getInterfaces() {\n return interfaces;\n }", "public String[] getInterfaces() {\n return m_classBuilder.getInterfaces();\n }", "public String getInterface () throws SDLIPException {\r\n XMLObject theInterface = new sdlip.xml.dom.XMLObject();\r\n tm.getInterface(theInterface);\r...
[ "0.7540152", "0.72947776", "0.6895522", "0.6886105", "0.6761022", "0.663334", "0.6632624", "0.6626296", "0.66059333", "0.66027755", "0.6599621", "0.65290755", "0.64904994", "0.64846", "0.6416797", "0.64119923", "0.6402859", "0.63868487", "0.6378044", "0.63746846", "0.6341938"...
0.7978594
0
Returns the value of the 'Address' attribute. If the meaning of the 'Address' attribute isn't clear, there really should be more of a description here...
String getAddress();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ADDRESS$2);\n if (target == null)\n ...
[ "0.83543324", "0.82756966", "0.82383156", "0.81912583", "0.81908864", "0.81687266", "0.81687266", "0.8166901", "0.8166249", "0.8164207", "0.8160345", "0.81462157", "0.81462157", "0.8124747", "0.8124747", "0.8124747", "0.8124747", "0.8124747", "0.8124747", "0.8124747", "0.8116...
0.0
-1
Returns the value of the 'Context Path' attribute. If the meaning of the 'Context Path' attribute isn't clear, there really should be more of a description here...
String getContextPath();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getContextPath() {\n\t\treturn contextPath;\n\t}", "String getContextPath() {\n return contextPath;\n }", "public Optional<URI> getContextPath() {\r\n return contextPath;\r\n }", "public String getContextPath() {\n return FxJsfUtils.getRequest().getContex...
[ "0.79435", "0.79045653", "0.75611657", "0.74293447", "0.7226819", "0.6985997", "0.68204325", "0.6817931", "0.67869705", "0.67869705", "0.6634698", "0.6609327", "0.6599963", "0.6580872", "0.656078", "0.65353674", "0.65322465", "0.6526366", "0.6526366", "0.6526366", "0.65172935...
0.79789764
1
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
public Cluster(Cluster source) { if (source.ClusterId != null) { this.ClusterId = new String(source.ClusterId); } if (source.ClusterName != null) { this.ClusterName = new String(source.ClusterName); } if (source.ClusterType != null) { this.Clus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void set(String key, Object value);", "void set(K key, V value);", "public setKeyValue_args(setKeyValue_args other) {\n if (other.isSetKey()) {\n this.key = other.key;\n }\n if (other.isSetValue()) {\n this.value = other.value;\n }\n }", "public abstract void set(String k...
[ "0.64358455", "0.64111704", "0.6142922", "0.6113573", "0.60908157", "0.6078401", "0.6037452", "0.59892595", "0.597106", "0.59530747", "0.58373713", "0.5823492", "0.578706", "0.5702128", "0.5701049", "0.5686973", "0.5684959", "0.567453", "0.56046826", "0.5586644", "0.55775315"...
0.0
-1
Internal implementation, normal users should not use it.
public void toMap(HashMap<String, String> map, String prefix) { this.setParamSimple(map, prefix + "ClusterId", this.ClusterId); this.setParamSimple(map, prefix + "ClusterName", this.ClusterName); this.setParamSimple(map, prefix + "ClusterType", this.ClusterType); this.setParamSimple(map,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n public ...
[ "0.6257156", "0.62170005", "0.60238534", "0.5981897", "0.59656274", "0.59329456", "0.5919234", "0.5833841", "0.5780514", "0.57748276", "0.57748276", "0.57748276", "0.57748276", "0.57748276", "0.57748276", "0.57733566", "0.5704653", "0.57001686", "0.5651146", "0.5648291", "0.5...
0.0
-1
TODO Autogenerated method stub
@SuppressWarnings("unchecked") @Override public String getAirportPositionById(String str) { Session session = HibernateUtils.getSessionFactory().openSession(); Transaction trans = session.beginTransaction(); Query query = session .createQuery("from Airport where airportId...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public String getAirportNameById(String str) { Session session = HibernateUtils.getSessionFactory().openSession(); Transaction trans = session.beginTransaction(); Query query = session .createQuery("from Airport where airportId = :airportId"); query.setParam...
{ "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
Registers an event handler for the specific event type
public void registerNewEventHandler(Plugin cauldron, Class<? extends Event> type, Value handler) throws ClassNotFoundException { Listener lis = new Listener() { public int hashCode() { return super.hashCode(); } }; EventExecutor exec = (listener, event) -> { if (event.isAsync...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <E extends Event> void addHandler(Event.Type<E> ec, EventHandlerI<E> l);", "ISubscription addEventHandler(EventType type, IEventHandler<DetectionEvent> handler);", "public void addEventHandler(final EventTypes event,\n\t\t\tfinal Class<? extends IEventHandler> eventHandler) {\n\t\tEventCommandData event...
[ "0.7334088", "0.73156285", "0.6904079", "0.68422174", "0.6751612", "0.6696277", "0.6691335", "0.6609758", "0.65024555", "0.6488621", "0.63312995", "0.61567515", "0.6151605", "0.60851693", "0.6000691", "0.598", "0.58259916", "0.5803216", "0.5788794", "0.5787825", "0.57661176",...
0.66639245
7
Creates a command bound to Cauldron
public Command createCommand(String name, final Value handler) { return new Command(name) { public boolean execute(CommandSender sender, String commandLabel, String[] args) { return handler.execute(sender, commandLabel, args).asBoolean(); } }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Command createCommand();", "Commands createCommands();", "Command createCommandWith(CommandCreator creator);", "private CommandBrocker() {}", "IDbCommand createCommand();", "String createCommand(String commandType, AttributeList properties);", "CommandHandler() {\n registerArgument(new Challenge...
[ "0.6888261", "0.6803565", "0.659013", "0.6455739", "0.6239623", "0.6211158", "0.59116584", "0.5896465", "0.5823888", "0.5749943", "0.573229", "0.5722551", "0.57098144", "0.569852", "0.5680822", "0.56620395", "0.5627654", "0.56210023", "0.5616387", "0.56161296", "0.5597796", ...
0.5667555
15
/ constructor: initialize the list to be empty
@SuppressWarnings("unchecked") public List() { items = (T[]) new Object[INIT_LEN]; numItems = 0; currentObject = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List() {\n this.length = 0;\n }", "public List()\n\t{\n\t\tthis(null, null);\n\t}", "public List()\n {\n list = new Object [10];\n }", "public List() {\n this.list = new Object[MIN_CAPACITY];\n this.n = 0;\n }", "public MyArrayList ()\r\n {\r\n \tlist = new Obj...
[ "0.8135019", "0.78703207", "0.7844233", "0.7810462", "0.78028077", "0.77104926", "0.7544689", "0.75359267", "0.7530538", "0.7523663", "0.7519024", "0.74881387", "0.7482643", "0.7482643", "0.74569875", "0.74004626", "0.73953784", "0.7395374", "0.7392036", "0.73773664", "0.7358...
0.7775474
5
/ AddToEnd Given: Object obj Do: Add obj to the end of the list. If obj is null do nothing.
public void addToEnd(T obj) { // Check obj is not null if(obj == null) { return; } // Check if items is full if(numItems == items.length) { doubleArrayLength(); } items[numItems++] = obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean add (Object o) {return addLast(o);}", "public void appendToEnd(T data){\n\t Node end = new Node(data);\n\t Node current = this;\n\t \n\t while(current.next != null){\n\t current = current.next;\n\t }\n\t \n\t current.next = end;\n\t ...
[ "0.64722395", "0.63427156", "0.61927736", "0.61720157", "0.6139984", "0.61139905", "0.6054211", "0.5959471", "0.5896976", "0.5887132", "0.58830565", "0.584633", "0.5844537", "0.58181006", "0.57955205", "0.57930344", "0.5772044", "0.5764305", "0.5673963", "0.5657924", "0.56399...
0.6885813
0
/ toString A String form of the objects in the list in order, enclosed in square brackets, separated by spaces.
@Override public String toString() { StringBuilder result = new StringBuilder(); result.append('['); if(numItems > 0) { result.append(items[0].toString()); // We want number of spaces to be equal to numItems - 1 for(int i=1; i<numItems; i++) { result.append(' '); result.append(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n builder.append('[');\n for (Object item : list)\n {\n builder.append(item.toString());\n builder.append(\", \");\n }\n builder.append(']');\n return...
[ "0.8061515", "0.78390074", "0.7778812", "0.76607776", "0.76390904", "0.75550395", "0.75430626", "0.75343883", "0.7530906", "0.7507192", "0.7493093", "0.74247307", "0.7419558", "0.7406712", "0.7344175", "0.7333073", "0.731899", "0.7283578", "0.72442114", "0.72380495", "0.72184...
0.72089833
21
/ firstElement Makes the first object on the list be the current object.
public void firstElement() { currentObject = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object firstElement();", "public E getFirst() {\r\n\t\t// element checks to see if the list is empty\r\n\t\treturn element();\r\n\t}", "public Object getFirst() {\n\t\tcurrent = start;\n\t\treturn start == null ? null : start.item;\n\t}", "public Object getFirstObject()\n {\n \tcurrentObject = first...
[ "0.79875237", "0.75635", "0.75556844", "0.7514607", "0.7381717", "0.725809", "0.7211909", "0.72114193", "0.71695876", "0.71635854", "0.7100011", "0.70692587", "0.7034898", "0.70201564", "0.69901407", "0.6979629", "0.6907947", "0.68943155", "0.683377", "0.68120223", "0.6811467...
0.80479443
0
/ nextElement Returns the current object, and makes the next object on the list the current object.
public T nextElement() { return items[currentObject++]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object getNextElement()\n {\n return __m_NextElement;\n }", "public Object nextElement() {\n/* 75 */ return this.iterator.next();\n/* */ }", "Object getNextElement() throws NoSuchElementException;", "public ListElement<T> getNext()\n\t{\n\t\treturn next;\n\t}", "public...
[ "0.75181067", "0.73869663", "0.7375754", "0.7370017", "0.733473", "0.7181027", "0.7172447", "0.71529824", "0.7148827", "0.7086587", "0.7070929", "0.7062374", "0.7040612", "0.70388573", "0.7028349", "0.70274997", "0.6985394", "0.6960397", "0.6951841", "0.69326854", "0.69152373...
0.79374146
0
/ hasMoreElements Returns true if the list is not empty and the current object is not the last object on the list.
public boolean hasMoreElements() { if(numItems == 0 || currentObject == numItems) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean hasMoreElements() {\n\t\treturn it.hasNext();\r\n\t}", "public boolean hasMoreElements() {\n/* 64 */ return this.iterator.hasNext();\n/* */ }", "public boolean hasMore(){\r\n return curr != null;\r\n }", "@Override\n\t\tpublic boolean hasMoreElements() {\n\t\t...
[ "0.81406254", "0.81301093", "0.79440224", "0.793831", "0.7739796", "0.77115", "0.7630613", "0.7624478", "0.74115396", "0.7346267", "0.73140687", "0.72043973", "0.7189912", "0.7175808", "0.7140974", "0.70856935", "0.70329505", "0.70329505", "0.70328623", "0.7027316", "0.69621"...
0.88592154
0
/ / Constructors /
JannotTreeJCBinary(InfixExpression n) { super(n); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public CyanSus() {\n\n }", "public Pitonyak_09_02() {\r\n }", "private TMCourse() {\n\t}", "public _355() {\n\n }", "public CSSTidier() {\n\t}", "public PSRelation()\n {\n }", "public RngObject() {\n\t\t\n\t}", "pu...
[ "0.84202886", "0.78166115", "0.71776414", "0.7029142", "0.6997788", "0.6988559", "0.698599", "0.69655824", "0.6958574", "0.69455236", "0.69264483", "0.69235736", "0.69148237", "0.6909453", "0.6896481", "0.6896198", "0.6878102", "0.6870602", "0.68672794", "0.6842882", "0.68406...
0.0
-1
/ / Abstract Method Implementations /
@Override public void accept(JannotTreeVisitor v) { v.visitBinary(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "abstract void method();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()...
[ "0.66336036", "0.65604776", "0.649715", "0.64475095", "0.64453554", "0.64453554", "0.6441435", "0.6419717", "0.6419482", "0.63398373", "0.6317551", "0.6290359", "0.62806135", "0.62512374", "0.6236412", "0.6230343", "0.6219609", "0.6219609", "0.6205791", "0.62010574", "0.61911...
0.0
-1
/ / Tree methods /
@Override public JannotTreeJCExpression getLeftOperand() { return createTree(getNode().getLeftOperand()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TreeNode getTreeNode();", "void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}", "public interface TreeNode{\r\n\t\r\n\t// enumerated node types\r\n\tpublic ...
[ "0.7302421", "0.7034202", "0.69246453", "0.68567115", "0.68364215", "0.6813443", "0.6668018", "0.6616225", "0.66081846", "0.66070366", "0.6597597", "0.65939826", "0.6548285", "0.6526565", "0.651846", "0.65089303", "0.65009356", "0.6484884", "0.6450021", "0.64485973", "0.64403...
0.0
-1
/ / Helper methods /
private InfixExpression getNode() { return (InfixExpression) ast_node; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private void strin() {\n\n\t}", "private stendhal() {\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "private static void cajas() {\n\t\t\n\t}", "private void poetries() {\n\n\t}"...
[ "0.5495899", "0.5495899", "0.54505235", "0.54327035", "0.53954303", "0.53698415", "0.53669816", "0.53338206", "0.53307915", "0.5301819", "0.5288399", "0.52707165", "0.5270206", "0.5260756", "0.5258446", "0.5204558", "0.5204", "0.51774746", "0.51694417", "0.5161638", "0.515971...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view = inflater.inflate(R.layout.fragment_messages_, container, false); TextView textView = view.findViewById(R.id.textView2); name_to_send_massage = vi...
{ "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
Handle the back button event
@Override public void handleOnBackPressed() { Log.d("see", "onResume: lo"); singleton = Singleton.getInstance(); singleton.setGo_massage_from_find(null); Navigation.findNavController(view).navigate(R.id.action_messages_Fragment_to_host_Tabs_Fra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n\n // Let the system handle the back button\n\n super.onBackPressed();\n\n }", "protected void handleBack(ActionEvent event) {\n\t}", "@Override\n public void handleOnBackPressed() {\n ...
[ "0.8337994", "0.8194103", "0.81271106", "0.808649", "0.80496657", "0.80011594", "0.78838956", "0.78356946", "0.7828737", "0.7790448", "0.77704614", "0.77626246", "0.77581906", "0.7748852", "0.7741712", "0.77332", "0.77332", "0.7721944", "0.7714402", "0.77138805", "0.7684838",...
0.0
-1
User: boycook Date: 22/07/2011 Time: 12:06
public interface Sequence { public String getValue(); public void setCounter(long counter); public String getName(); public int getStartsWith(); public int getIncrementBy(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getUserTime() {\n\t\treturn this.userTime;\n\t}", "public String parseUser(String userLine) {\n final int START_OF_USER_NAME = 6;\n \t\tString userName = userLine.substring(\n START_OF_USER_NAME, userLine.indexOf(\"Date: \") - 1).trim();\n \n \t\treturn userName;\n \t}", "Date getAc...
[ "0.57813865", "0.57471895", "0.5709332", "0.5671571", "0.5657615", "0.55962235", "0.5583654", "0.55735296", "0.55192053", "0.54945385", "0.5488291", "0.5477989", "0.5465533", "0.5451361", "0.54185355", "0.54147136", "0.5386519", "0.5372921", "0.53631866", "0.53520685", "0.535...
0.0
-1
Build a DefaultMapperFactory adding the custom mappers and custom converters
@Bean public MapperFactory mapperFactory() { //1. Build the mapperFactory DefaultMapperFactory mapperFactory = new DefaultMapperFactory.Builder().build(); //2. Register all the configurable mappers mapperConfiguration.registerConfigurableMappers(mapperFactory); //3. Regist...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected MXBeanMappingFactory() {}", "public Mapper newInstance() {\n Mapper mapper;\n\n mapper = new Mapper(name, parser.newInstance(), oag.newInstance());\n mapper.setLogging(logParsing, logAttribution);\n return mapper;\n }", "protected StreamsJacksonMapper() {\n super();\...
[ "0.62387085", "0.5993585", "0.59823895", "0.57246864", "0.56916624", "0.5687191", "0.5682125", "0.56740695", "0.56542605", "0.56308764", "0.56077135", "0.5563986", "0.55480725", "0.5484531", "0.54743105", "0.5470093", "0.5447662", "0.53984815", "0.53832364", "0.53742385", "0....
0.7164698
0
TODO Autogenerated method stub
@Override public void onClick(View arg0) { onBackPressed(); }
{ "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 null to display only the icon
@Override public CharSequence getPageTitle(int position) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public Icon getIcon() {\n \t\treturn null;\n \t}", "java.lang.String getIcon();", "java.lang.String getIcon();", "String getIcon();", "String getIcon();", "public String getIconURL()\n {\n return null; \n }", ...
[ "0.7629684", "0.76227236", "0.7611493", "0.7611493", "0.759084", "0.759084", "0.7589096", "0.75661546", "0.7486013", "0.742283", "0.7392036", "0.733283", "0.7217935", "0.719177", "0.7189969", "0.71616197", "0.7155676", "0.7155676", "0.7098387", "0.7076893", "0.70399845", "0...
0.0
-1
Returns the value of the 'Stamp Type' attribute. If the meaning of the 'Stamp Type' attribute isn't clear, there really should be more of a description here...
Integer getStampType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getTimeStamp() {return attributes.getLongValue(TIMESTAMP,-1);}", "public String getTimeType() {\n\t\treturn timeType;\n\t}", "public String getType () { return getAttributeOrDefault(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_TYPE , \"\"); }", "public String getTsmesstype() {\n return tsmesstype;\...
[ "0.65812737", "0.6339347", "0.6263736", "0.6255475", "0.61536443", "0.6108797", "0.6105712", "0.6044294", "0.6001099", "0.59351647", "0.5911848", "0.5815773", "0.5797618", "0.5788006", "0.57875925", "0.57818604", "0.5777047", "0.57558185", "0.5750589", "0.5746271", "0.5746153...
0.8334995
0
Returns the value of the 'THun Year' attribute. If the meaning of the 'THun Year' attribute isn't clear, there really should be more of a description here...
Integer getTHunYear();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getYear() {\n return (String)getAttributeInternal(YEAR);\n }", "public double getYear() {\n return year;\n }", "public Integer getYear() {\r\n return year;\r\n }", "public Integer getYear() {\r\n return year;\r\n }", "public String getYear()\r\n {\r\...
[ "0.71795523", "0.7061784", "0.6997238", "0.6997238", "0.6980351", "0.6967493", "0.69467485", "0.69467485", "0.69467485", "0.693621", "0.69237924", "0.69163704", "0.69163704", "0.6910891", "0.6910891", "0.6908316", "0.6901829", "0.68963116", "0.688836", "0.6886392", "0.688308"...
0.84144574
0
Returns the value of the 'Ten Year' attribute. If the meaning of the 'Ten Year' attribute isn't clear, there really should be more of a description here...
Integer getTenYear();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getYear() {\n return (String)getAttributeInternal(YEAR);\n }", "public Integer getYear() {\r\n return year;\r\n }", "public Integer getYear() {\r\n return year;\r\n }", "public String getYear()\r\n {\r\n return year;\r\n }", "public double getYear() ...
[ "0.76069146", "0.7357145", "0.7357145", "0.73359776", "0.7311843", "0.7302423", "0.7302423", "0.7302423", "0.7289035", "0.72722447", "0.726274", "0.7262197", "0.7262197", "0.72604346", "0.7254371", "0.7246772", "0.7244682", "0.724195", "0.724195", "0.7241242", "0.7233352", ...
0.79798406
0
Returns the value of the 'Day' attribute. If the meaning of the 'Day' attribute isn't clear, there really should be more of a description here...
Integer getDay();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override public int getDayValue() {\n return day_;\n }", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "public io.dstore.values.StringValue getDay() {\n return day_ == null ? io.dstore.values.StringValue.getDefaultInstance() : day_;\n }", "public Stri...
[ "0.8199407", "0.8188726", "0.8153198", "0.8124914", "0.8106002", "0.81002045", "0.80256087", "0.80256087", "0.8013217", "0.7995672", "0.7952344", "0.79491484", "0.79491484", "0.79491484", "0.79452527", "0.7886769", "0.7858916", "0.785279", "0.7842514", "0.77803886", "0.774423...
0.75316834
44
Returns the value of the 'Hour' attribute. If the meaning of the 'Hour' attribute isn't clear, there really should be more of a description here...
Integer getHour();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getHour() {\n\t\treturn this.hour;\n\t}", "public Integer getHour() {\n\t\treturn hour;\n\t}", "public Integer getHour() {\n return hour;\n }", "public int getHour() { return this.hour; }", "public int getHour() {\n\t\treturn this.hour;\n\t}", "public int getHour()\n {\n re...
[ "0.8342952", "0.8321807", "0.8278231", "0.8213118", "0.813182", "0.8124529", "0.8117444", "0.8117444", "0.783336", "0.7820727", "0.76795584", "0.7676087", "0.749459", "0.7464746", "0.7464746", "0.73565507", "0.71663", "0.71288353", "0.70648557", "0.7058491", "0.7045106", "0...
0.7932447
8
Returns the value of the 'Minute' attribute. If the meaning of the 'Minute' attribute isn't clear, there really should be more of a description here...
Integer getMinute();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMinute() { return this.minute; }", "public int getMinute() {\n return minute;\n }", "public int getMinute()\n {\n return minute;\n }", "public int getMinute() {\n return minute;\n }", "public int getMinute() ...
[ "0.83084905", "0.8229831", "0.82111436", "0.8209852", "0.8197239", "0.81689733", "0.7908858", "0.76995546", "0.7609419", "0.7570572", "0.75704795", "0.75287586", "0.7513864", "0.7489377", "0.74388033", "0.7431715", "0.7351633", "0.7322196", "0.7255701", "0.69604015", "0.69352...
0.78989017
7
Returns the value of the 'Second' attribute. If the meaning of the 'Second' attribute isn't clear, there really should be more of a description here...
Integer getSecond();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSecond() {\n\t\treturn second;\n\t}", "public Integer getSecond(){\n return this.second;\n }", "public int getSecond() { return this.second; }", "public T2 getSecond() {\n\t\treturn second;\n\t}", "public V getSecond() {\r\n\t\treturn second;\r\n\t}", "@NotNull\n public S getSe...
[ "0.75665617", "0.7512969", "0.7434361", "0.73910224", "0.7378095", "0.73427165", "0.72570884", "0.71829444", "0.7161241", "0.69655925", "0.69655925", "0.6962972", "0.68857557", "0.6847174", "0.6814382", "0.67701507", "0.6723592", "0.671086", "0.671086", "0.671086", "0.671086"...
0.62485087
33
Returns the value of the 'Hund Sec' attribute. If the meaning of the 'Hund Sec' attribute isn't clear, there really should be more of a description here...
Integer getHundSec();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getHiddSec() {\r\n\t\treturn hiddSec;\r\n\t}", "public String getSupEntHlicense() {\n return supEntHlicense;\n }", "public int getMelhorSec() {\n return melhorSec;\n }", "public Double getHydrogenSulfide() {\n return hydrogenSulfide;\n }", "public double getHeardPer...
[ "0.6335581", "0.6332971", "0.62110585", "0.6036343", "0.58947355", "0.5806646", "0.58014953", "0.57664764", "0.5758083", "0.575511", "0.57216364", "0.57216364", "0.57176024", "0.5709681", "0.56427044", "0.5616915", "0.5602385", "0.5551732", "0.5524214", "0.5468462", "0.546358...
0.7249026
0
forgetting factor. If 1, then all the data has the same importance.
public RecursiveLSEEstimator(int numVar, double lambda_0) { lambda=lambda_0; P= new double [numVar][numVar]; theta= new double [numVar]; Pa= new double [numVar]; aP= new double [numVar]; reset(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void depreciate(){\r\n float amountN = getAmount();\r\n float reduce = amountN*(rate/100);\r\n amountN = amountN - reduce;\r\n this.amount = amountN;\r\n }", "void unsetFractionalMinimum();", "void unsetFractional();", "void unsetSingleBetMinimum();", "public void unav...
[ "0.5937192", "0.58285964", "0.57503927", "0.54536724", "0.5430654", "0.5416666", "0.5394624", "0.5381629", "0.5380174", "0.5376802", "0.53733414", "0.53539956", "0.53468543", "0.5312519", "0.52983373", "0.5271823", "0.52360207", "0.52104855", "0.5197838", "0.5171074", "0.5164...
0.0
-1
TODO Autogenerated method stub
@Override public void completed(HttpResponse message) { super.completed(message); if (message.getEntity().getContentType().getValue().equals("image/jpeg")) { try { ByteArrayOutputStream output = new ByteArrayOutputStream(); ImageIO.write(ImageIO.read(message.getEntity().getContent()), "jpeg", outpu...
{ "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
Draws the background layer of this container (behind the items).
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) { super.drawGuiContainerBackgroundLayer(partialTicks, mouseX, mouseY); GlStateManager.color(1, 1, 1,1 ); this.mc.getTextureManager().bindTexture(getTexture()); this.drawTexturedModalRect(xBase, yBase, 0, 0, xSize, contai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)\n {\n GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n this.mc.getTextureManager().bindTexture(CHEST_GUI_TEXTURE);\n int i = (this.width - this.xSize) / 2;\n int j = (this.height ...
[ "0.71153784", "0.6907148", "0.6862267", "0.6818413", "0.6784361", "0.6738025", "0.6688239", "0.6580941", "0.6572398", "0.6520437", "0.6494337", "0.6485932", "0.6463409", "0.64442855", "0.6412809", "0.638752", "0.6364504", "0.6307509", "0.6302303", "0.62835485", "0.62526655", ...
0.7075678
1
Waits until all parties have invoked await on this barrier. If the current thread is not the last to arrive, then it is disabled for thread scheduling purposes and lies dormant until the last thread arrives. Returns: the arrival index of the current thread, where index (parties 1) indicates the first to arrive and zero...
int await() throws InterruptedException { numAcquiredSemaphore.acquire(); // grab my result index int result = numAcquired; // increment the index for the next guy to read numAcquired++; // let others read shared var numAcquiredSemaphore.release(); // we'll use an IF here because we're going t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void waitUntilAllThreadsAreFinished() {\n int index = 1;\n\n while (true) {\n while (index <= noThread) {\n if (carry[index] == -1) {\n index = 1;\n } else {\n index++;\n }\n }\n ...
[ "0.58027494", "0.57411546", "0.54488134", "0.54202753", "0.5393406", "0.5379368", "0.5335302", "0.5294661", "0.52140063", "0.5181709", "0.5164566", "0.5131796", "0.5122517", "0.5091846", "0.5029309", "0.5028819", "0.5026113", "0.50218475", "0.49773186", "0.49204347", "0.49078...
0.68672585
0
/ Exercise 1. Prompt the user to enter an integer. Is it positive, negative, or zero?
public void sign() { System.out.print("Enter an integer: "); int int1 = in.nextInt(); if (int1 > 0) { System.out.println("\nPositive.\n"); } else if (int1 < 0) { System.out.println("\nNegative.\n"); } else { System.out.println("\nZero.\n"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void determineIsPositiveInt() {\n System.out.println(\"Enter a number:\");\r\n Scanner s = new Scanner(System.in);\r\n int i = Integer.parseInt(s.nextLine());\r\n if (i > 0)\r\n System.out.println(\"Positive i\");\r\n else if (i == 0)\r\n Syst...
[ "0.78417546", "0.746469", "0.71204185", "0.711663", "0.6967819", "0.69658464", "0.6932903", "0.6905121", "0.6847381", "0.6832721", "0.67802465", "0.6778299", "0.6751301", "0.6697388", "0.6680782", "0.6622935", "0.6544049", "0.64967054", "0.6489652", "0.6481165", "0.6472506", ...
0.6832623
10
/ Exercise 2. Prompt the user to enter an integer. Is it even or odd?
public void parity() { System.out.print("Enter an integer: "); int int2 = in.nextInt(); if ((int2 % 2) == 0) { System.out.println("\nEven.\n"); } else { System.out.println("\nOdd.\n"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\r\n // create a scanner for user input \n Scanner input = new Scanner(System.in);\r\n \n //prompt user for their number\n System.out.println(\"Enter your number\"); \n //intialize user's number\n int number = input.nextInt();\n //intialize the remain...
[ "0.7902334", "0.77040386", "0.7663426", "0.7611336", "0.75332725", "0.7123508", "0.7039013", "0.7024465", "0.67869467", "0.66790926", "0.6645873", "0.6629061", "0.65705806", "0.6563144", "0.6518919", "0.64342105", "0.6422722", "0.6387473", "0.6361879", "0.63289034", "0.631236...
0.7306481
5
/ Exercise 3. Prompt the user to enter three integers. How are the integers ordered?
public void ordered() { System.out.println("Enter 3 integers:\n"); System.out.print("Enter integer: "); int int3_1 = in.nextInt(); System.out.print("Enter integer: "); int int3_2 = in.nextInt(); System.out.print("Enter integer: "); int int3_3 = in.nextInt(); if ((int3_2 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int c = 0;\n int p = 0;\n int prev = 0;\n while (n-- > 0) {\n int a = scanner.nextInt();\n if (p == 0 ) {\n p = 1;\n ...
[ "0.6392798", "0.6378759", "0.6361192", "0.63333166", "0.62400264", "0.60631424", "0.6021088", "0.5930733", "0.59135824", "0.5903607", "0.5885656", "0.5828642", "0.5813338", "0.58087015", "0.5806966", "0.5792902", "0.57924587", "0.5776615", "0.576784", "0.57566273", "0.5749706...
0.7645671
0
/ Exercise 4. Prompt the user to enter a letter grade. What's the corresponding GPA?
public void gpa() { System.out.print("Enter a letter grade: "); in.nextLine(); String letterGrade = in.nextLine().toUpperCase(); final double A_VALUE = 4.0; final double B_VALUE = 3.0; final double C_VALUE = 2.0; final double D_VALUE = 1.0; final double F_VALUE = 0.0; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void gpaConverter() {\r\n\t\tdouble numGPA = this.getNumGrade();\r\n\t\ttry {\r\n\t\t\tif (numGPA >= 4.0) {\r\n\t\t\t\tthis.letterGrade = \"A\"; }\r\n\t\t\tif (3.7 <= numGPA && numGPA < 4.0) {\r\n\t\t\t\tthis.letterGrade = \"A-\"; \r\n\t\t\t}\r\n\t\t\tif (3.3 <= numGPA && numGPA < 3.7) {\r\n\t\t\t\tthis.let...
[ "0.8049972", "0.7734891", "0.7568155", "0.7430889", "0.7351057", "0.72673374", "0.7150287", "0.70295656", "0.70142126", "0.6991768", "0.6915006", "0.69093806", "0.6854925", "0.67826664", "0.67721075", "0.6757781", "0.67380095", "0.6707857", "0.6656366", "0.6650671", "0.662261...
0.7905173
1
/ Exercise 5. Prompt the user to enter a grade. What's the corresponding letter grade?
public void grade() { System.out.print("\nEnter a grade: "); double numberGrade = in.nextDouble(); final double A_MAX = 100; final double A_MIN = 90; final double B_MIN = 80; final double C_MIN = 70; final double D_MIN = 60; final double F_MIN = 0; if (numberGrade >...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Scanner in = new Scanner (System.in);\n System.out.print(\"Enter your final average [0-100]: \");\n double finalGrade;\n finalGrade = in.nextDouble();\n Grade finalLetter;\n if(finalGrade >= Grade.A.Min())\n {\n ...
[ "0.75720966", "0.74071145", "0.74043536", "0.7261029", "0.71557695", "0.71498513", "0.7094681", "0.709105", "0.70786726", "0.70403755", "0.70258385", "0.70180744", "0.69221884", "0.6912146", "0.6893161", "0.6877093", "0.6870826", "0.67968386", "0.6785263", "0.6778912", "0.673...
0.78867805
0
/ Exercise 6. Prompt the user to enter a playing card. What card was entered?
public void cards() { System.out.print("Enter a card: "); in.nextLine(); String cardName = in.nextLine().toUpperCase(); String cardSuit = cardName.substring(1); String cardRank = cardName.substring(0, 1); switch (cardRank) { case "2": cardRank = "Two"; br...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cardsAssociated(){\n Scanner input = new Scanner(System.in);\n \n System.out.print(\"Enter associated card: \");\n cardAssociated = input.nextLine();\n \n System.out.println(\"Associated card: \" + cardAssociated);\n \n \n }", "public Card ta...
[ "0.73428535", "0.68759143", "0.67863", "0.6773688", "0.6739267", "0.67167956", "0.6673799", "0.66089046", "0.65351427", "0.6504256", "0.6465998", "0.6461175", "0.63885075", "0.6381653", "0.6342887", "0.6329644", "0.63256156", "0.6324594", "0.6317383", "0.62642854", "0.6242389...
0.7156319
1
/ Exercise 7. Prompt the user to enter a year. Is it a leap year or not?
public void leapYear() { System.out.print("\nEnter a year: "); long year = in.nextLong(); if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) { System.out.println("\n" + year + " is a leap year.\n"); } else { System.out.println("\n" + year + " is not a leap year.\n"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n\n //take input from user and store into year variable\n System.out.printf(\"Enter a year: \");\n int year = input.nextInt();\n\n /*\n Condition:\n The year is evenly divisible by 4;...
[ "0.8101271", "0.7610281", "0.7596703", "0.754323", "0.74924296", "0.74653375", "0.7443177", "0.73512137", "0.7313036", "0.7293954", "0.7284324", "0.7247188", "0.72377735", "0.7223042", "0.72143483", "0.72124463", "0.7205313", "0.71643454", "0.71278983", "0.71247524", "0.71042...
0.8786367
0
/ Exercise 8. Prompt the user to enter a temperature. At that temperature, is water a solid, liquid, or gas?
public void state() { System.out.print("Enter a temperature: "); double temp = in.nextDouble(); System.out.print("Enter a scale: "); in.nextLine(); String scale = in.nextLine().toUpperCase(); if (scale.equals("F") || scale.equals("f")) { if (temp <= 32) { System.ou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Scanner keyboard = new Scanner (System.in);\r\n\r\n double userTemp;\r\n double convertedTemperature;\r\n String input;\r\n String degreesIn;\r\n\r\n System.out.println (\" Please enter the temperature:\");\r\n input = keyb...
[ "0.67922765", "0.6575516", "0.6428781", "0.63646996", "0.62558395", "0.6227267", "0.6220055", "0.59641445", "0.5951357", "0.593618", "0.58802265", "0.58771026", "0.5861308", "0.58487886", "0.5838937", "0.5833615", "0.5819008", "0.5815763", "0.5800934", "0.5777397", "0.5775478...
0.7060903
0
/ Exercise 9. Prompt the user to enter a month. How many days are in that month?
public void months() { System.out.print("Enter a month: "); String userMonth = in.nextLine(); userMonth = userMonth.toUpperCase(); //28 or 29 days. 30 days. 31 days. That's not a valid month. switch (userMonth) { case "JANUARY": case "JANU": case "JAN"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int numDaysInMonth(int month){\r\n switch (month) {\r\n case 1:\r\n case 3:\r\n case 5:\r\n case 7:\r\n case 9:\r\n case 11:\r\n return 31;\r\n case 2:\r\n return 29;\r\n\r\n default:\r\n return 30\r\n }\r\n}", "public abstract int daysInMonth(DMYcount DMYco...
[ "0.73653483", "0.7217885", "0.7134746", "0.7085535", "0.702709", "0.69620514", "0.6926418", "0.6917139", "0.68740207", "0.6816243", "0.6797021", "0.67834216", "0.67704195", "0.6749753", "0.6739257", "0.6713503", "0.668074", "0.66177243", "0.6612168", "0.65328443", "0.6487301"...
0.72172856
2
/ Exercise 10. Prompt the user to enter a wage and hours worked. How much money will be made?
public void salary() { System.out.print("Wage: "); double wage = in.nextDouble(); System.out.print("Hours: "); double hours = in.nextDouble(); final double REG_HOURS = 40; final double OVERTIME_MULTIPLIER = 0.5; double salary = wage * hours; if (hours > REG_HOURS) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n \n String emp1, emp2,emp3;\n int hours1, hours2, hours3;\n int xhours1, xhours2, xhours3;\n double rate1, rate2, rate3;\n double gross1, gross2, gross3;\n \n System.ou...
[ "0.7003609", "0.6624735", "0.6606264", "0.649069", "0.6432762", "0.633355", "0.632608", "0.629769", "0.6270881", "0.6230554", "0.6195816", "0.6176806", "0.61355484", "0.61252755", "0.6112118", "0.6110445", "0.6097169", "0.6071811", "0.60622174", "0.60573936", "0.6055451", "...
0.7672937
0
An iterator over VCFVariants which also makes VCFHeaders available.
public interface VCFIterator extends Iterator<VCFVariant> { public VCFHeaders getHeaders(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<VariantDto> getAllVariants() {\n return variantRepository.findAll()\n .stream()\n .map(q -> mapper.toDto(q))\n .collect(Collectors.toList());\n }", "public QueryResult<Variant> getAllVariants(QueryOptions options);", "public abstract ConnectorR...
[ "0.57123154", "0.5692758", "0.5560251", "0.52736664", "0.5245579", "0.52125996", "0.52125996", "0.51817316", "0.5175948", "0.51649284", "0.5149065", "0.5133358", "0.5130104", "0.49408752", "0.49249434", "0.48181126", "0.47919255", "0.47160843", "0.46720058", "0.4668895", "0.4...
0.69470614
0
/ Access modifiers changed, original: protected
public void onDraw(Canvas canvas) { float min = (float) (Math.min(getWidth(), getHeight()) / 2); canvas.drawCircle(min, min, min - RippleBackground.this.b, RippleBackground.this.j); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic ...
[ "0.73623323", "0.69830847", "0.68941706", "0.6798817", "0.67315143", "0.67264825", "0.67049384", "0.6551554", "0.65256643", "0.65247214", "0.64783233", "0.6459452", "0.644003", "0.6434508", "0.641292", "0.64095944", "0.64055127", "0.64055127", "0.6402614", "0.64020926", "0.63...
0.0
-1
TODO Autogenerated method stub
@Override public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { getday = dayOfMonth; getmonth = monthOfYear; getyear = year; Calendar datecheck = Calendar.getInstance(); datecheck.set(getyear, getmonth, getday); Long timeinms = datecheck.getTimeInMillis(); /* switch(vi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
/ created by Brighty on 281017
@Repository public interface ClinicRepository extends JpaRepository<Clinic, Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo38117a() {\n }", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void mo4359a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", ...
[ "0.603297", "0.60162973", "0.5943651", "0.58800423", "0.5845104", "0.5845104", "0.5845104", "0.5845104", "0.5845104", "0.5845104", "0.5845104", "0.5819837", "0.58052444", "0.58031213", "0.5798562", "0.5792338", "0.57850224", "0.57833475", "0.5717718", "0.57032067", "0.5693775...
0.0
-1
Created by lsitec101.macedo on 14/11/17.
public interface RecipeRetroFit { @GET("baking.json") Call<ArrayList<RecipeModel>> getRecipe(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public void mo38117a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic voi...
[ "0.60174173", "0.5976352", "0.5940995", "0.59096706", "0.5890398", "0.58793503", "0.5788414", "0.5787848", "0.5771144", "0.5763739", "0.5755798", "0.574378", "0.57297796", "0.5708966", "0.5703112", "0.569665", "0.569665", "0.56547755", "0.5649236", "0.56283724", "0.5627138", ...
0.0
-1
=========================================================== Protected methods ===========================================================
protected void showProgress(int messageId) { showProgress(getString(messageId)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n...
[ "0.68114126", "0.6756549", "0.664282", "0.6590812", "0.65757006", "0.65738726", "0.65492475", "0.6441215", "0.6441215", "0.64312524", "0.6386468", "0.6386468", "0.6386468", "0.6386468", "0.6386468", "0.6386468", "0.6386226", "0.63793564", "0.63667405", "0.6308338", "0.6307305...
0.0
-1
TODO Autogenerated method stub
public Object doDecode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) { buffer.readBytes(buffer.readShort()); HeartBeat heart = new HeartBeat(); return heart; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void customize(ConfigurableEmbeddedServletContainer container) { container.setPort(8888); }
{ "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
Constructor de la clase
public ControladorOperaciones(VistaOperaciones vOperaciones) { this.vOperaciones = vOperaciones; vOperaciones.onClickDulces(this); vOperaciones.onClickChoco(this); vOperaciones.onClickGalleta(this); vOperaciones.onClickRefresco(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Pasien() {\r\n }", "public CyanSus() {\n\n }", "public Clade() {}", "public Carrera(){\n }", "public Classe() {\r\n }", "public Chauffeur() {\r\n\t}", "public AntrianPasien() {\r\n\r\n }", "public SlanjePoruk...
[ "0.8376671", "0.82482725", "0.7757712", "0.76491547", "0.764287", "0.75641066", "0.7557304", "0.7555219", "0.75255686", "0.7461729", "0.74616057", "0.7438721", "0.74067116", "0.7393601", "0.73794305", "0.737154", "0.73671997", "0.7337879", "0.7337316", "0.73341864", "0.731324...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); t2 = new javax.swing.JTextField(); jLabel3 = new javax...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7321233", "0.72922724", "0.72922724", "0.72922724", "0.7287021", "0.7250113", "0.7214902", "0.7209478", "0.71973455", "0.71915394", "0.71855843", "0.71602577", "0.7149222", "0.70949143", "0.70813066", "0.70579875", "0.6988272", "0.6978623", "0.6956488", "0.6954857", "0.694...
0.0
-1
returns average value. returns 0 if array is empty
public static double getAverage(double[] array) { double sum = Σ(array); if (sum == 0 || array.length == 0) return 0; return sum / array.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double average()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tdouble sum = this.sum();\n\t\t\treturn sum / arraySize;\n\t\t}\n\t\tSystem.out.println(\"Syntax error, array is empty.\");\n\t\treturn -1;\n\t}", "double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleVa...
[ "0.8401848", "0.8237351", "0.8196971", "0.81934744", "0.80404586", "0.8020634", "0.7961049", "0.791715", "0.78611374", "0.7847555", "0.7846641", "0.7811943", "0.7782861", "0.7777054", "0.7760567", "0.77514523", "0.7709053", "0.77054954", "0.7697835", "0.76331", "0.7631641", ...
0.78378
11
returns average value. returns 0 if array is empty
public static double getAverage(double[][] array) { int count = 0; List<Double> lineSumList = new ArrayList<Double>(); for( int i = 0; i < array.length; i++ ) { double lineSum = Σ(array[i]); lineSumList.add(lineSum); count += array[i].length; } double sum = Σ(lineSumList); if (sum ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double average()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tdouble sum = this.sum();\n\t\t\treturn sum / arraySize;\n\t\t}\n\t\tSystem.out.println(\"Syntax error, array is empty.\");\n\t\treturn -1;\n\t}", "double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleVa...
[ "0.84046483", "0.82413137", "0.81990427", "0.8196133", "0.80450284", "0.802301", "0.79653513", "0.7917567", "0.7860286", "0.7849407", "0.7847813", "0.7836976", "0.7814389", "0.778475", "0.77799934", "0.7762002", "0.7751666", "0.7712366", "0.77053213", "0.7634748", "0.76334643...
0.7697677
19
returns average value. returns 0 if array is empty
public static double getAverage(Number[] array) { double sum = Σ(array); if (sum == 0 || array.length == 0) return 0; return sum / array.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double average()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tdouble sum = this.sum();\n\t\t\treturn sum / arraySize;\n\t\t}\n\t\tSystem.out.println(\"Syntax error, array is empty.\");\n\t\treturn -1;\n\t}", "double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleVa...
[ "0.84046483", "0.82413137", "0.81990427", "0.8196133", "0.80450284", "0.802301", "0.79653513", "0.7917567", "0.7849407", "0.7847813", "0.7836976", "0.7814389", "0.778475", "0.77799934", "0.7762002", "0.7751666", "0.7712366", "0.77053213", "0.7697677", "0.7634748", "0.76334643...
0.7860286
8
scales each value in array by specified scale value. The absolutely max value in array should be scale or scale
public static void scaling(double[] array, double scale) { double absMax = getMax(array); double min = getMin(array); if (absMax < Math.abs(min)) absMax = Math.abs(min); if (absMax == 0) return; double ratio = scale / absMax; for (int i = 0; i < array.length; i++) array[i] = array[i] *...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void scale(double factor);", "void setMaxScale(int value);", "public double[] normalize( double[] data, double scale )\n {\n double min = Double.MAX_VALUE;\n double max = Double.MIN_VALUE;\n double[] result = new double[ data.length ];\n\n // First, need to find the min value in...
[ "0.71900094", "0.70704675", "0.70321655", "0.698219", "0.69070655", "0.6833394", "0.6742299", "0.67233324", "0.67218095", "0.6659612", "0.6649103", "0.6648291", "0.6646138", "0.6631476", "0.6574271", "0.6514674", "0.6500572", "0.6474935", "0.64385355", "0.6432828", "0.6415928...
0.8140549
0
scales each value in array by specified scale value. The absolutely max value in array should be bottom to top
public static void scaling(double[] array, double bottom, double top) { double max = getMax(array); double min = getMin(array); if (bottom > top) // swap { double tmp = bottom; bottom = top; top = tmp; } for (int i = 0; i < array.length; i++) array[i] = bottom + ((array[i] - min) /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void scaling(double[] array, double scale)\r\n\t{\r\n\t\tdouble absMax = getMax(array);\r\n\t\tdouble min = getMin(array);\r\n\t\tif (absMax < Math.abs(min))\r\n\t\t\tabsMax = Math.abs(min);\r\n\t\tif (absMax == 0)\r\n\t\t\treturn;\r\n\t\tdouble ratio = scale / absMax;\r\n\r\n\t\tfor (int i = 0; i < ...
[ "0.7510187", "0.6790662", "0.67564565", "0.6737033", "0.6696532", "0.6499257", "0.63998586", "0.62520576", "0.6174434", "0.6144605", "0.6139243", "0.6120446", "0.6099349", "0.6099121", "0.606737", "0.6051387", "0.6034694", "0.60289866", "0.60215706", "0.5980623", "0.59196997"...
0.67513126
3
for all element of $array, adds $value
public static void plusScalar(double[] array, double value) { for (int i = 0; i < array.length; i++) array[i] = array[i] + value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int addValue(int[] array) {\n int val = hashCode();\n for (int i : array) {\n val = addValue(i);\n }\n return val;\n }", "public int addValue(Object[] array) {\n int val = hashCode();\n for (Object obj : array) {\n val = addValue(obj);\n ...
[ "0.71484274", "0.7063001", "0.70085216", "0.6849019", "0.67400175", "0.6646903", "0.66139066", "0.658105", "0.654421", "0.6444065", "0.6373268", "0.6107233", "0.60909194", "0.6053936", "0.6032013", "0.60011333", "0.59701186", "0.59685814", "0.5933313", "0.5923996", "0.5885678...
0.6906948
3
for all element of $array, multiples $value
public static void multipleScalar(double[] array, double value) { for (int i = 0; i < array.length; i++) array[i] = array[i] * value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int addValue(double[] array) {\n int val = hashCode();\n for (double f : array) {\n val = addValue(f);\n }\n return val;\n }", "static double calculateArraySum(double... value) {\n double sum = 0;\n for (double i : value) {\n sum += i;\n ...
[ "0.56121963", "0.5493142", "0.54722375", "0.5467275", "0.5370511", "0.5346295", "0.5342119", "0.5272002", "0.5228519", "0.5227376", "0.5225029", "0.52139974", "0.51324177", "0.51144993", "0.5101252", "0.5098559", "0.5060612", "0.498892", "0.4968065", "0.49586338", "0.49540958...
0.6861405
0
return maximum value in array
public static double getMax(double[] array) { double max = Double.NEGATIVE_INFINITY; for (int i = 0; i < array.length; i++) if (max < array[i]) max = array[i]; return max; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double max(){\r\n\t\t//variable for max val\r\n\t\tdouble max = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the maximum is less than the current index, change max to that value\r\n\t\t\tif (max < this.data[i]){\r\n\t\t\t\tmax = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n...
[ "0.82490534", "0.8228375", "0.807588", "0.8038314", "0.80315953", "0.7926241", "0.7900648", "0.7879413", "0.78583276", "0.78168356", "0.7798895", "0.7761219", "0.7757344", "0.7745867", "0.7740962", "0.773457", "0.77322686", "0.77091444", "0.7675456", "0.7673759", "0.76348686"...
0.75508183
27
return maximum value in array
public static double getMax(double[][] matrix) { double max = Double.NEGATIVE_INFINITY; for (int i = 0; i < matrix.length; i++) { for (int j = 0; j < matrix[i].length; j++) { if (max < matrix[i][j]) max = matrix[i][j]; } } return max; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double max(){\r\n\t\t//variable for max val\r\n\t\tdouble max = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the maximum is less than the current index, change max to that value\r\n\t\t\tif (max < this.data[i]){\r\n\t\t\t\tmax = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n...
[ "0.8249785", "0.8229027", "0.8077011", "0.80387753", "0.8031675", "0.79267585", "0.7900906", "0.7879896", "0.7858726", "0.7817852", "0.7799405", "0.7761282", "0.7757423", "0.774626", "0.77415955", "0.77351964", "0.7732226", "0.7709731", "0.7675282", "0.7674228", "0.7635189", ...
0.0
-1
return index of maximum value in array
public static int getMaxIndex(double[] array) { double max = Double.NEGATIVE_INFINITY; int maxIndex = 0; for (int i = 0; i < array.length; i++) if (max < array[i]) { max = array[i]; maxIndex = i; } return maxIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getIndexOfMax(double[] array){\n\n int largest = 0;\n for ( int i = 1; i < array.length; i++ )\n {\n if ( array[i] > array[largest] ) largest = i;\n }\n return largest;\n\n }", "private int maxIndex(int[] values){\n int curMaxIndex = 0;\n ...
[ "0.8491328", "0.8191792", "0.8074583", "0.7982504", "0.7862536", "0.785015", "0.7734283", "0.7668454", "0.76619464", "0.76464134", "0.7639457", "0.7633786", "0.7618259", "0.75976264", "0.7591709", "0.75806844", "0.75755584", "0.7567648", "0.75409913", "0.75250435", "0.752162"...
0.81650126
2