query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
TODO Autogenerated method stub | @Override
public void itemStateChanged(ItemEvent e) {
if(e.getStateChange()== ItemEvent.SELECTED){
cargarCantidades();
activarBoton();
}
} | {
"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 keyPressed(KeyEvent e) {
activarBoton();
} | {
"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 keyReleased(KeyEvent e) {
activarBoton();
} | {
"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 keyTyped(KeyEvent e) {
} | {
"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) {
if(e.getActionCommand().equals("Agregar")){
boolean validacion =camposPrecios();
if(validacion==true){
agregarJTable();
vc.habilitarBotones();
vc.cantidadProductos();
this.vc.total();
this.vc.tipoPago();
}
}else if(e.getActionCommand().equals("Eliminar Producto")){
vc.eliminacionFila();
vc.cantidadProductos();
this.vc.total();
}else if(e.getActionCommand().equals("Eliminar Todo")){
vc.borrarJtable("todo");
vc.cantidadProductos();
this.vc.total();
}else if(e.getActionCommand().equals("Guardar")){
agregarCompra();
vc.dispose();
}
} | {
"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 |
carga la cantidad de todos los productos | public int cantidades(){
int cantidad=0;
DefaultTableModel modelo = vc.returnModelo();
int numeroFilas= modelo.getRowCount();
if(numeroFilas!=0){
for (int i = 0; i < numeroFilas; i++) {
cantidad = cantidad + Integer.valueOf(modelo.getValueAt(i, 2).toString());
}
return cantidad;
}else
cantidad=0;
return cantidad;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getQuantidade() {\r\n\r\n return produtos.size();\r\n }",
"private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produ... | [
"0.6867747",
"0.6804578",
"0.678492",
"0.67278904",
"0.6639701",
"0.6544027",
"0.65007627",
"0.64600885",
"0.64574707",
"0.6445671",
"0.6414371",
"0.6383359",
"0.63700944",
"0.6362918",
"0.6314286",
"0.6269897",
"0.62585104",
"0.6253002",
"0.6220288",
"0.62151283",
"0.6198545... | 0.6133142 | 24 |
carga el monto de todos los productos | public float montos(){
DefaultTableModel modelo = vc.returnModelo();
int numeroFilas=modelo.getRowCount();
float monto=0;
if(modelo.getRowCount()!=0){
for (int i = 0; i < numeroFilas; i++) {
monto = monto + Float.valueOf(modelo.getValueAt(i, 5).toString());
}
}else{
monto=0;
}
return monto;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void relizarCobro(double monto) {\n\t\tif (!loggedIn) {\n\t\t\t\n\t\t\tloggedInUser();\n\t\t}\n\t\t\n\t\t//cargar el monto de compra al medio de pago\n\t}",
"private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist... | [
"0.6339719",
"0.62118083",
"0.6154114",
"0.6146702",
"0.60036695",
"0.59698725",
"0.59553564",
"0.5934264",
"0.5926869",
"0.59088814",
"0.58922046",
"0.58834624",
"0.5873151",
"0.58517164",
"0.58517164",
"0.5849951",
"0.5843382",
"0.5777184",
"0.57624733",
"0.5755747",
"0.574... | 0.57221836 | 21 |
private static final String TAG = "NetChanged"; | @Override
public void onReceive(Context context, Intent arg1) {
// TODO Auto-generated method stub
ConnectivityManager connectivityManager = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo mobNetInfo = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
NetworkInfo wifiNetInfo = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
if (!mobNetInfo.isConnected() && !wifiNetInfo.isConnected()) {
Toast.makeText(context.getApplicationContext(), "网络不给力,请检查网络", Toast.LENGTH_LONG).show();
// 改变背景或者 处理网络的全局变量
} else {
// 改变背景或者 处理网络的全局变量
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void onNetChange(boolean isNetConnected) {\n\t\tif (isNetConnected) {\r\n\t\t\tShowToast(R.string.network_error_not_connected);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void onNetStart(String id) {\n\t\t\n\t}",
"@Override\r\n\tpublic void onTrafficStatusUpdate() {\n\r\n\t}",
"public void ... | [
"0.66190964",
"0.627849",
"0.61138314",
"0.60115325",
"0.5983003",
"0.59660286",
"0.59579116",
"0.5947909",
"0.5928086",
"0.59096056",
"0.5909281",
"0.5775285",
"0.5745161",
"0.5743306",
"0.5697494",
"0.5663584",
"0.56520844",
"0.56363875",
"0.5623935",
"0.56065845",
"0.56045... | 0.0 | -1 |
/Intent intent1 = new Intent(ThirdActivity.this,MainActivity.class); startActivity(intent1); | @Override
public void onClick(View v) {
try {
InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);
} catch (Exception e) {
// TODO: handle exception
}
otp = OTP_ET_1.getText().toString() +
OTP_ET_2.getText().toString() + OTP_ET_3.getText().toString() +
OTP_ET_4.getText().toString();
if (otp.equals("null")||otp.isEmpty()||otp.length()<4){
Toast.makeText(ThirdActivity.this, "Please enter OTP", Toast.LENGTH_SHORT).show();
return;
}
HashMap<String, String> params = new HashMap<>();
params.put("action", "verifyOtp");
params.put("center_id", centreId);
params.put("otp", otp);
params.put("mobile", number);
progressDialog.show();
apiCall.sendData(Request.Method.POST, OTP_VERIFY, params, "sendOtp");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(MainActivity.this, TAXActivity.class);\n// Intent intent = new Intent(MainActivity.this, Main3Activity.class);\n startActivity(intent);\n }"... | [
"0.8113383",
"0.79833966",
"0.78505254",
"0.7831712",
"0.7826033",
"0.777129",
"0.7740491",
"0.76395816",
"0.7580345",
"0.74848825",
"0.7459067",
"0.74421597",
"0.74182814",
"0.7404743",
"0.73790413",
"0.7370189",
"0.73694843",
"0.7342238",
"0.7312711",
"0.7292124",
"0.728640... | 0.0 | -1 |
JSF Friendly function to get count of collections | public int getIncidentsCreatedCount() {
return incidentsCreated.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getListCount();",
"int getItemsCount();",
"int getItemsCount();",
"@Override\r\n\tpublic int getCollectionCount() {\n\t\treturn data != null && data.list != null ? data.list.size() : 0;\r\n\t}",
"public Long getElementCount();",
"public int size() {return collection.size();}",
"public int getCount(... | [
"0.7278472",
"0.7264118",
"0.7264118",
"0.7086296",
"0.70818347",
"0.70291483",
"0.6914073",
"0.69083345",
"0.6906976",
"0.69050986",
"0.6903243",
"0.69015723",
"0.68630475",
"0.6844028",
"0.6804548",
"0.68007225",
"0.6794971",
"0.6781409",
"0.6725283",
"0.66893315",
"0.66893... | 0.0 | -1 |
JSF Friendly function to get count of collections | public int getIncidentsResponsibleForCount() {
return incidentsResponsibleFor.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getListCount();",
"int getItemsCount();",
"int getItemsCount();",
"@Override\r\n\tpublic int getCollectionCount() {\n\t\treturn data != null && data.list != null ? data.list.size() : 0;\r\n\t}",
"public Long getElementCount();",
"public int size() {return collection.size();}",
"public int getCount(... | [
"0.72780013",
"0.726393",
"0.726393",
"0.7088747",
"0.7080645",
"0.7032233",
"0.6911865",
"0.69059986",
"0.69054955",
"0.69029284",
"0.69028497",
"0.69003606",
"0.6860736",
"0.6842403",
"0.68062747",
"0.6802384",
"0.6794091",
"0.6780752",
"0.67251956",
"0.66875505",
"0.668755... | 0.0 | -1 |
JSF Friendly function to get count of collections | public int getIncidentsReportedCount() {
return incidentsReported.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getListCount();",
"int getItemsCount();",
"int getItemsCount();",
"@Override\r\n\tpublic int getCollectionCount() {\n\t\treturn data != null && data.list != null ? data.list.size() : 0;\r\n\t}",
"public Long getElementCount();",
"public int size() {return collection.size();}",
"public int getCount(... | [
"0.7278472",
"0.7264118",
"0.7264118",
"0.7086296",
"0.70818347",
"0.70291483",
"0.6914073",
"0.69083345",
"0.6906976",
"0.69050986",
"0.6903243",
"0.69015723",
"0.68630475",
"0.6844028",
"0.6804548",
"0.68007225",
"0.6794971",
"0.6781409",
"0.6725283",
"0.66893315",
"0.66893... | 0.0 | -1 |
Empty setter , needed for richfaces autocomplete to work | public void setDisplayName(String name) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void setValueOnUi() {\n\n\t}",
"@InitBinder\n\tprivate void initBinder(ServletRequestDataBinder binder) {\n\t\tbinder.registerCustomEditor(String.class, new StringTrimmerEditor(true));\n\t}",
"public SearchBooksBean() {\r\n \t\tclearFilter();\r\n \t}",
"@Override\r\n public void ini... | [
"0.5854182",
"0.58311063",
"0.5795917",
"0.5792193",
"0.5766833",
"0.5747247",
"0.57368094",
"0.5731206",
"0.5725789",
"0.5723486",
"0.5713429",
"0.5683154",
"0.56787884",
"0.5669037",
"0.56590414",
"0.56448084",
"0.5635083",
"0.5633495",
"0.5633093",
"0.5591256",
"0.5588482"... | 0.0 | -1 |
This method is used by hibernate full text search override to add additional fields | @Override
public List<String> listSearchableFields() {
List<String> listSearchableFields = new ArrayList<String>();
listSearchableFields.addAll(super.listSearchableFields());
listSearchableFields.add("employeeNumber");
listSearchableFields.add("contactDetails.primaryPhone");
listSearchableFields.add("contactDetails.secondaryPhone");
listSearchableFields.add("contactDetails.streetAddress");
listSearchableFields.add("contactDetails.city");
listSearchableFields.add("contactDetails.zip");
return listSearchableFields;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void addProperty(String name, String text) {\n\t\tLuceneIndex.addPredicateField(name, text, doc);\n\t\tLuceneIndex.addTextField(text, doc);\n\t}",
"public void searchField(String name) {\r\n\t\tsafeType(addVehiclesHeader.replace(\"Add Vehicle\", \"Search\"), name);\r\n\t\t;\r\n\t}",
"@Overr... | [
"0.56940913",
"0.5675009",
"0.56037736",
"0.5467302",
"0.54229546",
"0.54213715",
"0.5357479",
"0.53404576",
"0.5328193",
"0.53001195",
"0.52776724",
"0.52541095",
"0.52438796",
"0.5240407",
"0.52362436",
"0.5231507",
"0.52237535",
"0.52202725",
"0.51980424",
"0.51909274",
"0... | 0.53246754 | 9 |
TODO Autogenerated method stub | @Override
public void getInsert(int wanchengBossId, WanchengPO wanchengPO) {
String sql = "insert into kuguan_rukuwancheng values(?,?,?,?,?,?,?,?,?,?,?)";
List<Object> list = new ArrayList<Object>();
list.add(Thread.currentThread().hashCode() + "-" + System.currentTimeMillis());
list.add(wanchengBossId);
list.add(wanchengPO.getWanchengCode());
list.add(wanchengPO.getWanchengXiangguanCode());
list.add(wanchengPO.getWanchengType());
list.add(wanchengPO.getWanchengInCount());
list.add(wanchengPO.getWanchengSetTime());
list.add(wanchengPO.getWanchengAuthor());
list.add(wanchengPO.getWanchengChecker());
list.add(wanchengPO.getWanchengCheckTime());
list.add(wanchengPO.getWanchengNote());
this.SaveOrUpdate(sql, 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 | @Override
public List<WanchengPO> mapRow(ResultSet rs) throws Exception {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
By default multiple namespaces are allowed. If you set this to "false" it will make it all happen in the "default" namespace (the first namespace you define). | public void setAllowMultipleNamespaces(boolean allowMultipleNamespaces) {
this.allowMultipleNamespaces = allowMultipleNamespaces;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isNamespaceAware () {\n return true;\n }",
"public void setNamespace(String namespace) {\n\t\t\r\n\t}",
"public XMLNamespaces() {\n this(libsbmlJNI.new_XMLNamespaces__SWIG_0(), true);\n }",
"public final boolean isNamespaceAware() {\n return true;\n }",
"Rule Namesp... | [
"0.70772177",
"0.68112737",
"0.6744561",
"0.671345",
"0.66845834",
"0.6683515",
"0.66726696",
"0.66615635",
"0.6537569",
"0.6456749",
"0.6453116",
"0.64492",
"0.6317362",
"0.6208524",
"0.6208524",
"0.615868",
"0.6157095",
"0.6087182",
"0.6034819",
"0.6014628",
"0.6011737",
... | 0.7850258 | 0 |
Constructor that sets the parent class loader for the package being built/compiled | public PackageBuilderConfiguration(ClassLoader classLoader) {
init( classLoader,
null );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected ClassLoader(ClassLoader parent) {\r\n if (parent == null) {\r\n if (!getClass().equals(Launcher.ExtClassLoader.class)) {\r\n this.parent = getSystemClassLoader();\r\n } else {\r\n this.parent = null;\r\n }\r\n } else {\r\n ... | [
"0.68434066",
"0.63134944",
"0.61704665",
"0.61441356",
"0.61010975",
"0.60951936",
"0.6088693",
"0.606913",
"0.60301095",
"0.6029979",
"0.59821564",
"0.5971251",
"0.5969026",
"0.5947599",
"0.59332675",
"0.5926261",
"0.5913855",
"0.5894764",
"0.5894236",
"0.58923537",
"0.5775... | 0.6152386 | 3 |
Programmatic properties file, added with lease precedence | public PackageBuilderConfiguration(Properties properties) {
init( null,
properties );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PropertiesTask setProperties( File propertiesFile );",
"private static synchronized void setProperties(\n final String strPropertiesFilename) {\n if (msbPropertiesLoaded) {\n Verbose.warning(\"Properties already loaded; ignoring request\");\n\n return;\n }\n\n ... | [
"0.67800534",
"0.65565157",
"0.65427285",
"0.65166867",
"0.6509701",
"0.6492711",
"0.6492247",
"0.6480918",
"0.6365563",
"0.63622993",
"0.63593924",
"0.635616",
"0.6321096",
"0.63152695",
"0.6314346",
"0.62811923",
"0.6273043",
"0.6259347",
"0.62592125",
"0.62422603",
"0.6236... | 0.0 | -1 |
Programmatic properties file, added with lease precedence | public PackageBuilderConfiguration(ClassLoader classLoader,
Properties properties) {
init( classLoader,
properties );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PropertiesTask setProperties( File propertiesFile );",
"private static synchronized void setProperties(\n final String strPropertiesFilename) {\n if (msbPropertiesLoaded) {\n Verbose.warning(\"Properties already loaded; ignoring request\");\n\n return;\n }\n\n ... | [
"0.6779024",
"0.6555599",
"0.6541237",
"0.6515908",
"0.6506825",
"0.649332",
"0.6491497",
"0.64811146",
"0.63634527",
"0.6361811",
"0.63581777",
"0.635573",
"0.6320415",
"0.6313877",
"0.6311091",
"0.6277573",
"0.62702495",
"0.6258168",
"0.6257332",
"0.62426233",
"0.6235324",
... | 0.0 | -1 |
DialectRegistry registry = new DialectRegistry(); | private void buildDialectConfigurationMap() {
Map dialectProperties = new HashMap();
this.chainedProperties.mapStartsWith( dialectProperties,
"drools.dialect",
false );
setDefaultDialect( (String) dialectProperties.remove( "drools.dialect.default" ) );
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
for ( Iterator it = dialectProperties.entrySet().iterator(); it.hasNext(); ) {
Entry entry = (Entry) it.next();
String str = (String) entry.getKey();
String dialectName = str.substring( str.lastIndexOf( "." ) + 1 );
String dialectClass = (String) entry.getValue();
addDialect( dialectName,
dialectClass );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DbDialect getDialect() {\n return _dialect;\n }",
"protected Dialect() {\n \t\tLOG.usingDialect( this );\n \t\tStandardAnsiSqlAggregationFunctions.primeFunctionMap( sqlFunctions );\n \n \t\t// standard sql92 functions (can be overridden by subclasses)\n \t\tregisterFunction( \"substring\", new SQLFunc... | [
"0.67905205",
"0.66396415",
"0.65739644",
"0.65167993",
"0.6510103",
"0.6454419",
"0.63741606",
"0.62870187",
"0.6253984",
"0.62303084",
"0.61874473",
"0.60757124",
"0.60575926",
"0.5930571",
"0.59277767",
"0.58282775",
"0.5788658",
"0.5768393",
"0.574114",
"0.57374066",
"0.5... | 0.540525 | 26 |
Use this to override the classloader that will be used for the rules. | public void setClassLoader(final ClassLoader classLoader) {
if ( classLoader != null ) {
this.classLoader = classLoader;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Loader getClassLoader() {\n\treturn this.classLoader;\n }",
"public Class<?> initializeClassLoader(Class<?> clazz, ClassLoaderSystem system, ClassFilter parentFilter, ClassLoaderPolicy policy)\n {\n Set<String> parentPackages = getParentPackages();\n String[] parentPkgs = par... | [
"0.6271332",
"0.61675996",
"0.61565065",
"0.6130985",
"0.6100784",
"0.6033093",
"0.5991651",
"0.5978109",
"0.59346414",
"0.59195423",
"0.5856753",
"0.582078",
"0.58137494",
"0.57655823",
"0.57611537",
"0.5733512",
"0.5726218",
"0.5710212",
"0.56968987",
"0.5680848",
"0.566493... | 0.0 | -1 |
Returns the evaluator registry for this package builder configuration | public EvaluatorRegistry getEvaluatorRegistry() {
return this.evaluatorRegistry;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Evaluator getEvaluator() {\n return evaluator;\n }",
"public com.bingo.server.msg.REQ.RegistryRequest getRegistry() {\n return registry_ == null ? com.bingo.server.msg.REQ.RegistryRequest.getDefaultInstance() : registry_;\n }",
"public com.bingo.server.msg.REQ.RegistryRequest getRegist... | [
"0.6599706",
"0.6168599",
"0.59145933",
"0.5699706",
"0.5699706",
"0.5689168",
"0.55639315",
"0.55428624",
"0.5523777",
"0.54740274",
"0.54545474",
"0.5272662",
"0.52403903",
"0.5215914",
"0.5171327",
"0.50778997",
"0.50711346",
"0.50308347",
"0.5022936",
"0.5022936",
"0.5009... | 0.77946377 | 0 |
Adds an evaluator definition class to the registry using the evaluator class name. The class will be loaded and the corresponting evaluator ID will be added to the registry. In case there exists an implementation for that ID already, the new implementation will replace the previous one. | public void addEvaluatorDefinition(String className) {
this.evaluatorRegistry.addEvaluatorDefinition( className );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addEvaluatorDefinition(EvaluatorDefinition def) {\r\n this.evaluatorRegistry.addEvaluatorDefinition( def );\r\n }",
"public void add(Evaluation evaluation){\r\n evaluations.add(evaluation);\r\n }",
"public void addProvider(EvaluatorProvider provider) {\n\t\tregistry.add(provider... | [
"0.6665816",
"0.5459951",
"0.54592174",
"0.5371844",
"0.5170892",
"0.5055723",
"0.49436858",
"0.49013978",
"0.48343927",
"0.48255986",
"0.48204678",
"0.4807505",
"0.4778789",
"0.4760413",
"0.47172332",
"0.46136197",
"0.46088776",
"0.46040982",
"0.45962736",
"0.45765337",
"0.4... | 0.7479391 | 0 |
Adds an evaluator definition class to the registry. In case there exists an implementation for that evaluator ID already, the new implementation will replace the previous one. | public void addEvaluatorDefinition(EvaluatorDefinition def) {
this.evaluatorRegistry.addEvaluatorDefinition( def );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addEvaluatorDefinition(String className) {\r\n this.evaluatorRegistry.addEvaluatorDefinition( className );\r\n }",
"public void add(Evaluation evaluation){\r\n evaluations.add(evaluation);\r\n }",
"public void addEvaluations(Evaluation eval) {\n\t\t\tevals.put(eval.alt,eval.crit... | [
"0.7378435",
"0.5829448",
"0.5717254",
"0.56937915",
"0.53923285",
"0.5126751",
"0.47236827",
"0.47155774",
"0.46886998",
"0.46727666",
"0.4664573",
"0.4661438",
"0.46441746",
"0.46415856",
"0.46208423",
"0.459089",
"0.4585726",
"0.45852217",
"0.45605743",
"0.45445502",
"0.45... | 0.7310191 | 1 |
/ methods putting the job into the Priority Queue: | private void putJob(int a, int b){
Integer[] job = new Integer[2];
job[0] = a;
job[1] = b;
// put into priority queue
this.prior.add(job);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void workOnQueue() {\n }",
"@Override\n protected void insertJobInQueueUponArrival (final J job, final double time)\n {\n addRealJobLocal (job);\n }",
"public void sortBasedPendingJobs();",
"private synchronized void refreshQueuePriority() {\n BlockingQueue<Message> newQueue;\n ... | [
"0.70254564",
"0.66387147",
"0.6456787",
"0.64416856",
"0.6421778",
"0.6393844",
"0.6378745",
"0.631325",
"0.63075954",
"0.6298009",
"0.62858087",
"0.6277395",
"0.61611915",
"0.6154813",
"0.610799",
"0.6048073",
"0.60031307",
"0.5986415",
"0.5986222",
"0.59723246",
"0.5972317... | 0.6751914 | 1 |
calculating the weighted finishing time: | private long finTime(){
long result = 0, time = 0;
Integer[] temp;
while(!this.prior.isEmpty()){
// getting the head of the queue and removing it
temp = this.prior.poll();
// printing some temp. results
//System.out.println("weight " + temp[0] + " length/time " + temp[1]);
// callculate the finishing time
time += temp[1];
// calculate the weighted time, we want to minimise
result += (temp[0]*time);
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTurnaround (){\n return finishingTime-arrival_time;\n }",
"private int calculateWeight(int distance, int waitingTime){\r\n int weight = distance;\r\n if(waitingTime != 0){\r\n weight = weight / (3* waitingTime);\r\n }\r\n return weight;\r\n }",
... | [
"0.6340554",
"0.6331546",
"0.632416",
"0.62017095",
"0.5922993",
"0.5890545",
"0.5862651",
"0.5860899",
"0.5835513",
"0.5822882",
"0.5770233",
"0.57505846",
"0.5747314",
"0.56850475",
"0.56664616",
"0.5641316",
"0.5634958",
"0.5594525",
"0.559319",
"0.55898213",
"0.5587065",
... | 0.7394105 | 0 |
/ reading methods the readin and run methods: | public void run() throws IOException {
try {
File file = new File("jobs.txt");
FileReader fileReader = new FileReader(file);
BufferedReader bufferedReader = new BufferedReader(fileReader);
StringBuffer stringBuffer = new StringBuffer();
String line;
// reading the first line = number of jobs and skipping it since
// I do not need that information
line = bufferedReader.readLine();
//this.numOfjobs = Integer.parseInt(line);
// read a line:
while ((line = bufferedReader.readLine()) != null ) {
int weight,length;
String[] arr = line.split("\\s+");
// weight and length are
weight = Integer.parseInt(arr[0]);
length = Integer.parseInt(arr[1]);
// putting into the priority queue
this.putJob(weight, length);
}
// closing the fileReader:
fileReader.close();
}catch (IOException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract void read();",
"Read createRead();",
"public void ownRead();",
"void read ();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public void read() {\n try {\n pw = new PrintWriter(System.out, true);\n br = new BufferedReader(new InputStreamReader(System.in));\n ... | [
"0.6906107",
"0.6805349",
"0.67977667",
"0.67511415",
"0.6655334",
"0.66459674",
"0.6545395",
"0.64508456",
"0.64502954",
"0.64483815",
"0.64470696",
"0.63850784",
"0.63799083",
"0.6378835",
"0.6378069",
"0.6376716",
"0.6370697",
"0.6368753",
"0.63438666",
"0.6336025",
"0.630... | 0.0 | -1 |
/ renamed from: a | public int m5042a() {
return this.f3983a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: b | public String m5043b() {
return this.f3984b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"v... | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.588663... | 0.0 | -1 |
/ renamed from: c | public Map<String, List<String>> m5044c() {
return this.f3985c;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
... | [
"0.6459671",
"0.64426076",
"0.6432055",
"0.6419073",
"0.64123017",
"0.63976145",
"0.62514615",
"0.6247873",
"0.62449396",
"0.6232423",
"0.6191072",
"0.61665446",
"0.61520773",
"0.6150184",
"0.6138882",
"0.61372375",
"0.6130908",
"0.61036175",
"0.60984564",
"0.6077865",
"0.606... | 0.0 | -1 |
/ renamed from: d | public byte[] m5045d() {
return this.f3986d;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor... | [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222... | 0.0 | -1 |
/ renamed from: e | public String m5046e() {
return this.f3986d != null ? new String(this.f3986d) : null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void e() {\n\n\t}",
"public void e() {\n }",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@Override\n public void e(String TAG, String msg) {\n }",
"public String toString()\r\n {\r\n return e.toString();\r\n }",
"@Override\n\t\t\t\... | [
"0.72328156",
"0.66032064",
"0.6412127",
"0.6362734",
"0.633999",
"0.62543726",
"0.6232265",
"0.6159535",
"0.61226326",
"0.61226326",
"0.60798717",
"0.6049423",
"0.60396963",
"0.60011584",
"0.5998842",
"0.59709895",
"0.59551716",
"0.5937381",
"0.58854383",
"0.5870234",
"0.586... | 0.0 | -1 |
Get primary keys for IN function | public List<OrderOverViewDTO> getOrders(IDataService dataService, List<OrderOverViewDTO> orderList,
FilterDTO filterObject) throws Exception {
int foundBoTypeUsrRequest = getboTypeQuery(dataService, "UsrRequest");
int foundBoTypeUsrComplaint = getboTypeQuery(dataService, "UsrOrder");
// Finally we can do query
IDatabaseQuery queryOrders = dataService.getPVDatabaseQuery("GetOrdersByType");
queryOrders.getSearchExpression("boType", Operator.IN).addValue(foundBoTypeUsrRequest);
queryOrders.getSearchExpression("boType", Operator.IN).addValue(foundBoTypeUsrComplaint);
// Query filter description
if (filterObject.getNotModifiedBy() != null) {
queryOrders.getSearchExpression("notModifiedByAccountName", Operator.NOT_EQUAL)
.setValue(filterObject.getNotModifiedBy());
}
// Query filter state
if (filterObject.getModifiedBy() != null) {
queryOrders.getSearchExpression("modifiedByAccountName", Operator.EQUAL)
.setValue(filterObject.getModifiedBy());
}
// Query filter mutation date from
if (filterObject.getModifiedDateFrom() != null) {
queryOrders.getDateTimeSearchExpression("searchMutationDateFrom", Operator.GREATER)
.setValue(filterObject.getModifiedDateFrom());
}
// Query filter mutation date to
if (filterObject.getModifiedDateTo() != null) {
queryOrders.getDateTimeSearchExpression("searchMutationDateTo", Operator.LESS_EQUAL)
.setValue(filterObject.getModifiedDateTo());
}
IResultSet resultsetNew = queryOrders.execute();
System.out.println("Query Executed successfully...");
while (resultsetNew.next()) {
OrderOverViewDTO orderOverViewDTO = new OrderOverViewDTO();
orderOverViewDTO = fillOrderBoFields(resultsetNew, orderOverViewDTO);
orderList.add(orderOverViewDTO);
}
return orderList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> getPrimaryKeys(String tableName);",
"private List<String> getPrimaryKeys(Table table) {\n\t\tlog.debug(\"getPrimaryKeys\");\n\t\tList<String> primaryKeyList = new ArrayList<String>();\n\n\t\tfor (Index index : table.getIndexes()) {\n\t\t\tfor (Index.Column column : index.getColumns()) {\n\t\t... | [
"0.68881434",
"0.68687546",
"0.6310244",
"0.62697107",
"0.6172474",
"0.61226714",
"0.60949713",
"0.59619445",
"0.5881274",
"0.5803045",
"0.57855946",
"0.5766746",
"0.5751339",
"0.57429075",
"0.57429075",
"0.57271546",
"0.5708716",
"0.5708716",
"0.5678587",
"0.56638336",
"0.56... | 0.0 | -1 |
Intent intent = new Intent(Asset_workorderActivity.this, AssetDetailsActivity.class); Bundle bundle = new Bundle(); bundle.putSerializable("asset", assetArrayList.get(position)); intent.putExtras(bundle); startActivityForResult(intent, 0); | @Override
public void onItemClick(View view, int position) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n Movie movieItem = (Movie) containerView.getTag (); // getting the current movie item from setTag(movieItem)\n int position = getAdapterPosition (); //getting the position index i.e. it start from 0\n ... | [
"0.73263144",
"0.7241472",
"0.70614016",
"0.70303714",
"0.70226485",
"0.70226485",
"0.6997249",
"0.69971114",
"0.69483745",
"0.69468683",
"0.68691176",
"0.6835204",
"0.68027264",
"0.6796922",
"0.67577267",
"0.67515737",
"0.6697492",
"0.66675806",
"0.6631631",
"0.6608372",
"0.... | 0.0 | -1 |
Updates the view when the model changes. | @Override
public void update(Observable o, Object arg) {
ArrayList<Vote> votes = model.getVotes();
ArrayList<Candidate> candidates = model.getCandidates();
Object[][] rowData = new Object[votes.size()][candidates.size()];
Object[] columnNames = new Object[candidates.size()];
// Adds columns to votes table.
for (int index = 0; index < candidates.size(); index++) {
columnNames[index] = "Preference " + (index + 1);
}
// Displays the preferences for all votes.
for (int index = 0; index < votes.size(); index++) {
ArrayList<Candidate> preferences = votes.get(index).getPreferences();
for (int preference = 0; preference < preferences.size(); preference++) {
String prefText = "<html><span ";
// Displays the current preference/choice in a different colour.
if (preferences.get(preference) == votes.get(index).getChoice()) {
prefText += "style='color:red'";
}
prefText += ">"+preferences.get(preference).getName()+"</span></html>";
rowData[index][preference] = prefText;
}
}
// Updates the model for the votes table.
votesTable.setModel(new DefaultTableModel(rowData, columnNames) {
@Override
public boolean isCellEditable(int rowIndex, int columnIndex) {
return false; // Stops cells being edited.
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void updateViewFromModel();",
"void updateModelFromView();",
"protected void modelChanged() {\n // create a view hierarchy\n ViewFactory f = rootView.getViewFactory();\n Document doc = editor.getDocument();\n Element elem = doc.getDefaultRootElement();\n setView(f.create(elem... | [
"0.82811975",
"0.8203894",
"0.74533594",
"0.73940146",
"0.7232799",
"0.7232799",
"0.7223186",
"0.72111076",
"0.7006568",
"0.6992333",
"0.6866869",
"0.68472904",
"0.6839494",
"0.68387437",
"0.682611",
"0.680163",
"0.6761488",
"0.6752839",
"0.6709403",
"0.6694873",
"0.66529083"... | 0.0 | -1 |
Gets an array of the candidate names for displaying in combo boxes. | private String[] getCandidateNames() {
int index = 1;
ArrayList<Candidate> candidates = model.getCandidates();
String[] names = new String[candidates.size()+1];
// Adds the names of the candidate to an array.
names[0] = ""; // Blank candidate (used when you don't want to select more candidates).
for (Candidate candidate : candidates) {
names[index++] = candidate.getName();
}
return names;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ArrayList<String> getNames() {\n\t\tNameDialog n = new NameDialog();\n\t\tnameList = new ArrayList<String>();\n\t\ttry {\n\t\t\tnameList = n.getNames(inputs[1]);\n\t\t}catch(GameException ex) {\n\t\t\tview.close();\n\t\t\tmenuStage.show();\n\t\t}\n\t\treturn nameList;\n\t}",
"private CharSequence[] getSe... | [
"0.66624856",
"0.6444588",
"0.6418435",
"0.62181437",
"0.6202969",
"0.61881256",
"0.6163913",
"0.61071795",
"0.60859317",
"0.6063305",
"0.6053208",
"0.60442317",
"0.6029931",
"0.6017822",
"0.59966403",
"0.5991457",
"0.59815377",
"0.5971386",
"0.5926103",
"0.59221774",
"0.5898... | 0.8448424 | 0 |
Creates combo boxes for picking candidates for a new vote. | private JPanel createComboBoxes() {
JPanel container = new JPanel();
JPanel comboContainer = new JPanel();
JLabel preferenceLabel = new JLabel();
String[] names = getCandidateNames();
// Sets the text of the preference (new vote) label.
String preferenceLabelText = "<html><div style='text-align: center; width: " + PANEL_SIZE.width + ";'><h3>New Vote</h3>";
if (names.length < 2) {
preferenceLabelText += "There are no candidates to vote for right now.<br><br>";
}
preferenceLabelText += "</div></html>";
preferenceLabel.setText(preferenceLabelText);
// Lays out the containers.
container.setLayout(new BorderLayout());
container.add(preferenceLabel, BorderLayout.PAGE_START);
container.add(comboContainer, BorderLayout.PAGE_END);
comboContainer.setLayout(new BoxLayout(comboContainer, BoxLayout.Y_AXIS));
// Allows the user to select each of their preferences for a new vote.
for (int index = 1; index < names.length; index++) {
JPanel comboPanel = new JPanel();
JLabel comboLabel = new JLabel("Preference " + index);
JComboBox<String> comboBox = new JComboBox<>(names);
comboPanel.setLayout(new BoxLayout(comboPanel, BoxLayout.X_AXIS));
comboPanel.add(comboLabel);
comboPanel.add(comboBox);
comboContainer.add(comboPanel);
comboBoxes.add(comboBox);
}
// Returns the container so that it can be added to a panel.
return container;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void populateChoiceBoxes() {\n subjects.setItems(FXCollections.observableArrayList(\"Select\", \"computers\", \"not-computers\", \"subjects\"));\n className.setItems(FXCollections.observableArrayList(\"Select\", \"101\", \"202\", \"303\", \"505\"));\n subjects.getSelectionModel().select... | [
"0.6558592",
"0.61794835",
"0.6165136",
"0.60527617",
"0.59929985",
"0.5984416",
"0.5941556",
"0.58805454",
"0.58591664",
"0.5849976",
"0.5849522",
"0.5775039",
"0.5767612",
"0.5745031",
"0.5722339",
"0.5717568",
"0.5706726",
"0.5674067",
"0.5670858",
"0.56325793",
"0.5615753... | 0.7269839 | 0 |
Creates all of the controls for the view (buttons, panels, etc). | private void createControls() {
JScrollPane votesScroller = new JScrollPane(votesTable, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
JPanel bottomPanel = new JPanel();
JPanel buttonsPanel = new JPanel();
JLabel votesLabel = new JLabel("<html><div style='text-align: center; width: " + PANEL_SIZE.width + ";'><h3>Votes</h3></html>");
// Enables/disables buttons.
enableAdding();
// Hooks up the controller on the action listeners.
loadButton.addActionListener((e) -> controller.loadVotes());
addButton.addActionListener((e) -> {
// Uses the selected indexes of the combo boxes to determine the candidate IDs.
ArrayList<Integer> candidateIds = new ArrayList<>();
comboBoxes.forEach((comboBox) -> candidateIds.add(comboBox.getSelectedIndex() - 1));
// Requests that the controller adds a vote with the given candidate IDs.
controller.addVote(candidateIds);
});
// Lays out the components.
panel.setLayout(new BorderLayout());
panel.add(votesLabel, BorderLayout.PAGE_START);
panel.add(votesScroller, BorderLayout.CENTER);
panel.add(bottomPanel, BorderLayout.PAGE_END);
bottomPanel.setLayout(new BorderLayout());
bottomPanel.add(createComboBoxes(), BorderLayout.PAGE_START);
bottomPanel.add(buttonsPanel, BorderLayout.PAGE_END);
buttonsPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
buttonsPanel.add(addButton);
buttonsPanel.add(loadButton);
panel.setPreferredSize(PANEL_SIZE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFe... | [
"0.7262567",
"0.7192997",
"0.7150661",
"0.714611",
"0.7137818",
"0.71271366",
"0.711407",
"0.70543575",
"0.70419544",
"0.7009783",
"0.69904566",
"0.6957338",
"0.6893594",
"0.688028",
"0.68773586",
"0.68206096",
"0.68096757",
"0.67257047",
"0.66721886",
"0.6662221",
"0.6661809... | 0.71129745 | 7 |
Gets the panel so that it can be added to a content pane externally. | public JPanel getPanel() {
return panel;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected JPanel getPanel() {\n\t\treturn (JPanel) window.getContentPane();\n\t}",
"public JPanel getPanel()\n {\n return panel;\n }",
"@Override\n\tpublic JPanel getPanel()\n\t{\n\t\treturn panel;\n\t}",
"public final Panel getPanel()\r\n\t{\r\n\t\treturn panel;\r\n\t}",
"JPanel getPanel();",
"publ... | [
"0.8293807",
"0.80145085",
"0.79456097",
"0.79453",
"0.78050023",
"0.77753794",
"0.7683426",
"0.76631546",
"0.74990046",
"0.74990046",
"0.74724203",
"0.7450574",
"0.74454373",
"0.73826885",
"0.7365473",
"0.7357407",
"0.72616786",
"0.7248236",
"0.71990997",
"0.71990997",
"0.71... | 0.79104954 | 4 |
Displays an error message for the user. | public void showError(String message) {
showMessageDialog(null, message, "Error", JOptionPane.ERROR_MESSAGE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void showError(String message);",
"void showError(String message);",
"public void showError(String errorMessage);",
"public void showError(String error);",
"void showError(String errorMessage);",
"void displayErrorMessage(String message);",
"@Override\n\tpublic void showError(String message) {\n\t\t\n\... | [
"0.80632955",
"0.80632955",
"0.7848024",
"0.784583",
"0.77415025",
"0.769482",
"0.763693",
"0.73401767",
"0.7336275",
"0.72955513",
"0.729279",
"0.72681963",
"0.72615093",
"0.71892303",
"0.7162134",
"0.71458364",
"0.7130924",
"0.7108859",
"0.70774007",
"0.70710325",
"0.699518... | 0.70226437 | 20 |
/ Metodos especificos (INICIO) | public List<RowListener> getProvRowListeners()
{
return provRowListeners;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void tipoDatos() {\n\t\tint num = 10;\n\t\t// Texto STring\n\t\tString cadena = \"cadena\";\n\n\t\t// Decimale O flotante\n\t\tdouble decimal = 12.16;\n\t\tfloat fl = new Float(10);\n\t\t// Bolean\n\t\tboolean bl = true;\n\n\t\t// ARREGLOS\n\t\t// string\n\t\tString[] veString = new String[5];\n\t\tveString... | [
"0.6055292",
"0.5880963",
"0.58221716",
"0.577096",
"0.57237",
"0.56905264",
"0.5683042",
"0.5662417",
"0.5660817",
"0.56494725",
"0.56452066",
"0.5634712",
"0.56343645",
"0.5620386",
"0.56143934",
"0.56054956",
"0.5604583",
"0.5561933",
"0.55477864",
"0.5531889",
"0.55287665... | 0.0 | -1 |
/ Metodos especificos (FIM) / Metodos decorator incrementados (INICIO) | @Override
public void setRunning(boolean running)
{
this.step.setRunning(running);
// Rogers: Executar o metodo stepActive do provStepListener...
synchronized (provStepListeners)
{
for (int i = 0; i < provStepListeners.size(); i++)
{
StepListener stepListener = provStepListeners.get(i);
stepListener.stepActive(this.getTrans(), this.getStepMeta(),
this);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }",
"public void aumentarIntentos() {\r\n this.intentos += 1;\r\n }",
"@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }",
"public void setIncrementoIntelige... | [
"0.6274711",
"0.5944525",
"0.57363844",
"0.5562344",
"0.5551613",
"0.5546629",
"0.5518165",
"0.5503144",
"0.54737645",
"0.5465451",
"0.5435652",
"0.5434898",
"0.5383425",
"0.5378793",
"0.53770477",
"0.53633845",
"0.5361796",
"0.53527164",
"0.5339449",
"0.5339014",
"0.5326061"... | 0.0 | -1 |
/ Metodos decorator incrementados (FIM) / Demais metodos decorator ... | public StepInterface getOriginalStep()
{
return this.step;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void aumentarIntentos() {\r\n this.intentos += 1;\r\n }",
"public int incrementar(int contador){\nSystem.out.println(\"Escoge la cantidad a incrementar\");\nnum=teclado.nextInt();\nfor(int i=0 ; i<num ; i++){\ncontador=contador+1;}\nreturn contador;}",
"public void aumentarAciertos() {\r\n ... | [
"0.5668669",
"0.5656626",
"0.5589407",
"0.5567358",
"0.5549338",
"0.55153304",
"0.5514012",
"0.543571",
"0.5415253",
"0.53491646",
"0.5336722",
"0.53290635",
"0.53270394",
"0.5325991",
"0.5325991",
"0.5319997",
"0.5293292",
"0.52788454",
"0.525816",
"0.52555573",
"0.52548844"... | 0.0 | -1 |
Replaces elements with the results of applying the given op to their current values. | public ParallelLongArrayWithFilter replaceWithMapping(LongOp op) {
ex.invoke(new PAS.FJLTransform
(this, firstIndex, upperBound, null, op));
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void AllReduce(double[] inData, double[] outData, MpiOp op) {\n\n double[] result = new double[inData.length];\n\n\n\n Reduce(inData, result, op, 0);\n\n //REDUCE_TAG--;\n\n Bcast(result, 0);\n\n System.arraycopy(result, 0, outData, 0, result.length);\n }",
"public void AllReduce(float[] i... | [
"0.55168605",
"0.5494627",
"0.54504156",
"0.5411679",
"0.5371721",
"0.5345463",
"0.5309706",
"0.52831745",
"0.52715147",
"0.5256555",
"0.5200538",
"0.51948446",
"0.5181016",
"0.5136381",
"0.5134148",
"0.5125416",
"0.51065874",
"0.5090496",
"0.50710887",
"0.5051648",
"0.503476... | 0.5022884 | 25 |
Replaces elements with the results of applying the given op to their indices | public ParallelLongArrayWithFilter replaceWithMappedIndex(IntToLong op) {
ex.invoke(new PAS.FJLIndexMap
(this, firstIndex, upperBound, null, op));
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer mutate(int index);",
"public ParallelLongArrayWithFilter replaceWithMappedIndex(IntAndLongToLong op) {\r\n ex.invoke(new PAS.FJLBinaryIndexMap\r\n (this, firstIndex, upperBound, null, op));\r\n return this;\r\n }",
"default void forEachIndexed(@NotNull IndexedCo... | [
"0.6387578",
"0.6117461",
"0.5585608",
"0.54307985",
"0.53915906",
"0.52521366",
"0.5245169",
"0.52030015",
"0.5177572",
"0.5130125",
"0.50286555",
"0.50280654",
"0.49813655",
"0.49731955",
"0.49471062",
"0.49283734",
"0.48841983",
"0.48825005",
"0.48792326",
"0.48584715",
"0... | 0.6407218 | 0 |
Replaces elements with the results of applying the given mapping to each index and current element value | public ParallelLongArrayWithFilter replaceWithMappedIndex(IntAndLongToLong op) {
ex.invoke(new PAS.FJLBinaryIndexMap
(this, firstIndex, upperBound, null, op));
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void transform(IntIndexedContainer arr, IntIndexedContainer map) {\n for (int i = 0; i < arr.size(); ++i)\n arr.set(i, map.get(arr.get(i)));\n }",
"public static <T> void indexedMap(T[][] matrix, TriFunction<T, Integer, Integer, T> mapFunction){\n for (int i = 0; i != ma... | [
"0.665274",
"0.60192484",
"0.5627032",
"0.5547603",
"0.55054396",
"0.540914",
"0.52332",
"0.5171149",
"0.5099956",
"0.50773865",
"0.5017442",
"0.5016022",
"0.5002968",
"0.49505347",
"0.49451992",
"0.49372858",
"0.48888746",
"0.4880278",
"0.4866138",
"0.48615783",
"0.4855454",... | 0.44944572 | 86 |
Replaces elements with results of applying the given generator. | public ParallelLongArrayWithFilter replaceWithGeneratedValue(LongGenerator generator) {
ex.invoke(new PAS.FJLGenerate
(this, firstIndex, upperBound, null, generator));
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic Generator<T> transform(Generator<T> generator)\n\t{\n\t\tCollection<T> elements = generator.toCollection();\n\t\tif (elements.isEmpty())\n\t\t{\n\t\t\treturn Generator.emptyGenerator();\n\t\t}\n\t\tfinal T best = Collections.max(elements, cmp);\n\t\t// return... | [
"0.6068728",
"0.53283334",
"0.532394",
"0.511673",
"0.49794573",
"0.4931656",
"0.49161437",
"0.4864353",
"0.4851265",
"0.48362985",
"0.48230025",
"0.480105",
"0.47976506",
"0.47835523",
"0.46914077",
"0.4663049",
"0.46606052",
"0.4637264",
"0.46159184",
"0.4615854",
"0.461341... | 0.5481639 | 1 |
Replaces elements with the given value. | public ParallelLongArrayWithFilter replaceWithValue(long value) {
ex.invoke(new PAS.FJLFill
(this, firstIndex, upperBound, null, value));
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setElement(T newvalue);",
"void setArrayElement(int index, Object value);",
"void setArrayElement(int index, Object value);",
"@Override\n\tpublic void replaceAt(int index, int e) {\n\t\t\n\t}",
"void replace(CtElement element);",
"public void setValue(T v){\n \telement = v;\n }",
"pu... | [
"0.6535948",
"0.6266167",
"0.6266167",
"0.6105803",
"0.60740215",
"0.60076565",
"0.59126264",
"0.58987445",
"0.58956724",
"0.5862355",
"0.5810165",
"0.57937926",
"0.57247055",
"0.5712015",
"0.5709324",
"0.56915575",
"0.5646339",
"0.5640044",
"0.5633498",
"0.5596332",
"0.55859... | 0.5592784 | 20 |
Replaces elements with results of applying op(thisElement, otherElement) | public ParallelLongArrayWithFilter replaceWithMapping(BinaryLongOp combiner,
ParallelLongArray other) {
ex.invoke(new PAS.FJLPACombineInPlace
(this, firstIndex, upperBound, null,
other, other.firstIndex - firstIndex, combiner));
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"S op(final S a, final S b);",
"private void mutate() {\n\t\tfor (int i = 0; i < population; ++i) {\n\t\t\tpopulationArray.set(i, populationArray.get(i).generateNeighbor());\n\t\t}\n\t}",
"public ValueEvidenceStatement replace(Term t, ArgSpec another) {\n Term newLeftSide = (Term) leftSide.replace(t, another... | [
"0.522362",
"0.5222686",
"0.51890415",
"0.5183473",
"0.5155729",
"0.51210564",
"0.5111044",
"0.507259",
"0.50266165",
"0.50196457",
"0.5017805",
"0.5009531",
"0.4903412",
"0.49002746",
"0.48931345",
"0.48843125",
"0.4873031",
"0.48681685",
"0.4864893",
"0.48533702",
"0.484102... | 0.0 | -1 |
Replaces elements with results of applying op(thisElement, otherElement) | public ParallelLongArrayWithFilter replaceWithMapping(BinaryLongOp combiner,
long[] other) {
ex.invoke(new PAS.FJLCombineInPlace
(this, firstIndex, upperBound, null, other,
-firstIndex, combiner));
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"S op(final S a, final S b);",
"private void mutate() {\n\t\tfor (int i = 0; i < population; ++i) {\n\t\t\tpopulationArray.set(i, populationArray.get(i).generateNeighbor());\n\t\t}\n\t}",
"public ValueEvidenceStatement replace(Term t, ArgSpec another) {\n Term newLeftSide = (Term) leftSide.replace(t, another... | [
"0.5224932",
"0.52226955",
"0.5189412",
"0.51838994",
"0.5154777",
"0.51211745",
"0.5112227",
"0.5072927",
"0.5027502",
"0.5019748",
"0.5017065",
"0.5008125",
"0.4902723",
"0.49019736",
"0.48919255",
"0.488357",
"0.48733434",
"0.48679742",
"0.48657513",
"0.48539698",
"0.48433... | 0.0 | -1 |
Returns a new ParallelLongArray containing only unique elements (that is, without any duplicates). | public abstract ParallelLongArray allUniqueElements(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int[] removeDuplicatesWithParallelStream() {\n\t return Arrays.stream(randomIntegers).parallel().distinct().toArray();\n\t}",
"public static void main(String[] args) {\n System.out.print(unique(new int[]{100, 11, 34, 11, 52, 61, 1, 34}));\n // should print: `[1, 11, 34, 52, 61]`\n\n\n }",
"p... | [
"0.6238351",
"0.6054454",
"0.60346323",
"0.5789638",
"0.5681835",
"0.56407934",
"0.56373674",
"0.5622834",
"0.55872065",
"0.550053",
"0.5495944",
"0.54764676",
"0.54390985",
"0.5438372",
"0.5429786",
"0.5397097",
"0.53853893",
"0.53759456",
"0.53667235",
"0.5332102",
"0.53221... | 0.8268857 | 0 |
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given selector returns true | public abstract ParallelLongArrayWithFilter withFilter(LongPredicate selector); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSelector();",
"Selector getSelector();",
"public Selector getSelector();",
"public Selector getSelector();",
"public java.lang.String getSelector() {\n return selector_;\n }",
"public interface ISelector {\n\t\tboolean accept(int startOffset, int endOffset);\n\t}",
"public boolean is(Stri... | [
"0.5771624",
"0.55821854",
"0.5370721",
"0.5370721",
"0.5272064",
"0.5242402",
"0.5171117",
"0.5139268",
"0.5128696",
"0.5021267",
"0.49985775",
"0.49728233",
"0.49114656",
"0.48813117",
"0.48365372",
"0.483636",
"0.4792136",
"0.4774735",
"0.47521368",
"0.4726395",
"0.4721782... | 0.0 | -1 |
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) or the given selector returns true | public abstract ParallelLongArrayWithFilter orFilter(LongPredicate selector); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSelector();",
"Selector getSelector();",
"public Selector getSelector();",
"public Selector getSelector();",
"public interface ISelector {\n\t\tboolean accept(int startOffset, int endOffset);\n\t}",
"public java.lang.String getSelector() {\n return selector_;\n }",
"org.apache.xmlbeans.im... | [
"0.5718748",
"0.55020094",
"0.530158",
"0.530158",
"0.5219185",
"0.51965475",
"0.5161259",
"0.51317924",
"0.5090186",
"0.50464267",
"0.5028422",
"0.4971005",
"0.48351362",
"0.48196608",
"0.48175058",
"0.48108664",
"0.4809729",
"0.47792947",
"0.47763473",
"0.47615898",
"0.4751... | 0.42347232 | 74 |
Este metodo lo utilizaran tanto el comprador, vendedor como voluntario | public List<BarrioCovid> readAll(String email); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConversorVelocidad() {\n //setTemperaturaConvertida(0);\n }",
"public Venta(Producto producto,Cliente comprador,Cliente vendedor){\n this.fechaCompra=fechaCompra.now();\n this.comprador=comprador;\n this.vendedor=vendedor;\n this.producto=producto;\n ... | [
"0.6178035",
"0.60598433",
"0.59553784",
"0.5927076",
"0.5861715",
"0.57965165",
"0.5789869",
"0.5788832",
"0.57787144",
"0.57737166",
"0.57244337",
"0.5717652",
"0.5709624",
"0.57039744",
"0.57006043",
"0.56942326",
"0.56673133",
"0.5658971",
"0.5651745",
"0.56384695",
"0.56... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
int r = findDuplicate(new int[]{1,1,3});
System.out.println(r);
} | {
"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 |
Find the intersection point of the two runners. | public static int findDuplicate(int[] nums) {
int tortoise = nums[0];
int hare = nums[0];
do {
tortoise = nums[tortoise];
hare = nums[nums[hare]];
} while (tortoise != hare);
// Find the "entrance" to the cycle.
int ptr1 = nums[0];
int ptr2 = tortoise;
while (ptr1 != ptr2) {
ptr1 = nums[ptr1];
ptr2 = nums[ptr2];
}
return ptr1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Point intersectionWith(Line other) {\r\n double m1 = this.lineSlope();\r\n double m2 = other.lineSlope();\r\n double b1 = this.intercept();\r\n double b2 = other.intercept();\r\n double interX, interY;\r\n if (m1 == m2) {\r\n return null;\r\n // th... | [
"0.66485566",
"0.6585186",
"0.6537769",
"0.6164613",
"0.6117116",
"0.6036562",
"0.6034723",
"0.60311353",
"0.58979344",
"0.58964866",
"0.58515346",
"0.5846914",
"0.58349127",
"0.5800805",
"0.5791819",
"0.5752135",
"0.5751108",
"0.5749849",
"0.57240367",
"0.5699673",
"0.568525... | 0.0 | -1 |
if there is not any working query and recyclerView shows recipes | public void searchNextPage() {
if (!isPerformingQuery
&& isViewingRecipes
&& !isQueryExhausted().getValue()) {
recipeRepository.searchNextPage();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int getCount(){\n return mRecipeList.size();\n }",
"public void fetch_dinner_recipes(){\n ref.orderByChild(\"rType\").equalTo(\"Dinner\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot data... | [
"0.6574764",
"0.63874334",
"0.6298619",
"0.6293899",
"0.6278567",
"0.6256587",
"0.62553877",
"0.61441827",
"0.61424434",
"0.6077518",
"0.5967125",
"0.5964804",
"0.59173083",
"0.5915686",
"0.58902454",
"0.5883089",
"0.58752525",
"0.58518153",
"0.5847558",
"0.5840823",
"0.58077... | 0.0 | -1 |
write BFS to find the path in graph | public static void bfs(TreeNode root){
Queue<TreeNode> queue=new LinkedList<>();
queue.add(root);
System.out.println(root.val);
root.visited=true;
while (!queue.isEmpty()){
TreeNode node=queue.remove();
TreeNode child=null;
if((child=getUnVisitedChiledNode(node))!=null){
child.visited=true;
System.out.println(child.val);
queue.add(child);
}
}
// cleearNodes();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void BFS(int s, int d) \r\n { \r\n int source = s;\r\n int destination = d;\r\n boolean visited[] = new boolean[V];\r\n int parent[] = new int[V];\r\n \r\n // Create a queue for BFS \r\n LinkedList<Integer> queue = new LinkedList<Integer>(); \r\n \r\n // Mark ... | [
"0.72746855",
"0.7152896",
"0.71358055",
"0.70671934",
"0.7030948",
"0.70166665",
"0.70094544",
"0.697796",
"0.6961376",
"0.6930679",
"0.6928025",
"0.6898312",
"0.6880919",
"0.68505275",
"0.68423235",
"0.68331844",
"0.68309456",
"0.681672",
"0.67554486",
"0.6750702",
"0.67354... | 0.0 | -1 |
write DFS to find the path in tree/graph | public static void dfs(TreeNode root) {
Stack<TreeNode> stack = new Stack<TreeNode>();
stack.push(root);
root.visited = true;
System.out.println(root.val);
while (!stack.isEmpty()){
TreeNode node = stack.peek();
TreeNode child=getUnVisitedChiledNode(node);
if (child!=null){
child.visited=true;
System.out.println(child.val);
stack.push(child);
}else {
stack.pop();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void dfs(){\n // start from the index 0\n for (int vertex=0; vertex<v; vertex++){\n // check visited or not\n if (visited[vertex]==false){\n Explore(vertex);\n }\n }\n }",
"public void DFS() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>... | [
"0.7539872",
"0.7396174",
"0.73568255",
"0.7246184",
"0.71798587",
"0.7164541",
"0.70701987",
"0.69838613",
"0.6904394",
"0.6888504",
"0.68607324",
"0.68369603",
"0.6824561",
"0.6818806",
"0.68013734",
"0.67515624",
"0.6716343",
"0.671036",
"0.6706205",
"0.67060554",
"0.66736... | 0.61561745 | 85 |
TODO Autogenerated method stub | public static void main(String[] args) {
Vechicle vechicle = new DefaultTester().new Car();
vechicle.println();
Vechicle.blowHorn();
} | {
"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 |
constuctor to create a shape with default values | public MovingPolygon() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Shape() { this(X_DEFAULT, Y_DEFAULT); }",
"public Shape() {\n\t\tthis(DEFAULT_X_POS, DEFAULT_Y_POS, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}",
"public Shape()\n\t{\n\t\tinitShape();\n\t}",
"protected Shape() {}",
"public NewShape() {\r\n\t\tsuper();\r\n\t}",
"public S... | [
"0.83792317",
"0.7968617",
"0.7586108",
"0.7536016",
"0.7297807",
"0.72031444",
"0.68992436",
"0.6813102",
"0.6754716",
"0.6734872",
"0.66213906",
"0.651673",
"0.6473666",
"0.64699286",
"0.64657795",
"0.6461105",
"0.6437104",
"0.64016575",
"0.6388556",
"0.63535124",
"0.633529... | 0.0 | -1 |
constuctor to create a shape | public MovingPolygon(int x, int y, int width, int height, int mw, int mh, Color bc, float penWidth, int pathType) {
super(x ,y ,width, height ,mw ,mh ,bc, penWidth, pathType);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Shape()\n\t{\n\t\tinitShape();\n\t}",
"protected Shape() {}",
"public NewShape() {\r\n\t\tsuper();\r\n\t}",
"public Shape() {\n\t\tthis(DEFAULT_X_POS, DEFAULT_Y_POS, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}",
"public Shape() { this(X_DEFAULT, Y_DEFAULT); }",
"public S... | [
"0.8289544",
"0.8281261",
"0.82613015",
"0.81408775",
"0.81214947",
"0.7611033",
"0.7458726",
"0.74544394",
"0.7367474",
"0.73197275",
"0.73164624",
"0.72371703",
"0.7208006",
"0.71864694",
"0.71119237",
"0.7093162",
"0.70595676",
"0.6999798",
"0.6991041",
"0.6959715",
"0.693... | 0.0 | -1 |
draw the shape with the fill color If it is selected, draw the handles | public void draw(Graphics g) {
Graphics2D g2d = (Graphics2D) g;
g2d.setStroke(new BasicStroke((float) penWidth));
g2d.setPaint(borderColor);
if (width<height){
g2d.drawPolygon(new int[]{p.x,p.x + (width / 2),p.x + width, p.x + (width/2)}, new int[] {p.y,p.y + (width/3),p.y,p.y + width},4);
}else{
g2d.drawPolygon(new int[]{p.x,p.x + (height/2),p.x + height, p.x + (height/2)}, new int[] {p.y,p.y+(height/3),p.y,p.y + height},4);
}
drawHandles(g);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void drawSelector(int x) {\n int currentTime = millis() / 100;\n noStroke();\n if (currentTime % 13 == 0) {\n fill(200, 200, 100, 30);\n }\n else if (currentTime % 13 == 1) {\n fill(200, 200, 100, 40);\n }\n else if (currentTime % 13 == 2) {\n fill(200, 200, 100, 50... | [
"0.72585386",
"0.7191538",
"0.7005504",
"0.6957414",
"0.692919",
"0.68768954",
"0.6785264",
"0.674027",
"0.67124194",
"0.66426957",
"0.6620447",
"0.65770966",
"0.6562886",
"0.6533879",
"0.6499723",
"0.649811",
"0.64803064",
"0.64397216",
"0.64202327",
"0.6410844",
"0.631972",... | 0.5842666 | 91 |
Returns whether the point is in the shape or not | public boolean contains(Point mousePt) {
return (p.x <= mousePt.x && mousePt.x <= (p.x + width + 1) && p.y <= mousePt.y && mousePt.y <= (p.y + height + 1));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isInShape(Point p) \n\t{\n\t\tPoint centre = new Point((int)posX + diam/2, (int)posY + diam/2);\n\t\t//If distance between two points if less than or equal to radius, true is\n\t\t//returned\n\t\treturn p.distance(centre) <= diam/2;\n\t}",
"@Override\n\tpublic boolean contains(Vec2f pnt) {\n\t\tbo... | [
"0.8139418",
"0.773842",
"0.72597563",
"0.71527797",
"0.71527797",
"0.71527797",
"0.7111965",
"0.70683897",
"0.7067004",
"0.7029154",
"0.70281583",
"0.69988114",
"0.69783294",
"0.69671947",
"0.6827879",
"0.68174803",
"0.6763905",
"0.6729886",
"0.6727108",
"0.6708872",
"0.6699... | 0.6499522 | 45 |
Exception to be thrown, when a player does not have enough reputation points | public NotEnoughReputationException(String playerIdentifier) {
this.message = String.format(NOT_ENOUGH_REPUTATION, playerIdentifier);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void action(Player myPlayer)\n {\n if (getNbUtilisation() == 0) {\n System.out.println(\"Not possible\");\n } else {\n int nHealthy = getPointsHealthy();\n myPlayer.addLifePoints(nHealthy);\n\n }\n }",
"public int checkNoOfExplosivesPlayerHolds () { re... | [
"0.6142504",
"0.6034421",
"0.5969373",
"0.5943141",
"0.59430015",
"0.5935904",
"0.59341174",
"0.58540946",
"0.5828023",
"0.58093905",
"0.5800412",
"0.57841706",
"0.57601064",
"0.5699354",
"0.5692671",
"0.56719345",
"0.5641229",
"0.5631751",
"0.56244445",
"0.56232846",
"0.5622... | 0.76311755 | 0 |
implementar baja de alumno busca alumno por id y eliminalo de las listas | @Override
public void elimina(int id_alumno) {
try {
Alumno a = admin.alumnosTotales.get(id_alumno);
int area = a.area;
char grupo = a.grupo;
admin.fisicoMatematicas.remove(a);
admin.biologicasYsalud.remove(a);
admin.cienciasSociales.remove(a);
admin.humanidadesYartes.remove(a);
admin.fotoLabPrensa.remove(a);
admin.viajesyhoteleria.remove(a);
admin.nutriologo.remove(a);
admin.labQuimico.remove(a);
Iterador<Profesor> ite = new Iterador<>(admin.profesores);
while (ite.hasNext()) {
Profesor profeActual = ite.next();
if (profeActual.area == area & profeActual.grupo == grupo) {
profeActual.eliminaAlumnoLista(a);
}
}
admin.alumnosTotales.remove(id_alumno);
} catch (NullPointerException e) {
System.out.println("No existe el Alumno");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Alumno> listarAlumnos() throws SQLException {\r\n\r\n List<Alumno> listaAlumnos = new ArrayList<Alumno>();\r\n String sql = \"SELECT matricula, alumnos.nombre ,alumnos.idGrupo, alumnos.idPrograma,programas.nombre, \"\r\n + \"grupos.grupo FROM alumnos inner join programas in... | [
"0.66375834",
"0.63554186",
"0.62842166",
"0.62531275",
"0.6241247",
"0.6215118",
"0.6199227",
"0.61895066",
"0.6181179",
"0.6130138",
"0.6116587",
"0.6113016",
"0.6112546",
"0.6107018",
"0.6067936",
"0.6067783",
"0.6050814",
"0.6037405",
"0.60344267",
"0.6028132",
"0.6012307... | 0.0 | -1 |
send to the server | @Override
public void onClick(View v) {
RequestQueue queue = Volley.newRequestQueue(getApplicationContext());
String url = "http://mafiv.freeoda.com/android_php/poll_add.php";
StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {
@Override
public void onResponse(String s) {
Log.e("rs", s);
JSONObject num;
try {
num = new JSONObject(s);
if(num.getString("data").equals("1"))
{
Toast.makeText(CreatePoll.this,"Poll created successfully",Toast.LENGTH_LONG).show();
Intent intent=new Intent(CreatePoll.this,PollFeature.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
finish();
}
else
Toast.makeText(CreatePoll.this,"Poll not created",Toast.LENGTH_LONG).show();
}
catch (Exception e)
{
Log.e("except",e.toString());
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError volleyError) {
Log.e("err", volleyError.toString());
}
}) {
@Override
protected Map<String, String> getParams() throws AuthFailureError {
JSONObject json = new JSONObject();
Map<String, String> params = new HashMap<>();
year_array=new int[4];
for(int i=0;i<4;i++)
{
year_array[i]=-1;
}
branch_array=new int[2];
for(int i=0;i<2;i++)
{
branch_array[i]=-1;
}
int count_year=0,count_branch=0;
if(year1.isChecked())
{
count_year++;
//Sem1="sem1";
year_array[0]=1;
}
if(year2.isChecked())
{
count_year++;
//Sem3="sem3";
year_array[1]=2;
}
if(year3.isChecked())
{
count_year++;
//Sem5="sem5";
year_array[2]=3;
}
if(year4.isChecked())
{
count_year++;
//Sem7="sem7";
year_array[3]=4;
}
if(CS.isChecked())
{
count_branch++;
//Cs="CS";
branch_array[0]=1;
}
if(IT.isChecked())
{
count_branch++;
branch_array[1]=0;
}
JSONArray desc=new JSONArray();
JSONArray audi=new JSONArray();
int total_count=count_branch*count_year;
int[] audience_array=new int[total_count];
int k=0;
for(int i=0;i<4;i++)
{
for(int j=0;j<2;j++)
{
if(year_array[i]!=-1 && branch_array[j]!=-1)
{
int x;
x=2*year_array[i]-branch_array[j];
audience_array[k]=x;
audi.put(String.valueOf(audience_array[k]));
k++;
}
}
}
try{
num_audience=2;
audience=new String[num_audience];
json.put("question",question.getText().toString());
json.put("expiry_date",date1.getText().toString());
json.put("number_of_options",String.valueOf(num_choices));
SaveUserData saveUserData = new SaveUserData(CreatePoll.this);
UserData userData = saveUserData.Logged_User_Data();
String id = userData.id;
json.put("student_id", id);
String[] choice_array=new String[num_choices];
for(int i=0;i<num_choices;i++)
{
choice_array[i]=editTextArray[i].getText().toString();
desc.put(choice_array[i]);
Log.e("des",choice_array[i]);
}
json.put("description",desc);
json.put("number_of_audience",String.valueOf(total_count));
json.put("audience",audi);
}
catch(Exception e){
}
params.put("data", json.toString());
String x = params.toString();
Log.e("ss", x);
return params;
}
};
queue.add(stringRequest);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void send() {\n\t}",
"void send();",
"public void send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n ... | [
"0.7791699",
"0.763996",
"0.737613",
"0.7181808",
"0.71308005",
"0.7115496",
"0.69585687",
"0.6862911",
"0.68594205",
"0.6819974",
"0.6815351",
"0.6779991",
"0.67527974",
"0.67434686",
"0.67356384",
"0.6729514",
"0.6716417",
"0.6704719",
"0.66741943",
"0.666201",
"0.66508657"... | 0.0 | -1 |
Recueprta los expedientes segun empresa, cta y itemexpediete | public List<Expediente> getListaXEmpCtaExp(Object o) throws DAOException{
List<Expediente> lista = null;
try{
lista = (List) getSqlMapClientTemplate().queryForList(getNameSpace() + ".getListaXEmpCtaExp", o);
}catch(Exception e) {
throw new DAOException (e);
}
return lista;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void exibirPacientes(){\n System.out.println(\"--- PACIENTES CADASTRADOS ----\");\r\n String comando = \"select * from paciente order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r... | [
"0.62786335",
"0.619418",
"0.6185667",
"0.6163885",
"0.61546355",
"0.6145082",
"0.61435837",
"0.6135183",
"0.6110447",
"0.6086774",
"0.60608256",
"0.6059199",
"0.60346216",
"0.60264474",
"0.5987554",
"0.59456104",
"0.5942372",
"0.5917164",
"0.5907769",
"0.5896919",
"0.5868611... | 0.0 | -1 |
Setter for name attribute. | public void setName(final String name) {
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(java.lang.String value) {\n this.name = val... | [
"0.81484294",
"0.8146402",
"0.81443363",
"0.81376135",
"0.8129821",
"0.8129821",
"0.81097597",
"0.8097158",
"0.8097158",
"0.8093285",
"0.8093285",
"0.8093285",
"0.8077186",
"0.8077186",
"0.8077186",
"0.80596435",
"0.8056894",
"0.8055096",
"0.8055096",
"0.8055096",
"0.8055096"... | 0.80712825 | 18 |
Getter for name attribute. | public String getName() {
return this.name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}",
"public String getName() { return name.get(); }",
"PropertyName getName();",
"public final String getNameAttribute() {\n return getAttributeValue(\"name\");\n }",
"public String getName(){\n\n //re... | [
"0.81026936",
"0.80755186",
"0.8059494",
"0.80340767",
"0.79893327",
"0.79730064",
"0.7928497",
"0.79191417",
"0.7911628",
"0.7911628",
"0.7911628",
"0.7911628",
"0.7911628",
"0.7911628",
"0.7911628",
"0.7911628",
"0.7911628",
"0.7911628",
"0.7911628",
"0.7911628",
"0.7911628... | 0.0 | -1 |
Checks if the domain contains an item. | public abstract boolean contains(Object item); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasItem() {\n return null != item;\n }",
"public boolean haveItem(Items item)\n {\n //boolean haveItem = Inventory.values().contains(item);\n return Inventory.containsValue(item);\n }",
"public boolean contains(E item) {\n \tDblListnode<E> n = items.getNext();\n ... | [
"0.7015877",
"0.69651645",
"0.69569325",
"0.69454527",
"0.6928883",
"0.69159424",
"0.68811643",
"0.684915",
"0.683439",
"0.68322897",
"0.6829979",
"0.68230355",
"0.6817867",
"0.68015033",
"0.67301226",
"0.6712683",
"0.6663876",
"0.66552085",
"0.6628343",
"0.6602698",
"0.65932... | 0.71502614 | 0 |
Computes the size of the domain. For categorical features it returns the number of catogeries, for numeric features upper interval bound lower interval bound. | public abstract double getRangeSize(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int domainDimension() {\n return dvModel.totalParamSize();\r\n }",
"int getDimensionsCount();",
"int sizeOfClassificationArray();",
"int numberOfDimensions();",
"int getScaleCount();",
"abstract int calculateMaximumSize(int axis);",
"public int rangeSize() {\n return Math.abs(max - mi... | [
"0.6773735",
"0.6170616",
"0.60527587",
"0.6015728",
"0.59294546",
"0.59206057",
"0.5852834",
"0.57726043",
"0.57472026",
"0.5728067",
"0.57187146",
"0.5707135",
"0.5587388",
"0.55466866",
"0.55188227",
"0.5508396",
"0.55025697",
"0.55025697",
"0.54989463",
"0.54850185",
"0.5... | 0.62660664 | 1 |
Checks whether a given weka instance is contained in the feature domain | public abstract boolean containsInstance(double value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean containsInstance(Instance instance);",
"public boolean containsFeature(Feature f);",
"boolean containsInstance(EObject modelElement);",
"boolean containsFeature(Feature feature);",
"boolean contains(SimpleFeature feature);",
"boolean hasInstance();",
"private boolean holds(Instance inst) {\n\t\... | [
"0.6955224",
"0.6540698",
"0.64890075",
"0.64353967",
"0.6234803",
"0.6088478",
"0.6064915",
"0.60300183",
"0.59113514",
"0.5868085",
"0.5719156",
"0.5719156",
"0.5719156",
"0.5719156",
"0.5719156",
"0.57027304",
"0.56651527",
"0.5626083",
"0.5598211",
"0.5566097",
"0.5449289... | 0.5931693 | 8 |
Created by java2 on 11/10/2016. | public interface Api {
@GET("users?site=stackoverflow")
Call<UserResponse> getUser(@Query("pagesize")int size,@Query("sort")String sort);
@GET("comments?site=stackoverflow")
Call<CommentsResponse> getComments(@Query("order")String order,@Query("sort")String votes,@Query("pagesize")int size,@Query("min")int min);
@GET("posts/{ids}?site=stackoverflow")
Call<PostResponse> getPostResponseCall(@Path("ids") long id);
@GET("users/{ids}/questions?site=stackoverflow")
Call<QuestionsResponse> getQuestionsResponseCall (@Path("ids")long id),@Query("sort")String votes,
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"zzafe mo29840Y() throws RemoteException;",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"zzang mo29839S() throws RemoteException;",
"private void m50366E() {\n }",
"private void kk12() {\n\n\t}",
"@Overri... | [
"0.580329",
"0.5737098",
"0.57294655",
"0.57002676",
"0.5635883",
"0.55975586",
"0.5586567",
"0.55755997",
"0.5558721",
"0.555292",
"0.5548838",
"0.55414295",
"0.5514341",
"0.5508377",
"0.5494752",
"0.5471238",
"0.5465438",
"0.5446559",
"0.5446559",
"0.5446559",
"0.5446559",
... | 0.0 | -1 |
ticket booking scheduling activity | @Override
public void planTrip(String departingAddress, String departingZipCode,
String arrivalZipCode, Date preferredArrivalTime) {
FlightSchedule schedule = airlineAgency.bookTicket(departingZipCode, arrivalZipCode, preferredArrivalTime);
//cab pickup scheduling activity
cabAgency.requestCab(departingAddress, schedule.getFlightNumber());
//Test output
System.out.println("Test output: trip planned");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void generateSchedule(){\n\t\t\n\t}",
"Schedule createSchedule();",
"private void executeBookingTransaction(BankClient clientLoggedIn) throws ParseException {\n\t\t\n\t\tAppointment object = new Appointment(new SimpleDateFormat(\"dd/MM/yyyy\").parse(dateOfAppointment), employee, clientLoggedIn, false);\... | [
"0.6381306",
"0.6373757",
"0.6373557",
"0.60066557",
"0.5995253",
"0.59921664",
"0.59916323",
"0.5970109",
"0.59242105",
"0.5909048",
"0.5904601",
"0.5889821",
"0.5856862",
"0.5827654",
"0.58263004",
"0.58244187",
"0.5814265",
"0.5809811",
"0.5799486",
"0.57809174",
"0.577631... | 0.0 | -1 |
Create a mapper for entity and key type. | public AbstractMapper( Class<K> keyType, Class<E> entityType ) {
this.entityType = entityType;
this.keyType = keyType;
entityMetaData = new EntityMetaData<>( entityType );
deriveAssemblerFunction();
deriveDisAssemblerFunction();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Mapper(componentModel = \"spring\", uses = {UtilisateurMapper.class, DepotMapper.class})\npublic interface UtilisateurDepotPKMapper extends EntityMapper<UtilisateurDepotPKDTO, UtilisateurDepotPK> {\n\n @Mapping(source = \"utilisateur.id\", target = \"utilisateurId\")\n @Mapping(source = \"depot.id\", target... | [
"0.63617265",
"0.6113413",
"0.59660375",
"0.5954307",
"0.59369195",
"0.59128404",
"0.5894798",
"0.58640814",
"0.58046544",
"0.5796362",
"0.5775283",
"0.5772846",
"0.5759578",
"0.57309437",
"0.5730403",
"0.57086575",
"0.57058465",
"0.5701729",
"0.5688474",
"0.56849086",
"0.567... | 0.6737007 | 0 |
Reflect on fields and methods and try to find getters for all persistent fields. Combine getter invocations to take the E apart. | final void deriveDisAssemblerFunction() {
if ( tryAsPart() ) {
return;
}
tryFieldAndMethodReflection();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void findFields() {\n for(Class<?> clazz=getObject().getClass();clazz != null; clazz=clazz.getSuperclass()) {\r\n\r\n Field[] fields=clazz.getDeclaredFields();\r\n for(Field field:fields) {\r\n ManagedAttribute attr=field.getAnnotation(ManagedAttribute.class);\r\... | [
"0.65108645",
"0.6169687",
"0.6094634",
"0.6087453",
"0.6086472",
"0.5900132",
"0.58739",
"0.5789697",
"0.5782191",
"0.5569379",
"0.5543894",
"0.55008173",
"0.530249",
"0.52884823",
"0.5278519",
"0.5273527",
"0.5266192",
"0.52658725",
"0.5252323",
"0.52306485",
"0.5192104",
... | 0.46984103 | 64 |
Get the column names. | public Set<String> persistentFieldNames() {
return entityMetaData.typeMap.keySet();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getColumnNames();",
"public ArrayList<String> getColumnNames();",
"public String[] getColumnNames()\n {\n return columnNames;\n }",
"public Tuple<String> getColumnNames() {\n return resultTable.getColumnNames();\r\n }",
"protected ArrayList<String> getColumnNames() {\... | [
"0.8325628",
"0.8264167",
"0.8142769",
"0.799105",
"0.7932031",
"0.78631127",
"0.7846529",
"0.78443915",
"0.7734457",
"0.7707603",
"0.7696835",
"0.768563",
"0.7657189",
"0.76009107",
"0.75600487",
"0.75176704",
"0.7487811",
"0.7417797",
"0.7405968",
"0.73914784",
"0.73871857"... | 0.0 | -1 |
Override this method for a more efficient implementation. | public E implode( Object... parts ) {
if ( assembler != null ) {
Object[] checkedParts = check( parts );
return assembler.apply( checkedParts );
} else {
throw new DAOException(
"No assembler constructor found with signature "
+ assemblerCtor() );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() ... | [
"0.63161206",
"0.622488",
"0.61484057",
"0.6008991",
"0.596647",
"0.596647",
"0.59558463",
"0.58012635",
"0.5797051",
"0.5747714",
"0.5747714",
"0.57267565",
"0.57256615",
"0.57205933",
"0.571795",
"0.57123893",
"0.5697134",
"0.5695822",
"0.5677006",
"0.5653385",
"0.5651604",... | 0.0 | -1 |
A string representation of a constructor the entityType preferably should have. | String assemblerCtor() {
StringBuilder sb = new StringBuilder( entityType.getSimpleName() );
sb.append( "( " );
String params
= entityMetaData.typeMap.values().stream().map( c -> c.
getSimpleName() )
.collect( Collectors.joining( ", " ) );
return sb.append( params ).append( ')' ).toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getClassConstruct() {\n return super.getClassConstruct();\n }",
"public String toString()\n {\n return MessageService.getTextMessage(SQLState.TI_SQL_TYPE_NAME) +\n \": \" + getSQLTypeName();\n }",
"@Override\n public String toString() {\n StringBu... | [
"0.6052557",
"0.59961116",
"0.5948235",
"0.59044766",
"0.58529854",
"0.58149827",
"0.577181",
"0.57711786",
"0.572773",
"0.5673312",
"0.5653188",
"0.56266713",
"0.5613712",
"0.5596008",
"0.55950665",
"0.55893004",
"0.5588266",
"0.5569086",
"0.5534887",
"0.5529135",
"0.5526008... | 0.766714 | 0 |
Read the persistent fields of the object as an array. | public Object[] explode( E e ) {
if ( null == disAssembler ) {
throw new IllegalStateException( "the definition of " + entityType.getCanonicalName()
+ " does provide the required getters" );
}
return disAssembler.apply( e );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DBField[] getFields()\n {\n // Note: this method is called frequently\n if (!this.fieldArrayReady) {\n // optimize access to field array\n synchronized (this.fieldMap) {\n if (!this.fieldArrayReady) { // test again inside lock\n this.f... | [
"0.6364719",
"0.632869",
"0.6090495",
"0.6089878",
"0.6073624",
"0.60634017",
"0.60391724",
"0.6001888",
"0.5981356",
"0.5954967",
"0.5940659",
"0.5932627",
"0.5921997",
"0.5905331",
"0.5899913",
"0.5852692",
"0.5845045",
"0.5842221",
"0.58372164",
"0.58273417",
"0.5809869",
... | 0.0 | -1 |
Get the table name for the entity. Use annotation if available, use 'simple plural' otherwise. | public String tableName() {
if ( tableName != null ) {
return tableName;
}
TableName annotation = this.entityType().getAnnotation( TableName.class );
if ( annotation != null ) {
tableName = annotation.value();
} else {
tableName = entityType().getSimpleName().toLowerCase() + 's';
}
return tableName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String getDatabaseTableName(String entityName);",
"String getTableName();",
"public String getTableName(Class<?> aClass) {\n\t\tString result = aClass.getSimpleName();\n\t\tif (this.hasAnnotation(aClass, Table.class)) {\n\t\t\tTable anno = (Table) this.getAnnotation(aClass, Table.class);\n\t\t\... | [
"0.7737382",
"0.73834926",
"0.73126143",
"0.7275925",
"0.717737",
"0.71104777",
"0.7072653",
"0.7059884",
"0.70495135",
"0.7038329",
"0.698263",
"0.69581205",
"0.6947878",
"0.6942038",
"0.6942038",
"0.69364494",
"0.6930602",
"0.6930074",
"0.69171196",
"0.69171196",
"0.6915436... | 0.8169414 | 0 |
Get the column name(s) for the key column(e), typically the forming primary key. Note that the minimal, but also default length of the returned array is one. | public Set keyNames() {
return new LinkedHashSet<>( asList( idName() ) );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getKeyColumns()\n {\n return KEY_COLUMNS;\n }",
"public String[] getKeyNames() \n {\n DBField f[] = this.getKeyFields();\n String kn[] = new String[f.length];\n for (int i = 0; i < f.length; i++) {\n kn[i] = f[i].getName();\n }\n retur... | [
"0.8010128",
"0.7490569",
"0.6866171",
"0.6706847",
"0.6617829",
"0.6617558",
"0.6546925",
"0.6523881",
"0.6445099",
"0.63766307",
"0.636404",
"0.6360445",
"0.6335365",
"0.6305911",
"0.62804806",
"0.6265676",
"0.6257957",
"0.61827314",
"0.6172338",
"0.61231506",
"0.6109852",
... | 0.0 | -1 |
Get the name of the id field or column. | public String idName() {
return entityType().getSimpleName().toLowerCase() + "id";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@AutoEscape\n\tpublic String getFieldId();",
"String getIdFieldName(String collectionName) {\n HashMap<String,Object> collection = getCollectionConfig(collectionName);\n if (collection == null || !collection.containsKey(\"idField\")) return null;\n String indexField = collection.get(\"idFiel... | [
"0.7406472",
"0.73003983",
"0.72629714",
"0.7221325",
"0.7189387",
"0.7163415",
"0.7150071",
"0.71482396",
"0.71094495",
"0.6988331",
"0.6984782",
"0.6863205",
"0.6852645",
"0.6705209",
"0.6705209",
"0.6705209",
"0.6705209",
"0.6697525",
"0.66581815",
"0.6633984",
"0.6606559"... | 0.78248906 | 0 |
Get the name of the natural key of this relation, if it is not the default. | public String naturalKeyName() {
return idName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRelationPropertyName() {\n return getForeignPropertyName();\n }",
"default String getKey() {\n return key(getClassName(), getName());\n }",
"public String getKey() {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (getLineNo() != null) {\r\n\t\t\tbuilder.appen... | [
"0.6419598",
"0.62959236",
"0.6242158",
"0.6220474",
"0.6211336",
"0.6191609",
"0.61615294",
"0.61547416",
"0.6132665",
"0.6132665",
"0.6051198",
"0.6021561",
"0.6002643",
"0.5994752",
"0.5992123",
"0.59886175",
"0.5979299",
"0.58858955",
"0.58529174",
"0.5843779",
"0.5822282... | 0.7697379 | 0 |
Get a field type by position. | public Class<?> getFieldType( int i ) {
return entityMetaData.getFieldType( i );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getFieldType(int nFieldIndex) {\n\treturn 0;\n}",
"public int getColumnType(int position) {\n return columns[position].getType();\n }",
"@Override\n public synchronized LttngEventField getField(int position) {\n LttngEventField returnedField = null;\n String label = null;\... | [
"0.65644175",
"0.64673656",
"0.63729376",
"0.63611674",
"0.63010275",
"0.6238323",
"0.62375265",
"0.62130547",
"0.61458635",
"0.5980016",
"0.5950724",
"0.59244686",
"0.59061104",
"0.58980215",
"0.5869998",
"0.5861615",
"0.58108693",
"0.5738703",
"0.57271415",
"0.5714707",
"0.... | 0.65793604 | 0 |
Get the numer for fields of the mapped entity. | public int getFieldCount() {
return entityMetaData.getFields().size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumFields()\n {\n return getFieldTypMap().size();\n }",
"public int getFieldCount()\n {\n return this.fieldMap.size();\n }",
"public int getNumberFields ()\n\t{\n\t\treturn m_Fields.size();\n\t}",
"int getFieldsCount();",
"int getFieldsCount();",
"@Override\n pu... | [
"0.74006444",
"0.7252469",
"0.72352886",
"0.70540166",
"0.70540166",
"0.6984199",
"0.69612503",
"0.688268",
"0.6866501",
"0.683775",
"0.68326545",
"0.67920583",
"0.6714068",
"0.665191",
"0.6620988",
"0.6568154",
"0.6488615",
"0.6355685",
"0.6349738",
"0.6245189",
"0.6207631",... | 0.7743848 | 0 |
Get the id from the entity. | public abstract Function<E, K> keyExtractor(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getEntityId ( ) {\n\t\treturn invokeSafe ( \"getEntityId\" );\n\t}",
"public long getEntityId();",
"@SuppressWarnings(\"unchecked\") @Override public K getIdByEntity(E entity) {\n K id = (K) session.getIdentifier(entity);\n LOG.info(String.format(\"Found id %d for entity %s.\",id, entity));\n ... | [
"0.8014005",
"0.7859314",
"0.77659506",
"0.76514333",
"0.7638161",
"0.72751445",
"0.71754146",
"0.71754146",
"0.71754146",
"0.7111368",
"0.70893514",
"0.7084094",
"0.7084094",
"0.7084094",
"0.7084094",
"0.7084094",
"0.7084094",
"0.7084094",
"0.7084094",
"0.7084094",
"0.708409... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
v = inflater.inflate(R.layout.fragment_docket_lists, container, false);
this.initialisation();
this.listner();
db = new SamgoSQLOpenHelper(getContext());
parentLayout = (RelativeLayout) v.findViewById(R.id.parent_layout);
SharedPreferences settings = getActivity().getSharedPreferences(Config.MYFREFS, 0);
String background_image = settings.getString("background_image", "test");
Log.e("TAG", "background_image >> " + background_image);
if (background_image != null) {
if (background_image.equalsIgnoreCase("background_1")) {
parentLayout.setBackgroundResource(R.drawable.background_1);
} else if (background_image.equalsIgnoreCase("background_2")) {
parentLayout.setBackgroundResource(R.drawable.background_2);
} else if (background_image.equalsIgnoreCase("background_3")) {
parentLayout.setBackgroundResource(R.drawable.background_3);
} else if (background_image.equalsIgnoreCase("background_4")) {
parentLayout.setBackgroundResource(R.drawable.background_4);
} else if (background_image.equalsIgnoreCase("background_5")) {
parentLayout.setBackgroundColor(color.white);
}
}
docketDataList.clear();
docketDataList = db.getDocketDetails();
//Log.e("docketno",docketDataList.get(0).getJob_id()+"");
docketListAdapter = new DocketListsAdapter(getActivity(), docketDataList, FragmentDocketList.this, db);
docketList.setAdapter(docketListAdapter);
docketListAdapter.notifyDataSetChanged();
return v;
} | {
"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 | private void listner() {
docketList.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
// TODO Auto-generated method stub
}
});
} | {
"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 onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
} | {
"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 |
This static method solves an 8puzzle with a given initial state using two heuristics which compare the board configuration with the goal configuration by the number of mismatched tiles, and by the Manhattan distance, respectively. The goal configuration is set for all puzzles as 1 2 3 8 4 7 6 5 | public static String solve8Puzzle(State s0)
{
// 1) Return null if the puzzle is not solvable.
if(s0.solvable() != true){
return null;
}
// 2) Otherwise, solve the puzzle with two heuristics. The two solutions may be different
// but must have the same length for optimality.
Heuristic h[] = {Heuristic.TileMismatch, Heuristic.ManhattanDist };
String [] moves = new String[2];
for (int i = 0; i < 2; i++)
{
moves[i] = AStar(s0, h[i]);
}
// 3) Combine the two solution strings into one that would print out in the
// output format specified in Section 5 of the project description.
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<Vec2i> solve(int[][] grid, Vec2i start, Vec2i goal, Heuristic h){\n if(h == null){ //if null replace with default heuristic\n h = new Heuristic() {\n @Override\n\n public double eval(Vec2i loc) {\n double dx = (loc.x - goal.x);\n... | [
"0.599865",
"0.5942972",
"0.59361476",
"0.59226024",
"0.5912903",
"0.58878404",
"0.5802931",
"0.5791637",
"0.5747645",
"0.5740662",
"0.5620146",
"0.5604274",
"0.55096364",
"0.54960257",
"0.54952836",
"0.5468246",
"0.54585314",
"0.54433596",
"0.5438282",
"0.5435858",
"0.543555... | 0.6376121 | 0 |
This method implements the A algorithm to solve the 8puzzle with an input initial state s0. The algorithm is described in Section 3 of the project description. Precondition: the puzzle is solvable with the initial state s0. | public static String AStar(State s0, Heuristic h)
{
// TODO
// Initialize the two lists used by the algorithm.
OrderedStateList OPEN = new OrderedStateList(h, true);
OrderedStateList CLOSE = new OrderedStateList(h, false);
// Implement the algorithm described in Section 3 to solve the puzzle.
// Once a goal state s is reached, call solutionPath(s) and return the solution string.
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String solve8Puzzle(State s0)\n\t{\n\t\n\t\t// 1) Return null if the puzzle is not solvable. \n\t\tif(s0.solvable() != true){\n\t\t\treturn null;\n\t\t}\n\n\t\t// 2) Otherwise, solve the puzzle with two heuristics. The two solutions may be different\n\t\t// but must have the same length for optim... | [
"0.7761187",
"0.65817946",
"0.6492717",
"0.6462889",
"0.64340127",
"0.6370308",
"0.63553023",
"0.6266724",
"0.6226018",
"0.6186048",
"0.6164839",
"0.6158036",
"0.6128162",
"0.60697526",
"0.60002077",
"0.5972722",
"0.59615993",
"0.59492505",
"0.59478164",
"0.5941274",
"0.59358... | 0.6056417 | 14 |
From a goal state, follow the predecessor link to trace all the way back to the initial state. Meanwhile, generate a string to represent board configurations in the reverse order, with the initial configuration appearing first. Between every two consecutive configurations is the move that causes their transition. A blank line separates a move and a configuration. In the string, the sequence is preceded by the total number of moves and a blank line. See Section 5 in the projection description for an example. Call the toString() method of the State class. | private String solutionPath(State goal)
{
// TODO
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String toString()\n\t{\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tfor (int i = 0; i < 2 * size + 1; i++)\n\t\t{\n\t\t\tstringBuilder.append(\"-\");\n\t\t}\n\t\tstringBuilder.append(\"\\n|\");\n\t\tfor (int i = 0; i < state.size(); i++)\n\t\t{\n\t\t\tstringBuilder.append(state.... | [
"0.6162612",
"0.60091543",
"0.59996873",
"0.59913987",
"0.5983069",
"0.585146",
"0.5802744",
"0.5781445",
"0.56646913",
"0.5607821",
"0.55712247",
"0.55309176",
"0.5487837",
"0.5457156",
"0.54402107",
"0.5423205",
"0.5405758",
"0.53242946",
"0.53094214",
"0.52857625",
"0.5244... | 0.4866587 | 70 |
Do i need to update the correspond course in the module ?? | public Module updateModule(Long mid, Module module){
Module updateModule = repository.findById(mid).get();
updateModule.setTitle(module.getTitle());
return updateModule;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean updateCourse(Course c) {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean updateCourse(Course course) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic void updateCourse(Course course) {\n\t\tcd.updateCourse(course);\n\t}",
"private void updateCourses() {\n\t\tArrayList<Course> result... | [
"0.74959826",
"0.7492774",
"0.66945183",
"0.6617428",
"0.65847796",
"0.6467863",
"0.646662",
"0.644286",
"0.6433856",
"0.6432323",
"0.6414147",
"0.63859195",
"0.63291687",
"0.62935895",
"0.6270351",
"0.6266779",
"0.62580705",
"0.6256693",
"0.6246247",
"0.6236183",
"0.6227848"... | 0.0 | -1 |
Created by ivan on 17527. | public interface MessageRemindView extends BaseView {
void showRemindStatus(List<RemindApp> apps, boolean remind);
void openLicensing();
void openListChoice(boolean isCheck);
void updateRemindStatus(List<RemindApp> apps, boolean remind);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tprotected void interr() {\n\t... | [
"0.58159727",
"0.5793837",
"0.5768909",
"0.57173485",
"0.57173485",
"0.5709274",
"0.5673031",
"0.56584245",
"0.5658006",
"0.56453484",
"0.5635248",
"0.5625613",
"0.5625244",
"0.5604198",
"0.5595356",
"0.5574077",
"0.55691236",
"0.5563163",
"0.55589306",
"0.5545771",
"0.554318... | 0.0 | -1 |
obtain user data object from the database by id | public static User selectById(int id) {
User user = new User();
try (PreparedStatement ps = DBConnection.getConnection().prepareStatement(GET_BY_ID)){
ps.setInt(1, id);
ResultSet rs = ps.executeQuery();
while (rs.next()) {
user.setUserId(rs.getInt("User_ID"));
user.setUserName(rs.getString("User_Name"));
user.setPassword(rs.getString("Password"));
user.setDateCreated(rs.getObject("Create_Date", LocalDateTime.class));
user.setCreatedBy(rs.getString("Created_By"));
user.setLastUpdate(rs.getTimestamp("Last_Update"));
user.setLastUpdatedBy(rs.getString("Last_Updated_By"));
//
}
} catch (SQLException err) {
err.printStackTrace();
}
return user;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User getUserData(String id);",
"public User read(String id);",
"public UserInformation findInformationById(int id);",
"User getUserById(int id);",
"User loadUser(int id) throws DataAccessException;",
"UserDetails get(String id);",
"@Override\r\n\tpublic User user(int id) {\r\n\t\tMap<String,Stri... | [
"0.8618515",
"0.7901616",
"0.77581424",
"0.7720325",
"0.76831263",
"0.76545876",
"0.761163",
"0.75831646",
"0.7551879",
"0.7550726",
"0.75503683",
"0.75499785",
"0.75440896",
"0.7539197",
"0.7501485",
"0.749669",
"0.749669",
"0.7475611",
"0.74730736",
"0.7470872",
"0.74649805... | 0.76971245 | 4 |
obtain all the user list from the database | public static ObservableList<User> selectAll() {
DBConnection.startConnection();
ObservableList<User> userList = FXCollections.observableArrayList();
try (PreparedStatement ps = DBConnection.getConnection().prepareStatement(SELECT_ALL)) {
ResultSet rs = ps.executeQuery();
while (rs.next()) {
int id = rs.getInt("User_ID");
User user = selectById(id);
userList.add(user);
}
} catch (SQLException err) {
err.printStackTrace();
}
return userList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.ge... | [
"0.8757204",
"0.8285657",
"0.817035",
"0.81696814",
"0.8149199",
"0.8128437",
"0.81252927",
"0.8120641",
"0.8022098",
"0.8008853",
"0.8007173",
"0.79978305",
"0.7981332",
"0.79703677",
"0.7944682",
"0.79443973",
"0.7941575",
"0.7935542",
"0.7934239",
"0.79277915",
"0.79202074... | 0.0 | -1 |
Seteamos la cuenta padre y le ponemos el mismo tipo de cuenta que su padre | public void setCtaPadre(CuentaContable ctaPadre) {
instance.setCuentaPadre(ctaPadre);
instance.setTipoCuenta(ctaPadre.getTipoCuenta());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setType(){\r\n if(rbtnTruncamiento.isSelected()){\r\n interpretador.setTipoValores(1);\r\n in.setTipoValores(1);\r\n }else{\r\n interpretador.setTipoValores(2);\r\n in.setTipoValores(2);\r\n }\r\n getK();\r\n }",
... | [
"0.62648743",
"0.62356925",
"0.6074382",
"0.55502105",
"0.55279183",
"0.55134565",
"0.5502444",
"0.54371274",
"0.5433592",
"0.54285294",
"0.54143035",
"0.5369049",
"0.5361924",
"0.5333767",
"0.53227645",
"0.5319669",
"0.5299201",
"0.52975357",
"0.52963656",
"0.529102",
"0.529... | 0.6078787 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.