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 |
|---|---|---|---|---|---|---|
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA... | [
"0.7885475",
"0.75498515",
"0.74975353"
] | 0.0 | -1 |
Generate a bean name for the given bean definition. | String generateBeanName(BeanDefinitionV5 definition, BeanDefinitionRegistryV5 registry); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String generateBeanNameInner(BeanDefinition definition, BeanDefinitionRegistry registry) {\n\t\tString beanName = super.generateBeanName(definition, registry);\n\t\tClass<?> clasz = null;\n\t\ttry {\n\t\t\tclasz = ClassUtils.forName(definition.getBeanClassName());\n\t\t} catch (ClassNotFoundException e) {\n... | [
"0.7619321",
"0.76153797",
"0.721809",
"0.6171264",
"0.61384475",
"0.5953856",
"0.5900329",
"0.5900329",
"0.5900329",
"0.5900329",
"0.5900329",
"0.5858265",
"0.5858265",
"0.5858265",
"0.5858265",
"0.5858265",
"0.56554186",
"0.5461638",
"0.5461638",
"0.5461638",
"0.54416734",
... | 0.8296024 | 0 |
view.sumValue.setText("20"); / Log.d(TAG, "onClick() called with: v = [" + position + "]"); | @Override
public void onClick(View v)
{
try
{
String item_id = list.get(position).getItem_id();
String item_name = list.get(position).getItem_name();
String totalPrice = list.get(position).getTotalPrice();
String stockQty=list.get(position).getItem_qty();
String dicount=list.get(position).getDiscount();
String gst=list.get(position).getGst_per();
String unit_price=list.get(position).getUnit_price();
String purchase_price=list.get(position).getItem_purchase();
String status=list.get(position).getStatus();
String changedUnit=list.get(position).getUnit();
String qty = view.sumValue.getText().toString().trim();
Log.d(TAG, "onClick:Qty"+qty);
Log.d("qty", stockQty);
Log.d("item",item_name);
Log.d("item_id", item_id);
Log.d("totalPrice", totalPrice);
Log.d("purchase_price",purchase_price);
Log.d("GST",gst);
Log.d("discount",dicount);
Log.d("UnitPrice:",unit_price);
Log.d("Status",status);
int quantity = Integer.parseInt(qty);
quantity++;
if(quantity<=Integer.parseInt(stockQty) || status.equalsIgnoreCase("infinite"))
{
double totalAmont = Double.parseDouble(totalPrice) * quantity;
Log.d("totalAount", String.valueOf(totalAmont));
view.sumValue.setText(String.valueOf(quantity));
Log.d(TAG, "onClick:Qty"+quantity);
// addItem(item_id,String.valueOf(quantity),totalPrice,dicount,gst,totalAmont,unit_price);
addItem(item_id,String.valueOf(quantity),totalPrice,dicount,gst,totalAmont,unit_price,changedUnit);
getTotalQunatity();
notifyDataSetChanged();
}else
{
Toast.makeText(context,"Stock not Available",Toast.LENGTH_LONG).show();
}
}catch (Exception e)
{
Log.d(TAG, "onClick:Add Item",e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onButtonClick(View v) {\n total += value;\n TextView myTextView = (TextView) //displays total\n findViewById(R.id.textView);\n myTextView.setText(Double.toString(round(total,2)));\n }",
"public void button0OnClick(View view){ display.setText(d... | [
"0.7351079",
"0.72483015",
"0.71178776",
"0.70593333",
"0.70467305",
"0.70141333",
"0.700336",
"0.69629216",
"0.69495344",
"0.6930749",
"0.6923187",
"0.6910557",
"0.69068635",
"0.6898652",
"0.68785137",
"0.68694824",
"0.68472826",
"0.68453586",
"0.6835481",
"0.68280196",
"0.6... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected String getSalirForward() {
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 |
TODO Autogenerated method stub | @Override
protected String getPaginaMantenimiento() 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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected BaseSearchForm devuelveFormBusqueda() throws Exception {
MantenimientoCRAMatrizDiasSearchForm form = new MantenimientoCRAMatrizDiasSearchForm();
return form;
} | {
"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
protected List setFindAttributes() 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 |
TODO Autogenerated method stub | @Override
protected boolean setDeleteAttributes() throws Exception {
return false;
} | {
"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
protected boolean setSaveAttributes() throws Exception {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected BaseEditForm setObtenerRegistroAttributes() 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 |
TODO Autogenerated method stub | @Override
protected void setViewAtributes() throws Exception {
if (log.isDebugEnabled()) {
log.debug("Entering 'save' method");
}
log.debug("setAddAttributes method ....");
MantenimientoCRAMatrizDiasSearchForm f = (MantenimientoCRAMatrizDiasSearchForm) this.formBusqueda;
Pais pais = this.mPantallaPrincipalBean.getCurrentCountry();
f.setCodigoPais(pais.getCodigo());
f.setActividad(null);
f.setGrupoZona(null);
ReporteService reporteService = (ReporteService) getBean("scsicc.reporteService");
// obteniendo las lista de grupode facturacion y actividad
MantenimientoMAEClienteService clienteService = (MantenimientoMAEClienteService) getBean("spusicc.mantenimientoMAEClienteService");
Long oidMarca = clienteService
.getOidMarca(Constants.CODIGO_MARCA_DEFAULT);
Long oidCanal = clienteService
.getOidCanal(Constants.CODIGO_CANAL_DEFAULT);
Map params = new HashMap();
params.put("codigoPais", pais.getCodigo());
params.put(
"oidPais",
new Long(reporteService.getOidString("getOidPaisByCodigoPais",
params)));
params.put("oidMarca", oidMarca);
params.put("oidCanal", oidCanal);
siccGrupoFacturacionList = reporteService.getGrupoFacturacion(params);
siccActividadList = reporteService.getActividad(params);
findList(f);
this.mostrarBotonBuscar = false;
this.mostrarBotonModificar = false;
this.mostrarBotonNuevo = false;
this.mostrarBotonEliminar = false;
this.mostrarBotonConsultar = false;
} | {
"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 |
/Guardar datos en android utilizando sharedpreferences Context context = getApplicationContext(); | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final EditText editTarea = findViewById(R.id.editTarea);
final Button btnAgregar = findViewById(R.id.btnAgregar);
lista = findViewById(R.id.lista);
items = new ArrayList<>();
SharedPreferences sharprefs = getSharedPreferences("ArchivoSP", Context.MODE_PRIVATE);
/*Llamar al JSON*/
String mostrarJSON = sharprefs.getString("ListaJSON", "");
if (mostrarJSON == ""){
// 1. Instantiate an <code><a href="/reference/android/app/AlertDialog.Builder.html">AlertDialog.Builder</a></code> with its constructor
AlertDialog.Builder builder = new AlertDialog.Builder(this);
// 2. Chain together various setter methods to set the dialog characteristics
builder.setMessage(R.string.dialog_message)
.setTitle("Lista de Tareas");
// 3. Get the <code><a href="/reference/android/app/AlertDialog.html">AlertDialog</a></code> from <code><a href="/reference/android/app/AlertDialog.Builder.html#create()">create()</a></code>
AlertDialog dialog = builder.create();
}else {
/*Deserializacion del JSON de string a ARRAY*/
items = new Gson().fromJson(mostrarJSON, new TypeToken<List<String>>(){}.getType());
}
/*Monta los items dentro de un layout para luego montarlo sobre el contror de lista*/
ADP = new ArrayAdapter(getApplicationContext(), R.layout.list_item_modlist, items);
lista.setAdapter(ADP);
btnAgregar.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
items.add(editTarea.getText().toString());
SharedPreferences sharprefs = getSharedPreferences("ArchivoSP", Context.MODE_PRIVATE);
/*crea variable de editor que me permita editar el ArchivoSP*/
SharedPreferences.Editor editorArchivoSP = sharprefs.edit();
/*proceso de formato json para convertir de tablas a tipo string*/
/*Serializacion del JSON*/
String SerializeJSON = new Gson().toJson(items);
editorArchivoSP.putString("ListaJSON", SerializeJSON);
/*guardar los cambios*/
editorArchivoSP.apply();
ADP.notifyDataSetChanged();
}
});
/*evento para eliminar la palaba de la lista*/
lista.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
@Override
public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
SharedPreferences sharprefs = getSharedPreferences("ArchivoSP", Context.MODE_PRIVATE);
SharedPreferences.Editor editorArchivoSP = sharprefs.edit();
items.remove(position);
String SerializeJSON = new Gson().toJson(items);
editorArchivoSP.putString("ListaJSON", SerializeJSON);
/*guardar los cambios*/
editorArchivoSP.apply();
ADP.notifyDataSetChanged();
return false;
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static SharedPreferences getSharedPreferences(Context context) {\n return PreferenceManager.getDefaultSharedPreferences(context);\n }",
"public Prefs(Activity context){\n this.preferences = context.getSharedPreferences(prefContext, Context.MODE_PRIVATE);\n this.context = context;\... | [
"0.6832667",
"0.6811073",
"0.67457503",
"0.6721362",
"0.67110914",
"0.65139794",
"0.6494729",
"0.6444546",
"0.642408",
"0.64200985",
"0.6413178",
"0.6376975",
"0.6372755",
"0.6355031",
"0.63199556",
"0.6313015",
"0.6310133",
"0.6269295",
"0.62588567",
"0.6255695",
"0.62405574... | 0.0 | -1 |
Adds another hsExtendedRef value. | public DmcAttribute<?> addHsExtendedRef(SomeRelation value){
DmcAttribute<?> attr = ((ExtendedRefHSDMO) core).addHsExtendedRef(value);
return(attr);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addExtendedReferenceType(ExtendedReferenceTypeDefinition ertd) throws ResultException, DmcValueException {\n if (checkAndAdd(ertd.getObjectName(),ertd,extendedReferenceTypeDefs) == false){\n \tResultException ex = new ResultException();\n \tex.addError(clashMsg(ertd.getObjectName(),ertd,e... | [
"0.61649203",
"0.5676605",
"0.561752",
"0.56005174",
"0.5586366",
"0.53755206",
"0.53448534",
"0.53326637",
"0.5218011",
"0.5217323",
"0.5206308",
"0.51896304",
"0.5121128",
"0.5121103",
"0.50732267",
"0.5042213",
"0.5032398",
"0.49750978",
"0.49544966",
"0.49230206",
"0.4896... | 0.71483296 | 0 |
Deletes a hsExtendedRef value. | public void delHsExtendedRef(SomeRelation value){
((ExtendedRefHSDMO) core).delHsExtendedRef(value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void remHsExtendedRef(){\n ((ExtendedRefHSDMO) core).remHsExtendedRef();\n }",
"@Override\n public void delete(String reference) throws DataStoreException\n {\n numDeleteRequests.incrementAndGet();\n dataMap.remove(reference);\n }",
"@Override\n\tpublic void delete(Exper... | [
"0.72001797",
"0.5859277",
"0.5815961",
"0.5711108",
"0.57073736",
"0.5653947",
"0.5650225",
"0.56484836",
"0.5624165",
"0.562297",
"0.56201744",
"0.55992687",
"0.5569553",
"0.55673915",
"0.5563304",
"0.5563304",
"0.5563304",
"0.5563304",
"0.5561222",
"0.5561222",
"0.5558485"... | 0.795559 | 0 |
Removes the hsExtendedRef attribute value. org.dmd.dmg.generators.BaseDMWGenerator.formatMV(BaseDMWGenerator.java:2186) | public void remHsExtendedRef(){
((ExtendedRefHSDMO) core).remHsExtendedRef();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void delHsExtendedRef(SomeRelation value){\n ((ExtendedRefHSDMO) core).delHsExtendedRef(value);\n }",
"public void unsetExtendable()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(EXTENDAB... | [
"0.59849274",
"0.5591989",
"0.5206428",
"0.5187411",
"0.5159945",
"0.5027199",
"0.500037",
"0.49998394",
"0.49975353",
"0.4991959",
"0.49560297",
"0.49303874",
"0.49203336",
"0.49162632",
"0.4914148",
"0.48690897",
"0.4864043",
"0.48036855",
"0.47907493",
"0.47877872",
"0.477... | 0.7128995 | 0 |
TODO Autogenerated method stub | @Override
public boolean doInsertList(List<SysUser> b) throws Exception {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean doUpdate(SysUser b) throws Exception {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean doDelete(SysUser b) throws Exception {
return false;
} | {
"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<SysUser> getAll() 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 |
TODO Autogenerated method stub | @Override
public SysUser getById(SysUser b) 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 |
TODO Autogenerated method stub | @Override
public List<SysUser> getAllByPage(PageBean<SysUser> pageBean) 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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getAllByPageCount(PageBean<SysUser> pageBean) throws Exception {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getAllByPageCountOr(PageBean<SysUser> pageBean) throws Exception {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Created by philip.zhang on 2017/1/20. | public interface RetroiftService {
@GET("catalog")
Call<CgBaseEntity> getCategories(@Query("key") String key);
@FormUrlEncoded
@POST("query")
Call<BookBaseEntity> getBookList(@Field("catalog_id") String id, @Field("pn") String
pn, @Field("rn") String rn, @Field("key") String key);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private sta... | [
"0.61178225",
"0.6037951",
"0.58216614",
"0.5771409",
"0.5771409",
"0.57705796",
"0.5732127",
"0.5699051",
"0.56728894",
"0.56540674",
"0.5618628",
"0.5592547",
"0.5586609",
"0.55862343",
"0.55808866",
"0.5563356",
"0.55624956",
"0.55571014",
"0.555691",
"0.5554294",
"0.55206... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void initDefaultCommand() {
setDefaultCommand(new ReverseBatterShot());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | public void setSpeed(double power) {
this.shootLeft.set(power);
this.shootRight.set(-power);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public void FireOut() {
this.piston.set(Value.kReverse);
} | {
"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 |
/ Is Service Running | private boolean isServiceRunning(String strClassName) {
boolean bRunning = false;
try{
ActivityManager am = (ActivityManager)mContext.getSystemService(Context.ACTIVITY_SERVICE);
List<ActivityManager.RunningServiceInfo> servicesList = am.getRunningServices(Integer.MAX_VALUE);
Iterator<ActivityManager.RunningServiceInfo> serviceList = servicesList.iterator();
while(serviceList.hasNext()) {
ActivityManager.RunningServiceInfo si = (ActivityManager.RunningServiceInfo)serviceList.next();
if(strClassName.equals(si.service.getClassName()) == true) {
bRunning = true;
break;
}
}
}catch (Exception e)
{
e.printStackTrace();
}
return bRunning;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isServiceRunning();",
"public boolean isRunning() {\n return (service != null) && service.isMonitoring();\n }",
"public synchronized static boolean isServiceRunning(){\n return prefs.getBoolean(IS_SERVICE_RUNNING, false);\n }",
"private void CheckIfServiceIsRunning() {\n\t\... | [
"0.92020696",
"0.862998",
"0.85309404",
"0.8377343",
"0.83406687",
"0.82875365",
"0.8202974",
"0.7934504",
"0.77053833",
"0.77053833",
"0.77053833",
"0.77053833",
"0.77053833",
"0.77053833",
"0.76353997",
"0.76353997",
"0.76353997",
"0.76353997",
"0.76353997",
"0.7604476",
"0... | 0.7418866 | 30 |
/ Set Start Service | private void setStartService(String strPackage, String strClassName) {
Intent intent = new Intent();
ComponentName comName = new ComponentName(strPackage, strClassName);
intent.setComponent(comName);
mContext.startService(new Intent().setComponent(comName));
intent = null;
comName = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void startService() {\n\t\t//if (!isServiceRunning(Constants.SERVICE_CLASS_NAME))\n\t\tthis.startService(new Intent(this, LottoService.class));\n\t}",
"public void startService() {\n log_d( \"startService()\" );\n \tint state = execStartService();\n\t\tswitch( state ) {\n\t\t\tcase STATE_CONN... | [
"0.70792013",
"0.697241",
"0.69460875",
"0.69394076",
"0.6899278",
"0.68235207",
"0.6814452",
"0.67941946",
"0.67510366",
"0.6714767",
"0.6702263",
"0.66934085",
"0.66765714",
"0.6660152",
"0.66227317",
"0.6602205",
"0.65383554",
"0.6535056",
"0.6528037",
"0.65037626",
"0.648... | 0.6946882 | 2 |
TODO: miss copy constructor? Make serializable? TODO: These constructors are a mess. Copy effects need to be reworked altogether, hopefully clean it up then. | public CreateTokenCopyTargetEffect(boolean useLKI) {
this();
this.useLKI = useLKI;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void copyConstructor(){\n\t}",
"@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}",
"private void __sep__Constructors__() {}",
"private Object copy ( Object record )\n\t{\n\t try\n {\n ByteArrayOutputStream baos = new ByteArrayOutputStream ();\n ObjectOu... | [
"0.6202211",
"0.59327143",
"0.58600277",
"0.58279634",
"0.5808818",
"0.5767713",
"0.5763797",
"0.5753044",
"0.57339805",
"0.5721229",
"0.57035446",
"0.5681295",
"0.56685245",
"0.56506324",
"0.564875",
"0.56398374",
"0.5634025",
"0.56102824",
"0.5585959",
"0.557683",
"0.554763... | 0.0 | -1 |
firebase storage ref, used to retrieve image | public void setFileRef() { this.fileRef = fileRef; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getImage() {\n StorageReference storageReference = FirebaseStorage.getInstance().getReference();\n StorageReference photoReference = storageReference.child(\"images/\" + globals.chosenProp);\n\n ImageView imageView = (ImageView) findViewById(R.id.ivImage);\n\n final long ON... | [
"0.73129296",
"0.6947997",
"0.6857365",
"0.68151134",
"0.6788917",
"0.6764751",
"0.67332304",
"0.6717775",
"0.6700885",
"0.6700135",
"0.6667845",
"0.6637434",
"0.662398",
"0.6609476",
"0.66044194",
"0.65703356",
"0.6551465",
"0.6539259",
"0.65106696",
"0.6504082",
"0.6503911"... | 0.0 | -1 |
file path in firebase storage, used to display image | public void setFilePath(String filePath) {
this.filePath = filePath;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 1) {\n // Make sure the request was successful\n if (resultCode == RESULT_OK) {\n try {\n\n\n imageView.setImageURI(data.getData()); // ... | [
"0.69521177",
"0.69422287",
"0.6868679",
"0.6811574",
"0.6767011",
"0.6702292",
"0.66866183",
"0.66685206",
"0.665786",
"0.6553164",
"0.6475625",
"0.6468534",
"0.6449684",
"0.6420366",
"0.6419774",
"0.6419774",
"0.64175373",
"0.6279202",
"0.62755364",
"0.62421477",
"0.6231698... | 0.0 | -1 |
True if current panel was clicked on (false otherwise) | public ImagePanelView(ImageModel imageModel) {
this.imageModel = imageModel;
setAlignmentY(TOP_ALIGNMENT);
setBounds(0, 0, WIDTH, HEIGHT);
setPreferredSize(new Dimension(WIDTH, HEIGHT));
setMaximumSize(new Dimension(WIDTH, HEIGHT));
setBackground(Color.LIGHT_GRAY);
setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
setBorder(BorderFactory.createLineBorder(Color.BLACK));
// Create on click event
createClickEvent();
// Add components to the panel
initializeComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isClicked() { return clicked; }",
"public boolean isClicked() {\n\t\treturn clicked;\n\t}",
"public boolean isClicked() {\n\t\tif(GameMouse.getInstance().getX() < x || GameMouse.getInstance().getX() > x + width) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\tif(GameMouse.getInstanc... | [
"0.7163924",
"0.6940344",
"0.6849289",
"0.67796975",
"0.6745424",
"0.6711163",
"0.66613644",
"0.6620371",
"0.6560826",
"0.64274186",
"0.6416849",
"0.6404072",
"0.62800056",
"0.6253477",
"0.6228036",
"0.6142214",
"0.612702",
"0.611192",
"0.60732365",
"0.60689414",
"0.605871",
... | 0.0 | -1 |
Override `add` method to make sure all components added to this panel add the corresponding mouse listener | @Override
public Component add(Component comp) {
comp.addMouseListener(mouseListener);
return super.add(comp);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void addMouseListener(MouseListener l) { }",
"void addMouseListener(MouseListener mouseListener);",
"private void addingDesignPanelMouseListener() {\n designPanel.addMouseListener(new MouseListener() {\n @Override\n public void mouseClicked(MouseEvent e) {... | [
"0.73884046",
"0.73428607",
"0.7183056",
"0.7157321",
"0.7128587",
"0.70653427",
"0.7035561",
"0.6984968",
"0.6978092",
"0.6848896",
"0.67966175",
"0.6770193",
"0.66557854",
"0.66419935",
"0.65136564",
"0.6400762",
"0.6365345",
"0.63208157",
"0.6290545",
"0.62879926",
"0.6281... | 0.8139619 | 0 |
Checks whether the view has been selected | public boolean isSelected() {
return selected;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasActiveView();",
"boolean hasClickView();",
"public boolean isSelectionChanged();",
"public abstract boolean hasSelection();",
"public boolean isSomethingSelected() {\r\n \t\treturn graph.getSelectionCell() != null;\r\n \t}",
"boolean isInview();",
"public boolean isSelected() { \n \tretur... | [
"0.7256782",
"0.7179442",
"0.7000915",
"0.6976459",
"0.68592685",
"0.6843752",
"0.667325",
"0.66603875",
"0.6644386",
"0.65215",
"0.64002967",
"0.6357962",
"0.63258815",
"0.63258815",
"0.63258815",
"0.6313134",
"0.6303247",
"0.6299292",
"0.6286534",
"0.6283515",
"0.6253591",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void mouseReleased(MouseEvent 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 mousePressed(MouseEvent 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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void mouseExited(MouseEvent 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 mouseEntered(MouseEvent 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 |
Chamado quando o banco de dados precisa ser atualizado | @Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void atualizarBD(){\n SchemaUpdate se = new SchemaUpdate(hibernateConfig);\n se.execute(true, true);\n }",
"@Override\n\tpublic void atualizar(Produto entidade) {\n\n\t}",
"public void actualizarFechaComprobantes() {\r\n if (utilitario.isFechasValidas(cal_fecha_inicio.get... | [
"0.6518544",
"0.6501133",
"0.63638175",
"0.6300111",
"0.6245178",
"0.6227801",
"0.6223539",
"0.6220217",
"0.61857665",
"0.6160444",
"0.6147552",
"0.61358666",
"0.61065525",
"0.6085888",
"0.6040685",
"0.6040441",
"0.6038633",
"0.6036474",
"0.60296315",
"0.60256547",
"0.6008446... | 0.0 | -1 |
workaround for wizards api | static boolean areAllStepsValid(WizardDescriptor descriptor) {
// first step does not need to be checked, just the 2nd and more
Boolean isValid = (Boolean) descriptor.getProperty(RunConfigurationPanel.VALID);
if (isValid != null && !isValid) {
return false;
}
isValid = (Boolean) descriptor.getProperty(PhpFrameworksPanel.VALID);
if (isValid != null && !isValid) {
return false;
}
@SuppressWarnings("unchecked")
Map<org.netbeans.modules.php.spi.phpmodule.PhpModuleExtender, Boolean> validity = (Map<org.netbeans.modules.php.spi.phpmodule.PhpModuleExtender, Boolean>) descriptor.getProperty(PhpExtenderPanel.VALID);
if (validity != null) {
for (Boolean extenderValid : validity.values()) {
if (!extenderValid) {
return false;
}
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IWizard getWizard();",
"public void testRegisterWizardPanel() {\n System.out.println(\"registerWizardPanel\");\n Object id = null;\n WizardPanelDescriptor panel = null;\n Wizard instance = new Wizard();\n instance.registerWizardPanel(id, panel);\n }",
"protected boo... | [
"0.7204567",
"0.64624995",
"0.6430772",
"0.6345518",
"0.6258899",
"0.6204712",
"0.6192718",
"0.6146671",
"0.6087707",
"0.6003804",
"0.5906284",
"0.5891222",
"0.5876201",
"0.58635074",
"0.58547914",
"0.58491063",
"0.58328706",
"0.5811574",
"0.57211727",
"0.5719683",
"0.570747"... | 0.0 | -1 |
prevent incorrect default values (empty project => back => existing project) | private void initDescriptor(WizardDescriptor settings) {
settings.putProperty(ConfigureProjectPanel.IS_PROJECT_DIR_USED, null);
settings.putProperty(ConfigureProjectPanel.PROJECT_DIR, null);
settings.putProperty(ConfigureProjectPanel.PROJECT_NAME, null);
settings.putProperty(ConfigureProjectPanel.SOURCES_FOLDER, null);
settings.putProperty(ConfigureProjectPanel.LOCAL_SERVERS, null);
settings.putProperty(ConfigureProjectPanel.PHP_VERSION, null);
settings.putProperty(ConfigureProjectPanel.ENCODING, null);
settings.putProperty(RunConfigurationPanel.VALID, null);
settings.putProperty(RunConfigurationPanel.RUN_AS, null);
settings.putProperty(RunConfigurationPanel.COPY_SRC_FILES, null);
settings.putProperty(RunConfigurationPanel.COPY_SRC_TARGET, null);
settings.putProperty(RunConfigurationPanel.COPY_SRC_TARGETS, null);
settings.putProperty(RunConfigurationPanel.COPY_SRC_ON_OPEN, null);
settings.putProperty(RunConfigurationPanel.URL, null);
settings.putProperty(RunConfigurationPanel.INDEX_FILE, null);
settings.putProperty(RunConfigurationPanel.REMOTE_CONNECTION, null);
settings.putProperty(RunConfigurationPanel.REMOTE_DIRECTORY, null);
settings.putProperty(RunConfigurationPanel.REMOTE_UPLOAD, null);
settings.putProperty(RunConfigurationPanel.HOSTNAME, null);
settings.putProperty(RunConfigurationPanel.PORT, null);
settings.putProperty(RunConfigurationPanel.ROUTER, null);
settings.putProperty(PhpFrameworksPanel.VALID, null);
settings.putProperty(PhpFrameworksPanel.EXTENDERS, null);
settings.putProperty(PhpExtenderPanel.VALID, null);
settings.putProperty(RemoteConfirmationPanel.REMOTE_FILES, null);
settings.putProperty(RemoteConfirmationPanel.REMOTE_CLIENT, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void emptyProjectFile_getProjectName_CorrectValue() throws FatalException, URISyntaxException {\n final IProjectConfig projectConfig = getEmptyProjectConfig();\n final String expected = \"project 2\";\n final String actual = projectConfig.getProjectName();\n Assert.ass... | [
"0.57498634",
"0.5675331",
"0.5664948",
"0.54912555",
"0.5464912",
"0.5464912",
"0.5455647",
"0.54482955",
"0.54331166",
"0.53909796",
"0.5387103",
"0.53570485",
"0.52896106",
"0.52559173",
"0.52544373",
"0.52329963",
"0.52275884",
"0.5225589",
"0.52104616",
"0.51958543",
"0.... | 0.0 | -1 |
Exercise 4.1 Write a method to display the content of the queue as it was inserted | public void display(){
for(int i = 0;i < n_items;++i){
System.out.print(queue_array[(i + front) % max_size] + " ");
}
System.out.println();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void display() {\n System.out.println();\t \n System.out.println(\"Contents of the queue are: \" + queue);\n }",
"public void printQueue();",
"@Override\r\n\tpublic void Display() {\n\t\t System.out.print(\"\\nQueue = \");\r\n\t if (len == 0)\r\n\t {\r\n\t ... | [
"0.77463424",
"0.7729855",
"0.76180446",
"0.7417836",
"0.7109325",
"0.7008667",
"0.6967607",
"0.6965121",
"0.69356793",
"0.6927401",
"0.6837499",
"0.6812682",
"0.6776422",
"0.67755216",
"0.66282845",
"0.6615398",
"0.661344",
"0.6550502",
"0.65378296",
"0.6514132",
"0.6512592"... | 0.7011616 | 5 |
search for propertyFile: current directory user home directory classpath | private Configuration searchConfigs(String propertyFile) throws ConfigurationException
{
return new PropertiesConfiguration(propertyFile);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static File findPropertyFile(String startPath) {\n var defaultConfig = new File(startPath);\n var list = defaultConfig\n .listFiles((dir, name) -> name\n .endsWith(GENERAL_PROPERTIES));\n\n if (nonNull(list) && list.length > 0) {\n retur... | [
"0.7137084",
"0.666293",
"0.62057257",
"0.6115656",
"0.6115656",
"0.6040913",
"0.6014066",
"0.59338856",
"0.59195054",
"0.58294046",
"0.57666403",
"0.5737599",
"0.5734315",
"0.5732875",
"0.5694852",
"0.5678052",
"0.5597691",
"0.55675554",
"0.55604273",
"0.55552566",
"0.552670... | 0.5913218 | 9 |
Creates a new FieldList | public FieldList()
{
fields = new ArrayList<AbstractField>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createFieldList(List<FieldDelimiterHolder> list) {\n for (FieldDelimiterHolder holder : list) {\n Field field = FieldFactory.create(holder.name, holder.previous, holder.next);\n fields.add(field);\n if (field.saveable()) {\n saveableFields.add(fie... | [
"0.6881524",
"0.68793637",
"0.66463697",
"0.6393695",
"0.6320454",
"0.6286383",
"0.6229957",
"0.613964",
"0.60875386",
"0.60756665",
"0.6038506",
"0.59706056",
"0.5961092",
"0.5950992",
"0.591513",
"0.58596355",
"0.5827282",
"0.5803734",
"0.57870674",
"0.57693917",
"0.5763176... | 0.7552923 | 0 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = LayoutInflater.from(getContext()).inflate(R.layout.fragment_vendor_list, null, false);
ButterKnife.bind(this, v);
apiCommunicator = this;
communicator = (Communicator) getActivity();
btnAddVendor = v.findViewById(R.id.btnAddVendor);
searchVendorEditText = v.findViewById(R.id.searchVendorEditText);
((NavigationActivity) getActivity()).onProgress();
StringRequest stringRequest = new GetVendor(apiCommunicator, new PrefManager(getContext()).getVendorId()).getStringRequest();
stringRequest.setShouldCache(false);
MySingleton.getInstance(getContext()).addToRequestQue(stringRequest);
searchVendorEditText.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
if (adapter != null) {
adapter.getFilter().filter(s);
}
}
@Override
public void afterTextChanged(Editable s) {
}
});
btnAddVendor.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
NavigationActivity.fm.beginTransaction()
.replace(R.id.productMainSubMenu, new AddVendorFragment())
.commit();
}
});
return v;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void deteleProcess() {
} | {
"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 insertProcess() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Constructor of the object. | public UploadSvl() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"public Curso() {\r\n }",
"private Instantiation(){}",
"public CyanSus() {\n\n }",
"public RngObject() {\n\t\t\n\t}",
"public PSRelation()\n {\n }",
"public Orbiter() {\n }",
"private SingleObject()\r\n {\r\n }",
... | [
"0.8545305",
"0.831852",
"0.723547",
"0.72340536",
"0.72107023",
"0.7164132",
"0.71300673",
"0.7120757",
"0.70974696",
"0.70881",
"0.70874476",
"0.70703",
"0.70538896",
"0.70458937",
"0.7041346",
"0.70325035",
"0.69965565",
"0.69725746",
"0.6971659",
"0.6948111",
"0.6944359",... | 0.0 | -1 |
Destruction of the servlet. | public void destroy() {
super.destroy(); // Just puts "destroy" string in log
// Put your code here
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void destroy() {\n\t\tsuper.destroy(); \n\t\tSystem.out.println(\"=====destory servlet=========\");\n\t}",
"public final void destroy()\n {\n log.info(\"PerformanceData Servlet: Done shutting down!\");\n }",
"@Override\r\n\tpublic void destroy() {\n\t\tSystem.out.println(\"second servlet de... | [
"0.8357607",
"0.8068459",
"0.7901647",
"0.7500556",
"0.7443264",
"0.6997455",
"0.69502616",
"0.6783583",
"0.6645547",
"0.66289103",
"0.65331405",
"0.64577305",
"0.641841",
"0.6385528",
"0.63693154",
"0.63544",
"0.63544",
"0.63544",
"0.63544",
"0.6344062",
"0.63351953",
"0.6... | 0.0 | -1 |
The doGet method of the servlet. This method is called when a form has its tag value method equals to get. | public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
ResourceRmi rsrmi = null;
try {
// 读取名为resource的rmi服务
rsrmi = (ResourceRmi) RmiEntry.iv("resource");
} catch (NotBoundException e) {
e.printStackTrace();
}
// 入口参数
String pagename = request.getParameter("pagename");
String task = request.getParameter("task");
// 页面参数
String dirid = request.getParameter("dirid");// 路径id
String appid = request.getParameter("appid");// 应用程序id
String filename = WebStr.iso8859ToGBK(request.getParameter("filename"));// filename
String naturalname = WebStr.iso8859ToGBK(request
.getParameter("naturalname"));// naturalname
if(StringUtils.isEmpty(naturalname)){
naturalname=UUID.randomUUID().toString().replaceAll("-", "");
//filename=naturalname;
}
String extendattribute = request.getParameter("extendattribute");// 其他
String active = request.getParameter("active");// 其他
String objecttype = WebStr.iso8859ToGBK(request
.getParameter("objecttype"));// 其他
String name=request.getParameter("name");
name=WebStr.iso8859ToGBK(name);
String actionurl=request.getParameter("actionurl");
if (StringUtils.isNotEmpty(pagename)) {
request.setAttribute("pagename", pagename);
}
// 进入上传页面
if ("addfile".equals(task)) {
request.setAttribute("dirid", dirid);
request.setAttribute("appid", appid);
// 执行上传操作
} else if ("uploadfile".equals(task)) {
request.setAttribute("dirid", dirid);
request.setAttribute("appid", appid);
// 添加上传记录
String format = StringUtils.substringAfterLast(filename, ".");
filename = StringUtils.substringBeforeLast(filename, ".");
if(StringUtils.contains(naturalname, ".")){
naturalname = StringUtils.substringBeforeLast(naturalname, ".");
}
UmsProtectedobject upo = new UmsProtectedobject();
upo.setNaturalname(naturalname);
if(StringUtils.isEmpty(name)){
upo.setName(filename);
}else{
upo.setName(name);
}
upo.setActionurl(actionurl);
upo.setExtendattribute(extendattribute);
upo.setParentdir(request.getParameter("dirid"));
upo.setInclusion(ProtectedObjectReference._OBJ_INCLUSTION_NO);
upo.setDescription(format);
upo.setObjecttype(objecttype);
if (StringUtils.isEmpty(active)) {
active = "0";
}
upo.setActive(active);
if (!request.getParameter("appid").equals("")) {
upo.setAppid(new Long(request.getParameter("appid")));
}
// upo.setId(null);
Serializable fileid = rsrmi.addResource(upo);
if (fileid == null) {
request.setAttribute("result", "n");
request.setAttribute("errorinfo", "名称已经存在");
} else {
String fileidSaveName = "";
if (StringUtils.isEmpty(format)) {
fileidSaveName = fileid.toString();
} else {
fileidSaveName = fileid + "." + format;
}
String path = messages.getString("BinarySavePath");
String contextpath = messages
.getString("BinarySaveContextPath");
if (contextpath == null || contextpath.equals("")) {
contextpath = getServletContext().getRealPath("");
}
// Binary的存储路径
String rspath = contextpath + path;
File file = new File(rspath);
if (!file.exists()) {
file.mkdirs();
}
String dir = rspath + fileidSaveName;
// 上传文件
DiskFileUpload fu = new DiskFileUpload();
try {
List fileItems = fu.parseRequest(request);
Iterator i = fileItems.iterator();
while (i.hasNext()) {
FileItem fi = (FileItem) i.next();
String fileName = fi.getName();
if (fileName != null) {
fi.write(new File(dir));
}
}
request.setAttribute("result", "y");
} catch (FileUploadException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
String appScript=request.getParameter("appScript");
if(StringUtils.isNotEmpty(appScript)){
try {
String script=rsrmi.loadResourceByNatural(appScript).getExtendattribute();
OnlineUserMgr olmgr = new DefaultOnlineUserMgr();
OnlineUser oluser = olmgr.getOnlineUser(request);
String loginuser = oluser.getLoginname();
String parentidX=request.getParameter("parentidX");
script=StringUtils.replace(script, "$(participant)", loginuser);
script=StringUtils.replace(script, "$(parentid)", parentidX);
dir=StringUtils.replace(dir,"\\","/");
WorkflowConsole console = (WorkflowConsole) RmiEntry.iv("wfhandle");
Object []obj={dir};
console.exeScript(script,obj);
} catch (NotBoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}
// 获得 定制的资源页的地址,默认从配置resourceweb.properties中获得,如果默认中没有那么
// 转向从资源页中获得
pagename = pagename + ".newbinary";
String pageurl = null;
try {
pageurl = web.getString(pagename);
} catch (Exception e) {
}
if (pageurl == null) {// 从资源页中获得
UmsProtectedobject upoPage = null;
try {
upoPage = rsrmi.loadResourceByNatural(pagename);
} catch (Exception e) {
}
if (upoPage != null) {
pageurl = "/" + upoPage.getId() + ".jsp";
} else {
response.setCharacterEncoding("GBK");
WebTip.htmlInfo("pagename:" + pagename + " 无效,非配置信息且非页面信息",
true, response);
return;
}
}
request.getRequestDispatcher(pageurl).forward(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOEx... | [
"0.7432514",
"0.73521626",
"0.7254457",
"0.7252173",
"0.7243877",
"0.72416717",
"0.7207163",
"0.7207163",
"0.7205729",
"0.72009903",
"0.72009677",
"0.71832514",
"0.71736676",
"0.717088",
"0.7159246",
"0.71558",
"0.71525633",
"0.71515167",
"0.71400803",
"0.7138813",
"0.7138813... | 0.0 | -1 |
The doPost method of the servlet. This method is called when a form has its tag value method equals to post. | public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doGet(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }",
"protected void doPost(HttpServletRequest request, H... | [
"0.7657621",
"0.76030004",
"0.75246334",
"0.7469326",
"0.7469255",
"0.7469255",
"0.7469255",
"0.7469255",
"0.7469255",
"0.7469255",
"0.7469255",
"0.7469255",
"0.7469255",
"0.7469255",
"0.7469255",
"0.7428146",
"0.74123853",
"0.74027944",
"0.7386053",
"0.73711526",
"0.7369957"... | 0.0 | -1 |
Initialization of the servlet. | public void init() throws ServletException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void init() throws ServletException {\n }",
"public void init() throws ServletException {\n\t\t\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws ServletException {\r\n\t\t// Put your code here\r\n\t}",
"public void init() throws... | [
"0.81665856",
"0.81269264",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895",
"0.81163895"... | 0.81787944 | 0 |
THIS NAME IS LITERALLY CANCER HITLER | public SelectedObjectUpdatingSystem() {
super(Aspect.all(SelectBox.class));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName()\r\n/* 23: */ {\r\n/* 24:20 */ return \"Wire demo receiver\";\r\n/* 25: */ }",
"public String getName()\n/* */ {\n/* 62 */ return this.name;\n/* */ }",
"private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"public String name()\r\n/* 256: ... | [
"0.61920756",
"0.58956045",
"0.587845",
"0.5871497",
"0.5855923",
"0.5794622",
"0.5788127",
"0.57766473",
"0.57753736",
"0.575935",
"0.5755199",
"0.5750796",
"0.5736193",
"0.57160366",
"0.5712976",
"0.5699017",
"0.56986433",
"0.5677761",
"0.5659132",
"0.5659132",
"0.5659132",... | 0.0 | -1 |
Writes arbitrary content to a new CSV File. The path argument should be relative. | public static void writeToCsv(String path, String content) {
File csvFile = new File(path);
try (PrintWriter pw = new PrintWriter(csvFile)) {
pw.println(content);
} catch (IOException e) {
System.out.println(e.getStackTrace());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void writeCsvFile(List<Person> currentState, Path exportPath) {\n requireNonNull(currentState);\n File dir = new File(exportPath.toString());\n dir.mkdirs();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy HH-mm-ss\");\n Date date = new Date();\n ... | [
"0.6340746",
"0.63367254",
"0.6308975",
"0.619959",
"0.60784274",
"0.6042953",
"0.6037217",
"0.5948839",
"0.59433305",
"0.58914745",
"0.58845305",
"0.58587927",
"0.5746874",
"0.5683801",
"0.5642508",
"0.5615574",
"0.5607979",
"0.5605121",
"0.5602518",
"0.557096",
"0.5563001",... | 0.74104714 | 0 |
initiating the qr code scan | @Override
public void onClick(View v) {
qrScan.initiateScan();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void scanQrCode() {\r\n cameraView.getHolder().addCallback(new SurfaceHolder.Callback() {\r\n @Override\r\n public void surfaceCreated(SurfaceHolder holder) {\r\n try {\r\n if (ActivityCompat.checkSelfPermission(getApplicationContext(), Manifest... | [
"0.72532296",
"0.6869486",
"0.6760758",
"0.6640906",
"0.661303",
"0.652298",
"0.64403796",
"0.6409258",
"0.64022946",
"0.6365861",
"0.63014",
"0.6243117",
"0.6227667",
"0.6226016",
"0.6198269",
"0.6194558",
"0.61396974",
"0.6128056",
"0.6104851",
"0.6103286",
"0.6052552",
"... | 0.63613546 | 10 |
Creates a new CallRegistry. | public CallRegistry() {
idGen = new IdGenerator();
idGen.reserve(NO_RESPONSE_EXPECTED);
currentCalls = new LinkedHashMap<Integer, RegisteredCall>();
currentIteration = new LinkedList<RegisteredCall>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RegistryCreator() {\n this.vehicleRegistry = new VehicleRegistry();\n this.inspectionResultRegistry = new InspectionResultRegistry();\n }",
"protected Registry createRegistry() {\n return new JndiRegistry();\n }",
"private static ShutdownCallbackRegistry createShutdownCallback... | [
"0.598473",
"0.59276277",
"0.57192266",
"0.5601733",
"0.5542407",
"0.55101985",
"0.5409416",
"0.5407409",
"0.53952944",
"0.5374995",
"0.53635377",
"0.5342415",
"0.5336334",
"0.5330727",
"0.5289773",
"0.5152613",
"0.5119161",
"0.5117592",
"0.509046",
"0.50621206",
"0.5060894",... | 0.7226671 | 0 |
Generates a new ID for a given RegisteredCall and registers it in this CallRegistry. RegisteredCalls call this method in their constructor and set their IDs to the returned value. | public synchronized int registerCall(RegisteredCall call) {
int id = idGen.generateAndReserve();
currentCalls.put(Integer.valueOf(id), call);
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String generateNewCallId()\n {\n\n\t\t// Generate the variant number\n\t\tint variable = NumberUtils.getIntRandom();\n\n\t\t// Convert to hex value\n\t\tString hex = NumberUtils.toHexValue(variable);\n\n\t\t// Compose the final call id\n\t\treturn \"{2B073406-65D8-A7B2-5B13-B287\" + hex + \"}\";\n\t}",... | [
"0.6925483",
"0.68003494",
"0.6506519",
"0.6500502",
"0.63654155",
"0.6226287",
"0.6178777",
"0.5816771",
"0.5803407",
"0.57628",
"0.574238",
"0.5636186",
"0.563607",
"0.5635416",
"0.56271523",
"0.5612867",
"0.55548954",
"0.5550655",
"0.54897565",
"0.5472406",
"0.540278",
"... | 0.79269296 | 0 |
Fetches a RegisteredCall for a given ID. | public synchronized RegisteredCall getRegisteredCall(int callId) {
return currentCalls.get(Integer.valueOf(callId));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic DgCallService getDgCallServiceById(Integer id) {\n\t\treturn dgCallServiceMapper.selectByPrimaryKey(id);\n\t}",
"public Call getCallById(Integer num) {\n return this.mCallMapById.get(num);\n }",
"public String getCallId();",
"public static BasicPhoneCall getPhoneCall(String sid)... | [
"0.60918355",
"0.5831194",
"0.5796527",
"0.55535156",
"0.5480174",
"0.5277547",
"0.52708256",
"0.52265656",
"0.519508",
"0.50797737",
"0.5068283",
"0.50313973",
"0.5023754",
"0.5020644",
"0.50085163",
"0.49542022",
"0.49539182",
"0.49058387",
"0.48929617",
"0.4882472",
"0.486... | 0.69440144 | 0 |
Checks this CallRegistry for calls that timed out, removes them and notifies RpcListeners of timeouts. | public synchronized void update() {
currentIteration.clear();
currentIteration.addAll(currentCalls.values());
for (RegisteredCall i : currentIteration) {
i.update();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearCallLogs();",
"private void checkPendingCalls(Employee callee) {\n pushCallee(callee);\n logger.debug(\"Employee {} is free\", callee.getName());\n\n if (!pendingCalls.isEmpty()) {\n Call pendingCall = pendingCalls.poll();\n logger.debug(\"Dispatching p... | [
"0.58582497",
"0.5685802",
"0.56811017",
"0.56185985",
"0.5528433",
"0.5522635",
"0.5399331",
"0.53989875",
"0.5334358",
"0.5321806",
"0.52068967",
"0.5142305",
"0.5117991",
"0.51134354",
"0.50481635",
"0.50151753",
"0.50100553",
"0.5007682",
"0.4993453",
"0.49872828",
"0.497... | 0.0 | -1 |
Removes a given registered call from this CallRegistry if it is registered. Does nothing otherwise. | protected void removeCall(RegisteredCall registeredCall) {
currentCalls.remove(registeredCall.id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void removeCall(Call call, ArrayList<Call> calls)\n {\n synchronized(calls)\n {\n if(calls.contains(call))\n calls.remove(call);\n }\n }",
"public void removeCallFromCallMap(Call call) {\n Integer idByCall = getIdByCall(call);\n if... | [
"0.72553676",
"0.72503734",
"0.7030173",
"0.6640114",
"0.65852344",
"0.63254577",
"0.6162417",
"0.60447466",
"0.593045",
"0.5892819",
"0.58533037",
"0.5576608",
"0.5418181",
"0.54030854",
"0.52841336",
"0.5235989",
"0.5222685",
"0.51754034",
"0.5152763",
"0.514618",
"0.511591... | 0.78683674 | 0 |
we can oveeride parent methods hear. | @Override
public String getMessage() {
return super.getMessage() + " Be Accurate";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}",
"public void callP(){\n super.walks(\"called parent method\");\n }",
"public void method_6349() {\r\n super.method_6349();\r\n }",
"void method() {\n\t\tSystem... | [
"0.7759241",
"0.7304472",
"0.70010954",
"0.6904836",
"0.6902536",
"0.66984546",
"0.66984546",
"0.66984546",
"0.66293895",
"0.66193825",
"0.64296377",
"0.6422021",
"0.6409825",
"0.63747257",
"0.6372948",
"0.63716966",
"0.63696206",
"0.6367063",
"0.63508034",
"0.63469076",
"0.6... | 0.0 | -1 |
StudentWork studentWork = new StudentWork(); Student student = studentWork.createStudentFromConsole(); studentWork.showSuccessMessage(student); | public static void main(String[] args) {
ArraysWork arraysWork = new ArraysWork();
int[] myArray = arraysWork.getArray();
arraysWork.printArray(myArray);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Student createStudent();",
"public void createStudent(String name, String ID){}",
"public void testPrintStudentDetails() {\n\t System.out.println(\"printStudentDetails\");\n\t Student instance = student1;\n\t student1.addCourse(course1);\n\t student1.addModule(module1);\n\t i... | [
"0.70363426",
"0.64635617",
"0.63268363",
"0.619049",
"0.6177392",
"0.614026",
"0.6024604",
"0.6010486",
"0.5995348",
"0.5985338",
"0.59544563",
"0.5903038",
"0.59011406",
"0.58945435",
"0.58849275",
"0.58768976",
"0.58621454",
"0.5854542",
"0.58495086",
"0.5836617",
"0.58321... | 0.0 | -1 |
The method below is used by the testStartProvideBluetoothMacAddressMode in failure cases. It checks also execution of stopProvideBluetoothMacAddressMode(), getCurrentProvideBluetoothMacAddressRequestId() and getCurrentProvideBluetoothMacAddressRequestId() | private void testStartProvideBluetoothMacAddressModeFailures(String reqId) throws Exception {
// The test
assertThat("is False, if the \"Provide Bluetooth MAC address\" mode was not started",
mBluetoothMacAddressResolutionHelper.startProvideBluetoothMacAddressMode(reqId),
is(false));
// check if stopProvideBluetoothMacAddressMode() was properly executed
verify(mMockDiscoveryManager, times(1)).
onProvideBluetoothMacAddressModeStartedChanged(false);
verify(mMockBluetoothGattManager, atLeastOnce()).clearBluetoothGattClientOperationQueue();
verify(mMockBluetoothDeviceDiscoverer, atLeastOnce()).stop();
// test getCurrentProvideBluetoothMacAddressRequestId()
assertThat("The request ID of the current request is set to null",
mBluetoothMacAddressResolutionHelper.getCurrentProvideBluetoothMacAddressRequestId(),
is(nullValue()));
// test getIsProvideBluetoothMacAddressModeStarted()
assertThat("The \"Provide Bluetooth MAC address\" mode is started is set to false",
mBluetoothMacAddressResolutionHelper.getIsProvideBluetoothMacAddressModeStarted(),
is(false));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testProvideBluetoothMacAddressToDevice() throws Exception {\n String reqId = \"testId\";\n Long provideBtAddrTimeout = 1000L;\n\n Field fieldSettings = mBluetoothMacAddressResolutionHelper.getClass()\n .getDeclaredField(\"mSettings\");\n fieldSettin... | [
"0.70179546",
"0.6414887",
"0.6088191",
"0.58411217",
"0.5770237",
"0.5711455",
"0.55491847",
"0.55437624",
"0.55212593",
"0.5504024",
"0.54778147",
"0.5412451",
"0.531411",
"0.52912825",
"0.525306",
"0.5229005",
"0.5210289",
"0.516253",
"0.5155155",
"0.5070817",
"0.5058889",... | 0.79457915 | 0 |
The test below tests if the provideBluetoothMacAddressToDevice is properly executed. To do so, first we have to start the "Provide Bluetooth MAC address" | @Test
public void testProvideBluetoothMacAddressToDevice() throws Exception {
String reqId = "testId";
Long provideBtAddrTimeout = 1000L;
Field fieldSettings = mBluetoothMacAddressResolutionHelper.getClass()
.getDeclaredField("mSettings");
fieldSettings.setAccessible(true);
fieldSettings.set(mBluetoothMacAddressResolutionHelper, mMockDiscoveryManagerSettings);
when(mMockDiscoveryManagerSettings.getProvideBluetoothMacAddressTimeout())
.thenReturn(provideBtAddrTimeout);
Field fieldGattManager = mBluetoothMacAddressResolutionHelper.getClass()
.getDeclaredField("mBluetoothGattManager");
fieldGattManager.setAccessible(true);
fieldGattManager.set(mBluetoothMacAddressResolutionHelper, mMockBluetoothGattManager);
EnumSet<BlePeerDiscoverer.BlePeerDiscovererStateSet> mStateSet
= EnumSet.of(BlePeerDiscoverer.BlePeerDiscovererStateSet.NOT_STARTED);
when(mMockBlePeerDiscoverer.getState()).thenReturn(mStateSet);
// used to instantiate BluetoothDeviceDiscoverer
when(mMockBluetoothAdapter.isDiscovering()).thenReturn(true);
when(mMockDiscoveryManager.isBleMultipleAdvertisementSupported()).thenReturn(true);
when(mMockBlePeerDiscoverer.startPeerAddressHelperAdvertiser(
reqId, PeerProperties.BLUETOOTH_MAC_ADDRESS_UNKNOWN, provideBtAddrTimeout
)).thenReturn(true);
mBluetoothMacAddressResolutionHelper.startProvideBluetoothMacAddressMode(reqId);
// actual test
mBluetoothMacAddressResolutionHelper.provideBluetoothMacAddressToDevice(mMockBluetoothDevice);
verify(mMockBlePeerDiscoverer, times(1)).startPeerAddressHelperAdvertiser(
reqId, PeerProperties.BLUETOOTH_MAC_ADDRESS_UNKNOWN, provideBtAddrTimeout);
verify(mMockDiscoveryManager, times(1)).onProvideBluetoothMacAddressModeStartedChanged(true);
verify(mMockBluetoothGattManager, times(1)).provideBluetoothMacAddressToDevice(
mMockBluetoothDevice, reqId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testGetMacAddress_stubDevice() throws Exception {\n String address = \"58:a2:b5:7d:49:24\";\n IDevice device = new StubDevice(MOCK_DEVICE_SERIAL) {\n @Override\n public void executeShellCommand(String command, IShellOutputReceiver receiver)\n throw... | [
"0.7490149",
"0.73560166",
"0.6846387",
"0.67179424",
"0.66920567",
"0.6587851",
"0.6162593",
"0.6148687",
"0.6113747",
"0.6090358",
"0.6079574",
"0.6073374",
"0.59794563",
"0.58393294",
"0.5690509",
"0.5673696",
"0.5655917",
"0.55670846",
"0.5539457",
"0.553558",
"0.55310965... | 0.8167011 | 0 |
Method is used to set click listeners | private void setClickListeners() {
buttonSomethingWentWrong.setOnClickListener(this);
buttonSuggestion.setOnClickListener(this);
buttonHighlightRequest.setOnClickListener(this);
closeButton.setOnClickListener(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void initListeners() {\n\t\tmClick.setOnClickListener(this);\n\t}",
"private void setOnClickListeners(){\n mDueDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n pickDate(mDueDateCalendar);\n ... | [
"0.8035148",
"0.76137507",
"0.75473547",
"0.75424546",
"0.7407706",
"0.73913467",
"0.7348751",
"0.7335679",
"0.7237149",
"0.71990776",
"0.7150257",
"0.7130557",
"0.7083087",
"0.70495385",
"0.70426065",
"0.7020837",
"0.7020411",
"0.6988893",
"0.6984455",
"0.69758904",
"0.69360... | 0.8027317 | 1 |
Method is used to initialize views | private void initViews() {
buttonSomethingWentWrong = findViewById(R.id.button_somethingWentWrong);
buttonHighlightRequest = findViewById(R.id.button_highlight_request);
buttonSuggestion = findViewById(R.id.button_suggestion);
closeButton = findViewById(R.id.img_close);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initViews() {\n\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}",
"private void initViews() {\n\n }",
"protected abstract void initViews();",
"public abstra... | [
"0.8944366",
"0.8920716",
"0.8920716",
"0.8904896",
"0.88855726",
"0.88506025",
"0.88163596",
"0.8761012",
"0.87394446",
"0.86810124",
"0.8648159",
"0.864295",
"0.8628973",
"0.85367984",
"0.85367984",
"0.85167783",
"0.8513909",
"0.8513909",
"0.8489276",
"0.8449613",
"0.840751... | 0.0 | -1 |
Method is used to start contact activity | private void startContactActivity(String buttonText,String tagId) {
Intent intent = new Intent(this, ContactActivity.class);
intent.putExtra("button_text", buttonText);
intent.putExtra("tagId", tagId);
startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void launchContact(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_VIEW);\n \tsendIntent.setType(ContactsContract.Contacts.CONTENT_TYPE);\n\n if (sendIntent.resolveActivity(pacman) != null) {\n \tstartActivity(sendIntent);\n \treturn;\n } else {\n \tToast.make... | [
"0.7936201",
"0.7609674",
"0.733743",
"0.7298108",
"0.719645",
"0.7145387",
"0.71305144",
"0.7071098",
"0.6958203",
"0.6947859",
"0.69263405",
"0.685764",
"0.68465567",
"0.6835272",
"0.67821515",
"0.6705791",
"0.6658545",
"0.66064703",
"0.66062266",
"0.6601404",
"0.65644115",... | 0.6832436 | 14 |
Method to show toast message | @SuppressLint("PrivateResource")
public void showToastMessage(String message) {
View includedLayout = findViewById(R.id.llToast);
final TextView text = includedLayout.findViewById(R.id.tv_toast_message);
text.setText(message);
animation = AnimationUtils.loadAnimation(this,
R.anim.abc_fade_in);
text.setAnimation(animation);
text.setVisibility(View.VISIBLE);
Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@SuppressLint("PrivateResource")
@Override
public void run() {
animation = AnimationUtils.loadAnimation(SupportActivity.this,
R.anim.abc_fade_out);
text.setAnimation(animation);
text.setVisibility(View.GONE);
}
}, 2000);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void showToast(String message);",
"void showToast(String message);",
"private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHO... | [
"0.8384865",
"0.8384865",
"0.82004404",
"0.8175334",
"0.81623566",
"0.8135589",
"0.81257015",
"0.81255436",
"0.81255436",
"0.8124747",
"0.80230635",
"0.79971844",
"0.79477555",
"0.7932528",
"0.79273725",
"0.79239404",
"0.7913876",
"0.79069823",
"0.78974056",
"0.7894238",
"0.7... | 0.72795856 | 90 |
access [] for geometry shader | private String translateExpression(PropertyExpression e) {
if (e.getObjectExpression() instanceof BinaryExpression) {
BinaryExpression be = (BinaryExpression) e.getObjectExpression();
if (be.getOperation().getText().equals("[")) {
String left = translateExpression(be.getLeftExpression());
if (left.equals(inputName)) {
return withInputSuffix(e.getPropertyAsString()) + "[" + translateExpression(be.getRightExpression()) + "]";
}
}
}
String obj = translateExpression(e.getObjectExpression());
//TODO fix for "not in main case"
//if (obj.equals(outputName) && shaderType.equals("vs")) return withOutputSuffix(e.getPropertyAsString());
if (obj.equals(outputName)) return withOutputSuffix(e.getPropertyAsString());
//TODO fix for "not in main case"
//if (obj.equals(inputName) && shaderType.equals("fs")) return withOutputSuffix(e.getPropertyAsString());
if (obj.equals(inputName)) return withInputSuffix(e.getPropertyAsString());
//if (obj.equals(outputName)) return e.getPropertyAsString();
//if (obj.equals(inputName)) return e.getPropertyAsString();
if (obj.equals("")) return e.getPropertyAsString();
if ((e.getObjectExpression() instanceof BinaryExpression)) return "(" + obj + ")." + e.getPropertyAsString();
return obj + "." + e.getPropertyAsString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Vector2[] getVertices();",
"public ShaderProgram getShader () {\n return shader;\n }",
"Geometry getGeometry();",
"public float[] getVertices() {\n/* 793 */ COSBase base = getCOSObject().getDictionaryObject(COSName.VERTICES);\n/* 794 */ if (base instanceof COSArray)\n/* ... | [
"0.62682027",
"0.6167995",
"0.6058172",
"0.60415757",
"0.6023516",
"0.5972392",
"0.59619415",
"0.5931249",
"0.5864994",
"0.581481",
"0.5804342",
"0.5722104",
"0.5716872",
"0.5666902",
"0.5659418",
"0.5658097",
"0.5657893",
"0.565789",
"0.5590504",
"0.5586494",
"0.5569626",
... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_info, container, false);
TextView name = (TextView) v.findViewById(R.id.user_name);
TextView email = (TextView) v.findViewById(R.id.user_email);
TextView tvNbTrips = (TextView) v.findViewById(R.id.user_nb_trips);
TextView login = (TextView) v.findViewById(R.id.user_login);
String nbTrips = String.valueOf(MyApplication.getInstance().getTrips().size());
String n = MyApplication.getInstance().getSP_FirstName() + " " + MyApplication.getInstance().getSP_LastName();
String l = MyApplication.getInstance().getSP_Login();
name.setText(name.getText() + " " + n);
email.setText(email.getText() + " " + MyApplication.getInstance().getSP_Email());
tvNbTrips.setText(tvNbTrips.getText() + " " + nbTrips);
login.setText(login.getText() + " " + MyApplication.getInstance().getSP_Login());
return v;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
Gets the primary subscription key | public String getPrimaryKey() {
return this.getString(R.string.primaryKey);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String subscriptionId();",
"String getSubscriptionId();",
"java.lang.String getSubjectKeyID();",
"java.lang.String getSubjectKeyID();",
"PrimaryKey getPrimarykey();",
"public ObjectKey getPrimaryKey()\n {\n return SimpleKey.keyFor(getNewsletterId());\n }",
"Key getPrimaryKey();",
"pu... | [
"0.7399574",
"0.7279442",
"0.710959",
"0.710959",
"0.70994526",
"0.6855871",
"0.66976386",
"0.6670842",
"0.6560193",
"0.65160066",
"0.6499057",
"0.647497",
"0.6448302",
"0.636229",
"0.63524544",
"0.6351293",
"0.63511056",
"0.6344536",
"0.6344536",
"0.63164544",
"0.6313044",
... | 0.6650678 | 8 |
Gets the LUIS application identifier. | private String getLuisAppId() {
return this.getString(R.string.luisAppID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getAppId() {\n\t\treturn app.getAppId();\n\t}",
"public String getApplicationId();",
"public java.lang.String getApplicationBundleIdentifier() {\r\n return applicationBundleIdentifier;\r\n }",
"public int getApplicationId() {\r\n\t\tif (applicationId != null) {\r\n\t\t\tr... | [
"0.7171768",
"0.7136094",
"0.70915306",
"0.7080021",
"0.7017782",
"0.69775516",
"0.6803772",
"0.6785013",
"0.67435044",
"0.6739839",
"0.6739839",
"0.66369766",
"0.65647084",
"0.6551817",
"0.65424424",
"0.6541035",
"0.6484568",
"0.6448761",
"0.642625",
"0.639729",
"0.6393117",... | 0.77026606 | 0 |
Gets the LUIS subscription identifier. | private String getLuisSubscriptionID() {
return this.getString(R.string.luisSubscriptionID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSubscriptionId();",
"String subscriptionId();",
"@Transient\n\tpublic String getSubscriptionId()\t{\n\n\t\tif (mSubscriptionIdLong > 0)\n\t\t\treturn Long.toString(mSubscriptionIdLong);\n\t\telse\n\t\t\treturn null;\n\t}",
"public Integer getSubscriptionTypeId() {\n return this.subscriptionT... | [
"0.7807327",
"0.7388802",
"0.73785806",
"0.6679129",
"0.63144916",
"0.6118803",
"0.60498595",
"0.58814734",
"0.58781534",
"0.58760697",
"0.5855999",
"0.57690346",
"0.5765635",
"0.57368225",
"0.57190895",
"0.5663008",
"0.5635864",
"0.56143385",
"0.55838424",
"0.55551344",
"0.5... | 0.7946612 | 0 |
Gets a value indicating whether or not to use the microphone. | private Boolean getUseMicrophone() {
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean micEnabled();",
"public boolean getAudioEnabled() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n return prefs.getBoolean(\"audio_output_switch\", true);\n }",
"boolean getRecordAudioPref();",
"public boolean getAcceptsAudio() {\n\n ... | [
"0.73359275",
"0.67100114",
"0.63621366",
"0.63209975",
"0.6120043",
"0.6106936",
"0.6070008",
"0.5959563",
"0.5946707",
"0.59296197",
"0.5912107",
"0.58954966",
"0.58893806",
"0.5880307",
"0.58767813",
"0.58297",
"0.58111894",
"0.5806976",
"0.5803637",
"0.57659805",
"0.57573... | 0.8540656 | 0 |
Gets a value indicating whether LUIS results are desired. | private Boolean getWantIntent() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasResult()\n/* */ {\n/* 119 */ return this.result != RESULT_NONE;\n/* */ }",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();",
"boolean hasResult();"... | [
"0.66240114",
"0.66092956",
"0.66092956",
"0.66092956",
"0.66092956",
"0.66092956",
"0.66092956",
"0.66092956",
"0.66092956",
"0.66092956",
"0.66092956",
"0.66092956",
"0.66092956",
"0.6594232",
"0.6508751",
"0.64503556",
"0.6353303",
"0.6353303",
"0.6353303",
"0.6353303",
"0... | 0.0 | -1 |
Gets the current speech recognition mode. | private SpeechRecognitionMode getMode() {
return SpeechRecognitionMode.LongDictation;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getSpeechmode() {\n return speechmode;\n }",
"public int getAudioMode() {\n AudioManager audio = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);\n return audio.getMode(); //MODE_NORMAL, MODE_RINGTONE, MODE_IN_CALL, MODE_IN_COMMUNICATION\n }",
"public M... | [
"0.80286896",
"0.7237996",
"0.65383834",
"0.6474436",
"0.6454601",
"0.6425426",
"0.63893884",
"0.6341087",
"0.6339388",
"0.6339388",
"0.62846243",
"0.6254081",
"0.6235371",
"0.6219671",
"0.6210509",
"0.6189923",
"0.61836046",
"0.61692405",
"0.6162632",
"0.6100964",
"0.6096852... | 0.74673164 | 1 |
Gets the default locale. | private String getDefaultLocale() {
return "es-MX";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getDefaultLocale()\n {\n return Locale.getDefault().toString();\n }",
"Locale getDefaultLocale();",
"Locale getDefaultLocale();",
"public Locale getDefaultLocale() {\n return this.defaultLocale;\n }",
"public Locale getLocale() {\r\n return Locale.getDefault()... | [
"0.8916228",
"0.8430672",
"0.8430672",
"0.8395397",
"0.79348683",
"0.76919353",
"0.7542739",
"0.7500879",
"0.7465574",
"0.74424446",
"0.7316548",
"0.71963227",
"0.71907914",
"0.7184401",
"0.71677184",
"0.7112048",
"0.7112048",
"0.7112048",
"0.70208794",
"0.7011569",
"0.699255... | 0.7824061 | 5 |
Gets the short wave file path. | private String getShortWaveFile() {
return "whatstheweatherlike.wav";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getLongWaveFile() {\n return \"batman.wav\";\n }",
"String getShortWorkfileName();",
"public String getSoundPath();",
"public String getWaveDumpFile() {\n\treturn waveDumpFile;\n }",
"public String getShortenedPath(String ruleFilePath) {\n String[] splitFilePath = ruleFi... | [
"0.7393918",
"0.66368526",
"0.6379748",
"0.6077915",
"0.6021424",
"0.5797401",
"0.5788988",
"0.5711515",
"0.5695083",
"0.5648246",
"0.56440705",
"0.5624175",
"0.5585948",
"0.5585119",
"0.55779004",
"0.55733275",
"0.5547798",
"0.5545705",
"0.55449516",
"0.5526268",
"0.5524128"... | 0.80507004 | 0 |
Gets the long wave file path. | private String getLongWaveFile() {
return "batman.wav";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getShortWaveFile() {\n return \"whatstheweatherlike.wav\";\n }",
"String getShortWorkfileName();",
"private static String filename(String longFileName) {\n try {\n return Util.computeStrongName(longFileName.getBytes(Util.DEFAULT_ENCODING));\n } catch (UnsupportedEncodingE... | [
"0.6628291",
"0.620029",
"0.56894755",
"0.55476767",
"0.55380756",
"0.5479898",
"0.54425794",
"0.5440323",
"0.54275864",
"0.5391334",
"0.53539366",
"0.5344979",
"0.5332111",
"0.5302233",
"0.52752835",
"0.52658135",
"0.51967216",
"0.5193283",
"0.5161338",
"0.5119512",
"0.51111... | 0.80363923 | 0 |
Logs the recognition start. | private void LogRecognitionStart() {
String recoSource;
if (this.getUseMicrophone()) {
recoSource = "microphone";
} else if (this.getMode() == SpeechRecognitionMode.ShortPhrase) {
recoSource = "short wav file";
} else {
recoSource = "long wav file";
}
this.WriteLine("\n--- Start speech recognition using " + recoSource + " with " + this.getMode() + " mode in " + this.getDefaultLocale() + " language ----\n\n");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void recognizerStarted() {\n\r\n\t\t\t}",
"private void startRecognition() {\n mStatusTextView.setVisibility(View.VISIBLE);\n mStatusTextView.setText(R.string.status_scan_credentials);\n mStatusProgressBar.setVisibility(View.GONE);\n mRescanButton.setVisibili... | [
"0.6353242",
"0.6291181",
"0.62761056",
"0.60640967",
"0.6050087",
"0.60332745",
"0.6028373",
"0.6024679",
"0.5981303",
"0.59650123",
"0.5942566",
"0.58870935",
"0.585743",
"0.5829028",
"0.5821218",
"0.580322",
"0.58030087",
"0.58030087",
"0.58030087",
"0.58030087",
"0.580300... | 0.77738464 | 0 |
Called when a final response is received and its intent is parsed | public void onIntentReceived(final String payload) {
this.WriteLine("--- Intent received by onIntentReceived() ---");
this.WriteLine(payload);
this.WriteLine();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\t\t\tpublic void onResponse(String response) {\n\t\t\t\t\t\t\tparseRespense(response);\n\t\t\t\t\t\t}",
"@Override\n public void onResponse(String response) {\n finalData(response);\n }",
"private void handleRefreshResponse(Intent intent) {\n String... | [
"0.6888874",
"0.6817569",
"0.66785574",
"0.6610786",
"0.65685165",
"0.65685165",
"0.6435264",
"0.64254904",
"0.64158803",
"0.6304046",
"0.63021475",
"0.62948453",
"0.6265941",
"0.6258143",
"0.6256171",
"0.6255678",
"0.6247677",
"0.6210355",
"0.6200068",
"0.6200068",
"0.618796... | 0.0 | -1 |
/this.WriteLine(" Partial result received by onPartialResponseReceived() "); this.WriteLine(response); this.WriteLine(); | public void onPartialResponseReceived(final String response) {
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t\tSystem.out.println(arg0);\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void onPartialResults(Bundle arg0) {\n Log.i(\"SRL\", \"onPartialResults\");\n }",
"@Override\n public void onResponse(String response) ... | [
"0.6637067",
"0.66078335",
"0.6592284",
"0.6501504",
"0.64725584",
"0.62994194",
"0.62739766",
"0.618158",
"0.61221534",
"0.6099058",
"0.6099058",
"0.60758656",
"0.60587984",
"0.6027979",
"0.5976972",
"0.5966904",
"0.59507096",
"0.59146345",
"0.5903549",
"0.5900876",
"0.58850... | 0.7455301 | 0 |
Called when the microphone status has changed. | public void onAudioEvent(boolean recording) {
/*this.WriteLine("--- Microphone status change received by onAudioEvent() ---");
this.WriteLine("********* Microphone status: " + recording + " *********");
if (recording) {
this.WriteLine("Please start speaking.");
}
WriteLine();*/
if (!recording) {
this.micClient.endMicAndRecognition();
this._startButton.setEnabled(true);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void onAudioManagerChangedState() {\n setVolumeControlStream(AudioManager.STREAM_VOICE_CALL);\n }",
"void onVoiceImeEnabledStatusChange();",
"@Override\r\n public void onDeviceStatusChange(GenericDevice dev, PDeviceHolder devh,\r\n PHolderSetter status) ... | [
"0.7068797",
"0.6705224",
"0.63964623",
"0.63653386",
"0.6360055",
"0.62478614",
"0.6153404",
"0.6139127",
"0.6097998",
"0.60641557",
"0.6059305",
"0.60514367",
"0.6027025",
"0.5975217",
"0.59729123",
"0.59684694",
"0.5965391",
"0.5963322",
"0.59469384",
"0.5943616",
"0.59436... | 0.66241866 | 2 |
An unresolvable error has occurred and Google APIs (including SignIn) will not be available. | @Override
public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {
Log.d(TAG, "onConnectionFailed:" + connectionResult);
Toast.makeText(this, "Google Play Services error.", Toast.LENGTH_SHORT).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void resolveSignInError() {\n if(mConnectionResult != null)\n if (mConnectionResult.hasResolution()) {\n try {\n mConnectionResult.startResolutionForResult(this, RC_SIGN_IN);\n } catch (IntentSender.SendIntentException e) {\n mGoogleApiClien... | [
"0.67585725",
"0.6601132",
"0.6595992",
"0.65856737",
"0.6539338",
"0.6515575",
"0.6491332",
"0.6472632",
"0.64588857",
"0.6458748",
"0.64511687",
"0.6424267",
"0.6407333",
"0.6379305",
"0.6329154",
"0.6326379",
"0.6306478",
"0.6278511",
"0.62498003",
"0.62418103",
"0.6213150... | 0.5469213 | 95 |
Handles the Click event of the RadioButton control. | private void RadioButton_Click(RadioGroup rGroup, int checkedId) {
// Reset everything
if (this.micClient != null) {
this.micClient.endMicAndRecognition();
try {
this.micClient.finalize();
} catch (Throwable throwable) {
throwable.printStackTrace();
}
this.micClient = null;
}
if (this.dataClient != null) {
try {
this.dataClient.finalize();
} catch (Throwable throwable) {
throwable.printStackTrace();
}
this.dataClient = null;
}
//this.ShowMenu(false);
this._startButton.setEnabled(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void onClickRadioButton() {\n radioGroupChoice.setOnCheckedChangeListener(this);\n }",
"@Override\n\n // The flow will come here when\n // any of the radio buttons in the radioGroup\n // has been clicked\n\n // Check wh... | [
"0.77595365",
"0.69116247",
"0.6861843",
"0.6824403",
"0.6818906",
"0.6777554",
"0.67693",
"0.6768493",
"0.6738323",
"0.6737163",
"0.6707077",
"0.6691899",
"0.66725075",
"0.6670448",
"0.6624163",
"0.66095287",
"0.6582218",
"0.6569467",
"0.65694577",
"0.6533712",
"0.6513939",
... | 0.6327952 | 35 |
Object name of the secondary transaction request. | @ApiModelProperty(example = "PostAuthTransaction", required = true, value = "Object name of the secondary transaction request.")
public String getRequestType() {
return requestType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getOperationName(){\n return localOperationName;\n }",
"public String getObject_name() {\n return object_name;\n }",
"String getObjectRefName();",
"@AutoEscape\n\tpublic String getRequesterName();",
"protected String... | [
"0.59938025",
"0.5938585",
"0.5754067",
"0.57250136",
"0.57161003",
"0.57161003",
"0.5554382",
"0.55539066",
"0.55123156",
"0.54851633",
"0.5479124",
"0.5478007",
"0.5444223",
"0.5444223",
"0.5438166",
"0.54277724",
"0.5411361",
"0.54076004",
"0.5369338",
"0.53241014",
"0.531... | 0.60315293 | 0 |
An optional outlet ID for clients that support multiple stores in the same developer app. | @javax.annotation.Nullable
@ApiModelProperty(example = "12345500000", value = "An optional outlet ID for clients that support multiple stores in the same developer app.")
public String getStoreId() {
return storeId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store.\")\n\n public String getStoreId() {\n return storeId;\n }",
"... | [
"0.60369205",
"0.57803",
"0.57357067",
"0.5700937",
"0.56813693",
"0.5654301",
"0.5635187",
"0.5635187",
"0.5600059",
"0.55816215",
"0.5566428",
"0.55565906",
"0.5537196",
"0.55163777",
"0.5495303",
"0.54938436",
"0.5491877",
"0.5462995",
"0.5445585",
"0.54341984",
"0.5379522... | 0.73743737 | 0 |
The unique merchant transaction ID from the request, if supplied. | @javax.annotation.Nullable
@ApiModelProperty(example = "lsk23532djljff3", value = "The unique merchant transaction ID from the request, if supplied.")
public String getMerchantTransactionId() {
return merchantTransactionId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMerchantId() {\n return merchantId;\n }",
"public String getMerchantId() {\n return merchantId;\n }",
"public String getMerchantId() {\n return merchantId;\n }",
"public String getMerchantId() {\n return merchantId;\n }",
"String getTransactionID();"... | [
"0.648516",
"0.648516",
"0.648516",
"0.648516",
"0.64527565",
"0.6405387",
"0.64027",
"0.63573694",
"0.6330052",
"0.6071553",
"0.6005344",
"0.5949798",
"0.5947757",
"0.58905536",
"0.58247524",
"0.578689",
"0.5713607",
"0.5677935",
"0.56395143",
"0.5634503",
"0.56221825",
"0... | 0.6215168 | 9 |
Comment for the secondary transaction. | @javax.annotation.Nullable
@ApiModelProperty(example = "This is a comment", value = "Comment for the secondary transaction.")
public String getComments() {
return comments;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getComment() {\n\t\tif (comment != null)\n\t\t\treturn ProteomeXchangeFilev2_1.COM + TAB\n\t\t\t// + \"comment\" + TAB\n\t\t\t\t\t+ comment;\n\t\treturn null;\n\t}",
"public String getComment() {\n return description;\n }",
"@Test\n public void WriteCommentSuccess() {\n Integer prod... | [
"0.5931738",
"0.58302414",
"0.5813932",
"0.5745569",
"0.57265764",
"0.5649872",
"0.5649244",
"0.5631923",
"0.5631923",
"0.5631923",
"0.5631923",
"0.5631923",
"0.5631923",
"0.561433",
"0.56122553",
"0.55886245",
"0.5542196",
"0.5539029",
"0.5520608",
"0.55118436",
"0.5511051",... | 0.61327755 | 0 |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA... | [
"0.78847593",
"0.75493765",
"0.74971926",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0... | 0.0 | -1 |
noargument constructor wanted by JAXB | @SuppressWarnings("unused")
private HsmFileSystemInfo() {
this((String) null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JAXBConverter() {\n\t}",
"public XmlElement() {\n }",
"private XmlFactory() {\r\n /* no-op */\r\n }",
"public XmlAdaptedPerson() {}",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"private XmlHelper() {}",
"public GenericElement() {\n\... | [
"0.7471592",
"0.69858015",
"0.68330145",
"0.68263763",
"0.6603136",
"0.66004",
"0.6510992",
"0.64588606",
"0.64271504",
"0.6374772",
"0.6323432",
"0.62458575",
"0.62399966",
"0.62071484",
"0.61951166",
"0.61821026",
"0.6180827",
"0.61707973",
"0.6148128",
"0.6146263",
"0.6134... | 0.0 | -1 |
/after accept or decline | public String acceptRequest(String requestID) {
Request accepted = getRequestById(requestID);
if (accepted == null) {
return "Error: Request doesn't exist";
}
accepted.accept();
if (accepted instanceof AccountRequest) {
User user = UserController.getInstance().getUserByUsername(((AccountRequest) accepted).getUser().getUsername());
if (user instanceof Seller) ((Seller) user).validate();
Database.getInstance().saveUser(user);
} else if (accepted instanceof SaleRequest) {
Sale sale=((SaleRequest) accepted).getNewSale();
sale.acceptStatus();
for (String id : sale.getAllItemId()) {
Item item=ItemAndCategoryController.getInstance().getItemById(id);
if(item==null) continue;
item.setSale(sale.getId());
Database.getInstance().saveItem(item);
}
Database.getInstance().saveSale(((SaleRequest) accepted).getNewSale());
} else if (accepted instanceof ItemRequest) {
Item item = ((ItemRequest) accepted).getNewItem();
item.setAddedTime(LocalDateTime.now());
Database.getInstance().saveItem(item);
if(item.getCategoryName()!=null)
ItemAndCategoryController.getInstance().addItemToCategory(item.getId(), item.getCategoryName());
} else if (accepted instanceof ItemEdit) {
requestController.ItemEditing((ItemEdit) accepted);
} else if (accepted instanceof SaleEdit) {
requestController.SaleEditing((SaleEdit) accepted);
} else if (accepted instanceof CommentRequest) {
//System.out.println("salam");
Comment comment = ((CommentRequest) accepted).getNewComment();
//System.out.println("salam");
comment.accept();
//System.out.println("salam");
Item item = ItemAndCategoryController.getInstance().getItemById(comment.getItemId());
//System.out.println("salam");
item.addComment(comment);
//System.out.println("salam");
Database.getInstance().saveItem(item);
//System.out.println("salam");
} else if(accepted instanceof ItemDelete){
String id=((ItemDelete) accepted).getItemId();
Item removed=ItemAndCategoryController.getInstance().getItemById(id);
if(removed!=null) {
UserController.getInstance().deleteItemFromSeller(id, removed.getSellerName());
ItemAndCategoryController.getInstance().removeItemFromCategory(removed.getCategoryName(),removed.getId());
Database.getInstance().deleteItem(removed);
}
}
else if(accepted instanceof AuctionRequest){
Auction auction = ((AuctionRequest) accepted).getAuction();
Database.getInstance().saveAuction(auction);
}
Database.getInstance().deleteRequest(accepted);
return "Successful: Request accepted";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void endNegotiation();",
"private void manageAcceptedPacket(MeetingPacket packet) {\n Console.comment(\"=> Meeting response packet accepted from \" + packet.getSourceAddress()) ;\n\n if(this.callbackOnAccepted != null) {\n this.callbackOnAccepted.handle(packet.getSourceUser()) ;\n ... | [
"0.63092774",
"0.62746",
"0.61554146",
"0.59661114",
"0.59382296",
"0.57885736",
"0.572784",
"0.5608519",
"0.55504966",
"0.55206543",
"0.5520524",
"0.55123055",
"0.5460033",
"0.5449503",
"0.5358031",
"0.53535324",
"0.53535324",
"0.53535324",
"0.53535324",
"0.53242075",
"0.532... | 0.0 | -1 |
Created by dontf on 4/21/2018. | public interface DialogObserver {
public void notfiy(String message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n publ... | [
"0.62776625",
"0.6135157",
"0.61213386",
"0.5951371",
"0.5913025",
"0.5874081",
"0.5836187",
"0.57946336",
"0.57946336",
"0.57912946",
"0.57722586",
"0.5717077",
"0.56972194",
"0.5688929",
"0.5688929",
"0.5688929",
"0.5688929",
"0.5688929",
"0.5688929",
"0.5685886",
"0.567736... | 0.0 | -1 |
To change body of created methods use File | Settings | File Templates. | @After
public void tearDown() throws Exception {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Methods() {\n // what is this doing? -PMC\n }",
"public void method_201() {}",
"abstract protected Set<Method> createMethods();",
"MethodStart createMethodStart();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void randomMethod(String name) {\n\t\t\n\t}",... | [
"0.69101614",
"0.68036634",
"0.6586465",
"0.655116",
"0.65445995",
"0.6505406",
"0.6471486",
"0.64636743",
"0.64636743",
"0.64472395",
"0.6421814",
"0.64071906",
"0.6404282",
"0.6359415",
"0.6352254",
"0.6342027",
"0.62807447",
"0.6262556",
"0.6262556",
"0.62547606",
"0.62527... | 0.0 | -1 |
Envio de info de Login al Servidor | public void login(String username, String password){
//Para las pruebas un usuario por defecto
if(username.equals("xxx") && password.equals("xxx")){
LoginUserMutation.LoginUser loginUser = new LoginUserMutation.LoginUser(
"jwt", "xxx"+username+"xxx",
"type",9999999, "ni idea");
jwt.setValue(new LoginUserMutation.Data(loginUser));
}
if(isUserNameValid(username) && isPasswordValid(password)){
CompletableFuture<LoginUserMutation.Data> loginDataPromise = loginRepository.gqlLoginUser(username, password);
try {
LoginUserMutation.Data loginData = loginDataPromise.get(2L, TimeUnit.SECONDS);
System.out.println(loginData.loginUser());
if(loginData.loginUser() != null){
jwt.setValue(loginData);
}else{
toastErrorObserver.setValue("Correo o Contraseña Incorrectas");
}
}catch(Error | ExecutionException | InterruptedException | TimeoutException e){
toastErrorObserver.setValue("No se pudo comunicar con el servidor");
}
}else{
toastErrorObserver.setValue("Formato de Correo o Contraseña Erroneos");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n Com... | [
"0.7038897",
"0.660908",
"0.65730816",
"0.6337448",
"0.62808675",
"0.6276631",
"0.627476",
"0.62625873",
"0.6253865",
"0.62481165",
"0.6247042",
"0.6209092",
"0.61750937",
"0.6165344",
"0.6155606",
"0.6153365",
"0.61512643",
"0.61486757",
"0.6136124",
"0.6131842",
"0.6129346"... | 0.0 | -1 |
/ get all facilities | public StringBuilder getFacility(Element facilities) {
StringBuilder facility = new StringBuilder();
String prefix = "";
for (Element temp : facilities.select("span")) {
facility.append(prefix);
prefix = ",";
facility.append(temp.text());
}
return facility;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@ManyToMany\r\n\t@OrderBy(\"name\")\r\n\tpublic Set<Facility> getFacilities() {\r\n\t\treturn facilities;\r\n\t}",
"public void showFacilities() {\r\n\t\tfor(Facility f: facilities.values()) {\r\n\t\t\tSystem.out.println(f.toString());\r\n\t\t}\r\n\t}",
"@Override\n\tpublic List<Facilities_type> getAllFaciliti... | [
"0.72592086",
"0.6983283",
"0.69641",
"0.67378587",
"0.6606692",
"0.65190727",
"0.64345884",
"0.6413686",
"0.62811685",
"0.6141516",
"0.6132216",
"0.6091343",
"0.605291",
"0.60082054",
"0.59998864",
"0.5965659",
"0.5957828",
"0.5910382",
"0.5897279",
"0.5889656",
"0.58820206"... | 0.0 | -1 |
/ get all links | public StringBuilder getLinks(Elements imgs) {
StringBuilder links = new StringBuilder();
String prefix = "";
for (Element item : imgs) {
links.append(prefix);
prefix = "|";
links.append(item.attr("href"));
}
return links;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Link> getLinks();",
"public List<TparselinksEntity> getAllLinks();",
"public List<String> getLinks();",
"public Collection<Map<String, String>> getLinks();",
"public List<Link> getLinks()\t{return Collections.unmodifiableList(allLinks);}",
"public List<Link> getLinks()\n {\n return links... | [
"0.83113647",
"0.8165015",
"0.7993679",
"0.7656304",
"0.75817597",
"0.74693835",
"0.7466345",
"0.74550486",
"0.73797476",
"0.7367582",
"0.73618096",
"0.73488307",
"0.7309338",
"0.7288149",
"0.728727",
"0.72280747",
"0.72178835",
"0.71816427",
"0.71773386",
"0.7173963",
"0.716... | 0.6240225 | 63 |
Hides the soft keyboard | public void hideSoftKeyboard() {
if(getCurrentFocus()!=null) {
InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);
inputMethodManager.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void hideKeyboard(){\n\t\tInputMethodManager inputMethodManager = (InputMethodManager) getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\tinputMethodManager.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);\n\t}",
"public void hideKeyboard() {\n getDriver().hideKe... | [
"0.86556417",
"0.85658455",
"0.85624504",
"0.84939146",
"0.839803",
"0.8374371",
"0.83321756",
"0.83301824",
"0.83016247",
"0.82989085",
"0.82989085",
"0.82888424",
"0.8285368",
"0.8280007",
"0.82724816",
"0.8270493",
"0.8265354",
"0.82215166",
"0.82172304",
"0.8167896",
"0.8... | 0.8333088 | 6 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.signup);
Spinner spinner = (Spinner) findViewById(R.id.countries_spinner);
String[] isoCountries = Locale.getISOCountries();
ArrayList<String> countries = new ArrayList<String>();
for(String countryISO : isoCountries) {
Locale locale = new Locale("en", countryISO);
String name = locale.getDisplayCountry();
String countryCode = Iso2Phone.getPhone(countryISO);
countries.add(name + " (" + countryCode + ")");
isoMap.put(name, countryISO);
}
Collections.sort(countries);
ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,
android.R.layout.simple_spinner_item, countries);
dataAdapter
.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(dataAdapter);
Locale current = getResources().getConfiguration().locale;
String currentName = current.getDisplayCountry();
String currentISO = isoMap.get(currentName);
String currentCode = Iso2Phone.getPhone(currentISO);
spinner.setSelection(countries.indexOf(current.getDisplayCountry() + " (" + currentCode + ")"));
Button signupButton = (Button) findViewById(R.id.signup);
signupButton.setOnClickListener(signupCickListener);
} | {
"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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.