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 |
|---|---|---|---|---|---|---|
Post a command in handler thread. | public static void post(Runnable r) {
if (handler != null)
handler.post(r);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void post(java.lang.Runnable command) {\n mHandler.post(command);\n }",
"void post(java.lang.Runnable command);",
"@Override\n public void post(java.lang.Runnable command) {\n mExecutor.execute(command);\n }",
"private void postMessageToPhi... | [
"0.81713426",
"0.79284114",
"0.75526446",
"0.6447005",
"0.63745826",
"0.63688165",
"0.63688165",
"0.63688165",
"0.63688165",
"0.63688165",
"0.63688165",
"0.6202282",
"0.6171766",
"0.6028666",
"0.5986973",
"0.59721375",
"0.595226",
"0.59508014",
"0.59472495",
"0.59390223",
"0.... | 0.6684529 | 3 |
Check whether it's main thread. | public static boolean isMainThread() {
if (!initialized)
return true; // always return true if the app is not initialized
// properly
if (thread_ref != null)
return thread_ref.get() == Thread.currentThread();
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean isMainThread();",
"public static boolean isRootThread()\n {\n if(SwingUtilities.isEventDispatchThread())\n return true;\n return isRootThread(Thread.currentThread());\n }",
"private static boolean m61442b() {\n if (Looper.getMainLoope... | [
"0.79985",
"0.7495888",
"0.7180751",
"0.6879446",
"0.6676203",
"0.66576195",
"0.66343814",
"0.6585641",
"0.6499353",
"0.644356",
"0.6418125",
"0.6416327",
"0.63973",
"0.6394101",
"0.6374344",
"0.62353396",
"0.6216772",
"0.6162499",
"0.61456066",
"0.6138543",
"0.61251867",
"... | 0.8208049 | 0 |
Assert that this is main thread. When it's not, throw a Exception. | public static void assertMainThread() {
if (!isMainThread()) {
e(new Exception(), "UI thread assertion failed");
if (CardConfig.DEV_BUILD)
throw new RuntimeException("UI thread assertion failed!");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testDefaultsToMainThread() throws Exception {\n\n Executor executor = new LooperExecutor();\n final CountDownLatch latch = new CountDownLatch(1);\n executor.execute(new Runnable() {\n @Override\n public void run() {\n assertEquals(\"running on u... | [
"0.70252454",
"0.6856903",
"0.6613355",
"0.6408362",
"0.6338549",
"0.6234165",
"0.6178062",
"0.6147099",
"0.59431314",
"0.5873404",
"0.58524394",
"0.58517045",
"0.5816633",
"0.5751174",
"0.5654816",
"0.564704",
"0.5619966",
"0.5608572",
"0.559789",
"0.5570965",
"0.55699646",
... | 0.80252254 | 0 |
Remove a view from viewgroup. | public static void removeFromSuperView(@CheckForNull Object o) {
if (o == null)
return;
if (o instanceof View) {
View view = (View) o;
final ViewParent parent = view.getParent();
if (parent == null)
return;
if (parent instanceof ViewGroup) {
ViewGroup group = (ViewGroup) parent;
group.removeView(view);
} else
w("the parent of view %s is not a viewgroup: %s", view, parent);
} else if (o instanceof Dialog) {
Dialog dialog = (Dialog) o;
dialog.hide();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeView(IView view)\r\n { this.views.remove(view);\r\n }",
"void removeFromView(View view) {\n Task task = getTask(view);\n if (task == this)\n setTask(view, null);\n mViews.remove(view);\n if (mViews.isEmpty()) {\n can... | [
"0.72050446",
"0.7089615",
"0.62647414",
"0.6195434",
"0.6150546",
"0.60689086",
"0.604222",
"0.59592706",
"0.59192586",
"0.58743846",
"0.58732057",
"0.578575",
"0.5720696",
"0.56907207",
"0.5675817",
"0.5607634",
"0.5539752",
"0.55002946",
"0.5468036",
"0.5460183",
"0.545204... | 0.5840769 | 11 |
Add a view to viewgroup | public static void addView(ViewGroup parent, View view) {
addView(parent, view, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addView(IView view)\r\n { this.views.add(view);\r\n }",
"private void addViews() {\n\t}",
"@Override\r\n\tpublic void addView(View v) {\r\n\t\tview = v;\r\n\t}",
"protected final void addView(final PlainView theView)\r\n {\r\n //\r\n _theViews.addElement(theView);\r\n }",
"public v... | [
"0.72749996",
"0.71311176",
"0.6918978",
"0.6776621",
"0.65837395",
"0.65189147",
"0.6492868",
"0.6409704",
"0.63873357",
"0.6350548",
"0.6281447",
"0.6250115",
"0.6104757",
"0.6102203",
"0.6017949",
"0.60162514",
"0.601249",
"0.5981615",
"0.5974914",
"0.59626406",
"0.5946021... | 0.631446 | 10 |
Add a view to viewgroup. | public static void addView(@CheckForNull ViewGroup parent, @CheckForNull View view, boolean force) {
if (parent == null || view == null)
return;
try {
if (view.getParent() == null)
parent.addView(view);
else if (force) {
if (view.getParent() != parent) {
removeFromSuperView(view);
parent.addView(view);
}
}
} catch (Exception e) {
LogUtils.e(e, "Failed to addView, parent %s, view %s, force %b, layoutParams %s", parent,
view, force, view.getLayoutParams());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addView(IView view)\r\n { this.views.add(view);\r\n }",
"@Override\r\n\tpublic void addView(View v) {\r\n\t\tview = v;\r\n\t}",
"protected final void addView(final PlainView theView)\r\n {\r\n //\r\n _theViews.addElement(theView);\r\n }",
"public void addView(View view) {\n vi... | [
"0.7413464",
"0.70429957",
"0.6873",
"0.683408",
"0.677765",
"0.6592453",
"0.6579116",
"0.6409646",
"0.6361656",
"0.6346102",
"0.6326394",
"0.61807245",
"0.61760426",
"0.6004078",
"0.5981195",
"0.5970988",
"0.59656364",
"0.595254",
"0.59329754",
"0.5882093",
"0.58740634",
"... | 0.548039 | 46 |
Convert dip to pixels. | public static int rp(int dip) {
return rp(CardManager.getApplicationContext(), dip);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unused\")\n public float dipToPixel(float dip) {\n // Get the display metrics\n DisplayMetrics metrics = this.getDisplayMetrics(this.getContext());\n // Calc the conversion by the screen density\n return dip * metrics.density;\n }",
"public static int dipToPi... | [
"0.7958286",
"0.7535755",
"0.74447453",
"0.70716786",
"0.70503443",
"0.6901221",
"0.6878149",
"0.6858867",
"0.68356687",
"0.668026",
"0.665327",
"0.6649211",
"0.66287273",
"0.66091484",
"0.65989834",
"0.65229756",
"0.64971036",
"0.64746934",
"0.6452919",
"0.64496523",
"0.6438... | 0.0 | -1 |
Convert Dip to pixels. | public static int rp(@CheckForNull Context c, int dip) {
if (c == null) {
e("context is null for rp");
return dip;
}
return dip > 0 ? (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f) : dip;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int GetPixelFromDips(float pixels) {\n final float scale = getResources().getDisplayMetrics().density;\n // Convert the dps to pixels, based on density scale\n return (int) (pixels * scale + 0.5f);\n }",
"public int GetPixelFromDips(float pixels) {\n final float scale = getR... | [
"0.6501073",
"0.6501073",
"0.64734197",
"0.6332762",
"0.631767",
"0.6262377",
"0.6233757",
"0.6096202",
"0.60714835",
"0.59697807",
"0.57018614",
"0.56922036",
"0.5671329",
"0.55678046",
"0.5513097",
"0.546233",
"0.54517823",
"0.5449084",
"0.5432234",
"0.54281145",
"0.5408456... | 0.0 | -1 |
Get orientation of a view. | public static int getOrientation(@CheckForNull Context context) {
/*
* Display display = ((WindowManager) context.getSystemService(Context.WINDOW_SERVICE
* )).getDefaultDisplay(); int orientation = display.getOrientation(); if (orientation ==
* ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) return Configuration.ORIENTATION_LANDSCAPE; else
* if (orientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT) return
* Configuration.ORIENTATION_PORTRAIT; else if (orientation ==
* ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED) return Configuration.ORIENTATION_UNDEFINED;
* return orientation;
*/
if (context == null)
context = CardManager.getApplicationContext();
return context.getResources().getConfiguration().orientation;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IOrientation getOrientation();",
"public abstract double getOrientation();",
"public final Orientation getOrientation() {\n return orientation == null ? Orientation.HORIZONTAL : orientation.get();\n }",
"public int getOrientation()\n {\n return m_orientation;\n }",
"public fin... | [
"0.7351045",
"0.6946606",
"0.6754724",
"0.67428625",
"0.6674268",
"0.6624725",
"0.65560216",
"0.6525485",
"0.6502502",
"0.64917636",
"0.6483114",
"0.6478805",
"0.64369434",
"0.6407293",
"0.64053065",
"0.6328806",
"0.632395",
"0.6307939",
"0.6303831",
"0.6269528",
"0.62639946"... | 0.5677071 | 46 |
Create a ScaledBitmap by providing content model and uri. | @CheckForNull
public static Bitmap createScaledBitmap(@NonNull ContentResolver cr, Uri uri, int maxWidth,
int maxHeight, boolean respectOrientation) {
InputStream input = null;
Bitmap ret = null;
double width = 0, height = 0;
try {
input = cr.openInputStream(uri);
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
BitmapFactory.decodeStream(input, null, options);
width = options.outWidth;
height = options.outHeight;
} catch (Exception e) {
LogUtils.e(e, "Failed to createScaledBitmap, get outWidth/Height %s, %d, %d", uri, maxWidth,
maxHeight);
} finally {
IOUtils.close(input);
}
if (width != 0 && height != 0) {
int sample = 1;
if (respectOrientation) {
if ((width - height) * (maxWidth - maxHeight) < 0) {
double tmp = width;
width = height;
height = tmp;
}
}
if (width > maxWidth) {
sample = (int) Math.ceil(width / maxWidth);
height = height / sample;
}
if (height > (maxHeight * 1.1))
sample += (int) Math.ceil(height / maxHeight);
// d("%dx%d, max %dx%d, sample %d", (int) width, (int) height,
// maxWidth, maxHeight, sample);
try {
input = cr.openInputStream(uri);
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = sample;
ret = BitmapFactory.decodeStream(input, null, options);
} catch (Exception e) {
LogUtils.e(e, "Failed to createScaledBitmap, %s, %d, %d", uri, maxWidth, maxHeight);
} finally {
IOUtils.close(input);
}
}
if (ret.getWidth() > maxWidth || ret.getHeight() > maxHeight) {
ret = createScaledBitmap(ret, maxWidth, maxHeight);
}
return ret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Bitmap decodeBitmapFromUri(Context context, Uri uri) { //, int viewWidth, int viewHeight\n try {\n InputStream inputStream = context.getContentResolver().openInputStream(uri);\n Bitmap decodedBm = BitmapFactory.decodeStream(inputStream);\n Bitmap formatedBm = decoded... | [
"0.56601936",
"0.554717",
"0.5527157",
"0.5269095",
"0.5245162",
"0.52048147",
"0.51707244",
"0.5170125",
"0.51580185",
"0.51556426",
"0.5138332",
"0.51172054",
"0.511555",
"0.5115447",
"0.5112103",
"0.5094566",
"0.50750834",
"0.5070833",
"0.5070334",
"0.50491107",
"0.5046671... | 0.5399558 | 3 |
Set visibility of a specific object. | public static void setVisibility(@CheckForNull Object o, int visibility) {
if (o == null)
return;
if (o instanceof View)
((View) o).setVisibility(visibility);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setVisible(boolean visibile) {\n\t\tthis.visible = visibile;\n\t\tfor (GameObject gameObject : objects) {\n\t\t\tgameObject.setVisible(visibile);\n\t\t}\n\t}",
"public void setVisible(boolean val);",
"public void setVisibility(int value) {\n this.visibility = value;\n }",
"publi... | [
"0.6772159",
"0.67393625",
"0.6663066",
"0.66091865",
"0.65110594",
"0.65110594",
"0.65052694",
"0.64948356",
"0.6444208",
"0.64300317",
"0.6429562",
"0.6403333",
"0.63977504",
"0.6384688",
"0.62799686",
"0.6278272",
"0.6273301",
"0.6273301",
"0.62659293",
"0.62541807",
"0.61... | 0.72930604 | 0 |
Compress a bitmap to byte[]. | @CheckForNull
public static byte[] compressBitmap(@CheckForNull Bitmap b, Bitmap.CompressFormat format,
int quality) {
if (b == null)
return null;
byte[] ret = null;
ByteArrayOutputStream output = null;
try {
output = new ByteArrayOutputStream();
b.compress(format, quality, output);
ret = output.toByteArray();
} catch (Exception e) {
LogUtils.e(e, "Failed to compressBitmap, %s, %d", format, quality);
} finally {
IOUtils.close(output);
}
return ret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static byte[] bitmapToByte(Bitmap bitmap) {\n Bitmap bmpCompressed = Bitmap.createScaledBitmap(bitmap, 640, 480, true);\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n // CompressFormat set up to JPG, you can change to PNG or whatever you want;\n boolean isCompress... | [
"0.74239975",
"0.7302969",
"0.7287998",
"0.72466964",
"0.7231967",
"0.7199928",
"0.71680194",
"0.7149115",
"0.70887184",
"0.70887184",
"0.70887184",
"0.70887184",
"0.6852188",
"0.6827883",
"0.6754235",
"0.67426264",
"0.67362034",
"0.67272204",
"0.6623832",
"0.64642525",
"0.62... | 0.6068224 | 25 |
Force to clear a bitmap whenever it needs. | public static void forceClearBitmap() {
System.gc();
System.runFinalization();
System.gc();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void clearCanvas() {\n updateImageSize(mScale);\n }",
"public void clearCache() {\n sHardBitmapCache.clear();\n sSoftBitmapCache.clear();\n }",
"public void clearImage() {\n IntStream.range(0, bytes.length).forEach(i -> bytes[i] = CLEAR_BYTE);\n }",
"public void clearCanvas() {\n... | [
"0.7335058",
"0.7229363",
"0.71964246",
"0.71572703",
"0.714617",
"0.7062459",
"0.7007862",
"0.69937843",
"0.69587773",
"0.69460475",
"0.68172556",
"0.67998016",
"0.6780374",
"0.6751724",
"0.67423534",
"0.6636053",
"0.663325",
"0.66167027",
"0.656619",
"0.65386367",
"0.652556... | 0.8595344 | 0 |
Get the device ID. | @NonNull
public static String getDeviceID(@NonNull Context ctx) {
String duid = Settings.Secure.getString(ctx.getContentResolver(), Settings.Secure.ANDROID_ID);
return (duid == null || duid.length() == 0) ? "emulator" : duid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final int getDeviceID() {\n return device.getDeviceID();\n }",
"Integer getDeviceId();",
"private String getDeviceID() {\n try {\n TelephonyManager telephonyManager;\n\n telephonyManager =\n (TelephonyManager) getSystemService(Context.TELEPHONY... | [
"0.8118354",
"0.8026117",
"0.7880033",
"0.78016436",
"0.7766439",
"0.7756087",
"0.77556133",
"0.77052164",
"0.76825905",
"0.76767546",
"0.7645436",
"0.7634711",
"0.74738324",
"0.74682057",
"0.7374957",
"0.7274988",
"0.7257888",
"0.7255097",
"0.7245658",
"0.7245658",
"0.719924... | 0.68477625 | 36 |
Check whether it's emulator or device. | public static boolean isEmulator(@NonNull Context ctx) {
return getDeviceID(ctx).equals("emulator") || "sdk".equals(android.os.Build.MODEL)
|| "google_sdk".equals(android.os.Build.MODEL);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isEmulator(){\n String brand = Build.BRAND;\n if (brand.equalsIgnoreCase(\"generic\")) {\n return true;\n } else {\n return false;\n }\n }",
"public static boolean isEmulator() {\n return Build.FINGERPRINT.startsWith(\"generic\")\n... | [
"0.80756366",
"0.7663737",
"0.6849112",
"0.6647574",
"0.6520096",
"0.6368778",
"0.62534493",
"0.62160516",
"0.6212345",
"0.61724055",
"0.6125093",
"0.60982454",
"0.60982454",
"0.6077521",
"0.6036277",
"0.60011965",
"0.59959465",
"0.5992497",
"0.5918235",
"0.5901636",
"0.58922... | 0.7448314 | 2 |
Creat a group of slide animations. | @NonNull
public static AnimationSet makeSlideAnimation(int fromGravity) {
AnimationSet a = new AnimationSet(true);
AlphaAnimation fade = new AlphaAnimation(0f, 1.0f);
a.addAnimation(fade);
TranslateAnimation slide = null;
switch (fromGravity) {
case Gravity.TOP:
slide =
new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF,
0.0f, Animation.RELATIVE_TO_SELF, -1.0f, Animation.RELATIVE_TO_SELF, 0.0f);
break;
case Gravity.LEFT:
slide =
new TranslateAnimation(Animation.RELATIVE_TO_SELF, -1.0f, Animation.RELATIVE_TO_SELF,
0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f);
break;
case Gravity.RIGHT:
slide =
new TranslateAnimation(Animation.RELATIVE_TO_SELF, 1.0f, Animation.RELATIVE_TO_SELF,
0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f);
break;
case Gravity.BOTTOM:
slide =
new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF,
0.0f, Animation.RELATIVE_TO_SELF, 1.0f, Animation.RELATIVE_TO_SELF, 0.0f);
break;
default:
break;
}
if (slide != null)
a.addAnimation(slide);
a.setInterpolator(new AccelerateDecelerateInterpolator());
return a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createAnimations(Texture spriteSheet, float frameTime) {\n\n TextureRegion[][] spriteRegion = TextureRegion.split(spriteSheet, TILESIZE, TILESIZE);\n\n TextureRegion[] downFrames = new TextureRegion[4];\n TextureRegion[] leftFrames = new TextureRegion[4];\n TextureRegion[] ... | [
"0.621582",
"0.61972374",
"0.5975185",
"0.5924852",
"0.5720606",
"0.5685958",
"0.55658793",
"0.55658793",
"0.5489621",
"0.5370356",
"0.5367692",
"0.5351569",
"0.53266704",
"0.5313088",
"0.5309526",
"0.52825105",
"0.52793247",
"0.52554196",
"0.52462393",
"0.5231913",
"0.518421... | 0.55854267 | 6 |
Get into phone's Gallery. | public static void startGalleryActivity(@CheckForNull Activity a, int requestCode) {
if (a == null) {
if (D)
d("won't start gallery, activity is null");
return;
}
Intent intent = new Intent(Intent.ACTION_PICK, null);
intent.setDataAndType(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, IMAGE_UNSPECIFIED);
a.startActivityForResult(intent, requestCode);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void openGallery() {\n\n Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT);\n galleryIntent.setType(\"image/*\");\n startActivityForResult(galleryIntent, REQUESCODE);\n }",
"private void openGallery() {\n\n Intent galleryIntent = new Intent(Intent.ACTION_GET_... | [
"0.7938353",
"0.79381984",
"0.7774249",
"0.7774068",
"0.7746874",
"0.7690807",
"0.7607636",
"0.75573844",
"0.75564927",
"0.75457287",
"0.7504643",
"0.74016005",
"0.74014014",
"0.7362025",
"0.7345064",
"0.73093545",
"0.73006785",
"0.72607917",
"0.722561",
"0.7163949",
"0.71337... | 0.0 | -1 |
Create a CharSequence from a Drawable object. | public static CharSequence prefixWithDrawable(Drawable d, String text, int w, int h) {
if (d == null) {
LogUtils.w("drawable is null?"); //$NON-NLS-1$
return text;
}
if (text == null)
text = ""; //$NON-NLS-1$
SpannableString b = new SpannableString(" " + text); //$NON-NLS-1$
d.setBounds(0, 0, w, h);
b.setSpan(new ImageSpan(d, DynamicDrawableSpan.ALIGN_BASELINE), 0, 1,
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
return b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Drawable createDrawable(Context context, Bitmap b);",
"public interface DrawableCreator {\n /**\n * Create a drawable from this bitmap\n */\n Drawable createDrawable(Context context, Bitmap b);\n }",
"public CharSequence a(Object obj) {\n return obj instanceof CharSequen... | [
"0.55479604",
"0.53002983",
"0.5276726",
"0.49949595",
"0.48540688",
"0.47509173",
"0.47175848",
"0.47052634",
"0.47049946",
"0.4703778",
"0.4579113",
"0.4528679",
"0.45195326",
"0.45136273",
"0.45118782",
"0.4509118",
"0.45058542",
"0.44942448",
"0.4480823",
"0.44710904",
"0... | 0.60581434 | 0 |
Get a bitmap from phone's photos storage. | @CheckForNull
public static Bitmap getCameraBitmap(@NonNull Activity a, @NonNull Intent data, int maxWidth,
int maxHeight, boolean respectOrientation) {
Bitmap bm = null;
try {
File tmp = TMP_PHOTO; // assign to a local first to avoid a warning
// of Findbugs
if (tmp != null && tmp.exists()) {
// Uri uri = ViewUtils.TMP_PHOTO_URI;
// startPhotoRotate(a,uri);
bm =
createScaledBitmap(a.getContentResolver(), TMP_PHOTO_URI, maxWidth, maxHeight,
respectOrientation);
tmp.delete();
TMP_PHOTO = null;
TMP_PHOTO_URI = null;
}
} catch (Exception e) {
w("Failed to get camera picture from TMP_PHOTO: " + e);
}
try {
if (bm == null) {
bm = (Bitmap) data.getExtras().get("data");
if (bm == null) {
bm = BitmapFactory.decodeStream(a.getContentResolver().openInputStream(data.getData()));
}
if (bm != null) {
Bitmap tmp = createScaledBitmap(bm, maxWidth, maxHeight);
if (tmp != bm)
bm.recycle();
bm = tmp;
}
}
} catch (Exception e) {
w("Failed to get camera picture from extras: " + e);
}
return bm;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Bitmap getPhotoBitmap(String path) {\n File imgFile = new File(Environment.getExternalStorageDirectory(), path);\n Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\n return myBitmap;\n }",
"public void getPhoto() {\n Intent intent = new Intent(In... | [
"0.6927368",
"0.67520785",
"0.6443865",
"0.64198405",
"0.6305321",
"0.6287672",
"0.6250026",
"0.62456506",
"0.6237481",
"0.6228227",
"0.6170571",
"0.61592805",
"0.6083312",
"0.6073941",
"0.6064103",
"0.60442495",
"0.6037274",
"0.60222656",
"0.60218793",
"0.5994677",
"0.599369... | 0.0 | -1 |
Show a toast with a specific view. | public static void showToast(@NonNull final View view, final int duration) {
if (isMainThread())
showToastIMT(view, duration);
else
runInHandlerThread(new Runnable() {
public void run() {
showToastIMT(view, duration);
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showToast(View view) {\n // Initialize an object named 'toast' using the 'Toast' class\n Toast toast = Toast.makeText(this, R.string.toast_message, Toast.LENGTH_SHORT);\n\n // Use the method 'show()' under the 'Toast' class to show a message\n toast.show();\n }",
"publi... | [
"0.80802345",
"0.7710256",
"0.75590867",
"0.72988045",
"0.7224151",
"0.7098919",
"0.7098919",
"0.70922446",
"0.7053174",
"0.7035753",
"0.700995",
"0.69745207",
"0.6948256",
"0.693464",
"0.69258684",
"0.6923246",
"0.6916267",
"0.6916267",
"0.69077516",
"0.6902311",
"0.6902311"... | 0.7539135 | 3 |
Show a toast with specific message. | public static void showToast(@CheckForNull final String msg, final int duration) {
showToast(msg, duration, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }",
"private void toastMessage(String message){\n Toast.makeText(this... | [
"0.82912064",
"0.8265969",
"0.8265969",
"0.82564217",
"0.82332474",
"0.82332474",
"0.8195184",
"0.81273115",
"0.80753547",
"0.80710995",
"0.8031641",
"0.80206263",
"0.80174637",
"0.7982855",
"0.7982376",
"0.7965756",
"0.79656905",
"0.79370975",
"0.79300535",
"0.7922483",
"0.7... | 0.7267433 | 81 |
Show SoftKeyboard of system whenever needed. | public static void showSoftKeyboard(EditText text) {
try {
text.requestFocusFromTouch();
((InputMethodManager) text.getContext().getSystemService(Context.INPUT_METHOD_SERVICE))
.showSoftInput(text, 0);
} catch (Exception e) {
e(e, "Failed to show soft keyboard");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showKeyboard(){\n\t\tInputMethodManager inputMethodManager = (InputMethodManager) getApplicationContext().getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\tinputMethodManager.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);\n\t}",
"public void showSoftKeyboard(){\n if(view.requestFocus()... | [
"0.7981123",
"0.7679284",
"0.7548467",
"0.7332818",
"0.7109325",
"0.70576423",
"0.6965307",
"0.68480307",
"0.6828691",
"0.67864424",
"0.6764853",
"0.6762188",
"0.6641045",
"0.6584322",
"0.6574683",
"0.6472744",
"0.6443861",
"0.6427191",
"0.6412037",
"0.6388491",
"0.6335442",
... | 0.6745236 | 12 |
Find a view by it's ID in an Activity. | @NonNull
public static <T> T find(@NonNull Activity a, int viewID) {
return (T) a.findViewById(viewID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public View findViewById(int id) {\n Activity activity_ = ((Activity) context_);\n return activity_.findViewById(id);\n }",
"public View findViewById(int id) {\n Activity activity = ((Activity) context_);\n return activity.findViewById(id);\n }",
"public View findViewById(int ... | [
"0.7472138",
"0.7439071",
"0.71831644",
"0.69005895",
"0.6851106",
"0.65835875",
"0.642623",
"0.64170325",
"0.60658675",
"0.59294397",
"0.5738113",
"0.56639755",
"0.56478834",
"0.5602021",
"0.5554789",
"0.5533465",
"0.55064404",
"0.54984677",
"0.54934865",
"0.54930574",
"0.54... | 0.7364707 | 2 |
Find a view by it's ID in a view. | @NonNull
public static <T> T find(@NonNull View a, int viewID) {
return (T) a.findViewById(viewID);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public View findViewById(int viewId){\r\n return AppContext.getCurrent().getActivity().getCurrentView().findViewById(viewId);\r\n }",
"@NonNull\n public static <T> T find(@NonNull Activity a, int viewID) {\n return (T) a.findViewById(viewID);\n }",
"public View findViewById(int id) {\r\n... | [
"0.69362855",
"0.6889409",
"0.6624335",
"0.66091025",
"0.66085714",
"0.6579921",
"0.6339642",
"0.61374646",
"0.6127756",
"0.61129427",
"0.6031531",
"0.5922379",
"0.58671314",
"0.58019924",
"0.57733303",
"0.5737086",
"0.56753623",
"0.56480104",
"0.559249",
"0.5575036",
"0.5569... | 0.71141255 | 0 |
Localiza o EJB que implementa AnotacaoPessoaServico. | public AnotacaoPessoaServico localizarAnotacaoPessoaServico() {
return (AnotacaoPessoaServico) localizar("locator.capes.AnotacaoPessoaServico");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Local\r\npublic interface ComercioNacionalEJBLocal {\r\n\r\n /**\r\n *\r\n * @param idCliente\r\n * @param idPuntoVenta\r\n * @return\r\n */\r\n List<ProductosXCliente> consultarProductosXCliente(Long idCliente, Long idPuntoVenta);\r\n\r\n /**\r\n *\r\n * @param solicitud\r\n * @param productos... | [
"0.70028037",
"0.6734383",
"0.6720945",
"0.66996086",
"0.6628869",
"0.66238415",
"0.66094005",
"0.65698177",
"0.65638816",
"0.65337926",
"0.64936846",
"0.64644575",
"0.64569",
"0.6445707",
"0.6412054",
"0.63765764",
"0.6348942",
"0.634535",
"0.6316198",
"0.6273587",
"0.623575... | 0.7437602 | 0 |
=================================================================================================== Definition init =================================================================================================== | @Override
public void run() {
// Definition init
// ===================================================================================================
cElementalPrimitive.run();
cPrimitiveDefinition.run();
eQuarkDefinition.run();
eLeptonDefinition.run();
eNeutrinoDefinition.run();
eBosonDefinition.run();
dHadronDefinition.run();
iaeaNuclide.run();
dAtomDefinition.run();
ePrimalAspectDefinition.run();
dComplexAspectDefinition.run();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"private void init() {\n\n\t}",
"public void init() {\n \n }",
"@Override\r\n\tpublic void init() {}",
"@Override public void init()\n\t\t{\n\t\t}",
"public void init() {\r\n\r\n\t}",
"pub... | [
"0.8592784",
"0.8540909",
"0.8530151",
"0.8511449",
"0.8469057",
"0.8447771",
"0.84288645",
"0.84218955",
"0.8421336",
"0.8421336",
"0.8421336",
"0.8380065",
"0.8380065",
"0.8380065",
"0.83717257",
"0.83570397",
"0.8341649",
"0.8341649",
"0.8341649",
"0.8341649",
"0.8327069",... | 0.0 | -1 |
Creates a new instance of this class. | public FederatedRecommenderService() throws FederatedRecommenderException {
ObjectMapper mapper = new ObjectMapper();
URL resource = getClass().getResource(
"/federatedRecommenderConfig.json");
mapper.configure(JsonParser.Feature.ALLOW_COMMENTS, true);
try {
federatedRecommenderConfiguration = mapper.readValue(new File(
resource.getFile()),
FederatedRecommenderConfiguration.class);
} catch (JsonParseException e) {
logger.log(
Level.SEVERE,
"There was an error parsing the FederationRecommenderConfig File",
e);
throw new FederatedRecommenderException(
"There was an error parsing the FederationRecommenderConfig File in FederatedRecommenderCore Module",
e);
} catch (JsonMappingException e) {
logger.log(
Level.SEVERE,
"There was an error parsing the FederationRecommenderConfig File",
e);
throw new FederatedRecommenderException(
"There was an error parsing the FederationRecommenderConfig File in FederatedRecommenderCore Module",
e);
} catch (IOException e) {
logger.log(
Level.SEVERE,
"There was an error reading the FederationRecommenderConfig File",
e);
throw new FederatedRecommenderException(
"There was an error reading the FederationRecommenderConfig File in FederatedRecommenderCore Module",
e);
}
try {
fRC = FederatedRecommenderCore
.getInstance(federatedRecommenderConfiguration);
} catch (FederatedRecommenderException e) {
logger.log(Level.SEVERE, "", e);
throw new FederatedRecommenderException(
"Could not get an instance of FederatedRecommenderCore", e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Instantiation(){}",
"Instance createInstance();",
"Reproducible newInstance();",
"public void create(){}",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"public void create() {\n\t\t\n\t}",
"@Override\r\n\tpu... | [
"0.7068274",
"0.69935495",
"0.68213564",
"0.67586255",
"0.6538776",
"0.65344286",
"0.65174705",
"0.6480457",
"0.6469905",
"0.64148813",
"0.64139444",
"0.64037645",
"0.63935685",
"0.6328206",
"0.62950313",
"0.62950313",
"0.6291536",
"0.62839746",
"0.6221436",
"0.6206395",
"0.6... | 0.0 | -1 |
Begin Services / OFFERED SERVICES: (1) Register a new partner > /register (2) Generate recommendations given a user profile > /recommend partners have to register their system with xml or json to let the system query the partners | @POST
@Path("/register")
@Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@Produces({MediaType.WILDCARD})
public Response registerPartner(PartnerBadge badge) throws IOException {
logger.log(Level.INFO,"Registering Partner: "+badge.getSystemId());
String returnString =fRC.registerPartner(badge);
if(returnString.contains("Key is too Short"))
return Response.notModified(returnString).build();
return Response.ok().build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(groups ={Slingshot,Regression,CsaAgent})\t\n\t\tpublic void verifyPartnerServiceAgentRegisterUser() throws Exception {\n\t\t\tReport.createTestLogHeader(\"PSA Journey\", \"To verify whether the Partner service agent is able to register a Broker through Partner service agent journey\");\n\t\t\tUserProfile use... | [
"0.5982013",
"0.5670799",
"0.559542",
"0.5560977",
"0.5551939",
"0.55296344",
"0.5424604",
"0.541089",
"0.53878725",
"0.53411275",
"0.53371364",
"0.5289423",
"0.5283807",
"0.52644885",
"0.5261573",
"0.5231759",
"0.5222355",
"0.5211552",
"0.52095515",
"0.5209008",
"0.5194887",... | 0.0 | -1 |
Do something in response to button click | public void onClick(View view) {
if(validate_info()){
create_user();
user = FirebaseAuth.getInstance().getCurrentUser();
if (user != null) {
submit_profile(user);
}
}
else{
return;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buttonClicked();",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n }",
"public void clickYes ();",
"void okButtonClicked();",
"@Override\n\t public void onClick(View v) {\n\t \t Sen... | [
"0.74924475",
"0.7108074",
"0.7006472",
"0.6956601",
"0.6942922",
"0.69224644",
"0.6871466",
"0.6851257",
"0.6823624",
"0.6821087",
"0.68090665",
"0.67996377",
"0.67971665",
"0.67856425",
"0.6771402",
"0.6740991",
"0.6653727",
"0.6641172",
"0.66128004",
"0.6607426",
"0.660046... | 0.0 | -1 |
update user photo and name | private void updateUserInfo(final String name, Uri pickedImgUri, final FirebaseUser currentUser) {
// first we need to upload user photo to firebase storage and get url
//StorageReference mStorage = FirebaseStorage.getInstance().getReference().child("users_photos");
final imageFilePath = mStorage.child(pickedImgUri.getLastPathSegment());
imageFilePath.putFile(pickedImgUri).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>() {
@Override
public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
// image uploaded succesfully
// now we can get our image url
imageFilePath.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
@Override
public void onSuccess(Uri uri) {
// uri contain user image url
UserProfileChangeRequest profleUpdate = new UserProfileChangeRequest.Builder()
.setDisplayName(name)
.setPhotoUri(uri)
.build();
currentUser.updateProfile(profleUpdate)
.addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task) {
if (task.isSuccessful()) {
// user info updated successfully
showMessage("Register Complete");
updateUI();
}
}
});
}
});
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void updateProfilePhoto(int userId, String filename);",
"private void updateUserInfo(String name, @NotNull Uri pickedImgUri, FirebaseUser currentUser) {\n //carico la foto sullo storage di Firebase e chiedo l'url\n StorageReference mStorage = FirebaseStorage.getInstance().getReference().child(\"fot... | [
"0.8205004",
"0.7507083",
"0.7121498",
"0.70946985",
"0.7056303",
"0.69412273",
"0.6921748",
"0.69114643",
"0.69114643",
"0.68684155",
"0.68663985",
"0.6800471",
"0.66968143",
"0.66956276",
"0.66956276",
"0.6646359",
"0.6642421",
"0.66365755",
"0.65871954",
"0.6576499",
"0.65... | 0.7332309 | 2 |
image uploaded succesfully now we can get our image url | @Override
public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
imageFilePath.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {
@Override
public void onSuccess(Uri uri) {
// uri contain user image url
UserProfileChangeRequest profleUpdate = new UserProfileChangeRequest.Builder()
.setDisplayName(name)
.setPhotoUri(uri)
.build();
currentUser.updateProfile(profleUpdate)
.addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task) {
if (task.isSuccessful()) {
// user info updated successfully
showMessage("Register Complete");
updateUI();
}
}
});
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {\n Ref.getDownloadUrl().addOnSuccessListener(new OnSuccessListener<Uri>() {\n @Override\n public void onSuccess(Uri uri) {\n ... | [
"0.69986355",
"0.6928786",
"0.6920876",
"0.6795421",
"0.67170006",
"0.6713347",
"0.6691722",
"0.6684306",
"0.6672669",
"0.6666539",
"0.66648936",
"0.66598296",
"0.651849",
"0.65056473",
"0.6502497",
"0.6469928",
"0.6461683",
"0.6458549",
"0.645491",
"0.64548564",
"0.6440544",... | 0.6017753 | 81 |
uri contain user image url | @Override
public void onSuccess(Uri uri) {
UserProfileChangeRequest profleUpdate = new UserProfileChangeRequest.Builder()
.setDisplayName(name)
.setPhotoUri(uri)
.build();
currentUser.updateProfile(profleUpdate)
.addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task) {
if (task.isSuccessful()) {
// user info updated successfully
showMessage("Register Complete");
updateUI();
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Uri getAvatarUrl();",
"java.lang.String getPictureUri();",
"@Override\n\tprotected String getImageUrl() {\n\t\treturn user.getUserInfo().getImageUrl();\n\t}",
"String getAvatarUrl();",
"SafeUri getDefaultImageUri();",
"@Override\n public void onSuccess(Uri uri) {\n ... | [
"0.7501802",
"0.7436341",
"0.7147245",
"0.70052856",
"0.68044174",
"0.6684635",
"0.6672549",
"0.66434926",
"0.6630821",
"0.6599015",
"0.65412027",
"0.64954877",
"0.64854807",
"0.64661014",
"0.64511895",
"0.64375174",
"0.6407101",
"0.6397863",
"0.6371426",
"0.63489944",
"0.634... | 0.0 | -1 |
open gallery intent and wait for user to pick an image ! | private void openGallery() {
Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT);
galleryIntent.setType("image/*");
startActivityForResult(galleryIntent, REQUESCODE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void dispatchGalleryIntent() {\n Intent pickPhoto = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n pickPhoto.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivityForResult(pickPhoto, REQUEST_CHOOSE_PHOTO_NUM);\n }",
"pri... | [
"0.839457",
"0.82096165",
"0.80989414",
"0.8092925",
"0.80903274",
"0.8042501",
"0.8030586",
"0.79731023",
"0.7971634",
"0.7944598",
"0.7924742",
"0.7909935",
"0.7879293",
"0.7872105",
"0.78547084",
"0.7817768",
"0.7796731",
"0.7796725",
"0.7788566",
"0.77470005",
"0.77467597... | 0.7749729 | 19 |
Same way we moved here from the Splash Screen We set it to new Splash because we got no other screens otherwise you put the screen there where you want to go | @Override
public void clicked(InputEvent event, float x, float y) {
audioManager.playEvilBunnieGod();
audioManager.setNewState(State.IDLE);
manager.setScreen(new GameplayScreen(manager, 1));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void nextScreen() {\n mHandler.post(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(SplashScreenActivity.this, HomeActivity.class);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //check... | [
"0.7445438",
"0.73973984",
"0.7299083",
"0.72732556",
"0.7253469",
"0.72434795",
"0.72423154",
"0.7213127",
"0.71289116",
"0.7089517",
"0.7057066",
"0.70471174",
"0.70419866",
"0.7010211",
"0.700843",
"0.69986117",
"0.6987468",
"0.6956133",
"0.6944215",
"0.6939372",
"0.692650... | 0.0 | -1 |
It shows a Dialog containing an error to the user | private void ShowRetrievedErrorPopupDialog(){
ShowWhaitSpinner();
//there is an error, show popup message
Context context;
AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
builder.setMessage(R.string.error_message_download_resources)
.setCancelable(false)
.setPositiveButton(R.string.ok_button, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
startActivity(new Intent(getContext(), MainActivity.class));
}
});
AlertDialog alertDialog = builder.create();
alertDialog.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showErrorDialog(int errorCode) {\n\t\t\n }",
"private void showErrorDialog(String msg) {\n\t\tJFXDialogLayout content = new JFXDialogLayout();\n\t\tcontent.setHeading(new Text(\"ERROR\"));\n\t\tcontent.setBody(new Text(msg));\n\t\tJFXDialog dialog = new JFXDialog(stackPane, content, JFXDialog.Dia... | [
"0.81056964",
"0.7697969",
"0.76763046",
"0.7425924",
"0.7418959",
"0.74163294",
"0.7415684",
"0.7380464",
"0.7368497",
"0.7331899",
"0.7323261",
"0.7302539",
"0.72737044",
"0.72737044",
"0.72691286",
"0.72455853",
"0.7227028",
"0.7220303",
"0.7219659",
"0.72096765",
"0.72094... | 0.6672993 | 78 |
It show's a no internet connection popup | private void ShowNoInternetConnection(){
StopWhaitSpinner();
//There was an error show error message
AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
builder.setMessage(R.string.recconnecting_request)
.setCancelable(false)
.setPositiveButton(R.string.ok_button, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
startActivity(new Intent(getContext(), MainActivity.class));
}
});
AlertDialog alertDialog = builder.create();
alertDialog.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showNoConnectionDialog()\r\n\t{\t\r\n\t\t// Create and show dialog\r\n\t\tfinal NoInternetConnectionDialogBuilder noConnectionDialogBuilder = new NoInternetConnectionDialogBuilder(this);\r\n\t\tfinal AlertDialog alert = noConnectionDialogBuilder.create( );\r\n\t\talert.show( );\r\n\t}",
"public void... | [
"0.8050285",
"0.7822739",
"0.7765788",
"0.7324681",
"0.72306967",
"0.72194564",
"0.721476",
"0.7191108",
"0.71792156",
"0.71634275",
"0.71093917",
"0.7076119",
"0.70000184",
"0.6964433",
"0.68973726",
"0.68601376",
"0.6845094",
"0.6829978",
"0.682335",
"0.67507845",
"0.669641... | 0.7231287 | 4 |
click twice on title to open year view | public void setDate(int day, String month, int year) {
element(titleButton).waitUntilVisible();
titleButton.click();
waitABit(2000);
titleButton.click();
waitABit(2000);
// select year
for (WebElementFacade i : datePickerYearList)
if (i.getText().contentEquals(Integer.toString(year))) {
i.click();
break;
}
// select month
for (WebElementFacade i : datePickerMonthList)
if (i.getText().contentEquals(month)) {
i.click();
break;
}
// select day
for (WebElementFacade i : datePickerDayList)
if (i.getText().contentEquals(Integer.toString(day))) {
i.click();
break;
}
waitABit(2000);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcalendar.movePrevYear();\n\t\t\t\tdisplayCalendar();\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tcalendar.moveNextYear();\n\t\t\t\tdisplayCalendar();\n\t\t\t}",
"private void updateTitle(int year) {\n Time start = new ... | [
"0.7358501",
"0.73273176",
"0.68405163",
"0.63598716",
"0.6321553",
"0.6220592",
"0.6206044",
"0.6180655",
"0.6153762",
"0.61499774",
"0.6029558",
"0.5963853",
"0.5879171",
"0.5874903",
"0.58644295",
"0.581288",
"0.57947385",
"0.5781547",
"0.5770677",
"0.5734187",
"0.57031757... | 0.0 | -1 |
Log.e("Retrofit Response!", "Hello inside"); | @Override
public void onResponse(Call<MyResponse> call, Response<MyResponse> response) {
Log.e("Retrofit Response!", "Hello inside");
Log.e("ResponseCode", String.valueOf(response.code()));
if(response.isSuccessful())
{
Toast.makeText(SendMessage.this, "Message Sent!", Toast.LENGTH_SHORT).show();
finish();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void failure(RetrofitError error) {\n Toast.makeText(MainActivity.this, error.toString(), Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onFailure(Call<ResponseModel> call, Throwable t) {\n Log.e(... | [
"0.73294103",
"0.71373034",
"0.71373034",
"0.71373034",
"0.6979728",
"0.6978371",
"0.69676226",
"0.6927228",
"0.6918348",
"0.6844106",
"0.6833467",
"0.6806617",
"0.6759989",
"0.6712068",
"0.6712068",
"0.66550875",
"0.6627761",
"0.6592735",
"0.6588378",
"0.65642905",
"0.655342... | 0.67920434 | 12 |
Name of Function : fnPrintException Developed By : Mahendra Date : 8June2021 Function Description : To Print Exception in Console | public static void fnPrintException(Exception e)
{
e.printStackTrace();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void printException(Exception e,int level)\n { printLog(\"Exception: \"+ExceptionPrinter.getStackTraceOf(e),level);\n }",
"public static String getPrintStackTrace(Exception e){\n\t\tStringWriter sw = new StringWriter();\n\t\t//PrintWriter integrates with StringWriter\n\t\tPrintWriter pw = new PrintWriter(sw... | [
"0.6870548",
"0.64637744",
"0.6441727",
"0.6422488",
"0.6419658",
"0.63813317",
"0.63349795",
"0.6322436",
"0.62968445",
"0.62519616",
"0.624896",
"0.624896",
"0.6228746",
"0.62230015",
"0.6187166",
"0.61834335",
"0.6147177",
"0.6061923",
"0.60423696",
"0.601794",
"0.59660995... | 0.7703774 | 0 |
Name of Function : pass Developed By : Mahendra Date : 8June2021 Function Description : To Log pass in Extent Report | public static void pass(String stepName, String description)
{
try{
test.log(LogStatus.PASS, stepName, description);
}catch(Exception e){fnPrintException(e);}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void logData(){\n }",
"public static void main(String[] args) {\n\n\t\tExtentHtmlReporter htmlReporter=new ExtentHtmlReporter(\"C:\\\\Users\\\\Lenovo\\\\Desktop\\\\supriya\\\\Report\\\\batch.html\");\n\t\tExtentReports report=new ExtentReports();\n\t\treport.attachReporter(htmlReporter);\n\t\tExtentTes... | [
"0.5745088",
"0.5619482",
"0.56042665",
"0.5595666",
"0.5533985",
"0.5518623",
"0.54930836",
"0.54714155",
"0.5469852",
"0.5456131",
"0.5446121",
"0.54429466",
"0.5381622",
"0.5360756",
"0.535921",
"0.53370017",
"0.53309596",
"0.5324026",
"0.5315589",
"0.5296787",
"0.5268141"... | 0.0 | -1 |
Name of Function : info Developed By : Mahendra Date : 8June2021 Function Description : To Log info in Extent Report | public static void info(String stepName, String description)
{
try{
test.log(LogStatus.INFO, stepName, description);
}catch(Exception e){fnPrintException(e);}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void logData(){\n }",
"private void logInfo(String msgText) {\n System.out.println (\"[INFO] \" + msgText);\n \n }",
"public String get_log(){\n }",
"public static void logExtentReport(String s1){\n\t\t test.get().log(Status.INFO, s1);\n\t}",
"public void writereport() {\n\t\n}",
"... | [
"0.6284716",
"0.6077702",
"0.6076778",
"0.6026378",
"0.5989324",
"0.5982068",
"0.5941255",
"0.5839845",
"0.58389693",
"0.58296025",
"0.58296025",
"0.5812359",
"0.57903403",
"0.5771048",
"0.5770355",
"0.5752705",
"0.57399625",
"0.5716845",
"0.5690241",
"0.56815684",
"0.5680938... | 0.52823436 | 89 |
Name of Function : skip Developed By : Mahendra Date : 8June2021 Function Description : To Log skip in Extent Report | public static void skip(String stepName, String description)
{
try{
test.log(LogStatus.SKIP, stepName, description);
}catch(Exception e){fnPrintException(e);}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void skip();",
"@Override\r\n\tpublic void skip() {\n\t\tSystem.out.println(\"Skip\");\r\n\t}",
"@Override\n\tpublic void skip() {\n\t}",
"private void populateSummaryReportForSkip(ITestResult tr, WritableSheet summarySheet, String skipString) {\r\n \tSystem.out.println(\"In populateSummaryReportForSkip\"... | [
"0.684523",
"0.66418034",
"0.66345346",
"0.6437991",
"0.6393636",
"0.6193994",
"0.6140122",
"0.6043925",
"0.5968464",
"0.59189415",
"0.5894382",
"0.58824927",
"0.58758914",
"0.5840648",
"0.58318007",
"0.57972735",
"0.5760352",
"0.57593924",
"0.57258475",
"0.57056874",
"0.5697... | 0.65130955 | 3 |
Name of Function : fail Developed By : Mahendra Date : 8June2021 Function Description : To Log fail in Extent Report | public static void fail(String stepName, String description)
{
try{
String strImagePath="./ScreenShot/"+getScreenshot();
String strMarkup=getMarkup(strImagePath);
test.log(LogStatus.FAIL, stepName, description +"\n" + strMarkup);
Reporter.blnStatus=false;
blnReportTempStatus=false;
}catch(Exception e){fnPrintException(e);}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String failureReason();",
"@Override\n public void onAnalysisFailed(IntegrationAnalyzer.FailReason failReason) {\n String message = failReason.getMessage();\n Log.d(TAG, \"Fail Reason message is\" + message);\n //..\n\n ... | [
"0.6568789",
"0.62691754",
"0.6193041",
"0.6048934",
"0.5819598",
"0.58025724",
"0.57922083",
"0.57671165",
"0.57457274",
"0.5711749",
"0.5709991",
"0.56969863",
"0.56580645",
"0.56512225",
"0.5633504",
"0.5630729",
"0.5621741",
"0.5613542",
"0.5592659",
"0.55716515",
"0.5556... | 0.57070047 | 11 |
Name of Function : fatal Developed By : Mahendra Date : 8June2021 Function Description : To Log fatal in Extent Report | public static void fatal(String stepName, String description)
{
try{
test.log(LogStatus.FATAL, stepName, description);
Reporter.blnStatus=false;
}catch(Exception e){fnPrintException(e);}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void fatal(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"void outputError(String message) {\n\n fatalCount++;\n/*\n if (fatalCount == 1) {\n //fatalErrorsTable.addRow(ec.cr1ColRow(\n // \"Fatal errors\", true, \"red\", IHAlign.CENTER));\n ... | [
"0.5996176",
"0.592935",
"0.5910173",
"0.5907043",
"0.5866595",
"0.5853713",
"0.5836083",
"0.58281934",
"0.5826108",
"0.57805514",
"0.57749313",
"0.57574344",
"0.57556343",
"0.5747266",
"0.57380587",
"0.57259303",
"0.5712629",
"0.5696201",
"0.569391",
"0.56901175",
"0.5688571... | 0.54653573 | 60 |
Name of Function : error Developed By : Mahendra Date : 8June2021 Function Description : To Log error in Extent Report | public static void error(String stepName, String description)
{
try{
test.log(LogStatus.ERROR, stepName, description);
Reporter.blnStatus=false;
}catch(Exception e){fnPrintException(e);}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void logGenericUserError() {\n\n }",
"String errorMessage();",
"public static void exceptionDescriptive(String errorCause, StackTraceElement l) throws IOException {\n\t\t\t String secondLine = \"Browser Shut-Down\", location = \"\";\n\t\t\t String packageNameOnly, classNameOnly, xml, detecte... | [
"0.62771565",
"0.623491",
"0.6100265",
"0.6065368",
"0.6054947",
"0.6048979",
"0.5965711",
"0.59303266",
"0.5874343",
"0.5857781",
"0.584709",
"0.58090514",
"0.58009845",
"0.58009845",
"0.58009845",
"0.5761188",
"0.574522",
"0.57451886",
"0.5743396",
"0.5731191",
"0.5731191",... | 0.52969366 | 82 |
Name of Function : warning Developed By : Mahendra Date : 8June2021 Function Description : To Log warning in Extent Report | public static void warning(String stepName, String description)
{
try{
test.log(LogStatus.WARNING, stepName, description);
}catch(Exception e){fnPrintException(e);}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract void logWarn(String warning);",
"public void printWarning(String arg0) {\n\n }",
"private void logWarning(String msgText) {\n System.out.println (\"[WARNING] \" + msgText);\n \n }",
"abstract void errorLogWarn(String warning);",
"abstract void warn(String warning);",
"public void ... | [
"0.6858923",
"0.6665207",
"0.66453016",
"0.65314966",
"0.6522445",
"0.64125824",
"0.637215",
"0.637215",
"0.6314764",
"0.6308462",
"0.62696826",
"0.6249703",
"0.6238075",
"0.62043715",
"0.61883146",
"0.61206686",
"0.61206686",
"0.6118949",
"0.6110839",
"0.6106911",
"0.6104588... | 0.5770272 | 48 |
Name of Function : unknown Developed By : Mahendra Date : 8June2021 Function Description : To Log warning in Extent Report | public static void unknown(String stepName, String description)
{
try{
test.log(LogStatus.UNKNOWN, stepName, description);
}catch(Exception e){fnPrintException(e);}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printWarning(String arg0) {\n\n }",
"abstract void logWarn(String warning);",
"private void logWarning(String msgText) {\n System.out.println (\"[WARNING] \" + msgText);\n \n }",
"abstract void warn(String warning);",
"public static void badFunction(SpRTRequest req, Logger l) thr... | [
"0.67202914",
"0.65280473",
"0.6384668",
"0.6381208",
"0.63428044",
"0.62620014",
"0.6250209",
"0.6244586",
"0.6244586",
"0.6186962",
"0.6128228",
"0.60943794",
"0.6082138",
"0.6049634",
"0.6031957",
"0.6014882",
"0.5982808",
"0.59676105",
"0.59676105",
"0.59656805",
"0.59589... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args)
{
StringBuilder builder = new StringBuilder("citi 1");
System.out.println("initial value : " +builder);
builder.append(", EON");
System.out.println("new value :" +builder);
System.out.println("reverse value :"+builder.reverse());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
... | 0.0 | -1 |
Construct a new value with the given parent statistic. | public StatisticValue(final Statistic<?> statistic) {
this.statistic = statistic;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Gene parentCopy(Gene parent){\n\t\tGene copy = copy();\n\t\tif(isModulo()){\n\t\t\tdouble normDiff = Math.abs(getValue() - parent.getValue());\n\t\t\tdouble compare = Mutateable.compareModular(getValue(), parent.getValue(), getMax());\n\t\t\t\n\t\t\t//if the difference in species is close enough to being ce... | [
"0.6243689",
"0.60642356",
"0.60456014",
"0.58456606",
"0.5615678",
"0.5581406",
"0.5559528",
"0.5533483",
"0.5435821",
"0.54302424",
"0.54246306",
"0.54099995",
"0.54068166",
"0.5334244",
"0.53301746",
"0.5285669",
"0.52443635",
"0.5178049",
"0.5149711",
"0.51468015",
"0.514... | 0.5074564 | 25 |
Get the parent statistic. Note, this may be null in cases of serverside statistic merging. | public Statistic<?> getStatistic() {
return statistic;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic ParentInfo getParentInfo() {\n\t\t\treturn null;\n\t\t}",
"private int getParent(int parentIndex) {\n\t\tStatisticsLog statisticsLog = messageFlowLogs.get(parentIndex);\n\t\twhile (!statisticsLog.isOpenLog()) {\n\t\t\tstatisticsLog = messageFlowLogs.get(statisticsLog.getParentIndex());\n\t\... | [
"0.63051075",
"0.6299747",
"0.62917525",
"0.62628144",
"0.62080634",
"0.6193204",
"0.61726433",
"0.61146903",
"0.6104212",
"0.609524",
"0.60872257",
"0.60763544",
"0.6038875",
"0.6016813",
"0.6004312",
"0.5982583",
"0.59719104",
"0.59719104",
"0.59719104",
"0.5955225",
"0.594... | 0.0 | -1 |
Sets the bin for this value. Only used if the underlying statistic uses a binning strategy. | public void setBin(final ByteArray bin) {
this.bin = bin;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBin(java.lang.String bin) {\r\n this.bin = bin;\r\n }",
"public void setInBin(int n) {\n inBin=Translate.decTobinN(n, 4);\n }",
"public void setOpBin(int n) {\n opBin=Translate.decTobinN(n, 8);\n }",
"public synchronized void setBinCount(in... | [
"0.67561495",
"0.62506586",
"0.61881745",
"0.61789924",
"0.59015334",
"0.5858388",
"0.58540565",
"0.5709074",
"0.5614974",
"0.5586131",
"0.5525494",
"0.54965955",
"0.54929334",
"0.5447868",
"0.5436206",
"0.54145026",
"0.52969235",
"0.52950794",
"0.5283773",
"0.5277338",
"0.52... | 0.68100345 | 0 |
Gets the bin for this value. If the underlying statistic does not use a binning strategy, an empty byte array will be returned. | public ByteArray getBin() {
return bin;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getBin() {\r\n return bin;\r\n }",
"public List<B> getBins() {\n return ImmutableList.copyOf(bins);\n }",
"public byte[] getBinaryValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a hexBinary.\");\n }",
"public int getCurre... | [
"0.6934135",
"0.62298054",
"0.6112462",
"0.59259623",
"0.5872671",
"0.5872671",
"0.577242",
"0.57104164",
"0.5708837",
"0.57043093",
"0.56972384",
"0.5662027",
"0.56003946",
"0.559652",
"0.55211127",
"0.5492818",
"0.5490881",
"0.54681194",
"0.545419",
"0.54400885",
"0.5431127... | 0.74539673 | 0 |
Merge another statistic value into this one. IMPORTANT: This function cannot guarantee that the Statistic will be available. Any variables needed from the statistic for merging must be serialized with the value. | @Override
public abstract void merge(Mergeable merge); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void merge(Statistics statistics) {\n Set<Entry<String, Integer>> entrySet = statistics.entrySet();\n for (Entry<String, Integer> entry : entrySet) {\n Integer integer = super.get(entry.getKey());\n if (integer == null) {\n super.put(entry.getKey(), entry.g... | [
"0.6307388",
"0.5872303",
"0.5827602",
"0.58118063",
"0.57905614",
"0.5709842",
"0.55931294",
"0.55504674",
"0.5534818",
"0.5442092",
"0.53840005",
"0.5382271",
"0.5377353",
"0.5360683",
"0.5247736",
"0.5245845",
"0.5189066",
"0.518483",
"0.51843214",
"0.513148",
"0.5125255",... | 0.50768316 | 26 |
Get the raw value of the statistic value. | public abstract R getValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getValue() {\n synchronized (mutex) {\n return statisticsAccumulator.getValue();\n }\n }",
"public T getRawValue(){\n return mValue;\n }",
"public float getRawValue() { return rawValue; }",
"public String getRawValue() {\n\t\treturn rawValue;\n\t}",
"publ... | [
"0.7558747",
"0.73277754",
"0.7179652",
"0.7157874",
"0.7157874",
"0.714421",
"0.7008364",
"0.6934364",
"0.69116044",
"0.6833923",
"0.6833923",
"0.6833923",
"0.6808738",
"0.6766456",
"0.6740271",
"0.6740271",
"0.6740271",
"0.67385113",
"0.6738344",
"0.6729871",
"0.6729608",
... | 0.0 | -1 |
Get a unique identifier for a value given a statistic id and bin. | public static byte[] getValueId(StatisticId<?> statisticId, ByteArray bin) {
return getValueId(statisticId, bin == null ? null : bin.getBytes());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static byte[] getValueId(StatisticId<?> statisticId, byte[] bin) {\n if (bin != null) {\n return Bytes.concat(\n statisticId.getUniqueId().getBytes(),\n StatisticId.UNIQUE_ID_SEPARATOR,\n bin);\n }\n return statisticId.getUniqueId().getBytes();\n }",
"io.dstore.va... | [
"0.8144008",
"0.58631694",
"0.5484327",
"0.5411611",
"0.5371733",
"0.51906765",
"0.5150989",
"0.5150989",
"0.5075614",
"0.4914513",
"0.48293275",
"0.48278472",
"0.48253855",
"0.4817232",
"0.4798008",
"0.47949558",
"0.47586483",
"0.4743696",
"0.4735144",
"0.47280213",
"0.47280... | 0.72082263 | 1 |
Get a unique identifier for a value given a statistic id and bin. | public static byte[] getValueId(StatisticId<?> statisticId, byte[] bin) {
if (bin != null) {
return Bytes.concat(
statisticId.getUniqueId().getBytes(),
StatisticId.UNIQUE_ID_SEPARATOR,
bin);
}
return statisticId.getUniqueId().getBytes();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static byte[] getValueId(StatisticId<?> statisticId, ByteArray bin) {\n return getValueId(statisticId, bin == null ? null : bin.getBytes());\n }",
"io.dstore.values.IntegerValue getValueCharacteristicId();",
"String getValueId();",
"io.dstore.values.IntegerValue getUnitId();",
"io.dstore.values.... | [
"0.72088426",
"0.5863006",
"0.548437",
"0.5413721",
"0.53709114",
"0.51897985",
"0.5150841",
"0.5150841",
"0.5077052",
"0.491582",
"0.48288637",
"0.48279107",
"0.48268208",
"0.48159525",
"0.4799644",
"0.47970858",
"0.47587496",
"0.47448325",
"0.47353056",
"0.47288805",
"0.472... | 0.8144947 | 0 |
Gets the value of the p property. | public byte[] getP() {
return p;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@java.lang.Override\n public double getPValue() {\n return pValue_;\n }",
"@java.lang.Override\n public double getPValue() {\n return pValue_;\n }",
"public int getP() {\r\n\t\treturn this.p;\r\n\t}",
"public Node getp() {\n\t\treturn this.p;\n\t}",
"double getPValue();",
"pub... | [
"0.77873087",
"0.7767033",
"0.76192313",
"0.73104566",
"0.7184734",
"0.70484746",
"0.7040441",
"0.68454003",
"0.68359494",
"0.68359494",
"0.6810032",
"0.67548996",
"0.67282915",
"0.67071295",
"0.6659389",
"0.6615434",
"0.65811455",
"0.65719426",
"0.6568781",
"0.6543627",
"0.6... | 0.69397324 | 7 |
Sets the value of the p property. | public void setP(byte[] value) {
this.p = ((byte[]) value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setP(Double p);",
"public void setP(boolean p) {\n\tthis.p = p;\n }",
"public void set(Point p)\r\n\t{\r\n\t\tx = p.x;\r\n\t\ty = p.y;\r\n\t}",
"public void setp(Node n) {\n\t\tp = n;\n\t}",
"protected abstract void setPpl();",
"public void setPrice(double p){\n\t\t// store into the instan... | [
"0.76836014",
"0.7476393",
"0.71101326",
"0.70879453",
"0.6846512",
"0.6748048",
"0.6716408",
"0.6695344",
"0.65774065",
"0.651728",
"0.64886236",
"0.64149386",
"0.63667536",
"0.6349376",
"0.62968665",
"0.6284684",
"0.62715",
"0.6267834",
"0.6266486",
"0.6264287",
"0.6263843"... | 0.6624439 | 8 |
Gets the value of the q property. | public byte[] getQ() {
return q;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.Integer getQ() {\n return q;\n }",
"public java.lang.Integer getQ() {\n return q;\n }",
"public int getQ() {\n System.out.println(\"q is: \" + q);\n return q;\n }",
"java.lang.String getQ();",
"public int getQ() {\n/* 579 */ return getCOSObject().getInt(COS... | [
"0.81816703",
"0.8174861",
"0.7803859",
"0.773745",
"0.7669024",
"0.749153",
"0.7491213",
"0.7348109",
"0.73126346",
"0.73126346",
"0.73043424",
"0.73043424",
"0.7118487",
"0.7044245",
"0.6940463",
"0.69343597",
"0.6844538",
"0.6776046",
"0.67623526",
"0.672615",
"0.6706271",... | 0.7525544 | 5 |
Sets the value of the q property. | public void setQ(byte[] value) {
this.q = ((byte[]) value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setQ(int q) {\n this.q = q;\n }",
"public void setQ(int q) {\n System.out.println(\"set q is: \" + q);\n this.q = q;\n }",
"public void setQ(int q) {\n/* 590 */ getCOSObject().setInt(COSName.Q, q);\n/* */ }",
"public void setQ(java.lang.Integer value) {\n this.q ... | [
"0.84386146",
"0.8380814",
"0.80377287",
"0.79645437",
"0.7917227",
"0.77576375",
"0.7154417",
"0.7152994",
"0.6866901",
"0.68059194",
"0.6760648",
"0.6620457",
"0.65751576",
"0.6573354",
"0.6566132",
"0.63851047",
"0.6380007",
"0.6257303",
"0.6219068",
"0.621607",
"0.6202922... | 0.7112446 | 8 |
Gets the value of the g property. | public byte[] getG() {
return g;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float getG() {\r\n\t\treturn g;\r\n\t}",
"public String getGg() {\n return gg;\n }",
"public int getG() {\r\n\t\treturn g;\r\n\t}",
"public GraphNOriented getG() {\n\t\treturn g;\n\t}",
"public double getG();",
"public Graphics2D getG() {\n return g;\n }",
"public final int g... | [
"0.8441654",
"0.8240713",
"0.8189151",
"0.8019785",
"0.7906872",
"0.7792431",
"0.75090784",
"0.7472265",
"0.73764783",
"0.7361499",
"0.73548806",
"0.7323186",
"0.7282255",
"0.72811687",
"0.7247539",
"0.71837306",
"0.7130426",
"0.7115948",
"0.7091692",
"0.7041255",
"0.7003136"... | 0.75251365 | 6 |
Sets the value of the g property. | public void setG(byte[] value) {
this.g = ((byte[]) value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setG(boolean g) {\n\tthis.g = g;\n }",
"public void setG(double aG);",
"public void setgVal(float value){\n this.gVal = value;\n }",
"public void SetG(byte num) {\r\n\t\tm_numG = num;\r\n\t}",
"public Builder setG(\n java.lang.String value) {\n if (value == null) {\n ... | [
"0.78406864",
"0.77870494",
"0.75759745",
"0.7350036",
"0.72092336",
"0.7008708",
"0.6971356",
"0.68854094",
"0.68055046",
"0.6776132",
"0.6670783",
"0.6627166",
"0.6611598",
"0.6576247",
"0.64844537",
"0.64600784",
"0.6453815",
"0.6417581",
"0.63966817",
"0.63916427",
"0.636... | 0.7093406 | 5 |
Gets the value of the y property. | public byte[] getY() {
return y;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Basic\n\tpublic double getY() {\n\t\treturn this.y;\n\t}",
"public final double getY() {\n return y;\n }",
"public double getY() {\n return this.y;\n }",
"public double getY() {\n return this.y;\n }",
"public double getY() {\n return this.y;\n }",
"public final do... | [
"0.8615417",
"0.85190547",
"0.8514193",
"0.8514193",
"0.8514193",
"0.85049486",
"0.8497639",
"0.84831107",
"0.8461678",
"0.8461678",
"0.8461678",
"0.8461678",
"0.8431619",
"0.8431518",
"0.8431518",
"0.8431518",
"0.8431518",
"0.8431518",
"0.8431518",
"0.8431518",
"0.8426306",
... | 0.0 | -1 |
Sets the value of the y property. | public void setY(byte[] value) {
this.y = ((byte[]) value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setY(double y) {\n this.y = y;\n }",
"public void setY(double y) {\n this.y = y;\n }",
"public void setY(double y) {\n this.y = y;\n }",
"public void setY(double value) {\n this.y = value;\n }",
"public void setY(double y) {\n this.y = y;\r\n }"... | [
"0.8659373",
"0.8659373",
"0.8659373",
"0.8656499",
"0.8644804",
"0.8620039",
"0.861971",
"0.85894585",
"0.8574628",
"0.85718215",
"0.85629725",
"0.85629725",
"0.85629725",
"0.85629725",
"0.8542204",
"0.8542204",
"0.8539351",
"0.8538712",
"0.85376847",
"0.85376847",
"0.853768... | 0.0 | -1 |
Gets the value of the j property. | public byte[] getJ() {
return j;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JValue getValue() {\n\t\treturn value;\n\t}",
"@JSProperty\n String getValue();",
"@JsProperty String getValue();",
"public String getJavaProperty() {\n return this.javaProperty;\n }",
"public String getJavaProperty() {\n return this.javaProperty;\n }",
"publ... | [
"0.7209528",
"0.6675019",
"0.6666698",
"0.65139496",
"0.65139496",
"0.65139496",
"0.65139496",
"0.65139496",
"0.65139496",
"0.65139496",
"0.65139496",
"0.65139496",
"0.65139496",
"0.65139496",
"0.64625955",
"0.6448576",
"0.6448576",
"0.6339001",
"0.6283392",
"0.62823194",
"0.... | 0.63616246 | 17 |
Sets the value of the j property. | public void setJ(byte[] value) {
this.j = ((byte[]) value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setJ(boolean j) {\n\tthis.j = j;\n }",
"public Builder setJ(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n j_ = value;\n onChanged();\n return this;\n }",
"public void set(long j, CoreMorphComponent coreMorphCom... | [
"0.7268744",
"0.6999944",
"0.6710724",
"0.6647741",
"0.61775076",
"0.61400354",
"0.60362816",
"0.5935931",
"0.5912413",
"0.5868431",
"0.58132654",
"0.58103305",
"0.5757288",
"0.57542634",
"0.5742528",
"0.57288927",
"0.5707815",
"0.5704461",
"0.5680662",
"0.5628698",
"0.559676... | 0.6548221 | 4 |
Gets the value of the seed property. | public byte[] getSeed() {
return seed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getSeed(){\n\t\treturn this.seed;\n\t}",
"public long getSeed() {\n\t\treturn seed;\n\t}",
"public int getSeed() {\r\n return seed;\r\n }",
"public long getSeed() {\n return seed;\n }",
"public int getSeed() {\n return seed;\n }",
"public int getSeed() {\n retur... | [
"0.7912464",
"0.77782166",
"0.77646",
"0.77488303",
"0.7736865",
"0.7736865",
"0.75970304",
"0.7521018",
"0.74481016",
"0.74319994",
"0.7406129",
"0.73822856",
"0.7128769",
"0.6809321",
"0.6803381",
"0.6513593",
"0.64796007",
"0.62463444",
"0.6193956",
"0.61436903",
"0.613295... | 0.7474836 | 8 |
Sets the value of the seed property. | public void setSeed(byte[] value) {
this.seed = ((byte[]) value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSeed(int seed) {\r\n this.seed = seed;\r\n }",
"public void setSeed(int seed){\n this.seed = seed; \n }",
"void setSeed(final long seed);",
"public void setSeed(String seed) \n\t{\n\t}",
"void setSeed(long seed);",
"@ProgrammaticProperty\n public void setSeed(Strin... | [
"0.8168515",
"0.8093339",
"0.80398613",
"0.7982203",
"0.79729295",
"0.79715633",
"0.76411366",
"0.76376647",
"0.75111437",
"0.7508468",
"0.74503314",
"0.73422104",
"0.7307435",
"0.72359437",
"0.7214119",
"0.7213189",
"0.7200858",
"0.7122931",
"0.700882",
"0.69982255",
"0.6956... | 0.73275477 | 12 |
Gets the value of the pgenCounter property. | public byte[] getPgenCounter() {
return pgenCounter;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCounter() {\r\n return counter;\r\n }",
"public Integer getCounter() {\n return counter;\n }",
"public int getCounter() {\n return counter;\n }",
"public int getCounter()\n {\n return counter;\n }",
"public int getcounter() {\n\t\treturn counter;\r\n... | [
"0.7360342",
"0.7342341",
"0.73050153",
"0.72756445",
"0.7233219",
"0.7176143",
"0.71560264",
"0.707168",
"0.7027753",
"0.7023672",
"0.69656724",
"0.68575114",
"0.68430847",
"0.6808451",
"0.664281",
"0.66239995",
"0.6510341",
"0.65075195",
"0.65039736",
"0.6438796",
"0.643841... | 0.81643915 | 0 |
Sets the value of the pgenCounter property. | public void setPgenCounter(byte[] value) {
this.pgenCounter = ((byte[]) value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCounter(int value) { \n\t\tthis.count = value;\n\t}",
"public void setCounter(int number){\n this.counter = number;\n }",
"public void setCounter(int counter) {\n this.counter = counter;\n }",
"public void setCounter(Short __newValue)\n {\n counter = __newValue;\n }",
... | [
"0.7054327",
"0.68056107",
"0.67533237",
"0.6666345",
"0.63875735",
"0.63446015",
"0.6276782",
"0.62499803",
"0.615361",
"0.61285424",
"0.60847086",
"0.59471655",
"0.5927539",
"0.5927539",
"0.5927539",
"0.5926886",
"0.59233034",
"0.5900162",
"0.5875065",
"0.58384746",
"0.5825... | 0.76751095 | 0 |
create current page in site context | @BeforeEach
void setUp() throws Exception {
context.currentPage(context.create().page("/content/unittest/de_test/brand/de/section/page",
DummyAppTemplate.CONTENT.getTemplatePath()));
// create internal pages for unit tests
targetPage = context.create().page("/content/unittest/de_test/brand/de/section/content",
DummyAppTemplate.CONTENT.getTemplatePath());
context.create().page("/content/unittest/en_test/brand/en/section/content",
DummyAppTemplate.CONTENT.getTemplatePath());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Page createPage();",
"static BasePage getPageInstance(String page_name,HttpServletRequest request,\n HttpServletResponse response,HttpServlet servlet){\n HttpSession session = request.getSession();\n BasePage page = (BasePage)session.getAttribute(page_name);\n if(page == null){\n page = (B... | [
"0.6936305",
"0.6180616",
"0.590861",
"0.5903399",
"0.581583",
"0.5740249",
"0.56669146",
"0.5621876",
"0.5612353",
"0.5611501",
"0.55828303",
"0.55806774",
"0.5578163",
"0.5563675",
"0.5541877",
"0.5526426",
"0.5477117",
"0.54753846",
"0.5472465",
"0.5468136",
"0.5435344",
... | 0.54900134 | 16 |
Gets the newBarcode value for this Recollect. | public java.lang.String getNewBarcode() {
return newBarcode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getBarcode() {\n return barcode;\n }",
"public void setNewBarcode(java.lang.String newBarcode) {\n this.newBarcode = newBarcode;\n }",
"public java.lang.String getOrigBarcode() {\n return origBarcode;\n }",
"@Override\n\tpublic String getBarcode() {\n\t\t... | [
"0.7212085",
"0.7126803",
"0.6972071",
"0.6811402",
"0.62800103",
"0.6108412",
"0.6055938",
"0.59701896",
"0.5913713",
"0.5435815",
"0.53734154",
"0.53529346",
"0.53250253",
"0.53217304",
"0.5298247",
"0.5292806",
"0.52354556",
"0.5204435",
"0.5169632",
"0.51684475",
"0.51627... | 0.83194345 | 0 |
Sets the newBarcode value for this Recollect. | public void setNewBarcode(java.lang.String newBarcode) {
this.newBarcode = newBarcode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getNewBarcode() {\n return newBarcode;\n }",
"public void setBarcode(java.lang.String barcode) {\n this.barcode = barcode;\n }",
"public void setOrigBarcode(java.lang.String origBarcode) {\n this.origBarcode = origBarcode;\n }",
"public void setlbr_Barcod... | [
"0.6976102",
"0.6834082",
"0.63035935",
"0.6216954",
"0.59144574",
"0.5613283",
"0.5451062",
"0.54348207",
"0.54278255",
"0.54278255",
"0.5293119",
"0.51538986",
"0.5120407",
"0.5105998",
"0.5103611",
"0.5090916",
"0.5052015",
"0.50378853",
"0.50226057",
"0.50038826",
"0.4991... | 0.8270125 | 0 |
Gets the origBarcode value for this Recollect. | public java.lang.String getOrigBarcode() {
return origBarcode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOrigBarcode(java.lang.String origBarcode) {\n this.origBarcode = origBarcode;\n }",
"public java.lang.String getBarcode() {\n return barcode;\n }",
"@Override\n\tpublic String getBarcode() {\n\t\treturn product.getBarcode();\n\t}",
"@Override\r\n\tpublic String getBarcode()... | [
"0.70637697",
"0.6430243",
"0.6045108",
"0.5973148",
"0.59167117",
"0.5830241",
"0.5765253",
"0.5714787",
"0.57112116",
"0.56976485",
"0.5666838",
"0.5655187",
"0.5609781",
"0.5609781",
"0.557213",
"0.5504552",
"0.5490746",
"0.5489701",
"0.54828453",
"0.5475478",
"0.54543674"... | 0.8532267 | 0 |
Sets the origBarcode value for this Recollect. | public void setOrigBarcode(java.lang.String origBarcode) {
this.origBarcode = origBarcode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getOrigBarcode() {\n return origBarcode;\n }",
"public SpriteSheetSplitter setOrigRow(int origRow) {\n this.origRow = origRow;\n return this;\n }",
"public void setBarcode(java.lang.String barcode) {\n this.barcode = barcode;\n }",
"public void set... | [
"0.69737345",
"0.5775121",
"0.56998295",
"0.55731714",
"0.5360064",
"0.5321606",
"0.5270843",
"0.5270843",
"0.5268244",
"0.5268244",
"0.5248614",
"0.52083915",
"0.51197374",
"0.5049633",
"0.50152624",
"0.49912766",
"0.4917591",
"0.49123293",
"0.48636204",
"0.48511732",
"0.484... | 0.8449243 | 0 |
Gets the fname value for this Recollect. | public java.lang.String getFname() {
return fname;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFname() {\n\t\treturn fname;\n\t}",
"public String getFname() {\n\t\treturn fname;\n\t}",
"public String getFname() {\n return fname;\n }",
"public String getFname() {\n\treturn fname;\n}",
"public final String getFileName() {\n\n\t\treturn getValue(FILE_NAME);\n\t}",
"private ... | [
"0.7329784",
"0.7329784",
"0.73275",
"0.71702486",
"0.6954444",
"0.69277483",
"0.69160265",
"0.6886714",
"0.6869155",
"0.68112457",
"0.6778041",
"0.674482",
"0.6730875",
"0.6674361",
"0.66699994",
"0.6663424",
"0.66589",
"0.66589",
"0.6658597",
"0.6632049",
"0.66226506",
"0... | 0.7499028 | 0 |
Sets the fname value for this Recollect. | public void setFname(java.lang.String fname) {
this.fname = fname;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFname(String fname) {\n\tthis.fname = fname;\n}",
"public void setFname(String fname) {\n\t\tthis.fname = fname;\n\t}",
"public void setFirstName(String fname) {\n\t\t System.out.println(\"method setFirstName(String fname) called.\");\n\t\t}",
"public void setFilename(String f){\n\t\tfilena... | [
"0.7497595",
"0.7405594",
"0.6551417",
"0.64072835",
"0.63209945",
"0.6311531",
"0.61983943",
"0.6147238",
"0.6087477",
"0.60704994",
"0.6040466",
"0.603715",
"0.59797764",
"0.5975232",
"0.5931789",
"0.5908475",
"0.58684623",
"0.5853198",
"0.5853198",
"0.5848328",
"0.5823314"... | 0.7500638 | 0 |
Gets the lname value for this Recollect. | public java.lang.String getLname() {
return lname;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLname() {\n\t\treturn lname;\n\t}",
"public String getlName() {\n return lName;\n }",
"public String getLName() {\n return LName;\n }",
"public String getLname() {\n\treturn lname;\n}",
"@Override\n public String getLName() {\n\n if(this.lName == null){\n\n ... | [
"0.8286377",
"0.80547243",
"0.7954388",
"0.785606",
"0.7481788",
"0.6976693",
"0.6828128",
"0.6769852",
"0.6751615",
"0.66262233",
"0.65657324",
"0.6480014",
"0.64045084",
"0.62573314",
"0.62302524",
"0.6175277",
"0.6104211",
"0.60661596",
"0.6014891",
"0.6013431",
"0.6012295... | 0.838542 | 0 |
Sets the lname value for this Recollect. | public void setLname(java.lang.String lname) {
this.lname = lname;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLname(String lname) {\n\t\tthis.lname = lname;\n\t}",
"public void setLname(String lname) {\n\tthis.lname = lname;\n}",
"public void setlName(String lName) {\n this.lName = lName;\n }",
"public void setLName(String LName) {\n this.LName = LName;\n }",
"public void setLast... | [
"0.798818",
"0.7742935",
"0.7709138",
"0.7341884",
"0.6514182",
"0.64869004",
"0.64473397",
"0.6340216",
"0.6180081",
"0.61612606",
"0.61465156",
"0.6089804",
"0.6059788",
"0.5829886",
"0.57668704",
"0.57615465",
"0.5621207",
"0.5600429",
"0.559709",
"0.55911595",
"0.5512762"... | 0.80364347 | 0 |
Gets the custNo value for this Recollect. | public java.lang.String getCustNo() {
return custNo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCustomerNo() {\n\t\treturn this.customerNo;\r\n\t}",
"public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}",
"public java.lang.String getCustIdNbr() {\n return custIdNbr;\n }",
"public Long getCustId() {\n\t\treturn custId;\n\t}",
"public Long getCustId() {\n\t\treturn c... | [
"0.798102",
"0.7853008",
"0.7796583",
"0.7667037",
"0.7667037",
"0.7620268",
"0.7609343",
"0.75489277",
"0.7535422",
"0.74886656",
"0.74182606",
"0.7287693",
"0.7287693",
"0.72147256",
"0.717803",
"0.708837",
"0.7062546",
"0.7055944",
"0.70318925",
"0.70129627",
"0.6976902",
... | 0.86681175 | 0 |
Sets the custNo value for this Recollect. | public void setCustNo(java.lang.String custNo) {
this.custNo = custNo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCustID(String custID) {\r\n this.custID = custID;\r\n }",
"public void setCustId(Long custId) {\n this.custId = custId;\n }",
"public void setCustIdNbr(java.lang.String custIdNbr) {\n this.custIdNbr = custIdNbr;\n }",
"public void setCustId(Long custId) {\n\t\tthi... | [
"0.70848507",
"0.70601946",
"0.6996373",
"0.69684327",
"0.69570446",
"0.68757546",
"0.6721028",
"0.6721028",
"0.65643495",
"0.65364593",
"0.65335524",
"0.6452107",
"0.6415179",
"0.64065903",
"0.63989526",
"0.6372439",
"0.6347605",
"0.63191664",
"0.6301135",
"0.6301135",
"0.62... | 0.8361933 | 0 |
Return type metadata object | public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MetadataType getType();",
"public MetadataType getType() {\n return type;\n }",
"public MilanoTypeMetadata.TypeMetadata getMetadata()\n {\n if (typeMetadata == null) {\n return null;\n }\n\n return typeMetadata;\n }",
"private Metadata getMetadata(RubyModule type)... | [
"0.7969707",
"0.7373198",
"0.7358018",
"0.7090138",
"0.67353225",
"0.67259765",
"0.66725683",
"0.65644145",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",
"0.6543223",... | 0.0 | -1 |
Created by rookie on 2018/5/9. | public interface BoardDetailAPI {
//https//api.huaban.com/boards/3514299
//获取画板的详情
@GET("boards/{boardId}")
Observable<BoardDetailBean> httpsBoardDetailRx(@Header(Constant.Authorization) String authorization, @Path("boardId") String boardId);
//https//api.huaban.com/boards/19196160/pins?limit=40
//获取画板的图片集合
@GET("boards/{boardId}/pins")
Observable<ListPinsBean> httpsBoardPinsRx(@Header(Constant.Authorization) String authorization, @Path("boardId") String boardId, @Query("limit") int limit);
//https//api.huaban.com/boards/19196160/pins?limit=40&max=508414882
//获取画板的图片集合 根据上一个图片的id继续加载
@GET("boards/{boardId}/pins")
Observable<ListPinsBean> httpsBoardPinsMaxRx(@Header(Constant.Authorization) String authorization, @Path("boardId") String boardId, @Query("max") int max, @Query("limit") int limit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n... | [
"0.6183833",
"0.5994123",
"0.58686787",
"0.58349425",
"0.57799935",
"0.57799935",
"0.57149357",
"0.5711111",
"0.56623966",
"0.5657953",
"0.5656402",
"0.5652883",
"0.5652759",
"0.5645856",
"0.5645015",
"0.5634486",
"0.56271887",
"0.56009763",
"0.55765975",
"0.55746067",
"0.556... | 0.0 | -1 |
ProgressDialog dialog = new ProgressDialog(getContext()); | @NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
Dialog dialog = new Dialog(getContext(), R.style.alert_dialog_style);
dialog.setCancelable(false);
dialog.setCanceledOnTouchOutside(false);
View view = View.inflate(getContext(), R.layout.loading, null);
dialog.setContentView(view);
return dialog;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showProgressDialog(){\n progressDialog=ProgressDialog.show(context,\"\",\"Loading...Please wait...\");\n\n\n }",
"private void progressStuff() {\n cd = new ConnectionDetector(getActivity());\n parser = new JSONParser();\n progress = new ProgressDialog(getActivity());\n... | [
"0.8560319",
"0.7817471",
"0.7680143",
"0.7611914",
"0.7585119",
"0.7544489",
"0.7536087",
"0.74895865",
"0.74892575",
"0.7392993",
"0.7374972",
"0.7361504",
"0.7361504",
"0.73139167",
"0.7278869",
"0.7274971",
"0.7266749",
"0.7259804",
"0.72381413",
"0.72223514",
"0.7200582"... | 0.0 | -1 |
create and embed the hazelcast server (you can use the hazelcast client if you want to connect to external hazelcast server) | public void boot() throws Exception {
HazelcastInstance hz = Hazelcast.newHazelcastInstance();
// setup the hazelcast idempontent repository which we will use in the route
HazelcastIdempotentRepository repo = new HazelcastIdempotentRepository(hz, "camel");
main = new Main();
main.enableHangupSupport();
// bind the hazelcast repository to the name myRepo which we refer to from the route
main.bind("myRepo", repo);
// add the route and and let the route be named BAR and use a little delay when processing the files
main.addRouteBuilder(new FileConsumerRoute("BAR", 100));
main.run();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n \t\tprotected void setup(Context context){\n \t\t\tint port = 5701 + context.getTaskAttemptID().getId()%numInstances;\n \t\t\t//System.out.println(\"Connecting to port \" + port);\n \t\t\tClientConfig clientConfig = new ClientConfig();\n \t\t\tclientConfig.addAddress(\"127.0.0.1:\" + port);\n \t\t\tthi... | [
"0.61372894",
"0.61160034",
"0.5908541",
"0.5816149",
"0.5772958",
"0.5758088",
"0.56785804",
"0.56635433",
"0.56485337",
"0.557094",
"0.5569827",
"0.55517095",
"0.55154395",
"0.55007505",
"0.5499938",
"0.5499539",
"0.54630905",
"0.5459307",
"0.5458996",
"0.5433782",
"0.54298... | 0.0 | -1 |
System.in: read the input from keyboard. Special method Constructor | public CircularQueue () { // The constructor name should be exactly the same as the class name.
/* No data type: no int.
* No return type: no void.*/
head = -1;
tail = -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyInput() {\r\n\t\tthis.scanner = new Scanner(System.in);\r\n\t}",
"public InputReader() {\n reader = new Scanner(System.in);\n }",
"public CLI(String inputCommand)\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = inputCommand;\r\n\t\tin = new Scanner(new BufferedReader(new InputS... | [
"0.7705769",
"0.7409338",
"0.7088884",
"0.7083906",
"0.7076671",
"0.70632786",
"0.697511",
"0.67072153",
"0.6689846",
"0.66842186",
"0.6681006",
"0.6681006",
"0.66731554",
"0.6613206",
"0.6609553",
"0.6599307",
"0.65828747",
"0.6581859",
"0.6538905",
"0.64542073",
"0.6446167"... | 0.0 | -1 |
/ / / / / / / / / / | public void answer(Properties answers) {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50... | [
"0.5540896",
"0.5446543",
"0.5227331",
"0.52141076",
"0.5111389",
"0.50963986",
"0.50654864",
"0.5038032",
"0.50336593",
"0.501189",
"0.50033337",
"0.5002645",
"0.4999724",
"0.4997505",
"0.49938273",
"0.4988672",
"0.4982446",
"0.49785286",
"0.4967535",
"0.49578318",
"0.491564... | 0.0 | -1 |
/ / / / / / / / / / | public void sendQuestion() {
/* 55 */ StringBuilder buf = new StringBuilder();
/* 56 */ buf.append(getBmlHeader());
/* */
/* 58 */ buf.append("label{text=\"\"}");
/* 59 */ buf.append("label{type=\"bold\";text=\"General\"}");
/* 60 */ buf.append("label{text=\" * I've keep some of the ways that HFC was used for skill increases. But no junk food, \"}");
/* 61 */ buf.append("label{text=\" e.g. nails are not used as an ingredient and if present in a container, they will stop the \"}");
/* 62 */ buf.append("label{text=\" food item being made.\"}");
/* 63 */ buf.append("label{text=\" * Meats now have a material, e.g. Meat, Dragon and Meat, Game\"}");
/* 64 */ buf.append("label{text=\" o As you can see it does not use the animal type, but a category as we have so \"}");
/* 65 */ buf.append("label{text=\" many animal types. Some of the categories are: (there are 16 total)\"}");
/* 66 */ buf.append("label{text=\" . Dragon\"}");
/* 67 */ buf.append("label{text=\" . Game\"}");
/* 68 */ buf.append("label{text=\" . Human\"}");
/* 69 */ buf.append("label{text=\" . Humanoid\"}");
/* 70 */ buf.append("label{text=\" . Snake\"}");
/* 71 */ buf.append("label{text=\" * Meat and fillets can now be put in FSB and Crates.\"}");
/* 72 */ buf.append("label{text=\" * Fish and fish fillets can now be put in FSB and Crates.\"}");
/* 73 */ buf.append("label{text=\" * Existing Zombified milk will lose its zombie status. New zombie milk should be fine.\"}");
/* 74 */ buf.append("label{text=\" * You will be able to seal some containers so long as they only have one liquid in them, \"}");
/* 75 */ buf.append("label{text=\" this will stop their decay.\"}");
/* 76 */ buf.append("label{text=\" o Small and Large Amphoria.\"}");
/* 77 */ buf.append("label{text=\" o Pottery Jar.\"}");
/* 78 */ buf.append("label{text=\" o Pottery Flask.\"}");
/* 79 */ buf.append("label{text=\" o Water Skin.\"}");
/* 80 */ buf.append("label{text=\" o Small Barrel.\"}");
/* 81 */ buf.append("harray{label{text=\" * \"};label{type=\"bold\";text=\"Bees\"};label{text=\" have been added.\"}}");
/* */
/* */
/* 84 */ buf.append("harray{label{text=\" * Cooking will now be from \"};label{type=\"bold\";text=\"recipes\"};label{text=\", this does not mean that you cannot continue \"}}");
/* */
/* */
/* 87 */ buf.append("label{text=\" cooking like you used to though, although some recipes will have changed.\"}");
/* 88 */ buf.append("harray{label{text=\" * A personal \"};label{type=\"bold\";text=\"cookbook\"};label{text=\" is now available which has the recipes that you know about in.\"}}");
/* */
/* */
/* 91 */ buf.append("label{text=\" * Hens eggs can now be found when foraging on grass tiles. And you will be able to put\"}");
/* 92 */ buf.append("label{text=\" in FSB, but that makes them infertile.\"}");
/* 93 */ buf.append("label{text=\" * Old containers and tools - now with more use.\"}");
/* 94 */ buf.append("label{text=\" o Sauce pan - had to change size of this, but that means some recipes need a \"}");
/* 95 */ buf.append("label{text=\" new one which is larger.\"}");
/* 96 */ buf.append("label{text=\" o Pottery bowl - can now be used to hold liquids as well, a lot of recipes use this.\"}");
/* 97 */ buf.append("label{text=\" o Hand - used to make some mixes, and other things. Note if a recipe says a \"}");
/* 98 */ buf.append("label{text=\" hand must be used, actually any active item will work.\"}");
/* 99 */ buf.append("label{text=\" o Fork - how else were you going to mix some stuff!\"}");
/* 100 */ buf.append("label{text=\" o Knife - used a lot in food preparation.\"}");
/* 101 */ buf.append("label{text=\" o Spoon - An alternative way to mix things (so same ingredients can be used in \"}");
/* 102 */ buf.append("label{text=\" multiple recipes. Also can be used to scoop.\"}");
/* 103 */ buf.append("label{text=\" o Press - can be used to squash something.\"}");
/* 104 */ buf.append("label{text=\" o Branch - branching out, could be used as a spit ...\"}");
/* 105 */ buf.append("label{text=\" * New containers and tools\"}");
/* 106 */ buf.append("label{text=\" o Stoneware. - used to make things like breads, biscuits etc\"}");
/* 107 */ buf.append("label{text=\" o Cake tin - used to make cakes\"}");
/* 108 */ buf.append("label{text=\" o Pie dish - used to make pies and tarts\"}");
/* 109 */ buf.append("label{text=\" o Roasting dish - used to roast food.\"}");
/* 110 */ buf.append("label{text=\" o Plate - used to make salads and sandwiches on.\"}");
/* 111 */ buf.append("label{text=\" o Mortar+Pestle - used to grind small things (e.g. spices)\"}");
/* 112 */ buf.append("label{text=\" o Measuring Jug - used to get a specific amount of liquid, its volume can be \"}");
/* 113 */ buf.append("label{text=\" adjusted (volume is same as weight for this).\"}");
/* 114 */ buf.append("label{text=\" o Still - used for distilling.\"}");
/* 115 */ buf.append("label{text=\" * New crops\"}");
/* 116 */ buf.append("label{text=\" o Carrots\"}");
/* 117 */ buf.append("label{text=\" o Cabbage\"}");
/* 118 */ buf.append("label{text=\" o Tomatos\"}");
/* 119 */ buf.append("label{text=\" o Sugar Beet\"}");
/* 120 */ buf.append("label{text=\" o Lettuce\"}");
/* 121 */ buf.append("label{text=\" o Peas\"}");
/* 122 */ buf.append("label{text=\" o Cucumbers\"}");
/* 123 */ buf.append("label{text=\" * New Bush\"}");
/* 124 */ buf.append("label{text=\" o Hazelnut bush - now you know where the hazelnuts come from.\"}");
/* 125 */ buf.append("label{text=\" * New Tree\"}");
/* 126 */ buf.append("label{text=\" o Orange tree - because it seemed like a good idea.\"}");
/* 127 */ buf.append("harray{label{text=\" * Spices - all can be planted in a \"};label{type=\"bold\";text=\"planter\"}label{text=\", except Nutmeg.\"}}");
/* */
/* */
/* 130 */ buf.append("label{text=\" o Cumin\"}");
/* 131 */ buf.append("label{text=\" o Ginger\"}");
/* 132 */ buf.append("label{text=\" o Paprika\"}");
/* 133 */ buf.append("label{text=\" o Turmeric\"}");
/* 134 */ buf.append("harray{label{text=\" * New Herbs - all Herbs can be planted in a \"};label{type=\"bold\";text=\"planter\"};}");
/* */
/* 136 */ buf.append("label{text=\" o Fennel\"}");
/* 137 */ buf.append("label{text=\" o Mint\"}");
/* 138 */ buf.append("label{text=\" * New items that are only found by forage / botanize. Note all above spices and herbs \"}");
/* 139 */ buf.append("label{text=\" and the new vegs can be found this way as well)\"}");
/* 140 */ buf.append("label{text=\" o Cocoa bean\"}");
/* 141 */ buf.append("label{text=\" o Nutmeg (note this is a spice but cannot be planted in a planter)\"}");
/* 142 */ buf.append("label{text=\" o Raspberries\"}");
/* 143 */ buf.append("label{text=\" o Hazelnut sprout.\"}");
/* 144 */ buf.append("label{text=\" o Orange sprout.\"}");
/* 145 */ buf.append("label{text=\" * Rocksalt\"}");
/* 146 */ buf.append("label{text=\" o Rock tiles that would of produced salt when mining will now be shown as \"}");
/* 147 */ buf.append("label{text=\" Rocksalt veins (this may take a day or two to show), but have a limited life (e.g. \"}");
/* 148 */ buf.append("label{text=\" you get 45-50 rocksalt from one).\"}");
/* 149 */ buf.append("label{text=\" o The Rocksalt can then be ground into salt using a grindstone. You can get\"}");
/* 150 */ buf.append("label{text=\" more than one salt from each Rocksalt bepending on your milling skill.\"}");
/* 151 */ buf.append("label{text=\" o Veins that had salt in, will be unaffected, e.g.you will still be able to get the \"}");
/* 152 */ buf.append("label{text=\" random salt when mining them.\"}");
/* 153 */ buf.append("label{text=\" * Trellis\"}");
/* 154 */ buf.append("label{text=\" o A new trellis has been added for hops.\"}");
/* 155 */ buf.append("label{text=\" o Trellis can now be harvested when their produce is in season (except ivy ones \"}");
/* 156 */ buf.append("label{text=\" don't have a season).\"}");
/* 157 */ buf.append("label{text=\" o To help plant your trellis in nice straight lines, you can plant them using a wall, \"}");
/* 158 */ buf.append("label{text=\" fence or tile border. And have three options, on left, center and on right.\"}");
/* 159 */ buf.append("label{text=\" o There is a limit of 4 planted trellis per tile. Any extras that are currently planted \"}");
/* 160 */ buf.append("label{text=\" on same tile will become unplanted.\"}");
/* 161 */ buf.append("label{text=\" * Flowers\"}");
/* 162 */ buf.append("label{text=\" o Flowers can now be used in some recipes, and therefore will now only go into \"}");
/* 163 */ buf.append("label{text=\" a food storage bin. This also applies to rose petals, oleander, lavender and \"}");
/* 164 */ buf.append("label{text=\" camellia.\"}");
/* 165 */ buf.append("label{text=\" o Any existing flowers in bulk storage bins are fine, you can still take them out,\"}");
/* 166 */ buf.append("label{text=\" but will not be able to put them back into the bulk storage bin, but they will go \"}");
/* 167 */ buf.append("label{text=\" into the food storage bin.\"}");
/* 168 */ buf.append("label{text=\" * The goodness of food\"}");
/* 169 */ buf.append("label{text=\" o Each meal made will have a bonus attached to it, so the same ingredients \"}");
/* 170 */ buf.append("label{text=\" making the same meal (in same cooker and same container) will end up with \"}");
/* 171 */ buf.append("label{text=\" this same bonus.\"}");
/* 172 */ buf.append("label{text=\" . This bonus will give a timed affinity to a skill, but can be different per \"}");
/* 173 */ buf.append("label{text=\" player, e.g. fish and chips may give a temp weaponsmithing affinity to \"}");
/* 174 */ buf.append("label{text=\" Joe, but to Tom it gives carpentry, (also may not give it to any skill).\"}");
/* 175 */ buf.append("label{text=\" o Nutrition has not been changed.\"}");
/* */
/* 177 */ buf.append("label{type=\"bold\";text=\"Bees\"}");
/* 178 */ buf.append("label{text=\" * Wild bee hives will appear in spring at random locations and they will vanish at the end \"}");
/* 179 */ buf.append("label{text=\" of the year (in winter). Note they will be in different locations each year.\"}");
/* 180 */ buf.append("label{text=\" * As time passes honey will be made in hives together with bees wax, the amount will\"}");
/* 181 */ buf.append("label{text=\" depend on nearby flowers, fields and trees.\"}");
/* 182 */ buf.append("label{text=\" * Each wild hive will start with one queen bee, this may increase by one every wurm \"}");
/* 183 */ buf.append("label{text=\" month, to a maximum of two, so long as the hive has over a certain amount of honey in \"}");
/* 184 */ buf.append("label{text=\" it. When there is two queen bees if there is a domestic hive nearby it may migrate to it.\"}");
/* 185 */ buf.append("label{text=\" * Domestic hives will be loadable. Even with a queen in it. So you can move it to \"}");
/* 186 */ buf.append("label{text=\" somewhere, e.g. your own deed. Watch out bees sting!\"}");
/* 187 */ buf.append("label{text=\" * Domestic hives that had a queen in it, will go dormant over the winter period and will \"}");
/* 188 */ buf.append("label{text=\" become active again in spring. But it is possible for the queen to die over winter if no \"}");
/* 189 */ buf.append("label{text=\" honey is left in the hive (Note can put sugar in hive to keep the queen alive.\"}");
/* 190 */ buf.append("label{text=\" * Honey ( and beeswax) will be collectable from hives.. But you may need a bee \"}");
/* 191 */ buf.append("label{text=\" smoker.. So bees do not sting you, note that this bee smoker is useful for other times, \"}");
/* 192 */ buf.append("label{text=\" like if you want to chop down a tree that has a hive, or load/unload a domestic hive \"}");
/* 193 */ buf.append("label{text=\" which has a queen in it.\"}");
/* */
/* 195 */ buf.append("label{type=\"bold\";text=\"Recipes\"}");
/* 196 */ buf.append("label{text=\" * As well as being able to examine a food container to see what it will make, you can \"}");
/* 197 */ buf.append("harray{label{text=\" also use \"};label{type=\"bold\";text=\"LORE\"};label{text=\", to get hints on what ingredient you could add into the container to be \"}}");
/* */
/* */
/* 200 */ buf.append("label{text=\" able to make something.\"}");
/* 201 */ buf.append("label{text=\" * Some more specialised recipes will call for a meat of a specific category, or a specific \"}");
/* 202 */ buf.append("label{text=\" fish, but most will use any meat or any fish or even any veg.\"}");
/* 203 */ buf.append("label{text=\" * Most new recipes only require one of each item, main exception is making sandwiches \"}");
/* 204 */ buf.append("label{text=\" which normally requires 2 slices of bread.\"}");
/* 205 */ buf.append("label{text=\" * Some recipes are an intermediate step, or some sauce which is used later e.g. there is \"}");
/* 206 */ buf.append("label{text=\" cake mix and white sauce.\"}");
/* 207 */ buf.append("label{text=\" * Lots of new food category types e.g.\"}");
/* 208 */ buf.append("label{text=\" o Curry\"}");
/* 209 */ buf.append("label{text=\" o Pizza\"}");
/* 210 */ buf.append("label{text=\" o Cookies\"}");
/* 211 */ buf.append("label{text=\" o Pie\"}");
/* 212 */ buf.append("label{text=\" o Tarts\"}");
/* 213 */ buf.append("label{text=\" o Biscuits\"}");
/* 214 */ buf.append("label{text=\" o Scones\"}");
/* 215 */ buf.append("label{text=\" o Salads\"}");
/* 216 */ buf.append("label{text=\" * And some of your old favorites like.\"}");
/* 217 */ buf.append("label{text=\" o Cakes\"}");
/* 218 */ buf.append("label{text=\" o Sandwiches\"}");
/* 219 */ buf.append("label{text=\" o Tea\"}");
/* 220 */ buf.append("label{text=\" o Wine\"}");
/* 221 */ buf.append("label{text=\" o Meal\"}");
/* 222 */ buf.append("label{text=\" * And there are some new drinks which will need distilling.\"}");
/* 223 */ buf.append("label{text=\" * Note you will need to experiment to find their recipes, but do note some items need a \"}");
/* 224 */ buf.append("label{text=\" mix before adding other items, e.g. you will now need a cake mix to make cakes.\"}");
/* 225 */ buf.append("label{text=\" * Some ingredients will only be found doing forage/botanize actions, whilst others, once \"}");
/* 226 */ buf.append("harray{label{text=\" found, they may be able to be planted as a \"};label{type=\"bold\";text=\"crop\"};label{text=\" or even in a \"};label{type=\"bold\";text=\"planter\"};label{text=\" (e.g. most spices \"}}");
/* */
/* */
/* */
/* */
/* 231 */ buf.append("label{text=\" and herbs can be planted in a planter).\"}");
/* 232 */ buf.append("label{text=\" o Fresh is an attribute of an item when just found from foraging or picking, if you \"}");
/* 233 */ buf.append("label{text=\" put it in a FSB it looses that attribute.\"}");
/* 234 */ buf.append("label{text=\" * Some recipes are nameable this means that whoever is the first to make the item for \"}");
/* 235 */ buf.append("label{text=\" that recipe, will have their name added to the front of that recipe name, e.g. if Pifa was \"}");
/* 236 */ buf.append("label{text=\" first to make a meat curry (assuming that was nameable) then it would show to \"}");
/* 237 */ buf.append("label{text=\" everyone, when they discover it, as ''Pifa's meat curry''.\"}");
/* 238 */ buf.append("label{text=\" * Note only one recipe can be named per person.\"}");
/* 239 */ buf.append("label{text=\" * Some recipes may only be makeable once you have that recipe in your cookbook,\"}");
/* 240 */ buf.append("label{text=\" these recipes are only available from killing certain creatures.\"}");
/* 241 */ buf.append("label{text=\" * Recipes can be inscribed onto papryus (or paper), to do this you need to be looking at\"}");
/* 242 */ buf.append("label{text=\" the recipe in your cookbook, and then use the reed pen on a blank papryus (or paper).\"}");
/* 243 */ buf.append("label{text=\" o You can then mail these or trade them to others, where they can add it to their\"}");
/* 244 */ buf.append("label{text=\" cookbook, if they don't know it, by either reading the recipe and selecting to add\"}");
/* 245 */ buf.append("label{text=\" to their cookbook or activate it and r-click on the cookbook menu option.\"}");
/* */
/* 247 */ buf.append("label{type=\"bold\";text=\"Planter\"}");
/* 248 */ buf.append("label{text=\" * Items can be planted in a planter, e.g. a herb or a spice (not all spices).\"}");
/* 249 */ buf.append("label{text=\" * The planted item will start growing.\"}");
/* 250 */ buf.append("label{text=\" * After a while it will be available to be harvested.\"}");
/* 251 */ buf.append("label{text=\" * Harvesting will be available daily,\"}");
/* 252 */ buf.append("label{text=\" * Each time you harvest it will prolong its life\"}");
/* 253 */ buf.append("label{text=\" * Eventually it will get too woody to be harvested, then it is time to start afresh.\"}");
/* */
/* 255 */ buf.append("label{type=\"bold\";text=\"LORE\"}");
/* 256 */ buf.append("label{text=\"Using LORE on a container, will let you know what could be made, e.g.\"}");
/* 257 */ buf.append("label{text=\" * If the contents match a known recipe (known by you that is). You would get a message \"}");
/* 258 */ buf.append("label{text=\" like:\"}");
/* 259 */ buf.append("label{text=\" o 'The ingredients in the frying pan would make an omlette when cooked'.\"}");
/* 260 */ buf.append("label{text=\" * If the contents match an unknown recipe. Message would be like: \"}");
/* 261 */ buf.append("label{text=\" o 'You think this may well work when cooked'.\"}");
/* 262 */ buf.append("label{text=\" * If the contents would make any recipe but has the incorrect amount of a liquid then \"}");
/* 263 */ buf.append("label{text=\" you would get something like:\"}");
/* 264 */ buf.append("label{text=\" o 'The ingredients in the saucepan would make tea when cooked, but...'\"}");
/* 265 */ buf.append("label{text=\" 'There is too much water, try between 300g and 400g.'\"}");
/* 266 */ buf.append("label{text=\" * Partial Matches\"}");
/* 267 */ buf.append("label{text=\" o It performs checks in this order \"}");
/* 268 */ buf.append("label{text=\" . Unknown recipe that is not nameable.\"}");
/* 269 */ buf.append("label{text=\" . Unknown recipe that is nameable.\"}");
/* 270 */ buf.append("label{text=\" . Known recipe that is not nameable.\"}");
/* 271 */ buf.append("label{text=\" . Known recipe that is nameable.\"}");
/* 272 */ buf.append("label{text=\" o If the contents form part of any recipe, it will give a hint as to what to add to \"}");
/* 273 */ buf.append("label{text=\" make that recipe. E.g. 'have you tried adding a chopped onion?'.\"}");
/* 274 */ buf.append("label{text=\" . Note the recipe is picked at random from a list of possible recipes and \"}");
/* 275 */ buf.append("label{text=\" so is the shown ingredient.\"}");
/* */
/* 277 */ buf.append("label{type=\"bold\";text=\"Cookbook\"}");
/* 278 */ buf.append("label{text=\" * Every person has a cookbook, where your known recipes are shown.\"}");
/* 279 */ buf.append("label{text=\" * Some recipes are known by everyone by default, you have to find the others and \"}");
/* 280 */ buf.append("label{text=\" make them for them to appear in your cookbook..\"}");
/* 281 */ buf.append("label{text=\" * The initial page of your cookbook allows you to select what recipes to view, i.e. \"}");
/* 282 */ buf.append("label{text=\" o Target action - these are the ones where you use one item on another, e.g. \"}");
/* 283 */ buf.append("label{text=\" grinding cereals to make flour.\"}");
/* 284 */ buf.append("label{text=\" o Container action - these ones are when you use a tool of some kind on a \"}");
/* 285 */ buf.append("label{text=\" container to change the contents of the container into a different item. E.g. \"}");
/* 286 */ buf.append("label{text=\" using your hand on a pottery bowl which containers flour, water, salt and butter \"}");
/* 287 */ buf.append("label{text=\" to make pastry.\"}");
/* 288 */ buf.append("label{text=\" o Heat - these ones are your basic cooking recipes, where you put ingredients \"}");
/* 289 */ buf.append("label{text=\" into a food container, and put in an cooker and after the ingredients get hot the \"}");
/* 290 */ buf.append("label{text=\" container items change to the result, e.g. putting maple sap into a saucepan in \"}");
/* 291 */ buf.append("label{text=\" a lit oven, will result in maple syrup after sometime. Not all recipes work in all \"}");
/* 292 */ buf.append("label{text=\" cookers.\"}");
/* 293 */ buf.append("label{text=\" o Time - these ones are used for brewing.\"}");
/* 294 */ buf.append("label{text=\" * Also on the initial page you also have links to view recipes (that you know) by\"}");
/* 295 */ buf.append("label{text=\" o Tool - this gives a list of the tools that you know are used for cooking, selecting \"}");
/* 296 */ buf.append("label{text=\" a tool from that list will give you the known recipes that can be made from it.\"}");
/* 297 */ buf.append("label{text=\" o Cooker - this will give a list of cookers, and selecting a cooker from that list will \"}");
/* 298 */ buf.append("label{text=\" lead you to a list of known recipes that can be made in it\"}");
/* 299 */ buf.append("label{text=\" o Container - this will give you a list of containers that can be used by known \"}");
/* 300 */ buf.append("label{text=\" recipes, selecting one will then give a list of the known recipes that use that \"}");
/* 301 */ buf.append("label{text=\" container.\"}");
/* 302 */ buf.append("label{text=\" o Ingredients - gives a list of all your known ingredients, and again selecting one \"}");
/* 303 */ buf.append("label{text=\" of them will then show a list of known recipes that use that ingredient.\"}");
/* 304 */ buf.append("label{text=\" * Also you can search your recipes.\"}");
/* 305 */ buf.append("label{text=\" * From any list of recipes, you can select one and view what you think is used to make \"}");
/* 306 */ buf.append("label{text=\" that item\"}");
/* 307 */ buf.append("label{text=\" o Note that there are optional ingredients, and unless you have used them for an \"}");
/* 308 */ buf.append("label{text=\" ingredient, then they will not show in your version.\"}");
/* 309 */ buf.append("label{text=\" o Note that some recipes may use any type of meat, or fish, or veg, or herb, or \"}");
/* 310 */ buf.append("label{text=\" spice, when you attempt the same recipe with a different type, your recipe will \"}");
/* 311 */ buf.append("label{text=\" be updated to show that information, e.g. if your recipe says that it uses beef \"}");
/* 312 */ buf.append("label{text=\" meat, and you try with canine meat, then if it works, the recipe will update \"}");
/* 313 */ buf.append("label{text=\" to show any meat. \"}");
/* 314 */ buf.append("label{text=\" o Note that not all recipes can use all types.\"}");
/* */
/* 316 */ buf.append(createAnswerButton2());
/* 317 */ getResponder().getCommunicator().sendBml(480, 500, true, true, buf.toString(), 200, 200, 200, this.title);
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50... | [
"0.5541769",
"0.5447091",
"0.52284503",
"0.52142066",
"0.51102245",
"0.50959545",
"0.50605327",
"0.50371885",
"0.503437",
"0.5012711",
"0.5003366",
"0.5003288",
"0.4998852",
"0.4996254",
"0.4989499",
"0.49863338",
"0.49803245",
"0.4978323",
"0.4968147",
"0.49572036",
"0.49168... | 0.0 | -1 |
/ / / / / / / / | public static String getInfo() {
/* 327 */ return "";
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void b... | [
"0.5505104",
"0.5413729",
"0.52969015",
"0.52391857",
"0.52056867",
"0.5147029",
"0.510248",
"0.50758827",
"0.50382483",
"0.5030172",
"0.5009637",
"0.49822485",
"0.49818277",
"0.4978501",
"0.49747092",
"0.49631736",
"0.49385124",
"0.49294057",
"0.49037725",
"0.4894048",
"0.48... | 0.0 | -1 |
TODO Need to find a way to NOT make bins on a read. | public static AerospikeData forRead(Key key, Record record) {
if (record != null && record.bins.size() > 0) {
ArrayList<Bin> bins = new ArrayList<Bin>();
for (Map.Entry<String, Object> entry : record.bins.entrySet()) {
String keyString = entry.getKey();
Object value = entry.getValue();
Bin newBin;
if (value instanceof Map)
newBin = new Bin(keyString, Value.getAsMap((Map<?, ?>)value));
else if (value instanceof List)
newBin = new Bin(keyString, Value.getAsList((List<?>)value));
else
newBin = new Bin(keyString, Value.get(value));
bins.add(newBin);
}
return new AerospikeData(key, record, key.namespace, bins);
} else {
return new AerospikeData(key, record, key.namespace, Collections.<Bin> emptyList());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void computeHistogramBins() {\r\n int nBins = (int) Math.ceil(hismax / binWidth);\r\n histoBins = new double[nBins];\r\n for (int i = 0; i < nBins; i++) {\r\n histoBins[i] = binWidth * (double) i + binWidth;\r\n }\r\n }",
"List<String> getBins(String iisn);",
"... | [
"0.5637776",
"0.55992055",
"0.55932736",
"0.5525423",
"0.55098766",
"0.52859336",
"0.5261186",
"0.5249088",
"0.5232515",
"0.5181513",
"0.51561785",
"0.51512516",
"0.5112016",
"0.5096161",
"0.50914234",
"0.5083502",
"0.5083027",
"0.50682324",
"0.5065528",
"0.50593174",
"0.5058... | 0.45479238 | 57 |
Get the data model based on position | @Override
public void onBindViewHolder(@NonNull CategoryViewHolder holder, int position) {
Category category = mCategory.get(position);
// Set item views based on your views and data model
TextView textView = holder.categoryName;
textView.setText(category.getName());
View view_color = holder.categoryColor;
view_color.setBackgroundColor(Color.parseColor(category.getColor()));
holder.ll.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
CategoryDialog dialog = new CategoryDialog();
dialog.showAddDialog(context, category.getName(), mCategory, position);
mCategory.clear();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public GDModel getItem(int position) {\n return gdModels.get(position);\n }",
"E getData(int index);",
"DataModel getDataModel ();",
"public int getPosition() {\n return models.indexOf(activeModel);\n }",
"@Override\n\tpublic SquareLiveModel getItem(int position) {\n\t\treturn listData.get(po... | [
"0.62729365",
"0.6034401",
"0.6012218",
"0.59902734",
"0.5911215",
"0.5835577",
"0.5773302",
"0.5763661",
"0.57295835",
"0.5726535",
"0.56852335",
"0.5677004",
"0.56748164",
"0.5667507",
"0.56365865",
"0.5613897",
"0.5597387",
"0.55899763",
"0.55812466",
"0.5561298",
"0.55259... | 0.0 | -1 |
/ access modifiers changed from: private | public void restoreStartState() {
this.mBinding.start.setText(2131886150);
this.mBinding.start.setOnClickListener(new View.OnClickListener() {
/* class com.coolapk.market.view.settings.NetworkDiagnosisFragment.AnonymousClass2 */
@Override // android.view.View.OnClickListener
public void onClick(View view) {
NetworkDiagnosisFragment.this.printInfos();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.70449835",
"0.66486794",
"0.66335016",
"0.653496",
"0.6533346",
"0.63761777",
"0.6368446",
"0.6307136",
"0.6245059",
"0.6226098",
"0.6205431",
"0.6177708",
"0.61432046",
"0.6131612",
"0.6131612",
"0.61276823",
"0.61093545",
"0.6108141",
"0.6079337",
"0.6063139",
"0.6058146... | 0.0 | -1 |
/ access modifiers changed from: private | public void printInfos() {
this.mSubscribetion = collectInfos().compose(RxUtils.applyIOSchedulers()).doOnSubscribe(new Action0() {
/* class com.coolapk.market.view.settings.$$Lambda$NetworkDiagnosisFragment$AY9RSQ8MIxPePZBSBAu72rxrfT0 */
@Override // rx.functions.Action0
public final void call() {
NetworkDiagnosisFragment.this.lambda$printInfos$0$NetworkDiagnosisFragment();
}
}).doOnUnsubscribe(new Action0() {
/* class com.coolapk.market.view.settings.$$Lambda$NetworkDiagnosisFragment$exZQzWN1eoP6tEwD4jjwQz2DZfc */
@Override // rx.functions.Action0
public final void call() {
NetworkDiagnosisFragment.this.restoreStartState();
}
}).subscribe((Subscriber<? super R>) new Subscriber<CharSequence>() {
/* class com.coolapk.market.view.settings.NetworkDiagnosisFragment.AnonymousClass3 */
@Override // rx.Observer
public void onCompleted() {
NetworkDiagnosisFragment.this.mBinding.copy.setVisibility(0);
}
@Override // rx.Observer
public void onError(Throwable th) {
NetworkDiagnosisFragment.this.addText(StringUtils.emptyIfNull(th.getMessage()));
}
public void onNext(CharSequence charSequence) {
NetworkDiagnosisFragment.this.addText(charSequence);
}
@Override // rx.Subscriber
public void onStart() {
super.onStart();
NetworkDiagnosisFragment.this.mBinding.copy.setVisibility(4);
NetworkDiagnosisFragment networkDiagnosisFragment = NetworkDiagnosisFragment.this;
networkDiagnosisFragment.mConManager = (ConnectivityManager) networkDiagnosisFragment.getActivity().getSystemService("connectivity");
NetworkDiagnosisFragment networkDiagnosisFragment2 = NetworkDiagnosisFragment.this;
networkDiagnosisFragment2.mNetInfo = networkDiagnosisFragment2.mConManager.getActiveNetworkInfo();
NetworkDiagnosisFragment.this.clearText();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.70451087",
"0.66481936",
"0.66338545",
"0.6534467",
"0.6533057",
"0.63756114",
"0.6368523",
"0.63063055",
"0.6244554",
"0.62261415",
"0.62046665",
"0.61776316",
"0.6142759",
"0.6131381",
"0.6131381",
"0.61274433",
"0.610919",
"0.610797",
"0.60792845",
"0.6062989",
"0.60593... | 0.0 | -1 |
/ access modifiers changed from: private | public void addText(CharSequence charSequence) {
this.mBinding.text.append(charSequence);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.70451087",
"0.66481936",
"0.66338545",
"0.6534467",
"0.6533057",
"0.63756114",
"0.6368523",
"0.63063055",
"0.6244554",
"0.62261415",
"0.62046665",
"0.61776316",
"0.6142759",
"0.6131381",
"0.6131381",
"0.61274433",
"0.610919",
"0.610797",
"0.60792845",
"0.6062989",
"0.60593... | 0.0 | -1 |
/ access modifiers changed from: private | public void clearText() {
this.mBinding.text.setText("");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.70451087",
"0.66481936",
"0.66338545",
"0.6534467",
"0.6533057",
"0.63756114",
"0.6368523",
"0.63063055",
"0.6244554",
"0.62261415",
"0.62046665",
"0.61776316",
"0.6142759",
"0.6131381",
"0.6131381",
"0.61274433",
"0.610919",
"0.610797",
"0.60792845",
"0.6062989",
"0.60593... | 0.0 | -1 |
/ access modifiers changed from: private | public void copyText() {
((ClipboardManager) getActivity().getSystemService("clipboard")).setPrimaryClip(ClipData.newPlainText("textFromCoolapk", this.mBinding.text.getText()));
Toast.show(getActivity(), "结果已复制");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.70449835",
"0.66486794",
"0.66335016",
"0.653496",
"0.6533346",
"0.63761777",
"0.6368446",
"0.6307136",
"0.6245059",
"0.6226098",
"0.6205431",
"0.6177708",
"0.61432046",
"0.6131612",
"0.6131612",
"0.61276823",
"0.61093545",
"0.6108141",
"0.6079337",
"0.6063139",
"0.6058146... | 0.0 | -1 |
/ access modifiers changed from: private | public boolean isNetworkConnected() {
NetworkInfo networkInfo = this.mNetInfo;
return networkInfo != null && networkInfo.isConnectedOrConnecting();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.70451087",
"0.66481936",
"0.66338545",
"0.6534467",
"0.6533057",
"0.63756114",
"0.6368523",
"0.63063055",
"0.6244554",
"0.62261415",
"0.62046665",
"0.61776316",
"0.6142759",
"0.6131381",
"0.6131381",
"0.61274433",
"0.610919",
"0.610797",
"0.60792845",
"0.6062989",
"0.60593... | 0.0 | -1 |
/ access modifiers changed from: private | public String getNetworkType() {
return this.mNetInfo.getTypeName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.70451087",
"0.66481936",
"0.66338545",
"0.6534467",
"0.6533057",
"0.63756114",
"0.6368523",
"0.63063055",
"0.6244554",
"0.62261415",
"0.62046665",
"0.61776316",
"0.6142759",
"0.6131381",
"0.6131381",
"0.61274433",
"0.610919",
"0.610797",
"0.60792845",
"0.6062989",
"0.60593... | 0.0 | -1 |
phase: sonlandirma sonuc yazdirma | private void sonucYazdir() {
alinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);
System.out.println("\nSınav Bitti..!\n" + soruSayisi + " sorudan " + dogruSayaci + " tanesine"
+ " doğru cevap verdiniz.\nPuan: " + alinanPuan + "/" + toplamPuan);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void beforePhase(PhaseEvent arg0) {\n\t\t\n\t}",
"public void setPhase(int phase) {\n this.phase = phase;\n }",
"@Override\r\n\tpublic void beforePhase(PhaseEvent event) {\n\t\t\r\n\t}",
"@Override\n public void beforePhase(PhaseEvent event) {\n\n }",
"public void setPhase(Int... | [
"0.6657464",
"0.64381075",
"0.6384758",
"0.63476175",
"0.62156063",
"0.61523384",
"0.6092891",
"0.60211253",
"0.6007185",
"0.6004437",
"0.59778756",
"0.58865696",
"0.5801096",
"0.57521456",
"0.57338506",
"0.5699501",
"0.56947917",
"0.56611186",
"0.565477",
"0.5627242",
"0.562... | 0.0 | -1 |
initialize low and high threshold | Color(double lowThreshold, double highThreshold){
this.lowThreshold = lowThreshold;
this.highThreshold = highThreshold;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setMinThreshold() {\n minThreshold = value + value * postBoundChange / 100;\n }",
"public void setThreshold(float threshold){\n this.threshold = threshold;\n }",
"public double getLowThreshold(){\n return lowThreshold;\n }",
"void setThreshold(float ... | [
"0.6963307",
"0.6809427",
"0.67588043",
"0.6735943",
"0.6661324",
"0.6390607",
"0.6368259",
"0.6362665",
"0.63069767",
"0.62580186",
"0.625211",
"0.61749405",
"0.6166029",
"0.6132568",
"0.6126925",
"0.6111925",
"0.6110281",
"0.61024785",
"0.60908043",
"0.60792994",
"0.6063309... | 0.6671592 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.