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
On List view item Click
public S<T> itemClick(OnItemClickListener listener){ if(t instanceof ListView){ ((ListView) t).setOnItemClickListener(listener); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onListItemClicked(int position) {\n\n }", "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "public void onListItemClick( ListView l, View v, int position, long id )\n {\n }", "@Override\r\n public void onListItemC...
[ "0.8451844", "0.8265355", "0.8188207", "0.81116223", "0.80736715", "0.79638165", "0.79471093", "0.7922318", "0.79078054", "0.79023874", "0.78929937", "0.7888397", "0.7885299", "0.7867285", "0.78229326", "0.78183615", "0.77959865", "0.77784497", "0.77527267", "0.77453053", "0....
0.0
-1
Gets the int from the view (edittext, button,..)
public int toInt(){ String s = txt().trim(); int i; try{ i = Integer.parseInt(s); }catch(NumberFormatException exp){ exp.printStackTrace(); return 0; } return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getViewId();", "private int getValueOfField(int reference){\n Object obj = getView().findViewById(reference);\n if (obj instanceof EditText)\n if (!((EditText) obj).getText().toString().equalsIgnoreCase(\"\"))\n return Integer.parseInt(((EditText) obj).getText().toStri...
[ "0.6991846", "0.6989682", "0.6964724", "0.6630327", "0.66117525", "0.65776676", "0.629829", "0.6221148", "0.61526775", "0.61449313", "0.6061556", "0.60532504", "0.6052917", "0.5997806", "0.5971378", "0.5907438", "0.59045166", "0.5879818", "0.58610225", "0.5826909", "0.5775281...
0.0
-1
Gets the float from the view (edittext, button,..)
public float toFloat(){ String s = txt().trim(); float i; try{ i = Float.parseFloat(s); }catch(NumberFormatException exp){ exp.printStackTrace(); return 0f; } return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getFloatingPointField();", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tfloat n1=Float.parseFloat(a.getText().toString());\n\t\t float n2=Float.parseFloat(b.getText().toString());\n\t\t\n\t\t\t\top.setText(String.valueOf(n1/n2));\n\t\t\t}", "@Override\n public float getAmount() ...
[ "0.6126889", "0.6118096", "0.60125375", "0.5979316", "0.59422004", "0.59422004", "0.59422004", "0.5941957", "0.5914668", "0.5910378", "0.58565784", "0.5856563", "0.5853361", "0.58476347", "0.5834355", "0.5819245", "0.58111924", "0.5793685", "0.5767068", "0.5766039", "0.576592...
0.602824
2
Gets the boolean from the view (edittext, button,..)
public Boolean toBool(){ String s = txt().trim(); Boolean i; try{ i = Boolean.parseBoolean(s); }catch(NumberFormatException exp){ exp.printStackTrace(); return false; } return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.Boolean getView() {\n return view;\n }", "protected boolean isEdit(){\n\t\treturn getArguments().getBoolean(ARG_KEY_IS_EDIT);\n\t}", "boolean isEdit();", "boolean isInview();", "boolean hasClickView();", "boolean getBoolean();", "boolean getBoolean();", "boolean isEditable(...
[ "0.66380394", "0.65964305", "0.6550207", "0.6528316", "0.6467529", "0.627373", "0.627373", "0.62289333", "0.6216802", "0.6199609", "0.6183694", "0.615714", "0.6099737", "0.6067814", "0.6039378", "0.6039378", "0.60224235", "0.6005239", "0.5999729", "0.59594613", "0.5953225", ...
0.0
-1
Hide the view (Gone)
public S<T> gone(){ ((View)t).setVisibility(View.GONE); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hide() {\n hidden = true;\n }", "public void hide() {\n visible=false;\n }", "public void hide() {\n\t\thidden = true;\n\t}", "public void hide() {\n // TODO(mschillaci): Add a FrameLayout wrapper so the view can be removed.\n if (mView != null && mView.getVisibility()...
[ "0.820624", "0.8179247", "0.8142407", "0.81404924", "0.8103188", "0.80699646", "0.80388784", "0.8038414", "0.8038414", "0.8038414", "0.8038414", "0.8038414", "0.8038414", "0.8038414", "0.8038414", "0.803622", "0.8024958", "0.80046374", "0.7950481", "0.7934398", "0.7934398", ...
0.0
-1
sets the width of the view in dp
public S<T> widthDp(int width){ ((View)t).getLayoutParams().width = (int) pxToDp(width); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BindingAdapter({\"layout_width\"})\n public static void setWidth(View view, int width) {\n view.getLayoutParams().width = Math.round(width * view.getContext().getResources().getDisplayMetrics().density);\n }", "void setWidth(int width);", "void setWidth(int width);", "@Before\n public void s...
[ "0.7352664", "0.69194734", "0.69194734", "0.68703204", "0.68654156", "0.6845199", "0.6812087", "0.6760432", "0.6727031", "0.6710027", "0.6683389", "0.66386974", "0.66368014", "0.6617872", "0.66059834", "0.6581122", "0.65250814", "0.64999616", "0.64828646", "0.6482582", "0.648...
0.6872152
3
sets the height of the view in dp
public S<T> heightDp(int height){ ((View)t).getLayoutParams().height = (int) pxToDp(height); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHeight(int height);", "public void setHeight(int height);", "@BindingAdapter({\"layout_height\"})\n public static void setHeight(View view, int height) {\n view.getLayoutParams().height = Math.round(height * view.getContext().getResources().getDisplayMetrics().density);\n }", "voi...
[ "0.7486779", "0.7486779", "0.73958933", "0.7360908", "0.7360908", "0.7279553", "0.7131601", "0.7094161", "0.7061213", "0.70441824", "0.6919675", "0.6842436", "0.6817453", "0.68128306", "0.67780185", "0.6755641", "0.6747307", "0.6742625", "0.6738597", "0.6735096", "0.6697307",...
0.669097
21
sets the x of the view in dp
@SuppressLint("NewApi") public S<T> XDp(int x){ ((View)t).setX((int) pxToDp(x)); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setX(float x)\n {\n getBounds().offsetTo(x - positionAnchor.x, getBounds().top);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }", "@SuppressLint(\"NewApi\")\n\tpublic S<T> X(int x){\n\t\t((View)t).setX(x);\n\t\treturn this;\n\t}", "void setX(int x) ...
[ "0.70142853", "0.68526155", "0.682512", "0.66153735", "0.66038585", "0.6542402", "0.6477202", "0.64752156", "0.6442462", "0.6442087", "0.64357173", "0.64302844", "0.64241254", "0.6424014", "0.6419445", "0.64142144", "0.64067715", "0.6406502", "0.6402102", "0.63997936", "0.638...
0.8007961
0
sets the y of the view in dp
@SuppressLint("NewApi") public S<T> YDp(int y){ ((View)t).setY((int) pxToDp(y)); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setY(float y)\n {\n getBounds().offsetTo(getBounds().left, y - positionAnchor.y);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }", "public void setY(int y){ yPosition = y; }", "void setY(int y) {\n position = position.setY(y);\n }", "@Override...
[ "0.716626", "0.7061205", "0.70486754", "0.70124483", "0.7011362", "0.6949926", "0.6932716", "0.6895207", "0.6889294", "0.6888065", "0.68788314", "0.68788314", "0.68788314", "0.68756527", "0.6862392", "0.68594366", "0.68594366", "0.68594366", "0.6841113", "0.6841113", "0.68411...
0.7735487
0
sets the width of the view in px
public S<T> width(int width){ ((View)t).getLayoutParams().width = width; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setWidth(int width);", "void setWidth(int width);", "public void setWidth(int w){\n \twidth = w;\n }", "public void setWidth(int w)\n {\n width = w;\n }", "public void setWidth(int w) {\n this.width = w;\n }", "@BindingAdapter({\"layout_width\"})\n public static void ...
[ "0.79522747", "0.79522747", "0.7942926", "0.7894188", "0.7721916", "0.77111584", "0.76561964", "0.7641702", "0.7640195", "0.76195896", "0.7611326", "0.7599909", "0.7576342", "0.754246", "0.7445078", "0.74264705", "0.7416549", "0.73970497", "0.7383697", "0.73784065", "0.736278...
0.71198136
32
sets the height of the view in px
public S<T> height(int height){ ((View)t).getLayoutParams().height = height; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHeight(int height);", "public void setHeight(int height);", "void setHeight(int height);", "void setHeight(int height);", "public void setHeight(int h)\n {\n height = h;\n }", "public void setHeight(int value) {\n this.height = value;\n }", "public void setHeight(int h) ...
[ "0.81521344", "0.81521344", "0.806137", "0.806137", "0.78561157", "0.7825908", "0.7658526", "0.7611477", "0.7562713", "0.7552825", "0.7547704", "0.7545646", "0.75021595", "0.74800617", "0.74571073", "0.74571073", "0.7454246", "0.7453136", "0.7440745", "0.74396634", "0.7348894...
0.67180765
66
sets the x of the view in px
@SuppressLint("NewApi") public S<T> X(int x){ ((View)t).setX(x); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setX(int x) {\n position = position.setX(x);\n }", "public void setX(float x)\n {\n getBounds().offsetTo(x - positionAnchor.x, getBounds().top);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }", "@Override\n\tpublic void setX(int x) {\n\t\txPos = x;\n\t...
[ "0.7829695", "0.779522", "0.7766334", "0.7753047", "0.76700217", "0.76357776", "0.76235527", "0.7495087", "0.74932414", "0.74881816", "0.7454841", "0.7435037", "0.74340147", "0.73990506", "0.7382199", "0.7377872", "0.7347913", "0.73260874", "0.7309478", "0.7309478", "0.730947...
0.764655
5
sets the y of the view in px
@SuppressLint("NewApi") public S<T> Y(int y){ ((View)t).setY(y); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setY(int y){ yPosition = y; }", "void setY(int y) {\n position = position.setY(y);\n }", "public void setY(int value) {\n this.y = value;\n }", "public void setY(int y) {\n this.y = y;\r\n }", "public void setY(int y){\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int ...
[ "0.8044129", "0.79825485", "0.78182524", "0.78158176", "0.7813725", "0.779391", "0.779391", "0.779391", "0.7793563", "0.77717537", "0.7770396", "0.7770396", "0.7770396", "0.7770396", "0.77537686", "0.7752974", "0.7737049", "0.7736766", "0.7736766", "0.7736766", "0.7691667", ...
0.74288076
47
gets the screen width
public int sWidth(){ int Measuredwidth = 0; Point size = new Point(); WindowManager w = activity.getWindowManager(); if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { w.getDefaultDisplay().getSize(size); Measuredwidth = size.x; }else{ Display d = w.getDefaultDisplay();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getScreenWidth();", "public int getScreenWidth();", "public int getScreenWidth() {\n return this.screenWidth;\n }", "public int getWidthScreen(){\n return widthScreen ;\n }", "public int getScreenWidth()\r\n\t{\r\n\t\treturn mScreen.getWidth();\r\n\t}", "private void findSc...
[ "0.9048443", "0.9048443", "0.847956", "0.84341586", "0.8433663", "0.8081581", "0.7908456", "0.7823574", "0.7743224", "0.7742621", "0.7742621", "0.7670237", "0.76614213", "0.74767834", "0.74684674", "0.73656887", "0.7316542", "0.7277201", "0.72617275", "0.72265714", "0.7219203...
0.756193
13
gets the screen height
public int sHeight(){ int Measuredheight = 0; Point size = new Point(); WindowManager w = activity.getWindowManager(); if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { w.getDefaultDisplay().getSize(size); Measuredheight = size.y; }else{ Display d = w.getDefaultDisplay()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getScreenHeight();", "public int getScreenHeight();", "public int getScreenHeight() {\n return this.screenHeight;\n }", "public int getHeightScreen(){\n return heightScreen ;\n }", "public int getScreenHeight()\r\n\t{\r\n\t\treturn mScreen.getHeight();\r\n\t}", "public int ...
[ "0.9142474", "0.9142474", "0.87411", "0.8657026", "0.8624278", "0.8043536", "0.7925607", "0.789469", "0.7867734", "0.7798695", "0.7793279", "0.77708966", "0.7743249", "0.7726855", "0.77184474", "0.7637553", "0.7468296", "0.7433321", "0.740046", "0.738701", "0.7382098", "0.7...
0.778951
11
Makes a short Toast
public S<T> toast(String text){ Toast t = Toast.makeText(activity, text, Toast.LENGTH_SHORT); t.show(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showToast(String message);", "void showToast(String message);", "void toast(CharSequence sequence);", "static void makeToast(Context ctx, String s){\n Toast.makeText(ctx, s, Toast.LENGTH_SHORT).show();\n }", "void toast(int resId);", "protected void toast() {\n }", "private void makeT...
[ "0.8182652", "0.8182652", "0.8042267", "0.7978238", "0.79541975", "0.79015243", "0.78502", "0.78342235", "0.7810392", "0.7793739", "0.77505296", "0.7710682", "0.76861924", "0.7674831", "0.76509964", "0.76202166", "0.76141113", "0.76095825", "0.7590704", "0.7536439", "0.753246...
0.0
-1
Makes a Long Toast
public S<T> Ltoast(String text){ Toast t = Toast.makeText(activity, text, Toast.LENGTH_LONG); t.show(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toast (String msg, boolean longLength)\n {\n Toast.makeText (getApplicationContext(), msg,\n (longLength ? Toast.LENGTH_LONG : Toast.LENGTH_SHORT)\n ).show ();\n }", "private void makeToast(String message, boolean longToast) {\n\t\tif (longToast)\t{ Toast.makeText(t...
[ "0.8054911", "0.7958544", "0.7571246", "0.75538874", "0.7521791", "0.75153136", "0.7449814", "0.7411637", "0.7401493", "0.73386896", "0.7338432", "0.7327076", "0.7278404", "0.7278404", "0.7254079", "0.7241294", "0.7224204", "0.7190176", "0.71724725", "0.71639186", "0.7162808"...
0.0
-1
Makes an alert dialog
public S<T> alert(String title,String text){ AlertDialog alertDialog = new AlertDialog.Builder(activity).create(); alertDialog.setTitle(title); alertDialog.setMessage(text); alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, "OK", new DialogInterface.OnClickListener() { public void onClick(Dia...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void alert(String message);", "void showAlert(String message);", "private void alert(String title, String msj){\n android.app.AlertDialog.Builder alertDialog = new android.app.AlertDialog.Builder(getActivity());\n alertDialog.setTitle(title);\n alertDialog.setMessage(msj);\n ...
[ "0.76374984", "0.7629751", "0.7358751", "0.73349357", "0.73304754", "0.7327125", "0.72602963", "0.72557676", "0.72481644", "0.7205927", "0.7171638", "0.71636444", "0.7159702", "0.71408737", "0.7140703", "0.71299905", "0.71291333", "0.7114488", "0.7093806", "0.7087516", "0.708...
0.64855385
85
Makes an alert dialog
public S<T> alert(String icon,String title,String text){ AlertDialog alertDialog = new AlertDialog.Builder(activity).create(); alertDialog.setTitle(title); alertDialog.setMessage(text); alertDialog.setIcon(getIdD(icon)); alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, "OK", new DialogInterface.OnCl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void alert(String message);", "void showAlert(String message);", "private void alert(String title, String msj){\n android.app.AlertDialog.Builder alertDialog = new android.app.AlertDialog.Builder(getActivity());\n alertDialog.setTitle(title);\n alertDialog.setMessage(msj);\n ...
[ "0.76374984", "0.7629751", "0.7358751", "0.73349357", "0.73304754", "0.7327125", "0.72602963", "0.72557676", "0.72481644", "0.7205927", "0.7171638", "0.71636444", "0.7159702", "0.71408737", "0.7140703", "0.71299905", "0.71291333", "0.7114488", "0.7093806", "0.7087516", "0.708...
0.0
-1
Makes an alert dialog
public S<T> alert(String text){ AlertDialog alertDialog = new AlertDialog.Builder(activity).create(); alertDialog.setTitle("Alert"); alertDialog.setMessage(text); alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, "OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterfac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void alert(String message);", "void showAlert(String message);", "private void alert(String title, String msj){\n android.app.AlertDialog.Builder alertDialog = new android.app.AlertDialog.Builder(getActivity());\n alertDialog.setTitle(title);\n alertDialog.setMessage(msj);\n ...
[ "0.76374984", "0.7629751", "0.7358751", "0.73349357", "0.73304754", "0.7327125", "0.72602963", "0.72557676", "0.72481644", "0.7205927", "0.7171638", "0.71636444", "0.7159702", "0.71408737", "0.7140703", "0.71299905", "0.71291333", "0.7114488", "0.7093806", "0.7087516", "0.708...
0.66264296
66
Makes an progress dialog
public S<T> progress(Boolean active,String text){ if(pDialog==null){ pDialog = new ProgressDialog(activity); pDialog.setMessage(text); pDialog.setCancelable(false); } if(active){ if (!pDialog.isShowing()) pDialog.show(); }else{ if (pDialog.isShowing()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showModalProgress();", "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "private void showSpinerProgress() {\n dialog.setMessage(\"Loading\");\n//\n// dialog.setButton(ProgressDialog.BUTTON_POSITIVE, \"YES\", new DialogInterface.OnClickListener() {\n// @Ove...
[ "0.7780838", "0.7747796", "0.7649784", "0.7600608", "0.74713045", "0.7447668", "0.7369826", "0.7369826", "0.73131865", "0.7276471", "0.7212236", "0.71666944", "0.70955956", "0.7053885", "0.704714", "0.704714", "0.701684", "0.7001614", "0.69933766", "0.6984496", "0.690178", ...
0.0
-1
Makes an progress dialog
public S<T> progress(Boolean active){ if(pDialog==null){ pDialog = new ProgressDialog(activity); pDialog.setMessage("Please wait..."); pDialog.setCancelable(false); } if(active){ if (!pDialog.isShowing()) pDialog.show(); }else{ if (pDialog.isShowing()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showModalProgress();", "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "private void showSpinerProgress() {\n dialog.setMessage(\"Loading\");\n//\n// dialog.setButton(ProgressDialog.BUTTON_POSITIVE, \"YES\", new DialogInterface.OnClickListener() {\n// @Ove...
[ "0.7780657", "0.77481085", "0.76491034", "0.7601086", "0.7471279", "0.7447573", "0.7369352", "0.7369352", "0.7312884", "0.7277058", "0.7211841", "0.71668404", "0.70954686", "0.70537037", "0.70473325", "0.70473325", "0.70169073", "0.7002052", "0.6993498", "0.6983973", "0.69015...
0.6331244
85
Gets the text of a view
public String txt(){ String s =""; String aux =""; if(t instanceof TextView){ aux =( (TextView) t).getText().toString(); } if(t instanceof Button){ aux =( (Button) t).getText().toString(); } if(t instanceof EditText){ aux =( (EditText) t).getText().toString(); } if(t instanceof CheckBox){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getViewText() {\n \t\treturn \"featured-partner-view_text_t\";\n \t}", "java.lang.String getView();", "TextView getDescriptionView();", "abstract TextView getTextView();", "public static String getString(TextView view) {\n return view.getText().toString().trim();\n }", "public Cha...
[ "0.74898493", "0.74895954", "0.74440455", "0.7390361", "0.71518564", "0.7070329", "0.7004014", "0.7004014", "0.7004014", "0.68578255", "0.68578255", "0.68578255", "0.68578255", "0.6850446", "0.6850446", "0.6816159", "0.680849", "0.680849", "0.680849", "0.680849", "0.680849", ...
0.0
-1
Post data to the server
public HttpResponse post(String url,List<NameValuePair> nameValuePairs) { HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(url); try { httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = httpclient.execute(httppos...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void postData() {\n\n\t}", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieH...
[ "0.81541044", "0.736202", "0.73320174", "0.6941278", "0.6876145", "0.6805731", "0.6755225", "0.6657722", "0.6648321", "0.6620163", "0.66176456", "0.65437615", "0.64658177", "0.6453178", "0.64459896", "0.644082", "0.634278", "0.6302323", "0.6295472", "0.6260375", "0.6241918", ...
0.0
-1
Sets the activity as a splash screen
public S<T> splash(int time,final String nextActivity){ new Handler().postDelayed(new Runnable() { @Override public void run() { to(nextActivity); activity.finish(); } }, time); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n\r\n // Do not display title bar, this makes the splash screen really full screen\r\n requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n \r\n // Check if we need to display the ...
[ "0.7772549", "0.7676799", "0.765266", "0.7488856", "0.74176896", "0.7372239", "0.736463", "0.7338751", "0.7282575", "0.7237235", "0.7235096", "0.7183307", "0.71812344", "0.717216", "0.7154707", "0.71415573", "0.713526", "0.711825", "0.71164566", "0.70977354", "0.7062995", "...
0.61411065
99
Save a string in the Shared Preferences
public S<T> setPref(String value, String key) { SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0); settings = activity.getSharedPreferences(PREFS_NAME, 0); SharedPreferences.Editor editor = settings.edit(); editor.putString(key, value); editor.commit(); return this;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveString(String key,String value)\n {\n preference.edit().putString(key,value).apply();\n }", "public void saveString(int prefKey, String value) {\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(getResources().getString(prefKey), value);\n ...
[ "0.8179916", "0.80404854", "0.7842697", "0.75689757", "0.7403598", "0.73568463", "0.72424054", "0.7232126", "0.7195709", "0.7195315", "0.71369034", "0.7112897", "0.71083546", "0.7083549", "0.7017251", "0.7013924", "0.6952879", "0.6902532", "0.68904656", "0.688045", "0.6869769...
0.0
-1
Gets a string in the Shared Preferences
public String getPref(String key) { SharedPreferences settings = activity.getSharedPreferences(PREFS_NAME, 0); settings = activity.getSharedPreferences(PREFS_NAME, 0); String value = settings.getString(key, ""); return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getStringForKey(String key)\n\t{\n\t\treturn PreferencesModel.instance().getUserStringPref(key, null);\n\t}", "public static String getStringPreference(String key) {\n return sharedPreferences.getString(key, null);\n }", "public String getString(String key) {\n return mPre...
[ "0.73315245", "0.7241281", "0.72210234", "0.71889037", "0.71889037", "0.7117684", "0.70423", "0.6976993", "0.6962612", "0.6925015", "0.68891597", "0.68230194", "0.6796763", "0.6771646", "0.6739652", "0.67140764", "0.6669114", "0.6651047", "0.66429216", "0.66355085", "0.659198...
0.7263457
1
Calls a public function inside the activity
public S<T> callFun(String name){ Class<? extends Activity> aClass = activity.getClass(); try { java.lang.reflect.Method method = aClass.getMethod(name, new Class[]{}); method.invoke(activity,new Object[] {}); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessExcept...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void doActivity();", "private void openActivity() {\n }", "Activity activity();", "public void makeCall() {\n\n }", "public void goTestActivity()\n\t {\n\t }", "@Override\n public void phoneCalling() {\n Log.e(\"test_TTS\", \"phoneCalling\");\n }", "@Override\n pub...
[ "0.71722746", "0.6789677", "0.6576399", "0.6316624", "0.62190235", "0.62097955", "0.62097955", "0.61807615", "0.6166924", "0.6100285", "0.60562253", "0.60250235", "0.59709", "0.5968592", "0.5959516", "0.59445465", "0.59104204", "0.589686", "0.5896026", "0.5880858", "0.5880263...
0.63486224
3
gets a value from string file
public String getS(String name){ String packageName = activity.getPackageName(); int resId = activity.getResources().getIdentifier(name, "string", packageName); return activity.getString(resId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String get(String key) {\n\t\t//get this file's text\n\t\tString text = FileIO.read(this.getPath());\n\t\tString value = null;\n\t\ttry {\n\t\t\t//try matching the pattern: key : value\\n \n\t\t\tPattern pattern = Pattern.compile(key+\" : (.*?)\\n\");\n\t\t\t\n\t\t\tMatcher matcher = pattern.matcher(text);\...
[ "0.70479184", "0.6672494", "0.6399947", "0.63267", "0.63096446", "0.626973", "0.624771", "0.6210953", "0.6180019", "0.61542034", "0.61019385", "0.60981727", "0.60959166", "0.60959166", "0.6077414", "0.6065774", "0.6001128", "0.5978617", "0.59555787", "0.5886724", "0.587834", ...
0.0
-1
gets a Drawable from Drawable folder
public Drawable getD(String name) { int resourceId = activity.getResources().getIdentifier(name, "drawable", activity.getPackageName()); return activity.getResources().getDrawable(resourceId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Drawable getDrawable(Context context, String path_relative) {\n InputStream ims = null;\n try {\n ims = context.getAssets().open(path_relative);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return Drawable.createFromStream(ims, null...
[ "0.70483357", "0.69191295", "0.6882271", "0.67836255", "0.6756368", "0.67081916", "0.65603656", "0.6517338", "0.6410696", "0.6408048", "0.6387797", "0.63847595", "0.63767815", "0.63673925", "0.62734073", "0.6223503", "0.6199653", "0.61844105", "0.6080523", "0.6053676", "0.600...
0.71746176
0
gets a Drawable from Drawable folder
public Bitmap getB(String name){ return BitmapFactory.decodeResource(activity.getResources(), activity.getResources().getIdentifier(name, "drawable", activity.getPackageName())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Drawable getD(String name) { \n\t\t\n\t int resourceId = activity.getResources().getIdentifier(name, \"drawable\", activity.getPackageName());\n\t return activity.getResources().getDrawable(resourceId);\n\t}", "public static Drawable getDrawable(Context context, String path_relative) {\n Inpu...
[ "0.71744645", "0.7048253", "0.6918368", "0.68820137", "0.6782876", "0.6755991", "0.6707138", "0.6558024", "0.65169185", "0.64087206", "0.64075094", "0.6387938", "0.6383949", "0.6375732", "0.63662285", "0.6271695", "0.62213236", "0.6197677", "0.6184125", "0.60788524", "0.60532...
0.5532245
36
Open the camera to take a picture
public S<T> camImg(int code){ Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); activity.startActivityForResult(intent, code); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void openCamera(View view) {\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n\n mImagePath = getFile();\n takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, mImagePath);\n startActivityForResult(takePictureIntent, TAKE_PIC_CODE);\n }", "public voi...
[ "0.82149965", "0.81434745", "0.8024423", "0.7966478", "0.796025", "0.7913169", "0.787442", "0.7869801", "0.78401554", "0.78332704", "0.77781445", "0.77454996", "0.7713866", "0.76918113", "0.76913613", "0.7686289", "0.76414293", "0.7558814", "0.755042", "0.7538604", "0.7527537...
0.0
-1
Open the camera to take a video
public S<T> camVid(int code){ Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); activity.startActivityForResult(intent, code); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void takePhoto() {\n Uri fileUri = FileProvider.getUriForFile(Mic.getmCtx(), \"com.jay.appdemo1.fileProvider\", getOutputMediaFile());\n Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);\n intent.putExtra(MediaStore...
[ "0.7448254", "0.7062566", "0.7017061", "0.69803476", "0.69676715", "0.69469714", "0.6780486", "0.6766128", "0.67648816", "0.6753771", "0.6720742", "0.6712741", "0.6705347", "0.6675182", "0.66546696", "0.6652438", "0.66072637", "0.6585426", "0.6488669", "0.6474762", "0.6470087...
0.66844994
13
/ Open and close bluetooth
public S<T> bluetooth(Boolean enable){ BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); boolean isEnabled = bluetoothAdapter.isEnabled(); if (enable && !isEnabled) { bluetoothAdapter.enable(); } else if(!enable && isEnabled) { bl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void bluetoothDeactivated();", "private void bluetooth_connect_device() throws IOException\n {\n try\n {\n myBluetooth = BluetoothAdapter.getDefaultAdapter();\n address = myBluetooth.getAddress();\n pairedDevices = myBluetooth.getBondedDevices();\n if ...
[ "0.6927677", "0.6726581", "0.67158747", "0.66386575", "0.66002387", "0.6519066", "0.6384403", "0.636805", "0.6358887", "0.63149416", "0.6271995", "0.625991", "0.62261355", "0.62142414", "0.6183887", "0.61396176", "0.61104983", "0.6085862", "0.6077763", "0.6075762", "0.6051443...
0.5578073
72
/ Open and close wifi
public S<T> wifi(Boolean enable){ WifiManager wifi = (WifiManager) activity.getSystemService(Context.WIFI_SERVICE); boolean isEnabled = wifi.isWifiEnabled(); if (enable && !isEnabled) { wifi.setWifiEnabled(true); } else if(!enable && isEnabled) { wifi.setWifiEn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void disconnectWifi() {\n assertTrue(\"Wifi not disconnected\", mWifiManager.disconnect());\n mWifiManager.disableNetwork(mWifiManager.getConnectionInfo().getNetworkId());\n mWifiManager.saveConfiguration();\n }", "void closeNetwork();", "@Override\r\n public boolean disconne...
[ "0.7247623", "0.7038581", "0.6990148", "0.66709596", "0.6413951", "0.6413435", "0.63951606", "0.6304395", "0.6190158", "0.61646587", "0.6121582", "0.61140966", "0.60962766", "0.60753787", "0.6051009", "0.6006411", "0.59827274", "0.5972343", "0.59215575", "0.5913733", "0.59134...
0.5654138
42
This method converts dp unit to equivalent pixels, depending on device density.
public float dpToPx(float dp){ Resources resources = activity.getResources(); DisplayMetrics metrics = resources.getDisplayMetrics(); float px = dp * (metrics.densityDpi / 160f); return px; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int toPixels(int dp)\n {\n final float scale = getResources().getDisplayMetrics().density;\n return (int) (dp * scale + 0.5f);\n }", "private float convertDpToPixel(float dp){\n Resources resources = getContext().getResources();\n DisplayMetrics metrics = resources.getDi...
[ "0.8137664", "0.7979268", "0.79172313", "0.7820175", "0.74777704", "0.7462552", "0.73824525", "0.7357295", "0.7342331", "0.7269124", "0.7269124", "0.7269124", "0.7255873", "0.72284275", "0.7202448", "0.7194152", "0.7194152", "0.7194152", "0.7194152", "0.7194152", "0.7194152",...
0.71029353
36
This method converts device specific pixels to density independent pixels.
public float pxToDp(float px){ Resources resources = activity.getResources(); DisplayMetrics metrics = resources.getDisplayMetrics(); float dp = px / (metrics.densityDpi / 160f); return dp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static float convertDpToPixel(float dp){\n return dp * ((float) Resources.getSystem().getDisplayMetrics().densityDpi / DisplayMetrics.DENSITY_DEFAULT);\n }", "private int toPixels(int dp)\n {\n final float scale = getResources().getDisplayMetrics().density;\n return (int) (dp * sc...
[ "0.6721851", "0.6670633", "0.66450894", "0.64651334", "0.6462232", "0.6410542", "0.6400529", "0.6350613", "0.62995636", "0.6269187", "0.6243127", "0.620961", "0.6206477", "0.6181004", "0.61496526", "0.614231", "0.6140301", "0.6134919", "0.6117075", "0.6103683", "0.6102733", ...
0.543588
54
delays the execution of a function
public S<T> delay(int time, String function){ final String s =function; final Handler handler = new Handler(); handler.postDelayed(new Runnable() { @Override public void run() { callFun(s); } }, time); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int delay();", "private void delay() {\n\ttry {\n\t\tThread.sleep(500);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\t\n\t}", "private void delay() {\n\t\tDelay.msDelay(1000);\n\t}", "public static void delay() {\n\n long ...
[ "0.6811681", "0.6698911", "0.66320926", "0.6518691", "0.64147764", "0.6359787", "0.6160223", "0.6160223", "0.6103592", "0.6101577", "0.6057996", "0.5971279", "0.5953132", "0.5952591", "0.5940088", "0.5924775", "0.59243405", "0.5912739", "0.58900815", "0.58871365", "0.5867817"...
0.63206196
6
Get the android version
public String androidVersion() { String release = Build.VERSION.RELEASE; int sdkVersion = Build.VERSION.SDK_INT; return "Android SDK: " + sdkVersion + " (" + release +")"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAndroidVersionName() {\n return AndroidVersionName;\n }", "java.lang.String getAndroidKtxVersion();", "public String getSdkVersion() {\n return sdkVersion;\n }", "public String getVersion() {\n\t\tString version = \"0.0.0\";\n\n\t\tPackageManager packageManager = getPacka...
[ "0.7458324", "0.7353428", "0.7104062", "0.7031967", "0.7031967", "0.70160043", "0.6898183", "0.68462586", "0.68434364", "0.6760932", "0.6676683", "0.6585251", "0.6576244", "0.65531266", "0.65327746", "0.6521185", "0.65199393", "0.6484877", "0.64844584", "0.64844584", "0.64844...
0.78155637
0
Get the device phone number
public String getPhoneNumber(){ TelephonyManager mTelephonyMgr; mTelephonyMgr = (TelephonyManager) activity.getSystemService(Context.TELEPHONY_SERVICE); return mTelephonyMgr.getLine1Number(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getUserPhone();", "java.lang.String getPhone();", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "java.lang.String getPhoneNumber();", "@Override\n public String getPhoneNumber() {\n\n if(this.phoneNumber == null){\n\n this.phoneNumber = ...
[ "0.7825086", "0.77710766", "0.7645035", "0.7645035", "0.7645035", "0.7588624", "0.7547685", "0.75171417", "0.7486603", "0.74648356", "0.74403214", "0.7412964", "0.7406234", "0.73989105", "0.73939455", "0.7382235", "0.73792744", "0.7374068", "0.73579794", "0.7351367", "0.73222...
0.79367507
0
Get the device name
public String deviceName() { String manufacturer = Build.MANUFACTURER; String model = Build.MODEL; if (model.startsWith(manufacturer)) { return capitalize(model); } else { return capitalize(manufacturer) + " " + model; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDeviceName();", "public String getDeviceName() {\r\n return name_;\r\n }", "public String getDeviceName(){\n\t\treturn deviceName;\n\t}", "public String getDeviceName(){\n\t return deviceName;\n }", "public String getName() {\n\t\treturn \"Device\";\r\n\t}", "public String getDevi...
[ "0.84094745", "0.82338774", "0.79901946", "0.7978716", "0.7969988", "0.7945741", "0.79371226", "0.79354256", "0.79224545", "0.78624433", "0.78608227", "0.78608227", "0.78570294", "0.78526163", "0.78415036", "0.7812766", "0.7768496", "0.7690018", "0.73741686", "0.7318045", "0....
0.804558
2
check if it is an email
public boolean checkEmail(String email) { return EMAIL_ADDRESS_PATTERN.matcher(email).matches(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean emailisValid(String email) \n\t{\n\t\treturn false;\n\t}", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(...
[ "0.7644029", "0.7642197", "0.7642197", "0.7642197", "0.7642197", "0.76371855", "0.7630102", "0.75783944", "0.7556871", "0.7556871", "0.7556871", "0.7556871", "0.7556871", "0.7538294", "0.7507418", "0.7472589", "0.7472589", "0.7472589", "0.7472589", "0.7468893", "0.7468893", ...
0.6888977
71
Convert byte array to hex string
public String bytesToHex(byte[] bytes) { StringBuilder sbuf = new StringBuilder(); for(int idx=0; idx < bytes.length; idx++) { int intVal = bytes[idx] & 0xff; if (intVal < 0x10) sbuf.append("0"); sbuf.append(Integer.toHexString(intVal).toUpperCase()); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String toHexString(byte[] array) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"0x\").append(DatatypeConverter.printHexBinary(array));\n return sb.toString();\n }", "public static String bytesToHex(byte[] array) {\n StringBuffer hexString = new StringBuffer();\...
[ "0.82976747", "0.8239103", "0.8143766", "0.8106631", "0.8017282", "0.7960231", "0.7929531", "0.79084367", "0.78833735", "0.7876266", "0.787324", "0.7851372", "0.781033", "0.77933025", "0.771712", "0.76449656", "0.7644727", "0.764272", "0.76370776", "0.7604315", "0.7582991", ...
0.68754834
83
Get utf8 byte array.
public byte[] getUTF8Bytes(String str) { try { return str.getBytes("UTF-8"); } catch (Exception ex) { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private byte[] getUTF8Bytes(String input) {\n\t\treturn input.getBytes(StandardCharsets.UTF_8);\n\t}", "public static final byte[] asUTF8(final String s) {\n return s.getBytes(StandardCharsets.UTF_8);\n }", "public static byte[] getUTF8Bytes(String str) {\r\n try { return str.getBytes(\"UTF-8\...
[ "0.7229581", "0.7058881", "0.6946543", "0.65500015", "0.65500015", "0.6280861", "0.6244139", "0.6244139", "0.6236977", "0.62046564", "0.6107628", "0.6090181", "0.6059033", "0.60578954", "0.60404193", "0.60279876", "0.60263264", "0.6003518", "0.5986593", "0.59160644", "0.58833...
0.7133005
1
Load UTF8withBOM or any ansi text file.
public String loadFileAsString(String filename) throws java.io.IOException { final int BUFLEN=1024; BufferedInputStream is = new BufferedInputStream(new FileInputStream(filename), BUFLEN); try { ByteArrayOutputStream baos = new ByteArrayOutputStream(BUFLEN); byte[] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testUTF8WithoutBom() throws IOException {\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(UTF8_NO_BOM_FILE), \"UTF-8\")\n\t\t);\n\t\tReadTestCSVFile(reader);\n\t}", "@Override\n\tpublic void load() {\n\t\tFileHandle file = Gdx.files.interna...
[ "0.6939319", "0.6531269", "0.6507646", "0.62049514", "0.5794849", "0.5764641", "0.55904096", "0.55352336", "0.5502433", "0.5481829", "0.53869325", "0.5277781", "0.52689093", "0.52627414", "0.5197184", "0.5180055", "0.512957", "0.5122273", "0.51119864", "0.508919", "0.5059111"...
0.58081204
4
Returns MAC address of the given interface name.
public static String macAddress(String interfaceName) { try { List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces()); for (NetworkInterface intf : interfaces) { if (interfaceName != null) { if (!intf.getName(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getMACAddress(String interfaceName) {\n try {\n List<NetworkInterface> interfaces = Collections\n .list(NetworkInterface.getNetworkInterfaces());\n for (NetworkInterface intf : interfaces) {\n if (interfaceName != null) {\n ...
[ "0.820733", "0.8001268", "0.7130593", "0.6558021", "0.6451806", "0.6392799", "0.617472", "0.5984623", "0.5958307", "0.5835766", "0.5828649", "0.5798339", "0.57838273", "0.5781114", "0.5748449", "0.5737994", "0.57327664", "0.5720049", "0.5714966", "0.5714966", "0.57010984", ...
0.80970037
1
Get IP address from first nonlocalhost interface
public static String ip(boolean useIPv4) { try { List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces()); for (NetworkInterface intf : interfaces) { List<InetAddress> addrs = Collections.list(intf.getInetAddresses()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InetAddress getIP();", "Ip4Address interfaceIpAddress();", "private String findIpAddress() throws Exception {\n\n\t\tString ipAddress = null;\n\t\tEnumeration<?> e = NetworkInterface.getNetworkInterfaces();\n\t\tloop: while( e.hasMoreElements()) {\n\t\t\tNetworkInterface n = (NetworkInterface) e.nextEle...
[ "0.73864555", "0.72882015", "0.7210132", "0.71562994", "0.715147", "0.71273005", "0.71200216", "0.7068365", "0.7068365", "0.7042978", "0.7011483", "0.7011483", "0.7011483", "0.70065725", "0.69613254", "0.6960397", "0.6959962", "0.6959407", "0.69417965", "0.6937664", "0.692671...
0.0
-1
gets the imei of the device
public String imei() { TelephonyManager telephonyManager = (TelephonyManager) activity .getSystemService(Context.TELEPHONY_SERVICE); return telephonyManager.getDeviceId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void get_IMEI(){\n TelephonyManager mngr = (TelephonyManager) getSystemService(this.TELEPHONY_SERVICE);\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // Activit...
[ "0.8005803", "0.7354297", "0.7162118", "0.7047383", "0.6891873", "0.68729466", "0.68729466", "0.6789419", "0.67550987", "0.6753435", "0.6655943", "0.65710735", "0.6451856", "0.6396647", "0.6380118", "0.6223235", "0.604865", "0.594917", "0.5902112", "0.58492875", "0.5836222", ...
0.7803887
1
gets the uuid of the device
public String uuid(){ String device_unique_id = Secure.getString(activity.getContentResolver(), Secure.ANDROID_ID); return device_unique_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getDeviceUUID(){\n BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();\n String uuid = adapter.getAddress();\n return uuid;\n }", "public UUID getDeviceUuid() {\n return uuid;\n }", "UUID getDeviceId();", "java.lang.String getUUID();", "St...
[ "0.8390107", "0.80891335", "0.7987553", "0.7914252", "0.7897692", "0.7587922", "0.7516176", "0.7469434", "0.74139416", "0.74139416", "0.74047804", "0.7402653", "0.73828584", "0.73828584", "0.73828584", "0.73669416", "0.73669416", "0.73669416", "0.73669416", "0.73648065", "0.7...
0.8040654
2
gets the device current location
public S<T> gps(){ gps = new GPSTracker(activity); // Check if GPS enabled if(gps.canGetLocation()) { double latitude = gps.getLatitude(); double longitude = gps.getLongitude(); // \n is for new line Toast.makeText(activity, "Your...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Location getCurrentLocation();", "@SuppressWarnings(\"unused\")\n Location getCurrentLocation();", "public String getCurrentLocation() {\n return currentLocation;\n }", "private void getDeviceLocation(){\n mFusedLocationProviderClient = LocationServices.getFusedLocationProvider...
[ "0.8443857", "0.82445425", "0.81527126", "0.8073036", "0.7912795", "0.7904184", "0.7898246", "0.7889197", "0.78827566", "0.78231585", "0.7797042", "0.77909327", "0.77720803", "0.77497834", "0.77449983", "0.77367145", "0.7687654", "0.76718634", "0.76660526", "0.76504385", "0.7...
0.0
-1
calls a phone number
public S<T> call(String number){ Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:"+number)); activity.startActivity(callIntent); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void modifyCallFunc(String number) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + number));\n startActivity(intent);\n }", "private void MakeCall() {\n String number = content_txt.getText().toString();\n if (number.trim().le...
[ "0.75522166", "0.7540618", "0.75180054", "0.74408364", "0.73005694", "0.727056", "0.7224948", "0.72094536", "0.7189703", "0.7176292", "0.716873", "0.71670145", "0.71440256", "0.71328515", "0.7128965", "0.7116939", "0.710489", "0.7093095", "0.7092473", "0.7063048", "0.70572245...
0.74806774
3
make the device vibrate
public S<T> vibrate(int duration) { Vibrator vibs = (Vibrator) activity.getSystemService(Context.VIBRATOR_SERVICE); vibs.vibrate(duration); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void vibrate() {\n this.sexyVibrator.vibrate(400);\n }", "private void vibrate() {\r\n Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);\r\n vibrator.vibrate(300); //vibrates for 300 milliseconds.\r\n }", "private void VibrateButton(){\n\t\t\n\t\tvbr...
[ "0.8462373", "0.8291353", "0.80505306", "0.80357486", "0.8020023", "0.7936694", "0.7877772", "0.76971334", "0.75369114", "0.73947364", "0.7337693", "0.7200725", "0.7082359", "0.70257884", "0.69993997", "0.69628245", "0.68547213", "0.67401177", "0.6583718", "0.6556827", "0.649...
0.6108776
29
Download a file have to add service in the manifest service android:name="com.southapps.squery.utility.DownloadService"
@SuppressLint("NewApi") public S<T> download(String url){ // declare the dialog as a member field of your activity String fileName = url.substring( url.lastIndexOf('/')+1, url.length() ); //if(!service){ // instantiate it within the onCreate method mProgressDialog = new Progre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogr...
[ "0.7311523", "0.726238", "0.6924566", "0.6801336", "0.6768828", "0.6737359", "0.6733726", "0.6645669", "0.65743315", "0.6530675", "0.65156174", "0.649403", "0.64667225", "0.644755", "0.64450383", "0.63161254", "0.6313463", "0.6260931", "0.6253572", "0.62369657", "0.62198585",...
0.7365813
0
To find out if it's a tablet of a phone
public boolean isTablet() { TelephonyManager telephony = (TelephonyManager) activity.getSystemService(Context.TELEPHONY_SERVICE); int type = telephony.getPhoneType(); if (type == TelephonyManager.PHONE_TYPE_NONE) { return true;} return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isTablet();", "public static boolean isTablet() {\n return TeamUp.getAppContext().getResources().getBoolean(R.bool.is_tablet);\n }", "public static boolean isTablet() {\r\n\t\treturn isTablet;\r\n\t}", "public static boolean isTablet(Context context) {\n return (context.getRes...
[ "0.85538936", "0.79335177", "0.7840076", "0.76141244", "0.7613135", "0.7338175", "0.69245994", "0.66864485", "0.6669295", "0.66462827", "0.6617371", "0.6606911", "0.6606911", "0.6606911", "0.6606911", "0.6606911", "0.65014446", "0.63762534", "0.6320131", "0.6187226", "0.61751...
0.85091114
1
list of events: click,touchdown,touchup,back,move,longclick
@SuppressLint("DefaultLocale") public S<T> on(String event,String function){ event = event.trim(); event = event.toLowerCase(); final String fun = function; if(event.equals("click")){ click(function); } if(event.equals("touchdown")){ ((View)t).setOnTouchListener(new O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void touchEvent(MotionEvent event);", "public interface TouchHandler extends View.OnTouchListener {\n public boolean isTouchDown(int pointer);\n public int getTouchX(int pointer);\n public int getTouchY(int pointer);\n public List<Input.TouchEvent> getTouchEvents();\n}", "@Override\n\t\t\tpublic bo...
[ "0.66716236", "0.66091937", "0.64373344", "0.64282346", "0.6421867", "0.6420613", "0.6372859", "0.63725084", "0.63417107", "0.62848616", "0.62848616", "0.6283342", "0.62750167", "0.6268721", "0.6263723", "0.6259176", "0.6218992", "0.62109965", "0.6210752", "0.6210752", "0.618...
0.0
-1
Sets on touch listener to a view
public S<T> touch(OnTouchListener listener){ ((View)t).setOnTouchListener(listener); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void setOnTouchListener(OnTouchListener l) {\n super.setOnTouchListener(l);\r\n this.l = l;\r\n }", "void onViewTap(View view, float x, float y);", "private void hook(View view) {\n try {\n Class classview = Class.forName(\"android.view.View\");\n ...
[ "0.7628933", "0.7090993", "0.682533", "0.6648884", "0.6602761", "0.6583508", "0.65805185", "0.6563567", "0.6484068", "0.64578795", "0.6454108", "0.6431246", "0.64262813", "0.64038926", "0.64038926", "0.6402335", "0.63689107", "0.6351007", "0.6341623", "0.63265556", "0.6321831...
0.6895532
2
END OF ADDED BY MYSELF
public Integer getRentId() { return rentId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean func_70814_o() { return true; }", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void method_4270() {}", "private void m50366E() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private void kk12() {\n\n\...
[ "0.6165795", "0.6154642", "0.61374", "0.6131357", "0.6074221", "0.60687447", "0.60493934", "0.6037636", "0.6037204", "0.601763", "0.59955287", "0.59726816", "0.59315175", "0.59063077", "0.5885342", "0.58811176", "0.585914", "0.5813362", "0.58094615", "0.5807784", "0.5802745",...
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Rent)) { return false; } Rent other = (Rent) object; if ((this.rentId == null && other.rentId != null) || (this.rentId != null && !this.rentId.equals(other.rentId))) { return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896072", "0.6839122", "0.6705258", "0.66412854", "0.66412854", "0.65923095", "0.65785074", "0.65785074", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.65752834", "0.6561566", "0.6561566", "0.6545169", "0.6525343", "0.65168375", "0.64885366", "0....
0.0
-1
TODO Autogenerated method stub
@Override public Map<String, Object> apiProcess(ParamContextHolder paramContextHolder, CApiBase arg1) throws ApiProcessException { Map<String, Object> map = new HashMap<>(); String id = paramContextHolder.getReq().getParameter("id"); if(!cosProcess.checkFileExist(folder+id+"_zh.mp3")){ NNovelContent content =...
{ "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
doGet method for MyCine lander.jsp redirect
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { EmailMessage msg = new EmailMessage(); msg.sendPageAccesser(request.getRemoteAddr()); getServletContext().getRequestDispatcher("/lander.jsp").forward(request, response);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n\t\tresponse.sendRedirect(\"index.jsp\");\n\t\t//seguridad antihackers\n\t}", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ...
[ "0.7293525", "0.7113184", "0.70022213", "0.6956663", "0.6901544", "0.68391484", "0.68377465", "0.682058", "0.67470783", "0.67349535", "0.6713103", "0.6711735", "0.6703569", "0.6693849", "0.6672759", "0.6656287", "0.6642871", "0.6596304", "0.6593717", "0.65925854", "0.6590691"...
0.6587136
22
To set up the animal class copied from gameLv1
@Before public void setUp() throws Exception { coordinateArea Area1 = new coordinateArea(0,150,600,413); waterArea waterDeath = new waterArea(Area1); coordinateArea Border = new coordinateArea(0,100,600,734); animal = new Animal("file:src/p4_group_8_repo/Assets/froggerUp.png",waterDe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void constructor() {\n setEdibleAnimals();\n }", "public Animal(String name) {\r\n this.animalName = name;\r\n }", "AnimalSpecific(String category,String name,String type){\n\t\tsuper(category);\n\t\tanimalName = name;\n\t\tanimalType = type;\n\t}", "public static void main(String[] ...
[ "0.70858425", "0.70607996", "0.68264097", "0.67472905", "0.6702912", "0.66869295", "0.6628029", "0.6616061", "0.65462244", "0.6445115", "0.64345753", "0.6409171", "0.6375637", "0.63714266", "0.63605", "0.63230985", "0.6260645", "0.6253831", "0.6230066", "0.62140745", "0.62037...
0.56436205
81
To test if the game have ended. Which is the function getStop(). Will be false as all the end is not done and animal is new.
@Test public void getStopTest() { boolean expectedValue = animal.getStop(); Assert.assertEquals(expectedValue,false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean end() {\r\n\t\tif (this.gameOver == true)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "boolean endOfGame() {\n return false;\n }", "boolean isStop();", "boolean shouldStop();", "public boolean gameEnd(){\r\n return !hasMovements(model.getCurrentPlayer().getColor());\r\n ...
[ "0.75873744", "0.7446319", "0.7410915", "0.74003005", "0.73301244", "0.7241401", "0.7233862", "0.7157569", "0.71485317", "0.70840675", "0.708018", "0.7056856", "0.70235896", "0.6976336", "0.6959214", "0.6944475", "0.6937469", "0.6925729", "0.6897346", "0.6896828", "0.687153",...
0.0
-1
To test the function to get amount of points Which is the function getPoints(). Will be zero as animal is newly generated and not played therefore the point is 0.
@Test public void getPointsTest() { int expextedValue = animal.getPoints(); Assert.assertEquals(expextedValue,0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPoints();", "int getPoints();", "public abstract int getPoints();", "int getPointsCount();", "public int GetNPoints();", "public int getPoints() { return points; }", "int getNeedPoints();", "public int getPoints() {\n return points;\n }", "public int getPoints() {\n r...
[ "0.7914272", "0.7844073", "0.7808251", "0.7784872", "0.77010834", "0.7675735", "0.763699", "0.7423918", "0.7423918", "0.7423918", "0.7423918", "0.74164945", "0.74164945", "0.74164945", "0.74038464", "0.74038464", "0.7385608", "0.735103", "0.7348664", "0.734675", "0.7274592", ...
0.836912
0
To test the function to check is the points has been changed. Which is the function changeScore(). Will be false as there won't be any change in score
@Test public void changeScoreTest() { //will be false as animal is not moving boolean expectedValue = animal.changeScore(); Assert.assertEquals(expectedValue,false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void checkScore() {\n\t\t\n\t}", "@Test\n public void addScoreTest() {\n assertTrue(enemyGameBoard.getScore() == 0); //Check if initial value of points = 0\n\n enemyGameBoard.addScore(false, false); //Did not hit a ship\n assertTrue(enemyGameBoard.getScore() == 0);\n\n...
[ "0.7105843", "0.7011639", "0.6848622", "0.6762974", "0.6633215", "0.65741193", "0.65632045", "0.6523611", "0.64883286", "0.6467339", "0.6454287", "0.64352536", "0.6383888", "0.6381088", "0.6380092", "0.6366595", "0.63559926", "0.6350433", "0.6343407", "0.63038206", "0.6287348...
0.71703666
0
TODO Autogenerated method stub
@Override public void seCourse() { String coursename = ""; int teacherid = 0; String inputStr = ""; System.out.println("是否需要输入教师编号关键词(y/n):"); inputStr = input.next(); if(inputStr.equals("y")) { System.out.println("请输入教师编号关键词:"); teacherid = inp...
{ "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 showlist() { int studentid = 0; System.out.println("请输入学生学号:"); studentid = input.nextInt(); StudentDAO dao = new StudentDAOimpl(); List<Course> list = dao.showlist(studentid); System.out.println("课程编号\t课程名称\t教师编号\t课程课时"); for(Course ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void saveCourse(int studentid) { int courseid =0; System.out.println("输入课程编号:"); courseid = input.nextInt(); StudentDAO dao = new StudentDAOimpl(); int a = dao.saveCourse(studentid,courseid); if (a!=0){ System.out.println("选课成功"); }else System.out.println("选课失败"); ...
{ "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
Get id of Armor
public int getArmorId() { return super.getItemId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "...
[ "0.72846943", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", "0.7229035", ...
0.0
-1
Set id of Armor
public void setArmorId(int armorId) { super.setItemId(armorId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "void setId(String id);", "void setId(String id);", "void setId(String id);", "private void setId(int value) {\n...
[ "0.74517447", "0.74517447", "0.72582954", "0.72530323", "0.72530323", "0.72530323", "0.7234121", "0.7207583", "0.72036386", "0.7201939", "0.71834254", "0.71800816", "0.71692705", "0.7166139", "0.71652496", "0.7160132", "0.7158673", "0.71434355", "0.71434355", "0.7132283", "0....
0.0
-1
Get price of Armor
public int getArmorPrice() { return super.getItemPrice(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getPrice();", "double getPrice();", "double getPrice();", "public double getPrice();", "public Double getPrice();", "public ArmCurrency getPrice() {\n return (getPrice(true));\n }", "@Override\n\tpublic double getPrice() {\n\t\treturn auto.getPrice() + AC_ADDITIONAL_CHARGE;\n\t}", "abs...
[ "0.7271011", "0.7271011", "0.7271011", "0.7220178", "0.71861845", "0.71626997", "0.70236", "0.6997254", "0.69970775", "0.6990683", "0.6931849", "0.69063294", "0.6893832", "0.6893832", "0.6893832", "0.6893832", "0.68929577", "0.68929577", "0.68929577", "0.68929577", "0.6892957...
0.67841107
47
Set price of Armor
public void setArmorPrice(int armorPrice) { super.setItemPrice(armorPrice); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrice(Double price);", "public void setPrice(double price){this.price=price;}", "@Override\r\n\tpublic void setPrice(double p) {\n\t\tprice = p;\r\n\t}", "public void setPrice(double p)\r\n\t{\r\n\t\tprice = p;\r\n\t}", "public void setPotatoesPrice(double p);", "public void setPrice(doubl...
[ "0.7444499", "0.72968787", "0.72816783", "0.7270771", "0.7217388", "0.7216903", "0.71988416", "0.7197428", "0.71906483", "0.71435505", "0.71435505", "0.71435505", "0.7131915", "0.7131915", "0.7131915", "0.7131915", "0.7131915", "0.7131915", "0.7131915", "0.71258074", "0.71258...
0.70664024
23
Get picture of Armor
public String getArmorPicture() { return super.getItemPicture(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getImage();", "String getImage();", "public String getStaticPicture();", "public String getImage() { return image; }", "public ImageIcon getCardPicture()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************** Start getCardPicture Method *****************/\n\n // Return...
[ "0.7006872", "0.69566274", "0.6437035", "0.64069575", "0.6403399", "0.6400267", "0.6349686", "0.6341669", "0.6295135", "0.62860686", "0.6262282", "0.6231559", "0.6162366", "0.6148702", "0.6148702", "0.61394715", "0.6134864", "0.6124783", "0.61076456", "0.6103971", "0.6098744"...
0.63653845
6
Set picture of Armor
public void setArmorPicture(String armorPicture) { super.setItemPicture(armorPicture); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setPic() {\n }", "public void changeImage() {\r\n this.image = ColourDoor.image2;\r\n }", "public Mario(){\n setImage(\"06.png\");\n \n }", "public void setImg(){\n if(PicSingleton.getInstance().getPicToShape() != null){\n\n mResultImg.setImageDrawable...
[ "0.71342415", "0.69023246", "0.68683857", "0.6729306", "0.66954553", "0.6396671", "0.623866", "0.62164956", "0.62057424", "0.62050664", "0.6200871", "0.61795723", "0.61660445", "0.6161066", "0.614324", "0.61243474", "0.6123203", "0.6112965", "0.6092683", "0.60678107", "0.6059...
0.6342314
6
Created by anildeshpande on 8/9/17.
public interface IRepoListPresenter { public void loadCommits(String userName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", ...
[ "0.60240567", "0.5850004", "0.579971", "0.57414746", "0.57261163", "0.56905013", "0.56905013", "0.5679446", "0.5674973", "0.56542426", "0.56146926", "0.5605606", "0.5575253", "0.5567581", "0.55675167", "0.55608046", "0.5551842", "0.5551842", "0.5551842", "0.5551842", "0.55518...
0.0
-1
/ gets the referee to start the game. sets opponents, display board, and gets xPlayer to start the game
public void runTheGame() { xPlayer.setOpponent(oPlayer); oPlayer.setOpponent(xPlayer); board.display(); xPlayer.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startGame(){\n\n\t\tGame.updatePlayer(players.get(curr));\n\t\tGameBoard gb = new GameBoard();\n\t\tthis.registerObserver(gb);\n\t\tgb.update(this, board);\n\n\t}", "public void startGame() {\n\n // Initialize both players\n players[0] = new Player(\"Paras\", true);\n players[1] ...
[ "0.70541966", "0.67065257", "0.6638259", "0.65983635", "0.652165", "0.6449101", "0.6445977", "0.6431626", "0.64254844", "0.6399133", "0.6393179", "0.63634974", "0.6362612", "0.63342184", "0.6329425", "0.63146263", "0.62718207", "0.6252586", "0.6250689", "0.6199203", "0.619674...
0.6559888
4
/ sets this.board to the board passed
public void setBoard(Board board) { this.board = board; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBoard(Board board){this.board = board;}", "@Override\r\n\tpublic void setBoard(Board board) {\n\t\t\r\n\t}", "public void setBoard(Board board) {\n this.board = board;\n }", "public void setBoard(Board board) {\n this.board = board;\n }", "void setBoard(Board board);", ...
[ "0.83329797", "0.8301852", "0.8264161", "0.8264161", "0.8208187", "0.7892779", "0.7889198", "0.78577864", "0.77623796", "0.77619076", "0.77462757", "0.76521456", "0.7499788", "0.7282316", "0.7276258", "0.72711414", "0.7252888", "0.7134118", "0.713302", "0.70803344", "0.707364...
0.7999255
5
/ sets the xPlayer so the referee knows
public void setxPlayer(Player xPlayer) { this.xPlayer = xPlayer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPlayerXRelative(int x) {\n }", "private void setPlayer() {\n player = Player.getInstance();\n }", "private void setPlayer()\t{\n\t\tgrid.setGameObject(spy, Spy.INITIAL_X, Spy.INITIAL_Y);\n\t}", "@Override\n\tpublic void setPlayer(Player player) {\n\n\t}", "public void setPlayer(Player ...
[ "0.7429172", "0.7364329", "0.7174041", "0.6923559", "0.6856301", "0.67711174", "0.6761122", "0.6740994", "0.66882426", "0.6640956", "0.66041255", "0.6559757", "0.6556365", "0.6537967", "0.64887726", "0.6474641", "0.64668596", "0.63938993", "0.6391851", "0.6382503", "0.637582"...
0.8054472
0
/ sets the oPlayer so the referee knows
public void setoPlayer(Player oPlayer) { this.oPlayer = oPlayer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setPlayer() {\n player = Player.getInstance();\n }", "public void setPlayer(Player player) {\r\n this.player = player;\r\n }", "@Override\n\tpublic void setPlayer(Player player) {\n\n\t}", "public void setPlayer(Player myPlayer){\n battlePlayer=myPlayer;\n }", "pu...
[ "0.8078604", "0.79195124", "0.79052585", "0.78363377", "0.7817086", "0.7784036", "0.77835226", "0.7762867", "0.7711522", "0.7701585", "0.75794023", "0.75446737", "0.7496453", "0.7452831", "0.745147", "0.7439983", "0.7399991", "0.73577785", "0.73288256", "0.72985923", "0.72477...
0.8131266
0
/ Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution.
public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); int k = in.nextInt(); ArrayList<Integer> list = new ArrayList<>(); for(int arr_i=0; arr_i < n; arr_i++){ int integer = in.nextInt(); list.add(new Integer(in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSolution s = new Solution();\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\t//Scanner in = new Scanner(System.in);\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in...
[ "0.75280106", "0.7303422", "0.72608393", "0.72363067", "0.7178064", "0.71745384", "0.7022264", "0.7022264", "0.68939406", "0.68699366", "0.6857948", "0.68238825", "0.68213546", "0.6809923", "0.6807801", "0.6805596", "0.6782698", "0.6770123", "0.6755418", "0.6753114", "0.67508...
0.0
-1
The method that loads json from a file and creates an object with books
public static Books readJSON(){ Gson gson = new GsonBuilder().create(); Books books = new Books(); try { books = gson.fromJson(new JsonReader(new FileReader("books.json")), Books.class); } catch (IOException e){ e.printStackTrace(); } return books;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parseJson() {\n\n try {\n JSONParser parser = new JSONParser();\n jsonReader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(\"/resources/bangor-library.json\")));\n JSONObject jsonObj = (JSONObject) parser.parse(jsonReader);\n ...
[ "0.73931795", "0.7242825", "0.6720335", "0.67080516", "0.667377", "0.6661529", "0.6586225", "0.6530576", "0.6440868", "0.64240795", "0.6414183", "0.63343", "0.62378854", "0.6209467", "0.61370146", "0.6102912", "0.6085585", "0.6038501", "0.5963284", "0.5887172", "0.5873986", ...
0.81212467
0
/ onCreate method for activity
@Override protected void onCreate(Bundle savedInstanceState) { SharedPreferences prefs = getSharedPreferences("textMeSP", MODE_PRIVATE); String isDark = prefs.getString("isDark", null); if (isDark != null) { setTheme (R.style.ActivityTheme_Primary_Base_Dark); }else{ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onCreate() {\n }", "public void onCreate();", "public void onCreate();", "public void onCreate() {\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\n protected void onCre...
[ "0.8242845", "0.8023422", "0.8023422", "0.80023026", "0.7953033", "0.7864056", "0.781293", "0.7798698", "0.779142", "0.7789302", "0.77598083", "0.77587634", "0.77587634", "0.77523327", "0.7748646", "0.7742212", "0.77288413", "0.7727844", "0.7727844", "0.76985157", "0.76985157...
0.0
-1
watch the text / method watches before text changes
@Override public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void ensureTextChangesWork() {\n onView(withId(R.id.inputField))\r\n .perform(typeText(\"HELLO\"), closeSoftKeyboard());\r\n reportHelper.label(\"myTestStepLabel_1_1\");\r\n onView(withId(R.id.changeText)).perform(click());\r\n\r\n // Check that the te...
[ "0.63222873", "0.6265376", "0.625701", "0.61361176", "0.61357427", "0.60480505", "0.6037841", "0.6010572", "0.60068154", "0.59348", "0.5934284", "0.5918711", "0.5900948", "0.5900948", "0.5876832", "0.58589494", "0.584464", "0.5830397", "0.58179283", "0.58083314", "0.579062", ...
0.0
-1
/ method watches when text changes
@Override public void onTextChanged(CharSequence s, int start, int before, int count) { search(searchIput.getText().toString()); // search user }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void notifyAfterTextChanged() {\n removeMessages(ON_TEXT_CHANGED);\n sendEmptyMessageDelayed(ON_TEXT_CHANGED, DELAY_IN_MILLISECOND);\n }", "void textChanged() {\n\t\ttextAreaChanged = true;\n\t\tfinder.clear();\n\t\tfindIndex = 0;\n\t\ttextEditor.getHighlighter()....
[ "0.6877372", "0.68362296", "0.6746279", "0.67042524", "0.6695143", "0.6670408", "0.6663861", "0.6648871", "0.6638966", "0.66090673", "0.66090673", "0.65933925", "0.65512323", "0.6550163", "0.65143025", "0.6456257", "0.64529926", "0.6413548", "0.63652813", "0.6363735", "0.6354...
0.0
-1
/ method watches after text changes
@Override public void afterTextChanged(Editable s) { if (s.length() != 0) { search(searchIput.getText().toString()); // search user } // if input is not empty }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void notifyAfterTextChanged() {\n removeMessages(ON_TEXT_CHANGED);\n sendEmptyMessageDelayed(ON_TEXT_CHANGED, DELAY_IN_MILLISECOND);\n }", "void textChanged() {\n\t\ttextAreaChanged = true;\n\t\tfinder.clear();\n\t\tfindIndex = 0;\n\t\ttextEditor.getHighlighter()....
[ "0.7174849", "0.69972026", "0.68251014", "0.66488194", "0.6633872", "0.6632813", "0.66125697", "0.6582014", "0.6552378", "0.6538328", "0.6493693", "0.6493693", "0.6440871", "0.6419171", "0.64089185", "0.63771564", "0.63690233", "0.6354065", "0.6353269", "0.6318045", "0.629443...
0.0
-1
listen for clicking button
public void onClick(View v) { // launch when button is clicked finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buttonClicked();", "public void click() {\n\t\tif(this.buttonListener != null) {\n\t\t\tthis.buttonListener.onClicked();\n\t\t}\n\t}", "private void button1MouseClicked(MouseEvent e) {\n\t}", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "private void button1M...
[ "0.8089818", "0.7755734", "0.75644445", "0.75306475", "0.7485124", "0.733052", "0.7317084", "0.7232442", "0.7209304", "0.72030187", "0.71855944", "0.71286297", "0.7107479", "0.7052848", "0.7043173", "0.70397115", "0.7022944", "0.70166105", "0.7015354", "0.7014152", "0.699632"...
0.0
-1
/ method to search user
public void search(String searchQuery) { if (!searchQuery.trim().equals("")) { DBref.orderByChild("username").startAt(searchQuery).endAt(searchQuery + "\uf8ff").addValueEventListener(userEventListener); } // if searching input is not empty }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<User> searchUser(String searchValue);", "public User search_userinfo(String user_name);", "public List<User> listSearch(String search);", "public int search_userid(String user_name);", "Data<User> getUserSearch(String user);", "public static void search() {\n int userSelected = selectF...
[ "0.83429396", "0.80791587", "0.7853299", "0.784969", "0.76258653", "0.76056075", "0.7555751", "0.7405068", "0.737043", "0.7354143", "0.73303556", "0.7330094", "0.73290247", "0.7295815", "0.7275104", "0.7250783", "0.72438407", "0.7208224", "0.71374124", "0.71204555", "0.706024...
0.6513466
61
listen for clicking users prompted after search / method launches when item is clicked
@Override public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) { // add friend's data into intent Intent Message = new Intent(getBaseContext(), MessagingPage.class); Message.putExtra("friend_name", friends.get(i).getUsername()); Message.pu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void issuedClick(String item);", "private void addSearchBtnClickHandler() {\n view.getSearchBtn().addClickHandler(new ClickHandler() {\n @Override\n public void onClick(ClickEvent event) {\n executeSearch();\n }\n });\n }", "@Override\r\n\tpublic...
[ "0.67765105", "0.6584482", "0.65479803", "0.6518026", "0.64773947", "0.6438289", "0.6412657", "0.6388065", "0.63738406", "0.63725495", "0.6371411", "0.63591605", "0.6351913", "0.63248473", "0.6294312", "0.6289946", "0.628855", "0.6286381", "0.6282801", "0.6276742", "0.6269544...
0.0
-1
listen for value changing / method launches when data changes
@Override public void onDataChange(DataSnapshot dataSnapshot) { ArrayList<User> users = new ArrayList<User>(); for (DataSnapshot postSnapshot : dataSnapshot.getChildren()) { User user = postSnapshot.getValue(User.class); user.setId(postSnapshot.getKey()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onDataChanged();", "public void onDataChanged(){}", "public void onDataChanged();", "void valueChanged(CalcModel model);", "void valueChanged(CalcModel model);", "@Override\n\tpublic void valueChange(ValueChangeEvent event) {\n\t\t\n\t}", "void valueChanged(T oldValue, T newValue);", "public voi...
[ "0.74673027", "0.7459996", "0.74246395", "0.733503", "0.733503", "0.72071445", "0.70482266", "0.70075184", "0.6986905", "0.6929627", "0.6929627", "0.6904236", "0.69030344", "0.6764711", "0.676122", "0.67387515", "0.67212784", "0.66950107", "0.6682322", "0.66163427", "0.660062...
0.0
-1
/ method lauches when event cancelled
@Override public void onCancelled(DatabaseError error) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void eventCancelled() {\n\t\tstatus=EventCancelled;\n\t}", "protected abstract void onCancel();", "void onCancel();", "public void onCancel();", "public void onCancelled();", "@Override\n public void cancel() {\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t...
[ "0.79746974", "0.78611505", "0.7755085", "0.7711213", "0.76130253", "0.7602512", "0.75833213", "0.7568093", "0.7556781", "0.7552049", "0.75356436", "0.75333756", "0.7523885", "0.7523885", "0.7523885", "0.7523128", "0.7522515", "0.752079", "0.75010455", "0.7499075", "0.7480838...
0.0
-1
Method finds Sort dropdown, expands it and clicks item identified by value passed in as parameter
public void selectSortOrder(String optionValue) { System.out.println("Method 'selectSortOrder' running"); wait = new WebDriverWait(driver,5); sortMenu = driver.findElement(By.xpath(sortMenuXpath)); sortMenu.click(); wait.until(ExpectedConditions.visibilityOfElementLocated(By.id(optionValue))); sortListItem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ClickonSortByFilter(String Text){\r\n\t\tString Data = getValue(Text); \r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\...
[ "0.6665057", "0.6496782", "0.6222668", "0.606957", "0.5813791", "0.58117664", "0.5809524", "0.5802735", "0.57497513", "0.5618689", "0.56020004", "0.55854744", "0.55177015", "0.5500331", "0.549265", "0.5480037", "0.5478687", "0.5459515", "0.5445628", "0.5427914", "0.54099846",...
0.6707382
0
/ Method puts listings elements into a collection. It then iterates through the collection and adds the property name to a collection of strings. Once the string collection is compiled a copy is made of it and the copy is sorted. The two collections are then compared and if they are the same the list is in alphabetical...
public boolean sortByName() { listings = driver.findElements(By.xpath(listingsXpath)); listingsIterator = listings.iterator(); propertyNames = new ArrayList<String>(); listsEqual = false; WebElement propertyNameElement; String propertyName; while(listingsIterator.hasNext()) { listingElement = lis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void triCollection(){\r\n Collections.sort(collection);\r\n }", "public void sortElements(Comparator<TLProperty> comparator);", "public static void main(String[] args) {\n\n List<String> animals = new ArrayList <String>();\n\n animals.add(\"Elephatn\");\n animals.add(\"sna...
[ "0.6073694", "0.5812397", "0.57631063", "0.56514096", "0.5587637", "0.557276", "0.55237174", "0.55148166", "0.54944074", "0.54866445", "0.5470221", "0.54555607", "0.5434245", "0.5431267", "0.53837085", "0.537984", "0.5379352", "0.5365581", "0.5353991", "0.53147465", "0.531042...
0.64598095
0
/ Method puts listings elements into a collection. It then iterates through the collection and for each listing it creates a collection of the prices in the listing, which may be dorm and/or privates. The price for each listing is put into another collection. If there is more than one price in a listing the lowest pric...
public boolean sortByPrice() { listings = driver.findElements(By.xpath(listingsXpath)); listingsIterator = listings.iterator(); prices = new ArrayList<BigDecimal>(); listsEqual = false; while(listingsIterator.hasNext()) { listingElement = listingsIterator.next(); listingPrices = new ArrayList<Bi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Listing> findAllSortedByPrice() {\n\t\treturn theListingRepo.findAll(Sort.by(Direction.DESC, \"price\"));\n\t}", "public static void main(String[] args) {\n List<Double> priceList = new ArrayList<>();\n priceList.add(9.99);\n priceList.add(12.99);\n priceList....
[ "0.56480163", "0.56260735", "0.5543059", "0.5451158", "0.5399597", "0.52988446", "0.5208655", "0.5161028", "0.5153475", "0.5141057", "0.5006064", "0.49492434", "0.49425417", "0.49413222", "0.49281886", "0.48918596", "0.4889791", "0.487845", "0.48659155", "0.48410255", "0.4825...
0.6645982
0
Constructor with 2 fields
public BankAccount(double checkingBalance, double savingsBalance) { this.checkingBalance = checkingBalance; this.savingsBalance = savingsBalance; accountsCount++; totalAmount += checkingBalance; totalAmount += savingsBalance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public Person2(String fname, String lname) {\n this.fname = fname;\n this.lname = lname;\n }", "public Identity()\n {\n super( Fields.ARGS );\n }", "public Constructor(){\n\t\t\n\t}", ...
[ "0.6819577", "0.676978", "0.6550888", "0.6492179", "0.64911926", "0.64687896", "0.6424892", "0.63676035", "0.6321274", "0.6306258", "0.62764007", "0.6263857", "0.6246718", "0.623303", "0.6194848", "0.61883974", "0.6184462", "0.61703736", "0.61391896", "0.6122417", "0.61190647...
0.0
-1
deposit money to an account
public void deposit(String accountType, double amount) { if(accountType.equals("savings")) { this.savingsBalance += amount; totalAmount += amount; } else if(accountType.equals("checking")) { this.checkingBalance += amount; totalAmount += amount; } else { System.out.println("Deposit fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }", "void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}", "@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}", "public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSI...
[ "0.8263843", "0.8040177", "0.7792722", "0.7696474", "0.7608607", "0.75617516", "0.75510544", "0.75450367", "0.7534802", "0.748862", "0.7481107", "0.7448446", "0.7411524", "0.7368429", "0.7336533", "0.7327316", "0.7325861", "0.7316863", "0.72666407", "0.7255865", "0.72536325",...
0.0
-1
withdraw money from checking account
public void withdrawFromChecking(double amount) { if(amount > this.getSavingsBalance()) { System.out.println("Unsufficient funds"); } else { this.checkingBalance -= amount; totalAmount -= amount; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void withdrawMoney(double amount, boolean checkingAccount) {\n if (checkingAccount && amount <= checkingBalance) {\n checkingBalance -= amount;\n totalBalance -= amount;\n } else if (!checkingAccount && amount <= savingsBalance) {\n savingsBalance -= amount;\n ...
[ "0.7590173", "0.7279589", "0.72780865", "0.7246358", "0.7237383", "0.7190305", "0.7188343", "0.715852", "0.7135473", "0.7132526", "0.7127173", "0.7114487", "0.7103057", "0.7102659", "0.709493", "0.7089917", "0.70839363", "0.7078691", "0.7066617", "0.70516604", "0.70466244", ...
0.72700757
3
The frame we manipulate default constructor
public Mat2Image() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private Frame3() {\n\t}", "Frame createFrame();", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "FRAME createFR...
[ "0.7758814", "0.7536468", "0.750878", "0.73905444", "0.73827887", "0.7304347", "0.7235452", "0.7227313", "0.71740246", "0.71740246", "0.716935", "0.7121867", "0.71171343", "0.7115685", "0.710833", "0.70981765", "0.70748925", "0.70426863", "0.70393044", "0.70072645", "0.698869...
0.0
-1
get color space of image, for conversion to mat
public void getSpace(Mat mat) { int type = 0; if (mat.channels() == 1) { type = BufferedImage.TYPE_BYTE_GRAY; } else if (mat.channels() == 3) { type = BufferedImage.TYPE_3BYTE_BGR; } this.mat = mat; int w = mat.cols(); int h = mat.rows(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ColorSpace getImageColorSpace() {\n return this.image.getColorSpace();\n }", "public native PixelPacket[] getColormap() throws MagickException;", "public native int getColorspace() throws MagickException;", "protected abstract ColorSpace getColorSpace();", "public static Color[][] getIm...
[ "0.72883844", "0.68518764", "0.6780608", "0.67418027", "0.672192", "0.62538284", "0.6212731", "0.6120523", "0.611928", "0.6105473", "0.6092443", "0.60914946", "0.60761267", "0.60568833", "0.60379595", "0.5919536", "0.5899321", "0.58551383", "0.5851213", "0.5805033", "0.579309...
0.60554534
14
A set of different image manipulations Reverses Red and Blue color values
BufferedImage getImage(Mat mat){ Imgproc.cvtColor(mat,mat,Imgproc.COLOR_RGB2BGR); //Hue Saturation Lighting to Blue Green Red values Imgproc.cvtColor(mat,mat,Imgproc.COLOR_HLS2BGR); //Re-reverses Blue and Red color values Imgproc.cvtColor(mat,mat,Imgproc.COLOR_BGR2RGB); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void decomposeColors(int[][] array,int[][] red,int[][] green,int[][] blue){\n\t\tfor(int i=0;i<array.length;i++){\n\t\t\tfor(int j=0;j<array[0].length;j++){\n\t\t\t\tint pixel = array[i][j];\n\t\t\t\tred[i][j] = GImage.getRed(pixel);\n\t\t\t\tgreen[i][j] = GImage.getGreen(pixel);\n\t\t\t\tblue[i][j] = GIma...
[ "0.68012184", "0.6705084", "0.66269517", "0.6582671", "0.6570677", "0.64876986", "0.6216478", "0.62123513", "0.61879694", "0.6135395", "0.6103331", "0.61003834", "0.59880954", "0.59808826", "0.5978585", "0.5978585", "0.59556645", "0.5953169", "0.59412694", "0.5934661", "0.593...
0.0
-1
TODO Autogenerated method stub
@Override public void reportUp(MultipartFile file) { ProjectRrepUP projectRrepUp = new ProjectRrepUP(); List<Project> lists = projectRrepUp.check(file); if (lists != null) { for (Project project : lists) { projRrep.save(project); } } }
{ "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 Map<String, Object> serch(Pageable pageble, Map<String, String> map) { if (pageble == null) { return null; } Map<String, Object> resultMap = new HashMap<String, Object>(); Page<Project> page = projRrep.serch(pageble, map); if (page != null) { List<Project> list = page.getContent();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1