query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
TODO Autogenerated method stub | @Override
public void onItemClick(View itemView, ServResrouce info, int position)
{
SelectFlightDialog dialog =
new SelectFlightDialog(ConfirmOrderActivity.this, mSelectFlightListener, itemView, position);
dialog.show();
WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();
lp.height = (int)(screenHeight - statusBarHeight - 120);
dialog.getWindow().setAttributes(lp);
} | {
"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 onDelectChoise(ServResrouce info)
{
DelectChoiseTrafficDialog dialog =
new DelectChoiseTrafficDialog(ConfirmOrderActivity.this, new OperationListener()
{
@Override
public void onDelectFlightInfo(ServResrouce info)
{
// TODO Auto-generated method stub
info.setChecked(false);
mAirListViewAdapter.notifyDataSetChanged();
}
@Override
public void onDelectComfireInfo(ServResrouce info)
{
// TODO Auto-generated method stub
}
});
dialog.setFlightInfo(info);
dialog.show();
} | {
"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 onDelectFlightInfo(ServResrouce info)
{
info.setChecked(false);
mAirListViewAdapter.notifyDataSetChanged();
} | {
"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 onDelectComfireInfo(ServResrouce info)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onItemClick(final View itemView, final ServResrouce info, int position)
{
TrafficToolsPickedDialog dialog =
new TrafficToolsPickedDialog(ConfirmOrderActivity.this, info, new ChoseTimeListener()
{
@Override
public void onResult(String startTime, String endTime)
{
// TODO Auto-generated method stub
TextView useTime = (TextView)itemView.findViewById(R.id.comfire_item_time);
useTime.setText("预订时间:" + startTime + "-" + endTime);
addResourceIdPrice(info.getServId());
mNoAirAdapter.notifyDataSetChanged();
}
});
dialog.show();
} | {
"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 onResult(String startTime, String endTime)
{
TextView useTime = (TextView)itemView.findViewById(R.id.comfire_item_time);
useTime.setText("预订时间:" + startTime + "-" + endTime);
addResourceIdPrice(info.getServId());
mNoAirAdapter.notifyDataSetChanged();
} | {
"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 onDelectChoise(ServResrouce info)
{
DelectChoiseTrafficDialog dialog =
new DelectChoiseTrafficDialog(ConfirmOrderActivity.this, new OperationListener()
{
@Override
public void onDelectComfireInfo(ServResrouce info)
{
// TODO Auto-generated method stub
info.setChecked(false);
removeResourceIdPrice(info.getServId());
mNoAirAdapter.notifyDataSetChanged();
}
@Override
public void onDelectFlightInfo(ServResrouce info)
{
// TODO Auto-generated method stub
}
});
dialog.setComfireInfo(info);
dialog.show();
} | {
"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 onDelectComfireInfo(ServResrouce info)
{
info.setChecked(false);
removeResourceIdPrice(info.getServId());
mNoAirAdapter.notifyDataSetChanged();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onDelectFlightInfo(ServResrouce info)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onItemClick(final View itemView, final ServResrouce info, int position)
{
TrafficToolsPickedDialog dialog =
new TrafficToolsPickedDialog(ConfirmOrderActivity.this, info, new ChoseTimeListener()
{
@Override
public void onResult(String startTime, String endTime)
{
// TODO Auto-generated method stub
TextView useTime = (TextView)itemView.findViewById(R.id.comfire_item_time);
useTime.setText("预订时间:" + startTime + "-" + endTime);
addResourceIdPrice(info.getServId());
mHotelAdapter.notifyDataSetChanged();
}
});
dialog.show();
} | {
"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 onResult(String startTime, String endTime)
{
TextView useTime = (TextView)itemView.findViewById(R.id.comfire_item_time);
useTime.setText("预订时间:" + startTime + "-" + endTime);
addResourceIdPrice(info.getServId());
mHotelAdapter.notifyDataSetChanged();
} | {
"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 onDelectChoise(ServResrouce info)
{
DelectChoiseTrafficDialog dialog =
new DelectChoiseTrafficDialog(ConfirmOrderActivity.this, new OperationListener()
{
@Override
public void onDelectComfireInfo(ServResrouce info)
{
// TODO Auto-generated method stub
info.setChecked(false);
removeResourceIdPrice(info.getServId());
mHotelAdapter.notifyDataSetChanged();
}
@Override
public void onDelectFlightInfo(ServResrouce info)
{
// TODO Auto-generated method stub
}
});
dialog.setComfireInfo(info);
dialog.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onDelectComfireInfo(ServResrouce info)
{
info.setChecked(false);
removeResourceIdPrice(info.getServId());
mHotelAdapter.notifyDataSetChanged();
} | {
"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 onDelectFlightInfo(ServResrouce info)
{
} | {
"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 onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable)
{
super.onFailure(statusCode, headers, responseString, throwable);
LogUtil.i(TAG, "getApplyPrice", "statusCode=" + statusCode);
LogUtil.i(TAG, "getApplyPrice", "responseString=" + responseString);
} | {
"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 onSuccess(int statusCode, Header[] headers, JSONObject response)
{
super.onSuccess(statusCode, headers, response);
// LogUtil.i(TAG, "getApplyPrice", "responseString=" + response.toString());
System.out.println("预订价格接口=" + response);
JSONObject dataJson;
try
{
dataJson = response.getJSONObject("data");
if (dataJson != null && !dataJson.equals(""))
{
String toatlPrice = dataJson.optString("totalPrice");
String price = dataJson.optString("price");
JSONArray serviceArray = dataJson.optJSONArray("service");
List<ServiceInfo> serviceInfos = new ArrayList<ServiceInfo>();
if (serviceArray != null && serviceArray.length() > 0)
{
for (int i = 0; i < serviceArray.length(); i++)
{
ServiceInfo serviceInfo = new ServiceInfo();
JSONObject serviceJson = serviceArray.optJSONObject(i);
serviceInfo.setCode(serviceJson.optString("code"));
serviceInfo.setName(serviceJson.optString("name"));
serviceInfo.setPrice(serviceJson.optString("price"));
}
}
initPriceInfoData(price, toatlPrice, serviceInfos);
}
}
catch (JSONException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onSuccess(int statusCode, Header[] headers, JSONObject response)
{
super.onSuccess(statusCode, headers, response);
LogUtil.i(TAG, "getservBookResource", response.toString());
if (response.opt("code").equals("00000"))
{
JSONObject dataJsonObject = response.optJSONObject("data");
JSONArray trafficJSONList = dataJsonObject.optJSONArray("traffic");
if (trafficJSONList != null && trafficJSONList.length() > 0)
{
for (int j = 0; j < trafficJSONList.length(); j++)
{
JSONObject serviceJSON = trafficJSONList.optJSONObject(j);
ServResrouce service = new ServResrouce();
service.setServId(serviceJSON.optString("servId"));
service.setServName(serviceJSON.optString("servName"));
service.setServAlias(serviceJSON.optString("servAlias"));
service.setServType(serviceJSON.optString("servType"));
service.setRank(serviceJSON.optString("rank"));
service.setTitleImage(serviceJSON.optString("titleImg"));
service.setServDesc(serviceJSON.optString("servDesc"));
if (service.getServType().equals("airplane") || service.getServType().equals("Iairplane"))
{
airPlaneList.add(service);
}
else
{
carOrBoaticList.add(service);
}
}
}
JSONArray stayJSONList = dataJsonObject.optJSONArray("stay");
if (stayJSONList != null && stayJSONList.length() > 0)
{
for (int j = 0; j < stayJSONList.length(); j++)
{
JSONObject serviceJSON = stayJSONList.optJSONObject(j);
ServResrouce service = new ServResrouce();
service.setServId(serviceJSON.optString("servId"));
service.setServName(serviceJSON.optString("servName"));
service.setServAlias(serviceJSON.optString("servAlias"));
service.setServType(serviceJSON.optString("servType"));
service.setRank(serviceJSON.optString("rank"));
service.setTitleImage(serviceJSON.optString("titleImg"));
service.setServDesc(serviceJSON.optString("servDesc"));
stayList.add(service);
}
}
mAirListViewAdapter.notifyDataSetChanged();
mNoAirAdapter.notifyDataSetChanged();
mHotelAdapter.notifyDataSetChanged();
}
} | {
"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 onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable)
{
super.onFailure(statusCode, headers, responseString, throwable);
LogUtil.i(TAG, "getservBookResource", "statusCode=" + statusCode);
LogUtil.i(TAG, "getservBookResource", "responseString=" + responseString);
} | {
"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 onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable)
{
super.onFailure(statusCode, headers, responseString, throwable);
System.out.println("applyBook-->onFailure" + statusCode);
} | {
"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 onSuccess(int statusCode, Header[] headers, JSONObject response)
{
super.onSuccess(statusCode, headers, response);
System.out.println("申请预订接口=" + response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int queryCount() {
return (int) tBasUnitClassRepository.count();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.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<TBasUnitClass> findByPage(Pageable pageable) {
Page<TBasUnitClass> page = tBasUnitClassRepository.findAll(pageable);
return page.getContent();
} | {
"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 save(TBasUnitClass tem) {
tBasUnitClassRepository.save(tem);
} | {
"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 del(String id) {
tBasUnitClassRepository.delete(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public TBasUnitClass findOne(String id) {
return tBasUnitClassRepository.findOne(id);
} | {
"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<TBasUnitClass> findAll() {
return tBasUnitClassRepository.findAll();
} | {
"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 JobPreferences save(JobPreferences educaiton) {
return jobPreferenceDao.save(educaiton);
} | {
"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<JobPreferences> findAll() {
return jobPreferenceDao.findAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void delete(int id) {
} | {
"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 JobPreferences findOne(String username) {
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 JobPreferences findById(int id) {
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 JobPreferences update(JobPreferences educaiton) {
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.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
initView();
} | {
"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 |
Instantiates a new game. | public Game() {
bPlayer = new Player(false);
wPlayer = new Player(true);
// TODO Auto-generated constructor stub
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Game() {}",
"public Game()\n {\n createRooms();\n parser= new Parser();\n }",
"public Game createGame();",
"public Game() {\n\n\t}",
"void startGame(int gameId) {\n game = new Game(gameId);\n }",
"public Game() {\n }",
"public void initGame() {\n this.game = n... | [
"0.7655035",
"0.76301175",
"0.7623157",
"0.7558916",
"0.7553091",
"0.7497927",
"0.7461369",
"0.7454112",
"0.74504143",
"0.74504143",
"0.74497193",
"0.7399121",
"0.73981005",
"0.73417234",
"0.7286171",
"0.72574437",
"0.724559",
"0.7229373",
"0.7181854",
"0.7176158",
"0.7137204... | 0.66871834 | 55 |
TODO Autogenerated method stub | public static void main(String[] args) {
int arr[] = {9,3,9,3,9,7,9};
Solution(arr);
} | {
"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 |
private Queue log = new LinkedList(); | protected SlidingWindowLog(int maxReqPerUnitTime) {
super(maxReqPerUnitTime);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LQT_Message_Queue() {\n\ta_list = new LinkedList<LQT_Message>();\n }",
"public MyStack() {\n queue = new LinkedList<>();\n }",
"public LinkedQueue(){\n this.firstNode = null;\n this.lastNode = null;\n }",
"public LinkedQueue(){\n length = 0;\n front = rear =... | [
"0.7229233",
"0.7215364",
"0.7041703",
"0.70143104",
"0.6972934",
"0.69627136",
"0.69344205",
"0.6908984",
"0.68795365",
"0.6876949",
"0.68736434",
"0.6851742",
"0.6842753",
"0.68362063",
"0.68010795",
"0.6779987",
"0.6772353",
"0.67689157",
"0.6756113",
"0.67386335",
"0.6725... | 0.0 | -1 |
1. Remove old ones before the lower boundary 2. Add / log the new time 3. get the boundary size 4. check if size is less than the max allowed 5. Allow if inside the upper bound | @Override
boolean allow() {
long curTime = System.currentTimeMillis()/1000 * 1000;
long boundary = curTime - 1000;
synchronized (log) {
//1. Remove old ones before the lower boundary
while (!log.isEmpty() && log.element() <= boundary) {
log.poll();
}
//2. Add / log the new time
log.add(curTime);
boolean allow = log.size() <= maxReqPerUnitTime;
System.out.println(curTime + ", log size = " + log.size()+", allow="+allow);
return allow;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeOverTime(){\r\n\t\tlong latest = timeQueue.getLast();\r\n\t\twhile( !timeQueue.isEmpty() && overlapRatioQueue.isEmpty() ){\r\n\t\t\tlong temp = timeQueue.getFirst();\r\n\t\t\tif( latest - temp > SMOOTING_INTERVAL ){\r\n\t\t\t\ttimeQueue.removeFirst();\r\n\t\t\t\toverlapRatioQueue.removeFirst();\... | [
"0.5840802",
"0.5652753",
"0.56501216",
"0.5589907",
"0.55585283",
"0.5543162",
"0.5525736",
"0.5498629",
"0.5449783",
"0.54297405",
"0.5401792",
"0.53997093",
"0.5333139",
"0.5309456",
"0.53019166",
"0.5299692",
"0.52957517",
"0.52798784",
"0.52553344",
"0.5214326",
"0.52074... | 0.6691516 | 0 |
Created by nan on 2016/4/22. | public interface AddNoticeViewInterface {
/**
* 上传附件完成
*/
void uploadAttachmentOnComplete(Data data);
/**
* 显示文件上传的百分比
*
* @param value
*/
void onProgress(int value);
/**
* 发布公告
*/
void publishNoticeOnComplete(Notice notice);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"protected boolean func_70814_o() { return true; }",
"private void m50366E() {\n }",
"public void mo38117a() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"private static vo... | [
"0.5889669",
"0.56677085",
"0.55275464",
"0.5510044",
"0.55020976",
"0.54187673",
"0.5411794",
"0.5409001",
"0.5384897",
"0.53790313",
"0.537665",
"0.5362001",
"0.5349483",
"0.53101575",
"0.5309329",
"0.5309322",
"0.52942985",
"0.52942985",
"0.52942985",
"0.52942985",
"0.5294... | 0.0 | -1 |
/ Need to clean the project's bin folder between runs | @SuppressWarnings("unused")
public void testBigFile() {
URL resource = getResource("/junit-stats.xml"); // a big file
String folder = "\\\\dev1\\c$\\tcs_build\\archive";
long originalLastModified = getOrginalFileLastModified(resource);
HistoricalTestStatisticsFileManager manager = new HistoricalTestStatisticsFileManager(folder, resource.getFile(), Long.MAX_VALUE);
verifyRevisionsLoaded(manager, 65);
verifyRevisionListSize(manager, 65);
List<String> orginalRevisionList = manager.getRevisionList();
manager.run();
assertEquals("you didn't clone the list correctly", 65, orginalRevisionList.size());
List<String> updatedRevisionList = manager.getRevisionList();
File updatedFile = new File(resource.getFile());
assertTrue("failed to update the file", updatedFile.lastModified() != originalLastModified);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void cleanup() {\n // if the java runtime is holding onto any files in the build dir, we\n // won't be able to delete them, so we need to force a gc here\n System.gc();\n\n if (deleteFilesOnNextBuild) {\n // delete the entire directory and all contents\n // when we know something ch... | [
"0.7017301",
"0.6844714",
"0.6409456",
"0.6388605",
"0.63016206",
"0.6191039",
"0.61140907",
"0.61104554",
"0.60592294",
"0.60352707",
"0.5998111",
"0.5906125",
"0.5903679",
"0.5890685",
"0.586614",
"0.5778823",
"0.576092",
"0.57523537",
"0.57468706",
"0.57417595",
"0.5731938... | 0.0 | -1 |
Creates the default factory implementation. | public static CDOServerDefsFactory init() {
try {
CDOServerDefsFactory theCDOServerDefsFactory = (CDOServerDefsFactory) EPackage.Registry.INSTANCE
.getEFactory("http://www.eclipse.org/emf/CDO/server/defs/1.0.0");
if (theCDOServerDefsFactory != null) {
return theCDOServerDefsFactory;
}
} catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new CDOServerDefsFactoryImpl();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Factory() {\n\t\tsuper();\n\t}",
"public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}",
"public ObjectifyFactory factory() {\n return ofy().factory();\n }",
"private ConcreteFactory() {}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstruc... | [
"0.7772179",
"0.76468444",
"0.74667054",
"0.74295115",
"0.74254334",
"0.73646814",
"0.7238647",
"0.72380936",
"0.71705085",
"0.7159591",
"0.71583474",
"0.7149343",
"0.7100073",
"0.7098844",
"0.7089862",
"0.7085499",
"0.70833546",
"0.7055521",
"0.7046437",
"0.70464075",
"0.703... | 0.0 | -1 |
Creates an instance of the factory. | public CDOServerDefsFactoryImpl() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Factory() {\n\t\tsuper();\n\t}",
"public Factory() {\n this(getInternalClient());\n }",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"Instance createInstance();",
"public ObjectifyFactory factory() {\... | [
"0.7391547",
"0.7210337",
"0.7200319",
"0.6975922",
"0.6973979",
"0.6835566",
"0.6710199",
"0.66718537",
"0.66718537",
"0.66718537",
"0.6663897",
"0.6615755",
"0.6614345",
"0.6614332",
"0.65878785",
"0.65698475",
"0.6533896",
"0.65313435",
"0.6527652",
"0.6515727",
"0.6474606... | 0.0 | -1 |
Servlet to process the send email request | protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException{
try{
String code = request.getParameter("code");
Properties properties = new Properties();
properties.setProperty("mail.host", ConfiguracionCorreo.smtp);
properties.setProperty("mail.smtp.port", ConfiguracionCorreo.port);
properties.setProperty("mail.smtp.auth", ConfiguracionCorreo.isAuth);
properties.setProperty("mail.smtp.socketFactory.class", ConfiguracionCorreo.socketFactory);
properties.setProperty("mail.smtp.socketFactory.port", ConfiguracionCorreo.port);
Session session = Session.getDefaultInstance(properties, new Authenticator(){
protected PasswordAuthentication getPasswordAuthentication(){
return new PasswordAuthentication(DatosCorreo.correo, DatosCorreo.password);
}
});
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress(DatosCorreo.correo));
message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(DatosCorreo.correo));
message.setSubject(DatosCorreo.subject);
StringBuilder emailBuilder = new StringBuilder();
emailBuilder.append(DatosCorreo.builder1);
emailBuilder.append(code);
emailBuilder.append(DatosCorreo.builder2);
Multipart multipart = new MimeMultipart();
BodyPart bodyPart = new MimeBodyPart();
bodyPart.setContent(emailBuilder.toString(), "text/html; charset=UTF-8");
multipart.addBodyPart(bodyPart);
message.setContent(multipart);
Transport.send(message);
}catch(Exception e){
log.warning(e.getMessage() + ": " + e.getLocalizedMessage());
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n final String username = \"woodensdi... | [
"0.7442984",
"0.72031415",
"0.7161305",
"0.7157292",
"0.7098769",
"0.7059551",
"0.683328",
"0.6785783",
"0.67042947",
"0.665783",
"0.6615139",
"0.65586793",
"0.6557035",
"0.6523966",
"0.6504762",
"0.6499596",
"0.6496507",
"0.6395205",
"0.6394015",
"0.63729095",
"0.63516116",
... | 0.6757429 | 8 |
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump. | public okhttp3.Request followUpRequest() {
/*
r5 = this;
r1 = 0;
r0 = r5.userResponse;
if (r0 != 0) goto L_0x000b;
L_0x0005:
r0 = new java.lang.IllegalStateException;
r0.<init>();
throw r0;
L_0x000b:
r0 = r5.streamAllocation;
r0 = r0.connection();
if (r0 == 0) goto L_0x0027;
L_0x0013:
r0 = r0.route();
L_0x0017:
r2 = r5.userResponse;
r2 = r2.code();
r3 = r5.userRequest;
r3 = r3.method();
switch(r2) {
case 300: goto L_0x0063;
case 301: goto L_0x0063;
case 302: goto L_0x0063;
case 303: goto L_0x0063;
case 307: goto L_0x0053;
case 308: goto L_0x0053;
case 401: goto L_0x0046;
case 407: goto L_0x0029;
case 408: goto L_0x00dc;
default: goto L_0x0026;
};
L_0x0026:
return r1;
L_0x0027:
r0 = r1;
goto L_0x0017;
L_0x0029:
if (r0 == 0) goto L_0x003f;
L_0x002b:
r1 = r0.proxy();
L_0x002f:
r1 = r1.type();
r2 = java.net.Proxy.Type.HTTP;
if (r1 == r2) goto L_0x0046;
L_0x0037:
r0 = new java.net.ProtocolException;
r1 = "Received HTTP_PROXY_AUTH (407) code while not using proxy";
r0.<init>(r1);
throw r0;
L_0x003f:
r1 = r5.client;
r1 = r1.proxy();
goto L_0x002f;
L_0x0046:
r1 = r5.client;
r1 = r1.authenticator();
r2 = r5.userResponse;
r1 = r1.authenticate(r0, r2);
goto L_0x0026;
L_0x0053:
r0 = "GET";
r0 = r3.equals(r0);
if (r0 != 0) goto L_0x0063;
L_0x005b:
r0 = "HEAD";
r0 = r3.equals(r0);
if (r0 == 0) goto L_0x0026;
L_0x0063:
r0 = r5.client;
r0 = r0.followRedirects();
if (r0 == 0) goto L_0x0026;
L_0x006b:
r0 = r5.userResponse;
r2 = "Location";
r0 = r0.header(r2);
if (r0 == 0) goto L_0x0026;
L_0x0075:
r2 = r5.userRequest;
r2 = r2.url();
r0 = r2.resolve(r0);
if (r0 == 0) goto L_0x0026;
L_0x0081:
r2 = r0.scheme();
r4 = r5.userRequest;
r4 = r4.url();
r4 = r4.scheme();
r2 = r2.equals(r4);
if (r2 != 0) goto L_0x009d;
L_0x0095:
r2 = r5.client;
r2 = r2.followSslRedirects();
if (r2 == 0) goto L_0x0026;
L_0x009d:
r2 = r5.userRequest;
r2 = r2.newBuilder();
r4 = okhttp3.internal.http.HttpMethod.permitsRequestBody(r3);
if (r4 == 0) goto L_0x00c3;
L_0x00a9:
r4 = okhttp3.internal.http.HttpMethod.redirectsToGet(r3);
if (r4 == 0) goto L_0x00d8;
L_0x00af:
r3 = "GET";
r2.method(r3, r1);
L_0x00b4:
r1 = "Transfer-Encoding";
r2.removeHeader(r1);
r1 = "Content-Length";
r2.removeHeader(r1);
r1 = "Content-Type";
r2.removeHeader(r1);
L_0x00c3:
r1 = r5.sameConnection(r0);
if (r1 != 0) goto L_0x00ce;
L_0x00c9:
r1 = "Authorization";
r2.removeHeader(r1);
L_0x00ce:
r0 = r2.url(r0);
r1 = r0.build();
goto L_0x0026;
L_0x00d8:
r2.method(r3, r1);
goto L_0x00b4;
L_0x00dc:
r0 = r5.requestBodyOut;
if (r0 == 0) goto L_0x00e6;
L_0x00e0:
r0 = r5.requestBodyOut;
r0 = r0 instanceof okhttp3.internal.http.RetryableSink;
if (r0 == 0) goto L_0x00f1;
L_0x00e6:
r0 = 1;
L_0x00e7:
r2 = r5.callerWritesRequestBody;
if (r2 == 0) goto L_0x00ed;
L_0x00eb:
if (r0 == 0) goto L_0x0026;
L_0x00ed:
r1 = r5.userRequest;
goto L_0x0026;
L_0x00f1:
r0 = 0;
goto L_0x00e7;
*/
throw new UnsupportedOperationException("Method not decompiled: okhttp3.internal.http.HttpEngine.followUpRequest():okhttp3.Request");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2247() {\r\n // $FF: Couldn't be decom... | [
"0.7616782",
"0.75728166",
"0.7525724",
"0.74507046",
"0.74505866",
"0.74373597",
"0.7381616",
"0.7381616",
"0.7366568",
"0.735341",
"0.73420185",
"0.73150736",
"0.7308675",
"0.73055106",
"0.7274724",
"0.72523946",
"0.72216254",
"0.71979403",
"0.7177258",
"0.7136552",
"0.7106... | 0.0 | -1 |
Created by vrihas on 6/21/2017. | public interface OnBlogsReceived {
void onSuccess(BlogFeed blogFeedList);
void onFailure();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpubl... | [
"0.60856324",
"0.58690155",
"0.5843825",
"0.5826998",
"0.5779448",
"0.57771707",
"0.57771707",
"0.5767261",
"0.568354",
"0.5674029",
"0.5667271",
"0.565957",
"0.56509686",
"0.56341255",
"0.56341255",
"0.56341255",
"0.56341255",
"0.56341255",
"0.56230664",
"0.56177706",
"0.561... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
String out ="n";
while (!out.equals("o") && !out.equals("O"))
{
Scanner keyboard = new Scanner(System.in);
System.out.print("Veuillez saisir la somme : ");
int x = keyboard.nextInt();
System.out.print("e pour euro d pour dollar : ");
keyboard = new Scanner(System.in);
String s = keyboard.nextLine();
if (s.equals("e") || s.equals("E"))
System.out.println("la somme en dinar est : " + x*211);
else
{
if (s.equals("d") || s.equals("D"))
System.out.println("la somme en dinar est : " + x*180);
else
System.out.println("Symbole non reconu ");
}
keyboard = new Scanner(System.in);
System.out.print("Voulez vous sortir? n(Non) ou o(Oui) : ");
out = keyboard.nextLine();
}
} | {
"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 |
Sets new state to given cell. | public void setCellState(int i, int j, CellState value) {
switch (value) {
case ZERO_CELL: {
int ZERO_MARK = -1;
field[i][j] = ZERO_MARK;
break;
}
case CROSS_CELL: {
int CROSS_MARK = 1;
field[i][j] = CROSS_MARK;
break;
}
case EMPTY_CELL: {
field[i][j] = EMPTY_MARK;
break;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCellState(int newState) {\n this.myState = newState;\n }",
"protected abstract void setCell(int x, int y, boolean state);",
"public void setCell(Cell cell)\n {\n myCell = cell;\n }",
"public Cell(int state) {\n \t\tthis.state = state;\n \t}",
"public void testSetCell()\r\n ... | [
"0.80752414",
"0.7782314",
"0.7376921",
"0.6917181",
"0.68312764",
"0.6784409",
"0.6780909",
"0.67637557",
"0.6757701",
"0.6730899",
"0.6722132",
"0.66865194",
"0.6682424",
"0.6674716",
"0.6660048",
"0.66463345",
"0.6591747",
"0.65759605",
"0.64606446",
"0.64251417",
"0.63920... | 0.7455303 | 2 |
Counts how many empty cells left. | public int countEmptyCells() {
int result = 0;
for (int[] row : field)
for (int cell : row)
if (cell == EMPTY_MARK)
result++;
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int countEmptyCells()\n\t{\n\t\tint count = 0;\n\t\tfor(int i=0;i<this.numberOfRows;i+=1)\n\t\t{\n\t\t\tfor(int j=0;j<this.numberOfColumns;j+=1)\n\t\t\t{\n\t\t\t\tif(this.board[i][j].value==0)\n\t\t\t\t{\n\t\t\t\t\tcount+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}",
"public int getNumberOfEmpty... | [
"0.8079898",
"0.7670334",
"0.7246445",
"0.72293776",
"0.6906921",
"0.68691033",
"0.6775967",
"0.6699691",
"0.66978395",
"0.6650374",
"0.6470564",
"0.64604557",
"0.64396715",
"0.64263314",
"0.6383874",
"0.6368033",
"0.6359795",
"0.63435155",
"0.6301021",
"0.62921077",
"0.62274... | 0.8646478 | 0 |
Max(by absolute value) sum of cells in a line which is used to determine winner. | public int getMaxLineSum() {
int result = 0;
int maxRowSum = getMaxRowSum();
int maxColumnSum = getMaxColumnSum();
int maxDiagonalSum = getMaxDiagonalSum();
if (abs(maxRowSum) > abs(result))
result = maxRowSum;
if (abs(maxColumnSum) > abs(result))
result = maxColumnSum;
if (abs(maxDiagonalSum) > abs(result))
result = maxDiagonalSum;
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void calValue() {\r\n for (char[] array : root.lines()) {\r\n int[] nums = HeuristicAdvanNode.checkLine(array);\r\n value += calHValue(nums[0], nums[1]);\r\n if (Math.abs(value) > xWin) {\r\n return;\r\n }\r\n }\r\n }",
"public i... | [
"0.6361608",
"0.6221508",
"0.6120719",
"0.6061119",
"0.605454",
"0.60459507",
"0.5979454",
"0.595278",
"0.59444124",
"0.5933431",
"0.59248775",
"0.5918514",
"0.59149027",
"0.59144956",
"0.5900025",
"0.5839941",
"0.5783322",
"0.57526094",
"0.5741828",
"0.5738571",
"0.57121134"... | 0.71553797 | 0 |
Returns string representation of field. | @Override
public String toString() {
StringBuilder result = new StringBuilder();
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
int cell = field[i][j];
result.append(cell == 0 ? "_" : (cell == 1 ? "X" : "O")).append(" ");
}
result.append("\n");
}
return result.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString()\n\t{\n\t\treturn fieldname;\n\t}",
"public String toString()\n {\n return m_strFieldName;\n }",
"public String toString() {\n\t\t//TODO add your own field name here\t\t\n\t\t//return buffer.append(this.yourFieldName).toString();\n\t\treturn \"\";\n\t}",
"@Override\n public... | [
"0.7669518",
"0.75904983",
"0.7465284",
"0.73449945",
"0.71606904",
"0.70353574",
"0.6993138",
"0.6956166",
"0.6897204",
"0.6815319",
"0.6791366",
"0.6756338",
"0.67061627",
"0.6684475",
"0.668132",
"0.6659601",
"0.6638934",
"0.6628071",
"0.66038126",
"0.6595852",
"0.65838844... | 0.0 | -1 |
Only used in unit tests in order to inject a mock into the PostService class TODO: In order for this method to not be exposed, simulating a friend class that would instead set the IngestionLinker reference would be better | public void setLinker(IngestionLinker injectionLinker) {
this.ingestionLinker = injectionLinker;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Autowired\n public void setPostService(PostService postService) {\n this.postService = postService;\n }",
"public interface PostTagRefService extends IService<PostTagRef> {\n\n}",
"private void init() throws Exception{\n mapper = new ObjectMapper();\n\n // Create the linkRequest\n ... | [
"0.5630024",
"0.55099016",
"0.5387196",
"0.53423",
"0.534221",
"0.51972896",
"0.51466674",
"0.5132462",
"0.51161474",
"0.5062666",
"0.5010886",
"0.5009961",
"0.49954557",
"0.4987042",
"0.49737775",
"0.49656552",
"0.49533758",
"0.49489006",
"0.4941002",
"0.49387032",
"0.493744... | 0.56427795 | 0 |
Public method for getting a list of posts from the ingestion system. If the given parameters exceed the database number of existing rows, null objects will be added to the list. | public List<PostEntity> getInterval(int auth_id, String token, int s, int c, String order, String query, String date) {
if (sessionRepository.findAll().stream().anyMatch(session -> session.getUser_id() == auth_id && session.getToken().equals(token))) {
List<ProviderEntity> providerList = userService.getProviderListForUser(auth_id, token, auth_id, 0, 10);
StringBuilder sb = new StringBuilder();
for(var provider : providerList)
{
sb.append("list=").append(provider.getId()).append("&");
}
System.out.println(sb.toString());
return ingestionLinker.getInterval(s, c, sb.toString(), order, query, date);
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Post> getAllPost() throws Exception;",
"@Override\n\tpublic List<Post> getNewPosts(int number) throws Exception {\n\t\treturn null;\n\t}",
"private void queryPosts() {\n ParseQuery<OutfitPost> query = ParseQuery.getQuery(OutfitPost.class);\n // only include data referred by user key\n ... | [
"0.6818028",
"0.6541918",
"0.6451699",
"0.6405414",
"0.63561565",
"0.6351152",
"0.63231665",
"0.6303759",
"0.62844896",
"0.6269367",
"0.62299263",
"0.61772984",
"0.60827076",
"0.6061377",
"0.60441625",
"0.601208",
"0.60044056",
"0.60009205",
"0.5981597",
"0.591493",
"0.591484... | 0.0 | -1 |
Public method which returns a list of post from a specific provider. If the given parameters exceed the database number of existing rows, null objects will be added to the list. | public List<PostEntity> getIntervalByProvider(int auth_id, String token, int provider_id, int s, int c) {
if (sessionRepository.findAll().stream().anyMatch(session -> session.getUser_id() == auth_id && session.getToken().equals(token))) {
return ingestionLinker.getIntervalByProvider(provider_id, s, c);
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<PostInfo> getPostList();",
"List<Post> getAllPost() throws Exception;",
"@Override\n\tpublic List<Post> getNewPosts(int number) throws Exception {\n\t\treturn null;\n\t}",
"public ArrayList<Post> viewAllPosts()\n\n {\n postList = new ArrayList<Post>();\n\n try\n {\n da... | [
"0.63703614",
"0.61037874",
"0.6029133",
"0.58628166",
"0.5811506",
"0.5795049",
"0.57381475",
"0.5736242",
"0.5655117",
"0.55752885",
"0.5569433",
"0.5566766",
"0.55633485",
"0.5535597",
"0.54935545",
"0.54833627",
"0.5482948",
"0.5411096",
"0.54063255",
"0.5384617",
"0.5368... | 0.49906966 | 62 |
Verify the Title of the PECOS Page. | public void verifyDashboardTitle() {
app.azzert().titleEquals("PECOS");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean verifyPageTitle(String pageTitle) {\n commonMethods.switchToFrame(driver, \"frameMain\");\n String headerName = $(header).text();\n switchTo().defaultContent();\n return (headerName.contains(pageTitle));\n }",
"@Test\n\tpublic void titlevalidation() throws IOExceptio... | [
"0.7749022",
"0.76598877",
"0.7625787",
"0.75181973",
"0.7455886",
"0.7383603",
"0.7286721",
"0.71532434",
"0.71418893",
"0.71308804",
"0.7056476",
"0.7024089",
"0.7015088",
"0.69725645",
"0.69391966",
"0.6918346",
"0.6906277",
"0.6877098",
"0.6832605",
"0.68047404",
"0.67779... | 0.7289267 | 6 |
Verify the Element in the Dashboard page. | public void verifyOnDashboardPage() {
verifyUserLoggedIn.waitForState().enabled(30);
verifyUserLoggedIn.assertContains().text("Dev Links");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void checkElements() {\n mActivityTestRule.launchActivity(intentForWeb()); // launch the activity with the intent\n\n onWebView().check(webContent(hasElementWithId(\"email_input\")));\n onWebView().check(webContent(hasElementWithId(\"password_input\")));\n onWebView().... | [
"0.68596023",
"0.6813983",
"0.6525476",
"0.6474705",
"0.6451673",
"0.6398947",
"0.6363416",
"0.6351542",
"0.63114905",
"0.62930226",
"0.6261638",
"0.62026596",
"0.6184374",
"0.6161035",
"0.61546195",
"0.6147591",
"0.6143308",
"0.6137485",
"0.6123633",
"0.6121106",
"0.60888433... | 0.6657027 | 2 |
Verify the Alert from the False Login. | public void verifyFalseLogin() {
alertElement.waitForState().present(30);
alertElement.assertContains().text("Please Enter a Valid User ID");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String isInConsistentAlert(String object, String data) {\n\t\tlogger.debug(\"Verify the Invalid Alert pop up \");\n\t\tboolean presentFlag = false;\n\t\ttry {\n\t\t\t//waitForPageLoad(driver);\n\t\t\tAlert alert = driver.switchTo().alert();\n\t\t\tif (!presentFlag) {\n\t\t\t\tlogger.debug(\"Alert detected\"... | [
"0.672878",
"0.6572521",
"0.65717775",
"0.6544014",
"0.6486054",
"0.6346155",
"0.62745106",
"0.62738574",
"0.62437975",
"0.6206362",
"0.61363924",
"0.61106205",
"0.6095903",
"0.6087939",
"0.60794276",
"0.6074453",
"0.60712284",
"0.60712284",
"0.60274255",
"0.6026071",
"0.6012... | 0.78963155 | 0 |
Method to Login to PECOS. | public void login(String uname, String pwd) {
username.type(uname);
password.type(pwd);
loginButton.click();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public com.sun.jna.PointerType login(Credentials c) throws RelationException;",
"public Reply login(String hostname) throws ThingsException, InterruptedException;",
"String login(String userName, String password) throws RemoteException, InterruptedException;",
"public void login () {\n\t\tGPPSignIn.sharedIns... | [
"0.658612",
"0.5997122",
"0.5925245",
"0.59076554",
"0.5841871",
"0.5819514",
"0.5774168",
"0.57588196",
"0.5723948",
"0.5649163",
"0.56350625",
"0.5626013",
"0.5597081",
"0.5584182",
"0.5570941",
"0.5560385",
"0.55079734",
"0.55011487",
"0.5500883",
"0.54941666",
"0.5476079"... | 0.0 | -1 |
Verify the Forgot password Link in the LoginPage and clicks on it. | public void verifyForgotPwdLink() {
forgotPasswordLink.assertState().enabled();
forgotPasswordLink.assertContains().text("Forgot your password?");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clickForgotPassword() {\r\n\t\tutilities.clickOnElement(aForgotPassword);\r\n\t}",
"public ForgotPasswordPage goToNewPasswordPage(){\n\n botStyle.click(forgotPasswordLink);\n\n return PageFactory.initElements(driver, ForgotPasswordPage.class);\n }",
"private void onForgetPwd() {\n ... | [
"0.7955749",
"0.7129381",
"0.6940247",
"0.69051266",
"0.6769207",
"0.6767533",
"0.6764164",
"0.66962755",
"0.66498494",
"0.66493744",
"0.66464645",
"0.6607284",
"0.66039026",
"0.6576367",
"0.6546385",
"0.65010375",
"0.6481298",
"0.6474887",
"0.64275026",
"0.64271474",
"0.6410... | 0.7552984 | 1 |
Verify the Mange Profile Link in the LoginPage and clicks on it. | public void verifyManageProfileLink() {
profileLink.assertState().enabled();
profileLink.assertContains().text("Manage your user profile");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}",
"public void clickOnProfile() {\n\t\telement(\"link_profile\").click();\n\t\tlogMessage(\"User clicks on Profile on left navigation bar\");\n\t}",
"public void ClickSignIn() {\n if (lnkSignIn.isDisplayed()) {\n ... | [
"0.7214619",
"0.7025234",
"0.6996365",
"0.69962806",
"0.69622695",
"0.68098575",
"0.6696946",
"0.66924316",
"0.66756016",
"0.6573798",
"0.6564357",
"0.654158",
"0.6515274",
"0.6514989",
"0.65070426",
"0.6485019",
"0.6484321",
"0.64711994",
"0.6429414",
"0.641704",
"0.63924474... | 0.7051257 | 1 |
Verify the Mange Profile Link in the LoginPage and clicks on it. | public void verifyLearnMoreLink() {
learnMoreLink.assertState().enabled();
learnMoreLink.assertContains().text("Learn more about registering for an account.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}",
"public void verifyManageProfileLink() {\n profileLink.assertState().enabled();\n profileLink.assertContains().text(\"Manage your user profile\");\n }",
"public void clickOnProfile() {\n\t\telement(\"l... | [
"0.7214619",
"0.7051257",
"0.7025234",
"0.6996365",
"0.69962806",
"0.69622695",
"0.68098575",
"0.6696946",
"0.66924316",
"0.66756016",
"0.6573798",
"0.6564357",
"0.654158",
"0.6515274",
"0.6514989",
"0.65070426",
"0.6485019",
"0.6484321",
"0.64711994",
"0.6429414",
"0.641704"... | 0.0 | -1 |
Verify the Mange Profile Link in the LoginPage and clicks on it. | public void verifyRegisterForNPILink() {
npiLink.assertState().enabled();
npiLink.assertContains().text("register for a National Provider Identifier (NPI)");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}",
"public void verifyManageProfileLink() {\n profileLink.assertState().enabled();\n profileLink.assertContains().text(\"Manage your user profile\");\n }",
"public void clickOnProfile() {\n\t\telement(\"l... | [
"0.7213416",
"0.7052336",
"0.70261395",
"0.6995903",
"0.6995771",
"0.6962049",
"0.6809209",
"0.6697237",
"0.669226",
"0.66760576",
"0.65740055",
"0.6564032",
"0.65404195",
"0.65153396",
"0.6514663",
"0.6506798",
"0.64841956",
"0.6483843",
"0.6470922",
"0.64282405",
"0.6416623... | 0.0 | -1 |
Verify the Manage Profile Link in the LoginPage and clicks on it. | public void verifyRegisterLink() {
registerLink.assertState().enabled();
registerLink.assertContains().text("Register");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verifyManageProfileLink() {\n profileLink.assertState().enabled();\n profileLink.assertContains().text(\"Manage your user profile\");\n }",
"public void clickOnProfile() {\n\t\telement(\"link_profile\").click();\n\t\tlogMessage(\"User clicks on Profile on left navigation bar\");\n\t}... | [
"0.7655095",
"0.7378497",
"0.7042001",
"0.70154154",
"0.6954829",
"0.6876155",
"0.6855366",
"0.681556",
"0.67777187",
"0.6777715",
"0.6775256",
"0.67673874",
"0.67104614",
"0.6630756",
"0.6630093",
"0.6581292",
"0.6574106",
"0.6410288",
"0.6399263",
"0.6392292",
"0.6388109",
... | 0.0 | -1 |
Verify the HHS Footer Link in LoginPage. | public void verifyHhsLink() {
dhhsFooterLink.assertState().enabled();
dhhsFooterLink.assertContains().text("Department of Health & Human Services");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verifyCmsLink() {\n cmsFooterLink.assertState().enabled();\n cmsFooterLink.assertContains().text(\"CMS\");\n }",
"public void verifyLogoutPageDisplayed() {\n\t\twaitForPageLoaded();\n\t\t_normalWait(1000);\n\t\tassertByPageTitle(Constants.pageTitle_LoggedoutPage);\n\t}",
"public vo... | [
"0.6640623",
"0.6204251",
"0.6113194",
"0.60937226",
"0.6085925",
"0.6050313",
"0.6046022",
"0.6043207",
"0.59759504",
"0.59360063",
"0.5874566",
"0.5859803",
"0.5843133",
"0.57335967",
"0.57142824",
"0.56761634",
"0.56761634",
"0.56521726",
"0.56484455",
"0.5612361",
"0.5601... | 0.767156 | 0 |
Verify the CMS Footer Link in LoginPage. | public void verifyCmsLink() {
cmsFooterLink.assertState().enabled();
cmsFooterLink.assertContains().text("CMS");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verifyHhsLink() {\n dhhsFooterLink.assertState().enabled();\n dhhsFooterLink.assertContains().text(\"Department of Health & Human Services\");\n }",
"public void waitMainLinksInFooter(final String lnk) {\n\n (new WebDriverWait(driver(), 10)).until(new ExpectedCondition<Boolean... | [
"0.6847342",
"0.6206837",
"0.61733806",
"0.61086917",
"0.6082112",
"0.6043729",
"0.5972404",
"0.59070086",
"0.58888936",
"0.58691144",
"0.5859743",
"0.5790851",
"0.57622147",
"0.5687802",
"0.56855404",
"0.56729805",
"0.56729805",
"0.56422496",
"0.562171",
"0.5534983",
"0.5525... | 0.7579465 | 0 |
Verify the Accessibility Footer Link in LoginPage. | public void verifyAccessibilityLink() {
accessibilityFooterLink.assertState().enabled();
accessibilityFooterLink.assertContains().text("Accessibility");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verifyHhsLink() {\n dhhsFooterLink.assertState().enabled();\n dhhsFooterLink.assertContains().text(\"Department of Health & Human Services\");\n }",
"public void verifyCmsLink() {\n cmsFooterLink.assertState().enabled();\n cmsFooterLink.assertContains().text(\"CMS\");\n... | [
"0.68320686",
"0.6485554",
"0.63125974",
"0.6143701",
"0.60663605",
"0.6046109",
"0.60394335",
"0.5970209",
"0.5912447",
"0.5867584",
"0.58541507",
"0.5742739",
"0.5656291",
"0.5611834",
"0.5590033",
"0.55501896",
"0.5540516",
"0.5522345",
"0.54685736",
"0.54583687",
"0.54529... | 0.77612835 | 0 |
Verify the HHS Footer Link in LoginPage. | public void waitForVerifyHhsPage() {
verifyHHSPageElement.waitForState().enabled(30);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verifyHhsLink() {\n dhhsFooterLink.assertState().enabled();\n dhhsFooterLink.assertContains().text(\"Department of Health & Human Services\");\n }",
"public void verifyCmsLink() {\n cmsFooterLink.assertState().enabled();\n cmsFooterLink.assertContains().text(\"CMS\");\n... | [
"0.76709867",
"0.66410375",
"0.6204624",
"0.6113167",
"0.6095075",
"0.6084362",
"0.6050671",
"0.60461175",
"0.6041833",
"0.59758604",
"0.5937797",
"0.58741295",
"0.58598006",
"0.58431417",
"0.57324725",
"0.5715755",
"0.5674635",
"0.5674635",
"0.5653528",
"0.5647157",
"0.56122... | 0.5239874 | 42 |
Switch to the Modal window and verify the right modal window is opened. | public void verifyForgotLinkModalWindow() {
modalWindow.assertState().enabled();
modalWindow.assertContains().text("warningLeaving the PECOS Website");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testShowModalDialog() {\n System.out.println(\"showModalDialog\");\n Wizard instance = new Wizard();\n int expResult = 0;\n int result = instance.showModalDialog();\n assertEquals(expResult, result);\n }",
"public static void goToEditSongWindow()\n {\n ... | [
"0.66084343",
"0.65619606",
"0.6466533",
"0.6326687",
"0.6280118",
"0.6167415",
"0.61641717",
"0.60363495",
"0.6017522",
"0.59556776",
"0.5913956",
"0.5884854",
"0.58601934",
"0.5832048",
"0.58281803",
"0.5814322",
"0.5806402",
"0.5805698",
"0.5798739",
"0.57737875",
"0.57735... | 0.67608804 | 0 |
Have four method in this Bicycle class | public void setCadence(int cadence){
this.cadence = cadence;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"Bicycle(){\n\t\tthis.wheels=2;\n\t}",
"public void ride(Bicycle bicycle){\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n bicycle.accelerate();\n ... | [
"0.6601279",
"0.65257925",
"0.6489605",
"0.6470792",
"0.62291837",
"0.60568625",
"0.60401154",
"0.60164446",
"0.60164446",
"0.5952797",
"0.58996755",
"0.58576643",
"0.58268565",
"0.5818759",
"0.5810573",
"0.5798519",
"0.5796869",
"0.57892644",
"0.57854843",
"0.5761549",
"0.57... | 0.0 | -1 |
Creates new form MenuView | public MenuView(MainFrame main) {
initComponents();
this.mainFrame = main;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Menu createViewMenu();",
"@Override\r\n\tpublic void createMenu(Menu menu) {\n\r\n\t}",
"public myView() {\n initComponents();\n CreatMenu();\n }",
"@Override\n public void create(SwipeMenu menu) {\n switch (menu.getViewType()) {\n case VIE... | [
"0.8018157",
"0.72608435",
"0.7217236",
"0.710012",
"0.7044515",
"0.6975708",
"0.69588494",
"0.6831627",
"0.6796137",
"0.66907096",
"0.6671628",
"0.66293186",
"0.66138875",
"0.6493336",
"0.644808",
"0.6446263",
"0.644399",
"0.63953626",
"0.6370447",
"0.6370179",
"0.63643163",... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
startButton = new javax.swing.JButton();
highscoresButton = new javax.swing.JButton();
quitButton = new javax.swing.JButton();
setMaximumSize(new java.awt.Dimension(600, 420));
setMinimumSize(new java.awt.Dimension(105, 103));
setPreferredSize(new java.awt.Dimension(600, 420));
startButton.setText("Start");
startButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
startButtonActionPerformed(evt);
}
});
highscoresButton.setText("Highscores");
highscoresButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
highscoresButtonActionPerformed(evt);
}
});
quitButton.setText("Quit");
quitButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
quitButtonActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(244, 244, 244)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(startButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(highscoresButton, javax.swing.GroupLayout.DEFAULT_SIZE, 97, Short.MAX_VALUE)
.addComponent(quitButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(259, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(146, 146, 146)
.addComponent(startButton)
.addGap(6, 6, 6)
.addComponent(highscoresButton)
.addGap(6, 6, 6)
.addComponent(quitButton)
.addContainerGap(193, Short.MAX_VALUE))
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73199165",
"0.7291065",
"0.7291065",
"0.7291065",
"0.72868747",
"0.72488254",
"0.7214099",
"0.7209363",
"0.7196111",
"0.7190702",
"0.7184576",
"0.71590984",
"0.71483636",
"0.7093415",
"0.70814407",
"0.70579475",
"0.69872457",
"0.69773155",
"0.6955104",
"0.69544697",
"0.694... | 0.0 | -1 |
Test compitability with old JSON format. | @Test
@SmallTest
public void testSerializeToJson() throws Throwable {
final String jsonObjectString =
"{'crash-local-id':'123456abc','crash-capture-time':1234567890,"
+ "'crash-is-hidden':false,"
+ "'crash-keys':{'app-package-name':'org.test.package'}}";
JSONObject expectedJsonObject = new JSONObject(jsonObjectString);
CrashInfo c = createCrashInfo("123456abc", 1234567890, null, -1, "org.test.package", null);
Assert.assertEquals(c.serializeToJson(), expectedJsonObject.toString());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected MatchStrength hasJSONFormat(InputAccessor acc)\n/* */ throws IOException\n/* */ {\n/* 507 */ return ByteSourceJsonBootstrapper.hasJSONFormat(acc);\n/* */ }",
"@Test\n void getAndFormatJson() {\n g.getJsonFromGitHub();\n String json = g.getJsonString();\n\n boolean ... | [
"0.7402474",
"0.6794995",
"0.6699718",
"0.65984404",
"0.65035206",
"0.6359658",
"0.63158345",
"0.6263387",
"0.62261933",
"0.6184613",
"0.615337",
"0.6147358",
"0.6145593",
"0.6117451",
"0.61060005",
"0.6102127",
"0.6065121",
"0.60536253",
"0.60286057",
"0.60066533",
"0.599795... | 0.53776866 | 100 |
Test compitability with old JSON format. | @Test
@SmallTest
public void testReadFromJsonString() throws Throwable {
final String jsonObjectString =
"{'crash-local-id':'123456abc','crash-capture-time':1234567890,"
+ "'crash-keys':{'app-package-name':'org.test.package'}}";
CrashInfo parsed = CrashInfo.readFromJsonString(jsonObjectString);
CrashInfo expected =
createCrashInfo("123456abc", 1234567890, null, -1, "org.test.package", null);
Assert.assertThat(parsed, equalsTo(expected));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected MatchStrength hasJSONFormat(InputAccessor acc)\n/* */ throws IOException\n/* */ {\n/* 507 */ return ByteSourceJsonBootstrapper.hasJSONFormat(acc);\n/* */ }",
"@Test\n void getAndFormatJson() {\n g.getJsonFromGitHub();\n String json = g.getJsonString();\n\n boolean ... | [
"0.7402474",
"0.6794995",
"0.6699718",
"0.65984404",
"0.65035206",
"0.6359658",
"0.63158345",
"0.6263387",
"0.62261933",
"0.6184613",
"0.615337",
"0.6147358",
"0.6145593",
"0.6117451",
"0.61060005",
"0.6102127",
"0.6065121",
"0.60536253",
"0.60286057",
"0.60066533",
"0.599795... | 0.5462809 | 79 |
Agafa la mida de la pantalla del dispositiu. La idea es que pugui jugar amb la proporcionalitat segons diferents mides de pantalla. | private void getScreenSize() {
WindowManager wm = getWindowManager();
Display disp = wm.getDefaultDisplay();
Point size = new Point();
disp.getSize(size);
screenWidth = size.x;
screenHeight = size.y;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}",
"@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aument... | [
"0.66162807",
"0.6493166",
"0.64308363",
"0.6421916",
"0.639725",
"0.6378337",
"0.63665664",
"0.6346575",
"0.6330071",
"0.6268453",
"0.6245375",
"0.62438625",
"0.6236527",
"0.6194757",
"0.61935914",
"0.6173337",
"0.61713016",
"0.6167189",
"0.61468",
"0.6138357",
"0.61204183",... | 0.0 | -1 |
Constructor called by the system to instantiate the task | public GetAddressTask(Context context) {
// Required by the semantics of AsyncTask
super();
// Set a Context for the background task
this.localContext = context;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Task() {\n\t}",
"public Task() {\r\n }",
"public Task() {\n }",
"public Task() { }",
"public Task(){\n super();\n }",
"public Task(){}",
"public Tasks() {\n }",
"public ServiceTask() {\n\t}",
"public StudentTask() {\n\t\tthis(\"student_task\", null);\n\t}",
"protected Ta... | [
"0.85529464",
"0.83794016",
"0.81787634",
"0.814815",
"0.812773",
"0.81229526",
"0.8094325",
"0.80654794",
"0.77682906",
"0.76523745",
"0.76395136",
"0.7543128",
"0.75299907",
"0.75232095",
"0.74985904",
"0.7412321",
"0.74108756",
"0.74081904",
"0.7403649",
"0.73733735",
"0.7... | 0.0 | -1 |
Get a geocoding service instance, pass latitude and longitude to it, format the returned address, and return the address to the UI thread. | @Override
protected RiderLocation doInBackground(RiderLocation... params) {
/*
* Get a new geocoding service instance, set for localized addresses.
* This example uses android.location.Geocoder, but other geocoders that
* conform to address standards can also be used.
*/
Geocoder geocoder = new Geocoder(this.localContext, Locale.getDefault());
// Get the current location from the input parameter list
RiderLocation location = params[0];
// Create a list to contain the result address
List<Address> addresses = null;
// Try to get an address for the current location. Catch IO or network
// problems.
try {
/*
* Call the synchronous getFromLocation() method with the latitude
* and longitude of the current location. Return at most 1 address.
*/
addresses = geocoder.getFromLocation(location.getLatitude(),
location.getLongitude(), 1);
// Catch network or other I/O problems.
} catch (IOException exception1) {
// Log an error and return an error message
Log.e("GetAddressTask ", exception1.getMessage());
// print the stack trace
exception1.printStackTrace();
return null;
// Catch incorrect latitude or longitude values
} catch (IllegalArgumentException exception2) {
exception2.printStackTrace();
//
return null;
}
// If the reverse geocode returned an address if (addresses != null &&
// addresses.size() > 0) {
// Get the first address
Address address = addresses.get(0);
// com.ssinfo.corider.app.models.RiderLocation locationAddress = new com.ssinfo.corider.app.models.RiderLocation();
// locationAddress.setLatitude(location.getLatitude());
//locationAddress.setLongitude(location.getLongitude());
location.setAddress(address.getMaxAddressLineIndex() > 0 ? address.getAddressLine(0):"");
location.setCity(address.getSubAdminArea());
location.setCountry(address.getCountryName());
return location;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressLint(\"NewApi\")\n\tpublic void getAddress() {\n\n\t\t// In Gingerbread and later, use Geocoder.isPresent() to see if a geocoder is available.\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD && !Geocoder.isPresent()) {\n\t\t\t// No geocoder is present. Issue an error message\n\t\t\tToast... | [
"0.7106701",
"0.67066646",
"0.66682917",
"0.6523714",
"0.6433438",
"0.6364514",
"0.6330274",
"0.6297192",
"0.62200147",
"0.6206413",
"0.6172732",
"0.6132913",
"0.6059725",
"0.6045165",
"0.5989423",
"0.5984807",
"0.5958851",
"0.5929112",
"0.5922747",
"0.58950067",
"0.588047",
... | 0.58679116 | 21 |
A method that's called once doInBackground() completes. Set the text of the UI element that displays the address. This method runs on the UI thread. | @Override
protected void onPostExecute(com.ssinfo.corider.app.models.RiderLocation address) {
if (address != null) {
mListener.onSuccess(address);
} else {
mListener.onFail("No address found");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tprotected void onPostExecute(String address) {\n\t\t\tmAddress.setText(address);\n\t\t}",
"@Override\n\t\tprotected void onPostExecute(String address) {\n\n\t\t\t// Turn off the progress bar\n\t\t\tmActivityIndicator.setVisibility(View.GONE);\n\n\t\t\t// Set the address in the UI\n\t\t\tmAddress.s... | [
"0.8295673",
"0.8040278",
"0.7362113",
"0.67496264",
"0.65874106",
"0.6389558",
"0.6274084",
"0.61685765",
"0.6153634",
"0.6146904",
"0.6138239",
"0.59590214",
"0.5912226",
"0.5872984",
"0.5832186",
"0.577763",
"0.5761276",
"0.57556725",
"0.57489127",
"0.57023287",
"0.5684032... | 0.6411657 | 5 |
room status, roomNumber, price , type, hotel name. | @Override
public String toString() {
String s = "user's id=" + id +"hotel Name = " + hotelName +", RoomNumber" + roomNumber+" hotelPrice=" + price + ", roomType=" + type;
return s;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void displayroomsinfo(boolean reserved , int roomtype){\n String query = \" SELECT Roomno , RoomtypeID , Hotelid\"\n + \" FROM Rooms \"\n + \" WHERE Reserved = ? and RoomtypeID = ? \"; \n String status , Roomtype ;\n Room... | [
"0.6955946",
"0.65222114",
"0.63932997",
"0.63465595",
"0.6316795",
"0.6315938",
"0.6224931",
"0.6030927",
"0.6024881",
"0.60044044",
"0.6000156",
"0.59975886",
"0.5982456",
"0.5923983",
"0.59230125",
"0.58956915",
"0.5871447",
"0.587027",
"0.5856133",
"0.58335483",
"0.581972... | 0.651712 | 2 |
Service provider interface java.sql.Driver | public interface Provider {
//Connection connect(String url, java.util.Properties info)
Service newService();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.sql.Driver getDriver() throws SQLException\n\t{\n\t\tif (s_driver == null)\n\t\t{\n\t\t\ts_driver = new org.postgresql.Driver();\n\t\t\tDriverManager.registerDriver (s_driver);\n\t\t\tDriverManager.setLoginTimeout (Database.CONNECTION_TIMEOUT);\n\t\t}\n\t\treturn s_driver;\n\t}",
"public interface Jd... | [
"0.69668186",
"0.6867033",
"0.6783177",
"0.6526146",
"0.6507796",
"0.6445688",
"0.6411342",
"0.6392175",
"0.6387207",
"0.6349789",
"0.6349789",
"0.6308156",
"0.61998767",
"0.6192739",
"0.6159956",
"0.61119574",
"0.6111751",
"0.6094269",
"0.60683316",
"0.604819",
"0.6026126",
... | 0.0 | -1 |
Connection connect(String url, java.util.Properties info) | Service newService(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic Connection connect(String url, Properties info) throws SQLException\r\n\t{\r\n\t\tif (!acceptsURL(url))\r\n\t\t\treturn null;\r\n\t\t// Parse URL\r\n\t\tConnectionProperties properties = ConnectionProperties.parse(url);\r\n\t\t// Get connection properties from properties\r\n\t\tproperties.set... | [
"0.780799",
"0.7094537",
"0.6918724",
"0.6828274",
"0.67494977",
"0.65633804",
"0.65309435",
"0.65252775",
"0.64110005",
"0.6352146",
"0.6352146",
"0.6331489",
"0.6282896",
"0.62604696",
"0.62445676",
"0.6177716",
"0.61319107",
"0.61260366",
"0.6105028",
"0.60991764",
"0.6094... | 0.0 | -1 |
Add method to calculate balance amount after withdrawal | public Integer withdraw(Integer amount) {
if (balance < amount) {
throw new NotEnoughFundsException(amount, balance);
}
balance -= amount;
return balance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Money getTotalBalance();",
"public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that... | [
"0.7614133",
"0.75253576",
"0.7446546",
"0.7365001",
"0.7365001",
"0.73170036",
"0.7290856",
"0.7278717",
"0.7266078",
"0.7253747",
"0.72410125",
"0.7217467",
"0.72145885",
"0.7214168",
"0.7209632",
"0.7186415",
"0.7178457",
"0.7176555",
"0.71704143",
"0.7166304",
"0.7145142"... | 0.70813864 | 31 |
Create an object for BankAccount class | @Test
void notEnoughFunds() {
BankAccount account = new BankAccount(9);
// Assertion for exception
assertThrows(NotEnoughFundsException.class, () -> account.withdraw(10),
"Balance must be greater than amount of withdrawal");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BankAccount() {\t\n\t\tthis.accountNumber = UUID.randomUUID().toString().substring(0, 6);\n\t\tthis.balance = 0;\n\t\tthis.accountType = \"Bank account\";\n\t}",
"public ProfileBankAccount() {\r\n }",
"public BankAccount(int balance) {\n\n this.balance = balance;\n\n }",
"public BankAccou... | [
"0.7987622",
"0.7898718",
"0.7679211",
"0.76787907",
"0.74386126",
"0.73289806",
"0.73276246",
"0.73276216",
"0.7241608",
"0.7190564",
"0.7161511",
"0.7157209",
"0.7152136",
"0.71513736",
"0.71337765",
"0.7129209",
"0.70765084",
"0.707076",
"0.704791",
"0.70475066",
"0.703900... | 0.0 | -1 |
Create an object for BankAccount class | @Test
void enoughFunds() {
BankAccount account = new BankAccount(100);
// Assertion for no exceptions
assertDoesNotThrow(() -> account.withdraw(100));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BankAccount() {\t\n\t\tthis.accountNumber = UUID.randomUUID().toString().substring(0, 6);\n\t\tthis.balance = 0;\n\t\tthis.accountType = \"Bank account\";\n\t}",
"public ProfileBankAccount() {\r\n }",
"public BankAccount(int balance) {\n\n this.balance = balance;\n\n }",
"public BankAccou... | [
"0.7987622",
"0.7898718",
"0.7679211",
"0.76787907",
"0.74386126",
"0.73289806",
"0.73276246",
"0.73276216",
"0.7241608",
"0.7190564",
"0.7161511",
"0.7157209",
"0.7152136",
"0.71513736",
"0.71337765",
"0.7129209",
"0.70765084",
"0.707076",
"0.704791",
"0.70475066",
"0.703900... | 0.0 | -1 |
visitor pattern accept method | public void accept(ProcessEngine engine,ProcessInstance instance) throws Exception
{
engine.process(this, instance);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void accept(Visitor visitor);",
"public abstract void accept(Visitor v);",
"public abstract void visit();",
"public Object accept(Visitor v, Object params);",
"public void accept(Visitor visitor);",
"void accept(Visitor visitor);",
"void accept(Visitor<V> visitor);",
"@Override\n\tpub... | [
"0.7932193",
"0.7798181",
"0.7685794",
"0.7598962",
"0.7557328",
"0.7419082",
"0.7305987",
"0.72771525",
"0.7217442",
"0.7161726",
"0.71250665",
"0.70852804",
"0.69485617",
"0.69324285",
"0.6930472",
"0.6925446",
"0.6925446",
"0.6924585",
"0.69063175",
"0.69056785",
"0.689684... | 0.0 | -1 |
fill It should fill all the aircraft with ammo and subtract the needed ammo from the ammo storage If there is not enough ammo then it should start to fill the aircrafts with priority first If there is no ammo when this method is called, it should throw an exception | public void fill() throws NoAmmoException {
if (this.ammoStorage <= 0) {
throw new NoAmmoException();
} else {
int ammoNeeded = overallAmmoNeeded();
if (this.ammoStorage < ammoNeeded) {
// fill priority jets
for (Jet jet : this.aircrafts) {
if (jet.isPriority() && jet.needsAmmo()) {
this.ammoStorage = jet.refillAmmo(this.ammoStorage);
}
}
// fill non-priority jets
// if still has ammo
if (this.ammoStorage > 0) {
for (Jet jet : this.aircrafts) {
if (jet.needsAmmo()) {
this.ammoStorage = jet.refillAmmo(this.ammoStorage);
}
}
}
} else {
for (Jet jet : this.aircrafts) {
if (jet.needsAmmo()) {
this.ammoStorage = jet.refillAmmo(this.ammoStorage);
}
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reload() {\n\t\tammo = AMMO_CAPACITY;\n\t}",
"public List<CardPower> pickUpAmmo()throws NoCardAmmoAvailableException {\n List<CardPower> powerups = new ArrayList<>();\n if (position.getCardAmmo() == null){\n throw new NoCardAmmoAvailableException();\n }\n if(pos... | [
"0.62392795",
"0.6041887",
"0.58210933",
"0.57940066",
"0.57619786",
"0.5756513",
"0.57374203",
"0.5652437",
"0.5621497",
"0.55936635",
"0.5569342",
"0.5561314",
"0.55017006",
"0.5445579",
"0.54400086",
"0.5438644",
"0.53940654",
"0.5387988",
"0.5385591",
"0.5355717",
"0.5340... | 0.83887476 | 0 |
fight It should take another carrier as a reference parameter and fire all the ammo from the aircrafts to it, then subtract all the damage from its health points | public void fight(Carrier enemyCarrier) {
for (Jet jet : this.aircrafts) {
enemyCarrier.setHealth(enemyCarrier.getHealth() - jet.fight());
if (enemyCarrier.getHealth() <= 0) {
enemyCarrier.setHealth(0);
break;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void fire(WarParticipant target, WarParticipant attacker, int noOfShooters);",
"public int fight(HW10Monster a, HW10Monster b,HW10Trainer a1,HW10Trainer b1 )\n\t{\n\t\t\n\t\tif(a.type.equals(\"earth\") && b.type.equals(\"fire\"))//determines which case the pokemon will have a stronger or weaker type attack power... | [
"0.70332944",
"0.6915375",
"0.6717499",
"0.670231",
"0.6503022",
"0.639227",
"0.63733095",
"0.6356985",
"0.6323361",
"0.6311389",
"0.62951213",
"0.6262465",
"0.6228494",
"0.6196285",
"0.61775744",
"0.61428237",
"0.6121477",
"0.6081307",
"0.6061666",
"0.60309273",
"0.5979883",... | 0.7194813 | 0 |
getStatus It should return a string about itself and all of its aircrafts' statuses in the following format: ```text HP: 5000, Aircraft count: 5, Ammo Storage: 2300, Total damage: 2280 Aircrafts: Type F35, Ammo: 12, Base Damage: 50, All Damage: 600 Type F35, Ammo: 12, Base Damage: 50, All Damage: 600 Type F35, Ammo: 12, Base Damage: 50, All Damage: 600 Type F16, Ammo: 8, Base Damage: 30, All Damage: 240 Type F16, Ammo: 8, Base Damage: 30, All Damage: 240 ``` If the health points are 0 then it should return: `It's dead Jim :(` | public String getStatus() {
if (this.health > 0) {
StringBuilder stringBuilder = new StringBuilder();
String[] carrierSelfStatus = {
"HP: " + this.health,
"Aircraft count: " + this.aircrafts.size(),
"Ammo Storage: " + this.ammoStorage,
"Total damage: " + this.getAllDamageDone(),
};
stringBuilder.append(String.join(", ", carrierSelfStatus));
stringBuilder.append("\nAircrafts:");
List<String> jetStatus = new ArrayList<>();
for (Jet jet : this.aircrafts) {
jetStatus.add("\n");
jetStatus.add(jet.getStatus());
}
stringBuilder.append(String.join("", jetStatus));
return stringBuilder.toString();
} else {
return "It's dead Jim :(";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getStatus(int status) {\n switch (status) {\n case 0:\n return \"FREE\";\n case 1:\n return \"IN_TRANSIT\";\n case 2:\n return \"WAITING_TO_LAND\";\n case 3:\n return \"GROUND_CLEARANCE_GRAN... | [
"0.71572864",
"0.70844686",
"0.70844686",
"0.70844686",
"0.70844686",
"0.6989509",
"0.68663347",
"0.68663347",
"0.68663347",
"0.68663347",
"0.68663347",
"0.6505167",
"0.64108574",
"0.635809",
"0.62945044",
"0.6261732",
"0.6261497",
"0.62459344",
"0.624381",
"0.62363124",
"0.6... | 0.7731666 | 0 |
short circuit if same object | @Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
// instanceof handles nulls
if (!(other instanceof DeleteTagCommand)) {
return false;
}
// state check
DeleteTagCommand e = (DeleteTagCommand) other;
return index.equals(e.index)
&& deletedTag.equals(e.deletedTag);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasSameAs();",
"public static boolean isSameObject(Object a, Object b) {\n return Builtins.isSameObject(a, b);\n }",
"private static boolean m4280b(Object obj, Object obj2) {\n if (obj != obj2) {\n if (obj == null || obj.equals(obj2) == null) {\n return null... | [
"0.6489606",
"0.63602835",
"0.6288568",
"0.62819123",
"0.6275834",
"0.6242893",
"0.6216622",
"0.6197218",
"0.61651564",
"0.612932",
"0.61013114",
"0.6062789",
"0.6060119",
"0.60575795",
"0.59936875",
"0.5965463",
"0.5942526",
"0.59319985",
"0.5913784",
"0.59096235",
"0.588531... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79041183",
"0.7805934",
"0.77659106",
"0.7727251",
"0.7631684",
"0.7621701",
"0.75839096",
"0.75300384",
"0.74873656",
"0.7458051",
"0.7458051",
"0.7438486",
"0.742157",
"0.7403794",
"0.7391802",
"0.73870087",
"0.7379108",
"0.7370295",
"0.7362194",
"0.7355759",
"0.73454577... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
dialog.cancel();
if(which == 0) {
removeAllUploadTask();
} else if(which == 1) {
task.execute();
} else if(which == 2) {
VxploApplication.getInstance().getPref("mobile_ignore").edit().putBoolean("ignored", true).commit();
task.execute();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated constructor documentation | @Autowired
public AbstractItemJsonController(Service service) {
this.service = service;
// LOG.info("Instanciando el controlador: " + this.getClass().getName());
entityClass = (Class<Entity>) ((ParameterizedType) getClass().getGenericSuperclass())
.getActualTypeArguments()[0];
// LOG.debug("entityClass: " + entityClass.getName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public PSRelation()\n {\n }",
"public Clade() {}",
"@Override\n public void init() {}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\t\tpublic void init() {... | [
"0.7486039",
"0.7027553",
"0.68112004",
"0.6759856",
"0.6741966",
"0.6702469",
"0.66600704",
"0.6652799",
"0.6639362",
"0.66103894",
"0.6584318",
"0.65763193",
"0.65735817",
"0.656134",
"0.656134",
"0.656134",
"0.656134",
"0.656134",
"0.656134",
"0.6493124",
"0.6493124",
"0... | 0.0 | -1 |
TODO Autogenerated method documentation | @ModelAttribute
public Entity getEntity(@PathVariable("entity") Long id) {
Entity entity = service.findOne(id);
if (entity == null) {
throw new NotFoundException(String.format("Entity with identifier '%s' not found", id));
}
return entity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void anula... | [
"0.64016664",
"0.6138185",
"0.613507",
"0.611465",
"0.6085438",
"0.6017817",
"0.59878755",
"0.59689856",
"0.5968348",
"0.5965449",
"0.59311014",
"0.59311014",
"0.5913574",
"0.59061414",
"0.59017813",
"0.58970773",
"0.58761966",
"0.58761966",
"0.58751035",
"0.5820303",
"0.5817... | 0.0 | -1 |
TODO Autogenerated method documentation | @GetMapping(name = "show")
public ResponseEntity<?> show(@ModelAttribute Entity entity) {
return ResponseEntity.ok(entity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void anula... | [
"0.64016664",
"0.6138185",
"0.613507",
"0.611465",
"0.6085438",
"0.6017817",
"0.59878755",
"0.59689856",
"0.5968348",
"0.5965449",
"0.59311014",
"0.59311014",
"0.5913574",
"0.59061414",
"0.59017813",
"0.58970773",
"0.58761966",
"0.58761966",
"0.58751035",
"0.5820303",
"0.5817... | 0.0 | -1 |
TODO Autogenerated method documentation | public
// static
UriComponents showURI(Entity entity) {
return MvcUriComponentsBuilder
.fromMethodCall(MvcUriComponentsBuilder.on(AbstractItemJsonController.class).show(entity))
.buildAndExpand(entity.getId()).encode();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void anula... | [
"0.6404244",
"0.6140437",
"0.61380076",
"0.6117207",
"0.6087624",
"0.602105",
"0.5990689",
"0.59705734",
"0.5970112",
"0.5967838",
"0.59332395",
"0.59332395",
"0.5915592",
"0.5909275",
"0.5904789",
"0.58996826",
"0.5879197",
"0.5879197",
"0.58774817",
"0.5822945",
"0.581956",... | 0.0 | -1 |
TODO Autogenerated method documentation | @PutMapping(name = "update")
public ResponseEntity<?> update(@ModelAttribute Entity storedEntity, @Valid @RequestBody Entity entity,
BindingResult result) {
if (result.hasErrors()) {
return ResponseEntity.status(HttpStatus.CONFLICT).body(result);
}
entity.setId(storedEntity.getId());
getService().save(entity);
return ResponseEntity.ok().build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void anula... | [
"0.64016664",
"0.6138185",
"0.613507",
"0.611465",
"0.6085438",
"0.6017817",
"0.59878755",
"0.59689856",
"0.5968348",
"0.5965449",
"0.59311014",
"0.59311014",
"0.5913574",
"0.59061414",
"0.59017813",
"0.58970773",
"0.58761966",
"0.58761966",
"0.58751035",
"0.5820303",
"0.5817... | 0.0 | -1 |
TODO Autogenerated method documentation | @DeleteMapping(name = "delete")
public ResponseEntity<?> delete(@ModelAttribute Entity entity) {
getService().delete(entity);
return ResponseEntity.ok().build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void anula... | [
"0.64016664",
"0.6138185",
"0.613507",
"0.611465",
"0.6085438",
"0.6017817",
"0.59878755",
"0.59689856",
"0.5968348",
"0.5965449",
"0.59311014",
"0.59311014",
"0.5913574",
"0.59061414",
"0.59017813",
"0.58970773",
"0.58761966",
"0.58761966",
"0.58751035",
"0.5820303",
"0.5817... | 0.0 | -1 |
constructor: User is instantiate by its name, its id, its position, and the velib card he has. x: the first coordinate of its position y: the second coordinate of its position card: velib card | public User(String name, int id, double x, double y, Card card){
this.name = name;
this.id = id;
this.position = new double[]{x,y};
this.card = card;
this.bicycle = null;
this.last_routine = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AppointmentCard(User user) {\n this.stage = new Stage();\n this.userId = user.getId();\n System.out.println(\"constructor1: \" + userId);\n }",
"public Card(User user) {\n\t\tsuper();\n\t\tthis.user=user;\n\t\tuser.setCard(this);\n\t}",
"public UserCard() {\n this(DSL.name... | [
"0.69038403",
"0.6637793",
"0.6529976",
"0.64858204",
"0.6424413",
"0.64064485",
"0.63549167",
"0.6321687",
"0.6305717",
"0.6269279",
"0.6266854",
"0.6262217",
"0.622297",
"0.61994636",
"0.61688083",
"0.6166072",
"0.6147384",
"0.6132442",
"0.6117446",
"0.6110653",
"0.61087775... | 0.84852374 | 0 |
the function count_walk_time is used to calculate the time spent on walking between the current position of the user and the chosen location. x: the first coordinate of the chosen location y: the second coordinate of the chosen location | public double count_walk_time(double x, double y){
return Math.sqrt(Math.pow(x-this.getPosition()[0],2) + Math.pow(y-this.getPosition()[1],2)) / this.WALK_SPEED;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void move()\n\t{\n time++;\n\t\tif (time % 10 == 0)\n\t\t{\n\t\t\thistogramFrame.clearData();\n\t\t}\n\t\tfor (int i = 0; i < nwalkers; i++)\n\t\t{\n\t\t\tdouble r = random.nextDouble();\n\t\t\tif (r <= pRight)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] + 1;\n\t\t\t}\n\t\t\telse if (r < pRight +... | [
"0.5446713",
"0.5344307",
"0.53041387",
"0.5230344",
"0.5185017",
"0.51608944",
"0.51494026",
"0.5138247",
"0.5130805",
"0.5121478",
"0.5080031",
"0.5079267",
"0.5056662",
"0.50537306",
"0.5038259",
"0.5031273",
"0.5030734",
"0.5028638",
"0.5008013",
"0.49986076",
"0.49372402... | 0.7737739 | 0 |
the synchronized function pay is used to realize the functionality of payment and can calculate the price spent on the routine. routine: the routine to pay for b: the bike used in the routine to pay for bank_card: the bank_card used to pay for the money. | public synchronized double pay(Routine routine, Bicycle b, Bank_Card bank_card) throws Exception{
if(!routine.getDestination().isState()){System.out.println("offline - out of order!");throw new Exception("OFFLINE");}
double price = 0;
if(routine.getDestination()==null || routine.getEnd()==null || routine.getSource()==null || routine.getStart()==null){System.out.println("no routine to pay");}
if(this.card == null){
if(b instanceof Bicycle_Mech){price = routine.count_time(b);}
if(b instanceof Bicycle_Elec){price = 2*routine.count_time(b);}
}
if(this.card != null){price = this.card.price(routine, b);}
if(bank_card.getOwner().equals(this)){bank_card.check(price);bank_card.setMoney(bank_card.getMoney()-price);}
if(!bank_card.getOwner().equals(this)){System.out.println("choose a right bank card");}
return price;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void pay(Payment payment) {\n\n\t}",
"void pay(Order order);",
"public abstract double pay();",
"void payBills();",
"public void calculatePayment() {}",
"@Override\n\tpublic void pay() {\n\t\tcreditCard.makePayment();\n\n\t}",
"public IBankTransfert payment();",
"@Override\r\n public void pay() {\... | [
"0.7272371",
"0.7012372",
"0.6871563",
"0.684021",
"0.6707517",
"0.66223866",
"0.6533953",
"0.6503037",
"0.6393511",
"0.6377141",
"0.62221205",
"0.6175648",
"0.61101437",
"0.6100965",
"0.6071183",
"0.6046572",
"0.60450685",
"0.60341114",
"0.5969943",
"0.59690017",
"0.59516853... | 0.77218086 | 0 |
the synchronized function take is used to realize the action of taking a bike at certain station for the user, and this user's bicycle attribute will be arranged by this taken bike. s: the source station to take bikes b: the type of bike to take bank_card: the bank_card used to activate of taking action | public synchronized void take(Station s, Bicycle b, Bank_Card bank_card) throws Exception{
if(!s.equals(this.last_routine.getSource())){System.out.println("CHOOSE THE STATION OF YOUR ROUTINE");throw new Exception("WRONG STATION");}
if(this.bicycle!=null){System.out.println("Already Got a Bicycle");throw new Exception("ALREADY GOT A BIKE");}
s.remove_user(this);
if(!s.isState()){System.out.println("offline - out of order!");throw new Exception("OFFLINE");}
this.setPosition(s.getPosition());
if(b instanceof Bicycle_Mech){
if(s.count_mech() == 0){System.out.println("no more mech bicycles available");}
else{
for(Map.Entry<Slot,Bicycle_Mech> me:s.getPlaces_mech().entrySet()){
if(me.getValue()!=null){
this.bicycle = me.getValue();s.getPlaces_mech().put(me.getKey(), null);
s.setRent_times(s.getRent_times()+1);s.notify_users();
this.bicycle.setNumber_rides(this.bicycle.getNumber_rides()+1);
if(bank_card.getOwner().equals(this)){this.bicycle.setBank_card_to_use(bank_card);}
if(!bank_card.getOwner().equals(this)){System.out.println("choose a right bank card");throw new Exception("WRONG BANK CARD USER");}
this.bicycle.setUser(this);
this.setPosition(s.getPosition());
break;
}
}
}
}
if(b instanceof Bicycle_Elec){
if(s.count_elec() == 0){System.out.println("no more elec bicycles available");}
else{
for(Map.Entry<Slot,Bicycle_Elec> me:s.getPlaces_elec().entrySet()){
if(me.getValue()!=null){
this.bicycle = me.getValue();s.getPlaces_elec().put(me.getKey(), null);
s.setRent_times(s.getRent_times()+1);s.notify_users();
this.bicycle.setNumber_rides(this.bicycle.getNumber_rides()+1);
if(bank_card.getOwner().equals(this)){this.bicycle.setBank_card_to_use(bank_card);}
if(!bank_card.getOwner().equals(this)){System.out.println("choose a right bank card");throw new Exception("WRONG BANK CARD USER");}
this.bicycle.setUser(this);
this.setPosition(s.getPosition());
break;
}
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void park(Station s) throws Exception{\r\n\t\tif(!s.equals(this.last_routine.getDestination())){System.out.println(\"CHOOSE THE STATION OF YOUR ROUTINE\");throw new Exception(\"WRONG STATION\");}\r\n\t\ts.remove_user(this);\r\n\t\tif(!s.isState()){System.out.println(\"offline - out of order!\")... | [
"0.68236536",
"0.54614437",
"0.5440373",
"0.5395891",
"0.5376619",
"0.53554165",
"0.5305282",
"0.5264247",
"0.52318794",
"0.5208855",
"0.51949745",
"0.5192711",
"0.51876086",
"0.51851064",
"0.51798236",
"0.517808",
"0.5159097",
"0.513847",
"0.5137136",
"0.5124581",
"0.5096702... | 0.8085508 | 0 |
the synchronized function park is used to realize the action of parking a bike at certain station for the user, and this user's bicycle attribute will be removed after parking action, and the payment action will be executed automatically while parking. s: the destination station to park bikes | public synchronized void park(Station s) throws Exception{
if(!s.equals(this.last_routine.getDestination())){System.out.println("CHOOSE THE STATION OF YOUR ROUTINE");throw new Exception("WRONG STATION");}
s.remove_user(this);
if(!s.isState()){System.out.println("offline - out of order!");throw new Exception("OFFLINE");}
if(this.bicycle == null){System.out.println("no bicycle to park");}
this.bicycle.setTotal_time_spent(this.bicycle.getTotal_time_spent()+this.bicycle.count_bike_time(this.last_routine.getSource(), this.last_routine.getDestination()));
this.setPosition(s.getPosition());
if(this.bicycle instanceof Bicycle_Mech){
if(s.getPlaces_mech().size()-s.count_mech() == 0){System.out.println("no more mech bicycle slots available");}
else{
if(s instanceof Station_Plus && this.card!=null){this.card.setCredits(this.card.getCredits()+5);}
for(Map.Entry<Slot,Bicycle_Mech> me:s.getPlaces_mech().entrySet()){
if(me.getValue()==null){
s.getPlaces_mech().put(me.getKey(), (Bicycle_Mech)this.bicycle);s.setReturn_times(s.getReturn_times()+1);
if(this.card!=null){System.out.println(this.getUserName() + " Credits remaining: " + this.getCard().getCredits());}
System.out.println(this.getUserName() + " PAY: " + this.pay(this.last_routine, this.bicycle, this.bicycle.getBank_card_to_use()));
this.last_routine = null;
s.notify_users();
this.bicycle.setUser(null);
this.bicycle.setBank_card_to_use(null);
this.bicycle = null;
this.setPosition(s.getPosition());
break;
}
}
}
}
if(this.bicycle instanceof Bicycle_Elec){
if(s.getPlaces_elec().size()-s.count_elec() == 0){System.out.println("no more elec bicycle slots available");}
else{
if(s instanceof Station_Plus && this.card!=null){this.card.setCredits(this.card.getCredits()+5);}
for(Map.Entry<Slot,Bicycle_Elec> me:s.getPlaces_elec().entrySet()){
if(me.getValue()==null){
s.getPlaces_elec().put(me.getKey(), (Bicycle_Elec)this.bicycle);s.setReturn_times(s.getReturn_times()+1);
if(this.card!=null){System.out.println(this.getUserName() + " Credits remaining: " + this.getCard().getCredits());}
System.out.println(this.getUserName() + " PAY: " + this.pay(this.last_routine, this.bicycle,this.bicycle.getBank_card_to_use()));
this.last_routine = null;
s.notify_users();
this.bicycle.setUser(null);
this.bicycle.setBank_card_to_use(null);
this.bicycle = null;
this.setPosition(s.getPosition());
break;
}
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Ticket park(ParkingRequest parkingRequest, Vehicle vehicle) {\n return facade.park(parkingRequest,vehicle);\n }",
"public void park(ParkingLot preferredLot, Vehicle vehicle) {\n preferredLot.park(vehicle);\n }",
"void park(Vehicle v) {\n\t\t\tcurrentVehicle = v;\n\t\t}... | [
"0.7173254",
"0.6926365",
"0.68743044",
"0.6526803",
"0.65060306",
"0.65019727",
"0.64896524",
"0.61731416",
"0.6143932",
"0.6085493",
"0.5988003",
"0.5982546",
"0.5854367",
"0.5763413",
"0.56812596",
"0.56730753",
"0.55890113",
"0.5580352",
"0.5571482",
"0.55684984",
"0.5537... | 0.7551167 | 0 |
the synchronized function choose_routine is used to decide which routine to take for the trip. the user's last_routine attribute will be arranged by this routine variable. routine: the decided taken routine | public synchronized void choose_routine(Routine routine) throws Exception{
routine.getSource().add_user(this);
routine.getDestination().add_user(this);
this.last_routine = routine;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"BehavioralFeature getRoutine();",
"public synchronized void take(Station s, Bicycle b, Bank_Card bank_card) throws Exception{\r\n\t\tif(!s.equals(this.last_routine.getSource())){System.out.println(\"CHOOSE THE STATION OF YOUR ROUTINE\");throw new Exception(\"WRONG STATION\");}\r\n\t\tif(this.bicycle!=null){Syste... | [
"0.5680361",
"0.54084224",
"0.54072297",
"0.5328211",
"0.50286776",
"0.500651",
"0.49965277",
"0.49492928",
"0.4876032",
"0.48424065",
"0.47210574",
"0.46778324",
"0.46736446",
"0.46721205",
"0.46421397",
"0.46380562",
"0.46361327",
"0.4628472",
"0.46197906",
"0.46159232",
"0... | 0.74509484 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.