query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL("DROP TABLE IF EXISTS contacts"); onCreate(db); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
/encrypt the file to the test, assume that the encryption works
@Test public void testSimple() throws IOException, URISyntaxException, IllegalKeyException{ byte data [] = {97,98,99,100}; byte [] keys = {50}; EncryptionDecryptionManager man = new AlgoritemManaging(); CaesarEncryption ce = new CaesarEncryption(man); byte[] encData = ce.Encrypt(keys,data); CaesarDecryption c = new CaesarDecryption(man); byte[] decData = c.Decrypt(keys,encData); assert decData [0] == (byte)(97); assert decData [1] == (byte)(98); assert decData [2] == (byte)(99); assert decData [3] == (byte)(100); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OutputFile encryptingOutputFile();", "private void encryptFile() {\r\n\t\tisEncryptComplete = false;\r\n\t\tlogger.encryStart = System.currentTimeMillis();\r\n\t\tif(file == null || !file.exists())\r\n\t\t\treturn;\r\n\t\t\r\n\t\tMDFSEncoder encoder = new MDFSEncoder(file, n1, n2, k1, k2);\r\n\t\t/*\r\n\t\t * n1...
[ "0.7537755", "0.71297807", "0.70688665", "0.69567525", "0.6907073", "0.68282515", "0.6602245", "0.65566707", "0.65251505", "0.6517884", "0.6517469", "0.65136325", "0.64603865", "0.64576304", "0.6421841", "0.6303511", "0.6276945", "0.6255417", "0.62163615", "0.61460793", "0.61...
0.54681826
71
/ renamed from: com.clevertap.android.sdk.a1$a / compiled from: GifDecoder
interface C3069a { @C0193h0 /* renamed from: a */ Bitmap mo12204a(int i, int i2, Config config); /* renamed from: a */ void mo12205a(Bitmap bitmap); /* renamed from: a */ void mo12206a(byte[] bArr); /* renamed from: a */ void mo12207a(int[] iArr); /* renamed from: a */ int[] mo12208a(int i); /* renamed from: b */ byte[] mo12209b(int i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GIFMaker to(String path);", "private void decodeImageData() throws IOException {\n\t\t\tfinal int nullCode = -1;\n\t\t\tfinal int npix = getMetadata().getIw() * getMetadata().getIh();\n\n\t\t\tbyte[] pixels = getMetadata().getPixels();\n\n\t\t\tif (pixels == null || pixels.length < npix) pixels = new byte...
[ "0.6151048", "0.60870963", "0.6055344", "0.59613544", "0.5940271", "0.5911104", "0.58692616", "0.5851195", "0.5850173", "0.5834657", "0.5817841", "0.56895214", "0.56580603", "0.56215113", "0.562031", "0.5608958", "0.55990577", "0.55914605", "0.5573805", "0.55710405", "0.55703...
0.5321773
43
/ renamed from: a
void mo12205a(Bitmap bitmap);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
void mo12206a(byte[] bArr);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
void mo12207a(int[] iArr);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
int[] mo12208a(int i);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
byte[] mo12209b(int i);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: p
private C3082d1 m14717p() { if (this.f10953h == null) { this.f10953h = new C3082d1(); } return this.f10953h; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Term getP();", "public amj p()\r\n/* 543: */ {\r\n/* 544:583 */ return this.f;\r\n/* 545: */ }", "public int get_num_p(){ return num_p; }", "P createP();", "Subp getSubp();", "protected final IntervalNode getP() {\n\treturn(this.p);\n }", "public String toString() {\r\n\t\treturn \"P\...
[ "0.63192725", "0.62226987", "0.6078207", "0.58976746", "0.58608264", "0.58092344", "0.57654566", "0.57362974", "0.5733516", "0.57097775", "0.5690267", "0.5661336", "0.56583685", "0.5648228", "0.56100804", "0.55992156", "0.55980635", "0.5595445", "0.55693704", "0.5567835", "0....
0.0
-1
/ renamed from: q
private Bitmap m14718q() { Bitmap a = this.f10962q.mo12204a(this.f10968w, this.f10967v, this.f10969x ? Config.ARGB_8888 : Config.RGB_565); m14714a(a); return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void q() {\n\n\t}", "java.lang.String getQ();", "public String toString(){return Q.toString();}", "public void setQ(int q) {\n this.q = q;\n }", "Term getQ();", "static void q4(){\t\n\t}", "public void setQ ( boolean q ) {\n\n\tthis.q = q;\n }", "@java.lang.Override\n publ...
[ "0.7632724", "0.7375637", "0.68659264", "0.6860412", "0.68528324", "0.66012764", "0.6573229", "0.6387389", "0.63254607", "0.63154703", "0.6312216", "0.6301117", "0.629304", "0.62913626", "0.6290145", "0.62747157", "0.6265199", "0.6251544", "0.6232398", "0.6188636", "0.6185335...
0.0
-1
/ renamed from: r
private int m14719r() { int s = m14720s(); if (s > 0) { try { if (this.f10949d == null) { this.f10949d = this.f10962q.mo12209b(255); } int i = this.f10951f - this.f10952g; if (i >= s) { System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s); this.f10952g += s; } else if (this.f10948c.remaining() + i >= s) { System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i); this.f10952g = this.f10951f; m14721t(); int i2 = s - i; System.arraycopy(this.f10950e, 0, this.f10949d, i, i2); this.f10952g += i2; } else { this.f10965t = 1; } } catch (Exception e) { C3111h1.m14932d(f10944y, "Error Reading Block", e); this.f10965t = 1; } } return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void r() {\n\n\t}", "public void mo21793R() {\n }", "void mo3194r();", "@Override\n\tprotected void interr() {\n\t}", "public void mo3376r() {\n }", "public abstract int mo9753r();", "private S(com.google.ad r9, com.google.h r10) {\n /*\n r8 = this;\n r0 =...
[ "0.633024", "0.60002476", "0.5908792", "0.5884819", "0.5825277", "0.58015496", "0.5759838", "0.57013875", "0.56573063", "0.5651276", "0.56333035", "0.56200635", "0.5557566", "0.55499846", "0.5540668", "0.553898", "0.5501369", "0.54945123", "0.5483104", "0.54790723", "0.546618...
0.0
-1
/ renamed from: s
private int m14720s() { try { m14721t(); byte[] bArr = this.f10950e; int i = this.f10952g; this.f10952g = i + 1; return bArr[i] & 255; } catch (Exception unused) { this.f10965t = 1; return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String mangle(String sName);", "java.lang.String getS();", "java.lang.String getS2();", "static String changeStr(StringFunc sf, String s){\n return sf.func(s);\n }", "private void Trans(String s) {\n }", "private final void r(String s) { if (m() > 0) setto(s); }", "java.lang.Strin...
[ "0.68539155", "0.6841741", "0.6787635", "0.66025555", "0.6591336", "0.6584722", "0.63117695", "0.62974125", "0.61578804", "0.61321455", "0.6094097", "0.60017455", "0.59867877", "0.59291947", "0.59233904", "0.5921333", "0.59011847", "0.5892121", "0.5845789", "0.58351314", "0.5...
0.0
-1
/ renamed from: t
private void m14721t() { if (this.f10951f <= this.f10952g) { if (this.f10950e == null) { this.f10950e = this.f10962q.mo12209b(16384); } this.f10952g = 0; this.f10951f = Math.min(this.f10948c.remaining(), 16384); this.f10948c.get(this.f10950e, 0, this.f10951f); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo16691c(T t);", "void mo83696a(T t);", "Text getT();", "void mo83698a(T t);", "void mo83695a(T t);", "void mo40877a(T t);", "void mo3312a(T t);", "void mo11495a(T t);", "void mo83699a(T t, int i, int i2, String str);", "void mo16690b(T t, T t2);", "TT createTT();", "T mo26439a();", "p...
[ "0.66775393", "0.660542", "0.65889984", "0.65849924", "0.6551092", "0.64997756", "0.6481987", "0.63850266", "0.63283026", "0.6012245", "0.6012099", "0.59172946", "0.5891038", "0.5881148", "0.5878784", "0.5856292", "0.58508456", "0.5850703", "0.584503", "0.58321756", "0.581530...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: a
public boolean mo12188a() { if (this.f10961p.f10995c <= 0) { return false; } if (this.f10959n == mo12194f() - 1) { this.f10960o++; } int i = this.f10961p.f11005m; if (i != -1 && this.f10960o > i) { return false; } this.f10959n = (this.f10959n + 1) % this.f10961p.f10995c; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "public void m23075a() {\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public /* bridge */ /* synthetic */ void mo55094a() {\n ...
[ "0.6714286", "0.65658224", "0.65416825", "0.6513276", "0.6468388", "0.6468152", "0.64618325", "0.6459187", "0.64499724", "0.6441312", "0.6433308", "0.6425642", "0.6421592", "0.63852054", "0.63751984", "0.63556576", "0.63321835", "0.6319933", "0.6313815", "0.6313002", "0.63084...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: b
public boolean mo12190b(int i) { if (i < -1 || i >= mo12194f()) { return false; } this.f10959n = i; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public void mo115190b() {\n }", "public abstract void mo70713b();", "public abstract void mo70702a(C30989b c30989b);", "public interface C19351a {\n /* renamed from...
[ "0.73150253", "0.6803183", "0.6711984", "0.67039484", "0.6664791", "0.66183937", "0.661637", "0.6599995", "0.65211433", "0.6492437", "0.6486207", "0.64416975", "0.6440887", "0.6415721", "0.6403434", "0.6399589", "0.63873744", "0.63787085", "0.6378415", "0.636806", "0.6364854"...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: c
public int mo12191c() { return this.f10948c.limit() + this.f10957l.length + (this.f10958m.length * 4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void mo53562a(C18796a c18796a);", "public void mo1403c() {\n }", "public abstract void mo70702a(C30989b c30989b);", "public abstract void mo27385c();", "public interface C0939c {\n }", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "@Ove...
[ "0.66485035", "0.6621233", "0.6569465", "0.6539913", "0.650819", "0.6495234", "0.6486656", "0.64657444", "0.645867", "0.64499134", "0.64232445", "0.63824147", "0.63695115", "0.63637286", "0.63621736", "0.6354158", "0.6348177", "0.6347641", "0.6345113", "0.63373977", "0.631211...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: d
public int mo12192d() { return this.f10959n; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo91715d() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "private void m50366E() {\n }", "public void mo97908d() {\n }", "public abstract void mo56925d();", "public interface C19512d {\n /* renamed from: dd ...
[ "0.67799014", "0.6530492", "0.6522303", "0.64555585", "0.6428062", "0.6381904", "0.6380694", "0.63762456", "0.6366445", "0.6362154", "0.63472396", "0.6339654", "0.6337401", "0.63122755", "0.6304529", "0.6300092", "0.6285469", "0.62755615", "0.62466794", "0.6246476", "0.622842...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: e
public ByteBuffer mo12193e() { return this.f10948c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m50366E() {\n }", "@Override\n\tpublic void e() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public byte e()\r\n/* 84: */ {\r\n/* 85:86 */ return this.e;\r\n/* 86: */ }", "protected boolean func_70041_e_() { return false; }", "public void mo1405...
[ "0.694762", "0.6929112", "0.6796041", "0.6734974", "0.67120844", "0.6593292", "0.65669006", "0.6562074", "0.6560681", "0.65436345", "0.6501908", "0.6482532", "0.647759", "0.64735645", "0.6406484", "0.6402197", "0.638745", "0.6385422", "0.6381895", "0.6365324", "0.6360464", ...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: f
public int mo12194f() { return this.f10961p.f10995c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void func_70305_f() {}", "@Override\n public int f() {\n return 0;\n }", "public byte f()\r\n/* 89: */ {\r\n/* 90:90 */ return this.f;\r\n/* 91: */ }", "public abstract int mo123247f();", "protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: ...
[ "0.73608595", "0.6936105", "0.67633754", "0.6743576", "0.662169", "0.65259814", "0.6491597", "0.64622194", "0.6450568", "0.6449478", "0.64176774", "0.6414097", "0.63789856", "0.63438267", "0.6329155", "0.63223124", "0.6305304", "0.6298547", "0.62874424", "0.62869716", "0.6274...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: g
public int mo12195g() { return this.f10961p.f10999g; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "public abstract String mo118046b();", "private final zzgy zzgb() {\n }", "public void mo21782G() {\n }", "public void m23075a() {\n }", "private void m50366E() {\n }", "public abstract String mo41079d();", "public abstract v...
[ "0.66122985", "0.6558361", "0.6540168", "0.6496619", "0.6484324", "0.6466894", "0.64642197", "0.64601386", "0.64600873", "0.6451483", "0.64197004", "0.64143175", "0.6381735", "0.63590086", "0.63583577", "0.6356032", "0.6352652", "0.63516843", "0.63507235", "0.633908", "0.6331...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: h
public int mo12196h() { return this.f10961p.f11005m; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "protected void h() {}", "@Override\n public void func_104112_b() {\n \n }", "public void m23075a() {\n }", "public void mo21783H() {\n }", "public abstract void mo70713b();", "public void method_4270() {}", "public final void mo51373a() {\n }", ...
[ "0.66693985", "0.6569719", "0.65170866", "0.64896584", "0.64864457", "0.64524543", "0.6451001", "0.6449716", "0.6439774", "0.6422889", "0.64143664", "0.6413722", "0.64069444", "0.640156", "0.6391812", "0.6388581", "0.638008", "0.637158", "0.63655025", "0.63479406", "0.6332034...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: i
public int mo12197i() { return this.f10960o; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final void i() {\n }", "void mo17022c(int i);", "public abstract void mo9809b(int i);", "public final void mo91727g(int i) {\n }", "public void mo5332a(int i) {\n }", "public abstract C14407a mo11608b(int i);", "public abstract C14407a mo11604a(int i);", "public abstract void mo437...
[ "0.6943172", "0.692046", "0.6751326", "0.6733585", "0.6718648", "0.6677669", "0.6667721", "0.66291493", "0.6598911", "0.65927064", "0.6580695", "0.6578598", "0.6566675", "0.65599287", "0.65470374", "0.654165", "0.6519802", "0.6510887", "0.6463568", "0.64554083", "0.64513904",...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: j
public int mo12198j() { if (this.f10961p.f10995c > 0) { int i = this.f10959n; if (i >= 0) { return mo12182a(i); } } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "public void mo21785J() {\n }", "public void mo21779D() {\n }", "public void method_4270() {}", "public abstract void mo2624j();", "private void m50366E() {\n }", "public abstract void mo70713b();", "public abstract Object mo267...
[ "0.6676658", "0.656286", "0.652839", "0.652784", "0.6506729", "0.6476798", "0.6471601", "0.6468169", "0.6427549", "0.6423889", "0.64230555", "0.63985205", "0.6387964", "0.6382079", "0.6373965", "0.6369291", "0.6362187", "0.6342023", "0.6330205", "0.6327661", "0.6321659", "0...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: k
public synchronized Bitmap mo12199k() { if (this.f10961p.f10995c <= 0 || this.f10959n < 0) { String str = f10944y; StringBuilder sb = new StringBuilder(); sb.append("unable to decode frame, frameCount="); sb.append(this.f10961p.f10995c); sb.append(" framePointer="); sb.append(this.f10959n); C3111h1.m14931d(str, sb.toString()); this.f10965t = 1; } if (this.f10965t != 1) { if (this.f10965t != 2) { this.f10965t = 0; C3072b1 b1Var = (C3072b1) this.f10961p.f10997e.get(this.f10959n); int i = this.f10959n - 1; C3072b1 b1Var2 = i >= 0 ? (C3072b1) this.f10961p.f10997e.get(i) : null; this.f10946a = b1Var.f10980k != null ? b1Var.f10980k : this.f10961p.f10993a; if (this.f10946a == null) { String str2 = f10944y; StringBuilder sb2 = new StringBuilder(); sb2.append("No Valid Color Table for frame #"); sb2.append(this.f10959n); C3111h1.m14931d(str2, sb2.toString()); this.f10965t = 1; return null; } if (b1Var.f10975f) { System.arraycopy(this.f10946a, 0, this.f10947b, 0, this.f10946a.length); this.f10946a = this.f10947b; this.f10946a[b1Var.f10977h] = 0; } return m14713a(b1Var, b1Var2); } } String str3 = f10944y; StringBuilder sb3 = new StringBuilder(); sb3.append("Unable to decode frame, status="); sb3.append(this.f10965t); C3111h1.m14931d(str3, sb3.toString()); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void kk12() {\n\n\t}", "public void mo21786K() {\n }", "public void func_70295_k_() {}", "public boolean k_()\r\n/* 450: */ {\r\n/* 451:464 */ return false;\r\n/* 452: */ }", "public int s() {\r\n/* 247 */ return this.k;\r\n/* */ }", "public final void zzjk() {\n }", ...
[ "0.69383806", "0.65400434", "0.64881164", "0.63769954", "0.6310972", "0.62579095", "0.623114", "0.6176943", "0.6174968", "0.615989", "0.61273944", "0.6123692", "0.6100129", "0.60762686", "0.60738254", "0.60565346", "0.6049042", "0.604597", "0.60384995", "0.603692", "0.6024298...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: l
public int mo12200l() { return this.f10965t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo21787L() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public abstract int mo9747l();", "protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "void m1864a() {\r\n ...
[ "0.6483085", "0.6393656", "0.6326625", "0.62885547", "0.6194582", "0.61409354", "0.6139327", "0.61112976", "0.6098754", "0.6093515", "0.60677177", "0.60569817", "0.6011893", "0.5991155", "0.59731525", "0.59589404", "0.5954667", "0.5937041", "0.59346026", "0.592614", "0.591938...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: m
public int mo12201m() { return this.f10961p.f10998f; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m50366E() {\n }", "public abstract Member mo23408O();", "public void m23075a() {\n }", "void m1864a() {\r\n }", "public void mo1403c() {\n }", "public abstract void m15813a();", "public abstract C14408a mo11607a();", "public void mo115190b() {\n }", "public void int1_m()...
[ "0.70523757", "0.70231116", "0.7015866", "0.67861897", "0.6644429", "0.6598591", "0.6585717", "0.65627", "0.6553961", "0.65498596", "0.6546086", "0.6544004", "0.65353054", "0.6497288", "0.6494906", "0.6493197", "0.64744925", "0.6458049", "0.64361125", "0.6429337", "0.6424951"...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: n
public void mo12202n() { this.f10959n = -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Member mo23408O();", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "public abstract int mo9749n();", "public no(np paramnp)\r\n/* 13: */ {\r\n/* 14:30 */ this.b = paramnp;\r\n/* 15: */ }", "public abstract Integer mo3...
[ "0.6532817", "0.62874234", "0.62531215", "0.6123211", "0.61206895", "0.61162806", "0.60837114", "0.60468394", "0.60379195", "0.60313135", "0.60164446", "0.6015612", "0.5978336", "0.59760755", "0.5955372", "0.5948308", "0.592539", "0.59253484", "0.59211355", "0.5902308", "0.58...
0.58308744
31
/ access modifiers changed from: 0000 / renamed from: o
public void mo12203o() { this.f10960o = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Member mo23408O();", "@Override\n public void func_104112_b() {\n \n }", "public abstract Object mo26777y();", "public abstract Object mo1771a();", "public final void mo51373a() {\n }", "public abstract Object mo1185b();", "public void mo115190b() {\n }", "publi...
[ "0.65970093", "0.6509954", "0.64822996", "0.6463521", "0.64441806", "0.6405146", "0.63440657", "0.6330305", "0.631841", "0.63151366", "0.6313176", "0.6309111", "0.62968516", "0.62814933", "0.6278006", "0.6265417", "0.62522006", "0.6241222", "0.62299794", "0.6212826", "0.62126...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: b
public void mo12189b() { this.f10961p = null; byte[] bArr = this.f10957l; if (bArr != null) { this.f10962q.mo12206a(bArr); } int[] iArr = this.f10958m; if (iArr != null) { this.f10962q.mo12207a(iArr); } Bitmap bitmap = this.f10963r; if (bitmap != null) { this.f10962q.mo12205a(bitmap); } this.f10963r = null; this.f10948c = null; this.f10969x = false; byte[] bArr2 = this.f10949d; if (bArr2 != null) { this.f10962q.mo12206a(bArr2); } byte[] bArr3 = this.f10950e; if (bArr3 != null) { this.f10962q.mo12206a(bArr3); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public void mo115190b() {\n }", "public abstract void mo70713b();", "public abstract void mo70702a(C30989b c30989b);", "public interface C19351a {\n /* renamed from...
[ "0.73150253", "0.6803183", "0.6711984", "0.67039484", "0.6664791", "0.66183937", "0.661637", "0.6599995", "0.65211433", "0.6492437", "0.6486207", "0.64416975", "0.6440887", "0.6415721", "0.6403434", "0.6399589", "0.63873744", "0.63787085", "0.6378415", "0.636806", "0.6364854"...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: a
public int mo12182a(int i) { if (i >= 0) { C3075c1 c1Var = this.f10961p; if (i < c1Var.f10995c) { return ((C3072b1) c1Var.f10997e.get(i)).f10978i; } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "public void m23075a() {\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public /* bridge */ /* synthetic */ void mo55094a() {\n ...
[ "0.6714286", "0.65658224", "0.65416825", "0.6513276", "0.6468388", "0.6468152", "0.64618325", "0.6459187", "0.64499724", "0.6441312", "0.6433308", "0.6425642", "0.6421592", "0.63852054", "0.63751984", "0.63556576", "0.63321835", "0.6319933", "0.6313815", "0.6313002", "0.63084...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: a
public int mo12183a(InputStream inputStream, int i) { if (inputStream != null) { try { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(i > 0 ? i + 4096 : 16384); byte[] bArr = new byte[16384]; while (true) { int read = inputStream.read(bArr, 0, bArr.length); if (read == -1) { break; } byteArrayOutputStream.write(bArr, 0, read); } byteArrayOutputStream.flush(); mo12184a(byteArrayOutputStream.toByteArray()); } catch (IOException e) { C3111h1.m14932d(f10944y, "Error reading data from stream", e); } } else { this.f10965t = 2; } if (inputStream != null) { try { inputStream.close(); } catch (IOException e2) { C3111h1.m14932d(f10944y, "Error closing stream", e2); } } return this.f10965t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "public void m23075a() {\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public interface C1423a {\n /* renamed from: a */\n ...
[ "0.67132944", "0.65655446", "0.65399784", "0.65144646", "0.6469384", "0.6468396", "0.6461784", "0.6458328", "0.6449518", "0.644272", "0.64330333", "0.64257383", "0.6421159", "0.63868374", "0.6376262", "0.63560826", "0.63305223", "0.6318987", "0.6315042", "0.63145274", "0.6307...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: a
public synchronized void mo12187a(C3075c1 c1Var, byte[] bArr) { mo12185a(c1Var, ByteBuffer.wrap(bArr)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "public void m23075a() {\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public interface C1423a {\n /* renamed from: a */\n ...
[ "0.67132944", "0.65655446", "0.65399784", "0.65144646", "0.6469384", "0.6468396", "0.6461784", "0.6458328", "0.6449518", "0.644272", "0.64330333", "0.64257383", "0.6421159", "0.63868374", "0.6376262", "0.63560826", "0.63305223", "0.6318987", "0.6315042", "0.63145274", "0.6307...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: a
public synchronized void mo12185a(C3075c1 c1Var, ByteBuffer byteBuffer) { mo12186a(c1Var, byteBuffer, 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "public void m23075a() {\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public interface C1423a {\n /* renamed from: a */\n ...
[ "0.67132944", "0.65655446", "0.65399784", "0.65144646", "0.6469384", "0.6468396", "0.6461784", "0.6458328", "0.6449518", "0.644272", "0.64330333", "0.64257383", "0.6421159", "0.63868374", "0.6376262", "0.63560826", "0.63305223", "0.6318987", "0.6315042", "0.63145274", "0.6307...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: a
public synchronized void mo12186a(C3075c1 c1Var, ByteBuffer byteBuffer, int i) { if (i > 0) { int highestOneBit = Integer.highestOneBit(i); this.f10965t = 0; this.f10961p = c1Var; this.f10969x = false; this.f10959n = -1; mo12203o(); this.f10948c = byteBuffer.asReadOnlyBuffer(); this.f10948c.position(0); this.f10948c.order(ByteOrder.LITTLE_ENDIAN); this.f10964s = false; Iterator it = c1Var.f10997e.iterator(); while (true) { if (it.hasNext()) { if (((C3072b1) it.next()).f10976g == 3) { this.f10964s = true; break; } } else { break; } } this.f10966u = highestOneBit; this.f10968w = c1Var.f10998f / highestOneBit; this.f10967v = c1Var.f10999g / highestOneBit; this.f10957l = this.f10962q.mo12209b(c1Var.f10998f * c1Var.f10999g); this.f10958m = this.f10962q.mo12208a(this.f10968w * this.f10967v); } else { StringBuilder sb = new StringBuilder(); sb.append("Sample size must be >=0, not: "); sb.append(i); throw new IllegalArgumentException(sb.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "public void m23075a() {\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public /* bridge */ /* synthetic */ void mo55094a() {\n ...
[ "0.6714286", "0.65658224", "0.65416825", "0.6513276", "0.6468388", "0.6468152", "0.64618325", "0.6459187", "0.64499724", "0.6441312", "0.6433308", "0.6425642", "0.6421592", "0.63852054", "0.63751984", "0.63556576", "0.63321835", "0.6319933", "0.6313815", "0.6313002", "0.63084...
0.0
-1
/ access modifiers changed from: 0000 / renamed from: a
public synchronized int mo12184a(byte[] bArr) { this.f10961p = m14717p().mo12234a(bArr).mo12237c(); if (bArr != null) { mo12187a(this.f10961p, bArr); } return this.f10965t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "public void m23075a() {\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public interface C1423a {\n /* renamed from: a */\n ...
[ "0.67132944", "0.65655446", "0.65399784", "0.65144646", "0.6469384", "0.6468396", "0.6461784", "0.6458328", "0.6449518", "0.644272", "0.64330333", "0.64257383", "0.6421159", "0.63868374", "0.6376262", "0.63560826", "0.63305223", "0.6318987", "0.6315042", "0.63145274", "0.6307...
0.0
-1
/ JADX WARNING: Code restructure failed: missing block: B:13:0x0029, code lost: if (r3.f11002j == r1.f10977h) goto L_0x0032; / renamed from: a / Code decompiled incorrectly, please refer to instructions dump.
private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) { /* r17 = this; r0 = r17 r1 = r18 r2 = r19 int[] r10 = r0.f10958m r11 = 0 if (r2 != 0) goto L_0x000e java.util.Arrays.fill(r10, r11) L_0x000e: r12 = 3 r13 = 2 r14 = 1 if (r2 == 0) goto L_0x005e int r3 = r2.f10976g if (r3 <= 0) goto L_0x005e if (r3 != r13) goto L_0x0037 boolean r3 = r1.f10975f if (r3 != 0) goto L_0x002c com.clevertap.android.sdk.c1 r3 = r0.f10961p int r4 = r3.f11004l int[] r5 = r1.f10980k if (r5 == 0) goto L_0x0033 int r3 = r3.f11002j int r5 = r1.f10977h if (r3 != r5) goto L_0x0033 goto L_0x0032 L_0x002c: int r3 = r0.f10959n if (r3 != 0) goto L_0x0032 r0.f10969x = r14 L_0x0032: r4 = 0 L_0x0033: r0.m14716a(r10, r2, r4) goto L_0x005e L_0x0037: if (r3 != r12) goto L_0x005e android.graphics.Bitmap r3 = r0.f10963r if (r3 != 0) goto L_0x0041 r0.m14716a(r10, r2, r11) goto L_0x005e L_0x0041: int r4 = r2.f10973d int r5 = r0.f10966u int r9 = r4 / r5 int r4 = r2.f10971b int r7 = r4 / r5 int r4 = r2.f10972c int r8 = r4 / r5 int r2 = r2.f10970a int r6 = r2 / r5 int r5 = r0.f10968w int r2 = r7 * r5 int r4 = r2 + r6 r2 = r3 r3 = r10 r2.getPixels(r3, r4, r5, r6, r7, r8, r9) L_0x005e: r17.m14715a(r18) int r2 = r1.f10973d int r3 = r0.f10966u int r2 = r2 / r3 int r4 = r1.f10971b int r4 = r4 / r3 int r5 = r1.f10972c int r5 = r5 / r3 int r6 = r1.f10970a int r6 = r6 / r3 r3 = 8 int r7 = r0.f10959n if (r7 != 0) goto L_0x0077 r7 = 1 goto L_0x0078 L_0x0077: r7 = 0 L_0x0078: r3 = 0 r8 = 1 r9 = 8 L_0x007c: if (r11 >= r2) goto L_0x0100 boolean r15 = r1.f10974e if (r15 == 0) goto L_0x0098 r15 = 4 if (r3 < r2) goto L_0x0095 int r8 = r8 + 1 if (r8 == r13) goto L_0x0094 if (r8 == r12) goto L_0x0091 if (r8 == r15) goto L_0x008e goto L_0x0095 L_0x008e: r3 = 1 r9 = 2 goto L_0x0095 L_0x0091: r3 = 2 r9 = 4 goto L_0x0095 L_0x0094: r3 = 4 L_0x0095: int r15 = r3 + r9 goto L_0x009a L_0x0098: r15 = r3 r3 = r11 L_0x009a: int r3 = r3 + r4 int r12 = r0.f10967v if (r3 >= r12) goto L_0x00f0 int r12 = r0.f10968w int r3 = r3 * r12 int r16 = r3 + r6 int r13 = r16 + r5 int r14 = r3 + r12 if (r14 >= r13) goto L_0x00ad int r13 = r3 + r12 L_0x00ad: int r3 = r0.f10966u int r12 = r11 * r3 int r14 = r1.f10972c int r12 = r12 * r14 int r14 = r13 - r16 int r14 = r14 * r3 int r14 = r14 + r12 r3 = r16 L_0x00bc: if (r3 >= r13) goto L_0x00f0 r19 = r2 int r2 = r0.f10966u r16 = r4 r4 = 1 if (r2 != r4) goto L_0x00d2 byte[] r2 = r0.f10957l byte r2 = r2[r12] r2 = r2 & 255(0xff, float:3.57E-43) int[] r4 = r0.f10946a r2 = r4[r2] goto L_0x00d8 L_0x00d2: int r2 = r1.f10972c int r2 = r0.m14712a(r12, r14, r2) L_0x00d8: if (r2 == 0) goto L_0x00dd r10[r3] = r2 goto L_0x00e6 L_0x00dd: boolean r2 = r0.f10969x if (r2 != 0) goto L_0x00e6 if (r7 == 0) goto L_0x00e6 r2 = 1 r0.f10969x = r2 L_0x00e6: int r2 = r0.f10966u int r12 = r12 + r2 int r3 = r3 + 1 r2 = r19 r4 = r16 goto L_0x00bc L_0x00f0: r19 = r2 r16 = r4 int r11 = r11 + 1 r2 = r19 r3 = r15 r4 = r16 r12 = 3 r13 = 2 r14 = 1 goto L_0x007c L_0x0100: boolean r2 = r0.f10964s if (r2 == 0) goto L_0x0123 int r1 = r1.f10976g if (r1 == 0) goto L_0x010b r2 = 1 if (r1 != r2) goto L_0x0123 L_0x010b: android.graphics.Bitmap r1 = r0.f10963r if (r1 != 0) goto L_0x0115 android.graphics.Bitmap r1 = r17.m14718q() r0.f10963r = r1 L_0x0115: android.graphics.Bitmap r1 = r0.f10963r r3 = 0 int r7 = r0.f10968w r5 = 0 r6 = 0 int r8 = r0.f10967v r2 = r10 r4 = r7 r1.setPixels(r2, r3, r4, r5, r6, r7, r8) L_0x0123: android.graphics.Bitmap r9 = r17.m14718q() r3 = 0 int r7 = r0.f10968w r5 = 0 r6 = 0 int r8 = r0.f10967v r1 = r9 r2 = r10 r4 = r7 r1.setPixels(r2, r3, r4, r5, r6, r7, r8) return r9 */ throw new UnsupportedOperationException("Method not decompiled: com.clevertap.android.sdk.C3068a1.m14713a(com.clevertap.android.sdk.b1, com.clevertap.android.sdk.b1):android.graphics.Bitmap"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void a() {\n block8 : {\n block9 : {\n var1_1 = this.f();\n var2_2 = false;\n if (var1_1) break block8;\n this.j.c();\n var6_3 = this.k;\n var7_4 = this.b;\n var8_5 = (l)var6_3;\n ...
[ "0.725923", "0.6919775", "0.6866674", "0.6858273", "0.68576294", "0.67997897", "0.67968315", "0.6753581", "0.67484426", "0.673936", "0.67238533", "0.67112154", "0.6687235", "0.66871464", "0.6681592", "0.6677226", "0.6639545", "0.663455", "0.66312516", "0.6588702", "0.6580577"...
0.0
-1
/ renamed from: a
private void m14716a(int[] iArr, C3072b1 b1Var, int i) { int i2 = b1Var.f10973d; int i3 = this.f10966u; int i4 = i2 / i3; int i5 = b1Var.f10971b / i3; int i6 = b1Var.f10972c / i3; int i7 = b1Var.f10970a / i3; int i8 = this.f10968w; int i9 = (i5 * i8) + i7; int i10 = (i4 * i8) + i9; while (i9 < i10) { int i11 = i9 + i6; for (int i12 = i9; i12 < i11; i12++) { iArr[i12] = i; } i9 += this.f10968w; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
private int m14712a(int i, int i2, int i3) { int i4 = 0; int i5 = 0; int i6 = 0; int i7 = 0; int i8 = 0; for (int i9 = i; i9 < this.f10966u + i; i9++) { byte[] bArr = this.f10957l; if (i9 >= bArr.length || i9 >= i2) { break; } int i10 = this.f10946a[bArr[i9] & 255]; if (i10 != 0) { i4 += (i10 >> 24) & 255; i5 += (i10 >> 16) & 255; i6 += (i10 >> 8) & 255; i7 += i10 & 255; i8++; } } int i11 = i + i3; for (int i12 = i11; i12 < this.f10966u + i11; i12++) { byte[] bArr2 = this.f10957l; if (i12 >= bArr2.length || i12 >= i2) { break; } int i13 = this.f10946a[bArr2[i12] & 255]; if (i13 != 0) { i4 += (i13 >> 24) & 255; i5 += (i13 >> 16) & 255; i6 += (i13 >> 8) & 255; i7 += i13 & 255; i8++; } } if (i8 == 0) { return 0; } return ((i4 / i8) << 24) | ((i5 / i8) << 16) | ((i6 / i8) << 8) | (i7 / i8); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
This method is dedicated to serializing the UserList object and saves to disk using the Serializable interface
public static void save(Context context,User user){ try { FileOutputStream fileOutputStream = context.openFileOutput("UserData.dat", Context.MODE_PRIVATE); ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream); objectOutputStream.writeObject(user); objectOutputStream.close(); fileOutputStream.close(); } catch(IOException ex) { System.out.println("IOException is caught"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void save(){\n\t\t\n\t\ttry {\n\t\t\t\t \n\t\t\t// Open Streams\n\t\t\tFileOutputStream outFile = new FileOutputStream(\"user.ser\");\n\t\t\tObjectOutputStream outObj = new ObjectOutputStream(outFile);\n\t\t\t\t \n\t\t\t// Serializing the head will save the whole list\n\t\t\toutObj.writeObject(this.head);\n...
[ "0.8066399", "0.7756494", "0.7512721", "0.72457254", "0.722218", "0.7155219", "0.68036926", "0.6793798", "0.67778146", "0.65937227", "0.6416708", "0.63572764", "0.635588", "0.6287161", "0.62759554", "0.6219447", "0.6207661", "0.6204816", "0.61925495", "0.6177943", "0.6162447"...
0.56549376
67
Responsible for deserializing data stored in disk and create a UserList object consisting of all the users.
public static User load(Context context){ User user = null; try { File file = new File(context.getFilesDir(),"UserData.dat"); if(!file.exists()) { file.createNewFile(); } FileInputStream FIS = context.openFileInput("UserData.dat"); if(FIS.available()==0){ user = new User("phone"); return user; } ObjectInputStream objectInputStream = new ObjectInputStream(FIS); user = (User) objectInputStream.readObject(); objectInputStream.close(); FIS.close(); } catch(Exception e) { e.printStackTrace(); //System.out.println("There was an error deserializing the data"); } return user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void readUserListFromFile() {\n\t\tJSONParser parser = new JSONParser();\n\n\t\ttry (Reader reader = new FileReader(\"users.json\")) {\n\n\t\t\tJSONArray userListJSON = (JSONArray) parser.parse(reader);\n\n\t\t\tfor (int i = 0 ; i < userListJSON.size(); i++) {\n\t\t\t\tJSONObject user = (JSONObject)...
[ "0.76664186", "0.75237554", "0.7388337", "0.7294838", "0.7288218", "0.7252645", "0.7203383", "0.7086292", "0.7068771", "0.70085245", "0.7003454", "0.700181", "0.6964725", "0.69618386", "0.69314283", "0.68810654", "0.68680495", "0.6858074", "0.6807721", "0.65864104", "0.656129...
0.5857039
99
Creates the underlying database table.
public static void createTable(SQLiteDatabase db, boolean ifNotExists) { String constraint = ifNotExists ? "IF NOT EXISTS " : ""; db.execSQL("CREATE TABLE " + constraint + "'BLACK_LIST' (" + // "'USER_ID' TEXT PRIMARY KEY NOT NULL ," + // 0: userId "'STATUS' TEXT," + // 1: status "'TIMESTAMP' INTEGER);"); // 2: timestamp }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TABLE createTABLE();", "public void create(Connection db) throws SQLException {\n if (tableName == null) {\n throw new SQLException(\"Table Name not specified\");\n }\n\n Statement st = db.createStatement();\n\n if (dbType == DatabaseUtils.POSTGRESQL) {\n if (hasSequence()) {\n st.ex...
[ "0.791309", "0.77940214", "0.74362296", "0.73251724", "0.73218036", "0.7314123", "0.72937477", "0.726144", "0.7253623", "0.7152383", "0.7142117", "0.71279895", "0.7109381", "0.7107476", "0.7067047", "0.7065432", "0.70631945", "0.7028555", "0.70216703", "0.70106506", "0.700553...
0.0
-1
Drops the underlying database table.
public static void dropTable(SQLiteDatabase db, boolean ifExists) { String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "'BLACK_LIST'"; db.execSQL(sql); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void dropTable();", "@Override\r\n public void dropTable() {\n if(tableIsExist(TABLE_NAME)){\r\n String sql = \"drop table \" + TABLE_NAME;\r\n database.execSQL(sql);\r\n }\r\n }", "public void wipeTable() {\n SqlStorage.wipeTable(db, TABLE_NAME);\n }"...
[ "0.779202", "0.76301473", "0.7506168", "0.74641335", "0.73204565", "0.72970927", "0.72935843", "0.7283971", "0.7267279", "0.72016066", "0.7200416", "0.7170111", "0.71066177", "0.70945585", "0.7093874", "0.70403093", "0.69307244", "0.68875414", "0.67883664", "0.6783334", "0.67...
0.61760604
95
Builds SenseiRequest based on a JSON object.
public static SenseiRequest fromJSON(JSONObject json) throws Exception { return fromJSON(json, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static SenseiRequest fromJSON(JSONObject json,\n final Map<String, String[]> facetInfoMap)\n throws Exception\n {\n\t json = jsonTemplateProcessor.substituteTemplates(json);\n\n\t SenseiRequest req = new SenseiRequest();\n\n JSONObject meta = json.optJSONObject...
[ "0.6453979", "0.5971897", "0.5809581", "0.5547894", "0.5511927", "0.54809153", "0.54299337", "0.5383132", "0.53663677", "0.5363774", "0.5361195", "0.53516746", "0.5292682", "0.5279109", "0.52310926", "0.5214945", "0.52010345", "0.51983404", "0.51920617", "0.5176905", "0.51107...
0.7270767
0
Builds SenseiRequest based on a JSON object.
public static SenseiRequest fromJSON(JSONObject json, final Map<String, String[]> facetInfoMap) throws Exception { json = jsonTemplateProcessor.substituteTemplates(json); SenseiRequest req = new SenseiRequest(); JSONObject meta = json.optJSONObject("meta"); if (meta != null) { JSONArray array = meta.optJSONArray("select_list"); if (array != null) { List<String> list = new ArrayList<String>(); for (int i = 0; i < array.length(); ++i) { list.add(array.get(i).toString()); } req.setSelectList(list); } } // query req.setQuery(new SenseiJSONQuery(json)); // paging params int count = json.optInt(RequestConverter2.PAGING_SIZE, 10); int offset = json.optInt(RequestConverter2.PAGING_FROM, 0); req.setCount(count); req.setOffset(offset); // group by JSONObject groupBy = json.optJSONObject("groupBy"); if (groupBy != null) { JSONArray columns = groupBy.optJSONArray("columns"); if (columns != null && columns.length() >= 1) { String[] groupByArray = new String[columns.length()]; for (int i=0; i<columns.length(); ++i) groupByArray[i] = columns.getString(i); req.setGroupBy(groupByArray); } req.setMaxPerGroup(groupBy.optInt("top", groupBy.optInt("count", 1))); } // distinct JSONObject distinct = json.optJSONObject("distinct"); if (distinct != null) { JSONArray columns = distinct.optJSONArray("columns"); if (columns != null && columns.length() >= 1) { String[] distinctArray = new String[columns.length()]; for (int i=0; i<columns.length(); ++i) distinctArray[i] = columns.getString(i); if (distinctArray.length == 1 && req.getGroupBy() == null) { // rewrite to use group by req.setGroupBy(distinctArray); req.setMaxPerGroup(0); } else { req.setDistinct(distinctArray); } } } // selections Object selections = json.opt(RequestConverter2.SELECTIONS); if (selections == null) { // ignore } else if (selections instanceof JSONArray) { JSONArray selectionArray = (JSONArray)selections; for(int i=0; i<selectionArray.length(); i++) { JSONObject selItem = selectionArray.optJSONObject(i); if(selItem != null){ Iterator<String> keyIter = selItem.keys(); while(keyIter.hasNext()){ String type = keyIter.next(); JSONObject jsonSel = selItem.optJSONObject(type); if(jsonSel != null){ addSelection(type, jsonSel, req, facetInfoMap); } } } } } else if (selections instanceof JSONObject) { JSONObject selectionObject = (JSONObject)selections; Iterator<String> keyIter = selectionObject.keys(); while (keyIter.hasNext()) { String type = keyIter.next(); JSONObject jsonSel = selectionObject.optJSONObject(type); if (jsonSel != null) addSelection(type, jsonSel, req, facetInfoMap); } } //map reduce Object mapReduceObj = json.opt(RequestConverter2.MAP_REDUCE); if (mapReduceObj instanceof JSONObject) { JSONObject mapReduceJson = (JSONObject) mapReduceObj; String key = mapReduceJson.getString(MAP_REDUCE_FUNCTION); SenseiMapReduce senseiMapReduce = MapReduceRegistry.get(key); senseiMapReduce.init(mapReduceJson.optJSONObject(MAP_REDUCE_PARAMETERS)); req.setMapReduceFunction(senseiMapReduce); } else if (mapReduceObj instanceof JSONArray) { JSONArray mapReduceJson = (JSONArray) mapReduceObj; CompositeMapReduce compositeMapReduce = new CompositeMapReduce(); JSONObject convertedParams = new JSONUtil.FastJSONObject(); for (int i = 0; i < mapReduceJson.length(); i++) { JSONObject currentFunction = mapReduceJson.getJSONObject(i); convertedParams.put(currentFunction.getString(MAP_REDUCE_FUNCTION), convertedParams.optJSONObject(MAP_REDUCE_PARAMETERS)); } compositeMapReduce.init(new JSONUtil.FastJSONObject().put("array", mapReduceJson)); req.setMapReduceFunction(compositeMapReduce); } // facets JSONObject facets = json.optJSONObject(RequestConverter2.FACETS); if (facets!=null){ Iterator<String> keyIter = facets.keys(); while (keyIter.hasNext()){ String field = keyIter.next(); JSONObject facetObj = facets.getJSONObject(field); if (facetObj!=null){ FacetSpec facetSpec = new FacetSpec(); facetSpec.setMaxCount(facetObj.optInt(RequestConverter2.FACETS_MAX, 10)); facetSpec.setMinHitCount(facetObj.optInt(RequestConverter2.FACETS_MINCOUNT, 1)); facetSpec.setExpandSelection(facetObj.optBoolean(RequestConverter2.FACETS_EXPAND, false)); String orderBy = facetObj.optString(RequestConverter2.FACETS_ORDER, RequestConverter2.FACETS_ORDER_HITS); FacetSpec.FacetSortSpec facetOrder = FacetSpec.FacetSortSpec.OrderHitsDesc; if (RequestConverter2.FACETS_ORDER_VAL.equals(orderBy)){ facetOrder = FacetSpec.FacetSortSpec.OrderValueAsc; } facetSpec.setProperties(createFacetProperties(facetObj)); facetSpec.setOrderBy(facetOrder); req.setFacetSpec(field, facetSpec); } } } //facet init; JSONObject facetInitParams = json.optJSONObject(RequestConverter2.FACETINIT); if (facetInitParams != null) { Iterator<String> keyIter = facetInitParams.keys(); while (keyIter.hasNext()) { // may have multiple facets; String facetName = keyIter.next(); DefaultFacetHandlerInitializerParam param = new DefaultFacetHandlerInitializerParam(); JSONObject jsonParams = facetInitParams.getJSONObject(facetName); if (jsonParams != null && jsonParams.length() > 0) { Iterator<String> paramIter = jsonParams.keys(); while (paramIter.hasNext()) { // each facet may have multiple parameters to be configured; String paramName = paramIter.next(); JSONObject jsonParamValues = jsonParams.getJSONObject(paramName); String type = jsonParamValues.optString(RequestConverter2.FACETINIT_TYPE, RequestConverter2.FACETINIT_TYPE_STRING); JSONArray jsonValues = jsonParamValues.optJSONArray(RequestConverter2.FACETINIT_VALUES); if (jsonValues == null) { // Accept scalar values here too. This is useful in // supporting variable substitutions. Object value = jsonParamValues.opt(RequestConverter2.FACETINIT_VALUES); if (value != null) { jsonValues = new FastJSONArray().put(value); } } if (jsonValues != null) { if (type.equals(RequestConverter2.FACETINIT_TYPE_INT)) param.putIntParam(paramName, convertJSONToIntArray(jsonValues)); else if (type.equals(RequestConverter2.FACETINIT_TYPE_STRING)) param.putStringParam(paramName, convertJSONToStringArray(jsonValues)); else if (type.equals(RequestConverter2.FACETINIT_TYPE_BOOLEAN)) param.putBooleanParam(paramName, convertJSONToBoolArray(jsonValues)); else if (type.equals(RequestConverter2.FACETINIT_TYPE_LONG)) param.putLongParam(paramName, convertJSONToLongArray(jsonValues)); else if (type.equals(RequestConverter2.FACETINIT_TYPE_BYTES)) param.putByteArrayParam(paramName, convertJSONToByteArray(jsonValues)); else if (type.equals(RequestConverter2.FACETINIT_TYPE_DOUBLE)) param.putDoubleParam(paramName, convertJSONToDoubleArray(jsonValues)); } } req.setFacetHandlerInitializerParam(facetName, param); } } } // sorts JSONArray sortArray = json.optJSONArray(RequestConverter2.SORT); if (sortArray!=null && sortArray.length()>0){ ArrayList<SortField> sortFieldList = new ArrayList<SortField>(sortArray.length()); for (int i=0;i<sortArray.length();++i){ Object obj = sortArray.opt(i); if(obj instanceof JSONObject){ String field = (String) ((JSONObject)obj).keys().next(); if (field == null || field.length() == 0) continue; if (SORT_SCORE.equals(field) || SORT_RELEVANCE.equalsIgnoreCase(field)) { sortFieldList.add(SortField.FIELD_SCORE); continue; } String order = ((JSONObject)obj).optString(field); boolean rev = false; if(RequestConverter2.SORT_DESC.equals(order)) rev = true; sortFieldList.add(new SortField(field,SortField.CUSTOM,rev)); continue; } else if (obj instanceof String){ if(SORT_SCORE.equals(obj)){ sortFieldList.add(SortField.FIELD_SCORE); continue; } } } if (sortFieldList.size()>0){ req.setSort(sortFieldList.toArray(new SortField[sortFieldList.size()])); } } // other boolean fetchStored = json.optBoolean(RequestConverter2.FETCH_STORED); req.setFetchStoredFields(fetchStored); boolean fetchStoredValue = json.optBoolean(RequestConverter2.FETCH_STORED_VALUE); req.setFetchStoredValue(fetchStoredValue); String[] termVectors = getStrings(json,RequestConverter2.TERM_VECTORS); if (termVectors!=null && termVectors.length>0){ req.setTermVectorsToFetch(new HashSet<String>(Arrays.asList(termVectors))); } req.setPartitions(getIntSet(json, RequestConverter2.PARTITIONS,0)); req.setShowExplanation(json.optBoolean(RequestConverter2.EXPLAIN,false)); String routeParam = json.optString(RequestConverter2.ROUTEPARAM,null); req.setRouteParam(routeParam); return req; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static SenseiRequest fromJSON(JSONObject json)\n throws Exception\n {\n return fromJSON(json, null);\n }", "private Request build() {\n Request.Builder builder =\n new Request.Builder().cacheControl(new CacheControl.Builder().noCache().build());\n\n HttpUrl.Builder urlBuilder = HttpUr...
[ "0.7270767", "0.5971897", "0.5809581", "0.5547894", "0.5511927", "0.54809153", "0.54299337", "0.5383132", "0.53663677", "0.5363774", "0.5361195", "0.53516746", "0.5292682", "0.5279109", "0.52310926", "0.5214945", "0.52010345", "0.51983404", "0.51920617", "0.5176905", "0.51107...
0.6453979
1
we process "term", "terms", "range", "path", "custom" selection types;
private static void addSelection(String type, JSONObject jsonSel, SenseiRequest req, final Map<String, String[]> facetInfoMap) throws Exception { BrowseSelection sel = null; if(RequestConverter2.SELECTIONS_TERM.equals(type)) { Iterator<String> iter = jsonSel.keys(); if(iter.hasNext()){ String facet = iter.next(); JSONObject jsonParams = jsonSel.optJSONObject(facet); String value = jsonParams.optString(RequestConverter2.SELECTIONS_TERM_VALUE, null); if(facet!= null && value != null) { sel = new BrowseSelection(facet); String[] vals = new String[1]; vals[0] = value; sel.setValues(formatValues(facet, vals, facetInfoMap)); updateProperties(sel, jsonParams.optJSONObject(FilterConstructor.PARAMS_PARAM)); req.addSelection(sel); } } } else if(RequestConverter2.SELECTIONS_TERMS.equals(type)) { Iterator<String> iter = jsonSel.keys(); if(iter.hasNext()){ String facet = iter.next(); JSONObject jsonParams = jsonSel.optJSONObject(facet); JSONArray values = jsonParams.optJSONArray(RequestConverter2.SELECTIONS_TERMS_VALUES); JSONArray excludes = jsonParams.optJSONArray(RequestConverter2.SELECTIONS_TERMS_EXCLUDES); String operator = jsonParams.optString(RequestConverter2.SELECTIONS_TERMS_OPERATOR, RequestConverter2.SELECTIONS_TERMS_OPERATOR_OR); if(facet!= null && (values != null || excludes != null)) { sel = new BrowseSelection(facet); ValueOperation op = ValueOperation.ValueOperationOr; if(RequestConverter2.SELECTIONS_TERMS_OPERATOR_AND.equals(operator)) op = ValueOperation.ValueOperationAnd; if(values != null && values.length()>0){ sel.setValues(formatValues(facet, getStrings(values), facetInfoMap)); } if(excludes != null && excludes.length()>0){ sel.setNotValues(formatValues(facet, getStrings(excludes), facetInfoMap)); } sel.setSelectionOperation(op); req.addSelection(sel); updateProperties(sel, jsonParams.optJSONObject(FilterConstructor.PARAMS_PARAM)); } } } else if(RequestConverter2.SELECTIONS_RANGE.equals(type)) { Iterator<String> iter = jsonSel.keys(); if(iter.hasNext()){ String facet = iter.next(); JSONObject jsonParams = jsonSel.optJSONObject(facet); String upper = jsonParams.optString(RequestConverter2.SELECTIONS_RANGE_TO, "*"); String lower = jsonParams.optString(RequestConverter2.SELECTIONS_RANGE_FROM, "*"); boolean includeUpper = jsonParams.optBoolean(RequestConverter2.SELECTIONS_RANGE_INCLUDE_UPPER, true); boolean includeLower = jsonParams.optBoolean(RequestConverter2.SELECTIONS_RANGE_INCLUDE_LOWER, true); String left = "[", right = "]"; if(includeLower == false) left = "("; if(includeUpper == false) right = ")"; String range = left + lower + " TO " + upper + right; if(facet!= null ) { sel = new BrowseSelection(facet); String[] vals = new String[1]; vals[0] = range; sel.setValues(vals); req.addSelection(sel); updateProperties(sel, jsonParams.optJSONObject(FilterConstructor.PARAMS_PARAM)); } } } else if(RequestConverter2.SELECTIONS_PATH.equals(type)) { Iterator<String> iter = jsonSel.keys(); if(iter.hasNext()){ String facet = iter.next(); JSONObject jsonParams = jsonSel.optJSONObject(facet); String value = jsonParams.optString(RequestConverter2.SELECTIONS_PATH_VALUE, null); if(facet != null && value != null){ sel = new BrowseSelection(facet); String[] vals = new String[1]; vals[0] = value; sel.setValues(vals); if(jsonParams.has(RequestConverter2.SELECTIONS_PATH_STRICT)){ boolean strict = jsonParams.optBoolean(RequestConverter2.SELECTIONS_PATH_STRICT, false); sel.getSelectionProperties().setProperty(PathFacetHandler.SEL_PROP_NAME_STRICT, String.valueOf(strict)); } if(jsonParams.has(RequestConverter2.SELECTIONS_PATH_DEPTH)){ int depth = jsonParams.optInt(RequestConverter2.SELECTIONS_PATH_DEPTH, 1); sel.getSelectionProperties().setProperty(PathFacetHandler.SEL_PROP_NAME_DEPTH, String.valueOf(depth)); } req.addSelection(sel); updateProperties(sel, jsonParams.optJSONObject(FilterConstructor.PARAMS_PARAM)); } } } else if(RequestConverter2.SELECTIONS_CUSTOM.equals(type)) { ; } else if(RequestConverter2.SELECTIONS_DEFAULT.equals(type)) { ; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void processSelect() {\n \n }", "abstract public TermEnum terms(Term t) throws IOException;", "TermType getTermType();", "private static void DoSelection()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_order...
[ "0.5700073", "0.56434196", "0.55366176", "0.5494848", "0.54121166", "0.53593546", "0.5339308", "0.5295699", "0.5273781", "0.51962334", "0.51112056", "0.5093926", "0.5081983", "0.50734043", "0.5057009", "0.50259393", "0.5012457", "0.50027704", "0.49890316", "0.49817652", "0.49...
0.64603823
0
Create a new motor, with parameters to initialize it using the RevoluteJointDef.initialize() method.
public Motor(final Body b1, final Body b2, final Vec2 anchor) { super.initialize(b1, b2, anchor); motorSpeed = (float) (Math.PI * 2); enableMotor = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static RCServo PhidgetMotorMover() {\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Constructing MotorMover\");\n\t\t\tservo = new RCServo();\n\t\t\t// Start listening for motor interaction\n\t\t\tservo.open(2000);\n\t\t} catch (PhidgetException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn servo;\n\t}", ...
[ "0.69208235", "0.6701576", "0.64822453", "0.6413038", "0.6409772", "0.63845676", "0.63610214", "0.62699", "0.6233494", "0.622201", "0.6185278", "0.61426497", "0.610005", "0.6083876", "0.60355604", "0.5999038", "0.5993339", "0.59791374", "0.59208405", "0.5908801", "0.5906024",...
0.642773
3
Once all the parameters are set, create the joint.
public void createJoint(World world) { if (joint != null) { return; } joint = (RevoluteJoint) world.createJoint(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract BallJoint newBallJointImpl( Body body1, Body body2 );", "@Test\r\n\tpublic void createSuccess() {\r\n\t\tnew WeldJoint<Body>(b1, b2, new Vector2());\r\n\t}", "protected abstract void addJointImpl( Joint joint );", "protected abstract FixedJoint newFixedJointImpl( Body body1, Body body2 );"...
[ "0.6294963", "0.62457377", "0.6007994", "0.5870866", "0.5719347", "0.56417614", "0.558743", "0.5526952", "0.5518693", "0.5492505", "0.54511094", "0.54242414", "0.54237306", "0.5336002", "0.53209496", "0.5314377", "0.5310594", "0.530546", "0.52869374", "0.5243809", "0.5228339"...
0.641633
0
When set, resets the torque applied based on the last desired torque.
public void setActualMaxTorque(float actualMaxTorque) { this.actualMaxTorque = actualMaxTorque; setTorque(desiredTorque); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void applyTorque(final float torque);", "public void setTorque(float desiredTorque) {\n this.desiredTorque = desiredTorque;\n float sign = (desiredTorque < 0) ? -1 : 1;\n maxMotorTorque = sign * Math.min(\n Math.abs(desiredTorque),\n actualMaxTorque);\n if (joint != null) {\n ...
[ "0.674173", "0.6274763", "0.62196666", "0.5970519", "0.5737525", "0.5612745", "0.5413371", "0.5371114", "0.5351767", "0.52617526", "0.5252558", "0.5251448", "0.5188009", "0.5140887", "0.5128001", "0.51110953", "0.50988954", "0.503275", "0.49966472", "0.49834555", "0.4978539",...
0.46732277
70
The applied torque is capped at the maximum applicable torque.
public void setTorque(float desiredTorque) { this.desiredTorque = desiredTorque; float sign = (desiredTorque < 0) ? -1 : 1; maxMotorTorque = sign * Math.min( Math.abs(desiredTorque), actualMaxTorque); if (joint != null) { joint.setMaxMotorTorque(maxMotorTorque); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float maxTorque();", "public float getMaxTorque() {\n return jniGetMaxTorque(addr);\n }", "public void applyTorque(final float torque);", "private void calculateTorque(){\n\t\ttau[0] = L * k * (w1*w1 - w3*w3);\r\n\t\t//Pitch torque\r\n\t\ttau[1] = L * k * (w2*w2 - w4*w4);\r\n\t\t//The tota...
[ "0.75900525", "0.6848452", "0.6723525", "0.64550495", "0.6212372", "0.6068773", "0.591187", "0.58996075", "0.58484846", "0.5650797", "0.55329067", "0.55140305", "0.54900664", "0.5454065", "0.5449", "0.5446832", "0.5389203", "0.5369863", "0.5348887", "0.53033286", "0.52678156"...
0.62782335
4
Inspects the changed resources and determines if and how to update the internal structures of the ModuleModelManage.
public void resourceChanged(IResourceChangeEvent event) { int eventType = event.getType(); IResourceDelta delta = event.getDelta(); switch (eventType) { case IResourceChangeEvent.POST_CHANGE: checkProjectsAndDescriptorChanges(delta); break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateChildren() {\n modulesTableModel.clear();\n repositoriesTableModel.clear();\n if (modules != null) {\n repositoriesTableModel.set(modules.xgetRepositoryArray());\n modulesTableModel.set(modules.getModuleArray());\n } else {\n repositoriesTableModel.fireTableDataChanged...
[ "0.5911298", "0.5816575", "0.5777547", "0.56985134", "0.5557332", "0.55191696", "0.55088764", "0.5482574", "0.54617655", "0.5441781", "0.5437159", "0.5422312", "0.5404433", "0.53839743", "0.5357295", "0.53503215", "0.5339353", "0.52581006", "0.5221038", "0.5201927", "0.517438...
0.47619462
71
In order to be compatible with ViewPagerIndicator
@Override public PagerAdapter getAdapter() { return wrappedPagerAdapter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m3173b() {\n ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager);\n FixedIndicatorView fixedIndicatorView = (FixedIndicatorView) findViewById(R.id.indicator);\n C0597f.m819a(viewPager, 1000);\n this.f2478a = new IndicatorViewPager(fixedIndicatorView, viewPager);\...
[ "0.7112266", "0.67833245", "0.67012477", "0.6601639", "0.6581639", "0.6546491", "0.6478264", "0.6445035", "0.6422908", "0.6414378", "0.6385149", "0.6367434", "0.6367434", "0.63662106", "0.63408864", "0.6325444", "0.63190156", "0.6316864", "0.6316864", "0.63057655", "0.6299723...
0.60339963
82
Get current item of the outer wrapper adapter.
private int getCurrentItemOfWrapper() { return super.getCurrentItem(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCurrentItem() {\n\t\treturn currentItem;\n\t}", "public Item getItem() { return this; }", "public Item getItem() {\n\t\treturn this.item;\n\t}", "public Item getItem() {\n\t\treturn this.item;\n\t}", "public Item current() {\n return curr;\n }", "public Item getItem() {\r\n\t\t...
[ "0.6818184", "0.67122394", "0.650742", "0.650742", "0.64992434", "0.649695", "0.64893913", "0.64352256", "0.64352256", "0.6403783", "0.63973516", "0.63855", "0.63723713", "0.6363512", "0.63567114", "0.6351221", "0.63218343", "0.632043", "0.63063866", "0.6296887", "0.6234392",...
0.8131463
0
Get item count of the outer wrapper adapter.
private int getCountOfWrapper() { if (wrapperPagerAdapter != null) { return wrapperPagerAdapter.getCount(); } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getItemCount() {\n checkWidget();\n return OS.SendMessage(handle, OS.TCM_GETITEMCOUNT, 0, 0);\n }", "public int getItemsCount() {\n if (itemsBuilder_ == null) {\n return items_.size();\n } else {\n return itemsBuilder_.getCount();\n }\n }", ...
[ "0.7546552", "0.72990406", "0.7175843", "0.7172874", "0.7172874", "0.7167071", "0.7131012", "0.7131012", "0.7095355", "0.70452464", "0.70212466", "0.6926054", "0.6926054", "0.6921588", "0.6883886", "0.68023175", "0.67805976", "0.67073494", "0.66885376", "0.66885376", "0.66885...
0.71290296
8
Get item count of the adapter which is set by user
private int getCount() { if (wrappedPagerAdapter != null) { return wrappedPagerAdapter.getCount(); } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getItemCount() {\n checkWidget();\n return OS.SendMessage(handle, OS.TCM_GETITEMCOUNT, 0, 0);\n }", "public int getCount() {\n \t Log.i(TAG, \"getCount() called\");\n return provide.getItemCache().getCount();\n }", "int getItemsCount();", "int getItemsCount();", ...
[ "0.7955629", "0.75519633", "0.7531022", "0.7531022", "0.75193334", "0.75118804", "0.75118804", "0.75118804", "0.74793065", "0.74067515", "0.74067515", "0.73366755", "0.7333273", "0.73288053", "0.7248046", "0.7211994", "0.72104007", "0.7201109", "0.718883", "0.7127483", "0.712...
0.0
-1
String firstLeter = str.substring(0, 1); String firstLeterUpperCase = firstLeter.toUpperCase(); String tailOfText = str.substring(1); return firstLeterUpperCase + tailOfText.toLowerCase();
public static String toTitleCase(String str) { return str.substring(0, 1).toUpperCase()+ str.substring(1).toLowerCase(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String cup(String str) {\n\t\treturn str.substring(0,1).toLowerCase() + str.substring(1); \n\t}", "private static String firstLetterCapital(final String text)\n {\n return (null == text ? null : text.substring(0, 1).toUpperCase() + text.substring(1, text.length()));\n }", "private static St...
[ "0.7709548", "0.74902177", "0.7456004", "0.74183863", "0.73436666", "0.7300422", "0.7152924", "0.7125348", "0.7116499", "0.7115324", "0.70758957", "0.70602554", "0.70322907", "0.70187426", "0.6962175", "0.69311583", "0.6909236", "0.68959135", "0.6877354", "0.686284", "0.68559...
0.64488584
51
Every stat will automatically get a gene associated with it, this method can be used to obtain the corresponding gene for a given stat
Optional<IAgriGene<Integer>> get(@Nullable IAgriStat stat);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getGeneId();", "public String getGeneName() {\n return geneName;\n }", "public int randomGene();", "protected Gene getGene(int innovation) {\n\t\treturn genes.get(innovation);\n\t}", "protected Gene getRandomGene() {\n\t\tArrayList<Gene> genearr = new ArrayList<Gene>();\n\t\tgenearr.addAll(ge...
[ "0.6561237", "0.6162974", "0.61601925", "0.61585665", "0.6093429", "0.59923863", "0.5975429", "0.58568984", "0.5726579", "0.5723101", "0.569237", "0.56726557", "0.55992824", "0.55295616", "0.54954237", "0.54302335", "0.5388552", "0.5357359", "0.533688", "0.5335798", "0.532262...
0.6684951
0
Fetches the stat corresponding to a gene
Optional<IAgriStat> getStatForGene(@Nullable IAgriGene<Integer> gene);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Optional<IAgriGene<Integer>> get(@Nullable IAgriStat stat);", "int getGeneId();", "public String getGeneName(int row);", "public String getStat() {\r\n\t\treturn stat;\r\n\t}", "public String execGetMapGeneFunc(){\n Map map = new HashMap();\n\n if(this.searchParam != null && this.searchParam....
[ "0.6215477", "0.5826224", "0.5590251", "0.5370154", "0.5321608", "0.5304572", "0.52988386", "0.5279597", "0.52317303", "0.52317303", "0.51857954", "0.51643956", "0.5159534", "0.5144617", "0.51183", "0.5108673", "0.509717", "0.5073289", "0.5072274", "0.5058784", "0.5003001", ...
0.67194855
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column KMORDER.INVOICE_DICTIONARY.INVOICE_DICTIONARY_ID
public long getInvoice_dictionary_id() { return invoice_dictionary_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInvoice_dictionary_id(long invoice_dictionary_id) {\r\n this.invoice_dictionary_id = invoice_dictionary_id;\r\n }", "public Long getInvoiceDictionaryKey() {\r\n return invoiceDictionaryKey;\r\n }", "public String getInvoiceDictionaryCode() {\r\n return invoiceDictionaryCode;\r\n }", ...
[ "0.6314471", "0.6314365", "0.63009965", "0.6027891", "0.5727424", "0.56033826", "0.5558819", "0.55423933", "0.5479535", "0.5471198", "0.5448862", "0.53858393", "0.5357527", "0.5323018", "0.53154445", "0.5310482", "0.5283224", "0.5276339", "0.52539533", "0.5252862", "0.5171796...
0.71170807
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column KMORDER.INVOICE_DICTIONARY.INVOICE_DICTIONARY_ID
public void setInvoice_dictionary_id(long invoice_dictionary_id) { this.invoice_dictionary_id = invoice_dictionary_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getInvoice_dictionary_id() {\r\n return invoice_dictionary_id;\r\n }", "public void setInvoiceDictionaryKey(Long invoiceDictionaryKey) {\r\n this.invoiceDictionaryKey = invoiceDictionaryKey;\r\n }", "public void setInvoiceDictionaryValue(String invoiceDictionaryValue) {\r\n this.invoiceD...
[ "0.6250278", "0.61662626", "0.5853367", "0.57378155", "0.5621281", "0.56183994", "0.5482769", "0.54468846", "0.5303693", "0.5255346", "0.5179501", "0.5150184", "0.51320565", "0.50669014", "0.5058337", "0.5050087", "0.5009443", "0.500358", "0.49926338", "0.49850088", "0.496175...
0.68549687
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column KMORDER.INVOICE_DICTIONARY.INVOICE_DICTIONARY_TYPE
public Long getInvoiceDictionaryType() { return invoiceDictionaryType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInvoiceDictionaryType(Long invoiceDictionaryType) {\r\n this.invoiceDictionaryType = invoiceDictionaryType;\r\n }", "public InvoiceType getInvoiceType()\n {\n return INVOICE_TYPE;\n }", "public String getInvoiceDictionaryCode() {\r\n return invoiceDictionaryCode;\r\n }", "...
[ "0.63143027", "0.6193657", "0.5530643", "0.5528017", "0.5311858", "0.5259728", "0.52514756", "0.5231618", "0.51505566", "0.50976276", "0.5096704", "0.50883347", "0.50303376", "0.502121", "0.50148493", "0.5013192", "0.5004696", "0.4975001", "0.49668956", "0.49667647", "0.49519...
0.7036268
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column KMORDER.INVOICE_DICTIONARY.INVOICE_DICTIONARY_TYPE
public void setInvoiceDictionaryType(Long invoiceDictionaryType) { this.invoiceDictionaryType = invoiceDictionaryType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getInvoiceDictionaryType() {\r\n return invoiceDictionaryType;\r\n }", "public void setInvoice_dictionary_id(long invoice_dictionary_id) {\r\n this.invoice_dictionary_id = invoice_dictionary_id;\r\n }", "public void setC_DocType_ID(boolean isReceipt) {\n setIsReceipt(isReceipt);\n ...
[ "0.61397153", "0.563171", "0.54919976", "0.5360378", "0.5331804", "0.5312306", "0.5312306", "0.5306059", "0.5201872", "0.51730984", "0.5115097", "0.50668997", "0.505617", "0.50355136", "0.50244313", "0.4952204", "0.49477586", "0.49265516", "0.49204543", "0.49140444", "0.48921...
0.6912153
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column KMORDER.INVOICE_DICTIONARY.INVOICE_DICTIONARY_KEY
public Long getInvoiceDictionaryKey() { return invoiceDictionaryKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getInvoice_dictionary_id() {\r\n return invoice_dictionary_id;\r\n }", "public String getInvoiceDictionaryCode() {\r\n return invoiceDictionaryCode;\r\n }", "public Long getInvoiceDictionaryType() {\r\n return invoiceDictionaryType;\r\n }", "public String getInvoiceDictionaryValue() {...
[ "0.66599786", "0.65529966", "0.6091736", "0.58819675", "0.5881908", "0.5876334", "0.57472605", "0.54227996", "0.5373127", "0.53606784", "0.5335893", "0.5282909", "0.5248861", "0.52467084", "0.51647496", "0.5139084", "0.5118518", "0.5068211", "0.506619", "0.505285", "0.5051266...
0.6967637
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column KMORDER.INVOICE_DICTIONARY.INVOICE_DICTIONARY_KEY
public void setInvoiceDictionaryKey(Long invoiceDictionaryKey) { this.invoiceDictionaryKey = invoiceDictionaryKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInvoice_dictionary_id(long invoice_dictionary_id) {\r\n this.invoice_dictionary_id = invoice_dictionary_id;\r\n }", "public void setInvoiceDictionaryValue(String invoiceDictionaryValue) {\r\n this.invoiceDictionaryValue = invoiceDictionaryValue;\r\n }", "public long getInvoice_dictionary...
[ "0.6453189", "0.59908557", "0.59203947", "0.5896791", "0.5869181", "0.5775951", "0.57404816", "0.56003565", "0.53304464", "0.52578455", "0.5178182", "0.51697713", "0.5027654", "0.4870816", "0.4856022", "0.48535165", "0.4837539", "0.48347116", "0.4813866", "0.48065192", "0.479...
0.6637638
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column KMORDER.INVOICE_DICTIONARY.INVOICE_DICTIONARY_CODE
public String getInvoiceDictionaryCode() { return invoiceDictionaryCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getIntermidiateCode(){\r\n\t\treturn iCode;\r\n\t}", "public void setInvoiceDictionaryCode(String invoiceDictionaryCode) {\r\n this.invoiceDictionaryCode = invoiceDictionaryCode;\r\n }", "public long getInvoice_dictionary_id() {\r\n return invoice_dictionary_id;\r\n }", "public ByteVect...
[ "0.62027663", "0.5909514", "0.58917445", "0.5646821", "0.5631683", "0.5587684", "0.55770206", "0.5569154", "0.55668026", "0.5527201", "0.5527201", "0.55192876", "0.54718083", "0.546365", "0.53941965", "0.53712803", "0.53548527", "0.53234184", "0.52651", "0.52621746", "0.52621...
0.6815961
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column KMORDER.INVOICE_DICTIONARY.INVOICE_DICTIONARY_CODE
public void setInvoiceDictionaryCode(String invoiceDictionaryCode) { this.invoiceDictionaryCode = invoiceDictionaryCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getInvoiceDictionaryCode() {\r\n return invoiceDictionaryCode;\r\n }", "public void setInvoiceDictionaryValue(String invoiceDictionaryValue) {\r\n this.invoiceDictionaryValue = invoiceDictionaryValue;\r\n }", "public void setInvoice_dictionary_id(long invoice_dictionary_id) {\r\n this....
[ "0.61495143", "0.5726517", "0.56738305", "0.56409", "0.5523382", "0.54808384", "0.54600656", "0.540854", "0.53703463", "0.5341696", "0.53380764", "0.5316152", "0.5316152", "0.5315207", "0.53067744", "0.5267749", "0.52584255", "0.52339965", "0.52231", "0.52214086", "0.5213598"...
0.66910064
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column KMORDER.INVOICE_DICTIONARY.INVOICE_DICTIONARY_VALUE
public String getInvoiceDictionaryValue() { return invoiceDictionaryValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getInvoice_dictionary_id() {\r\n return invoice_dictionary_id;\r\n }", "public String getInvoiceDictionaryCode() {\r\n return invoiceDictionaryCode;\r\n }", "public java.lang.String getINVOICE_DOC_ITEM() {\r\n return INVOICE_DOC_ITEM;\r\n }", "public Long getInvoiceDictionaryTyp...
[ "0.59403926", "0.5911996", "0.559768", "0.5490984", "0.54582375", "0.54506457", "0.5244495", "0.5240003", "0.521778", "0.52061975", "0.51481074", "0.51466006", "0.50771445", "0.5023503", "0.49956077", "0.49760085", "0.49119595", "0.48670074", "0.48140985", "0.47883484", "0.47...
0.63318604
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column KMORDER.INVOICE_DICTIONARY.INVOICE_DICTIONARY_VALUE
public void setInvoiceDictionaryValue(String invoiceDictionaryValue) { this.invoiceDictionaryValue = invoiceDictionaryValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInvoice_dictionary_id(long invoice_dictionary_id) {\r\n this.invoice_dictionary_id = invoice_dictionary_id;\r\n }", "public void setInvoiceDictionaryKey(Long invoiceDictionaryKey) {\r\n this.invoiceDictionaryKey = invoiceDictionaryKey;\r\n }", "public void setInvoiceDictionaryCode(String...
[ "0.5940297", "0.54657435", "0.5457863", "0.54014623", "0.5389791", "0.5372486", "0.5300795", "0.5267111", "0.52486634", "0.510219", "0.48564458", "0.48505455", "0.47966185", "0.47670487", "0.4749097", "0.4744256", "0.47226894", "0.4715943", "0.4655671", "0.4635089", "0.460999...
0.63051224
0
This method was generated by Apache iBATIS ibator. This method returns the value of the database column KMORDER.INVOICE_DICTIONARY.INVOICE_DICTIONARY_COMMENT
public String getInvoiceDictionaryComment() { return invoiceDictionaryComment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Lob\r\n @Column (name=\"RECORD_COMMENT\")\r\n\tpublic String getComment() {\r\n\t\treturn comment;\r\n\t}", "public void setInvoiceDictionaryComment(String invoiceDictionaryComment) {\r\n this.invoiceDictionaryComment = invoiceDictionaryComment;\r\n }", "public String getComment() throws SQLException {...
[ "0.64440596", "0.6299062", "0.621146", "0.5881707", "0.5818516", "0.5776344", "0.57656026", "0.5763562", "0.5728133", "0.56969", "0.5644064", "0.56278384", "0.5615048", "0.5615048", "0.5604298", "0.56037134", "0.56037134", "0.56037134", "0.56037134", "0.56037134", "0.56037134...
0.7009426
0
This method was generated by Apache iBATIS ibator. This method sets the value of the database column KMORDER.INVOICE_DICTIONARY.INVOICE_DICTIONARY_COMMENT
public void setInvoiceDictionaryComment(String invoiceDictionaryComment) { this.invoiceDictionaryComment = invoiceDictionaryComment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getInvoiceDictionaryComment() {\r\n return invoiceDictionaryComment;\r\n }", "public void setComment(String new_comment){\n this.comment=new_comment;\n }", "public void setComment(String comment);", "public void setComment(String comment);", "@Lob\r\n @Column (name=\"RECORD_C...
[ "0.62058413", "0.5657961", "0.55463874", "0.55463874", "0.5535578", "0.54990345", "0.53207916", "0.53120387", "0.5279462", "0.5271739", "0.5250459", "0.5248131", "0.5245781", "0.52061844", "0.52004963", "0.5167166", "0.5157753", "0.51526487", "0.51319295", "0.5129166", "0.511...
0.68970543
0
Convert dip to px based on the phone resolution
public static int dip2px(Context context, float dpValue) { final float scale = context.getResources().getDisplayMetrics().density; return (int) (dpValue * scale + 0.5f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int dpToPx() {\n Resources r = getResources();\n return Math.round(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, r.getDisplayMetrics()));\n }", "private float convertDpToPixel(float dp){\n Resources resources = getContext().getResources();\n DisplayMetrics me...
[ "0.77763456", "0.7725834", "0.7591838", "0.7505466", "0.7505466", "0.7505466", "0.7505466", "0.7505466", "0.7505466", "0.7505466", "0.7505466", "0.7505466", "0.7505466", "0.7505466", "0.7505466", "0.7505466", "0.7505466", "0.7505466", "0.7505466", "0.7479965", "0.7479831", ...
0.691001
60
Convert px to dip based on the phone resolution
public static int px2dip(Context context, float pxValue) { final float scale = context.getResources().getDisplayMetrics().density; return (int) (pxValue / scale + 0.5f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private float convertDpToPixel(float dp){\n Resources resources = getContext().getResources();\n DisplayMetrics metrics = resources.getDisplayMetrics();\n float px = dp * (metrics.densityDpi / 160f);\n return px;\n }", "public static int pixelToDip(Context context, int px) {\n ...
[ "0.7610931", "0.7594886", "0.757984", "0.7564679", "0.74817604", "0.74558216", "0.74296093", "0.7406178", "0.7375062", "0.7355892", "0.7325655", "0.7322872", "0.73126537", "0.72833717", "0.7260056", "0.7212614", "0.7212614", "0.7212614", "0.720468", "0.720468", "0.720468", ...
0.6947907
46
Creates new form TELAPRINCIPALVETERINARIO
public Tela_Principal_Veterinario(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribu...
[ "0.68771493", "0.67034835", "0.6621841", "0.6438433", "0.6411921", "0.6394797", "0.6330552", "0.6301819", "0.6295646", "0.62914413", "0.625411", "0.62094986", "0.61655104", "0.6157906", "0.61412483", "0.61294043", "0.61191", "0.6116069", "0.61067647", "0.61031747", "0.6089554...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel2 = new javax.swing.JPanel(); jldata3 = new javax.swing.JLabel(); jlhora3 = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu3 = new javax.swing.JMenu(); jMenuItem2 = new javax.swing.JMenuItem(); jMenuItem4 = new javax.swing.JMenuItem(); jMenuItem1 = new javax.swing.JMenuItem(); jMenu4 = new javax.swing.JMenu(); jMenuItem14 = new javax.swing.JMenuItem(); jMenu2 = new javax.swing.JMenu(); jMenuItem5 = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); addWindowListener(new java.awt.event.WindowAdapter() { public void windowOpened(java.awt.event.WindowEvent evt) { aoabrirtela(evt); } }); jPanel2.setBackground(new java.awt.Color(102, 102, 102)); jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder(java.awt.Color.white, java.awt.Color.white)); jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/TELAS/IMAGENS/Veterinary_symbol.svg.png"))); // NOI18N jLabel2.setFont(new java.awt.Font("Century Gothic", 1, 11)); // NOI18N jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel3.setFont(new java.awt.Font("Century Gothic", 1, 11)); // NOI18N jLabel3.setForeground(new java.awt.Color(255, 255, 255)); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap(100, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addComponent(jldata3) .addGap(18, 18, 18) .addComponent(jlhora3) .addContainerGap()) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addComponent(jLabel1) .addGap(100, 100, 100)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addComponent(jLabel2) .addGap(18, 18, 18) .addComponent(jLabel3) .addContainerGap()))) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addGap(56, 56, 56) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jlhora3) .addComponent(jldata3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(jLabel3))) ); jMenuBar1.setBackground(new java.awt.Color(0, 204, 204)); jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/TELAS/IMAGENS/Document_Write_26983.png"))); // NOI18N jMenu3.setText("Cadastrar & Buscar"); jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/TELAS/IMAGENS/medical-42_icon-icons.com_73897.png"))); // NOI18N jMenuItem2.setText("Receita"); jMenuItem2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem2abrirtelareceita(evt); } }); jMenu3.add(jMenuItem2); jMenuItem4.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/TELAS/IMAGENS/medical-11_icon-icons.com_73929.png"))); // NOI18N jMenuItem4.setText("Registro Clinico"); jMenuItem4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem4abrirregistro(evt); } }); jMenu3.add(jMenuItem4); jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/TELAS/IMAGENS/vaccine_2_icon-icons.com_54420.png"))); // NOI18N jMenuItem1.setText("Vacina"); jMenuItem1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem1abrirtelavacina(evt); } }); jMenu3.add(jMenuItem1); jMenuBar1.add(jMenu3); jMenu4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/TELAS/IMAGENS/info_1337.png"))); // NOI18N jMenu4.setText("Informacoes"); jMenuItem14.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem14.setIcon(new javax.swing.ImageIcon(getClass().getResource("/TELAS/IMAGENS/processinformation_proceso_2341.png"))); // NOI18N jMenuItem14.setText("Sobre"); jMenuItem14.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem14aoclicaremsobre(evt); } }); jMenu4.add(jMenuItem14); jMenuBar1.add(jMenu4); jMenu2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/TELAS/IMAGENS/SignOut_icon-icons.com_74704 (2).png"))); // NOI18N jMenu2.setText("Sair"); jMenu2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenu2parasairdosistema(evt); } }); jMenuItem5.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK)); jMenuItem5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/TELAS/IMAGENS/logout256_24927.png"))); // NOI18N jMenuItem5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem5parasair(evt); } }); jMenu2.add(jMenuItem5); jMenuBar1.add(jMenu2); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); pack(); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
/////////////////////////////////////////////////////////////////// MARK FUNCTIONS ///////////////////////////////////////////////////////////////////
public void setMark(Vector2 tilePosition, BoardGroundMark.GroundMarkType markType) { BoardTile tile = getTile(tilePosition); if(tile != null) tile.setMark(markType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mark();", "@Override\n\tpublic void marks() {\n\t\t\n\t}", "int getMark();", "@Override\n\tpublic Integer mark() {\n\t\treturn mark;\n\t}", "public void createMarksheet() {\n }", "private void kk12() {\n\n\t}", "public void mark() {\r\n\t\tmark = cursor;\r\n\t}", "@Override\r\n\tprotec...
[ "0.67522043", "0.6637488", "0.6252872", "0.61476666", "0.6008219", "0.599003", "0.59406763", "0.5927546", "0.58839977", "0.58428806", "0.5835699", "0.583189", "0.58120733", "0.58054835", "0.57900435", "0.5783412", "0.5760375", "0.57517636", "0.57303554", "0.5711646", "0.56967...
0.0
-1
/////////////////////////////////////////////////////////////////// BUG FUNCTIONS ///////////////////////////////////////////////////////////////////
public void createBug(Vector2 tilePosition) { BoardTile tile = getTile(tilePosition); if(tile != null) { BoardBug bug = new BoardBug(bugsId); ++bugsId; bug.setTilePosition(tilePosition); tile.setBug(bug); board.addChild(bug); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "priv...
[ "0.6203624", "0.608285", "0.608285", "0.5986413", "0.5986413", "0.5952499", "0.5952499", "0.59235203", "0.59235203", "0.5915362", "0.5915362", "0.58762157", "0.58762157", "0.58039963", "0.57683086", "0.57683086", "0.57243395", "0.57243395", "0.57089204", "0.5682468", "0.56587...
0.0
-1
/////////////////////////////////////////////////////////////////// ACTION FUNCTIONS ///////////////////////////////////////////////////////////////////
public void takeAction(BoardGameController.BoardBugAction action) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "@Override\n public void action() {\n }", "@Override\n public void action() {\n }", "@Override\n public void action() {\n ...
[ "0.6570915", "0.6477312", "0.6386333", "0.6386333", "0.6386333", "0.63208705", "0.6152025", "0.5931135", "0.59012413", "0.5895886", "0.5794513", "0.5775688", "0.5750893", "0.5743052", "0.5742979", "0.57416207", "0.57416207", "0.57416207", "0.57416207", "0.57343113", "0.572697...
0.0
-1
function that get customer
@GET @Path("get") public Customer getCustomer(@QueryParam("id") int id) { return ManagerHelper.getCustomerManager().get(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustomer(String custId);", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "Customer getCustomer();", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }"...
[ "0.8043285", "0.7950391", "0.7946862", "0.7664923", "0.7551805", "0.7450228", "0.7437757", "0.7416071", "0.74121976", "0.729134", "0.72144395", "0.72051114", "0.7176426", "0.7116456", "0.7114661", "0.7082274", "0.7052014", "0.7035865", "0.7033214", "0.7033214", "0.7027294", ...
0.0
-1
function that get customer by name
@GET @Path("getByName") public List<Customer> getByName(@QueryParam("companyname") String companyname) { return ManagerHelper.getCustomerManager().getByName(companyname); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Customer getCustomerByName(String customerName);", "public String getCustomer(String custId);", "String getCustomerNameById(int customerId);", "public Customer getSpecificCustomerByName(String name){\n Customer specificCustomer = null;\n\n try{\n // try and connect\n ...
[ "0.87000996", "0.80955863", "0.78619546", "0.7674253", "0.74419475", "0.736085", "0.7278353", "0.7272053", "0.72381485", "0.7214077", "0.7210115", "0.7093415", "0.7064118", "0.7021315", "0.6956738", "0.6940565", "0.6932824", "0.69016814", "0.687631", "0.6861234", "0.683884", ...
0.0
-1
function that active customers
@GET @Path("getcustomerbystatus") public List<Customer> getAllCustomerByStatus(@QueryParam("active") boolean active) { if (active) { return ManagerHelper.getCustomerManager().getActiveCustomer(); } else { return ManagerHelper.getCustomerManager().getAllCustomerByStatus(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasCustomer();", "boolean hasCustomer();", "public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}", "public List<Order> p1_getActiveOrders(Customer customer) {\t\n\t\t//return customer.getOrders().stream().collect(toList()); // INITIAL\n\t\t// ...
[ "0.6648233", "0.6648233", "0.6489319", "0.6488193", "0.6454383", "0.64505947", "0.6343746", "0.62005717", "0.61855066", "0.61582416", "0.6156566", "0.61364263", "0.6135897", "0.60762113", "0.6056387", "0.6028595", "0.5995743", "0.59517574", "0.5859004", "0.5831494", "0.581147...
0.5877959
18
function that create customer
@GET @Path("CreateCustomer") public Customer createCustomer(@QueryParam("companyname") String companyname, @QueryParam("companynumber") String companynumber, @QueryParam("contactname") String contactname, @QueryParam("email") String email, @QueryParam("phone") String phone, @QueryParam("username")String username ,@QueryParam("password") String password) { return ManagerHelper.getCustomerManager().createCustomer(companyname, companynumber, contactname, email, phone, username,password ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "Customer createCustomer();", "@Override\n\tpublic void create(Customer t) {\n\n\t}", "Customers createCustomers();", "SerialResponse createCustomer(Pin...
[ "0.86807406", "0.82674956", "0.82674956", "0.82674956", "0.82674956", "0.78618205", "0.7840581", "0.7743427", "0.76468384", "0.7524038", "0.7476304", "0.74689275", "0.7426196", "0.7423635", "0.73071134", "0.7293025", "0.72735894", "0.72641045", "0.7258522", "0.72431344", "0.7...
0.65825146
55
function that update customer
@GET @Path("UpdateCustomer") public Reply UpdateCustomer(@QueryParam("id") int id, @QueryParam("companyname") String companyname, @QueryParam("companynumber") String companynumber, @QueryParam("contactname") String contactname, @QueryParam("email") String email, @QueryParam("phone") String phone, @QueryParam("user") int user) { return ManagerHelper.getCustomerManager().UpdateCustomer(id, companyname, companynumber, contactname, email, phone, user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update(Customer customer) {\n\n\t}", "@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}", "@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}", "public void update(Customer myCust){\n }", "void updateCustomerById(Customer customer);", "@Override\n\tpublic void up...
[ "0.82911676", "0.8127249", "0.8127249", "0.8113978", "0.7974079", "0.7940226", "0.7845244", "0.7708672", "0.7639388", "0.76373684", "0.76114446", "0.7533467", "0.75269043", "0.75058126", "0.7478054", "0.7462301", "0.7428085", "0.7400976", "0.739798", "0.737726", "0.7376896", ...
0.64483815
100
function that delete customer
@GET @Path("DeleteCustomer") public Reply deleteCustomer(@QueryParam("id") int id) { return ManagerHelper.getCustomerManager().deleteCustomer(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delete(Customer customer);", "public boolean deleteCustomer(String custId);", "void deleteCustomerById(int customerId);", "@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}", "void deleteCustomerById(Long id);", "publ...
[ "0.8483218", "0.83995086", "0.8356925", "0.81706417", "0.81706417", "0.8099872", "0.8097399", "0.8028445", "0.79858744", "0.79035723", "0.7711121", "0.7635617", "0.75761056", "0.7525573", "0.75206333", "0.7488899", "0.7482914", "0.744846", "0.74224246", "0.7386226", "0.738607...
0.66983557
83
function that get big customers
@GET @Path("getBigCustomer") public List<Customer> getBigCustomer() { return ManagerHelper.getCustomerManager().getBigCustomer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}", "@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer =...
[ "0.65296376", "0.6407081", "0.63828117", "0.6361093", "0.6350191", "0.6339881", "0.63092494", "0.62968785", "0.62711656", "0.62675476", "0.6237466", "0.6190887", "0.61798257", "0.61760277", "0.61557186", "0.61462575", "0.6144215", "0.6110354", "0.6099395", "0.6065075", "0.606...
0.7019486
0
function that get all the customers
@GET @Path("getAllCustomer") public List<Customer> getAllCustomer() { return ManagerHelper.getCustomerManager().getAllCustomer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}", "@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer =...
[ "0.8442817", "0.8356001", "0.8307082", "0.8270868", "0.82237643", "0.81114215", "0.806669", "0.802125", "0.7978341", "0.7958394", "0.79446185", "0.7924346", "0.7916713", "0.7860486", "0.7855547", "0.78523237", "0.7836497", "0.7833235", "0.78074247", "0.7778139", "0.7773143", ...
0.770963
25
function that get customers by userId
@GET @Path("getCustomerByUser") public Customer getCustomerByUser(@QueryParam("user")int user) { return ManagerHelper.getCustomerManager().getCustomerByUser(user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Customer getCustomer(Long userId) {\n Optional<Customer> customer = customerDao.getCustomer(userId);\n if (!customer.isPresent()) {\n logger.error(\"Customer with this id {} doesn't exist\", userId);\n }\n return customer.orElseThrow(ResourceNotFoundExce...
[ "0.76293296", "0.7458957", "0.74420434", "0.72151494", "0.7090446", "0.7025485", "0.7010937", "0.7010847", "0.693809", "0.69315964", "0.6808822", "0.6743053", "0.67339736", "0.6656128", "0.6624569", "0.65962815", "0.65912735", "0.6568786", "0.65560305", "0.6528699", "0.650861...
0.65562356
18
Unpickle an attribute from a string.
public abstract Object unpickle(String value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object unpickle (String value) {\n\treturn Long.valueOf(value);\n }", "public static UserDetails deSerialize(String s) throws IOException, ClassNotFoundException\r\n\t{\r\n\t\tbyte [] data = Base64Coder.decode(s);\r\n\t\tObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(data));\r\n...
[ "0.6037313", "0.54704946", "0.5362543", "0.5307494", "0.517854", "0.5150346", "0.51093924", "0.50427496", "0.49658588", "0.48305094", "0.48158047", "0.47834185", "0.47682625", "0.4679389", "0.46152464", "0.46068627", "0.45967707", "0.45948535", "0.45848805", "0.45334944", "0....
0.71078926
0
Pickle an attribute into a String.
public abstract String pickle(Object obj);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStringAttribute();", "String serialize();", "public String getStr(String attr) {\n return (String) super.get(attr);\n }", "protected String getAttributeStr(String attr)\n {\n Object res = getAttributes().get(attr);\n return (res != null) ? res.toString() : null;\n ...
[ "0.63118714", "0.61950177", "0.6099851", "0.6088944", "0.58503056", "0.5781807", "0.5754151", "0.56699497", "0.5656054", "0.56295806", "0.5578071", "0.55027664", "0.5468675", "0.5460238", "0.5439408", "0.5422871", "0.5408826", "0.54028845", "0.5400826", "0.5398671", "0.536604...
0.5365048
21
/ Menu constructors handle adding their choices, obtaining the surveyManager, and creating private instances of needed variables
public Menu() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Menu(String[] choices)\n {\n\t\n\tthis.choices = choices;\n }", "private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n ...
[ "0.7098885", "0.6924937", "0.6693156", "0.65474755", "0.64061165", "0.6376172", "0.63730484", "0.6351512", "0.6329041", "0.6299754", "0.6251181", "0.62016726", "0.61666435", "0.616002", "0.61597306", "0.61263555", "0.612407", "0.6115157", "0.6114677", "0.6102684", "0.60890836...
0.64207536
4
/ Most child classes override this to provide stylized output of their menu choices, as well as a header stating the name of the menu.
public String toString() { String out = ""; for (int i = 0; i < this.getNumberChoices(); i++) { MenuChoice thisChoice = this.getChoices().get(i); out += thisChoice.getIndex() + ") " + thisChoice.getValue() + "\n"; } return out; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void printMenu() {\n System.out.println(\"\\nChoose an option:\");\n }", "private void printMenu() {\n\t\tSystem.out.printf(\"\\n********** MiRide System Menu **********\\n\\n\");\n\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Create Car\", \"CC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Book...
[ "0.6711987", "0.6686574", "0.66110075", "0.65840334", "0.64515406", "0.6384919", "0.6355174", "0.6324927", "0.6295716", "0.6264135", "0.6260108", "0.62085146", "0.6204133", "0.6187796", "0.6180753", "0.61782676", "0.61767006", "0.6163659", "0.61567736", "0.613708", "0.6130021...
0.0
-1
/ Virtually all child classes utilize a boolean prompt for user verification. This displays a prompt and returns a boolean based on the user's response.
protected boolean promptBoolean(String prompt) { System.out.print(prompt + " ('y' or 'n'): "); char userResponse = reader.nextLine().charAt(0); while (userResponse != 'y' && userResponse != 'n') { System.out.print("Please enter a valid choice.\n" + prompt + " ('y' or 'n'): "); userResponse = reader.nextLine().charAt(0); } if (userResponse == 'y') { return true; } else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean displayPrompt(String msg);", "private boolean promptCommand() {}", "@Override\r\n\t\tpublic boolean promptYesNo(String message) {\n\t\t\treturn true;\r\n\t\t}", "public boolean promptYesNo(String str)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}", "boolean hasInitialPromptFulfillment();", "stat...
[ "0.7336251", "0.72674835", "0.71588427", "0.70557624", "0.6967916", "0.6908347", "0.6798472", "0.65777594", "0.65499216", "0.65307045", "0.6513894", "0.6481592", "0.64773524", "0.6473772", "0.64733416", "0.6448008", "0.6430209", "0.6430209", "0.64219165", "0.63492876", "0.633...
0.7902286
0
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); String Ename=request.getParameter("Employee-Name"); String Eid=request.getParameter("Employee-Id"); String Eemail=request.getParameter("Employee-Email"); String Econtact=request.getParameter("Employee-contact"); String Esupid=request.getParameter("Employee-superior-ID"); String Eorganisation=request.getParameter("Employee-organisation"); String Ebuilding=request.getParameter("Employee-building"); String Edept=request.getParameter("Employee-department"); String Esup=request.getParameter("Employee-superior"); String Eremarks=request.getParameter("Employee-Remarks"); String AssetDate=request.getParameter("oldAsset-Request-date"); String AssetModelid=request.getParameter("oldAsset-company-Id"); String Assetorgid=request.getParameter("oldAsset-organisation-Id"); String AssetType=request.getParameter("oldAsset-Type"); String Assetremarks=request.getParameter("oldAsset-Request-remarks"); String Assetreqtype=request.getParameter("oldAsset-request"); //Auto Refresh Connection conn; ResultSet rs; try { Class.forName("oracle.jdbc.driver.OracleDriver"); //JDBC Connection } catch (ClassNotFoundException ex) { ex.printStackTrace(); } try { conn=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system", "sourabh007"); Statement st=conn.createStatement(); int i= st.executeUpdate("Insert into OLD_ASSET values('"+Ename+"','"+Eid+"','"+Eemail+"','"+Econtact+"','"+Esupid+"','"+Esup+"','"+Eorganisation+"','"+Ebuilding+"','"+Edept+"','"+Eremarks+"','"+AssetDate+"','"+AssetType+"','"+AssetModelid+"','"+Assetorgid+"','"+Assetremarks+"','"+Assetreqtype+"')"); if(i>0) { out.println("<html><head><h1 align='center'><b><i>Database-Storage</i></b></h1>"); out.println("<link href='Itasset.css' type='text/css' rel='stylesheet'/>"); out.println("</head>"); out.println("<body align='center' background='6899096-abstract-wallpaper.jpg'>You Have Been SuccessFully Registered<br>"); out.println("The Data We Have Recieved Are Following:-"); Enumeration e = request.getParameterNames(); out.println("<table border=3 align='center'><th>Attributes</th><th>VALUES</th>"); while(e.hasMoreElements()) { String pname = (String)e.nextElement(); out.println("<tr><td>"+pname+"</td> "); String pvalue = request.getParameter(pname); out.println("<td>"+pvalue+"</td></tr>"); } out.println("</table>"); out.println("<br>"); out.println("Please Click This Button To Go Back"); out.println("<a href='ITassetmngt.html'><input type='button' value='Back'/></a>"); out.println("</body></html>"); out.close(); } else{ out.println("Error Occured"); } } catch(SQLException e){ e.printStackTrace(); } finally { out.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.6392...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.8763258", "0.87319016", "0.87319016", "0.87319016", "0.87319016", "0.87319016", "0.87319016", "0.87319016", "0.87319016", "0.87319016", "0.87319016", "0.8698781", "0.8698781", "0.8698781", "0.8698781", "0.8698781", "0.8698781", "0.85306925", "0.85306925", "0.8527569", "0.8...
0.0
-1
While the contact menu is open, the person is able to pick one contact and then it pastes to the input field
public void onActivityResult(int reqCode, int resultCode, Intent data) { super.onActivityResult(reqCode, resultCode, data); if (reqCode != Activity.RESULT_OK && data != null) { Uri contactUri = data.getData(); String[] rcontact = {ContactsContract.CommonDataKinds.Phone.NUMBER, ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME}; Cursor c = getContentResolver() .query(contactUri, rcontact, null, null, null); c.moveToFirst(); int contact_name = c.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER); int contact_number = c.getColumnIndex(ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME); String contact_number1 = c.getString(contact_number); String contact_name1 = c.getString(contact_name); input_msg.setText("Number: " + contact_number1 + " Name:" + contact_name1); Toast.makeText(this, contact_name1 + " has number " + contact_number1, Toast.LENGTH_LONG).show(); } else{ Toast.makeText(this, " This Device has no Contacs ", Toast.LENGTH_LONG).show(); finish(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void editDetails(String name) {\n if(isContactExist(name) == true) {\n Contacts contact = getContact(name);\n boolean isExit = false;\n while(!isExit) {\n System.out.println(\"Select option:\" + \"\\n\" + \"1.first name\" + \"\\n\" + \"2.last name\" +\n...
[ "0.6544718", "0.6290786", "0.62823415", "0.6164122", "0.60671365", "0.6046692", "0.6033431", "0.59953785", "0.5923292", "0.5890643", "0.58764184", "0.5848988", "0.58330536", "0.5808531", "0.57969964", "0.57432765", "0.5689278", "0.5669316", "0.56607336", "0.5650085", "0.56439...
0.0
-1
It load all previus Conversation in each room. Also Updates the chat with all new messages using dataSnapshots Firebase uses Snapshots to show its data. And with a loop we display all messages based on the Unique Keys
private void append_chat_conversation(DataSnapshot dataSnapshot) { Vibrator mVibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); Iterator i = dataSnapshot.getChildren().iterator(); while (i.hasNext()) { String chat_msg = (String) ((DataSnapshot) i.next()).getValue(); String chat_user_name = (String) ((DataSnapshot) i.next()).getValue(); if (chat_user_name.equals( ad.getName())) { Spannable Chatme = new SpannableString(chat_user_name + " : " + chat_msg + " \n"); Chatme.setSpan(new ForegroundColorSpan(Color.BLUE), 0, chat_user_name.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); chat_conversation.append(Chatme); } else { chat_conversation.append( chat_user_name + " : " + chat_msg + " \n"); mVibrator.vibrate(200); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getChatMessages() {\n Query query = firestore.collection(\"chatRooms\")\n .document(SharedPreferencesSingleton.getSharedPrefStringVal(SharedPreferencesSingleton.CONVERSATION_ZONE))\n .collection(\"messages\")\n .orderBy(\"timestamp\", Query.Direction...
[ "0.6886244", "0.6796449", "0.6777268", "0.67399454", "0.67290795", "0.65907", "0.6470488", "0.6409086", "0.6386051", "0.638328", "0.63189775", "0.6318295", "0.62646985", "0.62316126", "0.6217241", "0.6200447", "0.6157765", "0.6072296", "0.6025617", "0.5973148", "0.592745", ...
0.649076
6
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
end of constructor Costruttore
public WrapBio(Page pagina, EntityManager manager) { doInit(pagina, manager); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProtocoloDAO() {\n }", "public Datos(){\n }", "public DatabaseOperations(){\n\n }", "public DescritoresDAO() {\n\t\t\n\t}", "public EstadosSql() {\r\n }", "private BaseDatos() {\n }", "public Caso_de_uso () {\n }", "private DatabaseOperations() {\n }", "public ProfesorDA...
[ "0.71379334", "0.69891375", "0.6989015", "0.69333977", "0.6895899", "0.6889584", "0.6814716", "0.67986757", "0.67633224", "0.67589456", "0.67405164", "0.6728044", "0.6707136", "0.6691822", "0.6687652", "0.66806954", "0.6679857", "0.66472185", "0.6646304", "0.66389656", "0.663...
0.0
-1
end of getter method
public Bio getBio() { return bio; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "@Override\n String get();", "public void get() {\n }", "public abstract String get();", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public Strin...
[ "0.71844727", "0.7109662", "0.6809625", "0.6783214", "0.6690879", "0.6663007", "0.6635221", "0.6628147", "0.6585126", "0.65594417", "0.65162015", "0.65102106", "0.65081656", "0.6490773", "0.6474654", "0.6471766", "0.6468677", "0.64364654", "0.64350224", "0.6430251", "0.642299...
0.0
-1
nothing to retrieve from the ETL
@Override public void init(final AbstractETL<?, ?> etl) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String detailsLoad() throws Exception {\n\t\treturn null;\n\t}", "protected abstract void retrievedata();", "private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackT...
[ "0.5820564", "0.57825863", "0.56015456", "0.5575485", "0.5517506", "0.5501393", "0.5487919", "0.5481825", "0.5435501", "0.5431272", "0.5431272", "0.5402957", "0.5396682", "0.5394107", "0.5390402", "0.5377462", "0.53505385", "0.53217536", "0.5310427", "0.5310427", "0.53085214"...
0.0
-1