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 |
|---|---|---|---|---|---|---|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | @Override
public Collection<Curso> findByNameCurso(String Name) throws Exception {
Collection<Curso> retValue = new ArrayList();
Connection c = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
c = DBUtils.getConnection();
pstmt = c.pre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.77442753",
"0.73745763",
"0.6965507",
"0.6908429",
"0.6797187",
"0.67738247",
"0.6770793",
"0.6653347",
"0.66378933",
"0.66238236",
"0.6608154",
"0.6608154",
"0.65922153",
"0.6585848",
"0.6554524",
"0.64987206",
"0.6461772",
"0.64494187",
"0.6428624",
"0.64187545",
"0.6382... | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | @Override
public boolean containsId(int Id) {
try {
Entity retValue = null;
Connection c = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
c = DBUtils.getConnection();
pstmt = c.prepareStatement("SELECT * FROM curso where ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.77443457",
"0.7373967",
"0.6966467",
"0.69094384",
"0.67967474",
"0.6772981",
"0.6770611",
"0.66534495",
"0.6639043",
"0.66233534",
"0.6609316",
"0.6609316",
"0.6591667",
"0.65871775",
"0.65558785",
"0.6499027",
"0.64613366",
"0.64500856",
"0.6429774",
"0.6419923",
"0.6382... | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | @Override
public boolean containsNameCurso(String Curso) {
try {
Curso curso = (Curso) this.findByNameCurso(Curso);
if(Curso.equals(curso.getNombre())){
return true;
} ;
} catch (Exception ex) {
//Exception Handler
}
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.77442753",
"0.73745763",
"0.6965507",
"0.6908429",
"0.6797187",
"0.67738247",
"0.6770793",
"0.6653347",
"0.66378933",
"0.66238236",
"0.6608154",
"0.6608154",
"0.65922153",
"0.6585848",
"0.6554524",
"0.64987206",
"0.6461772",
"0.64494187",
"0.6428624",
"0.64187545",
"0.6382... | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | @Override
public boolean containsNameProfesor(String Name) {
try {
Entity retValue = null;
Connection c = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
c = DBUtils.getConnection();
pstmt = c.prepareStatement("SELECT * F... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.77442753",
"0.73745763",
"0.6965507",
"0.6908429",
"0.6797187",
"0.67738247",
"0.6770793",
"0.6653347",
"0.66378933",
"0.66238236",
"0.6608154",
"0.6608154",
"0.65922153",
"0.6585848",
"0.6554524",
"0.64987206",
"0.6461772",
"0.64494187",
"0.6428624",
"0.64187545",
"0.6382... | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | @Override
public void add(Curso entity) {
Connection c = null;
PreparedStatement pstmt = null;
try {
c = DBUtils.getConnection();
pstmt = c.prepareStatement("INSERT INTO curso (nombrecurso, idprofesor, claveprofesor, clavealumno) values (?, ?, ?, ?)");
p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.77442753",
"0.73745763",
"0.6965507",
"0.6908429",
"0.6797187",
"0.67738247",
"0.6770793",
"0.6653347",
"0.66378933",
"0.66238236",
"0.6608154",
"0.6608154",
"0.65922153",
"0.6585848",
"0.6554524",
"0.64987206",
"0.6461772",
"0.64494187",
"0.6428624",
"0.64187545",
"0.6382... | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | @Override
public void remove(Integer id) {
Connection c = null;
PreparedStatement pstmt = null;
try {
c = DBUtils.getConnection();
pstmt = c.prepareStatement("DELETE FROM curso WHERE idcurso = ?");
pstmt.setInt(1, id);
pstmt.executeUpdate();... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.77443457",
"0.7373967",
"0.6966467",
"0.69094384",
"0.67967474",
"0.6772981",
"0.6770611",
"0.66534495",
"0.6639043",
"0.66233534",
"0.6609316",
"0.6609316",
"0.6591667",
"0.65871775",
"0.65558785",
"0.6499027",
"0.64613366",
"0.64500856",
"0.6429774",
"0.6419923",
"0.6382... | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | @Override
public void update(Curso entity) {
Connection c = null;
PreparedStatement pstmt = null;
try {
c = DBUtils.getConnection();
pstmt = c.prepareStatement("UPDATE curso SET idprofesor = ?, nombrecurso = ?, claveprofesor = ?, clavealumno = ? WHERE idcurso = ?");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.77442753",
"0.73745763",
"0.6965507",
"0.6908429",
"0.6797187",
"0.67738247",
"0.6770793",
"0.6653347",
"0.66378933",
"0.66238236",
"0.6608154",
"0.6608154",
"0.65922153",
"0.6585848",
"0.6554524",
"0.64987206",
"0.6461772",
"0.64494187",
"0.6428624",
"0.64187545",
"0.6382... | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | @Override
public Collection<Curso> getAll() {
Collection<Curso> retValue = new ArrayList();
Connection c = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
c = DBUtils.getConnection();
pstmt = c.prepareStatement("SELECT c.idcurso, c.i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.77442753",
"0.73745763",
"0.6965507",
"0.6908429",
"0.6797187",
"0.67738247",
"0.6770793",
"0.6653347",
"0.66378933",
"0.66238236",
"0.6608154",
"0.6608154",
"0.65922153",
"0.6585848",
"0.6554524",
"0.64987206",
"0.6461772",
"0.64494187",
"0.6428624",
"0.64187545",
"0.6382... | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | @Override
public Curso findByIdCurso(int id) throws Exception {
Curso retValue = null;
Connection c = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
c = DBUtils.getConnection();
pstmt = c.prepareStatement("SELECT c.idcurso, c.idprofes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.77442753",
"0.73745763",
"0.6965507",
"0.6908429",
"0.6797187",
"0.67738247",
"0.6770793",
"0.6653347",
"0.66378933",
"0.66238236",
"0.6608154",
"0.6608154",
"0.65922153",
"0.6585848",
"0.6554524",
"0.64987206",
"0.6461772",
"0.64494187",
"0.6428624",
"0.64187545",
"0.6382... | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | @Override
public int cantAlumnos(String curso) throws Exception {
Connection c = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
int cantAlumnos = 0;
try {
c = DBUtils.getConnection();
pstmt = c.prepareStatement("select count(a.id) as cant f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.77443457",
"0.7373967",
"0.6966467",
"0.69094384",
"0.67967474",
"0.6772981",
"0.6770611",
"0.66534495",
"0.6639043",
"0.66233534",
"0.6609316",
"0.6609316",
"0.6591667",
"0.65871775",
"0.65558785",
"0.6499027",
"0.64613366",
"0.64500856",
"0.6429774",
"0.6419923",
"0.6382... | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | @Override
public int cantAlumnosXidCurso(int curso) throws Exception {
Connection c = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
int cantAlumnos = 0;
try {
c = DBUtils.getConnection();
pstmt = c.prepareStatement("select count(a.id) as c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.77442753",
"0.73745763",
"0.6965507",
"0.6908429",
"0.6797187",
"0.67738247",
"0.6770793",
"0.6653347",
"0.66378933",
"0.66238236",
"0.6608154",
"0.6608154",
"0.65922153",
"0.6585848",
"0.6554524",
"0.64987206",
"0.6461772",
"0.64494187",
"0.6428624",
"0.64187545",
"0.6382... | 0.0 | -1 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | @Override
public Collection<resumenSemestre> resumenSemestre(int idCurso, int mesApertura, int mesCierre) throws Exception {
Collection<resumenSemestre> retValue = new ArrayList();
Connection c = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
c =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}... | [
"0.77442753",
"0.73745763",
"0.6965507",
"0.6908429",
"0.6797187",
"0.67738247",
"0.6770793",
"0.6653347",
"0.66378933",
"0.66238236",
"0.6608154",
"0.6608154",
"0.65922153",
"0.6585848",
"0.6554524",
"0.64987206",
"0.6461772",
"0.64494187",
"0.6428624",
"0.64187545",
"0.6382... | 0.0 | -1 |
TODO Autogenerated method stub | @SuppressWarnings("unchecked")
@Override
@Transactional
public ArrayList<ApplicationUserRole> getAllRoles() throws Exception {
ArrayList<ApplicationUserRole> roleList = null;
try {
Session session = sessionFactory.getCurrentSession();
Query query = session.createQuery("from ApplicationUserRole");
roleL... | {
"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
@Transactional
public String addOrUpdateRole(ApplicationUserRole applicationUserRoleBean) {
String ex=null;
try
{
Session session = sessionFactory.getCurrentSession();
session.merge(applicationUserRoleBean);
}
catch(HibernateException e)
{
e.printStackTrace();
}
return ex;
} | {
"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 |
onClick for BACK option | public void backtoMain()
{
Intent i=new Intent(this,MainActivity.class);
startActivity(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onGoBackButtonClick();",
"@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}",
"public void goBack() {\n goBackBtn();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonBackPressed();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonBackPressed();\n\t\t... | [
"0.81905246",
"0.8058654",
"0.80311954",
"0.8006809",
"0.8006809",
"0.8006809",
"0.80029404",
"0.7952653",
"0.7952526",
"0.79485434",
"0.79403377",
"0.79366",
"0.78969544",
"0.7896719",
"0.7888217",
"0.78251815",
"0.7806822",
"0.7805415",
"0.77962023",
"0.7790364",
"0.7773653... | 0.0 | -1 |
To Choose the output value of DKnob | public int choisirAffichageValeur(SigneAffichage sa, DKnob sld){
int val;
int pas=ts.getEntInter();
if(sa.equals(SigneAffichage.negatif)){
val=(int)((pas*2) * sld.getValue())-pas;
ts.setNombreDeTrait(pas*2);
}else if(sa.equals(SigneAffichage.positif)){
val=(int)((pas) * sld.getValue());
ts.setNom... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDO(int index, int value) {\n\t\tmIKar07Lib.setDigitalOutput(index, value);\n\t}",
"private void PIDDrive(double output){\n if(!manual){\n \tif (top_limitSwitch.get() == false && (output<0)){\n \t\televMotor.pidWrite(0);\n \t\tcurrentStep = 4;\n \t}\n \tels... | [
"0.59708804",
"0.5961661",
"0.5957772",
"0.5806473",
"0.5806473",
"0.5774547",
"0.57534176",
"0.56822526",
"0.5625849",
"0.56238306",
"0.5609856",
"0.56084013",
"0.5579565",
"0.55588394",
"0.5522016",
"0.55109334",
"0.55000883",
"0.54916996",
"0.54643327",
"0.5460568",
"0.543... | 0.0 | -1 |
TODO pourquoi cela engendre une erreur ? Toast.makeText(this, "WRONG ANSWER!", Toast.LENGTH_SHORT).show(); | @Override
public void onClick(View v) {
String url = "https://club-omnisports-des-ulis.assoconnect.com/billetterie/offre/146926-a-adhesion-karate-2020-2021";
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(url));
startActivity(i);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"UnusedParameters\")\n private void openWrongAnswer(@SuppressWarnings(\"UnusedParameters\") View view) {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(MainActivity.this);\n alertDialogBuilder.setTitle(\"INCORRECT ANSWER\");\n alertDialogBuilder.setMes... | [
"0.7111581",
"0.7092634",
"0.7014837",
"0.6980618",
"0.6887127",
"0.6774242",
"0.6647867",
"0.65926075",
"0.6563203",
"0.6552553",
"0.65450954",
"0.65294516",
"0.65231454",
"0.64403975",
"0.64228886",
"0.6357057",
"0.63430303",
"0.6332161",
"0.632474",
"0.63080204",
"0.629446... | 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_main, 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.7246451",
"0.7201833",
"0.7195169",
"0.7176824",
"0.71071094",
"0.7039687",
"0.70379424",
"0.7011622",
"0.70095545",
"0.69799995",
"0.6945173",
"0.69389343",
"0.6933555",
"0.69172555",
"0.69172555",
"0.68906796",
"0.688355",
"0.687496",
"0.6874772",
"0.68613136",
"0.686131... | 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();
switch (item.getItemId()){
case R.id.action_settings:
startActivity(new Intent(this,SettingsActivity.class));
break;
case R.id.action_search:
... | {
"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 |
Compares to days and returns the difference in the first value that is different starting from day > hour > minute. Is used to check if the second time is within the next day and to measure the difference of times. Other MUST be the greater day in order to handle going from Sunday to Monday. ex. originalTime.compareTo(... | public int compareTo(Time other) {
// if both times have a date, return the difference if there is one, else
// continue with standard comparison
if (this.date != null && other.date != null) {
if (this.date.compareTo(other.date) != 0) {
return this.date.compareTo(other.date);
}
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected int compareTime(Date first, Date second) {\n\t\treturn first.compareTo(second);\n\t}",
"private int sameDateCompare(Deadline other) {\n if (!this.hasTime() && other.hasTime()) {\n return -1;\n } else if (this.hasTime() && !other.hasTime()) {\n return 1;\n } el... | [
"0.6641294",
"0.63598984",
"0.6188271",
"0.6029386",
"0.6007323",
"0.5943239",
"0.59247327",
"0.5894559",
"0.5878421",
"0.5785165",
"0.57614064",
"0.5691455",
"0.5592859",
"0.5558029",
"0.5519357",
"0.5508608",
"0.55074805",
"0.54724455",
"0.5436398",
"0.53720665",
"0.5350563... | 0.77310956 | 0 |
Returns value of date | public LocalDate getDate() {
return this.date;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Date getDate();",
"Date getDate();",
"Date getDate();",
"public java.util.Date getValue() {\n return this.value;\n }",
"public String Get_date() \n {\n \n return date;\n }",
"java.lang.String getDate();",
"String getDate();",
"String getDate();",
"public final Date dateValue... | [
"0.77154934",
"0.77154934",
"0.77154934",
"0.758669",
"0.7418569",
"0.73691404",
"0.7350037",
"0.7350037",
"0.7337949",
"0.73032343",
"0.7294657",
"0.729324",
"0.729324",
"0.72304255",
"0.71639913",
"0.71233994",
"0.70856726",
"0.70700926",
"0.70231724",
"0.70231724",
"0.6997... | 0.0 | -1 |
Returns value of day | public int getDay() {
return this.day;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer getDay();",
"@java.lang.Override public int getDayValue() {\n return day_;\n }",
"@java.lang.Override public int getDayValue() {\n return day_;\n }",
"io.dstore.values.TimestampValue getDay();",
"public int getDay()\n {\n return day;\n }",
"public int getDay() {\r\n re... | [
"0.7703517",
"0.7619068",
"0.7612617",
"0.74303216",
"0.7366842",
"0.7302915",
"0.72836494",
"0.72330236",
"0.7188198",
"0.7176261",
"0.71518964",
"0.7076442",
"0.70754576",
"0.70377696",
"0.7035885",
"0.7035885",
"0.7035885",
"0.7035885",
"0.7035885",
"0.69888014",
"0.698053... | 0.68498856 | 33 |
Returns value of hour | public int getHour() {
return this.hour;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer getHour();",
"public int getHour()\n {\n return hour;\n }",
"public int getHour() { return this.hour; }",
"public int getHour() \n { \n return hour; \n }",
"public Integer getHour() {\n return hour;\n }",
"Integer getStartHour();",
"public double getHour() {\n\t\tret... | [
"0.8526235",
"0.8096326",
"0.79681075",
"0.7946046",
"0.79192895",
"0.78852826",
"0.7879227",
"0.7861208",
"0.7839138",
"0.7786073",
"0.7779137",
"0.7779137",
"0.7717212",
"0.7550141",
"0.7450477",
"0.73981476",
"0.73873025",
"0.7325455",
"0.73076135",
"0.7285622",
"0.7284919... | 0.7685178 | 13 |
Returns value of minute | public int getMinute() {
return this.minute;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer getMinute();",
"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() { return this.minute; }",
... | [
"0.8432913",
"0.8220267",
"0.82194746",
"0.8208407",
"0.81881243",
"0.7917632",
"0.79104954",
"0.7690177",
"0.761984",
"0.7581677",
"0.747282",
"0.7373096",
"0.73335505",
"0.73245335",
"0.73159367",
"0.72970194",
"0.729479",
"0.72390944",
"0.7231989",
"0.72256213",
"0.7204126... | 0.78290325 | 7 |
Sets new value of date | public void setDate(LocalDate date) {
this.date = date;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setDate(Date data);",
"public void setValue(java.util.Date value) {\n this.value = value;\n }",
"public void SetDate(Date date);",
"@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\... | [
"0.8374569",
"0.8066164",
"0.8052985",
"0.7668812",
"0.7595603",
"0.75379854",
"0.7533389",
"0.75242406",
"0.7523191",
"0.7477651",
"0.7469257",
"0.7464658",
"0.7454969",
"0.7454969",
"0.7454969",
"0.74484575",
"0.7446039",
"0.7446039",
"0.7446039",
"0.7446039",
"0.7446039",
... | 0.0 | -1 |
Sets new value of day | public void setDay(int day) {
this.day = day;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day) {\r\n this.day = day;\r\n }",
"public void setDay(Date day... | [
"0.7448509",
"0.7448509",
"0.7448509",
"0.7448509",
"0.7448509",
"0.7387934",
"0.73325866",
"0.7303752",
"0.72569835",
"0.72040766",
"0.71901697",
"0.71901697",
"0.71901697",
"0.7183511",
"0.7171456",
"0.70335954",
"0.6994333",
"0.6979366",
"0.6979103",
"0.697014",
"0.6943338... | 0.70201313 | 16 |
Sets new value of hour | public void setHour(int hour) {
this.hour = hour;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHour(Pair<Double, Double> value) {\r\n\t\thour = value;\r\n\t}",
"public void setHour(int newHour) {\n hour = newHour; // sets the appointment's hour to the input in military time\n }",
"public void setHour(int nHour) { m_nTimeHour = nHour; }",
"public void setHour(int hour)\n {\n ... | [
"0.8037714",
"0.78229177",
"0.76715016",
"0.7615237",
"0.7594638",
"0.74451244",
"0.7390777",
"0.7342483",
"0.7294107",
"0.72424567",
"0.71679425",
"0.711898",
"0.71169466",
"0.70791703",
"0.70356613",
"0.70175344",
"0.69967115",
"0.6995775",
"0.69940645",
"0.69636256",
"0.69... | 0.728357 | 9 |
Sets new value of minute | public void setMinute(int minute) {
this.minute = minute;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMinute(int value) {\n this.minute = value;\n }",
"public void setMinute(int value) {\n this.minute = value;\n }",
"public void setMinute(int minute)\n {\n this.minute = minute;\n }",
"public Time4 setMinute( i... | [
"0.8396857",
"0.83577734",
"0.782914",
"0.77473164",
"0.7666828",
"0.7642078",
"0.725997",
"0.72007275",
"0.70306903",
"0.7016869",
"0.70031625",
"0.6997947",
"0.6937338",
"0.68982065",
"0.6870712",
"0.6862794",
"0.68532264",
"0.68218607",
"0.6811469",
"0.6804104",
"0.6774086... | 0.75297344 | 6 |
heading is in DEGREES TODO Make an Enum to specify units (DEGREES, RADIANS, STRAIGHT, RIGHT, ETC.) | public Pose() {
x = 0;
y = 0;
heading = 90;
originalHeading = 90;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"float getHeading();",
"float getHeading();",
"float getHeading();",
"public static double getHeading(double heading) {\n double newHeading;\n if (heading >=0.0 && heading < 90.0)\n newHeading = -1.0;\n else if (heading >= 90.0 && heading < 180.0)\n newHeading = -0.3... | [
"0.7018102",
"0.7018102",
"0.7018102",
"0.6669876",
"0.6645381",
"0.6487939",
"0.6484133",
"0.62860537",
"0.62860537",
"0.6256835",
"0.6222133",
"0.6122461",
"0.6122461",
"0.61069256",
"0.6061555",
"0.6049833",
"0.5907962",
"0.5892087",
"0.58785254",
"0.581684",
"0.58034736",... | 0.0 | -1 |
Determine the safe temperature to cook the meat at | public void setTemperatureNeededToCookAt(double t) {
temp = t;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double GetMashTemperature() {\n\t\treturn msc.GetMashTemperature();\n\t}",
"static int calcCoolingTime(int temperature, int amount) {\n // the time in melting reipes assumes updating 5 times a second\n // we update 20 times a second, so get roughly a quart of those values\n return IMeltingRecipe.... | [
"0.6981907",
"0.6510981",
"0.6452902",
"0.63965166",
"0.6381603",
"0.6381517",
"0.6301702",
"0.6291674",
"0.6233554",
"0.61957365",
"0.6187263",
"0.6178402",
"0.60796416",
"0.6065215",
"0.604229",
"0.6028819",
"0.601069",
"0.60025364",
"0.60005444",
"0.59887785",
"0.5955262",... | 0.6547842 | 1 |
/ Servico que faz um delete logico na entidade ItemRetirada | public void deleteLogico(Long itemRetiradaId) {
ItemRetirada itemRetirada = this.repository.findById(itemRetiradaId).get();
this.itemService.atualizaEstoque(itemRetirada, Servico.ENTRADA);
this.repository.deleteLogico(itemRetiradaId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void deleteItem(Object toDelete) {}",
"@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}",
"public abstract boolean delete(Log log) throws DataException;",
"@Override\n\tpublic Item delete() {\n\t\treadAll();\n\t\tLOGGER.info(\"\\n\");\n\t\t//user can select either to delete a... | [
"0.70666236",
"0.69546837",
"0.6950299",
"0.6868034",
"0.68215406",
"0.6812205",
"0.67653143",
"0.67561686",
"0.6697838",
"0.6677535",
"0.6664929",
"0.65911585",
"0.65751845",
"0.65511185",
"0.6523369",
"0.6491416",
"0.6489318",
"0.64868426",
"0.64615196",
"0.64491665",
"0.64... | 0.7639893 | 0 |
36: invokevirtual 38 // Method myMethod1:(Ljava/lang/Integer;Ljava/lang/Double;Ljava/lang/String;Lmethod/analyzer/ParentClass;IDFC)V | public List<Method> getInvokedMethods(List<String> byteCodeLines) {
byteCodeLines = trimByteCodeLines(byteCodeLines);
List<Method> invokedMethods = new ArrayList<Method>();
String methodIdentifierKeyword = "// Method";
for (String line : byteCodeLines) {
if (line.contains(methodIdentifierKeyword)
&&... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void myMethod2() {\n\t\t\n\t}",
"@Override\n\tpublic void javaMethodBaseWithTwoParams(long longParam, double doubleParam) {\n\t\t\n\t}",
"public class_1036 method_2126(class_689 param1, double param2, double param4, double param6, float param8, boolean param9, boolean param10) {\r\n //... | [
"0.6376166",
"0.63528514",
"0.6199845",
"0.6103591",
"0.6102073",
"0.6060484",
"0.59904623",
"0.5982039",
"0.59593683",
"0.5947416",
"0.592381",
"0.5922406",
"0.5880623",
"0.58612686",
"0.5842817",
"0.5819024",
"0.5812513",
"0.57790196",
"0.57752436",
"0.57603854",
"0.5732669... | 0.0 | -1 |
output the value of available, maximum, allocation, and need | public void getState(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String getMaxUsage();",
"private void cmdInfoProg() {\n long total = Runtime.getRuntime().totalMemory();\n long free = Runtime.getRuntime().freeMemory();\n NumberFormat nf = NumberFormat.getInstance();\n Log.println(\"(mem: \"\n + NumberFormat.getPercent... | [
"0.65452415",
"0.63880825",
"0.6266721",
"0.62633127",
"0.61961",
"0.603995",
"0.6009172",
"0.5967984",
"0.59283197",
"0.5927236",
"0.5895346",
"0.58882105",
"0.58685756",
"0.584302",
"0.5839423",
"0.58100533",
"0.580401",
"0.5797698",
"0.573201",
"0.5727939",
"0.57239133",
... | 0.0 | -1 |
The main is called when the class is directly executed from the command line. | public static void main(String[] args) {
BatchTestRunner.run(GetObjectByIdNoValidationInstanceNotInDatastore.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main()\n\t{\n\t}",
"public static void main() {\n }",
"public static void main() {\n \n }",
"public static void main(){\n\t}",
"public Main() {\n\t\tsuper();\n\t}",
"public Main() {}",
"public static void main(String[] args) {}",
"public static void main(String[] args)... | [
"0.82405615",
"0.8141903",
"0.80236",
"0.79468924",
"0.78564095",
"0.7839792",
"0.7814834",
"0.7814834",
"0.78084373",
"0.7773009",
"0.776184",
"0.77419174",
"0.77407646",
"0.7726362",
"0.77198267",
"0.7686448",
"0.7686448",
"0.76680124",
"0.76680124",
"0.7667554",
"0.7665601... | 0.0 | -1 |
method 1 extra space o(n) and time o(n) | private static void missRepeat1(int[] a) {
int miss = -1;
int repeat = -1;
int[] b = new int[a.length];
for(int x : a) {
if(b[x-1] != 0) {
repeat = x;
}
b[x-1]++;
}
for(int i=0; i<b.length; i++) {
if(b[i]==0) {
miss = i+1;
break;
}
}
System.out.println(repeat + " " + mis... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }",
"@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.curren... | [
"0.6337833",
"0.62423337",
"0.6169822",
"0.5828919",
"0.5818344",
"0.5790775",
"0.5753473",
"0.5618844",
"0.5449486",
"0.5439291",
"0.542995",
"0.54262495",
"0.5371234",
"0.53521556",
"0.53339696",
"0.5322248",
"0.5302593",
"0.5292838",
"0.5277412",
"0.5270034",
"0.5267193",
... | 0.0 | -1 |
method 2 extra space o(1) and time o(n) | private static void missRepeat2(int[] a) {
int miss = -1;
int repeat = -1;
for(int x : a) {
if(a[Math.abs(x)-1] > 0) {
a[Math.abs(x)-1] = - a[Math.abs(x)-1];
}
else if (a[Math.abs(x)-1] < 0){
repeat = Math.abs(x);
}
}
for(int i=0; i<a.length; i++) {
if(a[i]>0) {
miss = i+1;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }",
"public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n ... | [
"0.66411436",
"0.64639163",
"0.6164798",
"0.6011568",
"0.59822357",
"0.5708563",
"0.5708227",
"0.5645393",
"0.55679286",
"0.54936206",
"0.5453294",
"0.5408978",
"0.5394527",
"0.5360224",
"0.5357854",
"0.53478575",
"0.5345907",
"0.5344003",
"0.5318471",
"0.5316722",
"0.5308674... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void run() {
IndexServer is = new IndexServer(3002,"/src/P2Pfile/Peer2/filefolder" );
System.out.println("Peer2Server Start");
is.ConnectionAccept();
} | {
"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 int Add_Friend(String username,Object friend) {
if(friend!=null && friend instanceof valueobject.Friend){
DAO.all_interface friendDao = DB.ObjectFactory.getFriendDao();
User one = DB.ObjectFactory.getUserObject();
one.setName(username);
int userid = this.GetKey(one);
Friend frd = (Friend)fr... | {
"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 int Delete_Friend(Object key) {
DAO.all_interface friendDao = DB.ObjectFactory.getFriendDao();
int i = friendDao.Delete(key);
if(i == friendDao.OPERATE_SUCCESS){
return this.OPERATE_OK;
}else if(i==friendDao.OPERATE_ERROR){
return this.OPERATE_ERROR;
}else{
return this.OTHER_ERROR;
}... | {
"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 int Delete_User(String name) {
return 0;
} | {
"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<Friend> Get_All_Friends(String username) {
return this.Get_Friends_By_Query(username, "");
} | {
"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<Friend> Get_Friends_By_Query(String username,String queryName) {
String sql_where = "userid in (select userid from user where name='"+username+"')";
if(queryName!=null&&queryName.length()>0)
sql_where = sql_where+" and name like '%"+queryName+"%'";
List<Friend> result = new LinkedList();
List... | {
"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 int Update_User(String name, String oldPassword, String newPassword) {
return 0;
} | {
"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 |
Interface that enables IHE Actors to write stuff to the MESA test log, when appropriate. | public interface IMesaLogger {
/**
* Writes a text string to the MESA log
*
* @param message The text string to display
*/
public void writeString(String message);
/**
* Writes a SOAP message to the MESA log
*
* @param message The SOAP message to display
*/
public void writeSoapMessage(SOAPMessa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface TestReporterAppender {\n\n void logMessage(String sMessage, boolean bError);\n\n void logMessage(String sMessage, Throwable t);\n\n void init();\n\n void traceExecution(CommandRequest cRequest, OpResult rResult);\n\n void traceExecution(HttpOpRequest request);\n}",
"@Override\n p... | [
"0.629585",
"0.60143363",
"0.59299874",
"0.58979017",
"0.58073425",
"0.58073425",
"0.58073425",
"0.5806224",
"0.580325",
"0.57714057",
"0.5769922",
"0.5763016",
"0.5753879",
"0.5747951",
"0.57306767",
"0.57242805",
"0.5680526",
"0.5669924",
"0.56263876",
"0.56037235",
"0.5590... | 0.630191 | 0 |
Writes a text string to the MESA log | public void writeString(String message); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void log(String text) {\r\n open();\r\n if (mCurrentFileStream != null) {\r\n try {\r\n mCurrentFileStream.write((text + \"\\r\\n\").getBytes());\r\n mCurrentFileStream.flush();\r\n } catch (IOException e) {\r\n Log.e(LOG_TAG, ... | [
"0.7341987",
"0.7312364",
"0.7183276",
"0.7132122",
"0.71305084",
"0.7056477",
"0.6840403",
"0.6816011",
"0.67731744",
"0.67684317",
"0.67334",
"0.66485304",
"0.66485226",
"0.6619251",
"0.6610486",
"0.65324277",
"0.64806116",
"0.64239824",
"0.6368429",
"0.6351072",
"0.6311134... | 0.6600334 | 15 |
Writes a SOAP message to the MESA log | public void writeSoapMessage(SOAPMessage message); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void writeTo(OutputStream out)\n throws SOAPException, IOException;",
"public void LoggerService(String Code) {\n\n\t\tSoapObject soapResult = null;\n\t\tSoapSerializationEnvelope envelope = null;\n\t\tHttpTransportSE androidHttpTransport = null;\n\n\t\ttry {\n\n\t\t\tSoapObject request = ... | [
"0.59146786",
"0.5834862",
"0.5721179",
"0.5719315",
"0.5719315",
"0.5719315",
"0.5679898",
"0.5420353",
"0.54099184",
"0.53489745",
"0.53140795",
"0.52031296",
"0.519511",
"0.5180897",
"0.51772976",
"0.5171082",
"0.51165044",
"0.50823396",
"0.5051093",
"0.50507957",
"0.50485... | 0.757193 | 0 |
Writes out an Axiom OMElement message to the logger. | public void writeAxiomElementMessage(OMElement message); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"private void write(String msg)\r\n {\r\n System.out.println(msg);\r\n if (report_ != null) {\r\n report_.write(msg);\r\n }\r\n }",
"private void log(String msg) {\r... | [
"0.6051882",
"0.6051882",
"0.6051882",
"0.59328556",
"0.5875262",
"0.5874003",
"0.5849145",
"0.5797664",
"0.5738066",
"0.5729208",
"0.5720983",
"0.56980395",
"0.5658284",
"0.5653406",
"0.56495166",
"0.56456065",
"0.563499",
"0.554461",
"0.5538534",
"0.55298007",
"0.5511963",
... | 0.7179352 | 0 |
Writes an HL7 message to the MESA log | public void writeHL7Message(Message message); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"@Override\n\tpublic ReturnCode loggerWrite(byte[] buffer, int len) {\n\t\t\n\t\tSystem.out.println(new String(buffer));\n\t\treturn InstaMsg.ReturnCode.SUCCESS;\n\t}",
"private void write(String msg)\r\... | [
"0.57188016",
"0.57188016",
"0.57188016",
"0.5519719",
"0.5463746",
"0.54396194",
"0.53776807",
"0.53401893",
"0.53246063",
"0.5290816",
"0.5286417",
"0.5269029",
"0.52636206",
"0.5235417",
"0.52193063",
"0.5202988",
"0.51813763",
"0.5174775",
"0.514719",
"0.513735",
"0.51166... | 0.78193134 | 0 |
~ Methods implement FarragoSessionExecutableStmt | public ResultSet execute(FarragoSessionRuntimeContext runtimeContext)
{
try {
runtimeContext.setStatementClassLoader(stmtClassLoader);
if (xmiFennelPlan != null) {
runtimeContext.loadFennelPlan(xmiFennelPlan);
}
// NOTE jvs 1-May-2004: This s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void execute() {}",
"abstract protected void execute();",
"protected void execute() {\n\t\t\n\t}",
"abstract void exec();",
"protected abstract void execute();",
"public void execute() {\n\t\t\n\t}",
"public void execute(){\n\t\t\n\t}",
"@Override\n public void execute() {}",
"@Override\... | [
"0.62572587",
"0.61271465",
"0.61243075",
"0.6096992",
"0.60805386",
"0.6059745",
"0.60558",
"0.6036736",
"0.60334677",
"0.6013294",
"0.5999603",
"0.59799176",
"0.5978044",
"0.5978044",
"0.5978044",
"0.59267855",
"0.5897225",
"0.58904046",
"0.58761406",
"0.5850047",
"0.585004... | 0.0 | -1 |
Create a new bit output stream based on an existing Java OutputStream. | public NonBlockingBitOutputStream (@Nonnull final OutputStream aOS, @Nonnull final ByteOrder aByteOrder)
{
ValueEnforcer.notNull (aOS, "OutputStream");
ValueEnforcer.notNull (aByteOrder, "ByteOrder");
m_aOS = aOS;
m_bHighOrderBitFirst = aByteOrder.equals (ByteOrder.LITTLE_ENDIAN);
m_nBufferedBitC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }",
"public OutputStream createOutputStream() throws IOException {\n/* 213 */ return this.stream.createOutputStream();\n/* */ }",
"public OutputStream getO... | [
"0.62750983",
"0.6183617",
"0.58654326",
"0.58355904",
"0.5797282",
"0.57931346",
"0.5776477",
"0.57709897",
"0.5741643",
"0.5694345",
"0.56625324",
"0.55820936",
"0.5570396",
"0.54730207",
"0.54729724",
"0.54708534",
"0.5372276",
"0.5352622",
"0.53444433",
"0.5335462",
"0.53... | 0.51176995 | 35 |
Write a single bit to the stream. It will only be flushed to the underlying OutputStream when a byte has been completed or when flush() manually. | public void writeBit (final int aBit) throws IOException
{
if (m_aOS == null)
throw new IllegalStateException ("BitOutputStream is already closed");
if (aBit != CGlobal.BIT_NOT_SET && aBit != CGlobal.BIT_SET)
throw new IllegalArgumentException (aBit + " is not a bit");
if (aBit == CGlobal.BIT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void writeBit(int bit) throws IOException;",
"public void writeBit(int bit) {\n if (bit < 0 || bit > 1)\n throw new IllegalArgumentException(\"Illegal bit: \" + bit);\n digits += bit << numDigits;\n numDigits++;\n if (numDigits == this.byteSize) {\n flush();\n ... | [
"0.7382214",
"0.68624103",
"0.6381648",
"0.6281653",
"0.6206935",
"0.6183738",
"0.61550736",
"0.6113436",
"0.6103282",
"0.60918415",
"0.6088055",
"0.6070716",
"0.59693754",
"0.59231037",
"0.5895445",
"0.58921397",
"0.58835495",
"0.58519536",
"0.5828566",
"0.5793284",
"0.57636... | 0.73036 | 1 |
Write the specified number of bits from the int value to the stream. Corresponding to the InputStream, the bits are written starting at the highest bit ( >> aNumberOfBits ), going down to the lowest bit ( >> 0 ). | public void writeBits (final int aValue, @Nonnegative final int nNumBits) throws IOException
{
ValueEnforcer.isBetweenInclusive (nNumBits, "NumberOfBits", 1, CGlobal.BITS_PER_INT);
for (int i = nNumBits - 1; i >= 0; i--)
writeBit ((aValue >> i) & 1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void writeBits(long bits, int numBits) throws IOException;",
"static void encodeInt(DataOutput os, int i) throws IOException {\n if (i >> 28 != 0)\n os.write((i >> 28) & 0x7f);\n if (i >> 21 != 0)\n os.write((i >> 21) & 0x7f);\n if (i >> 14 != 0)\n os.write((... | [
"0.75539684",
"0.65938956",
"0.6479795",
"0.6440481",
"0.6436055",
"0.6388251",
"0.62809914",
"0.6249815",
"0.6180217",
"0.6176746",
"0.61518824",
"0.6136407",
"0.6042642",
"0.601091",
"0.59830916",
"0.59516233",
"0.5939045",
"0.5918052",
"0.5907059",
"0.589231",
"0.58569926"... | 0.7504852 | 1 |
Write the current cache to the stream and reset the buffer. | public void flush () throws IOException
{
if (m_nBufferedBitCount > 0)
{
if (m_nBufferedBitCount != CGlobal.BITS_PER_BYTE)
if (LOGGER.isDebugEnabled ())
LOGGER.debug ("Flushing BitOutputStream with only " + m_nBufferedBitCount + " bits");
m_aOS.write ((byte) m_nBuffer);
m_n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void flush() throws IOException {\n // nothing to do with cached bytes\n }",
"@Override\n public void write(OutputStream outputStream) throws IOException {\n try {\n final Stopwatch watch = new Stopwatch();\n IOUtils.copy(inputStream, outputStream);\n L... | [
"0.7185766",
"0.66448516",
"0.6196303",
"0.60597956",
"0.5956738",
"0.5956467",
"0.5927725",
"0.5879097",
"0.5830112",
"0.5695371",
"0.5652917",
"0.56518126",
"0.5637477",
"0.56295735",
"0.56115365",
"0.55749166",
"0.5557118",
"0.55533534",
"0.5540078",
"0.55305594",
"0.55273... | 0.535311 | 43 |
Flush the data and close the underlying output stream. | public void close ()
{
StreamHelper.flush (this);
StreamHelper.close (m_aOS);
m_aOS = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void close() {\n this.output.flush();\n this.output.close();\n }",
"public void close() {\n try { out.flush(); } catch (Exception e) {}; // just to be sure\n \n cleanup();\n }",
"public void flush() throws IOException\n {\n getStream().flush();\n ... | [
"0.7499195",
"0.7429289",
"0.72625047",
"0.7160761",
"0.7141077",
"0.7127868",
"0.7063722",
"0.7058587",
"0.7009032",
"0.69720453",
"0.6936616",
"0.6726618",
"0.6726618",
"0.6726618",
"0.6715964",
"0.6679421",
"0.66646886",
"0.6638646",
"0.6625574",
"0.66143566",
"0.6606098",... | 0.6856476 | 11 |
Checks if a given string is null, blank or empty and returns true if so. Mostly useful for LocalData strings because they can be unpredictable when not explicitly assigned a value. | public static boolean isBlankOrNullString(String s){
return s == null || s.isEmpty() || s.equalsIgnoreCase("");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static boolean isNullOrEmpty(String string) {\n return string == null || string.isEmpty();\n }",
"public static final boolean isBlank(final String string) {\n return Objects.isNull(string) || string.isEmpty();\n }",
"public static boolean isBlank(String str) {\n\t\tboolean flag = false;\n\t\tif (... | [
"0.79323953",
"0.7895362",
"0.78867465",
"0.78657144",
"0.78355724",
"0.7791323",
"0.7773504",
"0.7760261",
"0.7755227",
"0.7753756",
"0.7735256",
"0.7725751",
"0.7724159",
"0.77158666",
"0.7698668",
"0.76969206",
"0.7628927",
"0.7628927",
"0.7628927",
"0.7619387",
"0.7618386... | 0.80071306 | 0 |
called when the mod should be initialized | public void initialize(Game game); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void initModules()\n {\n\n }",
"public void init() {\r\n\r\n\t}",
"private void init() {\n\n\t}",
"private void init() {\n\n\n\n }",
"public void autonomousInit() {\n \n }",
"protected void _init(){}",
"private void init() {\n }",
"private void init() {\n }",
"priv... | [
"0.7788447",
"0.7701383",
"0.76790607",
"0.7666945",
"0.766515",
"0.7658357",
"0.76489204",
"0.76489204",
"0.76489204",
"0.76489204",
"0.763324",
"0.763324",
"0.763324",
"0.76122326",
"0.76122326",
"0.7597996",
"0.7590685",
"0.7590647",
"0.75902146",
"0.7585857",
"0.75835186"... | 0.0 | -1 |
called when the mod should be deinitialized | public void deinitialize(Game game); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deinit() {\n\t\tsafeLocationTask.cancel();\n\t\t//Deinit all remaining worlds\n\t\tworlds.values().forEach(WorldHandler::deinit);\n\t\t//Clear members\n\t\tworlds.clear();\n\t\toptions = null;\n\t}",
"public void unInit() {\n this.bdv = null;\n this.brz = null;\n }",
"public void unloaded... | [
"0.7635833",
"0.7244844",
"0.71360904",
"0.6962539",
"0.6949151",
"0.6945195",
"0.6820373",
"0.68159163",
"0.67155004",
"0.66619825",
"0.6545442",
"0.6490356",
"0.6463049",
"0.6455565",
"0.6440304",
"0.63790166",
"0.63626146",
"0.6292889",
"0.62855756",
"0.62733924",
"0.62648... | 0.6608201 | 10 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println("Enter the value of n :");
int n = s.nextInt();
System.out.println("Enter the value of r :");
int r = s.nextInt();
int nPr = getPermutations(n,r);
System.out.println("The permutation value = " + nPr);
... | {
"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 Using the property (n)P(r) = n (n1)P(r1) | private static int getPermutations(int n, int r) {
if(r == 0)
return 1;
return (n * getPermutations(n-1 , r-1));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static long nPr(int n, int r) {\n if(r > n)\n return 0;\n if(r == 0)\n return 1;\n\n return nPr(n-1, r) + r * nPr(n-1, r-1);\n }",
"public ResultPoint getRp1() {\n return rp1;\n }",
"public void setAllP(){\n\t\tAllP=(AllR%PerR==0)?(AllR/PerR):(AllR... | [
"0.638482",
"0.62999386",
"0.62463075",
"0.6135575",
"0.6134556",
"0.60696006",
"0.59873027",
"0.59344417",
"0.5865074",
"0.5831498",
"0.5831238",
"0.58296573",
"0.5793831",
"0.57891506",
"0.5674402",
"0.5652108",
"0.5541175",
"0.55362105",
"0.5533367",
"0.5527229",
"0.546658... | 0.5892612 | 8 |
Constructor for AES. Constructs a 4x4 byte matrix for each 128bit string. | public AES (String currentLine)
{
int cursor = currentLine.length();
int[][] currentState = new int[4][4];
for(int row = 0; row < currentState.length; row++)
{
for(int col = 0; col < currentState[row].length; col++)
{
String pair = currentLine.substring(cursor-2, cursor);
int pairHex = Integer.v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public StringToStringTableVector()\n {\n\n m_blocksize = 8;\n m_mapSize = m_blocksize;\n m_map = new StringToStringTable[m_blocksize];\n }",
"private AES() {\r\n\r\n }",
"private AES() {\n }",
"public StringToStringTableVector(int blocksize)\n {\n\n m_blocksize = blocksize;\n m_mapSiz... | [
"0.6050834",
"0.60236204",
"0.59200853",
"0.5408499",
"0.53191715",
"0.53101444",
"0.517656",
"0.51412016",
"0.5111494",
"0.50994253",
"0.50989586",
"0.50732255",
"0.50553656",
"0.5050662",
"0.50466466",
"0.5013163",
"0.49629205",
"0.49216986",
"0.49111834",
"0.48970872",
"0.... | 0.5996995 | 2 |
mixColumns operation for encryption phase. | private static int[][] mixColumns(int[][] state, int round)
{
int[][] result = new int[state.length][state[0].length];
for(int row=0; row<state.length; row++)
result[row] = multRow(state[row]);
System.out.println("After mixColumns("+round+"):");
printTranspose(result, false, false);
return result;... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mixColumns(int[][] arr) {//method for mixColumns\n int[][] tarr = new int[4][4];\n for (int i = 0; i < 4; i++) {\n System.arraycopy(arr[i], 0, tarr[i], 0, 4);\n }\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n arr[i][j]... | [
"0.6721018",
"0.5743963",
"0.54735863",
"0.5465374",
"0.5366066",
"0.5121568",
"0.48870662",
"0.48537695",
"0.48482668",
"0.47484595",
"0.471116",
"0.46927047",
"0.4674261",
"0.46345162",
"0.46277127",
"0.4596374",
"0.45759636",
"0.45203853",
"0.4510442",
"0.45077837",
"0.450... | 0.5445015 | 4 |
invMixColumns operation for decryption phase. | private static int[][] invMixColumns(int[][] state, int round)
{
int[][] result = new int[state.length][state[0].length];
for(int row=0; row<state.length; row++)
result[row] = invMultRow(state[row]);
System.out.println("After invMixColumns("+round+"):");
printTranspose(result, false, false);
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mixColumns(int[][] arr) {//method for mixColumns\n int[][] tarr = new int[4][4];\n for (int i = 0; i < 4; i++) {\n System.arraycopy(arr[i], 0, tarr[i], 0, 4);\n }\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n arr[i][j]... | [
"0.58584523",
"0.54096663",
"0.5167713",
"0.512276",
"0.5016665",
"0.50042856",
"0.49825838",
"0.497546",
"0.48332843",
"0.4827154",
"0.47235057",
"0.4692337",
"0.46863773",
"0.46734044",
"0.4663254",
"0.46355313",
"0.4620511",
"0.46001437",
"0.4527417",
"0.4526227",
"0.45102... | 0.6156358 | 0 |
Helper method to mixColumns that matrix "multiplies" row by column | private static int[] multRow(int[] column)
{
int[] result = new int[column.length];
for(int row=0; row<multCon.length; row++)
for(int col=0; col<multCon[row].length; col++)
result[row] ^= galoisMult(multCon[row][col],column[col]);
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mixColumns(int[][] arr) {//method for mixColumns\n int[][] tarr = new int[4][4];\n for (int i = 0; i < 4; i++) {\n System.arraycopy(arr[i], 0, tarr[i], 0, 4);\n }\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n arr[i][j]... | [
"0.76814747",
"0.70938987",
"0.67272323",
"0.6265442",
"0.60841686",
"0.5831904",
"0.5659208",
"0.5592661",
"0.5565086",
"0.5530767",
"0.55248547",
"0.5515494",
"0.55125344",
"0.551225",
"0.5500274",
"0.54789233",
"0.54260296",
"0.5400307",
"0.5321457",
"0.53007984",
"0.52980... | 0.60616237 | 5 |
Helper method to invMixColumns that matrix "multiplies" row by column | private static int[] invMultRow(int[] column)
{
int[] result = new int[column.length];
for(int row=0; row<invMultCon.length; row++)
for(int col=0; col<invMultCon[row].length; col++)
result[row] ^= galoisMult(invMultCon[row][col],column[col]);
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int[][] invMixColumns(int[][] state, int round)\n\t{\n\t\tint[][] result = new int[state.length][state[0].length];\n\t\t\n\t\tfor(int row=0; row<state.length; row++)\n\t\t\tresult[row] = invMultRow(state[row]);\n\t\t\n\t\tSystem.out.println(\"After invMixColumns(\"+round+\"):\");\n\t\tprintTranspose... | [
"0.7453541",
"0.70957005",
"0.63741714",
"0.60905653",
"0.59556675",
"0.57740825",
"0.5770127",
"0.57514215",
"0.56105846",
"0.55944324",
"0.55874807",
"0.5497398",
"0.54732746",
"0.5471367",
"0.5461416",
"0.5422489",
"0.5392353",
"0.53856426",
"0.5355253",
"0.5344152",
"0.53... | 0.6634901 | 2 |
Helper method to multRow that implements Galois Multiplication in place of standard matrix multiplication. | private static int galoisMult(int a, int b)
{
int result = 0;
for (int i=0; i<8; i++)
{
if((b&1) == 1) //low bit of b set
result = result^a;
boolean aHighSet = (a & 128) == 128; //8th bit of a set
a <<= 1;
assert (a&1) == 0;
a &= 255; //getting rid of 9th bit
assert ((a&256) != 256);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Matrix mult(Matrix M){\n if(this.getSize() != M.getSize()){\n throw new RuntimeException(\"Matrix\");\n\n } \n int newMatrixSize = this.getSize();\n Matrix newM = M.transpose();\n Matrix resultMatrix = new Matrix(newMatrixSize);\n double resultMatrix_Entry = 0;\n for(int i = 1; i <= newMa... | [
"0.7068059",
"0.683202",
"0.66319424",
"0.66204494",
"0.64982766",
"0.63961375",
"0.6334744",
"0.632876",
"0.6307934",
"0.62376755",
"0.6207983",
"0.6143112",
"0.61420304",
"0.6112865",
"0.6061906",
"0.6010405",
"0.6002611",
"0.59999096",
"0.59781283",
"0.59614384",
"0.592903... | 0.0 | -1 |
Will attempt to get the natural of the player. | public static String getLocale(Player player)
{
Object ep = null;
try
{
ep = getMethod("getHandle", player.getClass()).invoke(player, (Object[]) null);
}
catch (IllegalAccessException | IllegalArgumentException| InvocationTargetException e)
{
e.printStackTrace();
}
Field f ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Player getPlayer() {\n return humanPlayer;\n }",
"Player getPlayer();",
"public ServerPlayer whoWon() {\r\n\t\tif (winner(CROSS)) {\r\n\t\t\treturn getP1();\r\n\t\t} else if (winner(NOUGHT)) {\r\n\t\t\treturn getP2();\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public Player get... | [
"0.6385302",
"0.6317476",
"0.62562615",
"0.6233202",
"0.6233202",
"0.62277824",
"0.6190337",
"0.61809385",
"0.61708313",
"0.6163228",
"0.61379915",
"0.6027527",
"0.5995562",
"0.59613925",
"0.5957731",
"0.5957731",
"0.5957179",
"0.59389704",
"0.59275436",
"0.5916284",
"0.59067... | 0.0 | -1 |
Returns the friendly name of a material. | public static String getFriendlyName(Material material) {
return material == null ? "Air" : getFriendlyName(new ItemStack(material), false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getMaterial();",
"public java.lang.String getMaterial() {\r\n return material;\r\n }",
"@Override\n public String toString() {\n return material;\n }",
"public String getMaterial() {\n return material;\n }",
"public String getMaterial() {\n return material;\n }",
... | [
"0.72901064",
"0.7201614",
"0.6979229",
"0.69650483",
"0.69650483",
"0.6908508",
"0.67097986",
"0.6681804",
"0.64843684",
"0.64808804",
"0.6395496",
"0.6374142",
"0.6344863",
"0.62973195",
"0.62884456",
"0.6275086",
"0.62699074",
"0.6171879",
"0.60894126",
"0.60781103",
"0.60... | 0.7846134 | 0 |
Returns the friendly name of an itemstack | public static String getFriendlyName(ItemStack itemStack, boolean checkDisplayName) {
if (itemStack == null || itemStack.getType() == Material.AIR) return "Air";
try {
if (craftItemStackClass == null)craftItemStackClass = Class.forName(OBC_PREFIX + ".inventory.CraftItemStack");
Method nmsCopyMet... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getItemName(ItemStack itemStack) {\r\n\t\treturn WordUtils.capitalizeFully(itemStack.getType().name().toLowerCase().replace('_', ' '));\r\n\t}",
"@Override\n\tpublic String getDisplayName() {\n\t\treturn item.getItemStackDisplayName(stack);\n\t\t//#endif\n\t}",
"public String getUnlocalizedName(ItemStac... | [
"0.78260577",
"0.74372864",
"0.721078",
"0.7187467",
"0.69462734",
"0.6932756",
"0.6829586",
"0.65786165",
"0.6500855",
"0.63502795",
"0.62948227",
"0.6258073",
"0.6253071",
"0.6226504",
"0.61862797",
"0.61862797",
"0.61862797",
"0.6161986",
"0.6161986",
"0.6161986",
"0.61619... | 0.71975416 | 3 |
Constructor for Accounting System | public AccountingSystem(){
accSystem = new HashMap<Integer, Transaction>();
allTransactionsID = new ArrayList<Integer>();
highestSalesMonth = new HashMap<Integer, Integer>();
transactionByTime = new LinkedHashMap<Integer, LinkedList<Transaction>>();
totalSalesCount = 0;
t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Account() { }",
"public AccountManager(){\r\n allAccounts.put(\"CreditCard\",credits);\r\n allAccounts.put(\"LineOfCredit\",lineOfCredits);\r\n allAccounts.put(\"Chequing\",chequing);\r\n allAccounts.put(\"Saving\",saving);\r\n createAccount(\"3\", 0);\r\n primaryAccount... | [
"0.8189401",
"0.79834896",
"0.79732955",
"0.7959538",
"0.78409326",
"0.78314424",
"0.77998227",
"0.7795845",
"0.7788478",
"0.77247804",
"0.7647043",
"0.76067257",
"0.7578354",
"0.75664854",
"0.75664854",
"0.75384927",
"0.7530909",
"0.75287193",
"0.75200003",
"0.751721",
"0.75... | 0.713768 | 42 |
adds a new Transaction object into the map of transactions | public String add(Calendar calendar, Car car, String salesPerson, String type, Double salePrice){
id = (int)(Math.random() * 300);
Transaction newTransaction = new Transaction(id, calendar,car, salesPerson, type, salePrice);
LinkedList<Transaction> tempTransactionByTime = new LinkedList<Transact... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addTransaction(Transactions t){\n listOfTransactions.put(LocalDate.now(), t);\n }",
"public Transaction(){\n\t\t\n\t\ttransactions = new HashMap<String, ArrayList<Products>>();\n\t}",
"public void addTransaction(CustomerTransaction cust) {\n history.add(cust);\n }",
"@JsonProperty(\... | [
"0.7490233",
"0.70774466",
"0.6445925",
"0.644337",
"0.6378563",
"0.62512606",
"0.6201874",
"0.62002784",
"0.61927986",
"0.61767876",
"0.61725056",
"0.6140397",
"0.6104937",
"0.6102838",
"0.597785",
"0.5973338",
"0.5934054",
"0.59192044",
"0.5911957",
"0.5891303",
"0.5866482"... | 0.0 | -1 |
returns an int value of the id of the bought car | public int getCurrentBuyID(){
return currentBuyID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.Long getCarId() {\n return carId;\n }",
"public java.lang.Long getCarId() {\n return carId;\n }",
"public String getCarid() {\n return carid;\n }",
"int getTruckid();",
"int getTruckid();",
"int getTruckid();",
"int getTruckid();",
"int getTruckid();",
"int ge... | [
"0.71669513",
"0.7126307",
"0.6927079",
"0.691027",
"0.691027",
"0.691027",
"0.691027",
"0.691027",
"0.691027",
"0.68969977",
"0.6887759",
"0.671851",
"0.6588559",
"0.6571671",
"0.6570678",
"0.650488",
"0.6462174",
"0.64272636",
"0.63605195",
"0.63491285",
"0.63458556",
"0.... | 0.65123487 | 15 |
returns transaction based on id | public Transaction getTransaction(int id){
return accSystem.get(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Transaction get(String id) throws Exception;",
"Transaction getTransctionByTxId(String txId);",
"public Transaction getById(String id) throws Exception;",
"public Transaction getTransactionById(Integer id) throws MiddlewareQueryException;",
"Transaction findTransactionById(Long id);",
"public Transaction... | [
"0.81829435",
"0.8071509",
"0.8048383",
"0.79053295",
"0.7891376",
"0.78569734",
"0.7523358",
"0.7519809",
"0.74591815",
"0.7141542",
"0.7067789",
"0.7024289",
"0.70218086",
"0.70159537",
"0.6964705",
"0.68212676",
"0.6807845",
"0.67439705",
"0.6740719",
"0.6714601",
"0.67133... | 0.7861205 | 5 |
returns true if the vin is valid else false | public boolean checkKeyValue(Integer vinKey){
return accSystem.containsKey(vinKey);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isUniqueVin(String vin) {\n for (Car c: cars) {\n if (vin.equals(c.getVin())) {\n return false;\n }\n }\n // did not match any car == unique\n return true;\n }",
"public boolean validateVSVID(String vsvId);",
"public boolean is... | [
"0.63439655",
"0.63285214",
"0.59286004",
"0.5899884",
"0.5899884",
"0.58774656",
"0.58035207",
"0.5796459",
"0.5795019",
"0.5775045",
"0.5682436",
"0.5682436",
"0.56714386",
"0.5658788",
"0.5634935",
"0.5625229",
"0.55164206",
"0.55041564",
"0.54845655",
"0.5454961",
"0.5436... | 0.6104132 | 2 |
an integer value of the total sales count | public int getTotalSalesCount(){
return totalSalesCount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTotalSales()\n {\n int sales = totalSales;\n totalSales = 0;\n return sales;\n }",
"public int getNumSales(){\r\n return sales;\r\n }",
"public int getTotalNumberOfSales(String product) {\n int totalValue = 0;\n LinkedList<Sale> temp = storageSale.get(... | [
"0.80789727",
"0.7609487",
"0.71541214",
"0.7130545",
"0.7029222",
"0.7029222",
"0.6869",
"0.68658787",
"0.6765755",
"0.672489",
"0.6678766",
"0.6606005",
"0.6604306",
"0.6592128",
"0.6578536",
"0.6578467",
"0.6524899",
"0.6510299",
"0.6485908",
"0.6480391",
"0.6477119",
"0... | 0.78073364 | 1 |
returns the total profit as a double | public double getTotalSalesProfit(){
return totalSaleProfit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getTotalProfit();",
"public double getProfit(){\n return getPrice() * PROFIT_IN_PERCENTS / 100;\n }",
"public double getProfit() {\n\t\treturn profit;\n\t}",
"public double getProfit() {\n\t\treturn profit;\n\t}",
"public double getProfit() {\n\n\n double difference = maxRange * GAS... | [
"0.8576022",
"0.8264986",
"0.78737324",
"0.78737324",
"0.78548247",
"0.7837436",
"0.7658191",
"0.7583501",
"0.75596976",
"0.75550216",
"0.73670703",
"0.72113687",
"0.7107133",
"0.70803374",
"0.7068175",
"0.70342326",
"0.7018348",
"0.69886124",
"0.69516903",
"0.6946542",
"0.69... | 0.8114737 | 2 |
return the total amount of cars returned | public int getTotalReturnCount(){
return totalReturnCount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumCars() {\r\n\t\treturn (numCars + numSmallCars);\r\n\t}",
"public int queryVipCarAmount(VipCar car) {\n\t Criteria criteria = getSession().createCriteria(VipCar.class);\n\t criteria.add(Restrictions.eq(\"parkId\", car.getParkId()));\n\t return Integer.valueOf(criteria.setProjection(Pr... | [
"0.73728514",
"0.7081681",
"0.7079318",
"0.687421",
"0.6869111",
"0.6805706",
"0.67759347",
"0.67456204",
"0.66851133",
"0.6659307",
"0.6651946",
"0.6645891",
"0.6642969",
"0.6635528",
"0.6621665",
"0.66082495",
"0.6563582",
"0.65590155",
"0.6537352",
"0.6537352",
"0.6532867"... | 0.64799136 | 27 |
returns a list of all transaction id | public ArrayList<Integer> getAllTransactionsID(){
return allTransactionsID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Long> getTransmissionIds();",
"public List getAllIds();",
"java.util.List<com.google.protobuf.ByteString> getTransactionsList();",
"List<String> findAllIds();",
"List<String> getTransactionInfos() {\n\t\tList<String> result = new ArrayList<String>();\n\t\tfor (Transaction transaction : transactionLog.... | [
"0.76072234",
"0.7143944",
"0.67290473",
"0.6641289",
"0.657684",
"0.6558098",
"0.65374",
"0.6433716",
"0.64139163",
"0.6373191",
"0.63700145",
"0.6346242",
"0.6310202",
"0.62997365",
"0.62867165",
"0.6267968",
"0.6264587",
"0.6246685",
"0.6246159",
"0.6225871",
"0.6223952",
... | 0.7837409 | 0 |
returns the months with the highest sales | public String getHighestSalesMonth(){
ArrayList<Integer> monthSold = new ArrayList<Integer>();
Integer maxSold = 0;
String monthString = "";
// adds values to array list
for (Integer value: highestSalesMonth.values()){
monthSold.add(value);
}
if (mon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int getMaxThreeMonthTotal(double[] sumvals) {\n\t\tint tval = 0;\n\t\tdouble maxv = sumvals[0];\n\t\tfor (int k = 0; k < sumvals.length; k++) {\n\t\t\tif (sumvals[k] > maxv) {\n\t\t\t\tmaxv = sumvals[k];\n\t\t\t\ttval = k;\n\t\t\t}\n\t\t}\n\t\treturn tval;\n\t}",
"@Test()\n public void testGetBi... | [
"0.63860834",
"0.62743276",
"0.62170094",
"0.5965595",
"0.59207875",
"0.57652456",
"0.5745053",
"0.56793904",
"0.5515009",
"0.55068517",
"0.54591656",
"0.5449627",
"0.5434336",
"0.5426184",
"0.54207397",
"0.53841126",
"0.5372704",
"0.53611195",
"0.53333956",
"0.5326656",
"0.5... | 0.6968879 | 0 |
finds all transactions by month or by year | public LinkedList<Transaction> getTransactionByTime(int month, boolean byYear){
LinkedList<Transaction> temp = new LinkedList<Transaction>();
if (month != -1 && !byYear){
if (transactionByTime.containsKey(month) && transactionByTime.get(month) != null){
return transactionByT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Flowable<List<Transaction>> searchTransactionWithDate(int day, int month, int year,\n int isDailyOrMonthlyOrYearly) {\n\n return getData(Transaction.class, query -> {\n if (isDailyOrMonthlyOrYearly == 2) {\n que... | [
"0.662282",
"0.5953323",
"0.58282167",
"0.5779195",
"0.57554966",
"0.5730535",
"0.5723988",
"0.56759673",
"0.5532241",
"0.5493081",
"0.54366505",
"0.5408519",
"0.53562707",
"0.5343663",
"0.5318101",
"0.53007793",
"0.5293179",
"0.5270353",
"0.5246101",
"0.523955",
"0.5225502",... | 0.662805 | 0 |
/ invoca o main da classe ola mundo, no pacote | public static void main(String[] args) {
OlaMundo.main(args);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Main() {\n\n super();\n }",
"private Main ()\n {\n super ();\n }",
"public Main() {\n\t\tsuper();\n\t}",
"private ThoseMain()\n {\n // Do nothing\n }",
"public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}",
"private TetrisMain() {\r\n //ensur... | [
"0.74602914",
"0.71673155",
"0.71259665",
"0.70230365",
"0.69196165",
"0.68918777",
"0.68800247",
"0.6872618",
"0.68424875",
"0.67877024",
"0.6772445",
"0.6768473",
"0.6758414",
"0.67531854",
"0.6738657",
"0.67032623",
"0.66762304",
"0.66727567",
"0.66702986",
"0.6654132",
"0... | 0.0 | -1 |
Class to set the JPanel background | @Override
public void paintComponent(Graphics g) {
//Paint background
g.drawImage (background, 0, 0, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBg(){\n this.setBackground(color);\n }",
"private void colorSetup(){\n Color color2 = Color.GRAY;\n Color color = Color.LIGHT_GRAY;\n this.setBackground(color);\n this.mainPanel.setBackground(color);\n this.leftPanel.setBackground(color);\n this.... | [
"0.7611857",
"0.7106322",
"0.69168967",
"0.6851731",
"0.67380106",
"0.66873693",
"0.6678723",
"0.6648085",
"0.66391736",
"0.6578738",
"0.6567924",
"0.6556905",
"0.6530718",
"0.64855266",
"0.6469506",
"0.64247626",
"0.6395262",
"0.63943523",
"0.6393045",
"0.63917154",
"0.63886... | 0.68157464 | 4 |
Method that sets the icons with images | private void setIcons() {
background = new ImageIcon("images/image_mainmenu.png").getImage();
start = new ImageIcon("images/button_start.png");
howto = new ImageIcon("images/button_howtoplay.png");
options = new ImageIcon("images/button_options.png");
lboards = new ImageIcon("images... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setIcons(){\n\t\tfinal List<BufferedImage> icons = new ArrayList<BufferedImage>();\n\t\ttry {\n\t\t\ticons.add(ImageLoader.getBufferedImage(SMALL_ICON_PATH));\n\t\t\ticons.add(ImageLoader.getBufferedImage(BIG_ICON_PATH));\n\t\t} catch (IOException e) {\n\t\t\tmanager.handleException(e);\n\t\t}\n\t\tif... | [
"0.8398357",
"0.80690604",
"0.7943878",
"0.79135406",
"0.77931064",
"0.777037",
"0.77673376",
"0.7749192",
"0.77386385",
"0.77349496",
"0.7687936",
"0.76809007",
"0.76728827",
"0.7654489",
"0.7650281",
"0.762082",
"0.76132566",
"0.7474686",
"0.74678147",
"0.7428618",
"0.74195... | 0.7994394 | 2 |
Method that turns the images into JButtons | private void setButtons(JPanel menuContent) {
JButton button_start = new JButton(start);
button_start.setText("button_start");
button_start.setLocation(450, 300);
button_start.setSize(405, 50);
button_start.setBorderPainted(false);
button_start.setFocusPainted(false);
button_start.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buildButtons() {\r\n\t\tImage temp1= display_img.getImage();\r\n\t\tImageIcon img=new ImageIcon(temp1.getScaledInstance(800, 800, Image.SCALE_SMOOTH));\r\n\t\timg1 = img.getImage();\r\n\t\tfor(int y=0;y<10;y++) {\r\n\t\t\tfor(int x=0; x<10; x++) {\r\n\t\t\t\tImage image = Toolkit.getDefaultToolkit().cr... | [
"0.7676482",
"0.7087777",
"0.7030743",
"0.69805634",
"0.6748089",
"0.6738427",
"0.6668417",
"0.6665486",
"0.64985204",
"0.64819735",
"0.6372702",
"0.63460654",
"0.6327905",
"0.63218355",
"0.63198954",
"0.63147616",
"0.6287388",
"0.62814367",
"0.62756795",
"0.62659675",
"0.625... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void actionPerformed(ActionEvent e) {
button_press.playSound(BUTTON_PRESS);
} | {
"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 actionPerformed(ActionEvent e) {
button_press.playSound(BUTTON_PRESS);
} | {
"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 actionPerformed(ActionEvent e) {
button_press.playSound(BUTTON_PRESS);
} | {
"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 actionPerformed(ActionEvent e) {
button_press.playSound(BUTTON_PRESS);
} | {
"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 actionPerformed(ActionEvent e) {
button_press.playSound(BUTTON_PRESS);
} | {
"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 |
All code in entrypoint is created by us. | public static void main(String[] args)
{
Stockfish stockfish = new Stockfish();
String startFEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
// initialize and connect to engine
if (stockfish.startEngine()) {
System.out.println("Stocfish engine is running");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MainEntryPoint() {\r\n\r\n }",
"@Override\n\tpublic void entry() {\n\n\t}",
"public static void main() {\n \n }",
"private void entryAction() {\n\t}",
"public void startup(){}",
"@Override\n protected void startUp() {\n }",
"private ThoseMain()\n {\n // Do nothing\n ... | [
"0.7054553",
"0.6894727",
"0.6859234",
"0.6830556",
"0.6607376",
"0.65581167",
"0.65129256",
"0.6470371",
"0.64590794",
"0.6377289",
"0.63667655",
"0.6340962",
"0.6310809",
"0.63067293",
"0.6305513",
"0.63025683",
"0.6289539",
"0.62797916",
"0.6273865",
"0.62507206",
"0.62322... | 0.0 | -1 |
Creates an empty data model | public Data() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DataModel createDataModel();",
"public DataModel()\r\n {\r\n System.out.println(\"New DataModel created\");\r\n \r\n languageList = new LanguageList();\r\n }",
"@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}",
"Model createModel();",
"Model createModel();",
"Model ... | [
"0.74905765",
"0.71738565",
"0.70618534",
"0.693051",
"0.693051",
"0.693051",
"0.693051",
"0.693051",
"0.693051",
"0.693051",
"0.68710357",
"0.68364805",
"0.68364805",
"0.67591554",
"0.66964597",
"0.6585122",
"0.6585122",
"0.6585122",
"0.6573193",
"0.65679914",
"0.6562445",
... | 0.6299628 | 29 |
Creates a new Data model with data | public Data(Integer first, Integer second) {
this.setFirst(first);
this.setSecond(second);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DataModel createDataModel();",
"protected abstract D createData();",
"public DataModel()\r\n {\r\n System.out.println(\"New DataModel created\");\r\n \r\n languageList = new LanguageList();\r\n }",
"public static DataModelBuilder create() {\n return new DataModelBuilder();\n }"... | [
"0.79793304",
"0.70734376",
"0.6966912",
"0.69422734",
"0.6832334",
"0.67981035",
"0.66730034",
"0.6478788",
"0.6431588",
"0.6431588",
"0.6431588",
"0.6431588",
"0.6431588",
"0.6431588",
"0.6431588",
"0.6424117",
"0.63571817",
"0.634006",
"0.63030124",
"0.6293818",
"0.6274484... | 0.0 | -1 |
Este metodo retorna una lista con todos los artistas de la aplicacion. | @GET
public List<ArtistDTO> getArtists() {
List<ArtistDTO> artists = new ArrayList();
if (page != null && maxRecords != null) {
this.response.setIntHeader("X-Total-Count", artistLogic.countArtists());
}
try {
URL url = ArtistService.class.getResource("ArtistSe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<String> getArtists();",
"public Vector<Artista> findAllArtisti();",
"public List<Album> getAlbums(Artist artist);",
"public Set<String> getArtists() {\r\n return this.artists;\r\n }",
"public ArtistSet getArtists() {\n\t\treturn restTemplate.getForObject(embyUrl + \"/\"+ EmbyUrlConstants.ARTISTS, ... | [
"0.7333595",
"0.7186529",
"0.6869633",
"0.67485523",
"0.6686427",
"0.6546865",
"0.6536679",
"0.64875996",
"0.64641243",
"0.6438518",
"0.63631904",
"0.63355064",
"0.62780863",
"0.6261457",
"0.62389916",
"0.6210257",
"0.6191838",
"0.61796385",
"0.6139692",
"0.60993433",
"0.6074... | 0.6688388 | 4 |
Retorna artistas por nombre. | @GET
@Path("/searchArtist/{searchName}")
public List<ArtistDTO> searchArtist(@PathParam("searchName") String name) {
return artistLogic.findByName(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Artist getByName(String name);",
"public String getArtistName() {\n return mArtistName;\n }",
"public String getArtistName() {\n return mArtistName;\n }",
"public String findArtist (String song)\n\t{\n\t\tArrayList <String> name = new ArrayList <String>(); \n\t\tfor (Song e: music)... | [
"0.7062661",
"0.69478375",
"0.69478375",
"0.6799844",
"0.6597212",
"0.65820915",
"0.65820915",
"0.65182173",
"0.6505813",
"0.6460267",
"0.64380366",
"0.6437799",
"0.6429006",
"0.63727164",
"0.6361334",
"0.6306098",
"0.6233922",
"0.62275064",
"0.62150484",
"0.6178788",
"0.6170... | 0.59049547 | 24 |
Create a new HttpClient and Post Header | public void postData(String message)
// Method used to send data to the server when POSTs are used
{
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("https://"+this.serverIpAddress+":3000/");
try
{
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);
na... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HttpClientHelper() {\n defaultHeaders.put(\"Content-Type\", \"application/json\");\n defaultHeaders.put(\"Accept-Encoding\", \"gzip\");\n\n //postDefaultHeaders.put(\"Content-Type\", \"application/json\");\n //postDefaultHeaders.put(\"Content-Encoding\", \"gzip\");\n\n Str... | [
"0.6946483",
"0.6791638",
"0.6690835",
"0.64410734",
"0.62591386",
"0.6240455",
"0.6178956",
"0.6175448",
"0.61484545",
"0.6023752",
"0.5957844",
"0.59496754",
"0.5921056",
"0.59040177",
"0.59015733",
"0.5873391",
"0.5845826",
"0.58342654",
"0.58114904",
"0.5791647",
"0.57178... | 0.0 | -1 |
this is the constructor if you want it to read from an array | public Unsigned128BitType( final NativeImg< ?, ? extends LongAccess > bitStorage )
{
i = new Index();
img = bitStorage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayAccess()\r\n {\r\n }",
"public ArrayAccessor() {\r\n super(\"<array>\");\r\n }",
"public Interface(String filename) throws FileNotFoundException \n {\n //read file for first time to find size of array\n File f = new File(filename);\n Scanner b = new Scanner(f);\n\n whil... | [
"0.6944597",
"0.69309235",
"0.6614128",
"0.65444434",
"0.6478433",
"0.64305526",
"0.64188814",
"0.63818187",
"0.6381798",
"0.6349155",
"0.63039476",
"0.62540287",
"0.6249967",
"0.622686",
"0.62084585",
"0.6191891",
"0.6182844",
"0.61666685",
"0.6159053",
"0.61410534",
"0.6127... | 0.0 | -1 |
this is the constructor if you want it to be a variable | public Unsigned128BitType( final long lower, final long upper )
{
this( ( NativeImg< ?, ? extends LongAccess > ) null );
dataAccess = new LongArray( 2 );
set( lower, upper );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public Variable(String name){\n this.name = name;\n }",
"ByCicle(int weight, String name) {\r\n //super keyword can be used to access the instance variables of superclass\r\n //\"super\" can also be used to invoke par... | [
"0.7367625",
"0.6935796",
"0.684345",
"0.68317866",
"0.67291677",
"0.6700705",
"0.666665",
"0.6624925",
"0.65958184",
"0.65955",
"0.65260744",
"0.6519095",
"0.64981544",
"0.6487919",
"0.6471643",
"0.64405596",
"0.6435672",
"0.64263856",
"0.642393",
"0.64105767",
"0.63782525",... | 0.0 | -1 |
this is the constructor if you want it to be a variable | public Unsigned128BitType( final BigInteger value )
{
this( ( NativeImg< ?, ? extends LongAccess > ) null );
dataAccess = new LongArray( 2 );
set( value );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public Variable(String name){\n this.name = name;\n }",
"ByCicle(int weight, String name) {\r\n //super keyword can be used to access the instance variables of superclass\r\n //\"super\" can also be used to invoke par... | [
"0.7367625",
"0.6935796",
"0.684345",
"0.68317866",
"0.67291677",
"0.6700705",
"0.666665",
"0.6624925",
"0.65958184",
"0.65955",
"0.65260744",
"0.6519095",
"0.64981544",
"0.6487919",
"0.6471643",
"0.64405596",
"0.6435672",
"0.64263856",
"0.642393",
"0.64105767",
"0.63782525",... | 0.0 | -1 |
this is the constructor if you want to specify the dataAccess | public Unsigned128BitType( final LongAccess access )
{
this( ( NativeImg< ?, ? extends LongAccess > ) null );
dataAccess = access;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DataManage() {\r\n\t\tsuper();\r\n\t}",
"public DAO(String dbType){\n this.dbType = dbType;\n if(this.dbType.equals(\"MySQL\")){\n initialPool();\n\n // for q5 mysql use\n if(wholeUserIds == null){\n wholeUserIds = new TreeSet<Long>();\n ... | [
"0.6910803",
"0.6808378",
"0.6661701",
"0.65679365",
"0.65628606",
"0.6526074",
"0.6512211",
"0.65074015",
"0.6482086",
"0.6471755",
"0.64472103",
"0.6446119",
"0.64350265",
"0.64146936",
"0.6409247",
"0.6388409",
"0.63858294",
"0.6373717",
"0.6368068",
"0.63540995",
"0.63530... | 0.0 | -1 |
this is the constructor if you want it to be a variable | public Unsigned128BitType()
{
this( 0, 0 );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public Variable(String name){\n this.name = name;\n }",
"ByCicle(int weight, String name) {\r\n //super keyword can be used to access the instance variables of superclass\r\n //\"super\" can also be used to invoke par... | [
"0.7367625",
"0.6935796",
"0.684345",
"0.68317866",
"0.67291677",
"0.6700705",
"0.666665",
"0.6624925",
"0.65958184",
"0.65955",
"0.65260744",
"0.6519095",
"0.64981544",
"0.6487919",
"0.6471643",
"0.64405596",
"0.6435672",
"0.64263856",
"0.642393",
"0.64105767",
"0.63782525",... | 0.0 | -1 |
Fetch data from server. | private void fetchingData() {
loadingDialog.startLoadingDialog();
FirebaseStorage.getInstance().getReference().child("course-details").child("course-details.pdf")
.getBytes(1024 * 1024).addOnSuccessListener(bytes -> {
loadingDialog.dismissDialog();
Toast.makeText... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void getDataFromServer();",
"public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }",
"protected void fetch() {\n HttpClient client = new HttpClient();\n client.getHostConfiguration().setHost(HOST, PORT, SCH... | [
"0.7513636",
"0.7320187",
"0.71265316",
"0.6630198",
"0.66263014",
"0.65216213",
"0.6378333",
"0.63562775",
"0.63396347",
"0.6301449",
"0.6253418",
"0.624944",
"0.62300897",
"0.6132776",
"0.6126141",
"0.60823464",
"0.606705",
"0.6064142",
"0.6056177",
"0.604252",
"0.6040434",... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.