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 |
|---|---|---|---|---|---|---|
Get the set of HTTP status codes that occur in the application that should be ignored from being reported as errors. | Set<Integer> getIgnoreStatusCodes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Set<Integer> getExpectedStatusCodes();",
"public int[] getStatusCodes()\n {\n return this.statusCodes;\n }",
"@Bean\n public Set<HttpStatus> validStatuses() {\n return new HashSet<>(Arrays.asList(HttpStatus.OK, HttpStatus.BAD_REQUEST, HttpStatus.NOT_FOUND));\n }",
"int getStatusCode... | [
"0.73260236",
"0.6913132",
"0.6555761",
"0.61564106",
"0.61564106",
"0.61563563",
"0.61400896",
"0.60559714",
"0.6041062",
"0.5850453",
"0.584096",
"0.5805319",
"0.57650113",
"0.5734261",
"0.5719921",
"0.5712869",
"0.57109267",
"0.5683739",
"0.5631071",
"0.5576684",
"0.555006... | 0.8487794 | 0 |
Get the set of error classes (and optionally) error messages that are expected to occur in the application. | Set<ExpectedErrorConfig> getExpectedErrors(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> getErrorMessages();",
"public Set<String> getErrorMessages() {\n HashSet<String> result = new HashSet<String>();\n switch (argumentPresence) {\n case MANDATORY:\n if (!argument.hasValue()) {\n result.add(messageArgMissing);\n ... | [
"0.66332877",
"0.6413749",
"0.64016026",
"0.6361665",
"0.63573056",
"0.609515",
"0.60670424",
"0.60173887",
"0.59602135",
"0.5918757",
"0.58985114",
"0.5887503",
"0.5846319",
"0.57970625",
"0.57846713",
"0.57732856",
"0.5757499",
"0.575298",
"0.5748827",
"0.5738638",
"0.57335... | 0.6517352 | 1 |
Get the set of HTTP status codes that are expected to occur in the application. | Set<Integer> getExpectedStatusCodes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int[] getStatusCodes()\n {\n return this.statusCodes;\n }",
"Set<Integer> getIgnoreStatusCodes();",
"int getStatusCode();",
"int getStatusCode();",
"@Bean\n public Set<HttpStatus> validStatuses() {\n return new HashSet<>(Arrays.asList(HttpStatus.OK, HttpStatus.BAD_REQUEST, Htt... | [
"0.79864806",
"0.71591634",
"0.69455254",
"0.69455254",
"0.68352216",
"0.6695987",
"0.66725767",
"0.66648304",
"0.6587829",
"0.6530805",
"0.6510113",
"0.64865553",
"0.64806354",
"0.6455292",
"0.64109844",
"0.6396985",
"0.6377049",
"0.63623124",
"0.6333425",
"0.63215804",
"0.6... | 0.8326438 | 0 |
Gets a value indicating if error priority should be ignored; default is true. | boolean isIgnoreErrorPriority(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean getPriority() {\n\t\treturn priority;\n\t}",
"public boolean getPriority() {\n\t\treturn priority;\n\t}",
"public boolean isIgnoreErrors() {\n return ignoreErrors;\n }",
"public boolean isReportedNonSevere() {\n if (\"4\".equals(originalPriority.getId()) || \"5\".equals(origin... | [
"0.5904455",
"0.5904455",
"0.5859294",
"0.58213925",
"0.5729301",
"0.5674357",
"0.5632743",
"0.5568361",
"0.5539061",
"0.5519275",
"0.5518226",
"0.54981345",
"0.5430168",
"0.5401325",
"0.5380569",
"0.53182864",
"0.53069544",
"0.53043306",
"0.5301888",
"0.52999544",
"0.5294244... | 0.79725456 | 0 |
Gets the defined exception handlers in configuration. | Object getExceptionHandlers(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Catch[] exceptionHandlers();",
"public FlowExecutionExceptionHandlerSet getExceptionHandlerSet() {\r\n\t\treturn exceptionHandlerSet;\r\n\t}",
"public UnitP.ExceptionHandlingTypes getExceptionHandling()\n\t\t{\n\t\t return ExceptionHandling;\n\t\t}",
"public void setExceptionHandlers(Catch[] except... | [
"0.76498824",
"0.61338186",
"0.59599423",
"0.5952424",
"0.5869042",
"0.5869042",
"0.57947826",
"0.5736695",
"0.57363945",
"0.5733853",
"0.5733853",
"0.56915253",
"0.5564299",
"0.5547973",
"0.5526519",
"0.5505203",
"0.5504412",
"0.54939693",
"0.548195",
"0.5413915",
"0.5390319... | 0.79455936 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
HttpClient httpClient = new HttpClient();
HttpMethod getMethod = new GetMethod("http://www.yahoo.com");
getMethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,
new DefaultHttpMethodRetryHandler(3, false));
try {
// Execute the method.
int statusCode = httpClient.executeMethod(getMethod);
if (statusCode != HttpStatus.SC_OK) {
System.err.println("Method failed: " + getMethod.getStatusLine());
}
// Read the response body.
byte[] responseBody = getMethod.getResponseBody();
// Deal with the response.
// Use caution: ensure correct character encoding and is not binary data
System.out.println(new String(responseBody));
} catch (HttpException e) {
System.err.println("Fatal protocol violation: " + e.getMessage());
e.printStackTrace();
} catch (IOException e) {
System.err.println("Fatal transport error: " + e.getMessage());
e.printStackTrace();
} finally {
// Release the connection.
getMethod.releaseConnection();
}
} | {
"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 |
/3 LOCATIONS TO CHANGE IN SIMPLE VERSION 1. in main, change the filename; 2. above, change NOZERO=true; 3. in reconstructTree(), change HMAC; | public static void main(String[] args){
//a
/*HCTree hct=new HCTree("../HCT/huff_test_mssg.txt","../HCT/test_key.txt");
hct.buildTreeFromMessage();*/
//b
HCTree hct=new HCTree("../HCT/huff_test_mssg.txt","../HCT/test_key.txt","../HCT/huff_test_tree_clean.txt");
hct.verify();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\tBinaryNode root = new BinaryNode(1);\n root.left = new BinaryNode(2);\n root.right = new BinaryNode(3);\n root.left.left = new BinaryNode(4);\n root.right.left = new BinaryNode(5);\n root.right.right = new BinaryNode(6);\n root... | [
"0.5575975",
"0.5546017",
"0.54465497",
"0.5427639",
"0.5408774",
"0.53986543",
"0.5380865",
"0.53620154",
"0.5356897",
"0.53529257",
"0.5343561",
"0.5324597",
"0.5275122",
"0.52724564",
"0.52228665",
"0.51777136",
"0.5169526",
"0.5168609",
"0.51596445",
"0.51463914",
"0.5140... | 0.5906777 | 0 |
Constrution of TREE from file | public String verify(){
String res="";
int msglen=msgarr.length;
for(int i=0;i<msglen;i++){
treecodestr=treecodestr+codeTable[msgarr[i]+DIFF];
}
//Now compare treecodestr and filecodestr
boolean same=treecodestr.equals(filecodestr);
if(same){
res=":) -- This tree has not been modified.";
}else{
res=":( -- This tree has been modified.";
}
System.out.println(res);
return res;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static DecisionTree loadTree(File file) throws FileNotFoundException {\r\n\t\tScanner scan = new Scanner(file); // Read from file\r\n\t\t// First line of file is question at root node\r\n\t\tDecisionTree dt = new DecisionTree(scan.nextLine());\r\n\t\tBinaryNode<String> root = dt.getRootNode();\r\n\t\tfillT... | [
"0.6960202",
"0.6289078",
"0.60961264",
"0.60878605",
"0.6042582",
"0.60217834",
"0.60149056",
"0.5883435",
"0.57742095",
"0.56790155",
"0.56728435",
"0.5654072",
"0.5648345",
"0.5627614",
"0.5598117",
"0.55851054",
"0.55790704",
"0.55699915",
"0.55317885",
"0.5521279",
"0.55... | 0.0 | -1 |
Constrution of TREE from message file | public String buildTreeFromMessage(){
parseMsg();
if(printOCCTable)printTable();
constructTree();
reconstructTree();
if(printHuffTree)
printTree();
return printBFSTree();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static RootedTree parseTree(String line,\n\t\t\tMap<String, String> translation)\n\t{\t\t\n\t\tString newickStr = StringUtils.selectFirstRegex(newickPattern, line);\t\t\t\t\n\t\tnewickStr=newickStr.substring(4); \t\n\t\t// hack (cannot translate in tree rep because of limitation of newick parser\t\t\n\t\tf... | [
"0.6012633",
"0.5847484",
"0.5669935",
"0.56668955",
"0.56015843",
"0.5533498",
"0.5477834",
"0.5461683",
"0.54151124",
"0.5380017",
"0.5314051",
"0.52479553",
"0.5229754",
"0.5227132",
"0.5211287",
"0.51656216",
"0.5150077",
"0.5140002",
"0.5137626",
"0.51366866",
"0.5129896... | 0.6880173 | 0 |
get the priority queue | public void constructTree(){
PriorityQueue<HCNode> queue=new PriorityQueue<HCNode>();
for(int i=0;i<MAXSIZE;i++){
if(NOZERO){
if(occTable[i]!=0){
HCNode nnode=new HCNode(""+(char)(i-DIFF),occTable[i], null);
queue.add(nnode);
}
}else{
HCNode nnode=new HCNode(""+(char)(i-DIFF),occTable[i], null);
queue.add(nnode);
}
}
//constructing the Huffman Tree
HCNode n1=null,n2=null;
while(((n2=queue.poll())!=null) && ((n1=queue.poll())!=null)){
HCNode nnode=new HCNode(n1.str+n2.str,n1.occ+n2.occ, null);
nnode.left=n1;nnode.right=n2;
n1.parent=nnode;n2.parent=nnode;
queue.add(nnode);
}
if(n1==null&&n2==null){
System.out.println("oops");
}
if(n1!=null)
root=n1;
else
root=n2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\nPriorityQueue pq= new PriorityQueue(15);//,new MyComparator123());\r\nSystem.out.println(pq.peek());\r\n//System.out.println(pq.element());\r\n/*for(int i=1;i<=10;i++)\r\npq.offer(i);\r\nSystem.out.println(pq);\r\nSystem.out.println(pq.poll());\r\n\r\nSystem.out.println(pq... | [
"0.71433717",
"0.70332706",
"0.6765829",
"0.67609817",
"0.6747415",
"0.67450196",
"0.6733466",
"0.67133564",
"0.6710211",
"0.6688525",
"0.6682364",
"0.66664666",
"0.6651495",
"0.66511995",
"0.66396415",
"0.662486",
"0.662486",
"0.662486",
"0.662486",
"0.662486",
"0.662486",
... | 0.0 | -1 |
encode the tree here | public String printBFSTree(){
if(root==null)return "";
String binstr="";
String valuestr="";
String codestr="";
LinkedList<HCNode> list=new LinkedList<HCNode>();
root.code="";
list.add(root);
HCNode node;
while(list.size()>0){
node=list.getFirst();
if(node.left==null && node.right==null){
binstr=binstr+"0";
valuestr=valuestr+((byte)node.str.charAt(0))+"\n";
codestr=codestr+node.code;
}else{
binstr=binstr+"1";
}
if(node.left!=null){node.left.code=node.left.parent.code+"0";list.addLast(node.left);}
if(node.right!=null){node.right.code=node.right.parent.code+"1";list.addLast(node.right);}
list.removeFirst();
}
String res=binstr+"\n"+valuestr+codestr+"\n";
System.out.println(binstr);
System.out.print(valuestr);
System.out.println(codestr);
return res;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void encodeTree(){\n StringBuilder builder = new StringBuilder();\n encodeTreeHelper(root,builder);\n }",
"public TreeNode encode(Node root) {\n return en(root);\n }",
"private void encodeTree(BitOutputStore output, SymbolNode root) {\n output.appendBits(8, nLeafNodes - 1);\n... | [
"0.8675427",
"0.7457237",
"0.6877707",
"0.67909175",
"0.6712324",
"0.6634619",
"0.6506185",
"0.64333487",
"0.6331456",
"0.62390345",
"0.6222097",
"0.6218176",
"0.6204431",
"0.6194309",
"0.6188243",
"0.6151778",
"0.61329055",
"0.6124505",
"0.6056437",
"0.6043162",
"0.60382485"... | 0.61200607 | 18 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_mpesa, container, false);
buttons = new ArrayList<Button>();
for(int id : BUTTON_IDS){
Button button = (Button) view.findViewById(id);
button.setOnClickListener(myListener);
buttons.add(button);
}
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
do something when the button is clicked | public void onClick(View v) {
switch (v.getId()) {
case R.id.send_money:
Toast.makeText(getActivity().getApplicationContext(), "Send Money Button", Toast.LENGTH_SHORT).show();
Fragment sendMoneyFragment = new SendMoneyFragment();
FragmentTransaction transaction = getFragmentManager().beginTransaction();
transaction.replace(R.id.main_activity, sendMoneyFragment);
transaction.addToBackStack(null);
transaction.commit();
break;
case R.id.withdraw_cash:
Toast.makeText(getActivity().getApplicationContext(), "Withdraw Cash Button", Toast.LENGTH_SHORT).show();
break;
case R.id.buy_airtime:
Toast.makeText(getActivity().getApplicationContext(), "Buy Airtime Button", Toast.LENGTH_SHORT).show();
break;
case R.id.m_shwari:
Toast.makeText(getActivity().getApplicationContext(), "M-Shwari Button", Toast.LENGTH_SHORT).show();
break;
case R.id.lipa_na_mpesa:
Toast.makeText(getActivity().getApplicationContext(), "Lipa na MPESA Button", Toast.LENGTH_SHORT).show();
break;
case R.id.my_account:
Toast.makeText(getActivity().getApplicationContext(), "My Account Button", Toast.LENGTH_SHORT).show();
break;
default:
break;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buttonClicked();",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"void onClick();",
"@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n ... | [
"0.83658314",
"0.7859669",
"0.75064087",
"0.7495098",
"0.7488581",
"0.74452615",
"0.7248752",
"0.7246329",
"0.7236938",
"0.72196186",
"0.7205128",
"0.7188473",
"0.717184",
"0.7171007",
"0.7167208",
"0.7153844",
"0.7143459",
"0.7132352",
"0.7095667",
"0.70913684",
"0.70835173"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected List<AppEntry> doInBackground(Void... params) {
List<PackageInfo> apps = getPackageManager()
.getInstalledPackages(0);
if (apps == null) {
apps = new ArrayList<PackageInfo>();
}
// Create corresponding array of entries and load their labels.
List<AppEntry> entries = new ArrayList<AppEntry>();
for (int i = 0; i < apps.size(); i++) {
AppEntry entry = new AppEntry(SoftwareUninstallActivity.this,
apps.get(i));
entry.packageName=apps.get(i).packageName;
entry.loadLabel(SoftwareUninstallActivity.this);
entry.alpha = getAlpha(TextUtil.converterToFirstSpell(entry
.getLabel()));
if ((entry.getIsUser()||((entry.mInfo.applicationInfo.flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP)!= 0))
&& !entry.getPackageName().contains(
Constants.PACKAGENAME_NAME)) {
entries.add(entry);
}
}
// Sort the list.
Collections.sort(entries, ALPHA_COMPARATOR);
return entries;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onPostExecute(List<AppEntry> result) {
super.onPostExecute(result);
if (result == null || result.size() == 0) {
iconTitleSort.setVisibility(View.GONE);
moreUninstallBtn.setEnabled(false);
moreUninstallBtn.setText(getString(R.string.unstallmush));
showNoResultView();
return;
}
iconTitleSort.setVisibility(View.GONE);
loading.setVisibility(View.GONE);
mApps.clear();
Collections.sort(result, ALPHA_COMPARATOR);
mApps.addAll(result);
for (int i = 0; i < mApps.size(); i++) {
try {
queryPacakgeSize(mApps.get(i).mInfo.packageName);
} catch (Exception e) {
}
}
try {
Thread.sleep(1000);
}catch(Exception e)
{}
mAdapter.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 View getView(int arg0, View arg1, ViewGroup arg2) {
final AppEntry entry = (AppEntry) getItem(arg0);
ViewHolder holder;
if (arg1 == null) {
holder = new ViewHolder();
arg1 = inflater.inflate(R.layout.app_uninstall_item_layout,
null);
holder.appIcon = (ImageView) arg1
.findViewById(R.id.uninstall_app_icon);
holder.appName = (TextView) arg1
.findViewById(R.id.uninstall_app_packagename);
holder.appInfo = (TextView) arg1
.findViewById(R.id.unistall_app_info);
holder.appUninstallBtn = (LinearLayout) arg1
.findViewById(R.id.icon_btn_uninstall);
holder.imgCheck = (ImageView) arg1.findViewById(R.id.img_check);
holder.tvAlpha = (TextView) arg1.findViewById(R.id.tv_alpha);
holder.driverLine = arg1.findViewById(R.id.driver_line_view);
holder.installphone=(TextView) arg1.findViewById(R.id.installphone);
holder.installsd=(TextView) arg1.findViewById(R.id.installsd);
holder.bestone_appsize=(TextView) arg1.findViewById(R.id.bestone_appsize);
holder.bestone_btn_uninstall=(Button) arg1.findViewById(R.id.bestone_btn_uninstall);
holder.uninstallitembg=(LinearLayout) arg1.findViewById(R.id.uninstallitembg);
arg1.setTag(holder);
} else {
holder = (ViewHolder) arg1.getTag();
}
/*add by zengxiao for:修改应用卸载*/
if ((entry.mInfo.applicationInfo.flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE) != 0) {
holder.installphone.setVisibility(View.GONE);
holder.installsd.setVisibility(View.VISIBLE);
}
else{
holder.installsd.setVisibility(View.GONE);
holder.installphone.setVisibility(View.VISIBLE);
}
if(entry.userTime!=null&&!(entry.userTime.equals("")))
{
holder.appInfo.setText(entry.userTime);
}
/* holder.installwhere=(TextView) arg1.findViewById(R.id.installwhere);
holder.bestone_appsize=(TextView) arg1.findViewById(R.id.bestone_appsize);*/
if(entry.packgeSize!=0)
{
DecimalFormat decimalFormat=new DecimalFormat(".00");//构造方法的字符格式这里如果小数不足2位,会以0补足.
String p=decimalFormat.format(entry.packgeSize);//format 返回的是字符串
holder.bestone_appsize.setText(SoftwareUninstallActivity.this.getString(R.string.allusene)+p+"M");
}
holder.bestone_btn_uninstall.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
showShortToast(getString(R.string.unstallnow));
PackageUtil.uninstallApp(MyApplication.getInstance(),
entry.getPackageName(), "", false);
}
});
/*add end*/
holder.imgCheck.setSelected(entry.isSelected);
holder.appIcon.setBackgroundDrawable(entry.getIcon());
holder.appName.setText(entry.getLabel());
/*holder.appInfo.setText(getString(R.string.version_soft) + entry.getVersionName());*/
/*holder.appUninstallBtn.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
showShortToast(getString(R.string.unstallnow));
PackageUtil.uninstallApp(MyApplication.getInstance(),
entry.getPackageName(), "", false);
//uninstallByPName(entry.getPackageName(), entry.getLabel());
}
});*/
holder.uninstallitembg.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
runApp(entry);
}
});
String currentAlpha = entry.alpha;
String priviewAlpha = (arg0 - 1) >= 0 ? mApps.get(arg0 - 1).alpha
: " ";
String nextAlpha = (arg0 + 1) <= mApps.size() - 1 ? mApps
.get(arg0 + 1).alpha : "";
/*if (!priviewAlpha.equals(currentAlpha)) {
holder.tvAlpha.setVisibility(View.VISIBLE);
holder.tvAlpha.setText(currentAlpha);
} else {
holder.tvAlpha.setVisibility(View.GONE);
}*/
holder.tvAlpha.setVisibility(View.GONE);
/*if (nextAlpha.equals(currentAlpha)) {
holder.driverLine.setVisibility(View.VISIBLE);
} else {
*/ holder.driverLine.setVisibility(View.GONE);
/*}*/
holder.imgCheck.setVisibility(View.GONE);
holder.appUninstallBtn.setVisibility(View.GONE);
switch (sort_type) {
// 按名称排序
case 1:
holder.appInfo.setText(getString(R.string.version_soft) + entry.getVersionName());
holder.appUninstallBtn.setVisibility(View.VISIBLE);
break;
// 按大小排序
case 2:
holder.driverLine.setVisibility(View.VISIBLE);
holder.tvAlpha.setVisibility(View.GONE);
holder.appInfo.setText(Util.bytes2kb(entry.getSize()));
break;
// 按日期排序
case 3:
holder.driverLine.setVisibility(View.VISIBLE);
holder.tvAlpha.setVisibility(View.GONE);
holder.appInfo.setText(DateUtil
.getFormatShortTime(entry.mApkFile.lastModified()));
break;
case 4:
holder.imgCheck.setVisibility(View.VISIBLE);
holder.appUninstallBtn.setVisibility(View.VISIBLE);
break;
default:
holder.appInfo.setText(getString(R.string.version_soft) + entry.getVersionName());
break;
}
return arg1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int compare(Object arg0, Object arg1) {
AppEntry entry1 = (AppEntry) arg0;
AppEntry entry2 = (AppEntry) arg1;
long result = entry1.getSize() - entry2.getSize();
if (result > 0) {
return -1;
} else if (result == 0) {
return 0;
} else if (result < 0) {
return 1;
}
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int compare(Object arg0, Object arg1) {
AppEntry entry1 = (AppEntry) arg0;
AppEntry entry2 = (AppEntry) arg1;
long result = entry1.mApkFile.lastModified()
- entry2.mApkFile.lastModified();
if (result > 0) {
return -1;
} else if (result == 0) {
return 0;
} else if (result < 0) {
return 1;
}
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int compare(Object arg0, Object arg1) {
AppEntry entry1 = (AppEntry) arg0;
AppEntry entry2 = (AppEntry) arg1;
long result = entry1.getStartCount() - entry2.getStartCount();
if (result > 0) {
return -1;
} else if (result == 0) {
return 0;
} else if (result < 0) {
return 1;
}
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void networkIsOk() {
} | {
"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 installedSucess(String packageName) {
} | {
"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 |
/ [Count Letters] Create a method that will accept a String and print how many times each characters is found in the String Ex: Input: "apple tree" Output: a 1 p 2 l 1 e 3 1 (space char) t 1 r 1 | public static void main(String[] args) {
countLetters("apple tree");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int doCount(String s){\r\n\t\tint count = 0;\r\n\t\tint i;\r\n\t\tfor(i = 0; i < s.length(); i++){\r\n\t\t\tif ( s.charAt(i) == Letter )\r\n\t\t\t\tcount++;\r\n\t\t}\r\n\t\t\r\n\t\treturn count;\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n ... | [
"0.75777596",
"0.74562865",
"0.7315787",
"0.72316974",
"0.7191794",
"0.7158773",
"0.7096132",
"0.7092095",
"0.709041",
"0.70475245",
"0.70271844",
"0.6905302",
"0.68853664",
"0.68799746",
"0.6869122",
"0.6848112",
"0.6838469",
"0.6837204",
"0.6819288",
"0.6804097",
"0.6795928... | 0.64605427 | 52 |
TODO Autogenerated method stub | @Override
public int insertCustomer(Customer customer) throws BillingServicesDownException {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public long insertPostPaidAccount(int customerID, PostpaidAccount account) {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean updatePostPaidAccount(int customerID, PostpaidAccount account) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int insertMonthlybill(int customerID, long mobileNo, Bill bill) {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int insertPlan(Plan plan) throws PlanDetailsNotFoundException {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean deletePostPaidAccount(int customerID, long mobileNo) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Bill getMonthlyBill(int customerID, long mobileNo, String billMonth) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Bill> getCustomerPostPaidAccountAllBills(int customerID, long mobileNo) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<PostpaidAccount> getCustomerPostPaidAccounts(int customerID) {
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 Customer getCustomer(int customerID) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Customer> getAllCustomers() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<Plan> getAllPlans() {
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 Plan getPlan(int planID) {
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 PostpaidAccount getCustomerPostPaidAccount(int customerID, long mobileNo) {
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 Plan getPlanDetails(int customerID, long mobileNo) {
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 boolean deleteCustomer(int customerID) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
/ This is the method that is called by the Quartz job scheduler. | @Override
@Transactional
protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
if (batchProcessEnabled()) {
StringBuilder builder = new StringBuilder();
// The cron job runs as this user
UserSession userSession = new UserSession(user);
GlobalVariables.setUserSession(userSession);
try {
List<ReportTrackingNotificationDetails> results = reportTrackingNotificationService.runReportTrackingNotifications();
buildMessage(builder, results);
} catch (Exception e) {
LOG.error("Error running report tracking notification service.", e);
builder.append("Message: Error running report tracking notification service. See log for more details. ").append(e.getMessage());
}
String message = builder.toString();
LOG.info(message);
String recipient = getRecipient();
// Send notification only if recipient has been set in the param
if (StringUtils.isNotEmpty(recipient)) {
kcNotificationService.sendNotification(CONTEXT_NAME, SUBJECT, message, Collections.singletonList(recipient));
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void scheduleJob() {\n\n }",
"protected void beforeJobExecution() {\n\t}",
"protected void afterJobExecution() {\n\t}",
"public void scheduleJobs();",
"@Override\n public void reportScheduler() {\n }",
"@Override\r\n\tpublic void doBeforeJob() {\n\r\n\t}",
"public void ... | [
"0.7717622",
"0.708888",
"0.68397045",
"0.6826991",
"0.6800894",
"0.6701451",
"0.66516364",
"0.6628389",
"0.6572815",
"0.65024674",
"0.64904445",
"0.6487265",
"0.63693374",
"0.6355847",
"0.6355789",
"0.6321376",
"0.63020897",
"0.6300967",
"0.6289399",
"0.62771094",
"0.625231"... | 0.57530624 | 74 |
This method gets the recipient specified in the parameter. | protected String getRecipient() {
return parameterService.getParameterValueAsString(AwardDocument.class,
Constants.REPORT_TRACKING_NOTIFICATIONS_BATCH_RECIPIENT);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRecipient()\n {\n return recipient;\n }",
"public String getRecipient() {\n\t\treturn recipient;\n\t}",
"public java.lang.String getRecipient() {\n return recipient;\n }",
"public Object getRecipient() {\n\t\treturn this.recipient;\n\t}",
"public Recipient getRecipie... | [
"0.7631702",
"0.7553002",
"0.74412906",
"0.7431889",
"0.7312859",
"0.725811",
"0.69515204",
"0.6770197",
"0.67508006",
"0.66803944",
"0.6506918",
"0.64969057",
"0.6451424",
"0.64376646",
"0.64224726",
"0.64094514",
"0.6269544",
"0.6180941",
"0.60661",
"0.60509574",
"0.6019088... | 0.72559536 | 6 |
This is injected into the scheduler context by spring. | public void setParameterService(ParameterService parameterService) {
this.parameterService = parameterService;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected Scheduler scheduler() {\n return scheduler;\n }",
"protected abstract void scheduler_init();",
"@Autowired\n public ScheduledTask(IsTimeProducer producer, IsTimeService isTimeService) {\n this.producer = producer;\n this.isTimeService = isTimeService;\n }"... | [
"0.66755366",
"0.65800333",
"0.6366038",
"0.6301895",
"0.6259235",
"0.61835134",
"0.6085371",
"0.60642123",
"0.60530174",
"0.5984281",
"0.5959146",
"0.594175",
"0.59187984",
"0.59062856",
"0.58850694",
"0.5884177",
"0.5874423",
"0.5848627",
"0.5844489",
"0.5832178",
"0.582547... | 0.0 | -1 |
This is injected into the scheduler context by spring. | public void setKcNotificationService(KcNotificationService kcNotificationService) {
this.kcNotificationService = kcNotificationService;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected Scheduler scheduler() {\n return scheduler;\n }",
"protected abstract void scheduler_init();",
"@Autowired\n public ScheduledTask(IsTimeProducer producer, IsTimeService isTimeService) {\n this.producer = producer;\n this.isTimeService = isTimeService;\n }"... | [
"0.6674294",
"0.65795815",
"0.6364875",
"0.6301345",
"0.625817",
"0.61828864",
"0.6084726",
"0.60647833",
"0.6052376",
"0.5983859",
"0.595917",
"0.5940951",
"0.59175307",
"0.59051543",
"0.5885042",
"0.5883742",
"0.5873262",
"0.58484006",
"0.58431053",
"0.58323854",
"0.5824805... | 0.0 | -1 |
/ cacheManager.getCacheNames().forEach(cacheName > Objects.requireNonNull(cacheManager.getCache(cacheName)).clear()); Post p = postRepository.findPostById(1L); checkQueryCount(1); | @Test
public void getPostByIdTest() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testQueryCaching(){\n\t\tqueryCache();\n\t\tqueryCache2();\n\t}",
"public void post() {\n//\t\tif(!supercachequery){\n//\t\t\thandlePostReset();\n//\t\t}\n//\t\tsupercachequery = false;\n\t}",
"public void cacheableQuery() throws HibException;",
"public void testMultiEMCachingTrue() {\n ... | [
"0.65561897",
"0.5851529",
"0.5808006",
"0.57679015",
"0.56953835",
"0.5671581",
"0.5540532",
"0.55129665",
"0.54827917",
"0.5481612",
"0.5458367",
"0.54300845",
"0.5411966",
"0.5411415",
"0.53909624",
"0.5377423",
"0.5352111",
"0.5351597",
"0.5338818",
"0.5308444",
"0.530844... | 0.0 | -1 |
may need to override | public void setNumberOfHoursWorked(int numberOfHoursWorked) {
this.numberOfHoursWorked = numberOfHoursWorked;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n ... | [
"0.7142692",
"0.70272136",
"0.6938805",
"0.68538165",
"0.67534226",
"0.67534226",
"0.6748199",
"0.6741946",
"0.6731815",
"0.6671965",
"0.6671965",
"0.6628651",
"0.66197634",
"0.6588615",
"0.65416163",
"0.65363556",
"0.65198046",
"0.6478572",
"0.64718515",
"0.64578056",
"0.643... | 0.0 | -1 |
Instantiates a new employee exception. | public EmployeeException(String message, Throwable cause) {
super(message, cause);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EmployeeNotFoundException() {\n super();\n }",
"public EmployeeException(String message) {\n\t\tsuper(message);\n\t}",
"public EmployeeNotFoundException(String message) {\n super(message);\n }",
"public Employee() throws OutOfRangeException { //default constructors have no paramete... | [
"0.7367144",
"0.71579933",
"0.6887157",
"0.67881775",
"0.6740532",
"0.6657479",
"0.66497946",
"0.6639458",
"0.6621409",
"0.6620874",
"0.6548688",
"0.6548688",
"0.6541368",
"0.65201646",
"0.65157974",
"0.65113306",
"0.6484944",
"0.6484944",
"0.6484944",
"0.6470545",
"0.6375328... | 0.66298735 | 8 |
Instantiates a new employee exception. | public EmployeeException(String message) {
super(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EmployeeNotFoundException() {\n super();\n }",
"public EmployeeNotFoundException(String message) {\n super(message);\n }",
"public Employee() throws OutOfRangeException { //default constructors have no parameters\n\t\t//must create a default constructor, if a subclass is created\n\t\... | [
"0.7367144",
"0.6887157",
"0.67881775",
"0.6740532",
"0.6657479",
"0.66497946",
"0.6639458",
"0.66298735",
"0.6621409",
"0.6620874",
"0.6548688",
"0.6548688",
"0.6541368",
"0.65201646",
"0.65157974",
"0.65113306",
"0.6484944",
"0.6484944",
"0.6484944",
"0.6470545",
"0.6375328... | 0.71579933 | 1 |
minimal constructor Property accessors | public int getHzyf() {
return this.hzyf;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Property() {}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"public Property()\r\n {\r\n }",
"public Property() {\n this(0, 0, 0, 0);\n }",
"private ReadProperty()\r\n {\r\n\r\n }",
"private PropertySingleton(){}",
"private PropertyHolder() {\n }",
"public Propu... | [
"0.74686545",
"0.74367213",
"0.7281006",
"0.7136653",
"0.6926654",
"0.6882652",
"0.6849157",
"0.6786413",
"0.6771434",
"0.66613394",
"0.6620948",
"0.65479887",
"0.6496338",
"0.6463016",
"0.64617693",
"0.64386296",
"0.64373887",
"0.6426554",
"0.64101714",
"0.6312031",
"0.62916... | 0.0 | -1 |
/ / / / / / | TemplateSubPatternAssociation(ElemTemplate template, StepPattern pattern, String pat) {
/* 64 */ this.m_pattern = pat;
/* 65 */ this.m_template = template;
/* 66 */ this.m_stepPattern = pattern;
/* 67 */ this.m_targetString = this.m_stepPattern.getTargetString();
/* 68 */ this.m_wild = this.m_targetString.equals("*");
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void divide() {\n\t\t\n\t}",
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void bepaalGrootte();",
"public static void bottomHalf(... | [
"0.5472371",
"0.5383522",
"0.52979374",
"0.5293668",
"0.5211566",
"0.51842105",
"0.5161626",
"0.51377255",
"0.5100369",
"0.5067393",
"0.5064298",
"0.50376177",
"0.49875325",
"0.49361488",
"0.49140826",
"0.49058613",
"0.49058613",
"0.48946288",
"0.48945552",
"0.48931476",
"0.4... | 0.0 | -1 |
/ / / / / / / / / / / | public Object clone() throws CloneNotSupportedException {
/* 81 */ TemplateSubPatternAssociation tspa = (TemplateSubPatternAssociation)super.clone();
/* */
/* */
/* 84 */ tspa.m_next = null;
/* */
/* 86 */ return tspa;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"double passer();",
"int getWidth() {return width;}",
"public void zeichneQuadra... | [
"0.5539566",
"0.5443216",
"0.52041054",
"0.51819956",
"0.5094696",
"0.50600076",
"0.50546855",
"0.5044382",
"0.5027",
"0.50127006",
"0.501204",
"0.5011419",
"0.5003489",
"0.49992156",
"0.49968395",
"0.4985262",
"0.49802333",
"0.49799347",
"0.49673638",
"0.49581978",
"0.491166... | 0.0 | -1 |
/ / / / / / / / / | public final String getTargetString() {
/* 97 */ return this.m_targetString;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void b... | [
"0.5531016",
"0.54378587",
"0.52516115",
"0.52405924",
"0.5151045",
"0.5127977",
"0.50680465",
"0.5066997",
"0.50218964",
"0.5013022",
"0.5007318",
"0.50048536",
"0.49997565",
"0.4994835",
"0.49735898",
"0.49699947",
"0.49680406",
"0.49594593",
"0.4937881",
"0.49361676",
"0.4... | 0.0 | -1 |
/ / / / / / / / / | public void setTargetString(String key) {
/* 108 */ this.m_targetString = key;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void b... | [
"0.5531016",
"0.54378587",
"0.52516115",
"0.52405924",
"0.5151045",
"0.5127977",
"0.50680465",
"0.5066997",
"0.50218964",
"0.5013022",
"0.5007318",
"0.50048536",
"0.49997565",
"0.4994835",
"0.49735898",
"0.49699947",
"0.49680406",
"0.49594593",
"0.4937881",
"0.49361676",
"0.4... | 0.0 | -1 |
/ / / / / / / / / / | boolean matchMode(QName m1) {
/* 120 */ return matchModes(m1, this.m_template.getMode());
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50... | [
"0.5540896",
"0.5446543",
"0.5227331",
"0.52141076",
"0.5111389",
"0.50963986",
"0.50654864",
"0.5038032",
"0.50336593",
"0.501189",
"0.50033337",
"0.5002645",
"0.4999724",
"0.4997505",
"0.49938273",
"0.4988672",
"0.4982446",
"0.49785286",
"0.4967535",
"0.49578318",
"0.491564... | 0.0 | -1 |
/ / / / / / / / / / / | private boolean matchModes(QName m1, QName m2) {
/* 133 */ return ((null == m1 && null == m2) || (null != m1 && null != m2 && m1.equals(m2)));
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"double passer();",
"int getWidth() {return width;}",
"public void zeichneQuadra... | [
"0.5539566",
"0.5443216",
"0.52041054",
"0.51819956",
"0.5094696",
"0.50600076",
"0.50546855",
"0.5044382",
"0.5027",
"0.50127006",
"0.501204",
"0.5011419",
"0.5003489",
"0.49992156",
"0.49968395",
"0.4985262",
"0.49802333",
"0.49799347",
"0.49673638",
"0.49581978",
"0.491166... | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / | public boolean matches(XPathContext xctxt, int targetNode, QName mode) throws TransformerException {
/* 152 */ double score = this.m_stepPattern.getMatchScore(xctxt, targetNode);
/* */
/* 154 */ return (Double.NEGATIVE_INFINITY != score && matchModes(mode, this.m_template.getMode()));
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"int getWidth() {return width;}",
"static int ... | [
"0.5398624",
"0.5302166",
"0.50988036",
"0.50856084",
"0.50632095",
"0.505399",
"0.50325966",
"0.5016769",
"0.49988022",
"0.49945837",
"0.49838054",
"0.49793383",
"0.49702466",
"0.4950869",
"0.4929731",
"0.49185315",
"0.4905335",
"0.49045703",
"0.49035764",
"0.48944765",
"0.4... | 0.0 | -1 |
/ / / / / / / / / | public final boolean isWild() {
/* 165 */ return this.m_wild;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void b... | [
"0.5531016",
"0.54378587",
"0.52516115",
"0.52405924",
"0.5151045",
"0.5127977",
"0.50680465",
"0.5066997",
"0.50218964",
"0.5013022",
"0.5007318",
"0.50048536",
"0.49997565",
"0.4994835",
"0.49735898",
"0.49699947",
"0.49680406",
"0.49594593",
"0.4937881",
"0.49361676",
"0.4... | 0.0 | -1 |
/ / / / / / / / / | public final StepPattern getStepPattern() {
/* 176 */ return this.m_stepPattern;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void b... | [
"0.5531016",
"0.54378587",
"0.52516115",
"0.52405924",
"0.5151045",
"0.5127977",
"0.50680465",
"0.5066997",
"0.50218964",
"0.5013022",
"0.5007318",
"0.50048536",
"0.49997565",
"0.4994835",
"0.49735898",
"0.49699947",
"0.49680406",
"0.49594593",
"0.4937881",
"0.49361676",
"0.4... | 0.0 | -1 |
/ / / / / / / / / | public final String getPattern() {
/* 187 */ return this.m_pattern;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void b... | [
"0.5531012",
"0.5437856",
"0.5252561",
"0.5240695",
"0.51507",
"0.5129348",
"0.5067813",
"0.5067072",
"0.5021906",
"0.5012433",
"0.5008661",
"0.500449",
"0.50002986",
"0.49955428",
"0.49727803",
"0.49698842",
"0.49680573",
"0.49589744",
"0.493792",
"0.49357998",
"0.492819",
... | 0.0 | -1 |
/ / / / / / / / / | public int getDocOrderPos() {
/* 198 */ return this.m_template.getUid();
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void b... | [
"0.5531016",
"0.54378587",
"0.52516115",
"0.52405924",
"0.5151045",
"0.5127977",
"0.50680465",
"0.5066997",
"0.50218964",
"0.5013022",
"0.5007318",
"0.50048536",
"0.49997565",
"0.4994835",
"0.49735898",
"0.49699947",
"0.49680406",
"0.49594593",
"0.4937881",
"0.49361676",
"0.4... | 0.0 | -1 |
/ / / / / / / / / | public final int getImportLevel() {
/* 209 */ return this.m_template.getStylesheetComposed().getImportCountComposed();
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void b... | [
"0.5531016",
"0.54378587",
"0.52516115",
"0.52405924",
"0.5151045",
"0.5127977",
"0.50680465",
"0.5066997",
"0.50218964",
"0.5013022",
"0.5007318",
"0.50048536",
"0.49997565",
"0.4994835",
"0.49735898",
"0.49699947",
"0.49680406",
"0.49594593",
"0.4937881",
"0.49361676",
"0.4... | 0.0 | -1 |
/ / / / / / / / / | public final ElemTemplate getTemplate() {
/* 220 */ return this.m_template;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void b... | [
"0.5531016",
"0.54378587",
"0.52516115",
"0.52405924",
"0.5151045",
"0.5127977",
"0.50680465",
"0.5066997",
"0.50218964",
"0.5013022",
"0.5007318",
"0.50048536",
"0.49997565",
"0.4994835",
"0.49735898",
"0.49699947",
"0.49680406",
"0.49594593",
"0.4937881",
"0.49361676",
"0.4... | 0.0 | -1 |
/ / / / / / / / | public final TemplateSubPatternAssociation getNext() {
/* 230 */ return this.m_next;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void b... | [
"0.55048823",
"0.5413075",
"0.5298015",
"0.52379996",
"0.5205496",
"0.51480424",
"0.5101674",
"0.5076514",
"0.5037376",
"0.50321674",
"0.5009592",
"0.498159",
"0.49813378",
"0.497832",
"0.4973623",
"0.4962841",
"0.4937309",
"0.49288675",
"0.49036264",
"0.4893208",
"0.4878872"... | 0.0 | -1 |
/ / / / / / / / / / / / | public void setNext(TemplateSubPatternAssociation mp) {
/* 244 */ this.m_next = mp;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"int getWidth() {return width;}",
"double passer();",
"public Integer getWidth()... | [
"0.5528792",
"0.54315263",
"0.51737124",
"0.5150286",
"0.5077775",
"0.5064908",
"0.50597715",
"0.5045933",
"0.5037415",
"0.5019393",
"0.50050676",
"0.50032693",
"0.499702",
"0.49949083",
"0.49852678",
"0.4973753",
"0.4970428",
"0.49669605",
"0.49542087",
"0.4945966",
"0.49211... | 0.0 | -1 |
/ Setters y Getters | @XmlElementWrapper(name = "dayList")
@XmlElement(name = "Day")
public List<Day> getDayList() {
return dayList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Set method_1559();",
"public void setdat()\n {\n }",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void assignment() {\n\n\t\t\t}",
"@Override\n public void g... | [
"0.7020426",
"0.67157125",
"0.63871664",
"0.6307094",
"0.62661564",
"0.62476534",
"0.62307864",
"0.62133265",
"0.61609685",
"0.6158854",
"0.6125408",
"0.6091679",
"0.6066274",
"0.60376126",
"0.5984823",
"0.59796107",
"0.59441704",
"0.5922768",
"0.59135556",
"0.5910823",
"0.59... | 0.0 | -1 |
Interfaccia per algoritmi di ordinamento generici. | public interface SortingAlgorithm<E extends Comparable<E>> {
/**
* Ordina una lista di elementi in accordo all'ordinamento totale naturale
* definito nella classe degli elementi.
*
* @param l
* la lista da ordinare (dovrebbe essere una ArrayList)
* @return un oggetto contentente la lista ordinata e il numero di
* operazioni di comparazione effettuate dall'algoritmo.
*/
public SortingAlgorithmResult<E> sort(List<E> l);
/**
* Restituisce il nome dell'algoritmo di ordinamento.
*
* @return il nome dell'algoritmo
*/
public String getName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract void trataAltera();",
"@Override\n\tpublic void trabajar() {\n\n\t}",
"public interface TypeGlazingEAO extends GenericEAO<TypeGlazing, Integer> {\n\n /**\n * Find Glazing Types order by Identification Id\n *\n * @return List<TypeGlazing>\n * @throws openjanela.model.eao.genericEAO.G... | [
"0.57157385",
"0.5595794",
"0.55601746",
"0.54665804",
"0.5465062",
"0.5465062",
"0.5464256",
"0.5396355",
"0.53584415",
"0.52947325",
"0.5271805",
"0.52446616",
"0.52362645",
"0.5230509",
"0.51632124",
"0.5144657",
"0.5112555",
"0.5083241",
"0.50760823",
"0.50728595",
"0.506... | 0.4893779 | 52 |
Ordina una lista di elementi in accordo all'ordinamento totale naturale definito nella classe degli elementi. | public SortingAlgorithmResult<E> sort(List<E> l); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<Elemento> getPosicionesAdyacentes(){\n ArrayList <Elemento> result = new ArrayList<>();\n int[] coordenada_i = {0,1,1,1,0,-1,-1,-1};\n int[] coordenada_j = {1,1,0,-1,-1,-1,0,1};\n int nueva_posicion_fila = 0;\n int nueva_posicion_columna = 0;\n for(int k=0... | [
"0.5907655",
"0.5852471",
"0.58359015",
"0.5771404",
"0.5711248",
"0.563101",
"0.56099045",
"0.5600545",
"0.5600048",
"0.55881166",
"0.558467",
"0.55687183",
"0.55402416",
"0.54650307",
"0.54302484",
"0.5403265",
"0.5399219",
"0.5362965",
"0.5355122",
"0.5335795",
"0.5324586"... | 0.0 | -1 |
Restituisce il nome dell'algoritmo di ordinamento. | public String getName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic final String getNombreRaza() {\r\n\t\treturn \"Orco\";\r\n\t}",
"String getUltimoNome();",
"@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn nome;\n\t\t\t}",
"@AutoEscape\n\tpublic String getNomDistrito();",
"public String getNombreFicheroAlumno(){\n\t\treturn \"Ev-Intermed... | [
"0.6728339",
"0.66102767",
"0.64710903",
"0.6453866",
"0.64126885",
"0.6410898",
"0.63409406",
"0.6263942",
"0.623793",
"0.616396",
"0.615927",
"0.61446583",
"0.61446583",
"0.61199105",
"0.60642207",
"0.6061231",
"0.60591507",
"0.6051871",
"0.6044711",
"0.6036502",
"0.601644"... | 0.0 | -1 |
Created by Joao on 30/05/2017. | public interface TeamUserService extends CrudService<TeamUser, Long> {
List<User> findByTeam(Team team);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"private... | [
"0.58895564",
"0.57470304",
"0.57108057",
"0.5689024",
"0.56780344",
"0.5606828",
"0.56059647",
"0.56006855",
"0.56006855",
"0.55951446",
"0.55637646",
"0.55606085",
"0.55542",
"0.55245245",
"0.55096453",
"0.54910195",
"0.54658353",
"0.5448216",
"0.54396904",
"0.5439398",
"0.... | 0.0 | -1 |
Instantiates a new User. | public User() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User() {\n log.debug(\"Create a User object\");\n }",
"public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = ... | [
"0.7582088",
"0.73480594",
"0.7273225",
"0.7200439",
"0.71821743",
"0.71821743",
"0.71821743",
"0.71243304",
"0.71243304",
"0.71243304",
"0.711101",
"0.71006274",
"0.707437",
"0.70445484",
"0.70134807",
"0.70035017",
"0.6995122",
"0.6994287",
"0.6974036",
"0.69645983",
"0.695... | 0.69751424 | 27 |
Instantiates a new User. | public User(String userName, String firstName, String lastName, String location, int admin, String league) {
this.userName = userName;
this.firstName = firstName;
this.lastName = lastName;
this.location = location;
this.admin = admin;
this.league = league;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User() {\n log.debug(\"Create a User object\");\n }",
"public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = ... | [
"0.75807",
"0.73489875",
"0.7275648",
"0.72022533",
"0.71809304",
"0.71809304",
"0.71809304",
"0.7122721",
"0.7122721",
"0.7122721",
"0.71099246",
"0.7100796",
"0.70734364",
"0.70437044",
"0.70120513",
"0.70024514",
"0.6994129",
"0.6992871",
"0.69740427",
"0.69740427",
"0.697... | 0.0 | -1 |
Konstruktor der Klasse Spielfeld. Setzt die Steine. | public Spielfeld() {
mulden = new int[14];
setSteine();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Salle() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public void sendeSpielfeld();",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public Endbildschirm(Spiel s) {\r\n\t\tdasSpiel = s;\r\n\r\n\t}",
"public SlanjeP... | [
"0.6581531",
"0.6575579",
"0.65322566",
"0.6522076",
"0.6288308",
"0.62546784",
"0.61661184",
"0.616154",
"0.6143748",
"0.61410624",
"0.60995746",
"0.6093225",
"0.6072358",
"0.6063975",
"0.60032433",
"0.5999229",
"0.59986794",
"0.5960182",
"0.59499866",
"0.59167856",
"0.59114... | 0.65724856 | 2 |
Privater Konstruktor des Spielfeldes. | private Spielfeld(int[] mulden) {
this.mulden = mulden;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PrnPrivitakVo() {\r\n\t\tsuper();\r\n\t}",
"public PrivilagePart() {\n initComponents();\n \n \n }",
"private stendhal() {\n\t}",
"public void sendeSpielfeld();",
"@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public L... | [
"0.6935308",
"0.6434366",
"0.6241144",
"0.6102547",
"0.6088953",
"0.5944941",
"0.59238297",
"0.58627915",
"0.58513427",
"0.5759277",
"0.5742405",
"0.57243776",
"0.57239646",
"0.5722535",
"0.57157165",
"0.5710385",
"0.57021415",
"0.56926984",
"0.56782335",
"0.56707424",
"0.565... | 0.0 | -1 |
Gibt die Steine zu einer Mulde zurueck. | public int getSteine(int mulde) {
int steineInMulde = mulden[mulde];
mulden[mulde] = 0;
return steineInMulde;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"private void mul() {\n\n\t}",
"abstract void mulS();",
"public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}",
"pu... | [
"0.7052875",
"0.685361",
"0.65150213",
"0.64873725",
"0.63976645",
"0.63380826",
"0.63064253",
"0.6296527",
"0.6287508",
"0.6238625",
"0.62061155",
"0.6115373",
"0.6056062",
"0.60095906",
"0.6005621",
"0.59961665",
"0.5955792",
"0.595057",
"0.5942077",
"0.59272826",
"0.587053... | 0.57779247 | 29 |
Setzt die Steine in die einzelnen Mulden. | private void setSteine() {
for(int i = 0; i<mulden.length; i++) {
mulden[i] = 5;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setzeStein(int mulde) {\n\t\tmulden[mulde] +=1;\n\t}",
"public Spielfeld() {\n\t\tmulden = new int[14];\n\t\tsetSteine();\n\t}",
"@Override\n\tpublic void setMontant(double s) {\n\t\t\n\t}",
"public void setSueldo(double sueldo) {\n this.sueldo = sueldo;\n }",
"public void set(float s... | [
"0.69888824",
"0.6133527",
"0.60320103",
"0.6026747",
"0.5963726",
"0.592148",
"0.5892577",
"0.5860897",
"0.5854807",
"0.5845092",
"0.58030075",
"0.58014196",
"0.5788279",
"0.5759054",
"0.57012695",
"0.5689946",
"0.56524724",
"0.56454414",
"0.5607909",
"0.552257",
"0.5505477"... | 0.76147175 | 0 |
Setzt einen Stein in eine Mulde. | public void setzeStein(int mulde) {
mulden[mulde] +=1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setSteine() {\n\t\tfor(int i = 0; i<mulden.length; i++) {\n\t\t\tmulden[i] = 5;\n\t\t}\n\t}",
"public void setKredietLimiet(double kredietlimiet) {\n // method body omitted\n this.kredietlimiet = kredietlimiet;\n }",
"@Test\n public void testSetLimite() {\n \n ass... | [
"0.6677645",
"0.6193271",
"0.61443895",
"0.5981527",
"0.5883582",
"0.58803064",
"0.5867364",
"0.5843471",
"0.5760785",
"0.5726883",
"0.56334436",
"0.5628543",
"0.56180704",
"0.56028813",
"0.55654985",
"0.5547384",
"0.5542777",
"0.5531672",
"0.55280095",
"0.5527271",
"0.549621... | 0.7137864 | 0 |
Gibt die Anzahl der Steine innerhalb einer uebergebenen Mulde zurueck. | public int getAnzahlSteine(int mulde) {
return mulden[mulde];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"Sum getMultiplier();",
"private void mul() {\n\n\t}",
"Double getMultiplier();",
"public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMos... | [
"0.6612502",
"0.6514843",
"0.6150228",
"0.60679823",
"0.60452205",
"0.59778327",
"0.59441286",
"0.5921085",
"0.5881295",
"0.58225775",
"0.57257915",
"0.571477",
"0.5687842",
"0.5665055",
"0.565099",
"0.56463176",
"0.564271",
"0.5636543",
"0.5633635",
"0.55711854",
"0.5467157"... | 0.62366104 | 2 |
Gibt alle Mulden als intArray zurueck. | public int[] getMulden() {
return mulden;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int[] processArray(int[] numberArray) {\n for (int i : numberArray) {\n for (int j = 0; j < numberArray.length; j++) {\n// some nonsense calculation to make the CPU tick a bit\n numberArray[j] *= i;\n }\n }\n return numberArray;\n }",
"@Override\r\n\tpublic int mu... | [
"0.6341461",
"0.6286253",
"0.6238899",
"0.6108424",
"0.60564667",
"0.5990105",
"0.59889865",
"0.57805055",
"0.5764005",
"0.5761612",
"0.5754743",
"0.57288855",
"0.57029814",
"0.5670288",
"0.56392556",
"0.56309617",
"0.5630331",
"0.56279635",
"0.5601417",
"0.55803305",
"0.5565... | 0.5923126 | 7 |
Gibt die Anzahl aller Steine auf dem Spielfeld zurueck. | public int getSteineAufSpielfeld() {
int steineAufDemSpielfeld = 0;
for (int i = 0; i<mulden.length;i++) {
steineAufDemSpielfeld += mulden[i];
}
return steineAufDemSpielfeld;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEnt... | [
"0.66627496",
"0.6520338",
"0.6458303",
"0.6347817",
"0.6277622",
"0.626695",
"0.6237064",
"0.62237567",
"0.6218818",
"0.62179524",
"0.6183113",
"0.6180642",
"0.61744076",
"0.61300105",
"0.61201346",
"0.61108327",
"0.610759",
"0.60984683",
"0.60836256",
"0.6053277",
"0.603691... | 0.66090024 | 1 |
Hilfsmethode, um die Mulde gegenueber auszu machen. | public int getIndexGegenueber(int index) {
index -= 13;
if(index < 0)
index*= (-1);
return index;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"private void mul() {\n\n\t}",
"abstract void mulS();",
"@Override\npublic void mul(int a, int b) {\n\t\n}",
"public void multiply() {\n\t\t\n\t}",
"@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}",
"@Override\n public Float mul(F... | [
"0.6960307",
"0.6932207",
"0.65104175",
"0.6405704",
"0.6280973",
"0.62546563",
"0.6204372",
"0.61325556",
"0.60446125",
"0.60054374",
"0.599015",
"0.5971402",
"0.5893589",
"0.58840764",
"0.5866493",
"0.5859857",
"0.58426684",
"0.58305895",
"0.5793975",
"0.57866055",
"0.57767... | 0.0 | -1 |
Schafft eine Kopie des Spielfeldes. | @Override
public Spielfeld clone() {
int[] mulden = new int[this.getMulden().length];
for(int i = 0; i < this.getMulden().length; i++) {
mulden[i] = this.getMulden()[i];
}
return new Spielfeld(mulden);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendeSpielfeld();",
"private void poetries() {\n\n\t}",
"public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n rote=new ArrayList<Stein>(); //Unterlisten, die zum leichteren Durchsuchen des Spielfelds angele... | [
"0.65815604",
"0.6551597",
"0.6340039",
"0.6325419",
"0.6167528",
"0.6116564",
"0.59575033",
"0.59242415",
"0.5911807",
"0.59057724",
"0.5900764",
"0.58669984",
"0.58634603",
"0.5833859",
"0.5788484",
"0.5783549",
"0.5744462",
"0.5735179",
"0.57049906",
"0.569848",
"0.5692876... | 0.0 | -1 |
tim vi tri cua ( node.id = id) trong mang | private int findPosition(int id) {
for (int i = 0; i < numOfNode; i++) {
if (node[i].id == id) {
return i;
}
}
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getIdNode2();",
"private void parseId(Node node) {\r\n if (switchTest) return;\r\n skipTrace = true;\r\n parse(node.ref());\r\n }",
"void nodeCreate( long id );",
"String getIdNode1();",
"entities.Torrent.NodeId getNode();",
"entities.Torrent.NodeId getNode();",
"public S... | [
"0.69715446",
"0.6766634",
"0.6738969",
"0.67080355",
"0.668615",
"0.668615",
"0.6648917",
"0.6486701",
"0.6477651",
"0.64524007",
"0.6450543",
"0.6430931",
"0.6417565",
"0.63595575",
"0.62341887",
"0.62063205",
"0.6198538",
"0.6197518",
"0.6177235",
"0.6160168",
"0.6153504",... | 0.5577075 | 99 |
xoa node co id = id | public void delete(int id) {
int save = findPosition(id);
if (save == numOfNode - 1) {
node [save] = null;
numOfNode--;
return;
}
// dich dan cac node vao
for (int i = save; i < numOfNode - 1; i++) {
node[i] = node[i + 1];
}
node[numOfNode - 1] = null;
numOfNode--;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getIdNode2();",
"NodeId getNodeId();",
"String getIdNode1();",
"void nodeCreate( long id );",
"public String getId() {\n return _node_id;\n }",
"entities.Torrent.NodeId getNode();",
"entities.Torrent.NodeId getNode();",
"N getNode(int id);",
"public NodeId getId() {\n return... | [
"0.69446695",
"0.6879941",
"0.67971534",
"0.661087",
"0.6529395",
"0.6510945",
"0.6510945",
"0.64893574",
"0.63837487",
"0.63748586",
"0.6373694",
"0.6364769",
"0.6346186",
"0.6256813",
"0.6218654",
"0.62028617",
"0.61419684",
"0.6129987",
"0.6128789",
"0.610124",
"0.60825115... | 0.0 | -1 |
Constructs a Pair with the provided parameters. | public Pair(K first, V second) {
this.first = first;
this.second = second;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Pair() {\r\n\t}",
"public Pair() {\n // nothing to do here\n }",
"public Pair(Pair<T,V> p){\r\n this.v1 = p.v1;\r\n this.v2 = p.v2;\r\n }",
"protected Pair() {\n\t\t\n\t\tsuper(2);\n\t}",
"public Pair(K key, V value){\n this.key = key;\n this.value = value;\n... | [
"0.75513506",
"0.7373696",
"0.7331001",
"0.7163044",
"0.7128075",
"0.71192133",
"0.7022352",
"0.69803786",
"0.69788814",
"0.6963711",
"0.68575543",
"0.6777858",
"0.6684483",
"0.6664903",
"0.66450256",
"0.6617661",
"0.6543999",
"0.65232474",
"0.6492476",
"0.6482652",
"0.644673... | 0.6921488 | 10 |
Constructs an empty Pair with both the objects set to null. | public Pair() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Pair() {\n // nothing to do here\n }",
"protected Pair() {\n\t\t\n\t\tsuper(2);\n\t}",
"public KeyValuePair () {\n key = null;\n value = null;\n }",
"public Pair(final @Nullable A first, final @Nullable B second) {\n this.first = first;\n this.second = second;\n }",
"public P... | [
"0.7455613",
"0.64943516",
"0.63935643",
"0.62150806",
"0.6206548",
"0.61536777",
"0.6039695",
"0.5955212",
"0.5778813",
"0.57727796",
"0.5731564",
"0.5685835",
"0.5660453",
"0.5655434",
"0.56339395",
"0.5629724",
"0.56147987",
"0.56079483",
"0.5598881",
"0.5585961",
"0.55714... | 0.7333548 | 1 |
Gets the first object of the Pair. | public K getFirst() {
return first;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\tpublic T getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}",
"@Override\r\n\t\tpublic T getFirst() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getFirst();\r\n\t\t\t}\r\n\t\t}",
"@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}",
"@Override\r\n\t\tp... | [
"0.82997435",
"0.8029384",
"0.8010751",
"0.8010751",
"0.7726141",
"0.75500906",
"0.74307615",
"0.7330372",
"0.72517294",
"0.72517294",
"0.7234989",
"0.71006966",
"0.69578236",
"0.69454634",
"0.6932644",
"0.69196093",
"0.6901577",
"0.684458",
"0.6840113",
"0.68394846",
"0.6833... | 0.70699847 | 12 |
Sets the first object of the Pair. | public void setFirst(K first) {
this.first = first;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\tpublic E setFirst(E first) {\n\t\t\treturn pair.setFirst(first);\r\n\t\t}",
"@Override\r\n\t\tpublic T setFirst(T first) {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.setFirst(first);\r\n\t\t\t}\r\n\t\t}",
"@Override\r\n\t\tpublic E setSecond(E second) {\n\t\t\treturn pair.setSecond(s... | [
"0.8007546",
"0.78570753",
"0.65893465",
"0.65508974",
"0.6368076",
"0.6334378",
"0.6323168",
"0.6295929",
"0.6191446",
"0.6142575",
"0.6116774",
"0.6085931",
"0.6072179",
"0.60471",
"0.60163736",
"0.60163736",
"0.59865934",
"0.59603417",
"0.5932416",
"0.5927382",
"0.58970624... | 0.6652547 | 2 |
Gets the second object of the Pair. | public V getSecond() {
return second;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\tpublic S getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}",
"@Override\r\n\t\tpublic E getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}",
"@Override\r\n\t\tpublic E getSecond() {\n\t\t\treturn pair.getSecond();\r\n\t\t}",
"@Override\r\n\t\tpublic S getSecond() {\n\t\t\tsynchroniz... | [
"0.79754347",
"0.75339293",
"0.75339293",
"0.74798566",
"0.7207439",
"0.71243435",
"0.70716906",
"0.7046304",
"0.6865584",
"0.6783638",
"0.6662418",
"0.6658748",
"0.65893817",
"0.65269464",
"0.65188074",
"0.6459249",
"0.6403208",
"0.63744926",
"0.62831855",
"0.62434626",
"0.6... | 0.6351212 | 18 |
Set the second object of the pair. | public void setSecond(V second) {
this.second = second;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\tpublic E setSecond(E second) {\n\t\t\treturn pair.setSecond(second);\r\n\t\t}",
"public void SetTo(Pair rhs) {\n this.first = rhs.first;\n this.second = rhs.second;\n }",
"@Override\r\n\t\tpublic V setValue(V value) {\n\t\t\treturn pair.setSecond(value);\r\n\t\t}",
"@Override\r\... | [
"0.75823706",
"0.7373761",
"0.71487325",
"0.694071",
"0.68504816",
"0.6812159",
"0.67649645",
"0.67083323",
"0.66368526",
"0.65881467",
"0.6587004",
"0.6506903",
"0.63889253",
"0.6275677",
"0.6207032",
"0.6171973",
"0.6161942",
"0.6101462",
"0.6037995",
"0.6012549",
"0.594422... | 0.65079415 | 11 |
set the list items | public void setListItems(List<String> lit) { mItems = lit; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void setList(List<T> items);",
"public void setList(List<ListItem> list) {\n this.items = list;\n\n Log.d(\"ITEMs\",items+\"\");\n }",
"public void setItems(){\n }",
"public void setItems(List<T> items) {\n log.debug(\"set items called\");\n synchronized (listsLo... | [
"0.76566213",
"0.7573652",
"0.7281287",
"0.7188592",
"0.7153816",
"0.6936586",
"0.69123787",
"0.68200004",
"0.67970866",
"0.67591006",
"0.6746844",
"0.67063636",
"0.66911256",
"0.66859055",
"0.66366816",
"0.6630759",
"0.6621985",
"0.65733695",
"0.65574783",
"0.6540009",
"0.65... | 0.7350762 | 2 |
if can all selected or not | public boolean areAllItemsSelectable() { return false; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean allAre(ISelect s){\r\n return true; \r\n }",
"private void checkSelectable() {\n \t\tboolean oldIsSelectable = isSelectable;\n \t\tisSelectable = isSelectAllEnabled();\n \t\tif (oldIsSelectable != isSelectable) {\n \t\t\tfireEnablementChanged(SELECT_ALL);\n \t\t}\n \t}",
"public String getIsS... | [
"0.7407387",
"0.72285545",
"0.69567436",
"0.65591264",
"0.6525003",
"0.6502375",
"0.6502375",
"0.6502375",
"0.6500814",
"0.6491044",
"0.64638996",
"0.6463609",
"0.64166677",
"0.63306016",
"0.63306016",
"0.6321566",
"0.63094497",
"0.63094497",
"0.63057184",
"0.6269582",
"0.623... | 0.63632774 | 13 |
TODO Autogenerated method stub | public void notifyDataSetChanged(int position ) {
mSelectPosition = position;
super.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 |
Updates the CatanModel to reflect the playing of a Monopoly card | @Override
public Object execute() {
CatanModel cm = null;
try
{
cm = facade.getGameModel(authToken);
cm.cardManager.playDevCard(DevCardType.MONOPOLY, ((MonopolyJSON)body).getPlayerIndex());
ResourceType resource = ResourceType.toEnum(((MonopolyJSON)body).getResource());
if(resource != null) {
cm.resourceManager.useMonopolyCard(((MonopolyJSON)body).getPlayerIndex(), resource);
cm.cardManager.setHasPlayedDevCard(((MonopolyJSON)body).getPlayerIndex(), true);
}
cm.chatManager.logAction(cm.playerManager.getPlayerName(((MonopolyJSON)body).getPlayerIndex()) + " played a monopoly card.", cm.playerManager.getPlayerName(((MonopolyJSON)body).getPlayerIndex()));
} catch (ServerException | NotEnoughDevCardsException e)
{
e.printStackTrace();
}
return cm;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void playGame(MarbleSolitaireModel model);",
"protected void apply() {\r\n\t\tplayer.setAutoRoll(autoroll);\r\n\t\tplayer.setMission(mission);\r\n\t\tplayer.setState(state);\r\n\t\tplayer.getCards().setArtillery(cards.getArtillery());\r\n\t\tplayer.getCards().setCavalry(cards.getCavalry());\r\n\t\tplayer.getCard... | [
"0.5833995",
"0.5774501",
"0.5667817",
"0.56494206",
"0.55151486",
"0.5391793",
"0.5367788",
"0.5310195",
"0.52859026",
"0.52570575",
"0.5255209",
"0.5218335",
"0.5210177",
"0.52043796",
"0.51931196",
"0.51895094",
"0.5174534",
"0.51593",
"0.51513845",
"0.5150963",
"0.513518"... | 0.55899096 | 4 |
Saves the DTO to the database and checks for child entity data including notes sources and tags to determine if there are any changes there to be updated/inserted. | @Override
public D saveDTO( final D dto )
throws EntityVersionMismatchException,
DuplicateEntityException
{
final String methodName = "saveDTO";
logMethodBegin( methodName, dto );
Objects.requireNonNull( dto, "dto cannot be null" );
final D returnDTO = super.saveDTO( dto );
this.saveChildEntities( dto, returnDTO );
logMethodEnd( methodName, returnDTO );
return returnDTO;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void saveChildEntities( final D dto, final D returnDTO )\n {\n /*\n * Save any tags contained in the dto\n */\n if ( dto instanceof TagsContainer )\n {\n this.saveStockTags( dto, returnDTO );\n }\n /*\n * Check for new sources\n ... | [
"0.7156636",
"0.6291328",
"0.62127584",
"0.6101993",
"0.6067967",
"0.59953195",
"0.58772606",
"0.583693",
"0.5800642",
"0.57897",
"0.5690584",
"0.56805676",
"0.5606845",
"0.5604871",
"0.55659187",
"0.5537505",
"0.5531313",
"0.55063814",
"0.5493388",
"0.54724234",
"0.54429734"... | 0.66718227 | 1 |
Adds the DTO to the database and checks for child entity data including notes sources and tags to determine if there are any changes there to be updated/inserted. | @Override
public D addDTO( final D dto )
throws EntityVersionMismatchException,
DuplicateEntityException,
VersionedEntityNotFoundException
{
final String methodName = "addDTO";
logMethodBegin( methodName, dto );
Objects.requireNonNull( dto, "dto cannot be null" );
final D returnDTO = super.addDTO( dto );
this.saveChildEntities( dto, returnDTO );
logMethodEnd( methodName, returnDTO );
return returnDTO;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void saveChildEntities( final D dto, final D returnDTO )\n {\n /*\n * Save any tags contained in the dto\n */\n if ( dto instanceof TagsContainer )\n {\n this.saveStockTags( dto, returnDTO );\n }\n /*\n * Check for new sources\n ... | [
"0.64047927",
"0.59261423",
"0.5898238",
"0.5781408",
"0.56603366",
"0.5616186",
"0.55672956",
"0.5560163",
"0.54404247",
"0.53801453",
"0.53734964",
"0.53569",
"0.53126687",
"0.5310376",
"0.5272175",
"0.52685744",
"0.5264223",
"0.5250128",
"0.5234311",
"0.5224197",
"0.518295... | 0.66433555 | 0 |
Checks tags and notes sources to see if there are any changes to be made. | private void saveChildEntities( final D dto, final D returnDTO )
{
/*
* Save any tags contained in the dto
*/
if ( dto instanceof TagsContainer )
{
this.saveStockTags( dto, returnDTO );
}
/*
* Check for new sources
*/
if ( dto instanceof NotesSourceIdContainer )
{
this.stockNoteSourceService
.checkForNewSource( (NotesSourceIdContainer)dto );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void validateSource() {\n\t\t// Set the mode to recording\n\t\tmode = RECORD;\n\t\t// Traverse the source and record the architectures structure\n\t\tinspect();\n\t\t// Set the mode to validation\n\t\tmode = VALIDATE;\n\t\t// Traverses the\n\t\tinspect();\n\t\t// System.out.println(tree);\n\t\t// Report the... | [
"0.5696173",
"0.547817",
"0.53199655",
"0.53188354",
"0.52897364",
"0.52509356",
"0.5231383",
"0.522864",
"0.5147623",
"0.5116071",
"0.51149523",
"0.51104087",
"0.5079456",
"0.50596553",
"0.5044231",
"0.5023763",
"0.5023461",
"0.50053144",
"0.49879694",
"0.4962661",
"0.495541... | 0.0 | -1 |
Checks for new stock tags and add them to the database. | protected void saveStockTags( final D originalDTO, final D newDTO )
{
final String methodName = "saveStockTags";
logMethodBegin( methodName, originalDTO, newDTO );
final TagsContainer container = (TagsContainer)originalDTO;
this.stockTagService.saveStockTags( UUIDUtil.uuid( container.getCustomerId() ),
container.getTickerSymbol(),
container.getStockTagReferenceType(),
UUIDUtil.uuid( newDTO.getId() ),
container.getTags() );
logMethodEnd( methodName );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean addTag(String newTag) {\n if (tags.contains(newTag)){\n return false;\n }\n tags.add(newTag);\n saveTags();\n return true;\n }",
"@Override\n\tpublic void saveTag(Tag newTag) throws Exception {\n\n\t}",
"List<Tag> saveTags(String tags);",
"void ... | [
"0.60128635",
"0.58088267",
"0.5674494",
"0.56443715",
"0.56093055",
"0.5518387",
"0.55167675",
"0.5509164",
"0.54375124",
"0.5425272",
"0.5411306",
"0.5375179",
"0.530469",
"0.5273307",
"0.5256621",
"0.524983",
"0.5243917",
"0.5231339",
"0.5204213",
"0.5174835",
"0.51679206"... | 0.60927385 | 0 |
Converts the entity to a DTO and sets the stock price on the return DTO. | @Override
public D entityToDTO( final E entity )
{
//final String methodName = "cachedDataToDTO";
//logMethodBegin( methodName, entity );
Objects.requireNonNull( entity, "entity argument cannot be null" );
D dto = super.entityToDTO( entity );
/*
* I think this is a good use of instanceof...although I am not convinced, I'll have to think about this...
* If any stock DTO is a stock company container, it will be populated automatically with the stock company
* information. No need for any sub cvl
*
* NEED TO SERIOUSLY THINK ABOUT A BETTER SOLUTION HERE....5/9/2017 Mike.
*
* Need to develop some sort of "conversion" registration so that subclasses can register "converters" to be
* run on entity.
*
/*
* StockPriceQuoteContainers contain everything in a StockPriceContainer so get that instead
*/
/*
if ( dto instanceof StockQuoteDTOContainer )
{
this.stockQuoteEntityService
.setQuoteInformation( dto );
}
*/
/*
* The quote contains the company name
*/
/*
else if ( dto instanceof StockCompanyEntityContainer )
{
this.stockCompanyEntityService
.setCompanyInformation( (StockCompanyDTOContainer) dto );
}
if ( dto instanceof StockPriceQuoteDTOContainer )
{
this.stockPriceQuoteService
.setStockPriceQuote( dto, ASYNCHRONOUS );
}
*/
/*
* Convert the UUID to a string and get the notes source name for the UUID
*/
if ( entity instanceof NotesSourceUuidContainer &&
dto instanceof NotesSourceIdContainer )
{
final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;
if ( notesSourceUuidContainer.getNotesSourceEntity().isPresent() )
{
final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer)dto;
final StockNoteSourceEntity stockNoteSourceEntity = notesSourceUuidContainer.getNotesSourceEntity().get();
notesSourceIdContainer.setNotesSourceName( stockNoteSourceEntity.getName() );
notesSourceIdContainer.setNotesSourceId( stockNoteSourceEntity.getUuid().toString() );
}
}
if ( dto instanceof TagsContainer )
{
final TagsContainer tagsContainer = (TagsContainer)dto;
tagsContainer.setTags( this.stockTagService.findStockTags( UUIDUtil.uuid( tagsContainer.getCustomerId() ),
StockTagEntity.StockTagReferenceType.STOCK_TO_BUY,
UUIDUtil.uuid( tagsContainer.getEntityId() ) ) );
}
//logMethodEnd( methodName, dto );
return dto;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void updateStockPrice( final D dto )\n {\n final String methodName = \"updateStockPrice\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n this.stockPriceQuoteService\n .setStockPriceQuote( (StockPriceQuote... | [
"0.60019696",
"0.5982679",
"0.5949633",
"0.5942853",
"0.59022194",
"0.58628005",
"0.5818649",
"0.57947356",
"0.57785076",
"0.57679844",
"0.5743548",
"0.56971264",
"0.5665583",
"0.5645465",
"0.562436",
"0.5623343",
"0.5571476",
"0.55668783",
"0.5563283",
"0.55597764",
"0.55473... | 0.62597764 | 0 |
final String methodName = "dtoToEntity"; logMethodBegin( methodName, dto ); | @Override
protected E dtoToEntity( final D dto )
{
Objects.requireNonNull( dto, "dto argument cannot be null" );
final E entity = super.dtoToEntity( dto );
/*
* Convert the notes source ID to UUID
*/
if ( dto instanceof NotesSourceIdContainer &&
entity instanceof NotesSourceUuidContainer )
{
final NotesSourceIdContainer notesSourceIdContainer = (NotesSourceIdContainer) dto;
/*
* Check for new sources
*/
this.stockNoteSourceService.checkForNewSource( notesSourceIdContainer );
final NotesSourceUuidContainer notesSourceUuidContainer = (NotesSourceUuidContainer)entity;
/*
* Convert the String UUID to a real uuid if present
*/
if ( notesSourceIdContainer.getNotesSourceId() != null &&
!notesSourceIdContainer.getNotesSourceId().isEmpty() )
{
final StockNoteSourceEntity stockNoteSourceEntity = this.stockNoteSourceService
.getStockNoteSource( ((CustomerUuidContainer)entity).getCustomerUuid(),
notesSourceIdContainer.getNotesSourceId() );
notesSourceUuidContainer.setNotesSourceEntity( stockNoteSourceEntity );
}
}
//logMethodEnd( methodName, entity );
return entity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract T convertToEntity(D dto);",
"public void toEntity(){\n\n }",
"public void logData(){\n }",
"@Override\n public D entityToDTO( final E entity )\n {\n //final String methodName = \"cachedDataToDTO\";\n //logMethodBegin( methodName, entity );\n Objects.requireNon... | [
"0.62302554",
"0.61023533",
"0.59742886",
"0.5840206",
"0.57447046",
"0.5685041",
"0.567695",
"0.56731385",
"0.5564615",
"0.55326",
"0.55293506",
"0.55063146",
"0.54920805",
"0.54830694",
"0.54691947",
"0.5468649",
"0.54638165",
"0.544825",
"0.5440244",
"0.54343486",
"0.54240... | 0.0 | -1 |
Updates the stock price after adding the DTO to the database. | @Override
protected void postAddDTO( final D dto )
{
final String methodName = "postAddDTO";
logMethodBegin( methodName, dto );
Objects.requireNonNull( dto, "dto argument cannot be null" );
super.postAddDTO( dto );
this.updateStockPrice( dto );
logMethodEnd( methodName );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void updateStockPrice( final D dto )\n {\n final String methodName = \"updateStockPrice\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n this.stockPriceQuoteService\n .setStockPriceQuote( (StockPriceQuote... | [
"0.7467357",
"0.6948116",
"0.68245345",
"0.667927",
"0.65850586",
"0.65730494",
"0.6477641",
"0.6477311",
"0.6476655",
"0.64618134",
"0.64551646",
"0.64048845",
"0.63999504",
"0.6386286",
"0.63686055",
"0.6365721",
"0.6351095",
"0.6309193",
"0.6300718",
"0.6260039",
"0.624180... | 0.60873556 | 37 |
Updates the stock price after updating the DTO in the database. | @Override
protected void postSaveDTO( final D dto )
{
final String methodName = "postSaveDTO";
logMethodBegin( methodName, dto );
Objects.requireNonNull( dto, "dto argument cannot be null" );
super.postSaveDTO( dto );
this.updateStockPrice( dto );
logMethodEnd( methodName );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void updateStockPrice( final D dto )\n {\n final String methodName = \"updateStockPrice\";\n logMethodBegin( methodName, dto );\n Objects.requireNonNull( dto, \"dto argument cannot be null\" );\n this.stockPriceQuoteService\n .setStockPriceQuote( (StockPriceQuote... | [
"0.76638186",
"0.7469901",
"0.7386091",
"0.7086537",
"0.7034055",
"0.6931617",
"0.6892653",
"0.68893856",
"0.67147076",
"0.67015916",
"0.6665493",
"0.66623247",
"0.6640053",
"0.6627862",
"0.6603894",
"0.66021454",
"0.6557167",
"0.6543468",
"0.65416867",
"0.6538794",
"0.653393... | 0.0 | -1 |
Ansynchronous update request of the stock price. | protected void updateStockPrice( final D dto )
{
final String methodName = "updateStockPrice";
logMethodBegin( methodName, dto );
Objects.requireNonNull( dto, "dto argument cannot be null" );
this.stockPriceQuoteService
.setStockPriceQuote( (StockPriceQuoteDTOContainer) dto );
logMethodEnd( methodName );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateStockData() {\n\t\t\ttry {\n\t\t\t\tthis.dataURL = new URL(this.url);\n\t\t\t} catch (final MalformedURLException e) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"CRITICAL ERROR: The impossible has happened! The hard-hoded URL was malformed.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\tScanner sc... | [
"0.63343126",
"0.63257045",
"0.6143271",
"0.60080254",
"0.6008",
"0.6006599",
"0.5950926",
"0.58700424",
"0.5795788",
"0.57106876",
"0.5658044",
"0.55645835",
"0.5544716",
"0.55400556",
"0.5510916",
"0.5505407",
"0.549413",
"0.54609466",
"0.54561454",
"0.5455544",
"0.5416156"... | 0.577902 | 9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.