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
/ 147: / 148:
public void setListaConceptoRetencionSRI(List<ConceptoRetencionSRI> listaConceptoRetencionSRI) /* 149: */ { /* 150:160 */ this.listaConceptoRetencionSRI = listaConceptoRetencionSRI; /* 151: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "public void mo21782G() {\n }", "public void mo21794S() {\n }", "public void mo21877s() {\n }", "public void mo21783H() {\n }", "public void mo21779D() {\n }", "private void m50366E() {\n }", "public void mo38117a() {\n }", "public void mo21787L() {\n }", "public void mo3749d() {\n }", "public void mo21785J() {\n }", "public void mo12628c() {\n }", "public void mo21879u() {\n }", "public void mo21791P() {\n }", "public void mo23813b() {\n }", "public void mo21793R() {\n }", "public void mo21792Q() {\n }", "public void mo21780E() {\n }", "public void mo21878t() {\n }", "public void mo21786K() {\n }", "public void mo55254a() {\n }", "public void mo21795T() {\n }", "public void mo21789N() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo21788M() {\n }", "public void mo115190b() {\n }", "public void mo4359a() {\n }", "public void mo44053a() {\n }", "public void mo115188a() {\n }", "public void mo21784I() {\n }", "public void mo3376r() {\n }", "public void mo97908d() {\n }", "public void mo56167c() {\n }", "public void mo12930a() {\n }", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public void mo9848a() {\n }", "public void mo21781F() {\n }", "public void mo9233aH() {\n }", "public void mo1405e() {\n }", "void mo57277b();", "public void mo21825b() {\n }", "public void skystonePos4() {\n }", "public void m23075a() {\n }", "public abstract String mo118046b();", "public void mo2471e() {\n }", "void mo57278c();", "public void mo9137b() {\n }", "public void mo6944a() {\n }", "public void mo2740a() {\n }", "public void mo21880v() {\n }", "private void m50367F() {\n }", "public abstract String mo13682d();", "public void mo5248a() {\n }", "void m1864a() {\r\n }", "public int getExtendedID()\r\n/* 12: */ {\r\n/* 13:17 */ return 10;\r\n/* 14: */ }", "public void mo2470d() {\n }", "public void mo1403c() {\n }", "void mo21073d();", "void mo21076g();", "public void mo6081a() {\n }", "void mo119582b();", "public abstract String mo9751p();", "public abstract String mo41079d();", "void mo21074e();", "private void kk12() {\n\n\t}", "public void skystonePos6() {\n }", "void mo41083a();", "public void mo5382o() {\n }", "void mo17013d();", "public final void mo51373a() {\n }", "public abstract void mo27385c();", "public void mo3370l() {\n }", "@Override\n public void func_104112_b() {\n \n }", "void mo72114c();", "void mo1943l();", "void mo21072c();", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "public abstract void mo56925d();", "void mo1507n();", "void mo41086b();", "public int getExtendedID()\r\n/* 50: */ {\r\n/* 51: 39 */ return 0;\r\n/* 52: */ }", "void mo119581a();", "public abstract String mo41086i();", "public abstract int mo8526p();", "void mo72113b();", "abstract String mo1748c();", "public void mo8738a() {\n }", "void mo56163g();", "public void mo21800a() {\n }", "protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }", "void mo3194r();", "void mo12638c();", "public abstract int mo9754s();", "public void mo97906c() {\n }" ]
[ "0.64909226", "0.63639855", "0.6333191", "0.6319801", "0.6307159", "0.6295168", "0.62186235", "0.62152916", "0.62076694", "0.61557996", "0.61468357", "0.6138134", "0.61292773", "0.61194676", "0.6115724", "0.61150277", "0.611148", "0.61080563", "0.6103953", "0.6093825", "0.60758424", "0.6065393", "0.6046147", "0.6034651", "0.6034651", "0.6034651", "0.6034651", "0.6034651", "0.6034651", "0.6034651", "0.6026854", "0.60170335", "0.60130835", "0.60051167", "0.59957284", "0.59867495", "0.59646475", "0.5958921", "0.59562486", "0.5951012", "0.5949098", "0.5948513", "0.5945442", "0.5929361", "0.59250414", "0.5914473", "0.590581", "0.5904565", "0.59038645", "0.5888518", "0.588703", "0.5885265", "0.58691865", "0.58682746", "0.58616066", "0.5852568", "0.5826582", "0.5826458", "0.58258986", "0.58247036", "0.58198553", "0.5812981", "0.58114505", "0.5803913", "0.57980645", "0.57747155", "0.5771576", "0.5770302", "0.5767688", "0.5751557", "0.57510966", "0.5746864", "0.5731163", "0.57299566", "0.57161814", "0.57134706", "0.5710612", "0.57034653", "0.57033604", "0.5694443", "0.5691313", "0.5691095", "0.5686986", "0.5686034", "0.56825715", "0.5681566", "0.568138", "0.56786805", "0.5673622", "0.566693", "0.56641555", "0.5657392", "0.56533384", "0.56481487", "0.56343395", "0.5633748", "0.5633363", "0.56312454", "0.5630344", "0.5628425", "0.5628205" ]
0.0
-1
/ 152: / 153:
public FacturaProveedorSRI getFacturaProveedorSRI() /* 154: */ { /* 155:164 */ return this.facturaProveedorSRI; /* 156: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo12628c() {\n }", "private void m50366E() {\n }", "public void mo21877s() {\n }", "public void mo21794S() {\n }", "public void mo21783H() {\n }", "public void method_4270() {}", "public int method_2436() {\r\n return 16;\r\n }", "private void m50367F() {\n }", "public void mo21786K() {\n }", "public void mo21782G() {\n }", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "void mo1507n();", "public void mo21780E() {\n }", "private void kk12() {\n\n\t}", "public int mo1534c() {\n return 2;\n }", "public void mo55254a() {\n }", "public int arn() {\n return 383;\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo56167c() {\n }", "public void mo21779D() {\n }", "public void mo1403c() {\n }", "public void mo21788M() {\n }", "public void mo21789N() {\n }", "public void mo21880v() {\n }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public void mo21787L() {\n }", "public void mo12930a() {\n }", "public void mo21879u() {\n }", "void mo33732Px();", "void mo304a(C0366h c0366h);", "C1458cs mo7613iS();", "public void mo3376r() {\n }", "public void mo38117a() {\n }", "public void mo3749d() {\n }", "public void mo1405e() {\n }", "public void mo44053a() {\n }", "public void mo9233aH() {\n }", "public void mo115190b() {\n }", "public abstract int mo9754s();", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo23813b() {\n }", "public void mo9848a() {\n }", "public abstract long mo24410c();", "public void func_70295_k_() {}", "protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }", "void mo57278c();", "public abstract long mo13681c();", "public void mo21800a() {\n }", "public void m23075a() {\n }", "public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }", "public abstract Integer mo36210m();", "public void mo115188a() {\n }", "public void mo1531a() {\n }", "public void mo21795T() {\n }", "public int a_(int paramInt)\r\n/* 166: */ {\r\n/* 167:189 */ return 0;\r\n/* 168: */ }", "public void mo21784I() {\n }", "C5727e mo33224a();", "public void mo21825b() {\n }", "public void mo21781F() {\n }", "public void skystonePos4() {\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "void mo1506m();", "public void mo2471e() {\n }", "void mo57277b();", "C2841w mo7234g();", "public int method_113() {\r\n return 0;\r\n }", "public short mo34e() {\n return 140;\n }", "C7904c mo24084a();", "C15430g mo56154a();", "public int mo36g() {\n return 4;\n }", "void mo21072c();", "public int m224a() {\n return 1;\n }", "void mo12637b();", "protected void method_4160() {\r\n String[] var10000 = class_752.method_4253();\r\n ++this.field_3416;\r\n String[] var1 = var10000;\r\n int var7 = this.field_3416;\r\n if(var1 != null) {\r\n label96: {\r\n if(this.field_3416 >= 180) {\r\n var7 = this.field_3416;\r\n if(var1 == null) {\r\n break label96;\r\n }\r\n\r\n if(this.field_3416 <= 200) {\r\n float var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n float var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n float var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var10001 = field_3418;\r\n this.field_2990.method_2087(\"hugeexplosion\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n }\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n }\r\n\r\n int var5;\r\n int var6;\r\n class_715 var9;\r\n ahb var10;\r\n label101: {\r\n short var8;\r\n label102: {\r\n if(var1 != null) {\r\n label85: {\r\n if(var7 == 0) {\r\n var7 = this.field_3416;\r\n var8 = 150;\r\n if(var1 != null) {\r\n label80: {\r\n if(this.field_3416 > 150) {\r\n var7 = this.field_3416 % 5;\r\n if(var1 == null) {\r\n break label80;\r\n }\r\n\r\n if(var7 == 0) {\r\n var5 = 1000;\r\n\r\n while(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break label85;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n var8 = 1;\r\n }\r\n\r\n if(var1 == null) {\r\n break label102;\r\n }\r\n\r\n if(var7 == var8) {\r\n this.field_2990.method_2209(1018, (int)this.field_2994, (int)this.field_2995, (int)this.field_2996, 0);\r\n }\r\n }\r\n\r\n this.method_3864(0.0D, 0.10000000149011612D, 0.0D);\r\n this.field_3330 = this.field_3000 += 20.0F;\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n if(var1 == null) {\r\n break label101;\r\n }\r\n\r\n var8 = 200;\r\n }\r\n\r\n if(var7 != var8) {\r\n return;\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var1 != null) {\r\n if(var7 != 0) {\r\n return;\r\n }\r\n\r\n var7 = 2000;\r\n }\r\n\r\n var5 = var7;\r\n\r\n while(true) {\r\n if(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_4325(class_1715.method_9561(this.field_2994), class_1715.method_9561(this.field_2996));\r\n break;\r\n }\r\n\r\n this.method_3851();\r\n }", "public int mo36g() {\n return 8;\n }", "public void mo3370l() {\n }", "public abstract Integer mo36212o();", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "C2451d mo3408a(C2457e c2457e);", "void mo12638c();", "public void mo5382o() {\n }", "public void mo2470d() {\n }", "public int mo3356c() {\n return 0;\n }", "public int mo36g() {\n return 2;\n }", "public abstract long mo9229aD();", "C3676k mo12649b();", "public void mo4683c() {\n mo4679a(3);\n }", "public void mo5099c() {\n }", "public int mo3384v() {\n return 0;\n }", "public void mo6081a() {\n }" ]
[ "0.6053355", "0.59981185", "0.5953255", "0.591696", "0.5911919", "0.59015846", "0.5875468", "0.58629984", "0.58555573", "0.58084846", "0.5794224", "0.57904947", "0.5756643", "0.57382965", "0.57363683", "0.5735584", "0.5732051", "0.5727204", "0.5725969", "0.5725969", "0.5725969", "0.5725969", "0.5725969", "0.5725969", "0.5725969", "0.571794", "0.57177895", "0.57138", "0.5711302", "0.5704063", "0.56923", "0.56803405", "0.568009", "0.5674376", "0.56696945", "0.56640375", "0.56523085", "0.5648206", "0.56464607", "0.5631358", "0.56298697", "0.5606799", "0.5602587", "0.55999684", "0.5588736", "0.5584593", "0.55841744", "0.55838585", "0.55819625", "0.55804104", "0.55740917", "0.5568719", "0.55680764", "0.5565351", "0.55645114", "0.55587536", "0.55578244", "0.55473405", "0.5547319", "0.5533826", "0.5532907", "0.55296534", "0.55216557", "0.5518029", "0.55079067", "0.5504333", "0.55012226", "0.5500427", "0.550019", "0.5492207", "0.54909325", "0.54846215", "0.5481827", "0.5479766", "0.54797626", "0.54744023", "0.54711115", "0.54686064", "0.546161", "0.54613847", "0.5460811", "0.54605454", "0.5458213", "0.54557836", "0.54530776", "0.54476863", "0.5441161", "0.54389805", "0.5437226", "0.54365313", "0.5434101", "0.5429181", "0.54262596", "0.5425185", "0.54250306", "0.5421935", "0.54174286", "0.5416573", "0.5404333", "0.5402635", "0.5402443" ]
0.0
-1
/ 157: / 158:
public void cargarInformacion() /* 159: */ { /* 160:168 */ if (this.indicadorFactura != null) /* 161: */ { /* 162:170 */ if (getTipoAnexoSRI().equals(TipoAnexoSRI.ATS.getNombreAbreviado())) /* 163: */ { /* 164:171 */ setMostrarBaseImponible(true); /* 165:172 */ setMostrarBasesDetalle(false); /* 166: */ } /* 167: */ else /* 168: */ { /* 169:174 */ setMostrarBaseImponible(false); /* 170:175 */ setMostrarBasesDetalle(true); /* 171: */ } /* 172: */ try /* 173: */ { /* 174:179 */ this.mensaje = null; /* 175: */ /* 176: */ /* 177:182 */ ExternalContext context = FacesContext.getCurrentInstance().getExternalContext(); /* 178:183 */ HttpSession session = (HttpSession)context.getSession(true); /* 179:184 */ CompraCajaChica compraCajaChica = (CompraCajaChica)session.getAttribute("compraCajaChica"); /* 180:185 */ FacturaProveedor facturaProveedor = (FacturaProveedor)session.getAttribute("facturaProveedor"); /* 181:186 */ Empresa empresa = null; /* 182:187 */ if (!this.indicadorFactura.booleanValue()) /* 183: */ { /* 184:188 */ this.corrigeDatosRetencion = compraCajaChica.getFacturaProveedorSRI().isTraCorregirDatos(); /* 185:189 */ CompraCajaChica ccc = this.servicioCompraCajaChica.cargarDetalle(compraCajaChica.getIdCompraCajaChica()); /* 186:190 */ empresa = ccc.getEmpresa(); /* 187:191 */ this.facturaProveedorSRI = ccc.getFacturaProveedorSRI(); /* 188: */ } /* 189: */ else /* 190: */ { /* 191:193 */ this.corrigeDatosRetencion = facturaProveedor.getFacturaProveedorSRI().isTraCorregirDatos(); /* 192:194 */ FacturaProveedor facProveedor = this.servicioFacturaProveedor.cargarDetalle(Integer.valueOf(facturaProveedor.getId())); /* 193:195 */ empresa = facProveedor.getEmpresa(); /* 194:196 */ this.facturaProveedorSRI = facProveedor.getFacturaProveedorSRI(); /* 195: */ } /* 196:200 */ if (empresa != null) /* 197: */ { /* 198:201 */ empresa = this.servicioEmpresa.cargarDetalle(empresa); /* 199:202 */ if (this.facturaProveedorSRI != null) /* 200: */ { /* 201:204 */ String email = ""; /* 202:205 */ boolean tieneEmail = false; /* 203:206 */ if ((empresa.getListaContacto() != null) && (!empresa.getListaContacto().isEmpty())) /* 204: */ { /* 205:207 */ for (Contacto contacto : empresa.getListaContacto()) { /* 206:208 */ if ((contacto.getTipoContacto() != null) && (contacto.getTipoContacto().isIndicadorNotificarRetencion())) /* 207: */ { /* 208:209 */ if ((contacto.getEmail1() != null) && (!contacto.getEmail1().equals(""))) { /* 209:210 */ email = email + contacto.getEmail1() + ";"; /* 210: */ } /* 211:212 */ if ((contacto.getEmail2() != null) && (!contacto.getEmail2().equals(""))) { /* 212:213 */ email = email + contacto.getEmail2() + ";"; /* 213: */ } /* 214: */ } /* 215: */ } /* 216:217 */ if (!email.equals("")) /* 217: */ { /* 218:218 */ email = email.substring(0, email.trim().length() - 1).trim(); /* 219:219 */ tieneEmail = true; /* 220: */ } /* 221: */ } /* 222:223 */ if (!tieneEmail) /* 223: */ { /* 224:224 */ if ((empresa.getEmail1() != null) && (!empresa.getEmail1().equals(""))) { /* 225:225 */ email = email + empresa.getEmail1(); /* 226: */ } /* 227:227 */ if ((empresa.getEmail2() != null) && (!empresa.getEmail2().equals(""))) /* 228: */ { /* 229:228 */ if (!email.equals("")) { /* 230:229 */ email = email + ";"; /* 231: */ } /* 232:231 */ email = email + empresa.getEmail2(); /* 233: */ } /* 234: */ } /* 235:235 */ this.facturaProveedorSRI = this.servicioFacturaProveedorSRI.cargarDetalle(this.facturaProveedorSRI.getIdFacturaProveedorSRI()); /* 236:236 */ this.facturaProveedorSRI.setEmail(email); /* 237:237 */ this.servicioFacturaProveedorSRI.cargarConceptosRetencion(this.facturaProveedorSRI, empresa); /* 238:238 */ this.facturaProveedorSRI.setTraCorregirDatos(this.corrigeDatosRetencion); /* 239:239 */ if ((this.facturaProveedorSRI.getDocumento() == null) && (getListaDocumento().size() > 0)) { /* 240:240 */ this.facturaProveedorSRI.setDocumento((Documento)this.listaDocumento.get(0)); /* 241: */ } /* 242:242 */ cargarSecuencia(this.facturaProveedorSRI, AppUtil.getPuntoDeVenta()); /* 243: */ } /* 244: */ } /* 245:246 */ if (this.facturaProveedorSRI != null) /* 246: */ { /* 247:247 */ this.facturaProveedorSRI.setTraCorregirDatos(this.corrigeDatosRetencion); /* 248:248 */ if ((!this.corrigeDatosRetencion) && (FuncionesUtiles.getAnio(this.facturaProveedorSRI.getFechaRegistro()) != 9999)) { /* 249:249 */ this.facturaProveedorSRI.setFechaEmisionRetencion(this.facturaProveedorSRI.getFechaRegistro()); /* 250: */ } /* 251: */ } /* 252:252 */ if ((this.facturaProveedorSRI.isIndicadorRetencionEmitida()) && (!this.facturaProveedorSRI.isTraCorregirDatos())) { /* 253:253 */ this.mensaje = getLanguageController().getMensaje("msg_accion_implica_anulacion_previa"); /* 254: */ } /* 255: */ } /* 256: */ catch (ExcepcionAS2 e) /* 257: */ { /* 258:256 */ addErrorMessage(getLanguageController().getMensaje(e.getCodigoExcepcion()) + e.getMessage()); /* 259:257 */ LOG.info("ERROR ExcepcionAS2 AL CARGAR DATOS EN FACTURAPROVEEDORSRIBEAN", e); /* 260: */ } /* 261: */ catch (Exception e) /* 262: */ { /* 263:260 */ LOG.error("ERROR Exception AL CARGAR DATOS EN FACTURAPROVEEDORSRIBEAN ", e); /* 264:261 */ addErrorMessage(getLanguageController().getMensaje("msg_error_cargar_datos")); /* 265: */ } /* 266: */ finally /* 267: */ { /* 268:264 */ cargarListaTipoComprobanteSRI(); /* 269: */ /* 270:266 */ cargarListaCreditoTributarioSRI(); /* 271: */ } /* 272:268 */ this.indicadorFactura = null; /* 273: */ } /* 274: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "public void mo21794S() {\n }", "public void mo21877s() {\n }", "public void mo21779D() {\n }", "public void mo21786K() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "public void mo12628c() {\n }", "public void mo55254a() {\n }", "public void mo21793R() {\n }", "public void mo21792Q() {\n }", "public void mo38117a() {\n }", "public void mo3749d() {\n }", "private void m50366E() {\n }", "public void mo21787L() {\n }", "public void mo21789N() {\n }", "public void mo56167c() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo21791P() {\n }", "public void mo21879u() {\n }", "private void kk12() {\n\n\t}", "public void mo23813b() {\n }", "public void mo21780E() {\n }", "public void mo21785J() {\n }", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public void mo21878t() {\n }", "public void mo115188a() {\n }", "public void mo21788M() {\n }", "public void mo21795T() {\n }", "public void mo3376r() {\n }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public void mo44053a() {\n }", "public void mo9233aH() {\n }", "public void mo12930a() {\n }", "public void mo97908d() {\n }", "public int method_2436() {\r\n return 16;\r\n }", "public void mo21784I() {\n }", "public void mo115190b() {\n }", "public void mo9848a() {\n }", "public void mo2740a() {\n }", "public void mo5248a() {\n }", "public void mo9137b() {\n }", "public void mo6944a() {\n }", "public void mo21825b() {\n }", "public void mo4359a() {\n }", "public void mo21781F() {\n }", "public void mo2471e() {\n }", "public void mo1405e() {\n }", "public void mo97906c() {\n }", "public void m23075a() {\n }", "public void mo21880v() {\n }", "private void m50367F() {\n }", "void mo1507n();", "void mo57277b();", "public void mo21800a() {\n }", "C1458cs mo7613iS();", "void mo57278c();", "public void mo1531a() {\n }", "public void skystonePos6() {\n }", "public int method_113() {\r\n return 0;\r\n }", "public void mo1403c() {\n }", "public void skystonePos4() {\n }", "public void mo8738a() {\n }", "public void mo2470d() {\n }", "void m1864a() {\r\n }", "public int method_209() {\r\n return 0;\r\n }", "public int method_6437() {\r\n return this.field_6227;\r\n }", "public int method_1549() {\r\n return this.field_1434;\r\n }", "public void mo5382o() {\n }", "public void mo6081a() {\n }", "C7904c mo24084a();", "public int mo1534c() {\n return 2;\n }", "static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "void mo12637b();", "public void mo21867i() {\n mo21877s();\n }", "public abstract int mo8526p();", "public void mo23438b() {\n }", "void mo17013d();", "public int a_(int paramInt)\r\n/* 166: */ {\r\n/* 167:189 */ return 0;\r\n/* 168: */ }", "public void method_191() {}", "public int getLine()\n/* */ {\n/* 1312 */ return this.line;\n/* */ }", "void mo12638c();", "public void mo5097b() {\n }", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "public void func_70295_k_() {}", "static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public abstract String mo118046b();", "public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }", "public int method_2031() {\r\n return this.field_1790;\r\n }", "protected void method_4157() {\r\n super.method_4157();\r\n this.method_4211(class_1840.field_9390).method_390(200.0D);\r\n }", "public void mo4683c() {\n mo4679a(3);\n }", "abstract String mo1748c();", "void mo3194r();", "public void mo3370l() {\n }", "public abstract String mo13682d();" ]
[ "0.6604908", "0.6527899", "0.6456544", "0.6347432", "0.63381517", "0.6336979", "0.631163", "0.6301662", "0.6287381", "0.62729007", "0.6267547", "0.62615377", "0.62587833", "0.6254508", "0.62483305", "0.6236273", "0.62327504", "0.62200487", "0.62200487", "0.62200487", "0.62200487", "0.62200487", "0.62200487", "0.62200487", "0.62137944", "0.6206358", "0.62006474", "0.6200176", "0.61968654", "0.61825705", "0.6176813", "0.6175183", "0.61699706", "0.61490303", "0.61401606", "0.6136004", "0.61214894", "0.61122215", "0.6111688", "0.6104288", "0.60914683", "0.60800016", "0.60572743", "0.604346", "0.60182506", "0.6015862", "0.60130465", "0.59887445", "0.5987505", "0.5982648", "0.59822434", "0.5978881", "0.5976587", "0.59586436", "0.59548336", "0.59523356", "0.5940652", "0.59383696", "0.5919854", "0.59191835", "0.59136856", "0.5909071", "0.59090513", "0.58948934", "0.58601296", "0.58431685", "0.58428913", "0.5840373", "0.5826327", "0.58223146", "0.5807889", "0.5800773", "0.5777262", "0.57725275", "0.57711273", "0.5770748", "0.57575065", "0.57554865", "0.57499", "0.57323384", "0.57301366", "0.5727649", "0.57239187", "0.5721542", "0.5721171", "0.5718845", "0.5706922", "0.57003146", "0.5693326", "0.5693145", "0.5691808", "0.5690968", "0.5688847", "0.5686947", "0.568273", "0.5681777", "0.5681228", "0.5680002", "0.5676101", "0.5671748", "0.5662241" ]
0.0
-1
/ 275: / 276:
public void cargarSecuencia(FacturaProveedorSRI facturaProveedorSRI, PuntoDeVenta puntoDeVenta) /* 277: */ throws ExcepcionAS2 /* 278: */ { /* 279:280 */ AutorizacionDocumentoSRI autorizacionDocumentoSRI = null; /* 280:283 */ if (puntoDeVenta != null) { /* 281:284 */ autorizacionDocumentoSRI = this.servicioDocumento.cargarDocumentoConAutorizacion(getFacturaProveedorSRI().getDocumento(), puntoDeVenta, facturaProveedorSRI /* 282:285 */ .getFechaEmisionRetencion()); /* 283: */ } /* 284:287 */ if ((Integer.parseInt(facturaProveedorSRI.getNumeroRetencion()) == 0) || ( /* 285:288 */ (facturaProveedorSRI.getDocumento() != null) && (facturaProveedorSRI.getDocumento().isIndicadorDocumentoElectronico()) && /* 286:289 */ (!facturaProveedorSRI.isTraCorregirDatos()))) /* 287: */ { /* 288:290 */ String numero = this.servicioSecuencia.obtenerSecuencia(getFacturaProveedorSRI().getDocumento().getSecuencia(), facturaProveedorSRI /* 289:291 */ .getFechaEmisionRetencion()); /* 290: */ /* 291:293 */ facturaProveedorSRI.setNumeroRetencion(numero); /* 292:294 */ facturaProveedorSRI.setAutorizacionRetencion(autorizacionDocumentoSRI.getAutorizacion()); /* 293: */ } /* 294: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "public void mo12628c() {\n }", "public void mo38117a() {\n }", "public void mo21782G() {\n }", "public void mo21779D() {\n }", "private void m50366E() {\n }", "public void mo21794S() {\n }", "public void mo21787L() {\n }", "public void mo21785J() {\n }", "public void mo23813b() {\n }", "public void mo3749d() {\n }", "public void mo21879u() {\n }", "private void kk12() {\n\n\t}", "public void mo2740a() {\n }", "public void mo21780E() {\n }", "void mo57277b();", "public void mo21781F() {\n }", "public void mo97908d() {\n }", "public final void mo91715d() {\n }", "public void mo115190b() {\n }", "public void mo4359a() {\n }", "public void mo21783H() {\n }", "void mo57278c();", "public void mo21878t() {\n }", "public void skystonePos4() {\n }", "public void mo21786K() {\n }", "public void mo9233aH() {\n }", "public void mo21877s() {\n }", "public void mo3376r() {\n }", "public abstract void mo27385c();", "public void mo56167c() {\n }", "void mo41086b();", "public void mo21825b() {\n }", "public void mo21792Q() {\n }", "public void mo44053a() {\n }", "public void mo21784I() {\n }", "public void mo21793R() {\n }", "public void mo9137b() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "void mo3194r();", "public void mo1964g() throws cf {\r\n }", "public void mo21795T() {\n }", "C2841w mo7234g();", "private void m50367F() {\n }", "public void mo2471e() {\n }", "public void mo21789N() {\n }", "void mo21073d();", "public final void mo51373a() {\n }", "void mo27575a();", "public void mo12930a() {\n }", "public void mo9848a() {\n }", "public void skystonePos6() {\n }", "void mo72113b();", "public abstract void mo2624j();", "void mo12637b();", "public void mo115188a() {\n }", "public void mo21791P() {\n }", "@Override\n public void func_104112_b() {\n \n }", "void mo80457c();", "public final void mo11687c() {\n }", "public void mo97906c() {\n }", "public void mo1976s() throws cf {\r\n }", "public void mo3946e() {\n m25427g();\n }", "public abstract void mo27386d();", "public void mo21880v() {\n }", "public final void mo1285b() {\n }", "public void mo33392b() {\n mo33395e();\n }", "void mo72114c();", "public void mo5382o() {\n }", "public void mo6081a() {\n }", "public void mo3370l() {\n }", "void mo12638c();", "public void mo8738a() {\n }", "public void mo5248a() {\n }", "public void mo1405e() {\n }", "public void mo1403c() {\n }", "void mo21076g();", "void mo21074e();", "public void mo6944a() {\n }", "void mo41083a();", "protected void mo6255a() {\n }", "public void mo1406f() {\n }", "public final void mo8775b() {\n }", "void mo21072c();", "public void m23075a() {\n }", "public final void mo12688e_() {\n }", "void m1864a() {\r\n }", "void mo1943l();", "void m5770d() throws C0841b;", "public ahb method_408() {\r\n return this.field_2990;\r\n }", "public abstract int mo8526p();", "public final void mo92082N() {\n }", "public void mo2470d() {\n }", "public abstract String mo13682d();" ]
[ "0.68883455", "0.68477243", "0.6557785", "0.6518198", "0.6515258", "0.6484766", "0.6452986", "0.6446341", "0.64429396", "0.64225847", "0.6407916", "0.6395495", "0.6394648", "0.63702375", "0.63548005", "0.63348997", "0.632933", "0.6327132", "0.6323324", "0.6296362", "0.62960124", "0.62905955", "0.6283761", "0.6271646", "0.62568516", "0.6253754", "0.6244474", "0.6239362", "0.6231291", "0.62260926", "0.62110907", "0.6203923", "0.6197071", "0.61965054", "0.61964154", "0.6192776", "0.6191361", "0.61843395", "0.6182368", "0.6182368", "0.6182368", "0.6182368", "0.6182368", "0.6182368", "0.6182368", "0.61762327", "0.6173831", "0.6173024", "0.61609334", "0.61292064", "0.61286306", "0.6125765", "0.6121845", "0.6104648", "0.6090126", "0.6089006", "0.6087901", "0.60807157", "0.6077634", "0.6077567", "0.60742116", "0.6074173", "0.60737395", "0.60732985", "0.60709226", "0.6069895", "0.606427", "0.60589635", "0.60573167", "0.6048761", "0.6048397", "0.6044259", "0.6040218", "0.60317636", "0.60276914", "0.60269916", "0.60235673", "0.60192966", "0.60176027", "0.60143435", "0.60142064", "0.6011407", "0.5990872", "0.598582", "0.5980484", "0.5979406", "0.5971271", "0.59692556", "0.59571606", "0.5955116", "0.5945568", "0.5944937", "0.5938861", "0.5932134", "0.59289575", "0.59289086", "0.59284097", "0.59282875", "0.5928283", "0.5927087", "0.5921835" ]
0.0
-1
/ 295: / 296:
public List<Documento> getListaDocumento() /* 297: */ { /* 298:299 */ if (this.listaDocumento == null) { /* 299: */ try /* 300: */ { /* 301:301 */ this.listaDocumento = this.servicioDocumento.buscarPorDocumentoBaseOrganizacion(DocumentoBase.RETENCION_PROVEEDOR, AppUtil.getOrganizacion() /* 302:302 */ .getId()); /* 303: */ } /* 304: */ catch (ExcepcionAS2 e) /* 305: */ { /* 306:304 */ addInfoMessage(getLanguageController().getMensaje(e.getCodigoExcepcion())); /* 307: */ } /* 308: */ } /* 309:307 */ return this.listaDocumento; /* 310: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final int mo50059a() {\n return 2;\n }", "private int m10257E() throws cf {\r\n int i = 0;\r\n int i2;\r\n if (this.g.mo1996h() >= 5) {\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n i2 = 0;\r\n int i3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n i3 |= (b & 127) << i2;\r\n if ((b & 128) != 128) {\r\n this.g.mo1993a(i + 1);\r\n return i3;\r\n }\r\n i2 += 7;\r\n i++;\r\n }\r\n } else {\r\n i2 = 0;\r\n while (true) {\r\n byte u = mo1978u();\r\n i2 |= (u & 127) << i;\r\n if ((u & 128) != 128) {\r\n return i2;\r\n }\r\n i += 7;\r\n }\r\n }\r\n }", "@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }", "public int mo36g() {\n return 4;\n }", "public int method_2436() {\r\n return 16;\r\n }", "public int mo36g() {\n return 2;\n }", "int mo4095a(int i);", "public int mo36g() {\n return 8;\n }", "public void method_4270() {}", "long mo20406a();", "String mo30285c(long j);", "public abstract long mo9755t();", "private int m216e(float f) {\n int i = (int) (f + 0.5f);\n return i % 2 == 1 ? i - 1 : i;\n }", "public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }", "private static int m24353e(int i) {\n return i - (i >> 2);\n }", "private void method_268(int var1, int var2, int var3, int var4, byte[] var5) {\n int var6 = var2 + var5[var1 + 5];\n int var7 = var3 - var5[var1 + 6];\n int var8 = var5[var1 + 3];\n int var9 = var5[var1 + 4];\n int var10 = var5[var1] * 16384 + var5[var1 + 1] * 128 + var5[var1 + 2];\n int var11 = var6 + var7 * this.field_723;\n int var12 = this.field_723 - var8;\n int var13 = 0;\n int var14;\n if(var7 < this.field_743) {\n var14 = this.field_743 - var7;\n var9 -= var14;\n var7 = this.field_743;\n var10 += var14 * var8;\n var11 += var14 * this.field_723;\n }\n\n if(var7 + var9 >= this.field_744) {\n var9 -= var7 + var9 - this.field_744 + 1;\n }\n\n if(var6 < this.field_745) {\n var14 = this.field_745 - var6;\n var8 -= var14;\n var6 = this.field_745;\n var10 += var14;\n var11 += var14;\n var13 += var14;\n var12 += var14;\n }\n\n if(var6 + var8 >= this.field_746) {\n var14 = var6 + var8 - this.field_746 + 1;\n var8 -= var14;\n var13 += var14;\n var12 += var14;\n }\n\n if(var8 > 0 && var9 > 0) {\n this.method_269(this.pixels, var5, var4, var10, var11, var8, var9, var12, var13);\n }\n\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "public abstract long mo9748m();", "public int arn() {\n return 383;\n }", "void milestone2(double num){\n System.out.println(\"Integer part: \" + (int)num);\n double fractionPart = num - (int)num;\n fractionPart *= 100;\n System.out.println(\"Fractional part: \" + (int)fractionPart);\n }", "public abstract Integer mo36210m();", "int method20()\n {\n return 579190;\n }", "C5537g mo4096b(int i);", "public abstract long mo9229aD();", "void mo3796b(int i);", "protected long m8217a(long j) {\n return (j * 1000000) / ((long) this.f7048i);\n }", "public abstract long mo9750o();", "void mo25957a(long j, long j2);", "public abstract int mo9754s();", "private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }", "public final int mo6465d() {\n return 19729000;\n }", "public short mo34e() {\n return 140;\n }", "public void mo21794S() {\n }", "int mo23521Ly();", "private static int m3068c(int i, int i2) {\n return 255 - (((255 - i2) * (255 - i)) / NormalGiftView.ALPHA_255);\n }", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "private void m27461a() {\n if (this.f25303r >= 2) {\n if (this.f25303r % 2 == 0) {\n this.f25303r++;\n }\n this.f25304s = this.f25303r + 2;\n this.f25305t = this.f25304s / 2;\n return;\n }\n throw new ArithmeticException(\"Wheel's visible item count can not be less than 2!\");\n }", "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "public void mo5365c(int i, int i2) {\n }", "private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }", "C1458cs mo7613iS();", "private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }", "private int mo115245l() {\n int i = 0;\n while (i < this.f119298r) {\n int i2 = 0;\n while (i2 < this.f119297q.length && this.f119297q[i2] != i) {\n i2++;\n }\n if (i2 == this.f119297q.length) {\n return i;\n }\n i++;\n }\n return i;\n }", "public int method_2495(ahl var1, int var2, int var3, int var4) {\r\n int var6 = 0;\r\n String[] var10000 = class_752.method_4253();\r\n int var7 = 0;\r\n String[] var5 = var10000;\r\n int var8 = 0;\r\n int var9 = -1;\r\n\r\n int var12;\r\n while(true) {\r\n if(var9 <= 1) {\r\n var12 = -1;\r\n if(var5 == null) {\r\n break;\r\n }\r\n\r\n int var10 = -1;\r\n\r\n while(true) {\r\n if(var10 <= 1) {\r\n int var11 = var1.method_35(var2 + var10, var4 + var9).method_5715(var2 + var10, var3, var4 + var9);\r\n var6 += (var11 & 16711680) >> 16;\r\n var7 += (var11 & '\\uff00') >> 8;\r\n var8 += var11 & 255;\r\n ++var10;\r\n if(var5 == null) {\r\n break;\r\n }\r\n\r\n if(var5 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n ++var9;\r\n break;\r\n }\r\n\r\n if(var5 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n var12 = (var6 / 9 & 255) << 16 | (var7 / 9 & 255) << 8 | var8 / 9 & 255;\r\n break;\r\n }\r\n\r\n return var12;\r\n }", "private void m3935R() {\n int i;\n int i2;\n if (mo4322L() == 1) {\n i2 = mo4758r() - mo4756p();\n i = mo4754o();\n } else {\n i2 = mo4741h() - mo4752n();\n i = mo4757q();\n }\n m3945n(i2 - i);\n }", "private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) ((int) (j - ((f / 100.0f) * j))));\n }", "public static int m22583h(long j) {\n return 8;\n }", "public int getSecondR() {\n/* 48 */ return this.secondR;\n/* */ }", "private long m10258F() throws cf {\r\n long j = null;\r\n long j2 = 0;\r\n if (this.g.mo1996h() >= 10) {\r\n int i;\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n long j3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n j2 |= ((long) (b & 127)) << j3;\r\n if ((b & 128) != 128) {\r\n break;\r\n }\r\n j3 += 7;\r\n i++;\r\n }\r\n this.g.mo1993a(i + 1);\r\n } else {\r\n while (true) {\r\n byte u = mo1978u();\r\n j2 |= ((long) (u & 127)) << j;\r\n if ((u & 128) != 128) {\r\n break;\r\n }\r\n j += 7;\r\n }\r\n }\r\n return j2;\r\n }", "public abstract long mo24410c();", "C20259y mo54455t(int i);", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public int mo1534c() {\n return 2;\n }", "protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }", "private void m27468d() {\n switch (this.f25258E) {\n case 1:\n this.f25270Q = this.f25294i.left;\n break;\n case 2:\n this.f25270Q = this.f25294i.right;\n break;\n default:\n this.f25270Q = this.f25268O;\n break;\n }\n this.f25271R = (int) (((float) this.f25269P) - ((this.f25288c.ascent() + this.f25288c.descent()) / 2.0f));\n }", "public abstract long mo24409b();", "public void mo21877s() {\n }", "private static int m3066a(int i, int i2, int i3, int i4, int i5) {\n if (i5 == 0) {\n return 0;\n }\n return (((i * NormalGiftView.ALPHA_255) * i2) + ((i3 * i4) * (255 - i2))) / (i5 * NormalGiftView.ALPHA_255);\n }", "void mo30290d(long j);", "private static int m13704a(C2085b c2085b, int i, long j, int i2, C2302k c2302k, int i3) {\n Object obj;\n int[] iArr;\n long j2;\n C2085b c2085b2 = c2085b;\n c2302k.m8388c(8);\n int b = C2087a.m7471b(c2302k.m8403o());\n Track track = c2085b2.f5791c;\n C2102i c2102i = c2085b2.f5790b;\n C2093c c2093c = c2102i.f5938a;\n c2102i.f5945h[i] = c2302k.m8409u();\n c2102i.f5944g[i] = c2102i.f5940c;\n if ((b & 1) != 0) {\n long[] jArr = c2102i.f5944g;\n jArr[i] = jArr[i] + ((long) c2302k.m8403o());\n }\n Object obj2 = (b & 4) != 0 ? 1 : null;\n int i4 = c2093c.f5892d;\n if (obj2 != null) {\n i4 = c2302k.m8409u();\n }\n Object obj3 = (b & 256) != 0 ? 1 : null;\n Object obj4 = (b & 512) != 0 ? 1 : null;\n Object obj5 = (b & 1024) != 0 ? 1 : null;\n Object obj6 = (b & ItemAnimator.FLAG_MOVED) != 0 ? 1 : null;\n long j3 = 0;\n if (track.f5810h != null && track.f5810h.length == 1 && track.f5810h[0] == 0) {\n j3 = C2314v.m8492d(track.f5811i[0], 1000, track.f5805c);\n }\n int[] iArr2 = c2102i.f5946i;\n int[] iArr3 = c2102i.f5947j;\n long[] jArr2 = c2102i.f5948k;\n int i5 = i4;\n boolean[] zArr = c2102i.f5949l;\n int[] iArr4 = iArr2;\n Object obj7 = (track.f5804b != 2 || (i2 & 1) == 0) ? null : 1;\n i4 = i3 + c2102i.f5945h[i];\n long[] jArr3 = jArr2;\n long j4 = j3;\n long j5 = track.f5805c;\n if (i > 0) {\n obj = obj7;\n iArr = iArr3;\n j2 = c2102i.f5956s;\n } else {\n obj = obj7;\n iArr = iArr3;\n j2 = j;\n }\n int i6 = i3;\n while (i6 < i4) {\n Object obj8;\n int i7;\n Object obj9;\n int u = obj3 != null ? c2302k.m8409u() : c2093c.f5890b;\n int u2 = obj4 != null ? c2302k.m8409u() : c2093c.f5891c;\n if (i6 == 0 && obj2 != null) {\n obj8 = obj2;\n i7 = i5;\n } else if (obj5 != null) {\n i7 = c2302k.m8403o();\n obj8 = obj2;\n } else {\n obj8 = obj2;\n i7 = c2093c.f5892d;\n }\n if (obj6 != null) {\n obj9 = obj6;\n iArr[i6] = (int) ((((long) c2302k.m8403o()) * 1000) / j5);\n } else {\n obj9 = obj6;\n iArr[i6] = 0;\n }\n jArr3[i6] = C2314v.m8492d(j2, 1000, j5) - j4;\n iArr4[i6] = u2;\n boolean z = ((i7 >> 16) & 1) == 0 && (obj == null || i6 == 0);\n zArr[i6] = z;\n i6++;\n j2 += (long) u;\n obj2 = obj8;\n obj6 = obj9;\n C2302k c2302k2 = c2302k;\n }\n c2102i.f5956s = j2;\n return i4;\n }", "public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }", "private static int getPrevCC(PrevArgs paramPrevArgs)\n/* */ {\n/* 574 */ return (int)(0xFF & getPrevNorm32(paramPrevArgs, 768, 65280) >> 8);\n/* */ }", "public short mo34e() {\n return 41;\n }", "void mo1943l();", "public void mo21782G() {\n }", "private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }", "void mo304a(C0366h c0366h);", "public void mo12628c() {\n }", "public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "int compFunction(int code) {\n return Math.abs(((3 * code + 8) % largePrime) % buckets.length);\n }", "void mo30275a(long j);", "public void mo9824b(String str) {\n int i;\n int i2;\n try {\n int length = str.length() * 3;\n int i3 = C3670m.m8671i(length);\n int i4 = i3 + length;\n if (i4 > this.f9107e) {\n byte[] bArr = new byte[length];\n int a = C3700r1.m8885a(str, bArr, 0, length);\n mo9814c(a);\n mo9826b(bArr, 0, a);\n return;\n }\n if (i4 > this.f9107e - this.f9108f) {\n mo9827i();\n }\n int i5 = C3670m.m8671i(str.length());\n i = this.f9108f;\n if (i5 == i3) {\n int i6 = i + i5;\n this.f9108f = i6;\n int a2 = C3700r1.m8885a(str, this.f9106d, i6, this.f9107e - i6);\n this.f9108f = i;\n i2 = (a2 - i) - i5;\n mo9820l(i2);\n this.f9108f = a2;\n } else {\n i2 = C3700r1.m8884a((CharSequence) str);\n mo9820l(i2);\n this.f9108f = C3700r1.m8885a(str, this.f9106d, this.f9108f, i2);\n }\n this.f9109g += i2;\n } catch (C3703c e) {\n this.f9109g -= this.f9108f - i;\n this.f9108f = i;\n throw e;\n } catch (ArrayIndexOutOfBoundsException e2) {\n throw new C3674d(e2);\n } catch (C3703c e3) {\n mo9808a(str, e3);\n }\n }", "long getUnknown72();", "public abstract long mo9746k();", "private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }", "public void mo21795T() {\n }", "public abstract int mo8526p();", "private static double m29995d(double d, double d2) {\n return ((d2 - d) + 360.0d) % 360.0d;\n }", "public int mo34973b() {\n return 48;\n }", "@Override\n public double tuition(){\n return 2500;\n }", "public final int mo26232a(C17480i c17480i, int i, int i2) {\n int i3 = -1;\n AppMethodBeat.m2504i(2017);\n if (Math.abs(i2) <= 500 || Math.abs(i) >= Math.abs(i2)) {\n AppMethodBeat.m2505o(2017);\n } else {\n int itemCount = c17480i.getItemCount();\n if (itemCount == 0) {\n AppMethodBeat.m2505o(2017);\n } else {\n int cFY = this.sDo.cFY() + 1;\n if (cFY == -1) {\n AppMethodBeat.m2505o(2017);\n } else {\n boolean z = c17480i.mo1776iG() ? i > 0 : i2 > 0;\n if (c17480i instanceof C37140b) {\n PointF bX = ((C37140b) c17480i).mo1761bX(itemCount - 1);\n if (bX != null) {\n if (bX.x < 0.0f || bX.y < 0.0f) {\n i3 = 1;\n } else {\n i3 = 0;\n }\n if (i3 == 0) {\n if (!z) {\n i3 = cFY + 1;\n }\n i3 = cFY - 1;\n } else {\n if (z) {\n i3 = cFY + 1;\n }\n i3 = cFY - 1;\n }\n C4990ab.m7417i(\"MicroMsg.TopStory.TopStoryVideoPagerSnapHelper\", \"findTargetSnapPosition velocityY: %d centerPosition: %d forwardDirection: %b result: %d currentPlayPos: %d\", Integer.valueOf(i2), Integer.valueOf(cFY), Boolean.valueOf(z), Integer.valueOf(i3), Integer.valueOf(this.sDo.cFY() + 1));\n AppMethodBeat.m2505o(2017);\n }\n }\n i3 = 0;\n if (i3 == 0) {\n }\n C4990ab.m7417i(\"MicroMsg.TopStory.TopStoryVideoPagerSnapHelper\", \"findTargetSnapPosition velocityY: %d centerPosition: %d forwardDirection: %b result: %d currentPlayPos: %d\", Integer.valueOf(i2), Integer.valueOf(cFY), Boolean.valueOf(z), Integer.valueOf(i3), Integer.valueOf(this.sDo.cFY() + 1));\n AppMethodBeat.m2505o(2017);\n }\n }\n }\n return i3;\n }", "public int mo1980w() throws cf {\r\n return m10275g(m10257E());\r\n }", "public abstract int mo9749n();", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }", "private static int trailzerofun(int num) {\n\t\tint count=0;\n\t\tif(num<0)\n\t\t\treturn -1;\n\t\tfor(int i=5;num/i>=1;i*=5)\n\t\t{\n\t\t\tcount+=num/i;\n\t\t}\n\t\treturn count;\n\t}", "public void mo21786K() {\n }", "public int mo9754s() {\n return mo9774x();\n }", "void mo33732Px();", "public void mo21783H() {\n }", "long mo49a();", "private int m5278d(int pos, int cmd) {\n int end;\n int start;\n for (int i = this.f3533c.size() - 1; i >= 0; i--) {\n C1070b postponed = (C1070b) this.f3533c.get(i);\n int i2 = postponed.f3539a;\n if (i2 == 8) {\n if (postponed.f3540b < postponed.f3542d) {\n start = postponed.f3540b;\n end = postponed.f3542d;\n } else {\n start = postponed.f3542d;\n end = postponed.f3540b;\n }\n if (pos < start || pos > end) {\n int i3 = postponed.f3540b;\n if (pos < i3) {\n if (cmd == 1) {\n postponed.f3540b = i3 + 1;\n postponed.f3542d++;\n } else if (cmd == 2) {\n postponed.f3540b = i3 - 1;\n postponed.f3542d--;\n }\n }\n } else {\n int i4 = postponed.f3540b;\n if (start == i4) {\n if (cmd == 1) {\n postponed.f3542d++;\n } else if (cmd == 2) {\n postponed.f3542d--;\n }\n pos++;\n } else {\n if (cmd == 1) {\n postponed.f3540b = i4 + 1;\n } else if (cmd == 2) {\n postponed.f3540b = i4 - 1;\n }\n pos--;\n }\n }\n } else {\n int i5 = postponed.f3540b;\n if (i5 <= pos) {\n if (i2 == 1) {\n pos -= postponed.f3542d;\n } else if (i2 == 2) {\n pos += postponed.f3542d;\n }\n } else if (cmd == 1) {\n postponed.f3540b = i5 + 1;\n } else if (cmd == 2) {\n postponed.f3540b = i5 - 1;\n }\n }\n }\n for (int i6 = this.f3533c.size() - 1; i6 >= 0; i6--) {\n C1070b op = (C1070b) this.f3533c.get(i6);\n if (op.f3539a == 8) {\n int i7 = op.f3542d;\n if (i7 == op.f3540b || i7 < 0) {\n this.f3533c.remove(i6);\n mo8470a(op);\n }\n } else if (op.f3542d <= 0) {\n this.f3533c.remove(i6);\n mo8470a(op);\n }\n }\n return pos;\n }", "C20254v mo54454s(int i);", "C4945r5 mo19056B();", "public abstract void mo9813b(long j);", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "public int mo80c() {\n return 7;\n }", "private int m3423z(int i, int i2) {\n int i3;\n int i4;\n for (int size = this.f4373c.size() - 1; size >= 0; size--) {\n C0933b bVar = this.f4373c.get(size);\n int i5 = bVar.f4379a;\n if (i5 == 8) {\n int i6 = bVar.f4380b;\n int i7 = bVar.f4382d;\n if (i6 < i7) {\n i4 = i6;\n i3 = i7;\n } else {\n i3 = i6;\n i4 = i7;\n }\n if (i < i4 || i > i3) {\n if (i < i6) {\n if (i2 == 1) {\n bVar.f4380b = i6 + 1;\n bVar.f4382d = i7 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i6 - 1;\n bVar.f4382d = i7 - 1;\n }\n }\n } else if (i4 == i6) {\n if (i2 == 1) {\n bVar.f4382d = i7 + 1;\n } else if (i2 == 2) {\n bVar.f4382d = i7 - 1;\n }\n i++;\n } else {\n if (i2 == 1) {\n bVar.f4380b = i6 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i6 - 1;\n }\n i--;\n }\n } else {\n int i8 = bVar.f4380b;\n if (i8 <= i) {\n if (i5 == 1) {\n i -= bVar.f4382d;\n } else if (i5 == 2) {\n i += bVar.f4382d;\n }\n } else if (i2 == 1) {\n bVar.f4380b = i8 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i8 - 1;\n }\n }\n }\n for (int size2 = this.f4373c.size() - 1; size2 >= 0; size2--) {\n C0933b bVar2 = this.f4373c.get(size2);\n if (bVar2.f4379a == 8) {\n int i9 = bVar2.f4382d;\n if (i9 == bVar2.f4380b || i9 < 0) {\n this.f4373c.remove(size2);\n mo7620a(bVar2);\n }\n } else if (bVar2.f4382d <= 0) {\n this.f4373c.remove(size2);\n mo7620a(bVar2);\n }\n }\n return i;\n }", "public void mo21785J() {\n }" ]
[ "0.57574415", "0.5751943", "0.57340795", "0.5696254", "0.5655362", "0.5643127", "0.5630149", "0.5618522", "0.55534714", "0.55529255", "0.55471045", "0.5534413", "0.5530541", "0.5498825", "0.54910547", "0.54850936", "0.54828674", "0.54799956", "0.5477648", "0.547387", "0.54719967", "0.5466462", "0.54604906", "0.54592156", "0.5457436", "0.5452792", "0.54395646", "0.543704", "0.54323786", "0.54285693", "0.5419678", "0.5416512", "0.54156274", "0.5412031", "0.54055786", "0.5399737", "0.5396595", "0.53942436", "0.53906757", "0.5388663", "0.53885305", "0.53846705", "0.5377965", "0.53742737", "0.53677434", "0.5360847", "0.5359601", "0.5356139", "0.5350449", "0.5348902", "0.53458446", "0.5343057", "0.53300595", "0.53292394", "0.5329146", "0.5329109", "0.5324559", "0.5322389", "0.5318935", "0.5317628", "0.5315578", "0.5314289", "0.5312946", "0.5312813", "0.5300858", "0.5293501", "0.52849925", "0.52809054", "0.52795106", "0.527643", "0.52744734", "0.5273275", "0.5271422", "0.52690005", "0.52644604", "0.52642953", "0.52581424", "0.5258019", "0.5256599", "0.52547574", "0.52546656", "0.52523583", "0.5251", "0.52502215", "0.5248492", "0.52465695", "0.52430964", "0.5239335", "0.5231863", "0.52300906", "0.5223758", "0.5223264", "0.5223145", "0.5218521", "0.5210772", "0.52087104", "0.52033716", "0.52021456", "0.5198691", "0.51984817", "0.51973563" ]
0.0
-1
/ 311: / 312:
public List<Documento> getListaDocumentoFacturaProveedor() /* 313: */ { /* 314:311 */ List<Documento> listaDocumentoFactura = new ArrayList(); /* 315: */ try /* 316: */ { /* 317:313 */ listaDocumentoFactura = this.servicioDocumento.buscarPorDocumentoBaseOrganizacion(DocumentoBase.FACTURA_PROVEEDOR, AppUtil.getOrganizacion() /* 318:314 */ .getId()); /* 319: */ } /* 320: */ catch (ExcepcionAS2 e) /* 321: */ { /* 322:316 */ addInfoMessage(getLanguageController().getMensaje(e.getCodigoExcepcion())); /* 323: */ } /* 324:318 */ return listaDocumentoFactura; /* 325: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "public int arn() {\n return 383;\n }", "public void mo4683c() {\n mo4679a(3);\n }", "private static int m28711a(C9572w wVar) {\n int i = -1;\n int i2 = 0;\n while (i == -1) {\n i2 = wVar.mo24688c();\n String k = wVar.mo24700k();\n i = k == null ? 0 : \"STYLE\".equals(k) ? 2 : k.startsWith(\"NOTE\") ? 1 : 3;\n }\n wVar.mo24693e(i2);\n return i;\n }", "public void int3_m() {\n\t\t\n\t}", "void mo303a(C0237a c0237a, String str, String str2, String str3);", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "String mo20731c();", "C2451d mo3408a(C2457e c2457e);", "void mo304a(C0366h c0366h);", "C2841w mo7234g();", "public abstract Integer mo36210m();", "void mo1507n();", "public void mo12628c() {\n }", "C5727e mo33224a();", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }", "private void kk12() {\n\n\t}", "public static int wayToArrange3N(int n) {\n\t\treturn 0;\n\t}", "C7562b<C10403b, C10328a> mo25041a();", "public void mo21877s() {\n }", "private void m50366E() {\n }", "static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public int mo1534c() {\n return 2;\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "private String m20347f(String str) {\n C3927c cVar = new C3927c(\".cnt\", str);\n return cVar.mo27425a(m20344d(cVar.f17426b));\n }", "public int mo36g() {\n return 4;\n }", "public String designPN(String nr)\r\n {\r\n String newStr=\"(\";\r\n if(nr.length()!=10){return null;}\r\n else\r\n {\r\n newStr=newStr+nr.substring(0,4)+\")-\";\r\n // System.out.println(\"phase 1 \"+ newStr);\r\n newStr=newStr+nr.substring(4,7)+\"-\";\r\n // System.out.println(\"phase 2 \"+ newStr);\r\n newStr=newStr+nr.substring(7,10);\r\n // System.out.println(\"phase 3 \"+ newStr);\r\n }\r\n return newStr;\r\n\r\n }", "C1458cs mo7613iS();", "public abstract long mo9229aD();", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "public final int mo34012n() {\n return this.f7223c;\n }", "static int size_of_cm(String passed){\n\t\treturn 3;\n\t}", "public abstract long mo24410c();", "C11316t5 mo29022j0();", "private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }", "public void method_4270() {}", "static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "dkj mo4367a(dkk dkk);", "C15430g mo56154a();", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "private void info3(int i) {\n\t\t\n\t}", "C45321i mo90380a();", "public static void main003(String[] args) {\n\t\t/*\n\t\t * numberStart++ tra ve gia tri cua numberStart, sau đo tang number lan mot đon vi\n\t\t * numberStart-- tra ve gia tri cua numberStart, sau đo giam number xuong mot đon vi\n\t\t * ++numberStart tang numberStart len mot don vi, sau đo tra ve gia tri cua numberStart\n\t\t * --numberStart giam numberStart xuong mot don vi, sau đo tra ve gia tri cua numberStart\n\t\t */\n\t\tint numberStart\t= 20;\n\t\tint numberEnd\t= 0;\n\t\t\n//\t\tnumberEnd\t\t= ++numberStart;\n\t\tnumberEnd\t\t= --numberStart;\n\t\tSystem.out.println(\"Number Start = \" + numberStart);\n\t\tSystem.out.println(\"Number End = \" + numberEnd);\n\t}", "String mo10312id();", "private void m91737K() {\n String str = this.f73944a;\n boolean z = true;\n if (this.f73953m != 1) {\n z = false;\n }\n C28141am.m92411a(new C28311ag(str, z), new C28312ah(this.f73949f.hashCode()), this.f73944a);\n }", "private static String m60359b(String str, String str2, String str3) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 4 + String.valueOf(str2).length() + String.valueOf(str3).length());\n sb.append(str);\n sb.append(\"|T|\");\n sb.append(str2);\n sb.append(\"|\");\n sb.append(str3);\n return sb.toString();\n }", "public void mo12306a(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public int method_2436() {\r\n return 16;\r\n }", "public static long m3983tj(String str) {\n AppMethodBeat.m2504i(93203);\n int lastIndexOf = str.lastIndexOf(\";?enc=\");\n if (lastIndexOf > 0) {\n long anl = C5046bo.anl(str.substring(lastIndexOf + 6));\n AppMethodBeat.m2505o(93203);\n return anl;\n }\n AppMethodBeat.m2505o(93203);\n return 0;\n }", "public abstract long mo13681c();", "public int mo36g() {\n return 8;\n }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public void mo21789N() {\n }", "private static int getPrevCC(PrevArgs paramPrevArgs)\n/* */ {\n/* 574 */ return (int)(0xFF & getPrevNorm32(paramPrevArgs, 768, 65280) >> 8);\n/* */ }", "static int getAnchor(int a){\n return a-((a-1)%3);\n }", "void mo33732Px();", "public abstract int mo9749n();", "public void mo21794S() {\n }", "void m15860a(int i, int i2, int i3);", "abstract String mo1748c();", "void mo3194r();", "public void mo21786K() {\n }", "C12017a mo41088c();", "public abstract int mo9754s();", "public void mo12930a() {\n }", "static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }", "public int m224a() {\n return 1;\n }", "void mo57278c();", "public int mo36g() {\n return 2;\n }", "long mo20406a();", "public void mo9233aH() {\n }", "private void m3935R() {\n int i;\n int i2;\n if (mo4322L() == 1) {\n i2 = mo4758r() - mo4756p();\n i = mo4754o();\n } else {\n i2 = mo4741h() - mo4752n();\n i = mo4757q();\n }\n m3945n(i2 - i);\n }", "private static int[] m10288a(C9383t tVar) {\n int intValue = ((Integer) LiveSettingKeys.STREAM_DEFINITION_LEVEL.mo10240a()).intValue();\n if (intValue > 0 && intValue <= f8023g.length) {\n return f8023g[intValue - 1];\n }\n return new int[]{tVar.mo23063c(), tVar.mo23064d(), tVar.mo23065e(), tVar.f25784h};\n }", "public void mo21783H() {\n }", "C7904c mo24084a();", "private void m50367F() {\n }", "String mo30285c(long j);", "C20259y mo54455t(int i);", "private static int m24353e(int i) {\n return i - (i >> 2);\n }", "public int m2703d() {\n return ((Integer) this.f2439a.m2666a(ea.f2396T)).intValue();\n }", "static void m14933d(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "int getUnknown13();", "public short mo34e() {\n return 140;\n }", "public void mo21788M() {\n }", "void mo1506m();", "public int mo3356c() {\n return 0;\n }", "C20254v mo54454s(int i);", "void mo12638c();", "private static int m13704a(C2085b c2085b, int i, long j, int i2, C2302k c2302k, int i3) {\n Object obj;\n int[] iArr;\n long j2;\n C2085b c2085b2 = c2085b;\n c2302k.m8388c(8);\n int b = C2087a.m7471b(c2302k.m8403o());\n Track track = c2085b2.f5791c;\n C2102i c2102i = c2085b2.f5790b;\n C2093c c2093c = c2102i.f5938a;\n c2102i.f5945h[i] = c2302k.m8409u();\n c2102i.f5944g[i] = c2102i.f5940c;\n if ((b & 1) != 0) {\n long[] jArr = c2102i.f5944g;\n jArr[i] = jArr[i] + ((long) c2302k.m8403o());\n }\n Object obj2 = (b & 4) != 0 ? 1 : null;\n int i4 = c2093c.f5892d;\n if (obj2 != null) {\n i4 = c2302k.m8409u();\n }\n Object obj3 = (b & 256) != 0 ? 1 : null;\n Object obj4 = (b & 512) != 0 ? 1 : null;\n Object obj5 = (b & 1024) != 0 ? 1 : null;\n Object obj6 = (b & ItemAnimator.FLAG_MOVED) != 0 ? 1 : null;\n long j3 = 0;\n if (track.f5810h != null && track.f5810h.length == 1 && track.f5810h[0] == 0) {\n j3 = C2314v.m8492d(track.f5811i[0], 1000, track.f5805c);\n }\n int[] iArr2 = c2102i.f5946i;\n int[] iArr3 = c2102i.f5947j;\n long[] jArr2 = c2102i.f5948k;\n int i5 = i4;\n boolean[] zArr = c2102i.f5949l;\n int[] iArr4 = iArr2;\n Object obj7 = (track.f5804b != 2 || (i2 & 1) == 0) ? null : 1;\n i4 = i3 + c2102i.f5945h[i];\n long[] jArr3 = jArr2;\n long j4 = j3;\n long j5 = track.f5805c;\n if (i > 0) {\n obj = obj7;\n iArr = iArr3;\n j2 = c2102i.f5956s;\n } else {\n obj = obj7;\n iArr = iArr3;\n j2 = j;\n }\n int i6 = i3;\n while (i6 < i4) {\n Object obj8;\n int i7;\n Object obj9;\n int u = obj3 != null ? c2302k.m8409u() : c2093c.f5890b;\n int u2 = obj4 != null ? c2302k.m8409u() : c2093c.f5891c;\n if (i6 == 0 && obj2 != null) {\n obj8 = obj2;\n i7 = i5;\n } else if (obj5 != null) {\n i7 = c2302k.m8403o();\n obj8 = obj2;\n } else {\n obj8 = obj2;\n i7 = c2093c.f5892d;\n }\n if (obj6 != null) {\n obj9 = obj6;\n iArr[i6] = (int) ((((long) c2302k.m8403o()) * 1000) / j5);\n } else {\n obj9 = obj6;\n iArr[i6] = 0;\n }\n jArr3[i6] = C2314v.m8492d(j2, 1000, j5) - j4;\n iArr4[i6] = u2;\n boolean z = ((i7 >> 16) & 1) == 0 && (obj == null || i6 == 0);\n zArr[i6] = z;\n i6++;\n j2 += (long) u;\n obj2 = obj8;\n obj6 = obj9;\n C2302k c2302k2 = c2302k;\n }\n c2102i.f5956s = j2;\n return i4;\n }", "public void mo1403c() {\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "private void m145775e() {\n long j;\n String str;\n int i;\n if (!this.f119477j.mo115499a()) {\n if (this.f119484q != null) {\n str = \"PRAGMA cipher_page_size\";\n if (this.f119485r == null || this.f119485r.pageSize <= 0) {\n i = SQLiteGlobal.f119529a;\n } else {\n i = this.f119485r.pageSize;\n }\n j = (long) i;\n } else {\n str = \"PRAGMA page_size\";\n j = (long) SQLiteGlobal.f119529a;\n }\n if (mo115435b(str, null, null) != j) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(\"=\");\n sb.append(j);\n mo115433a(sb.toString(), null, null);\n }\n }\n }", "public abstract Integer mo36212o();", "int processThirdShort(int index) {\n\t\t// process the third Short integer in the Key Entry Set\n\t\treturn (int) keyEntrySet.get(index + 2);\n\t}", "static int size_of_cnz(String passed){\n\t\treturn 3;\n\t}", "private int m10257E() throws cf {\r\n int i = 0;\r\n int i2;\r\n if (this.g.mo1996h() >= 5) {\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n i2 = 0;\r\n int i3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n i3 |= (b & 127) << i2;\r\n if ((b & 128) != 128) {\r\n this.g.mo1993a(i + 1);\r\n return i3;\r\n }\r\n i2 += 7;\r\n i++;\r\n }\r\n } else {\r\n i2 = 0;\r\n while (true) {\r\n byte u = mo1978u();\r\n i2 |= (u & 127) << i;\r\n if ((u & 128) != 128) {\r\n return i2;\r\n }\r\n i += 7;\r\n }\r\n }\r\n }", "String mo21078i();", "public int m2713n() {\n return ((Integer) this.f2439a.m2666a(ea.bx)).intValue();\n }", "@Test(timeout = 4000)\n public void test53() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The database key of the entry being cross referenced. Any fields that are missing from the current record are inherited from the field being cross referenced.\");\n assertEquals(\"th databas key of th entr being cros refer. any field that ar mis from th cur record ar inherit from th field being cros refer.\", string0);\n }", "public void mo12310b(String str) {\n int a = m14928a();\n int d = C3205z0.INFO.mo12550d();\n }", "public void mo21878t() {\n }" ]
[ "0.58621895", "0.5750055", "0.5717246", "0.5672871", "0.566076", "0.56466216", "0.5629287", "0.55692184", "0.5555786", "0.5552882", "0.55498105", "0.5549446", "0.55376405", "0.5514062", "0.5473615", "0.54430544", "0.54201686", "0.54111886", "0.5408015", "0.5401972", "0.53999704", "0.5397565", "0.539004", "0.5363659", "0.53625125", "0.53605497", "0.5347128", "0.53436404", "0.5332513", "0.53217465", "0.53030133", "0.5299561", "0.52911973", "0.5289843", "0.5286673", "0.52840066", "0.52767164", "0.5273293", "0.52653456", "0.52647173", "0.5262342", "0.52505463", "0.5248264", "0.52469474", "0.52441394", "0.5235619", "0.5232274", "0.5225648", "0.522444", "0.5223798", "0.52228516", "0.52166617", "0.5212334", "0.52118415", "0.5209539", "0.52056366", "0.5200616", "0.51955396", "0.51935565", "0.518848", "0.51789385", "0.5176112", "0.51741195", "0.5173574", "0.51726425", "0.51707214", "0.51669097", "0.5164375", "0.5163267", "0.51587427", "0.515821", "0.51581156", "0.51571304", "0.5156971", "0.5156226", "0.5154756", "0.5153955", "0.515148", "0.51501286", "0.5149042", "0.51470196", "0.5146453", "0.5145846", "0.51394504", "0.5139039", "0.51385534", "0.5137799", "0.5137288", "0.5136918", "0.51312053", "0.5128397", "0.512175", "0.5119846", "0.51157266", "0.5114151", "0.51075613", "0.5106488", "0.51062685", "0.51053584", "0.5103331", "0.5102783" ]
0.0
-1
/ 326: / 327:
public String actualizarDocumento() /* 328: */ { /* 329: */ try /* 330: */ { /* 331:323 */ if ((!this.corrigeDatosRetencion) && (this.facturaProveedorSRI.getDocumento() != null) && /* 332:324 */ (this.facturaProveedorSRI.getDocumento().isIndicadorDocumentoElectronico()) && /* 333:325 */ (FuncionesUtiles.getAnio(this.facturaProveedorSRI.getFechaRegistro()) != 9999)) { /* 334:326 */ this.facturaProveedorSRI.setFechaEmisionRetencion(this.facturaProveedorSRI.getFechaRegistro()); /* 335: */ } /* 336:329 */ cargarSecuencia(this.facturaProveedorSRI, AppUtil.getPuntoDeVenta()); /* 337: */ } /* 338: */ catch (ExcepcionAS2 e) /* 339: */ { /* 340:331 */ addErrorMessage(getLanguageController().getMensaje(e.getCodigoExcepcion()) + e.getMessage()); /* 341: */ } /* 342:333 */ return ""; /* 343: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo33732Px();", "long getUnknown72();", "public int method_2436() {\r\n return 16;\r\n }", "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "public static int m8655e() {\n return 8;\n }", "public int mo36g() {\n return 8;\n }", "public void method_258(int var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8, boolean var9) {\n try {\n if(var6 == 0) {\n var6 = 16777215;\n }\n\n if(var7 == 0) {\n var7 = 16777215;\n }\n\n int var10 = this.field_736[var5];\n int var11 = this.field_737[var5];\n int var12 = 0;\n int var13 = 0;\n int var14 = var8 << 16;\n int var15 = (var10 << 16) / var3;\n int var16 = (var11 << 16) / var4;\n int var17 = -(var8 << 16) / var4;\n int var18;\n int var19;\n if(this.field_742[var5]) {\n var18 = this.spriteWidthFull[var5];\n var19 = this.field_741[var5];\n var15 = (var18 << 16) / var3;\n var16 = (var19 << 16) / var4;\n int var20 = this.field_738[var5];\n int var21 = this.field_739[var5];\n if(var9) {\n var20 = var18 - this.field_736[var5] - var20;\n }\n\n var1 += (var20 * var3 + var18 - 1) / var18;\n int var22 = (var21 * var4 + var19 - 1) / var19;\n var2 += var22;\n var14 += var22 * var17;\n if(var20 * var3 % var18 != 0) {\n var12 = (var18 - var20 * var3 % var18 << 16) / var3;\n }\n\n if(var21 * var4 % var19 != 0) {\n var13 = (var19 - var21 * var4 % var19 << 16) / var4;\n }\n\n var3 = ((this.field_736[var5] << 16) - var12 + var15 - 1) / var15;\n var4 = ((this.field_737[var5] << 16) - var13 + var16 - 1) / var16;\n }\n\n var18 = var2 * this.field_723;\n var14 += var1 << 16;\n if(var2 < this.field_743) {\n var19 = this.field_743 - var2;\n var4 -= var19;\n var2 = this.field_743;\n var18 += var19 * this.field_723;\n var13 += var16 * var19;\n var14 += var17 * var19;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n var19 = var18 / this.field_723 & 1;\n if(!this.interlace) {\n var19 = 2;\n }\n\n if(var7 == 16777215) {\n if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_259(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_259(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_260(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_260(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } catch (Exception var23) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }", "public void method_246(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_253(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }", "private static int colorspaceSh(int s) {\r\n return (s << 16);\r\n }", "private void m76766d() {\n m76765c();\n this.f61649f += this.f61648e;\n if (this.f61649f > this.f61647d) {\n this.f61649f = this.f61647d;\n }\n m76768f();\n }", "private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }", "private void m27468d() {\n switch (this.f25258E) {\n case 1:\n this.f25270Q = this.f25294i.left;\n break;\n case 2:\n this.f25270Q = this.f25294i.right;\n break;\n default:\n this.f25270Q = this.f25268O;\n break;\n }\n this.f25271R = (int) (((float) this.f25269P) - ((this.f25288c.ascent() + this.f25288c.descent()) / 2.0f));\n }", "public int mo36g() {\n return 4;\n }", "public void method_245(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_252(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }", "private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }", "private int[] m7232h() {\n this.f5578C[0] = this.f5594p;\n this.f5578C[1] = this.f5599u - this.f5594p;\n return this.f5578C;\n }", "public int mo3361f() {\n return 1;\n }", "private void m76767e() {\n m76765c();\n this.f61649f -= this.f61648e;\n if (this.f61649f < 0) {\n this.f61649f = 0;\n }\n m76768f();\n }", "private static int getPrevCC(PrevArgs paramPrevArgs)\n/* */ {\n/* 574 */ return (int)(0xFF & getPrevNorm32(paramPrevArgs, 768, 65280) >> 8);\n/* */ }", "private void m50367F() {\n }", "C2841w mo7234g();", "public short mo34e() {\n return 41;\n }", "long mo1685a(C2369e c2369e);", "long mo20406a();", "public final int mo34006h() {\n return this.f7230j;\n }", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "private static long getPrevNorm32(PrevArgs paramPrevArgs, int paramInt1, int paramInt2)\n/* */ {\n/* 534 */ paramPrevArgs.c = paramPrevArgs.src[(--paramPrevArgs.current)];\n/* 535 */ paramPrevArgs.c2 = '\\000';\n/* */ \n/* */ \n/* */ \n/* */ \n/* 540 */ if (paramPrevArgs.c < paramInt1)\n/* 541 */ return 0L;\n/* 542 */ if (!UTF16.isSurrogate(paramPrevArgs.c))\n/* 543 */ return getNorm32(paramPrevArgs.c);\n/* 544 */ if (UTF16.isLeadSurrogate(paramPrevArgs.c))\n/* */ {\n/* 546 */ return 0L; }\n/* 547 */ if ((paramPrevArgs.current != paramPrevArgs.start) && \n/* 548 */ (UTF16.isLeadSurrogate(paramPrevArgs.c2 = paramPrevArgs.src[(paramPrevArgs.current - 1)]))) {\n/* 549 */ paramPrevArgs.current -= 1;\n/* 550 */ long l = getNorm32(paramPrevArgs.c2);\n/* */ \n/* 552 */ if ((l & paramInt2) == 0L)\n/* */ {\n/* */ \n/* */ \n/* 556 */ return 0L;\n/* */ }\n/* */ \n/* 559 */ return getNorm32FromSurrogatePair(l, paramPrevArgs.c);\n/* */ }\n/* */ \n/* */ \n/* 563 */ paramPrevArgs.c2 = '\\000';\n/* 564 */ return 0L;\n/* */ }", "public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }", "public static asw m47155c() {\n return zzfkz;\n }", "public int mo29670a(String str) {\n int length = str.length();\n int i = this.f19526c;\n for (int i2 = 0; i2 < length; i2++) {\n i = (i * 33) + str.charAt(i2);\n }\n if (i == 0) {\n return 1;\n }\n return i;\n }", "public abstract long mo24412e();", "public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }", "public int mo38499c() {\n return this.f27232a;\n }", "public int mo4308c(int r6, int r7) {\n /*\n r5 = this;\n int r0 = r5.mo4307b(r6)\n r1 = 0\n if (r0 != r7) goto L_0x0008\n return r1\n L_0x0008:\n boolean r2 = r5.f3130b\n if (r2 == 0) goto L_0x0026\n android.util.SparseIntArray r2 = r5.f3129a\n int r2 = r2.size()\n if (r2 <= 0) goto L_0x0026\n int r2 = r5.mo4311a(r6)\n if (r2 < 0) goto L_0x0026\n android.util.SparseIntArray r3 = r5.f3129a\n int r3 = r3.get(r2)\n int r4 = r5.mo4307b(r2)\n int r3 = r3 + r4\n goto L_0x0036\n L_0x0026:\n r2 = 0\n r3 = 0\n L_0x0028:\n if (r2 >= r6) goto L_0x0039\n int r4 = r5.mo4307b(r2)\n int r3 = r3 + r4\n if (r3 != r7) goto L_0x0033\n r3 = 0\n goto L_0x0036\n L_0x0033:\n if (r3 <= r7) goto L_0x0036\n r3 = r4\n L_0x0036:\n int r2 = r2 + 1\n goto L_0x0028\n L_0x0039:\n int r0 = r0 + r3\n if (r0 > r7) goto L_0x003d\n return r3\n L_0x003d:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GridLayoutManager.C0781c.mo4308c(int, int):int\");\n }", "C5727e mo33224a();", "private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }", "public long mo9743h() {\n return mo9773w();\n }", "public abstract long mo13681c();", "int mo27483b();", "private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }", "public int mo4322L() {\n return this.f3138s;\n }", "private void method_262(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14, int var15, int var16, int var17) {\n boolean var33 = field_759;\n int var21 = var13 >> 16 & 255;\n int var22 = var13 >> 8 & 255;\n int var23 = var13 & 255;\n int var24 = var14 >> 16 & 255;\n int var25 = var14 >> 8 & 255;\n int var26 = var14 & 255;\n\n try {\n int var27 = var5;\n int var28 = -var9;\n if(var33 || var28 < 0) {\n do {\n int var29 = (var6 >> 16) * var12;\n int var30 = var15 >> 16;\n int var31 = var8;\n int var32;\n if(var30 < this.field_745) {\n var32 = this.field_745 - var30;\n var31 = var8 - var32;\n var30 = this.field_745;\n var5 += var10 * var32;\n }\n\n if(var30 + var31 >= this.field_746) {\n var32 = var30 + var31 - this.field_746;\n var31 -= var32;\n }\n\n var17 = 1 - var17;\n if(var17 != 0) {\n var32 = var30;\n if(var33 || var30 < var30 + var31) {\n do {\n var4 = var2[(var5 >> 16) + var29] & 255;\n if(var4 != 0) {\n label69: {\n var4 = var3[var4];\n int var18 = var4 >> 16 & 255;\n int var19 = var4 >> 8 & 255;\n int var20 = var4 & 255;\n if(var18 == var19 && var19 == var20) {\n var1[var32 + var7] = (var18 * var21 >> 8 << 16) + (var19 * var22 >> 8 << 8) + (var20 * var23 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n if(var18 == 255 && var19 == var20) {\n var1[var32 + var7] = (var18 * var24 >> 8 << 16) + (var19 * var25 >> 8 << 8) + (var20 * var26 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n var1[var32 + var7] = var4;\n }\n }\n\n var5 += var10;\n ++var32;\n } while(var32 < var30 + var31);\n }\n }\n\n var6 += var11;\n var5 = var27;\n var7 += this.field_723;\n var15 += var16;\n ++var28;\n } while(var28 < 0);\n\n }\n } catch (Exception var34) {\n System.out.println(\"error in transparent sprite plot routine\"); // authentic System.out.println\n }\n }", "public abstract long mo9229aD();", "public final void mo37836u_() {\n }", "private final void m75363l() {\n this.f53727e = this.f53745x;\n }", "private static boolean isNorm32Regular(long paramLong)\n/* */ {\n/* 332 */ return paramLong < 4227858432L;\n/* */ }", "void mo304a(C0366h c0366h);", "public static int m112617d() {\n return C34943c.f91127w;\n }", "public static int m8668h() {\n return 8;\n }", "private void m50366E() {\n }", "public long mo9743h() {\n return mo9760w();\n }", "private int m14928a() {\n return this.f11153a;\n }", "public long mo9743h() {\n return mo9784w();\n }", "public short mo34e() {\n return 140;\n }", "public static int m69981b() {\n return f60677a;\n }", "public int m224a() {\n return 1;\n }", "private C8006w m34406h() {\n long position = (long) this.f27042e.position();\n C8006w wVar = new C8006w();\n wVar.mo38498b(C7997r0.m34603c(this.f27042e));\n wVar.mo38494a(C7997r0.m34603c(this.f27042e));\n wVar.mo38496a(this.f27041d.mo38424a((int) ((long) this.f27042e.getInt())));\n if ((wVar.mo38492a() & 1) != 0) {\n C8008x xVar = new C8008x(wVar);\n xVar.mo38504b(C7997r0.m34601b(this.f27042e));\n xVar.mo38502a(C7997r0.m34601b(this.f27042e));\n this.f27042e.position((int) (position + ((long) wVar.mo38499c())));\n C7952b0[] b0VarArr = new C7952b0[((int) xVar.mo38505e())];\n for (int i = 0; ((long) i) < xVar.mo38505e(); i++) {\n b0VarArr[i] = m34407i();\n }\n xVar.mo38503a(b0VarArr);\n return xVar;\n }\n this.f27042e.position((int) (position + ((long) wVar.mo38499c())));\n wVar.mo38495a(C8003u0.m34634a(this.f27042e, this.f27044g));\n return wVar;\n }", "public static int m22583h(long j) {\n return 8;\n }", "public int mo33136c() {\n return this.f23891d;\n }", "private static int m28711a(C9572w wVar) {\n int i = -1;\n int i2 = 0;\n while (i == -1) {\n i2 = wVar.mo24688c();\n String k = wVar.mo24700k();\n i = k == null ? 0 : \"STYLE\".equals(k) ? 2 : k.startsWith(\"NOTE\") ? 1 : 3;\n }\n wVar.mo24693e(i2);\n return i;\n }", "public abstract Integer mo36210m();", "public static int m112618e() {\n return C34943c.f91128x;\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public static int m8651d() {\n return 4;\n }", "public int mo5323e() {\n return this.f2274e;\n }", "private void m76768f() {\n m76770h();\n m76769g();\n }", "public int mo38492a() {\n return this.f27233b;\n }", "private void m7226c() {\n this.f5601w.mo5542b((C1272h) this);\n this.f5601w.mo5544b((C1280l) this);\n this.f5601w.mo5545b(this.f5580E);\n m7230f();\n }", "void m63698a() {\n m63702c();\n m63701b();\n }", "public int mo36g() {\n return 2;\n }", "public static int m128353a() {\n return f104444b;\n }", "public int mo8073b() {\n return this.f1294e;\n }", "public final int mo5380m() {\n RecyclerView recyclerView = this.f9709b;\n C0261jp jpVar = recyclerView != null ? recyclerView.f1067g : null;\n if (jpVar == null) {\n return 0;\n }\n return jpVar.mo2794a();\n }", "public int mo27483b() {\n return 0;\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "public int method_6437() {\r\n return this.field_6227;\r\n }", "void m8368b();", "private static int m3066a(int i, int i2, int i3, int i4, int i5) {\n if (i5 == 0) {\n return 0;\n }\n return (((i * NormalGiftView.ALPHA_255) * i2) + ((i3 * i4) * (255 - i2))) / (i5 * NormalGiftView.ALPHA_255);\n }", "public int mo8444b() {\n return this.f6812a;\n }", "private static int mix32(int k) {\n k = (k ^ (k >>> 16)) * 0x85ebca6b;\n k = (k ^ (k >>> 13)) * 0xc2b2ae35;\n return k ^ (k >>> 16);\n }", "public int mo13093a() {\n return this.f4233b;\n }", "long mo19692a(C3586u uVar) throws IOException;", "public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }", "private byte m1653f() {\n char charAt;\n int i = this.f2519d;\n do {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n charAt = charSequence.charAt(i3);\n this.f2520e = charAt;\n if (charAt == '&') {\n return 12;\n }\n } while (charAt != ';');\n this.f2519d = i;\n this.f2520e = ';';\n return 13;\n }", "private long m10267c(long j) {\r\n return (j << 1) ^ (j >> 63);\r\n }", "long mo1636a(long j, alb alb);", "Info mo7564ix();", "public final int mo34001c() {\n return this.f7221a;\n }", "public int mo9732a() {\n return this.f9084k + this.f9082i;\n }", "public int mo3356c() {\n return 0;\n }", "public int mo7209e() {\n return this.f2975f.mo7333d();\n }", "public abstract long mo9743h();", "public abstract long mo24410c();", "private final void m126208g() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n if (!this.f102568b.mIsFromDraft || !this.f102568b.hasStickers()) {\n boolean a = C39804em.m127437a(this.f102568b.videoWidth(), this.f102568b.videoHeight());\n if (a) {\n i = this.f102568b.videoWidth();\n } else {\n int[] k = C36964i.m118935k();\n if (k != null) {\n i3 = k[0];\n } else {\n i3 = 720;\n }\n i = m125903a(C7551d.m23567d(this.f102568b.videoWidth(), i3));\n }\n this.f102569c = i;\n if (a) {\n i2 = this.f102568b.videoHeight();\n } else {\n double d = (double) this.f102569c;\n Double.isNaN(d);\n i2 = (int) (Math.ceil(d / 9.0d) * 16.0d);\n }\n this.f102570d = i2;\n return;\n }\n if (this.f102568b.mVideoCanvasWidth > 0) {\n i4 = this.f102568b.mVideoCanvasWidth;\n } else {\n i4 = this.f102568b.videoWidth();\n }\n this.f102569c = i4;\n if (this.f102568b.mVideoCanvasHeight > 0) {\n i5 = this.f102568b.mVideoCanvasHeight;\n } else {\n i5 = this.f102568b.videoHeight();\n }\n this.f102570d = i5;\n }", "void mo4873a(C4718l c4718l);", "public void mo5833c(android.content.Context r7) {\n /*\n r6 = this;\n r0 = 2\n java.lang.String r1 = m3302v() // Catch:{ a -> 0x0097, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x0097, IOException -> 0x008a }\n L_0x0008:\n r0 = 1\n java.lang.String r1 = m3304x() // Catch:{ a -> 0x0094, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x0094, IOException -> 0x008a }\n L_0x0010:\n java.lang.Long r0 = m3303w() // Catch:{ a -> 0x0092, IOException -> 0x008a }\n long r0 = r0.longValue() // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r2 = 25\n r6.mo5829a(r2, r0) // Catch:{ a -> 0x0092, IOException -> 0x008a }\n long r2 = startTime // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r4 = 0\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 == 0) goto L_0x0034\n r2 = 17\n long r3 = startTime // Catch:{ a -> 0x0092, IOException -> 0x008a }\n long r0 = r0 - r3\n r6.mo5829a(r2, r0) // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r0 = 23\n long r1 = startTime // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r6.mo5829a(r0, r1) // Catch:{ a -> 0x0092, IOException -> 0x008a }\n L_0x0034:\n android.view.MotionEvent r0 = r6.f2852jY // Catch:{ a -> 0x0090, IOException -> 0x008a }\n android.util.DisplayMetrics r1 = r6.f2853jZ // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.util.ArrayList r1 = m3296a(r0, r1) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r2 = 14\n r0 = 0\n java.lang.Object r0 = r1.get(r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.lang.Long r0 = (java.lang.Long) r0 // Catch:{ a -> 0x0090, IOException -> 0x008a }\n long r3 = r0.longValue() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r6.mo5829a(r2, r3) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r2 = 15\n r0 = 1\n java.lang.Object r0 = r1.get(r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.lang.Long r0 = (java.lang.Long) r0 // Catch:{ a -> 0x0090, IOException -> 0x008a }\n long r3 = r0.longValue() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r6.mo5829a(r2, r3) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n int r0 = r1.size() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r2 = 3\n if (r0 < r2) goto L_0x0073\n r2 = 16\n r0 = 2\n java.lang.Object r0 = r1.get(r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.lang.Long r0 = (java.lang.Long) r0 // Catch:{ a -> 0x0090, IOException -> 0x008a }\n long r0 = r0.longValue() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r6.mo5829a(r2, r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n L_0x0073:\n r0 = 27\n com.google.android.gms.internal.n r1 = r6.f2854ka // Catch:{ a -> 0x008e, IOException -> 0x008a }\n java.lang.String r1 = m3295a(r7, r1) // Catch:{ a -> 0x008e, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x008e, IOException -> 0x008a }\n L_0x007e:\n r0 = 29\n com.google.android.gms.internal.n r1 = r6.f2854ka // Catch:{ a -> 0x008c, IOException -> 0x008a }\n java.lang.String r1 = m3298b(r7, r1) // Catch:{ a -> 0x008c, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x008c, IOException -> 0x008a }\n L_0x0089:\n return\n L_0x008a:\n r0 = move-exception\n goto L_0x0089\n L_0x008c:\n r0 = move-exception\n goto L_0x0089\n L_0x008e:\n r0 = move-exception\n goto L_0x007e\n L_0x0090:\n r0 = move-exception\n goto L_0x0073\n L_0x0092:\n r0 = move-exception\n goto L_0x0034\n L_0x0094:\n r0 = move-exception\n goto L_0x0010\n L_0x0097:\n r0 = move-exception\n goto L_0x0008\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.C1107j.mo5833c(android.content.Context):void\");\n }", "public abstract long mo24409b();", "static C7396f m22227a() {\n return C7444g.f16350k0;\n }", "private int m15036d(C1085v vVar) {\n if (this.f13675n == 2) {\n return 0;\n }\n int d = this.f13674m.mo12697d(this.f13679r, vVar);\n int a = (this.f13674m.mo12721a(d, ViewCompat.m2862o(this.f13679r)) & 65280) >> 8;\n if (a == 0) {\n return 0;\n }\n int i = (d & 65280) >> 8;\n if (Math.abs(this.f13669h) > Math.abs(this.f13670i)) {\n int b = m15032b(vVar, a);\n if (b > 0) {\n return (i & b) == 0 ? C5319g.m15060b(b, ViewCompat.m2862o(this.f13679r)) : b;\n }\n int c = m15033c(vVar, a);\n if (c > 0) {\n return c;\n }\n } else {\n int c2 = m15033c(vVar, a);\n if (c2 > 0) {\n return c2;\n }\n int b2 = m15032b(vVar, a);\n if (b2 > 0) {\n if ((i & b2) == 0) {\n b2 = C5319g.m15060b(b2, ViewCompat.m2862o(this.f13679r));\n }\n return b2;\n }\n }\n return 0;\n }", "public abstract long mo9748m();" ]
[ "0.64892805", "0.6198669", "0.61806273", "0.6163308", "0.60124177", "0.59498197", "0.59261096", "0.5906421", "0.5904994", "0.5894259", "0.58794165", "0.5878495", "0.5855536", "0.5851568", "0.5847831", "0.5830511", "0.5830416", "0.58172363", "0.58061457", "0.5803801", "0.5798675", "0.5761112", "0.576067", "0.57553273", "0.5730749", "0.5710417", "0.57085043", "0.57061553", "0.5705491", "0.56904656", "0.5680048", "0.5669021", "0.5666106", "0.5658296", "0.56574583", "0.56495464", "0.5648093", "0.5625488", "0.56221026", "0.5621571", "0.56121176", "0.5612117", "0.56113863", "0.5610011", "0.56085473", "0.56064045", "0.5600529", "0.5595219", "0.5595119", "0.5590976", "0.55878884", "0.558619", "0.55816126", "0.5580354", "0.55802506", "0.55748254", "0.5573961", "0.5571991", "0.55683106", "0.5562606", "0.5558946", "0.55572176", "0.5554505", "0.5551283", "0.555082", "0.5550344", "0.5549984", "0.5548967", "0.55453295", "0.5544719", "0.55427873", "0.5537971", "0.55365634", "0.553521", "0.55323344", "0.55322856", "0.55277574", "0.55241495", "0.55172956", "0.5512144", "0.55069304", "0.55068773", "0.55047196", "0.550428", "0.5504258", "0.5496437", "0.54961944", "0.5494328", "0.5490072", "0.5489342", "0.54887986", "0.548827", "0.54876256", "0.5486553", "0.5485973", "0.54838514", "0.547883", "0.54781526", "0.54763895", "0.5475975", "0.54750276" ]
0.0
-1
/ 344: / 345:
public void setFacturaProveedorSRI(FacturaProveedorSRI facturaProveedorSRI) /* 346: */ { /* 347:337 */ this.facturaProveedorSRI = facturaProveedorSRI; /* 348: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "public static String getParsedColonKey(String input) {\t\n\t\tif (input == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn input.split(\":\")[0];\n\t}", "public static String getParsedColonValue(String input){\n\t\tif (input == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn input.split(\":\")[1];\n\t}", "@Test\r\n public void testRegexp() throws Exception {\n\r\n String a = \"a/b/100/test\";\r\n\r\n Pattern pattern = Pattern.compile(\".+/(\\\\d+)/test\");\r\n\r\n System.out.println(parseIdFromUriPath(a, pattern));\r\n\r\n }", "private static String formatTime(String time) {\n\t\treturn String.format(\"%s:%s\", time.substring(0, 2), time.substring(2));\n\t}", "private String normalizeDiseaseId(String diseaseId) {\n String[] tokens = diseaseId.split(\":\");\n if (\"ORPHANET\".equals(tokens[0])) {\n diseaseId = \"ORPHA:\" + tokens[1];\n }\n return diseaseId;\n }", "String canonHr(String s) {\n List<String> l = StringUtil.breakAt(s, \":\");\n if (l.size() == 2) {\n return l.get(0) + \":\" + l.get(1).toUpperCase();\n }\n return s.toUpperCase();\n }", "public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }", "private String trimNumber(String num){\n\t\tString incomingNumber = num;\n\t\tincomingNumber = incomingNumber.replaceAll(\"-\", \"\" );\n\t\tif(incomingNumber.startsWith(\"1\"))\n\t\t\tincomingNumber = incomingNumber.replaceFirst(\"1\", \"\");\n\t\tLog.d(TAG,\"trimnum: \" + num );\n\t\tLog.d(TAG,\"trimNumber: \" + incomingNumber);\n\t\treturn incomingNumber;\n\t}", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "private void formatPhoneNum() {\n\t\tthis.phoneNum = \"(\" + this.phoneNum.substring(0, 3) + \") \" + this.phoneNum.substring(3, 6) + \" \"\n\t\t\t\t+ this.phoneNum.substring(6);\n\t}", "@Test\n public void testSplitTime(){\n \tCountDownTimer s = new CountDownTimer();\n \ts.splitTime(3975);\n \tassertEquals(s.toString(), \"1:06:15\");\n \t\n \ts.splitTime(45);\n \tassertEquals(s.toString(), \"0:00:45\");\n \t\n }", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "private static int computeTime(String time) {\n\t\tint ret = 0;\n\t\tint multiply = 1;\n\t\tint decimals = 1;\n\t\tfor (int i = time.length() - 1; i >= 0; --i) {\n\t\t\tif (time.charAt(i) == ':') {\n\t\t\t\tmultiply *= 60;\n\t\t\t\tdecimals = 1;\n\t\t\t} else {\n\t\t\t\tret += (time.charAt(i) - '0') * multiply * decimals;\n\t\t\t\tdecimals *= 10;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "String formatPhoneNumber(String phoneNumber);", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "public static String searchMobileNum (String body){\r\n\t\tif(body.contains(\":\")){\r\n\t\t\tif(body.indexOf(\":\") == 10){\r\n\t\t\t\tbody = body.substring(0, 10);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(isDigit(body))\r\n\t\t\treturn body;\r\n\t\telse return null;\r\n\t}", "@Test\n\tpublic void repeatingIndexOfLastDigitTest() {\n\t\tAssert.assertTrue(ifn.repeatingIndexOfLastDigit() == 60);\n\t}", "private static int getHours(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(0)) * 10) + Character.getNumericValue(time.charAt(1));\n\t}", "@Test\n public void testCaseNumberSplit() {\n String caseNumber1 = \"NTN-57930\";\n String[] parts1 = caseNumber1.split( \"-\" );\n //String[] parts2 = caseNumber2.split(\"-\");\n //String[] parts3 = caseNumber3.split(\"-\");\n System.out.println( parts1.length );\n //System.out.println( parts2.length);\n //System.out.println( parts3.length);\n if (parts1.length > 2) {\n System.out.println( parts1[0] );\n String case1 = caseNumber1.substring( caseNumber1.indexOf( caseNumber1.split( \"-\" )[0] ), caseNumber1.indexOf( caseNumber1.split( \"-\" )[2] ) - 1 );\n System.out.println( case1 );\n } else {\n String case1 = caseNumber1;\n System.out.println( case1 );\n }\n }", "public abstract void partiallyParsedUtterance(long ms);", "java.lang.String getPhonenumber();", "private String parseGroupNameD2K(String line) {\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tsb.append(tokens[0] + \".\");\n\t\tsb.append(tokens[1].replace(';', '_'));\n\t\ttry{\n\t\t\tsb.append(tokens[4].replace('#', '.'));\n\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t// do nothing\n\t\t}\n\t\treturn sb.toString();\n\t}", "public abstract void correctlyParsedUtterance(long ms);", "private static String readWord(String word, int l){\n\t\tint index = l;\n\t\twhile(index < word.length()){\n\t\t\tif(word.charAt(index) != ':')\n\t\t\t\tindex++;\n\t\t\telse{\n\t\t\t\tif(index < word.length()-1 && word.charAt(index+1) != ':')\n\t\t\t\t\tindex++;\n\t\t\t\telse{\n\t\t\t\t\tif(index != word.length()-1){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn word.substring(l, index);\n\t}", "public abstract void incorrectlyParsedUtterance(long ms);", "@Test\n public void allSpareAndLast_2_Expected_111(){\n String input = \"1/1/1/1/1/1/1/1/1/1/2\";\n assertEquals(game.scoreOfGame(input),111);\n }", "public int getSnakeStartLength();", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "void mo34677H(String str, int i, int i2);", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }", "public void testYourThirdPartition() {\n\tSystem.out.print(\"\\nTesting Third Partition...\\n\");\n executeTestPrintResult(\"http://abc.com/\", true); // empty \n executeTestPrintResult(\"http://abc.com/a/b/c/1/2/3\", true); // arbitrary length, letters and digits\n executeTestPrintResult(\"http://abc.com/a/#b\", false); // invalid char \n executeTestPrintResult(\"http://abc.com/a/$b\", true); // $ is valid char \n executeTestPrintResult(\"http://abc.com/../b\", false); // invalid relative path\n executeTestPrintResult(\"/a/b/c\", false); // no domain \n }", "public String digit(String digit);", "@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }", "public String get_integer_part();", "static String hashURL(String url){\n\t\treturn url.replace('/', 's').replace(':','c');\n\t}", "public void testYourFourthPartition() {\n\tSystem.out.print(\"\\nTesting Fourth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com?\", false); // empty \n executeTestPrintResult(\"http://abc.com?key=value\", true); \n executeTestPrintResult(\"http://abc.com?a=1&b=2&c=3\", true); // arbitrary length, letters/digits \n executeTestPrintResult(\"http://abc.com?a=1+b=2\", false); // +\n executeTestPrintResult(\"http://abc.com?a\", false); // no value\n executeTestPrintResult(\"http://abc.com?=a\", false); // no key\n executeTestPrintResult(\"?key=value\", false); // no domain \n }", "@Override\n public String formatPartial (String partial)\n {\n if (partial.matches(\"[0-9]{3}\"))\n {\n return partial.substring(0, 2) + \"/\" + partial.substring(2);\n }\n else if (partial.matches(\"[0-9]{2}/[0-9]{3}\"))\n {\n return partial.substring(0, 5) + \"/\" + partial.substring(5);\n }\n return null;\n }", "public final void mRULE_TWENTYFOURHRSTIME() throws RecognitionException {\n try {\n int _type = RULE_TWENTYFOURHRSTIME;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:16737:24: ( '0' .. '2' '0' .. '9' ':' '0' .. '5' '0' .. '9' ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )? )\n // InternalDSL.g:16737:26: '0' .. '2' '0' .. '9' ':' '0' .. '5' '0' .. '9' ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )?\n {\n matchRange('0','2'); \n matchRange('0','9'); \n match(':'); \n matchRange('0','5'); \n matchRange('0','9'); \n // InternalDSL.g:16737:66: ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )?\n int alt28=2;\n int LA28_0 = input.LA(1);\n\n if ( (LA28_0==':') ) {\n alt28=1;\n }\n switch (alt28) {\n case 1 :\n // InternalDSL.g:16737:67: ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )?\n {\n match(':'); \n matchRange('0','6'); \n matchRange('0','9'); \n // InternalDSL.g:16737:89: ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )?\n int alt27=2;\n int LA27_0 = input.LA(1);\n\n if ( (LA27_0=='.') ) {\n alt27=1;\n }\n switch (alt27) {\n case 1 :\n // InternalDSL.g:16737:90: '.' '0' .. '9' '0' .. '9' '0' .. '9'\n {\n match('.'); \n matchRange('0','9'); \n matchRange('0','9'); \n matchRange('0','9'); \n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Test\n public void shouldRetainDigitsAndWhiteSpace() {\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE)\n .retainFrom(\"123TT T4\"),is(\"123 4\"));\n }", "private String formatTccId(TCC tcc) {\n\t\tString id = Integer.toString(tcc.getIdTCC());\n\t\twhile (id.length() < 5) {\n\t\t\tid = \"0\" + id;\n\t\t}\n\t\treturn id;\n\t}", "@Test\n public void testShorten247() { // FlairImage: 247\n assertEquals(\"From: FlairImage line: 248\", \"\", shorten(\"asd.asd\",7)); \n assertEquals(\"From: FlairImage line: 249\", \"C:/Users/\", shorten(\"C:/Users/asd.asd\",7)); \n }", "public String mo38889c() {\n String trim = this.f30736g0.getText().toString().trim();\n return trim.length() == 5 ? trim.substring(3, 5) : \"\";\n }", "String formatTime(int time) {\r\n\t\tint h = time / 3600;\r\n\t\ttime %= 3600;\r\n\t\tint m = time / 60;\r\n\t\ttime %= 60;\r\n\t\tint s = time;\r\n\t\treturn String.format(\"%02d:%02d:%02d\", h, m, s);\r\n\t}", "private final static String stripDash( String s ) {\n\n StringTokenizer tokDash = new StringTokenizer(s, \"-\");\n\n if (tokDash.countTokens() > 1) {\n return tokDash.nextToken();\n } else {\n return s;\n }\n\n }", "protected String parsePrimaryId(String uriTxt) {\n\t\tString id = null;\n\t\tint idx = uriTxt.lastIndexOf(QuickLinksAction.CHAR_SLASH);\n\t\tif (idx < uriTxt.length()) \n\t\t\tid = uriTxt.substring(idx+1);\n\t\treturn id;\n\t}", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "public static String getBlocksOf4(String text){\r\n\t\tString result = \"\";\r\n\t\t\r\n\t\tchar[] textChars = text.toCharArray();\r\n\t\tfor(int i = 0; i < text.length(); i++){\r\n\t\t\tresult += textChars[i];\r\n\t\t\tif ((i+1) % 4 == 0){\r\n\t\t\t\tresult += \" \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "private void parseTriangle(String line) {\n String first_integer = line.substring(2);\n first_integer = first_integer.trim();\n int second_space_index = first_integer.indexOf(' ') + 1;\n String second_integer = first_integer.substring(second_space_index);\n second_integer = second_integer.trim();\n int third_space_index = second_integer.indexOf(' ') + 1;\n String third_integer = second_integer.substring(third_space_index);\n third_integer = third_integer.trim();\n\n parseTriplet(first_integer.substring(0, second_space_index - 1));\n parseTriplet(second_integer.substring(0, third_space_index - 1));\n parseTriplet(third_integer);\n }", "private String extractHostFromDBUrl(String url) throws Exception {\n\t\tint start = url.indexOf(\"sid=\") + 4;\n\t\tif (start > 3) {\n\t\t\tint stop = url.indexOf(\")\", start);\n\t\t\tif (stop > -1) {\n\t\t\t\treturn url.substring(start, stop);\n\t\t\t}\n\t\t} else {\n\t\t\tlog.warn(\"Try to extract sid from short url\");\n\t\t\tstart = url.lastIndexOf(\":\") + 1;\n\t\t\tif (start > 0) {\n\t\t\t\treturn url.substring(start, url.length());\n\t\t\t}\n\t\t}\n\t\tthrow new Exception(\"Unable to extract the SID from the URL \" + url);\n\t}", "public void testNumberID() {\n String testID = generator.generatePrefixedIdentifier(\"123\");\n assertNotNull(testID);\n assertTrue(testID.matches(\"_123\" + ID_REGEX));\n }", "public static void main(String[] args) {\n\t\tString url = \"http://hell.com/?pw=8936,id='fsfds'\";\n\t\t\n\t\tint location = url.indexOf(\"pw=\");\n\t\tString str2 = url.substring(location+7);\n\t\tString str1 = url.substring(0,location+3);\n\t\tSystem.out.println(str1+\"****\"+str2);\n\t\t\n\t}", "public int getProtocolDelimitedLength();", "private static String handleFancyStreetNumber(String addressLine, String pattern) {\n if (addressLine.matches(pattern + \".+\") && !isAlphabeticStreetName(addressLine, pattern)) {\n String rightAddr[] = addressLine.split(pattern, 2);\n if (rightAddr.length == 0) return addressLine;\n String rightPart = rightAddr[rightAddr.length - 1];\n String streetNumber = findFirstNumber(addressLine.substring(0, addressLine.indexOf(rightPart)));\n if (streetNumber.length() > 0) return streetNumber + \" \" + rightPart;\n }\n return addressLine;\n }", "public static void main(String[] args) {\n\t\tString s = \"12:45:54PM\";\r\n\t\tString temp=\":\";\r\n\t\tString Result=\"\";\r\n\t\t\r\n\t\tif(s.charAt(8)=='P' || s.charAt(8)=='p')\r\n\t\t {\r\n\t\t\tString s1[] = s.split(\":\");\r\n\t int Hour = Integer.parseInt(s1[0]);\r\n\t String Actual_Hour = \"\";\r\n\t if(Hour == 12)\r\n\t {\r\n\t \tActual_Hour = \"12\";\r\n\t }\r\n\t else\r\n\t {\r\n\t \tint data = 12 + Hour;\r\n\t \tActual_Hour = String.valueOf(data);\r\n\t }\r\n\t \r\n\t \r\n\t Result = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2);\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t \tString s1[] = s.split(\":\");\r\n\t\t \tint Hour = Integer.parseInt(s1[0]);\r\n\t\t String Actual_Hour = \"\";\r\n\t\t if(Hour == 12)\r\n\t\t {\r\n\t\t \tActual_Hour = \"00\";\r\n\t\t \tResult = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2); \r\n\t\t }\r\n\t\t else {\r\n\t\t \tString s2[] = s.split(\"AM\");\r\n\t\t\t for(int i=0; i<s2.length; i++)\r\n\t\t\t {\r\n\t\t\t \tResult = s2[i];\r\n\t\t\t }\t\r\n\t\t }\r\n\t\t \t\r\n\t\t }\r\n\t\t\r\n\t\t\t\tSystem.out.println(Result);\r\n}", "@NonNull\n private String getDpnId(@NonNull String id) {\n String[] nodeNo = id.split(\":\");\n String[] dpnId = nodeNo[1].split(\"]\");\n return dpnId[0];\n }", "public static void main(String[] args) throws Exception {\n String s;\n// s = \"0000000000000\";\n s = \"000000-123456\";\n// s = \"000000123456\";\n if (s.matches(\"^0+$\")) {\n s = \"0\";\n }else{\n s = s.replaceFirst(\"^0+\",\"\");\n }\n System.out.println(s);\n\n\n// System.out.println(StringUtils.addRight(s,'A',mod));\n// String s = \"ECPay thong bao: Tien dien T11/2015 cua Ma KH PD13000122876, la 389.523VND. Truy cap www.ecpay.vn hoac lien he 1900561230 de biet them chi tiet.\";\n// Pattern pattern = Pattern.compile(\"^(.+)[ ](\\\\d+([.]\\\\d+)*)+VND[.](.+)$\");\n// Matcher matcher = pattern.matcher(s);\n// if(matcher.find()){\n// System.out.println(matcher.group(2));\n// }\n }", "static String timeConversion(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2, 4);\n\n String newHours;\n if (ampm.equals(\"AM\")) {\n newHours = hours.equals(\"12\") ? \"00\" : hours;\n\n } else {\n newHours = hours.equals(\"12\") ? hours : String.valueOf(Integer.parseInt(hours) + 12);\n }\n\n return newHours + \":\" + minutes + \":\" + seconds;\n\n }", "@Override\n public void handle(KeyEvent t) {\n if(!receiver_id.getText().matches(\"[0-9]*\"))\n {\n receiver_id.setText(receiver_id.getText().replaceAll(\"[^\\\\d]\", \"\"));\n receiver_id.selectPositionCaret(receiver_id.getLength());receiver_id.deselect();\n }\n }", "private String readPrefixPart()\n // { return readWordSub(false, false) ; }\n {\n return readSegment(false);\n }", "private void parseTriplet(String item) {\n int vertex;\n\n int first_slash = item.indexOf('/');\n if (first_slash == -1) {\n vertex = parseInteger(item);\n if (vertex < 0) {\n vertex += mLastVertexNumber;\n }\n mIndices.add(vertex);\n return;\n }\n // wait wait there are more indices in this line\n vertex = parseInteger(item.substring(0, first_slash));\n if (vertex < 0) {\n vertex += mLastVertexNumber;\n }\n mIndices.add(vertex);\n String leftover = item.substring(first_slash + 1, item.length());\n int second_slash = leftover.indexOf('/');\n if (second_slash == -1) {\n mTextureIndex.add(parseInteger(leftover));\n return;\n }\n if (second_slash == 0) {\n mNormalIndex.add(parseInteger(leftover.substring(1, leftover.length())));\n }\n }", "void formatPhoneNumber(String phoneNumber) throws PhoneNumberFormatException;", "dkj mo4367a(dkk dkk);", "public void testYourFifthPartition() {\n\tSystem.out.print(\"\\nTesting Fifth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:1/a?key=value\", true); // domain + port + path + query\n executeTestPrintResult(\"http://abc.com/a?key=value\", true); // domain + path + query\n executeTestPrintResult(\"http://abc.com:1/a\", true); // domain + port + path\n executeTestPrintResult(\"http://abc.com:1?key=value\", true); // domain + port + query\n\n executeTestPrintResult(\"http://abc.com/a/b:80\", false); // domain + path + port\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c\", false); // domain + query + path\n executeTestPrintResult(\"http://abc.com?key=value:80\", false); // domain + query + port\n executeTestPrintResult(\"http://abc.com:1?key=value/a/b/c\", false); // domain + port + query + path\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c:80\", false); // domain + query + path + port\n executeTestPrintResult(\"http://abc.com?key=value:80/a/b/c\", false); // domain + query + port + path\n executeTestPrintResult(\"http://abc.com/a/b/c:80?key=value\", false); // domain + path + port + query\n executeTestPrintResult(\"http://abc.com/a/b/c?key=value:80\", false); // domain + path + query + port\n\t \n }", "public static int parsePort(String url) {\n // rtmp://localhost:2035/foo/bar\n // Find first slash with colon\n int start = url.indexOf(\":/\");\n if (start == -1)\n return 0;\n\n // Second slash should be +1, so start 3 after for ://\n start = start + 3;\n int end = url.indexOf('/', start);\n\n // take everything up until the next slash for servername:port\n String snp = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // If IPv6 is in use, start looking after the square bracket.\n int delim = snp.indexOf(']');\n delim = (delim > -1) ? snp.indexOf(':', delim) : snp.indexOf(':');\n if (delim == -1)\n return 0;\n\n int port = 0;\n try {\n int p = Integer.parseInt(snp.substring(delim + 1));\n port = (p > 0) ? p : 0;\n } catch (Throwable t) {\n port = -1; // To denote that the url contained server.port token.\n }\n return port;\n }", "public static long inetAton(String add) {\n long result = 0;\n // number between a dot\n long section = 0;\n // which digit in a number\n int times = 1;\n // which section\n int dots = 0;\n for (int i = add.length() - 1; i >= 0; --i) {\n if (add.charAt(i) == '.') {\n times = 1;\n section <<= dots * 8;\n result += section;\n section = 0;\n ++dots;\n } else {\n section += (add.charAt(i) - '0') * times;\n times *= 10;\n }\n }\n section <<= dots * 8;\n result += section;\n return result;\n }", "private String getMediaPageUrl(String url) {\n\t\tfor(int idx=url.length()-1; idx > 0; idx--) {\n\t\t\tif (!Character.isDigit(url.charAt(idx))) {\n\t\t\t\tString clipId = url.substring(idx+1);\n\t\t\t\turl = VimeoConverter.ROOT_URL + \"/\" + clipId;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t}", "private Integer timeStringToInt(String time) {\n\t\t\n\t\tif(time.equals(\"TBA\")) {\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\tString[] t = time.split(\":\");\n\t\tInteger hours = Integer.parseInt(t[0]) * 100;\n\t\tInteger minutes = Integer.parseInt(t[1]);\n\t\treturn hours + minutes;\n\t}", "private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}", "void mo9075h(String str, int i, int i2);", "public static long TimeInformationToSeconds(String info){\n\t\tif(info.indexOf(':') > 0){\n\t\t\tString[] data = info.split(\":\");\n\t\t\tlong hours = Long.parseLong(data[0]);\n\t\t\tlong minutes = Long.parseLong(data[1]);\n\t\t\tlong seconds = Long.parseLong(data[2].split(\"[.]\")[0]);\n\t\t\tlong milliseconds = Long.parseLong(data[2].split(\"[.]\")[1]);\n\t\t\treturn (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t\t}else{\n\t\t\n\t\t/*\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tSystem.out.println(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tSystem.out.println(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tSystem.out.println(info.substring(info.indexOf('.')));\n/*\t\tlong days = Long.parseLong(info.substring(0, info.indexOf(\"day\")));\n\t\tlong hours = Long.parseLong(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tlong minutes = Long.parseLong(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tlong seconds = Long.parseLong(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tlong milliseconds = Long.parseLong(info.substring(info.indexOf('.')));\n\t*/\t\n\t\t}\n\t\treturn 1;//(days * 86400000) + (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t}", "private String extractHourMinute(String dateTime)\n {\n String[] aux = dateTime.split(\"T\");\n String[] auxTime = aux[1].split(\":\");\n\n return auxTime[0] + \":\" + auxTime[1];\n }", "private static String format(String value) {\r\n String formattedValue = value.trim();\r\n if (formattedValue.endsWith(\" 00:00:00\")) {\r\n formattedValue = formattedValue.substring(0, formattedValue.length() - 9);\r\n } else {\r\n if (formattedValue.endsWith(\" 00:00:00.0\")) {\r\n formattedValue = formattedValue.substring(0, formattedValue.length() - 11);\r\n }\r\n }\r\n return formattedValue;\r\n }", "public void parse(String information) {\n //$NON-NLS-1$\n String[] split = information.split(\":\", 2);\n if (split.length != 1) {\n //$NON-NLS-1$\n split = split[1].split(\":\");\n for (int i = 0; i < split.length; i++) {\n final String[] blockInfo = //$NON-NLS-1$\n split[i].split(//$NON-NLS-1$\n \"-\");\n final int index = Integer.parseInt(blockInfo[0]);\n final int blockLength = Integer.parseInt(blockInfo[1]) - index;\n addDownloadedBlock(index, blockLength);\n }\n }\n }", "void mo1329d(String str, String str2);", "@Test\n\tpublic void testIPV4WithPortAndUserInfo() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://brett@192.168.91.1:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"192.168.91.1\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(\"brett\", uri.getUserinfo());\n\t}", "public static String extractCurrentSnipId(String token) {\n\t\tString[] tokenSplit = token.split(\":\");\n\t\tif (tokenSplit.length > 1)\n\t\t\treturn tokenSplit[1];\n\t\treturn null;\n\t}", "private void processDelay(String str) {\r\n delay = Integer.valueOf(str.split(\":\")[1].trim());\r\n }", "private static Heading parse(String record) {\n\t\tString[] parts = record.split(\" \", 2);\n\t\tint weight = Integer.parseInt(parts[0].substring(1));\n\t\tHeading heading = new Heading(weight, parts[1].trim());\n\t\treturn heading;\n\t}", "public final void mRULE_TWELVEHRSTIME() throws RecognitionException {\n try {\n int _type = RULE_TWELVEHRSTIME;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:16739:20: ( '0' .. '1' '0' .. '9' ':' '0' .. '5' '0' .. '9' ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )? ( 'am' | 'pm' ) )\n // InternalDSL.g:16739:22: '0' .. '1' '0' .. '9' ':' '0' .. '5' '0' .. '9' ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )? ( 'am' | 'pm' )\n {\n matchRange('0','1'); \n matchRange('0','9'); \n match(':'); \n matchRange('0','5'); \n matchRange('0','9'); \n // InternalDSL.g:16739:62: ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )?\n int alt30=2;\n int LA30_0 = input.LA(1);\n\n if ( (LA30_0==':') ) {\n alt30=1;\n }\n switch (alt30) {\n case 1 :\n // InternalDSL.g:16739:63: ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )?\n {\n match(':'); \n matchRange('0','6'); \n matchRange('0','9'); \n // InternalDSL.g:16739:85: ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )?\n int alt29=2;\n int LA29_0 = input.LA(1);\n\n if ( (LA29_0=='.') ) {\n alt29=1;\n }\n switch (alt29) {\n case 1 :\n // InternalDSL.g:16739:86: '.' '0' .. '9' '0' .. '9' '0' .. '9'\n {\n match('.'); \n matchRange('0','9'); \n matchRange('0','9'); \n matchRange('0','9'); \n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n // InternalDSL.g:16739:121: ( 'am' | 'pm' )\n int alt31=2;\n int LA31_0 = input.LA(1);\n\n if ( (LA31_0=='a') ) {\n alt31=1;\n }\n else if ( (LA31_0=='p') ) {\n alt31=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 31, 0, input);\n\n throw nvae;\n }\n switch (alt31) {\n case 1 :\n // InternalDSL.g:16739:122: 'am'\n {\n match(\"am\"); \n\n\n }\n break;\n case 2 :\n // InternalDSL.g:16739:127: 'pm'\n {\n match(\"pm\"); \n\n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "private String getOidDirectory(OID oid) {\n NumberFormat numberFormat = NumberFormat.getNumberInstance();\n numberFormat.setMaximumIntegerDigits(4);\n numberFormat.setMinimumIntegerDigits(4);\n numberFormat.setGroupingUsed(false);\n String lastFour = numberFormat.format(Math.abs(oid.getValue()) % 10000);\n return lastFour.substring(0, 2) + \"/\" + lastFour.substring(2);\n }", "public void testYourSecondPartition() {\n\tSystem.out.print(\"\\nTesting Second Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:65535\", true); // max allowed port number\n executeTestPrintResult(\"http://abc.com:0\", true); // min allowed port number\n executeTestPrintResult(\"http://abc.com:1\", true); // 1 digit port number \n executeTestPrintResult(\"http://abc.com:99\", true); // 2 digit port number \n executeTestPrintResult(\"http://abc.com:999\", true); // 3 digit port number \n executeTestPrintResult(\"http://abc.com:1000\", true); // 4 digit port number \n executeTestPrintResult(\"http://abc.com:65536\", false); // port number too high \n executeTestPrintResult(\"http://abc.com:-1\", false); // negative port\n executeTestPrintResult(\"http://abc.com:a\", false); // letter in port\n executeTestPrintResult(\"http://abc.com:\", false); // empty port \n executeTestPrintResult(\":123\", false); // no domain \n }", "private static int getMinutes(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(3)) * 10) + Character.getNumericValue(time.charAt(4));\n\t}", "private int parseTime(String timeString){\n\n if(timeString != null) {\n String[] parseTime = timeString.split(\":|\\\\s\");\n String intTime = parseTime[0] + parseTime[1];\n int time = Integer.parseInt((intTime));\n if (time != 1200 && parseTime[2].equals(\"PM\")) {\n time += 1200;\n } else if (time == 1200 && parseTime[2].equals(\"AM\")) {\n time = 0;\n }\n return time;\n\n } else {\n return 0;\n }\n }", "public String designPN(String nr)\r\n {\r\n String newStr=\"(\";\r\n if(nr.length()!=10){return null;}\r\n else\r\n {\r\n newStr=newStr+nr.substring(0,4)+\")-\";\r\n // System.out.println(\"phase 1 \"+ newStr);\r\n newStr=newStr+nr.substring(4,7)+\"-\";\r\n // System.out.println(\"phase 2 \"+ newStr);\r\n newStr=newStr+nr.substring(7,10);\r\n // System.out.println(\"phase 3 \"+ newStr);\r\n }\r\n return newStr;\r\n\r\n }", "protected void parseURL(URL paramURL, String paramString, int paramInt1, int paramInt2) {\n/* 126 */ String str1 = paramURL.getProtocol();\n/* 127 */ String str2 = paramURL.getAuthority();\n/* 128 */ String str3 = paramURL.getUserInfo();\n/* 129 */ String str4 = paramURL.getHost();\n/* 130 */ int i = paramURL.getPort();\n/* 131 */ String str5 = paramURL.getPath();\n/* 132 */ String str6 = paramURL.getQuery();\n/* */ \n/* */ \n/* 135 */ String str7 = paramURL.getRef();\n/* */ \n/* 137 */ boolean bool1 = false;\n/* 138 */ boolean bool2 = false;\n/* */ \n/* */ \n/* */ \n/* 142 */ if (paramInt1 < paramInt2) {\n/* 143 */ int k = paramString.indexOf('?');\n/* 144 */ bool2 = (k == paramInt1) ? true : false;\n/* 145 */ if (k != -1 && k < paramInt2) {\n/* 146 */ str6 = paramString.substring(k + 1, paramInt2);\n/* 147 */ if (paramInt2 > k)\n/* 148 */ paramInt2 = k; \n/* 149 */ paramString = paramString.substring(0, k);\n/* */ } \n/* */ } \n/* */ \n/* 153 */ int j = 0;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 159 */ boolean bool3 = (paramInt1 <= paramInt2 - 4 && paramString.charAt(paramInt1) == '/' && paramString.charAt(paramInt1 + 1) == '/' && paramString.charAt(paramInt1 + 2) == '/' && paramString.charAt(paramInt1 + 3) == '/') ? true : false;\n/* 160 */ if (!bool3 && paramInt1 <= paramInt2 - 2 && paramString.charAt(paramInt1) == '/' && paramString\n/* 161 */ .charAt(paramInt1 + 1) == '/') {\n/* 162 */ paramInt1 += 2;\n/* 163 */ j = paramString.indexOf('/', paramInt1);\n/* 164 */ if (j < 0 || j > paramInt2) {\n/* 165 */ j = paramString.indexOf('?', paramInt1);\n/* 166 */ if (j < 0 || j > paramInt2) {\n/* 167 */ j = paramInt2;\n/* */ }\n/* */ } \n/* 170 */ str4 = str2 = paramString.substring(paramInt1, j);\n/* */ \n/* 172 */ int k = str2.indexOf('@');\n/* 173 */ if (k != -1) {\n/* 174 */ if (k != str2.lastIndexOf('@')) {\n/* */ \n/* 176 */ str3 = null;\n/* 177 */ str4 = null;\n/* */ } else {\n/* 179 */ str3 = str2.substring(0, k);\n/* 180 */ str4 = str2.substring(k + 1);\n/* */ } \n/* */ } else {\n/* 183 */ str3 = null;\n/* */ } \n/* 185 */ if (str4 != null) {\n/* */ \n/* */ \n/* 188 */ if (str4.length() > 0 && str4.charAt(0) == '[') {\n/* 189 */ if ((k = str4.indexOf(']')) > 2) {\n/* */ \n/* 191 */ String str = str4;\n/* 192 */ str4 = str.substring(0, k + 1);\n/* */ \n/* 194 */ if (!IPAddressUtil.isIPv6LiteralAddress(str4.substring(1, k))) {\n/* 195 */ throw new IllegalArgumentException(\"Invalid host: \" + str4);\n/* */ }\n/* */ \n/* */ \n/* 199 */ i = -1;\n/* 200 */ if (str.length() > k + 1) {\n/* 201 */ if (str.charAt(k + 1) == ':') {\n/* 202 */ k++;\n/* */ \n/* 204 */ if (str.length() > k + 1) {\n/* 205 */ i = Integer.parseInt(str.substring(k + 1));\n/* */ }\n/* */ } else {\n/* 208 */ throw new IllegalArgumentException(\"Invalid authority field: \" + str2);\n/* */ } \n/* */ }\n/* */ } else {\n/* */ \n/* 213 */ throw new IllegalArgumentException(\"Invalid authority field: \" + str2);\n/* */ } \n/* */ } else {\n/* */ \n/* 217 */ k = str4.indexOf(':');\n/* 218 */ i = -1;\n/* 219 */ if (k >= 0) {\n/* */ \n/* 221 */ if (str4.length() > k + 1) {\n/* 222 */ i = Integer.parseInt(str4.substring(k + 1));\n/* */ }\n/* 224 */ str4 = str4.substring(0, k);\n/* */ } \n/* */ } \n/* */ } else {\n/* 228 */ str4 = \"\";\n/* */ } \n/* 230 */ if (i < -1) {\n/* 231 */ throw new IllegalArgumentException(\"Invalid port number :\" + i);\n/* */ }\n/* 233 */ paramInt1 = j;\n/* */ \n/* */ \n/* 236 */ if (str2 != null && str2.length() > 0) {\n/* 237 */ str5 = \"\";\n/* */ }\n/* */ } \n/* 240 */ if (str4 == null) {\n/* 241 */ str4 = \"\";\n/* */ }\n/* */ \n/* */ \n/* 245 */ if (paramInt1 < paramInt2) {\n/* 246 */ if (paramString.charAt(paramInt1) == '/') {\n/* 247 */ str5 = paramString.substring(paramInt1, paramInt2);\n/* 248 */ } else if (str5 != null && str5.length() > 0) {\n/* 249 */ bool1 = true;\n/* 250 */ int k = str5.lastIndexOf('/');\n/* 251 */ String str = \"\";\n/* 252 */ if (k == -1 && str2 != null) {\n/* 253 */ str = \"/\";\n/* */ }\n/* 255 */ str5 = str5.substring(0, k + 1) + str + paramString.substring(paramInt1, paramInt2);\n/* */ } else {\n/* */ \n/* 258 */ String str = (str2 != null) ? \"/\" : \"\";\n/* 259 */ str5 = str + paramString.substring(paramInt1, paramInt2);\n/* */ } \n/* 261 */ } else if (bool2 && str5 != null) {\n/* 262 */ int k = str5.lastIndexOf('/');\n/* 263 */ if (k < 0)\n/* 264 */ k = 0; \n/* 265 */ str5 = str5.substring(0, k) + \"/\";\n/* */ } \n/* 267 */ if (str5 == null) {\n/* 268 */ str5 = \"\";\n/* */ }\n/* 270 */ if (bool1) {\n/* */ \n/* 272 */ while ((j = str5.indexOf(\"/./\")) >= 0) {\n/* 273 */ str5 = str5.substring(0, j) + str5.substring(j + 2);\n/* */ }\n/* */ \n/* 276 */ j = 0;\n/* 277 */ while ((j = str5.indexOf(\"/../\", j)) >= 0) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 284 */ if (j > 0 && (paramInt2 = str5.lastIndexOf('/', j - 1)) >= 0 && str5\n/* 285 */ .indexOf(\"/../\", paramInt2) != 0) {\n/* 286 */ str5 = str5.substring(0, paramInt2) + str5.substring(j + 3);\n/* 287 */ j = 0; continue;\n/* */ } \n/* 289 */ j += 3;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 294 */ j = str5.indexOf(\"/..\");\n/* 295 */ while (str5.endsWith(\"/..\") && (paramInt2 = str5.lastIndexOf('/', j - 1)) >= 0) {\n/* 296 */ str5 = str5.substring(0, paramInt2 + 1);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 302 */ if (str5.startsWith(\"./\") && str5.length() > 2) {\n/* 303 */ str5 = str5.substring(2);\n/* */ }\n/* */ \n/* 306 */ if (str5.endsWith(\"/.\")) {\n/* 307 */ str5 = str5.substring(0, str5.length() - 1);\n/* */ }\n/* */ } \n/* 310 */ setURL(paramURL, str1, str4, i, str2, str3, str5, str6, str7);\n/* */ }", "public static void main(String[] args) {\n Pattern MY_PATTERN = Pattern.compile(\"Content-Length: (\\\\d+)\");\n Matcher m = MY_PATTERN.matcher(\"hehe Content-Length: 234 asdf\");\n System.out.println(\"pattern: \" + MY_PATTERN + \", found: \" + m.find());\n System.out.println(\"length ne: \" + m.group(1));\n }", "Rule IndentChar() {\n return FirstOf(Letter(), Digit(), \".\", \"_\");\n }", "void mo8715r(String str, String str2, String str3);", "Optional<String> prefixByPhoneNumber(String phoneNumber);", "public Score(String line){\n\t\tString[] split = line.split(\"_\");\n\n\t\tname = split[0];\n\t\ttotalSecs = Integer.parseInt(split[1]);\n\n\t\ttime = \"%d:%s%d\";\n\n\t\tint mins = totalSecs / N;\n\t\tint secs = totalSecs % N;\n\n\t\tif (secs < 10) {\n\t\t\ttime = String.format(time, mins, \"0\", secs);\n\t\t} else {\n\t\t\ttime = String.format(time, mins, \"\", secs);\n\t\t}\n\t}", "private int getNumber(String taskInfo) throws EditNoIndexException {\n try {\n int numberNextSlash = taskInfo.indexOf(\"/\");\n int number = Integer.parseInt(taskInfo.substring(0, (numberNextSlash - 2)));\n return number;\n } catch (StringIndexOutOfBoundsException | NumberFormatException e) {\n throw new EditNoIndexException();\n }\n }", "private static int parseCorrectAttempts(String score) throws NumberFormatException {\n String[] splitString = score.split(\"/\");\n\n if (splitString.length != 2) {\n throw new NumberFormatException(\"Score is not formatted correctly.\");\n }\n\n return Integer.parseInt(splitString[0]);\n }", "public static String parseHost(String url) {\n int start = url.indexOf(\":/\");\n if (start == -1)\n return \"\";\n\n start = start + 3; // Advance past all of '://' to beginning of host name.\n int end = url.indexOf('/', start);\n String hostnameWithPort = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // IPv6 hostnames may contain ':' but the full value is wrapped in [] - skip past if necessary.\n int delim = hostnameWithPort.indexOf(']');\n delim = (delim != -1) ? hostnameWithPort.indexOf(':', delim) : hostnameWithPort.indexOf(':');\n if (delim == -1) // No port.\n return hostnameWithPort;\n else\n return hostnameWithPort.substring(0, delim);\n }", "private String computeHeaderIdForNumber(String header) {\n\t\tString id = header;\n\t\tif (isKramdownFix()) {\n\t\t\tid = id .replaceAll(\"\\\\.\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t}\n\t\tid = id.replaceAll(\"[^a-zA-Z0-9]+\", \"-\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tid = id.toLowerCase();\n\t\tid = id.replaceFirst(\"^[^a-zA-Z0-9]+\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tid = id.replaceFirst(\"[^a-zA-Z0-9]+$\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tif (Strings.isEmpty(id)) {\n\t\t\treturn \"section\"; //$NON-NLS-1$\n\t\t}\n\t\treturn id;\n\t}", "@Test\n public void FiveAndSpareWithFinalFiveExpected_150(){\n String input = \"5/5/5/5/5/5/5/5/5/5/5\";\n assertEquals(game.scoreOfGame(input),150);\n }", "private static int scanHexSequence (String address, int index, int end, int [] counter) {\n \n char testChar;\n int numDigits = 0;\n int start = index;\n \n // Trying to match the following productions:\n // hexseq = hex4 *( \":\" hex4)\n // hex4 = 1*4HEXDIG\n for (; index < end; ++index) {\n testChar = address.charAt(index);\n if (testChar == ':') {\n // IPv6 addresses are 128-bit, so there can be at most eight sections.\n if (numDigits > 0 && ++counter[0] > 8) {\n return -1;\n }\n // This could be '::'.\n if (numDigits == 0 || ((index+1 < end) && address.charAt(index+1) == ':')) {\n return index;\n }\n numDigits = 0;\n }\n // This might be invalid or an IPv4address. If it's potentially an IPv4address,\n // backup to just after the last valid character that matches hexseq.\n else if (!isHex(testChar)) {\n if (testChar == '.' && numDigits < 4 && numDigits > 0 && counter[0] <= 6) {\n int back = index - numDigits - 1;\n return (back >= start) ? back : (back+1);\n }\n return -1;\n }\n // There can be at most 4 hex digits per group.\n else if (++numDigits > 4) {\n return -1;\n }\n }\n return (numDigits > 0 && ++counter[0] <= 8) ? end : -1;\n }", "public static void main2(String args[]) {\n String s1 = \"2009-03-10T16:08:55.184 -0600 [ 16621850][ 162233] INFO - thredds.server.opendap.NcDODSServlet - Remote host: 128.117.140.71 - Request: \\\"GET /thredds/dodsC/model/NCEP/NAM/CONUS_80km/NAM_CONUS_80km_20090309_0000.grib1.dods?Geopotential_height%5B7:1:7%5D%5B0:10:10%5D%5B0:1:64%5D%5B0:1:92%5D HTTP/1.1\\\"\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s1, p1);\r\n\r\n // 1 2 3 4 5 6 7 8 9\r\n String s2 = \"2009-03-10T16:08:54.617 -0600 [ 16621283][ 162230] INFO - thredds.server.opendap.NcDODSServlet - Request Completed - 200 - -1 - 47\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s2, p2);\r\n\r\n// Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n Pattern p3 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - (.*)\");\r\n\r\n show(s1, p3);\r\n show(s2, p3);\r\n\r\n }" ]
[ "0.54720896", "0.5341118", "0.53205085", "0.5253554", "0.50219303", "0.4834319", "0.48317453", "0.48071942", "0.47581476", "0.47253212", "0.47041646", "0.46996528", "0.46971256", "0.46895462", "0.46696854", "0.46440837", "0.46438268", "0.46168062", "0.46145576", "0.45861122", "0.4580004", "0.4563351", "0.4560451", "0.45592538", "0.4546736", "0.45442405", "0.45430264", "0.4527033", "0.45256695", "0.45254862", "0.45254862", "0.45249048", "0.45224887", "0.45219862", "0.45211345", "0.45175913", "0.4496337", "0.44774976", "0.44753775", "0.44747916", "0.4464733", "0.44635952", "0.44535404", "0.44514203", "0.44495353", "0.44463536", "0.44439116", "0.44422853", "0.44402823", "0.44298998", "0.44298688", "0.4423211", "0.44168544", "0.4412741", "0.4405353", "0.4404648", "0.43945083", "0.43806818", "0.43785408", "0.4376666", "0.43757603", "0.43737552", "0.43715125", "0.43647218", "0.43604448", "0.43589556", "0.43565112", "0.43501067", "0.434866", "0.43479443", "0.43478355", "0.43391874", "0.43368685", "0.43313584", "0.43290383", "0.43273902", "0.43254158", "0.43251324", "0.43204996", "0.43129057", "0.43070412", "0.43069693", "0.43011057", "0.43005988", "0.4296973", "0.42961666", "0.42938653", "0.42936087", "0.42882994", "0.42814666", "0.42801413", "0.42788827", "0.4276582", "0.42746294", "0.42716876", "0.4270013", "0.4266698", "0.426476", "0.42641693", "0.42571688", "0.42526472" ]
0.0
-1
/ 349: / 350:
public List<TipoComprobanteSRI> getListaTipoComprobanteSRI() /* 351: */ { /* 352:341 */ return this.listaTipoComprobanteSRI; /* 353: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void correctlyParsedUtterance(long ms);", "public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }", "public abstract void partiallyParsedUtterance(long ms);", "private void m128168k() {\n C42962b.f111525a.mo104671a(\"upload_page_duration\", C22984d.m75611a().mo59971a(\"first_selection_duration\", System.currentTimeMillis() - this.f104209S).mo59971a(\"page_stay_duration\", System.currentTimeMillis() - this.f104208R).f60753a);\n }", "public abstract void incorrectlyParsedUtterance(long ms);", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "@Test\n public void testSplitTime(){\n \tCountDownTimer s = new CountDownTimer();\n \ts.splitTime(3975);\n \tassertEquals(s.toString(), \"1:06:15\");\n \t\n \ts.splitTime(45);\n \tassertEquals(s.toString(), \"0:00:45\");\n \t\n }", "@Test public void shouldGive240MinFor950cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 4 * 60 /*minutes*/ , rs.calculateTime(950) ); \r\n }", "private String msg3() {\n return(\"[\" + (System.currentTimeMillis() - system_start_time) + \"] \");\n }", "public static String m34537a(long j) {\n Formatter format;\n if (j <= 0 || j >= LogBuilder.MAX_INTERVAL) {\n return \"00:00\";\n }\n long j2 = j / 1000;\n int i = (int) (j2 % 60);\n int i2 = (int) ((j2 / 60) % 60);\n int i3 = (int) (j2 / 3600);\n Formatter formatter = new Formatter(new StringBuilder(), Locale.getDefault());\n if (i3 > 0) {\n format = formatter.format(\"%d:%02d:%02d\", Integer.valueOf(i3), Integer.valueOf(i2), Integer.valueOf(i));\n } else {\n format = formatter.format(\"%02d:%02d\", Integer.valueOf(i2), Integer.valueOf(i));\n }\n return format.toString();\n }", "private long m18337c(long durationUs) {\n return (((long) this.f16625s) * durationUs) / 1000000;\n }", "private void deliver(String mb) {\n\t\t\tString[] sourceIdAndMsgAndTime = mb.split(\" \", 3);\n\t\t\tSystem.out.println(\"Received \"+ sourceIdAndMsgAndTime[1] + \" from process \"+ sourceIdAndMsgAndTime[0] +\", system time is ­­­­­­­­­­­­­\" + sourceIdAndMsgAndTime[2]);\n\t\t\t\n\t\t}", "int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}", "@Test(timeout = 4000)\n public void test49() throws Throwable {\n String string0 = EWrapperMsgGenerator.currentTime((-532L));\n assertEquals(\"current time = -532 (Dec 31, 1969 11:51:08 PM)\", string0);\n }", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "private int toTime(int i) {\n int count = 0;\n\n //hours units\n count += toLeds((i / 6000) % 10);\n //hours tens\n count += toLeds(((i / 6000) % 100) / 10);\n\n //minutes units\n count += toLeds((i / 60) % 10);\n //minutes tens\n count += toLeds(((i / 60) % 100) / 10);\n\n //seconds units\n count += toLeds((i % 60) % 10);\n //seconds tens\n count += toLeds(((i % 60) % 100) / 10);\n\n return count;\n }", "public void getSecsDetail( );", "@Test(timeout = 4000)\n public void test48() throws Throwable {\n String string0 = EWrapperMsgGenerator.realtimeBar(1, 845L, 251L, (-2474L), 1521.6451568161, 845L, 0L, 1, 3197);\n assertEquals(\"id=1 time = 845 open=251.0 high=-2474.0 low=1521.6451568161 close=845.0 volume=0 count=3197 WAP=1.0\", string0);\n }", "private void m6603T() {\n RecordService.C1445b bVar;\n if (!isFinishing() && !this.f5427l && (bVar = this.f5401U) != null) {\n bVar.mo6340a(true);\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"from\", \"1\");\n C1390G.m6779b(\"A107|7|2|7\", hashMap);\n } catch (Exception unused) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"vcode error\");\n }\n }\n }", "private static int timeSpent(Step s) {\n return s.getName().getBytes()[0] - 64 + PENALTY_TIME;\n }", "private static long m45374Tj(String str) {\n AppMethodBeat.m2504i(104873);\n try {\n int la;\n int la2;\n String[] split = str.split(VideoMaterialUtil.FRAMES_ID_SEPARATOR_3D);\n int la3 = C39444d.m67388la(split[0]);\n if (split.length > 1) {\n split = split[1].split(\"\\\\.\");\n la = C39444d.m67388la(split[0]);\n la2 = split.length > 1 ? C39444d.m67388la(split[1]) : 0;\n } else {\n la2 = 0;\n la = 0;\n }\n long j = ((long) (la2 * 10)) + (((long) (la * 1000)) + ((((long) la3) * 60) * 1000));\n AppMethodBeat.m2505o(104873);\n return j;\n } catch (Exception e) {\n C4990ab.printErrStackTrace(\"MicroMsg.Music.LyricObj\", e, \"\", new Object[0]);\n C4990ab.m7421w(\"MicroMsg.Music.LyricObj\", \"strToLong error: %s\", e.getLocalizedMessage());\n AppMethodBeat.m2505o(104873);\n return 0;\n }\n }", "static String timeCount_1(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n \n timeHH += hh;\n timeMI += mi;\n timeSS += ss;\n \n }\n else{\n continue;\n }\n }\n \n timeMI += timeSS / 60;\n timeSS %= 60;\n \n timeHH += timeMI / 60;\n timeMI %= 60; \n\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n \n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n //String result = timeHH + \":\" + timeMI + \":\" + timeSS;\n \n return result;\n }", "public final void mo65712i() {\n if (this.f73948e != -1) {\n long currentTimeMillis = System.currentTimeMillis() - this.f73948e;\n this.f73948e = -1;\n C6907h.onEvent(MobClick.obtain().setEventName(\"play_time\").setLabelName(this.f73944a).setValue(this.f73950g.getAid()).setExtValueLong(currentTimeMillis).setJsonObject(m91738L()));\n C6907h.m21524a(\"play_time\", (Map) C22984d.m75611a().mo59973a(\"enter_from\", this.f73944a).mo59973a(\"group_id\", this.f73950g.getAid()).mo59971a(\"duration\", currentTimeMillis).f60753a);\n if (this.f74252h != null) {\n this.f74252h.mo60134a(\"image_pause\", (Object) Boolean.valueOf(true));\n }\n }\n }", "public void mo21877s() {\n }", "public void mo21863h() {\n this.f24530b.mo22070k();\n mo21790O();\n if (this.f24532d != null) {\n this.f24532d.mo21750s();\n }\n mo21833b(\"pause\");\n mo21879u();\n }", "public void mo21783H() {\n }", "private static int computeTime(String time) {\n\t\tint ret = 0;\n\t\tint multiply = 1;\n\t\tint decimals = 1;\n\t\tfor (int i = time.length() - 1; i >= 0; --i) {\n\t\t\tif (time.charAt(i) == ':') {\n\t\t\t\tmultiply *= 60;\n\t\t\t\tdecimals = 1;\n\t\t\t} else {\n\t\t\t\tret += (time.charAt(i) - '0') * multiply * decimals;\n\t\t\t\tdecimals *= 10;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateNewsBulletin(11, 13, \"E{Iw-^%H:1$e/\", \"LW)W-|=b,lie*CW\");\n assertEquals(\"MsgId=11 :: MsgType=13 :: Origin=LW)W-|=b,lie*CW :: Message=E{Iw-^%H:1$e/\", string0);\n }", "private double getReadTime(int wordCount) {\n return wordCount / 130.0;\n }", "public void mo21867i() {\n mo21877s();\n }", "private static void showTime(String comment,long entryPoint, long endPoint) {\n long elapsedTime = endPoint - entryPoint;\n System.out.println(comment+elapsedTime+\" msec\");\n }", "private int getWhatSoundThatShouldBePlayed(int gapAmountOfSeconds){\n\n if(gapAmountOfSeconds > 0 && !notifiedUnderPace ){\n notifiedUnderPace = true;\n return 3;\n }\n if (gapAmountOfSeconds >= AMOUNT_OF_SECONDS_WHEN_TRIGGERING_NOTIFICATION && gapAmountOfSeconds <= 0){\n if (gapAmountOfSeconds >= AMOUNT_OF_SECONDS_WHEN_TRIGGERING_NOTIFICATION/2 && gapAmountOfSeconds <= 0){\n return 2;\n }\n notifiedUnderPace = false;\n return 1;\n }\n\n\n return 0;\n }", "String clientTransferTime(final int index);", "private void parse(String _content){\n\t\tString[] segmts = _content.split(\"\\\\s+\");\n\t\trelKeyTimes = new double[segmts.length + 2];\n\t\tfor(int i = 0; i < segmts.length; i++){\n\t\t\ttry{\n\t\t\t\tif(timingIsAbsolute){\n\t\t\t\t\trelKeyTimes[i + 1] = (float)(new CMsgTime(segmts[i])).getTotalMillis();\n\t\t\t\t} else {\n\t\t\t\t\trelKeyTimes[i + 1] = Float.parseFloat(segmts[i]);\n\t\t\t\t}\n\t\t\t} catch (NumberFormatException e){;\n\t\t\t} catch (ScriptMsgException e){;}\n\t\t\t\n\t\t}\n\t\t// make sure the last keyTime is a perfect 1.0:\n\t\trelKeyTimes[0] = 0.0f;\n\t\trelKeyTimes[relKeyTimes.length - 1] = 1.0f;\n\t}", "@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }", "void milestone4(int inputSeconds){\n int days = inputSeconds / 86400;\n int seconds = inputSeconds % 86400;\n int hours = seconds / 3600;\n seconds = seconds % 3600;\n int minutes = seconds / 60;\n seconds = seconds % 60;\n\n System.out.println(\"Day/s: \" + days);\n System.out.println(\"Hour/s: \" + hours);\n System.out.println(\"Minute/s: \" + minutes);\n System.out.println(\"Second/s: \" + seconds);\n }", "private static int getNodeTime(String node) {\n int offSet = 4;\n return (int) node.toCharArray()[0] - offSet;\n }", "private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) ((int) (j - ((f / 100.0f) * j))));\n }", "private void giveScords(){\n \t//bingo 題數, seconds花費秒數\n \tint totalSec = (int)seconds;\n \t\n \tif(correct){\n \t\tif(totalSec<=5){\n \t\t\tuserPoints = userPoints + 150;\n \t\t}else if(totalSec<=10){\n \t\t\tuserPoints = userPoints + 125;\n \t\t}else if(totalSec<=15){\n \t\t\tuserPoints = userPoints + 100;\n \t\t}else if(totalSec<=20){\n \t\t\tuserPoints = userPoints + 80;\n \t\t}\n \t}\n }", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "@Test(timeout = 4000)\n public void test45() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateMktDepthL2(2146794261, 927, \"@\", 2146889800, (-180), 2146794261, (-1940));\n assertEquals(\"updateMktDepth: 2146794261 927 @ 2146889800 -180 2.146794261E9 -1940\", string0);\n }", "public int getSnakeStartLength();", "private String formatTime(long length) {\n\t\tString hms = \"\";\n\t\tif(length < 3600000) {\n\t\t\thms = String.format(\"%02d:%02d\",\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t} else {\n\t\t\thms = String.format(\"%02d:%02d:%02d\", TimeUnit.MILLISECONDS.toHours(length),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t}\n\n\t\treturn hms;\n\t}", "private static String hhhmmss(double totalseconds)\n {\n final int SECONDS_PER_MINUTE = 60;\n final int SECONDS_PER_HOUR = SECONDS_PER_MINUTE * 60;\n\n int hours = (int) (totalseconds / SECONDS_PER_HOUR);\n int minutes = (int) ((totalseconds % SECONDS_PER_HOUR)) / SECONDS_PER_MINUTE;\n double seconds = totalseconds % SECONDS_PER_MINUTE;\n\n return String.format(\"%d:%02d:%05.2f\", hours, minutes, seconds);\n }", "private static String hhhmmss(double totalseconds)\n {\n final int SECONDS_PER_MINUTE = 60;\n final int SECONDS_PER_HOUR = SECONDS_PER_MINUTE * 60;\n\n int hours = (int) (totalseconds / SECONDS_PER_HOUR);\n int minutes = (int) ((totalseconds % SECONDS_PER_HOUR)) / SECONDS_PER_MINUTE;\n double seconds = totalseconds % SECONDS_PER_MINUTE;\n\n return String.format(\"%d:%02d:%05.2f\", hours, minutes, seconds);\n }", "private int micRecTime(long freeSpace) {\n\n return (int) (freeSpace / 5898240);\n }", "public static void m22735h() {\n if (f20301b.mo18963a()) {\n f20301b.mo18962a(C7268n.m22763a().mo18998b());\n }\n }", "public void mo21794S() {\n }", "@Test public void shouldGive180MinFor650cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 3 * 60 /*minutes*/ , rs.calculateTime(650) ); \r\n }", "protected String mo3406c() {\n return \"Minute\";\n }", "public static void main(String[] args) {\n\t\tSystem.out.println( getDurationString(61, 61));\r\n\t\t System.out.println(getDurationString(60, 59));\r\n\t\t System.out.println(getDurationString(-610, 9));\r\n\t\t System.out.println( getDurationString(1, 6));\r\n\t\t System.out.println( getDurationString(3722));\r\n\t\t\r\n\t\t\r\n\t}", "public final int mo50059a() {\n return 2;\n }", "int getPaceSeconds() {\r\n\t\tint m = getContents(minutes);\r\n\t\tint s = getContents(seconds);\r\n\t\treturn 60*m +s;\r\n\t}", "@Test(timeout = 4000)\n public void test44() throws Throwable {\n String string0 = EWrapperMsgGenerator.accountDownloadEnd(\"6FL]:1rO^5$2j=[!jjK\");\n assertEquals(\"accountDownloadEnd: 6FL]:1rO^5$2j=[!jjK\", string0);\n }", "private String convertToDuration(Long songDuration){\n long seconds = songDuration/1000;\n long minutes = seconds / 60;\n seconds = seconds % 60;\n return minutes +\":\"+seconds;\n }", "public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}", "private static String formatTime(String time) {\n\t\treturn String.format(\"%s:%s\", time.substring(0, 2), time.substring(2));\n\t}", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "static void m14933d(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "@Test(timeout = 4000)\n public void test50() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickEFP((-2147), 10, 10, \".^|7={wR>bl,rlfYN\", 10, 484, \".^|7={wR>bl,rlfYN\", 484, 484);\n assertEquals(\"id=-2147 bidOptComp: basisPoints = 10.0/.^|7={wR>bl,rlfYN impliedFuture = 10.0 holdDays = 484 futureExpiry = .^|7={wR>bl,rlfYN dividendImpact = 484.0 dividends to expiry = 484.0\", string0);\n }", "String canonHr(String s) {\n List<String> l = StringUtil.breakAt(s, \":\");\n if (l.size() == 2) {\n return l.get(0) + \":\" + l.get(1).toUpperCase();\n }\n return s.toUpperCase();\n }", "public long mo9743h() {\n return mo9773w();\n }", "private void m15508a(long j) {\n C4485ak.m15001a();\n if (this.f13396d.f11672j > 0 && this.f13396d.f11674l > 0 && mo9140c() != null) {\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_state\", PkState.PK);\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_result\", PkResult.UNFINISHED);\n long j2 = (this.f13396d.f11674l - j) + ((long) (this.f13396d.f11672j * 1000));\n int i = (int) j2;\n int i2 = i / 1000;\n int i3 = i % 1000;\n StringBuilder sb = new StringBuilder(\"startTimeDown :\");\n sb.append(j2);\n this.f13396d.lambda$put$1$DataCenter(\"cmd_log_link\", sb.toString());\n if (j2 < 0) {\n if (this.f13399i != null) {\n this.f13399i.dispose();\n this.f13399i = null;\n }\n if (((long) (this.f13396d.f11682t * 1000)) + j2 > 0) {\n m15513b(((long) (this.f13396d.f11682t * 1000)) + j2);\n } else {\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_state\", PkState.FINISHED);\n }\n } else {\n if (this.f13399i != null) {\n this.f13399i.dispose();\n this.f13399i = null;\n }\n ((C4697a) mo9140c()).mo12636a(this.f13395c);\n int i4 = i2 + 1;\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_time_left\", Integer.valueOf(i4));\n this.f13399i = C9057b.m27050a(0, 1, TimeUnit.SECONDS).mo19305c((long) i4).mo19320e((long) i3, TimeUnit.MILLISECONDS).mo19317d((C7327h<? super T, ? extends R>) new C4698fr<Object,Object>(i2)).mo19294a(C47549a.m148327a()).mo19280a((C7326g<? super T>) new C4699fs<Object>(this), (C7326g<? super Throwable>) new C4706fz<Object>(this));\n }\n }\n }", "public void mo4683c() {\n mo4679a(3);\n }", "public String breakUp(String m){\n int arrSize = (int)(m.length()/35 + 0.5);\n\n String[] bySpace = m.split(\" \",0);\n String realMessage = \"\";\n int size = 0;\n for(int i = 0; i < bySpace.length;i++){\n size += bySpace[i].length();\n if(size > 35){\n size = 0;\n realMessage += \"\\n\";\n }\n realMessage += bySpace[i];\n }\n return realMessage;\n }", "long duration();", "public void m6606W() {\n /*\n r17 = this;\n r0 = r17\n com.android.service.RecordService$b r1 = r0.f5401U\n if (r1 != 0) goto L_0x0007\n return\n L_0x0007:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"<updateTimerView>,mState = \"\n r1.append(r2)\n int r2 = r0.f5435p\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n java.lang.String r2 = \"SR/SoundRecorder\"\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n com.android.service.RecordService$b r1 = r0.f5401U\n long r3 = r1.mo6348i()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r7 = r3 / r5\n r0.f5420ha = r7\n com.android.service.RecordService$b r1 = r0.f5401U\n long r9 = r1.mo6346g()\n int r1 = r0.f5435p\n r11 = 3\n r12 = 4\n r13 = 1\n r14 = 2\n r5 = 0\n if (r1 == 0) goto L_0x009a\n if (r1 == r13) goto L_0x0043\n if (r1 == r14) goto L_0x0055\n if (r1 == r11) goto L_0x0045\n if (r1 == r12) goto L_0x00a1\n L_0x0043:\n r7 = r5\n goto L_0x00a1\n L_0x0045:\n int r1 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r1 > 0) goto L_0x004b\n r7 = r5\n goto L_0x004d\n L_0x004b:\n r0.f5451x = r5\n L_0x004d:\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n r1.removeCallbacks(r3)\n goto L_0x00a1\n L_0x0055:\n r0.f5449w = r3\n int r1 = r0.f5439r\n if (r1 != r12) goto L_0x006b\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n long r7 = r0.f5451x\n r15 = 1000(0x3e8, double:4.94E-321)\n long r7 = r7 * r15\n long r12 = r0.f5449w\n long r7 = r7 - r12\n r1.postDelayed(r3, r7)\n goto L_0x007f\n L_0x006b:\n r15 = 1000(0x3e8, double:4.94E-321)\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n long r7 = r0.f5451x\n r12 = 1\n long r7 = r7 + r12\n r0.f5451x = r7\n long r7 = r7 * r15\n long r12 = r0.f5449w\n long r7 = r7 - r12\n r1.postDelayed(r3, r7)\n L_0x007f:\n long r7 = r0.f5449w\n r12 = 500(0x1f4, double:2.47E-321)\n long r7 = r7 + r12\n long r7 = r7 / r15\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>,currentTime = \"\n r1.append(r3)\n r1.append(r7)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n goto L_0x00a1\n L_0x009a:\n r0.f5451x = r5\n r7 = -1000(0xfffffffffffffc18, double:NaN)\n r0.f5449w = r7\n goto L_0x0043\n L_0x00a1:\n java.lang.Object[] r1 = new java.lang.Object[r11]\n r3 = 0\n r11 = 3600(0xe10, double:1.7786E-320)\n long r15 = r7 / r11\n java.lang.Long r13 = java.lang.Long.valueOf(r15)\n r1[r3] = r13\n long r11 = r7 % r11\n r15 = 60\n long r11 = r11 / r15\n java.lang.Long r3 = java.lang.Long.valueOf(r11)\n r11 = 1\n r1[r11] = r3\n long r11 = r7 % r15\n java.lang.Long r3 = java.lang.Long.valueOf(r11)\n r1[r14] = r3\n java.lang.String r3 = \"%02d:%02d:%02d\"\n java.lang.String r1 = java.lang.String.format(r3, r1)\n r0.f5413e = r1\n int r1 = r0.f5435p\n if (r1 == r14) goto L_0x00d1\n r3 = 4\n if (r1 != r3) goto L_0x00d6\n L_0x00d1:\n com.android.view.timeview.TimeView r1 = r0.f5387G\n r1.setCurrentTime(r7)\n L_0x00d6:\n int r1 = r0.f5435p\n r0.f5439r = r1\n com.android.service.RecordService$b r1 = r0.f5401U\n if (r1 == 0) goto L_0x012f\n boolean r1 = r0.f5425k\n if (r1 != 0) goto L_0x012f\n boolean r1 = r0.f5421i\n if (r1 == 0) goto L_0x012f\n int r1 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r1 > 0) goto L_0x012f\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>,mHasFileSizeLimitation : \"\n r1.append(r3)\n boolean r3 = r0.f5421i\n r1.append(r3)\n java.lang.String r3 = \",mRecorder.getRemainingTime(): \"\n r1.append(r3)\n r1.append(r9)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n r1.removeCallbacks(r3)\n r1 = 1\n r0.f5425k = r1\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>, mState = \"\n r1.append(r3)\n int r3 = r0.f5435p\n r1.append(r3)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n int r1 = r0.f5435p\n if (r1 != r14) goto L_0x012f\n r17.m6604U()\n L_0x012f:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.activity.SoundRecorder.m6606W():void\");\n }", "@Test public void shouldGive120MinFor350cent() {\r\n // Two hours: $1.5+2.0\r\n assertEquals( 2 * 60 /*minutes*/ , rs.calculateTime(350) ); \r\n }", "@Test(timeout = 4000)\n public void test55() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateAccountTime(\"yTci@Ca5ai_xH#X\");\n assertEquals(\"updateAccountTime: yTci@Ca5ai_xH#X\", string0);\n }", "public Score(String line){\n\t\tString[] split = line.split(\"_\");\n\n\t\tname = split[0];\n\t\ttotalSecs = Integer.parseInt(split[1]);\n\n\t\ttime = \"%d:%s%d\";\n\n\t\tint mins = totalSecs / N;\n\t\tint secs = totalSecs % N;\n\n\t\tif (secs < 10) {\n\t\t\ttime = String.format(time, mins, \"0\", secs);\n\t\t} else {\n\t\t\ttime = String.format(time, mins, \"\", secs);\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\tint time = 32150;\n\t\n\t\t\tSystem.out.print((time / 3600)+\" 시간 \");\n\t\t\tSystem.out.print((time % 3600 / 60)+\" 분 \");\n\t\t\tSystem.out.println((time % 3600 % 60)+\" 초\");\n\t\t\n\t\t\n\t}", "public static String m13823m() {\n return f12476h;\n }", "String formatTime(int time) {\r\n\t\tint h = time / 3600;\r\n\t\ttime %= 3600;\r\n\t\tint m = time / 60;\r\n\t\ttime %= 60;\r\n\t\tint s = time;\r\n\t\treturn String.format(\"%02d:%02d:%02d\", h, m, s);\r\n\t}", "public static void main(String[] args) {\n System.out.println(getDurationString(65,45));\n\n System.out.println(getDurationString(3945));\n }", "public static long TimeInformationToSeconds(String info){\n\t\tif(info.indexOf(':') > 0){\n\t\t\tString[] data = info.split(\":\");\n\t\t\tlong hours = Long.parseLong(data[0]);\n\t\t\tlong minutes = Long.parseLong(data[1]);\n\t\t\tlong seconds = Long.parseLong(data[2].split(\"[.]\")[0]);\n\t\t\tlong milliseconds = Long.parseLong(data[2].split(\"[.]\")[1]);\n\t\t\treturn (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t\t}else{\n\t\t\n\t\t/*\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tSystem.out.println(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tSystem.out.println(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tSystem.out.println(info.substring(info.indexOf('.')));\n/*\t\tlong days = Long.parseLong(info.substring(0, info.indexOf(\"day\")));\n\t\tlong hours = Long.parseLong(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tlong minutes = Long.parseLong(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tlong seconds = Long.parseLong(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tlong milliseconds = Long.parseLong(info.substring(info.indexOf('.')));\n\t*/\t\n\t\t}\n\t\treturn 1;//(days * 86400000) + (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t}", "public long mo9743h() {\n return mo9760w();\n }", "public void mo3749d() {\n }", "public long mo2483h() {\n return mo2625k() != null ? (long) mo2625k().size() : 0;\n }", "private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }", "static /* synthetic */ Map m4644a(C1960g c1960g, long j) {\n Map hashMap = new HashMap();\n hashMap.put(\"delay\", String.valueOf(System.currentTimeMillis() - j));\n return hashMap;\n }", "private static String m60359b(String str, String str2, String str3) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 4 + String.valueOf(str2).length() + String.valueOf(str3).length());\n sb.append(str);\n sb.append(\"|T|\");\n sb.append(str2);\n sb.append(\"|\");\n sb.append(str3);\n return sb.toString();\n }", "public static String getSleepingSnake(int size)\r\n\t{\r\n if (size == 0) {\r\n\t\t return \"Size needs to be a positive integer\\n\";\r\n }\r\n if (size == 4) {\r\n return \">____ \\n ___ |\\n| > ||\\n||__||\\n|____|\\n\";\r\n }\r\n if (size == 7) {\r\n return \">_______\\n ______ |\\n| ____ ||\\n|| __ |||\\n||| < |||\\n|||___|||\\n||_____||\\n|_______|\\n\";\r\n }\r\n /*\r\n else if (size % 2 != 0) {\r\n StringBuffer sb = new StringBuffer(); \r\n\r\n // first line\r\n sb.append(\">\");\r\n for (int j = 0; j < size; j++) {\r\n sb.append(\"_\");\r\n }\r\n //sb.append(\" \\n\");\r\n sb.append(\"\\n\");\r\n \r\n // second through half\r\n for (int i = 1; i < size / 2 + 1; i++) {\r\n for (int j = 0; j < i - 1; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\" \");\r\n for (int j = 0; j < size - 2 * i + 1; j++) {\r\n sb.append(\"_\");\r\n }\r\n\r\n sb.append(\" \");\r\n for (int j = 0; j < i; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\"\\n\");\r\n }\r\n\r\n // middle\r\n for (int j = 0; j < size - 4; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\" < \");\r\n for (int j = 0; j < size - 4; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\"\\n\");\r\n\r\n \r\n int k = 0;\r\n // half through end\r\n for (int i = size / 2 + 1; i < size; i++, k++) {\r\n for (int j = i; j < size; j++) {\r\n sb.append(\"|\");\r\n }\r\n for (int j = 0; j < i - 1 + k; j++) {\r\n sb.append(\"_\");\r\n\r\n }\r\n\r\n for (int j = i; j < size; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\"\\n\");\r\n }\r\n //sb.setLength(sb.length() - 1);\r\n return sb.toString();\r\n }\r\n */\r\n else {\r\n StringBuffer sb = new StringBuffer(); \r\n return sb.toString();\r\n }\r\n \r\n\t}", "public String getInTime3() {\n\treturn inTime3;\n }", "public long mo9743h() {\n return mo9784w();\n }", "private String intTime(long l){\r\n String s=\"\";\r\n s+=(char)(((l/1000)/60)+'0')+\":\"+(char)((((l/1000)%60)/10)+'0')+(char)((((l/1000)%60)%10)+'0'); \r\n return s;\r\n }", "@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }", "public void mo21788M() {\n }", "private int calcOrderDelay()\r\n {\r\n int frameDelay = 0;\r\n if (totalSecondsElapsed >= 120)\r\n {\r\n frameDelay = 2;\r\n }\r\n else if (totalSecondsElapsed >= 90)\r\n {\r\n frameDelay = 3;\r\n }\r\n else if (totalSecondsElapsed >= 60)\r\n {\r\n frameDelay = 4;\r\n }\r\n else if (totalSecondsElapsed >= 45)\r\n {\r\n frameDelay = 5;\r\n }\r\n else if (totalSecondsElapsed >= 30)\r\n {\r\n frameDelay = 6;\r\n }\r\n else if (totalSecondsElapsed >= 15)\r\n {\r\n frameDelay = 7;\r\n }\r\n else if (totalSecondsElapsed >= 0)\r\n {\r\n frameDelay = 8;\r\n }\r\n \r\n return frameDelay * 60;\r\n }", "private int getDurationInBlocks(long duration) {\n\t\tlong minute = 1000 * 60;\n\t\t// If the duration is less than a single block, return 1\n\t\tif (duration < MINUTES_PER_BLOCK * minute) {\n\t\t\treturn 1;\n\t\t}\n\t\tlong hour = 60 * minute;\n\t\tlong day = 24 * hour;\n\t\tlong week = 7 * day;\n\t\tint blocks = 0;\n\n\t\tif (duration > week) {\n\t\t\tblocks += (duration / week) * 7 * 24 * BLOCKS_IN_HOUR;\n\t\t\tduration = duration % week;\n\t\t}\n\t\tif (duration > day) {\n\t\t\tblocks += (duration / day) * 24 * BLOCKS_IN_HOUR;\n\t\t\tduration = duration % day;\n\t\t}\n\t\tif (duration > hour) {\n\t\t\tblocks += (duration / hour) * BLOCKS_IN_HOUR;\n\t\t\tduration = duration % hour;\n\t\t}\n\t\tif (duration > minute) {\n\t\t\tblocks += (duration / minute) / MINUTES_PER_BLOCK;\n\t\t}\n\t\treturn blocks;\n\t}", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickGeneric(13, 48, (-2212.2532659315993));\n assertEquals(\"id=13 RTVolume=-2212.2532659315993\", string0);\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public int mo36g() {\n return 4;\n }", "int getTimesPlayed (String song_id);", "private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }", "public int getTurnaround (){\n return finishingTime-arrival_time;\n }", "protected String getBottomCenterMessage() {\n\t\treturn \"Time So Far: \" + (gameTime / 1000) + \" seconds\";\n\t}", "static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }" ]
[ "0.5538708", "0.553845", "0.5413502", "0.53663665", "0.5335435", "0.52922636", "0.5289049", "0.52884716", "0.52876884", "0.52830285", "0.52621293", "0.52098584", "0.5171245", "0.5149491", "0.5143176", "0.51408184", "0.51374036", "0.5132353", "0.51242346", "0.50667095", "0.50204664", "0.5017174", "0.5001588", "0.5000629", "0.49920937", "0.49882475", "0.49841532", "0.49836022", "0.49803248", "0.49786255", "0.49682578", "0.49614823", "0.4958774", "0.49574068", "0.49553388", "0.49536252", "0.49515462", "0.49505076", "0.4945395", "0.49436074", "0.49372828", "0.4932817", "0.49253932", "0.49200034", "0.4905231", "0.4903042", "0.49028447", "0.48901927", "0.48901927", "0.4886666", "0.48844138", "0.48777363", "0.48740822", "0.4873394", "0.48660424", "0.48632893", "0.48581213", "0.48563874", "0.48535934", "0.4852455", "0.48492262", "0.48489994", "0.48416817", "0.4835506", "0.48266402", "0.48243645", "0.4818184", "0.48142207", "0.4813906", "0.48136783", "0.48094943", "0.48052332", "0.48041594", "0.48024407", "0.4798618", "0.47955847", "0.47948158", "0.47921106", "0.479054", "0.47855192", "0.47846898", "0.47842813", "0.47819296", "0.4780074", "0.47772163", "0.47744465", "0.4770068", "0.47651008", "0.47649252", "0.4763375", "0.47596338", "0.47561684", "0.4756115", "0.4755298", "0.47498614", "0.47490236", "0.47489452", "0.47479007", "0.4744792", "0.47402817", "0.47383028" ]
0.0
-1
/ 354: / 355:
public void setListaTipoComprobanteSRI(List<TipoComprobanteSRI> listaTipoComprobanteSRI) /* 356: */ { /* 357:345 */ this.listaTipoComprobanteSRI = listaTipoComprobanteSRI; /* 358: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }", "@Test\n public void testSplitTime(){\n \tCountDownTimer s = new CountDownTimer();\n \ts.splitTime(3975);\n \tassertEquals(s.toString(), \"1:06:15\");\n \t\n \ts.splitTime(45);\n \tassertEquals(s.toString(), \"0:00:45\");\n \t\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateNewsBulletin(11, 13, \"E{Iw-^%H:1$e/\", \"LW)W-|=b,lie*CW\");\n assertEquals(\"MsgId=11 :: MsgType=13 :: Origin=LW)W-|=b,lie*CW :: Message=E{Iw-^%H:1$e/\", string0);\n }", "private String extractHostFromDBUrl(String url) throws Exception {\n\t\tint start = url.indexOf(\"sid=\") + 4;\n\t\tif (start > 3) {\n\t\t\tint stop = url.indexOf(\")\", start);\n\t\t\tif (stop > -1) {\n\t\t\t\treturn url.substring(start, stop);\n\t\t\t}\n\t\t} else {\n\t\t\tlog.warn(\"Try to extract sid from short url\");\n\t\t\tstart = url.lastIndexOf(\":\") + 1;\n\t\t\tif (start > 0) {\n\t\t\t\treturn url.substring(start, url.length());\n\t\t\t}\n\t\t}\n\t\tthrow new Exception(\"Unable to extract the SID from the URL \" + url);\n\t}", "public void testYourFifthPartition() {\n\tSystem.out.print(\"\\nTesting Fifth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:1/a?key=value\", true); // domain + port + path + query\n executeTestPrintResult(\"http://abc.com/a?key=value\", true); // domain + path + query\n executeTestPrintResult(\"http://abc.com:1/a\", true); // domain + port + path\n executeTestPrintResult(\"http://abc.com:1?key=value\", true); // domain + port + query\n\n executeTestPrintResult(\"http://abc.com/a/b:80\", false); // domain + path + port\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c\", false); // domain + query + path\n executeTestPrintResult(\"http://abc.com?key=value:80\", false); // domain + query + port\n executeTestPrintResult(\"http://abc.com:1?key=value/a/b/c\", false); // domain + port + query + path\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c:80\", false); // domain + query + path + port\n executeTestPrintResult(\"http://abc.com?key=value:80/a/b/c\", false); // domain + query + port + path\n executeTestPrintResult(\"http://abc.com/a/b/c:80?key=value\", false); // domain + path + port + query\n executeTestPrintResult(\"http://abc.com/a/b/c?key=value:80\", false); // domain + path + query + port\n\t \n }", "@Test(timeout = 4000)\n public void test56() throws Throwable {\n String string0 = SQLUtil.normalize(\")]*/f/f2Nx{fI.* \", false);\n assertEquals(\") ] */ f / f2Nx { fI.*\", string0);\n }", "@Test\n\tpublic void testIPV6WithPortAndUserinfo() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://brett@[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(\"brett\", uri.getUserinfo());\n\t}", "@Test\n\tpublic void testIPV4WithPortAndUserInfo() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://brett@192.168.91.1:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"192.168.91.1\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(\"brett\", uri.getUserinfo());\n\t}", "private static String formatTime(String time) {\n\t\treturn String.format(\"%s:%s\", time.substring(0, 2), time.substring(2));\n\t}", "public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }", "public final String m592n(Context context) {\r\n C0163a.m590o(context.getApplicationContext());\r\n int i = -1;\r\n StringBuilder stringBuilder = new StringBuilder();\r\n try {\r\n if (Integer.parseInt(VERSION.SDK) > 8) {\r\n i = Camera.getNumberOfCameras();\r\n }\r\n } catch (Throwable th) {\r\n }\r\n for (int i2 = 0; i2 < i; i2++) {\r\n String format;\r\n if (i2 == 0) {\r\n format = String.format(Locale.ENGLISH, \"%1$d:%2$s\", new Object[]{Integer.valueOf(i2), m568a(context, i2)});\r\n } else {\r\n format = String.format(Locale.ENGLISH, \"#%1$d:%2$s\", new Object[]{Integer.valueOf(i2), m568a(context, i2)});\r\n }\r\n stringBuilder.append(format);\r\n }\r\n return stringBuilder.toString();\r\n }", "private static String m39043k(Uri uri) {\n if (uri == null) {\n return null;\n }\n return uri.getScheme();\n }", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "public static String getParsedColonKey(String input) {\t\n\t\tif (input == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn input.split(\":\")[0];\n\t}", "@Test\r\n public void testRegexp() throws Exception {\n\r\n String a = \"a/b/100/test\";\r\n\r\n Pattern pattern = Pattern.compile(\".+/(\\\\d+)/test\");\r\n\r\n System.out.println(parseIdFromUriPath(a, pattern));\r\n\r\n }", "public final void mT__54() throws RecognitionException {\n try {\n int _type = T__54;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalSpeADL.g:52:7: ( ':' )\n // InternalSpeADL.g:52:9: ':'\n {\n match(':'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Test\n\tpublic void testIPV4WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://192.168.91.1:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"192.168.91.1\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "private static int getPort(final String host) {\n final int colonIndex = host.indexOf(':');\n if (colonIndex == -1) {\n return 5432;\n }\n\n final String portString = host.substring(colonIndex + 1);\n try {\n return Integer.valueOf(portString);\n } catch (final NumberFormatException exception) {\n return 5432;\n }\n }", "@Test(timeout = 4000)\n public void test45() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateMktDepthL2(2146794261, 927, \"@\", 2146889800, (-180), 2146794261, (-1940));\n assertEquals(\"updateMktDepth: 2146794261 927 @ 2146889800 -180 2.146794261E9 -1940\", string0);\n }", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "private static int getNodeTime(String node) {\n int offSet = 4;\n return (int) node.toCharArray()[0] - offSet;\n }", "String getPartWithPort();", "@Override\n\tpublic String toString() {\n\t\treturn ip + \" \"+ times;\n\t}", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n String string0 = SQLUtil.normalize(\"^`-{}\\\"8M,,3\", true);\n assertEquals(\"^ ` - { } \\\"8M,,3\\\"\", string0);\n }", "private String normalizeDiseaseId(String diseaseId) {\n String[] tokens = diseaseId.split(\":\");\n if (\"ORPHANET\".equals(tokens[0])) {\n diseaseId = \"ORPHA:\" + tokens[1];\n }\n return diseaseId;\n }", "String canonHr(String s) {\n List<String> l = StringUtil.breakAt(s, \":\");\n if (l.size() == 2) {\n return l.get(0) + \":\" + l.get(1).toUpperCase();\n }\n return s.toUpperCase();\n }", "public static void main2(String args[]) {\n String s1 = \"2009-03-10T16:08:55.184 -0600 [ 16621850][ 162233] INFO - thredds.server.opendap.NcDODSServlet - Remote host: 128.117.140.71 - Request: \\\"GET /thredds/dodsC/model/NCEP/NAM/CONUS_80km/NAM_CONUS_80km_20090309_0000.grib1.dods?Geopotential_height%5B7:1:7%5D%5B0:10:10%5D%5B0:1:64%5D%5B0:1:92%5D HTTP/1.1\\\"\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s1, p1);\r\n\r\n // 1 2 3 4 5 6 7 8 9\r\n String s2 = \"2009-03-10T16:08:54.617 -0600 [ 16621283][ 162230] INFO - thredds.server.opendap.NcDODSServlet - Request Completed - 200 - -1 - 47\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s2, p2);\r\n\r\n// Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n Pattern p3 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - (.*)\");\r\n\r\n show(s1, p3);\r\n show(s2, p3);\r\n\r\n }", "protected String mo3406c() {\n return \"Minute\";\n }", "public static String getParsedColonValue(String input){\n\t\tif (input == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn input.split(\":\")[1];\n\t}", "String parseUID(long uid);", "public String Formatting(){\n\t\t\t return String.format(\"%03d-%02d-%04d\", getFirstSSN(),getSecondSSN(),getThirdSSN());\n\t\t }", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "public void testYourSecondPartition() {\n\tSystem.out.print(\"\\nTesting Second Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:65535\", true); // max allowed port number\n executeTestPrintResult(\"http://abc.com:0\", true); // min allowed port number\n executeTestPrintResult(\"http://abc.com:1\", true); // 1 digit port number \n executeTestPrintResult(\"http://abc.com:99\", true); // 2 digit port number \n executeTestPrintResult(\"http://abc.com:999\", true); // 3 digit port number \n executeTestPrintResult(\"http://abc.com:1000\", true); // 4 digit port number \n executeTestPrintResult(\"http://abc.com:65536\", false); // port number too high \n executeTestPrintResult(\"http://abc.com:-1\", false); // negative port\n executeTestPrintResult(\"http://abc.com:a\", false); // letter in port\n executeTestPrintResult(\"http://abc.com:\", false); // empty port \n executeTestPrintResult(\":123\", false); // no domain \n }", "@Test(timeout = 4000)\n public void test66() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String string0 = SQLUtil.normalize(\"/*n9mv+\", false);\n assertEquals(\"/* n9mv +\", string0);\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n String string0 = SQLUtil.normalize(\"z'sD:aOZZhMnh\", false);\n assertEquals(\"z 'sD:aOZZhMnh'\", string0);\n }", "public static String parseHostPort(String fullName){\n\t\t\n\t\tString newName = fullName.trim();\n\t\tString name = \"\";\n\t\tint indexOfSlash1 = newName.indexOf(\"/\");\n\t\tint indexOfColon = newName.indexOf(\":\",indexOfSlash1);\n\t\tint indexOfSlash2 = newName.indexOf(\"/\", indexOfColon);\n\t\tString host = newName.substring(indexOfSlash1+2, indexOfColon);\n\t\tString port = newName.substring(indexOfColon+1,indexOfSlash2);\n\t\tif(indexOfSlash2 +1 < fullName.length())\n\t\t\t name = newName.substring(indexOfSlash2+1);\n\t\tString finalString = host+\" \"+port+\" \"+name;\n\t\treturn finalString;\n\t}", "private void deliver(String mb) {\n\t\t\tString[] sourceIdAndMsgAndTime = mb.split(\" \", 3);\n\t\t\tSystem.out.println(\"Received \"+ sourceIdAndMsgAndTime[1] + \" from process \"+ sourceIdAndMsgAndTime[0] +\", system time is ­­­­­­­­­­­­­\" + sourceIdAndMsgAndTime[2]);\n\t\t\t\n\t\t}", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSnapshotEnd((-1165));\n assertEquals(\"id=-1165 =============== end ===============\", string0);\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n String string0 = SQLUtil.normalize(\"alter sessionv)y/b{p(k{:tw\", false);\n assertEquals(\"alter sessionv) y / b { p (k { : tw\", string0);\n }", "String mo10312id();", "public abstract void incorrectlyParsedUtterance(long ms);", "private String m81849m() {\n String str;\n if (this.f58083o) {\n str = UrlUtil.m84496b(UrlUtil.m84494a(this.f58071c, C6969H.m41409d(\"G738BEA0FAD3C\")));\n } else {\n str = this.f58070b;\n }\n if (!TextUtils.isEmpty(str)) {\n this.f58072d = Uri.parse(str);\n }\n return str;\n }", "public abstract void correctlyParsedUtterance(long ms);", "public static String m34537a(long j) {\n Formatter format;\n if (j <= 0 || j >= LogBuilder.MAX_INTERVAL) {\n return \"00:00\";\n }\n long j2 = j / 1000;\n int i = (int) (j2 % 60);\n int i2 = (int) ((j2 / 60) % 60);\n int i3 = (int) (j2 / 3600);\n Formatter formatter = new Formatter(new StringBuilder(), Locale.getDefault());\n if (i3 > 0) {\n format = formatter.format(\"%d:%02d:%02d\", Integer.valueOf(i3), Integer.valueOf(i2), Integer.valueOf(i));\n } else {\n format = formatter.format(\"%02d:%02d\", Integer.valueOf(i2), Integer.valueOf(i));\n }\n return format.toString();\n }", "public static int parsePort(String url) {\n // rtmp://localhost:2035/foo/bar\n // Find first slash with colon\n int start = url.indexOf(\":/\");\n if (start == -1)\n return 0;\n\n // Second slash should be +1, so start 3 after for ://\n start = start + 3;\n int end = url.indexOf('/', start);\n\n // take everything up until the next slash for servername:port\n String snp = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // If IPv6 is in use, start looking after the square bracket.\n int delim = snp.indexOf(']');\n delim = (delim > -1) ? snp.indexOf(':', delim) : snp.indexOf(':');\n if (delim == -1)\n return 0;\n\n int port = 0;\n try {\n int p = Integer.parseInt(snp.substring(delim + 1));\n port = (p > 0) ? p : 0;\n } catch (Throwable t) {\n port = -1; // To denote that the url contained server.port token.\n }\n return port;\n }", "static String hashURL(String url){\n\t\treturn url.replace('/', 's').replace(':','c');\n\t}", "private static String m60359b(String str, String str2, String str3) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 4 + String.valueOf(str2).length() + String.valueOf(str3).length());\n sb.append(str);\n sb.append(\"|T|\");\n sb.append(str2);\n sb.append(\"|\");\n sb.append(str3);\n return sb.toString();\n }", "private Uri m2344g(String str) {\n return mo10091b(str, this.f2759a.mo9868F(), true);\n }", "@Test(timeout = 4000)\n public void test60() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader(pipedWriter0);\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n streamTokenizer0.nval = 752.0;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"752\", string0);\n }", "private String parseGroupNameD2K(String line) {\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tsb.append(tokens[0] + \".\");\n\t\tsb.append(tokens[1].replace(';', '_'));\n\t\ttry{\n\t\t\tsb.append(tokens[4].replace('#', '.'));\n\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t// do nothing\n\t\t}\n\t\treturn sb.toString();\n\t}", "public void testYourFourthPartition() {\n\tSystem.out.print(\"\\nTesting Fourth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com?\", false); // empty \n executeTestPrintResult(\"http://abc.com?key=value\", true); \n executeTestPrintResult(\"http://abc.com?a=1&b=2&c=3\", true); // arbitrary length, letters/digits \n executeTestPrintResult(\"http://abc.com?a=1+b=2\", false); // +\n executeTestPrintResult(\"http://abc.com?a\", false); // no value\n executeTestPrintResult(\"http://abc.com?=a\", false); // no key\n executeTestPrintResult(\"?key=value\", false); // no domain \n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "protected String parsePrimaryId(String uriTxt) {\n\t\tString id = null;\n\t\tint idx = uriTxt.lastIndexOf(QuickLinksAction.CHAR_SLASH);\n\t\tif (idx < uriTxt.length()) \n\t\t\tid = uriTxt.substring(idx+1);\n\t\treturn id;\n\t}", "private String formatTccId(TCC tcc) {\n\t\tString id = Integer.toString(tcc.getIdTCC());\n\t\twhile (id.length() < 5) {\n\t\t\tid = \"0\" + id;\n\t\t}\n\t\treturn id;\n\t}", "private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String string0 = SQLUtil.normalize(\";AS5U5EP/!f\", true);\n assertEquals(\"; AS5U5EP / ! f\", string0);\n \n System.setCurrentTimeMillis((-1L));\n System.setCurrentTimeMillis((-1L));\n String[] stringArray0 = new String[6];\n stringArray0[0] = \":curCharPos=\";\n stringArray0[1] = \":curCharPos=\";\n stringArray0[2] = \"; AS5U5EP / ! f\";\n stringArray0[3] = \":curCharPos=\";\n stringArray0[4] = \":curCharPos=\";\n stringArray0[5] = \":curCharPos=\";\n DBPrimaryKeyConstraint dBPrimaryKeyConstraint0 = new DBPrimaryKeyConstraint(defaultDBTable0, \":curCharPos=\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n String string1 = SQLUtil.constraintSpec(dBPrimaryKeyConstraint0, nameSpec0);\n assertEquals(\"CONSTRAINT :curCharPos= PRIMARY KEY (:curCharPos=, :curCharPos=, ; AS5U5EP / ! f, :curCharPos=, :curCharPos=, :curCharPos=)\", string1);\n }", "@Test(timeout = 4000)\n public void test55() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateAccountTime(\"yTci@Ca5ai_xH#X\");\n assertEquals(\"updateAccountTime: yTci@Ca5ai_xH#X\", string0);\n }", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "@Test\n public void doesNotThrowWhenRoutingKeyInvalid3() {\n String key = \"hi.-.live.odds_change.6b.sr:match.9536715\";\n\n parser.getRoutingKeyInfo(key);\n Assert.assertNotNull(parser);\n }", "public int getSnakeStartLength();", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }", "public String mo38889c() {\n String trim = this.f30736g0.getText().toString().trim();\n return trim.length() == 5 ? trim.substring(3, 5) : \"\";\n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "@Test(timeout = 4000)\n public void test48() throws Throwable {\n String string0 = EWrapperMsgGenerator.realtimeBar(1, 845L, 251L, (-2474L), 1521.6451568161, 845L, 0L, 1, 3197);\n assertEquals(\"id=1 time = 845 open=251.0 high=-2474.0 low=1521.6451568161 close=845.0 volume=0 count=3197 WAP=1.0\", string0);\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private String formatTime(int seconds){\n return String.format(\"%02d:%02d\", seconds / 60, seconds % 60);\n }", "@Test(timeout = 4000)\n public void test44() throws Throwable {\n String string0 = EWrapperMsgGenerator.accountDownloadEnd(\"6FL]:1rO^5$2j=[!jjK\");\n assertEquals(\"accountDownloadEnd: 6FL]:1rO^5$2j=[!jjK\", string0);\n }", "public void testYourThirdPartition() {\n\tSystem.out.print(\"\\nTesting Third Partition...\\n\");\n executeTestPrintResult(\"http://abc.com/\", true); // empty \n executeTestPrintResult(\"http://abc.com/a/b/c/1/2/3\", true); // arbitrary length, letters and digits\n executeTestPrintResult(\"http://abc.com/a/#b\", false); // invalid char \n executeTestPrintResult(\"http://abc.com/a/$b\", true); // $ is valid char \n executeTestPrintResult(\"http://abc.com/../b\", false); // invalid relative path\n executeTestPrintResult(\"/a/b/c\", false); // no domain \n }", "public void mo55254a() {\n }", "private String m25428h() {\n if (this.a == null) {\n return null;\n }\n Uri parse;\n Builder builder;\n String a = AdSettings.m6374a();\n if (a != null) {\n if (!a.isEmpty()) {\n a = String.format(\"https://www.%s.facebook.com/audience_network/server_side_reward\", new Object[]{a});\n parse = Uri.parse(a);\n builder = new Builder();\n builder.scheme(parse.getScheme());\n builder.authority(parse.getAuthority());\n builder.path(parse.getPath());\n builder.query(parse.getQuery());\n builder.fragment(parse.getFragment());\n builder.appendQueryParameter(\"puid\", this.a.m7645a());\n builder.appendQueryParameter(\"pc\", this.a.m7646b());\n builder.appendQueryParameter(\"ptid\", this.f19103e);\n builder.appendQueryParameter(\"appid\", this.f19107i);\n return builder.build().toString();\n }\n }\n a = \"https://www.facebook.com/audience_network/server_side_reward\";\n parse = Uri.parse(a);\n builder = new Builder();\n builder.scheme(parse.getScheme());\n builder.authority(parse.getAuthority());\n builder.path(parse.getPath());\n builder.query(parse.getQuery());\n builder.fragment(parse.getFragment());\n builder.appendQueryParameter(\"puid\", this.a.m7645a());\n builder.appendQueryParameter(\"pc\", this.a.m7646b());\n builder.appendQueryParameter(\"ptid\", this.f19103e);\n builder.appendQueryParameter(\"appid\", this.f19107i);\n return builder.build().toString();\n }", "public String getRoutingNo();", "private UUID uuidFromUri(URI uri) {\n Pattern pairRegex = Pattern.compile(\"\\\\p{XDigit}{8}-\\\\p{XDigit}{4}-\\\\p{XDigit}{4}-\\\\p{XDigit}{4}-\\\\p{XDigit}{12}\");\n Matcher matcher = pairRegex.matcher(uri.toString());\n String uuid = \"\";\n while (matcher.find()) {\n uuid = matcher.group(0);\n }\n return UUID.fromString(uuid);\n }", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n String string0 = SQLUtil.normalize(\"updat,ObjWct(\", false);\n assertEquals(\"updat, ObjWct (\", string0);\n }", "private void parseTriplet(String item) {\n int vertex;\n\n int first_slash = item.indexOf('/');\n if (first_slash == -1) {\n vertex = parseInteger(item);\n if (vertex < 0) {\n vertex += mLastVertexNumber;\n }\n mIndices.add(vertex);\n return;\n }\n // wait wait there are more indices in this line\n vertex = parseInteger(item.substring(0, first_slash));\n if (vertex < 0) {\n vertex += mLastVertexNumber;\n }\n mIndices.add(vertex);\n String leftover = item.substring(first_slash + 1, item.length());\n int second_slash = leftover.indexOf('/');\n if (second_slash == -1) {\n mTextureIndex.add(parseInteger(leftover));\n return;\n }\n if (second_slash == 0) {\n mNormalIndex.add(parseInteger(leftover.substring(1, leftover.length())));\n }\n }", "@Test\n\tpublic void test() throws InterruptedException {\n\t\tString firstTime = Time.main();\n\t\tString[] splitFirst = firstTime.split(\":\");\n\t\tThread.sleep(5000);\n\t\tString secondTime = Time.main();\n\t\tString[] splitSecond = secondTime.split(\":\");\n\t\t\n\t\t\n\t\tif(Integer.parseInt(splitFirst[2])>=55) //if first time was >= 55 seconds\n\t\t{\n\t\t\tassertEquals(Integer.parseInt(splitSecond[2]),(Integer.parseInt(splitFirst[2])+5)%60); //seconds should increase by 5 mod 60\n\n\t\t\tif(Integer.parseInt(splitFirst[1])==59) //if first time was 59 minutes\n\t\t\t{ \n\t\t\t\tassertTrue(splitFirst[1].equals(\"00\")); //reset to zero minutes\n\t\t\t\t\n\t\t\t\tif(Integer.parseInt(splitFirst[0])==23) //if first time was 23 hours\n\t\t\t\t\tassertTrue(splitFirst[0].equals(\"00\")); //reset to zero hours\n\t\t\t\telse //if first time is not 23 hours\n\t\t\t\t\tassertEquals(Integer.parseInt(splitFirst[0])+1, Integer.parseInt(splitSecond[0])); //hours should increase by 1\n\t\t\t}\n\t\t\telse //if first time was not 59 minutes\n\t\t\t{\n\t\t\t\tassertEquals(Integer.parseInt(splitFirst[1])+1, Integer.parseInt(splitSecond[1])); //minutes should increase by 1\n\t\t\t\tassertTrue(splitFirst[0].equals(splitSecond[0])); //hours should not change\n\t\t\t}\n\t\t}\n\t\telse //if first time was <= 55 seconds\n\t\t{\n\t\t\tassertEquals(Integer.parseInt(splitSecond[2]),(Integer.parseInt(splitFirst[2])+5)); //seconds should increase by 5\n\t\t\tassertTrue(splitFirst[1].equals(splitSecond[1])); //minutes should not change\n\t\t\tassertTrue(splitFirst[0].equals(splitSecond[0])); //hours should not change\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test53() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The database key of the entry being cross referenced. Any fields that are missing from the current record are inherited from the field being cross referenced.\");\n assertEquals(\"th databas key of th entr being cros refer. any field that ar mis from th cur record ar inherit from th field being cros refer.\", string0);\n }", "public int mo36g() {\n return 4;\n }", "public static String m18367b(int i, int i2) {\n if (i >= 0 && i2 > 0) {\n return i + Constants.ACCEPT_TIME_SEPARATOR_SERVER + i2;\n } else if (i > 0) {\n return i + Constants.ACCEPT_TIME_SEPARATOR_SERVER;\n } else if (i >= 0 || i2 <= 0) {\n return null;\n } else {\n return Constants.ACCEPT_TIME_SEPARATOR_SERVER + i2;\n }\n }", "public static String getPlaceDetailId(Uri uri) {\n\t\t\treturn uri.getLastPathSegment();\n\t\t}", "private static String normalizeWWN(String unpaddedWWN) {\n String wwn = StringUtils.leftPad(unpaddedWWN, 16, '0');\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < wwn.length(); i += 2) {\n String slice = StringUtils.substring(wwn, i, i + 2);\n if (sb.length() > 0) {\n sb.append(':');\n }\n sb.append(slice);\n }\n return sb.toString();\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }", "public abstract void partiallyParsedUtterance(long ms);", "public static String getSleepingSnake(int size)\r\n\t{\r\n if (size == 0) {\r\n\t\t return \"Size needs to be a positive integer\\n\";\r\n }\r\n if (size == 4) {\r\n return \">____ \\n ___ |\\n| > ||\\n||__||\\n|____|\\n\";\r\n }\r\n if (size == 7) {\r\n return \">_______\\n ______ |\\n| ____ ||\\n|| __ |||\\n||| < |||\\n|||___|||\\n||_____||\\n|_______|\\n\";\r\n }\r\n /*\r\n else if (size % 2 != 0) {\r\n StringBuffer sb = new StringBuffer(); \r\n\r\n // first line\r\n sb.append(\">\");\r\n for (int j = 0; j < size; j++) {\r\n sb.append(\"_\");\r\n }\r\n //sb.append(\" \\n\");\r\n sb.append(\"\\n\");\r\n \r\n // second through half\r\n for (int i = 1; i < size / 2 + 1; i++) {\r\n for (int j = 0; j < i - 1; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\" \");\r\n for (int j = 0; j < size - 2 * i + 1; j++) {\r\n sb.append(\"_\");\r\n }\r\n\r\n sb.append(\" \");\r\n for (int j = 0; j < i; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\"\\n\");\r\n }\r\n\r\n // middle\r\n for (int j = 0; j < size - 4; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\" < \");\r\n for (int j = 0; j < size - 4; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\"\\n\");\r\n\r\n \r\n int k = 0;\r\n // half through end\r\n for (int i = size / 2 + 1; i < size; i++, k++) {\r\n for (int j = i; j < size; j++) {\r\n sb.append(\"|\");\r\n }\r\n for (int j = 0; j < i - 1 + k; j++) {\r\n sb.append(\"_\");\r\n\r\n }\r\n\r\n for (int j = i; j < size; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\"\\n\");\r\n }\r\n //sb.setLength(sb.length() - 1);\r\n return sb.toString();\r\n }\r\n */\r\n else {\r\n StringBuffer sb = new StringBuffer(); \r\n return sb.toString();\r\n }\r\n \r\n\t}", "@Test\n\tpublic void checkNumberOfDifferentRoutes() {\n\t\tassertEquals(Trains.numberDifferentRoutes(\"C\",\"C\",30), 7);\n\t}", "private final void m134908d(String str) {\n if (!TextUtils.isEmpty(str)) {\n String str2 = C6969H.m41409d(\"G738BDC12AA7FAF3BE7039107E4B48CDA6C8ED71FAD7F\") + str + '/';\n VideoXOnlineLog.f101073b.mo121420a(C6969H.m41409d(\"G6887D15AAA23AE3BA61A9F58FBE6838D2998C8\"), str2);\n MQTTClient a = MQTTClientManager.m55413a(C6969H.m41409d(\"G4DA6F33B8A1C9F16C522B96DDCD1\"));\n if (a != null) {\n ProtoAdapter<EventMessage> gVar = EventMessage.f96677a;\n C32569u.m150513a((Object) gVar, C6969H.m41409d(\"G4C95D014AB1DAE3AF50F974DBCC4E7F659B7F028\"));\n f97550g = a.mo57249a(str2, new MQTTWirePbConverter(gVar));\n MQTTTopic<EventMessage> oVar = f97550g;\n if (oVar == null) {\n C32569u.m150511a();\n }\n oVar.mo57278a((MQTTTopicListener<EventMessage>) f97552i, true);\n MQTTTopic<EventMessage> oVar2 = f97550g;\n if (oVar2 == null) {\n C32569u.m150511a();\n }\n oVar2.mo57274a(MQTTQosLevel.LEVEL_1, true);\n }\n }\n }", "public static void main(String[] args) throws JsonProcessingException {\n\t\tString txt= \"5C:A8:6A:ED:65:2D,B4:82:C5:00:22:DB,B4:82:C5:51:C2:30,\\\"UREC\\\",2097154,4,14,-59,6,2,Deauth by Inactivity or Many Retries,1517391829738\";\n\t\tString[] spliturl = txt.split(\",\");\n\t\tSystem.out.println(spliturl[0]);\n\t\tSystem.out.println(spliturl[4]);\n\t\tSystem.out.println(spliturl[5]);\n\t}", "protected String getMicrotimingKey(WebContext context) {\n switch (this) {\n case IP:\n return context.getRemoteIP().toString();\n case BOTH:\n return context.getRemoteIP().toString() + \" <-- \" + context.microtimingKey;\n }\n\n // URI is the default:\n return context.microtimingKey;\n }", "private BNGLError parseError(String s)\n\t{\n\t\ts = s.substring(s.indexOf(\" \")).trim();\n\t\t\n\t\t// get the line number\n\t\tint line = Integer.parseInt(s.substring(0, s.indexOf(\":\")));\n\t\t\n\t\t// chomp \"12:2 \"\n\t\ts = s.substring(s.indexOf(\" \")).trim();\n\t\t\n\t\treturn new BNGLError(m_file, line , s);\n\t}", "@Test\n public void allSpareAndLast_2_Expected_111(){\n String input = \"1/1/1/1/1/1/1/1/1/1/2\";\n assertEquals(game.scoreOfGame(input),111);\n }", "public static void main(String[] args) {\n\t\tString url = \"http://hell.com/?pw=8936,id='fsfds'\";\n\t\t\n\t\tint location = url.indexOf(\"pw=\");\n\t\tString str2 = url.substring(location+7);\n\t\tString str1 = url.substring(0,location+3);\n\t\tSystem.out.println(str1+\"****\"+str2);\n\t\t\n\t}", "private String extractHourMinute(String dateTime)\n {\n String[] aux = dateTime.split(\"T\");\n String[] auxTime = aux[1].split(\":\");\n\n return auxTime[0] + \":\" + auxTime[1];\n }" ]
[ "0.4993004", "0.49406692", "0.4936837", "0.49091208", "0.48352754", "0.48006696", "0.47893724", "0.4772339", "0.47558787", "0.4740975", "0.472775", "0.4726242", "0.46908274", "0.46864718", "0.46853828", "0.46845725", "0.4683718", "0.4652108", "0.4645743", "0.46259803", "0.4614709", "0.46097335", "0.46061453", "0.45886773", "0.45738664", "0.4572305", "0.45706853", "0.45518184", "0.45386496", "0.45367268", "0.45367178", "0.45357764", "0.45213586", "0.45122707", "0.45080817", "0.4503601", "0.45016503", "0.44956106", "0.4492219", "0.4488345", "0.44855028", "0.4485222", "0.44843313", "0.44829687", "0.44811586", "0.4480936", "0.44687548", "0.4459305", "0.4455209", "0.444432", "0.44424772", "0.44419152", "0.4436906", "0.44339818", "0.4432777", "0.44277698", "0.4424321", "0.44228467", "0.44161266", "0.44062233", "0.44011208", "0.43987134", "0.4393025", "0.43913406", "0.43853876", "0.4384221", "0.43833467", "0.43768913", "0.43768913", "0.43768913", "0.43768913", "0.43768913", "0.43768913", "0.43768913", "0.4366969", "0.43663168", "0.436496", "0.43615994", "0.43601444", "0.43598297", "0.43540093", "0.43533638", "0.43514544", "0.4350701", "0.43459773", "0.43429565", "0.43399265", "0.4338109", "0.43294236", "0.43293902", "0.43293178", "0.43281567", "0.4325627", "0.43250614", "0.43248925", "0.4324857", "0.4324693", "0.4319233", "0.43162167", "0.43129712", "0.431266" ]
0.0
-1
/ 359: / 360:
public DataTable getDtDetalleFacturaProveedorSRI() /* 361: */ { /* 362:349 */ return this.dtDetalleFacturaProveedorSRI; /* 363: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}", "void setTime() {\n\t\tCalendar now = Calendar.getInstance();\n\t\tangleHours = (270 + 30 * now.get(now.HOUR) + now.get(now.MINUTE) / 2 ) % 360;\n\t\tangleMinutes = (270 + 6 * now.get(now.MINUTE)) % 360;\n\t\tangleSeconds = (270 + 6 * now.get(now.SECOND)) % 360;\n\t}", "private static double m29994c(double d, double d2) {\n return ((d - d2) + 360.0d) % 360.0d;\n }", "int getPaceSeconds() {\r\n\t\tint m = getContents(minutes);\r\n\t\tint s = getContents(seconds);\r\n\t\treturn 60*m +s;\r\n\t}", "private static double m29995d(double d, double d2) {\n return ((d2 - d) + 360.0d) % 360.0d;\n }", "private static double convertBearingTo360(double dBearing){\n\t\t\n\t\t//dOut = output\n\t\t\n\t\tdouble dOut;\n\t\t\n\t\tdOut = dBearing;\n\t\t\n\t\twhile(dOut>360){\n\t\t\tdOut=dOut-360.;\n\t\t}\n\t\twhile(dOut<0){\n\t\t\tdOut=dOut+360.;\n\t\t}\n\t\t\n\t\treturn dOut;\n\t}", "private int normalizeTime() {\n int currentTimeSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // The graphing interval in minutes\n // TODO not hardcoded :3\n int interval = 30;\n\n // calculate the devisor denominator\n int denom = interval * 60;\n\n return (int) Math.round((currentTimeSeconds - (denom / 2d)) / denom) * denom;\n }", "public static double reduce360Degrees(double degrees){\n return degrees % 360;\n }", "@org.junit.Test\n public void testTicksForDesiredAngle90From540() {\n int resultsTicks = SwerveDriveMath.ticksForDesiredAngle(testConfig,540, 90);\n\n // Shortest path is to go left 90 (360 + 90 = 460)\n assertEquals(450, resultsTicks);\n }", "public double getHourAngle(Coordinates c, long time) throws AstrometryException;", "public static double to_360(double deg) {\n return modulo(deg,360);\n }", "double getHeadingDiff(double init_h) {\n double curr_h = getHeading();\n double diff_h = init_h - curr_h;\n if( diff_h>=360.0 ) diff_h -= 360.0;\n else if( diff_h<=-360.0 ) diff_h += 360.0;\n return diff_h ;\n }", "public double getRotRms() {\n\t\treturn 3600.0 * Math.sqrt(1000.0 * rotInt / (double) (updateTimeStamp - startTime));\n\t}", "int getTtiSeconds();", "static double angleClock(int hour, int minutes) {\r\n\r\n // **** compute hour hand angle ****\r\n // double h = hour * (360.0 / 12.0);\r\n double h = hour * 30.0;\r\n\r\n // **** adjust it by the number of minutes ****\r\n // h += minutes * (30.0 / 60.0);\r\n h += minutes * 0.5;\r\n\r\n // **** ****\r\n if (h > 360.0)\r\n h -= 360.0;\r\n\r\n // ???? ????\r\n System.out.println(\"angleClock <<< h: \" + h);\r\n\r\n // **** compute minute hand angle ****\r\n // double m = minutes * (360.0 / 60);\r\n double m = minutes * 6.0;\r\n\r\n // ???? ????\r\n System.out.println(\"angleClock <<< m: \" + m);\r\n\r\n // **** compute difference in angles ****\r\n double a = Math.abs(h - m);\r\n\r\n // ???? ????\r\n System.out.println(\"angleClock <<< a: \" + a);\r\n\r\n // **** return the smallest angle ****\r\n return a <= 180.0 ? a : 360.0 - a;\r\n }", "private int toTime(int i) {\n int count = 0;\n\n //hours units\n count += toLeds((i / 6000) % 10);\n //hours tens\n count += toLeds(((i / 6000) % 100) / 10);\n\n //minutes units\n count += toLeds((i / 60) % 10);\n //minutes tens\n count += toLeds(((i / 60) % 100) / 10);\n\n //seconds units\n count += toLeds((i % 60) % 10);\n //seconds tens\n count += toLeds(((i % 60) % 100) / 10);\n\n return count;\n }", "void milestone4(int inputSeconds){\n int days = inputSeconds / 86400;\n int seconds = inputSeconds % 86400;\n int hours = seconds / 3600;\n seconds = seconds % 3600;\n int minutes = seconds / 60;\n seconds = seconds % 60;\n\n System.out.println(\"Day/s: \" + days);\n System.out.println(\"Hour/s: \" + hours);\n System.out.println(\"Minute/s: \" + minutes);\n System.out.println(\"Second/s: \" + seconds);\n }", "private static double radToDeg(float rad)\r\n/* 30: */ {\r\n/* 31:39 */ return rad * 180.0F / 3.141592653589793D;\r\n/* 32: */ }", "public static int getTimeSeconds() {\n return Atlantis.getBwapi().getFrameCount() / 30;\n }", "@Override\n public int calculerPerimetre() {\n return (int)(rayon * 2 * Math.PI);\n }", "private float angularRounding(float input) {\n if (input >= 180.0f) {\n return input - 360.0f;\n } else if (input <= -180.0f) {\n return 360 + input;\n } else {\n return input;\n }\n }", "private KilometersPerHour() {}", "double normalizeHeading(double h) {\n double nh = h;\n if( h>-180 && h<180 ) {\n } else if( h <= -180 ) {\n nh = h+360;\n } else if( h > 180 ) {\n nh = h-360;\n }\n return nh;\n }", "private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) ((int) (j - ((f / 100.0f) * j))));\n }", "private static int degreesToTicks(double degrees){\r\n double temp = degrees * (1086 / 90);\r\n int ticks = (int)temp;\r\n return ticks;\r\n }", "public float getFrameRate() { return 1000f/_interval; }", "public double getCircleTime();", "static long getSecondsPart(Duration d) {\n long u = d.getSeconds() % 60;\n\n return u;\n }", "public double getRotInt() {\n\t\treturn 3600.0 * rotInt;\n\t}", "public double perimetre()\n\t{\n\t\treturn 2*Math.PI*rayon;\n\t}", "public double getSecs( );", "@org.junit.Test\n public void testTicksForDesiredAngle90From0() {\n int resultsTicks = SwerveDriveMath.ticksForDesiredAngle(testConfig,0, 90);\n assertEquals(90, resultsTicks);\n }", "private static double degToRad(float deg)\r\n/* 25: */ {\r\n/* 26:32 */ return deg * 3.141592653589793D / 180.0D;\r\n/* 27: */ }", "public abstract void tilt(long ms);", "private int[] getAveragePace(){\n timeElapsed = SystemClock.elapsedRealtime() - timer.getBase();\n int seconds = (int)timeElapsed / 1000;\n\n double totalKilometer = totalDistanceMeters / 1000;\n double secondPerKilometer = seconds / totalKilometer;\n int minute = (int)(Math.floor(secondPerKilometer/60));\n int second = (int)secondPerKilometer % 60;\n\n return new int[] {minute,second};\n }", "private int m27465c(int i) {\n double d = (double) this.f25261H;\n double cos = Math.cos(Math.toRadians((double) i));\n double d2 = (double) this.f25261H;\n Double.isNaN(d2);\n double d3 = cos * d2;\n Double.isNaN(d);\n return (int) (d - d3);\n }", "long duration();", "public int getSeconds(){\n return (int) (totalSeconds%60);\n }", "@Test public void shouldGive180MinFor650cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 3 * 60 /*minutes*/ , rs.calculateTime(650) ); \r\n }", "private double calculaPerimetro(){\r\n double perimetro;\r\n perimetro=(float) ((2*(cir.getY()-cir.getX()))*Math.PI);\r\n return perimetro;\r\n }", "public void mo5969f() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{0.0f, -((float) C1413m.f5711i.getHeight())}).setDuration(350);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.55f, 0.35f, 0.2f, 0.1f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}).setDuration(350);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5386F, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5384D, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5385E, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n this.f5384D.getTexView().setText(getResources().getString(R.string.pause));\n duration.addListener(new C1298Va(this));\n }", "public int delta()\r\n\t{\r\n\t\treturn smooth ? (resolution / fps) : duration;\r\n\t}", "public float getTimeSeconds() { return getTime()/1000f; }", "private long caclFrameTime(long frameTime, long it, long lastFrameTime) {\n\t\t\tlong currentFrameTime;\n\t\t\tif (it > ALPHA)\n\t\t\t\tcurrentFrameTime = (ALPHA * frameTime + lastFrameTime)\n\t\t\t\t\t\t/ (ALPHA + 1);\n\t\t\telse\n\t\t\t\tcurrentFrameTime = (it * frameTime + lastFrameTime) / (it + 1);\n\t\t\treturn currentFrameTime;\n\t\t}", "@Test public void shouldGive240MinFor950cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 4 * 60 /*minutes*/ , rs.calculateTime(950) ); \r\n }", "public double readClock()\n {\n\tif (frameByFrameClock) {\n\t return frameNumber * (1/30.0f);\n\t} else {\n\t long elapsed;\n\t \n\t if (drawAnimation.value) {\n\t\t// Time during animation\n\t\telapsed = System.currentTimeMillis() - startTime;\n\t } else {\n\t\t// Time during pause\n\t\telapsed = pauseTime - startTime;\n\t }\n\t \n\t return elapsed / 1000.0f;\n\t}\n }", "private static float m590o(Context context) {\r\n DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\r\n Point point = new Point(displayMetrics.widthPixels, displayMetrics.heightPixels);\r\n return ((float) point.y) / ((float) point.x);\r\n }", "public abstract long toSeconds(long duration);", "private String convertToDuration(Long songDuration){\n long seconds = songDuration/1000;\n long minutes = seconds / 60;\n seconds = seconds % 60;\n return minutes +\":\"+seconds;\n }", "public float perimetro(){\r\n return 2*(float)Math.PI*radio;\r\n }", "public long getSessionDuration(){\n return (currentTime-startTime)/1000;\n }", "public static float map180to360(float angle) {\n return (angle + 360) % 360;\n }", "public static String getDurationString(long minutes, long seconds) {\n if(minutes>=0 && (seconds >=0 && seconds<=59)){\n// minutes = hours/60;\n// seconds = hours/3600;\n long hours = minutes / 60;\n long remainingMinutes = minutes % 60;\n\n return hours + \" h \" + remainingMinutes + \"m \" + seconds + \"s\";\n }\n else\n\n {\n return \"invalid value\";\n }\n }", "protected abstract float getFrameTimeNormalAnimation();", "private double AdjustDegree(double value)\n\t{\n\t\tif(value > 360.0)\n\t\t{\n\t\t\twhile (value > 360.0)\n\t\t\t{\n\t\t\t\tvalue -= 360.0;\n\t\t\t}\n\t\t}\n\t\tif(value < 0.0)\n\t\t{\n\t\t\twhile (value < 0.0)\n\t\t\t{\n\t\t\t\tvalue += 360.0;\n\t\t\t}\n\t\t}\n\t\treturn value;\n\t}", "private float interpolateRotation(float par1, float par2, float par3)\n {\n float f3;\n\n for (f3 = par2 - par1; f3 < -180.0F; f3 += 360.0F)\n {\n ;\n }\n\n while (f3 >= 180.0F)\n {\n f3 -= 360.0F;\n }\n\n return par1 + par3 * f3;\n }", "public float calculateCelestialAngle(long par1, float par3)\n {\n return 0.5F;\n }", "public void camera360() {\n\n }", "public static String trackDurationConverter(int secondsInput)\r\n {\r\n String result;\r\n if(secondsInput > 0)\r\n {\r\n String tmpSec = \"\"; \r\n int tmpMin = 0;\r\n\r\n String seconds = Integer.toString(secondsInput % 60);\r\n String minutes = Integer.toString((secondsInput/60) % 60);\r\n String hours = Integer.toString((secondsInput/60) / 60);\r\n\r\n seconds = Integer.parseInt(seconds) < 9 ? \"0\"+seconds : seconds;\r\n minutes = Integer.parseInt(minutes) < 9 ? \"0\"+minutes : minutes;\r\n hours = Integer.parseInt(hours) < 9 ? \"0\"+hours : hours;\r\n\r\n if(Integer.parseInt(seconds) <= 30)\r\n {\r\n tmpSec = \"30\";\r\n tmpMin = Integer.parseInt(minutes);\r\n }\r\n else\r\n {\r\n tmpSec = \"00\";\r\n tmpMin = Integer.parseInt(minutes) + 1;\r\n }\r\n String tmpResult = tmpMin < 9 ? \"0\"+Integer.toString(tmpMin) : Integer.toString(tmpMin);\r\n String typeOfTime = tmpResult.equals(\"00\") ? \" sec\" : \" min\";\r\n\r\n result = \"circa \" + tmpResult + \":\" + tmpSec + typeOfTime;\r\n return result;\r\n }\r\n else\r\n {\r\n return result = \"-1\";\r\n }\r\n }", "private long m18337c(long durationUs) {\n return (((long) this.f16625s) * durationUs) / 1000000;\n }", "static void viteza(int d, int h, int m, int s) {\n double secunde = s+60*m+3600*h;\n double minute = secunde/60;\n double ore = minute/60;\n\n double vitezaMPS = d/secunde;\n double vitezaKPH = d/1000.0/ore;\n double vitezaMPH = d/1609.0/ore;\n\n System.out.println(\"metri/secunda: \" + vitezaMPS);\n System.out.println(\"kilometri/ora: \" + vitezaKPH);\n System.out.println(\"mile/ora: \" + vitezaMPH);\n }", "public double getTime(int timePt);", "public int getMinuteFraction()\n {\n return (((int)(hours*100.0)%100)*60)/100;\n }", "public int getTurnaround (){\n return finishingTime-arrival_time;\n }", "public double getAltRms() {\n\t\treturn 3600.0 * Math.sqrt(1000.0 * altInt / (double) (updateTimeStamp - startTime));\n\t}", "@Override\n public int getTimeForNextTicInSeconds() {\n int seconds = Calendar.getInstance().get(Calendar.SECOND);\n return 60 - seconds;\n }", "public static double orientRoundup(double testOrient2){\n\t\tif (testOrient2 < 0) {testOrient2 += 360;}\n\t\tif (testOrient2 > 360) {testOrient2 -= 360;}\n\t\treturn testOrient2;\n\t}", "double getTimeOfFlight (double height)\n {\n return Math.sqrt((2*height)/g);\n }", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoFrameRate((-590));\n int int0 = homeEnvironment0.getVideoFrameRate();\n assertEquals((-590), int0);\n }", "float calcRotate(float rotateDeg, float anglePerIn)\n {\n return rotateDeg / anglePerIn;\n }", "@Override\n public int calculerSurface() {\n return (int)(Math.PI * carre(rayon));\n }", "public final long mo15021d() {\n if (this.f11892g != -9223372036854775807L) {\n return Math.min(this.f11894i, this.f11893h + ((((SystemClock.elapsedRealtime() * 1000) - this.f11892g) * ((long) this.f11888c)) / 1000000));\n }\n int playState = this.f11886a.getPlayState();\n if (playState == 1) {\n return 0;\n }\n long playbackHeadPosition = 4294967295L & ((long) this.f11886a.getPlaybackHeadPosition());\n if (this.f11887b) {\n if (playState == 2 && playbackHeadPosition == 0) {\n this.f11891f = this.f11889d;\n }\n playbackHeadPosition += this.f11891f;\n }\n if (this.f11889d > playbackHeadPosition) {\n this.f11890e++;\n }\n this.f11889d = playbackHeadPosition;\n return playbackHeadPosition + (this.f11890e << 32);\n }", "private int secToMin(int sec){\n return sec/60;\n }", "private float findRotation()\r\n\t{\r\n\t\t//conditionals for all quadrants and axis\r\n\t\tif(tarX > 0 && tarY > 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t}\r\n\t\telse if(tarX < 0 && tarY > 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 180 - Math.abs(rotation);\r\n\t\t}\r\n\t\telse if(tarX < 0 && tarY < 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 180 + Math.abs(rotation);\r\n\t\t}\r\n\t\telse if(tarX > 0 && tarY < 0)\r\n\t\t{\r\n\t\t\trotation = (float) Math.atan((tarY/tarX));\r\n\t\t\trotation = (float) ((rotation*180)/Math.PI);\r\n\t\t\trotation = 90 - Math.abs(rotation);\r\n\t\t\trotation = 270 + rotation;\r\n\t\t}\r\n\t\telse if(tarX > 0 && tarY == 0)\r\n\t\t\trotation = 0;\r\n\t\telse if(tarX == 0 && tarY > 0)\r\n\t\t\trotation = 90;\r\n\t\telse if(tarX < 0 && tarY == 0)\r\n\t\t\trotation = 180;\r\n\t\telse if(tarX == 0 && tarY < 0)\r\n\t\t\trotation = 270;\r\n\t\t\r\n\t\treturn (rotation - 90);\r\n\t}", "private double timeFractionBasedOnLevel(){\n // assume AnimationTimer speed to be relevant to 60 fps\n switch (board.getLevel()){\n case 0 -> {\n return 60.0 / 48.0;\n }\n case 1 -> {\n return 60.0 / 43.0;\n }\n case 2 -> {\n return 60.0 / 38.0;\n }\n case 3 -> {\n return 60.0 / 33.0;\n }\n case 4 -> {\n return 60.0 / 28.0;\n }\n case 5 -> {\n return 60.0 / 23.0;\n }\n case 6 -> {\n return 60.0 / 18.0;\n }\n case 7 -> {\n return 60.0 / 13.0;\n }\n case 8 -> {\n return 60.0 / 8.0;\n }\n case 9 -> {\n return 60.0 / 6.0;\n }\n case 10, 11, 12 -> {\n return 60.0 / 5.0;\n }\n case 13, 14, 15 -> {\n return 60.0 / 4.0;\n }\n case 16, 17, 18 -> {\n return 60.0 / 3.0;\n }\n case 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 -> {\n return 60.0 / 2.0;\n }\n default -> {\n return 60.0 / 1.01;\n }\n }\n }", "public ahr(aqu paramaqu, xm paramxm)\r\n/* 35: */ {\r\n/* 36: 50 */ super(paramaqu);\r\n/* 37: 51 */ this.g = paramxm;\r\n/* 38: */ \r\n/* 39: 53 */ a(0.25F, 0.25F);\r\n/* 40: */ \r\n/* 41: 55 */ b(paramxm.s, paramxm.t + paramxm.aR(), paramxm.u, paramxm.y, paramxm.z);\r\n/* 42: */ \r\n/* 43: 57 */ this.s -= uv.b(this.y / 180.0F * 3.141593F) * 0.16F;\r\n/* 44: 58 */ this.t -= 0.1000000014901161D;\r\n/* 45: 59 */ this.u -= uv.a(this.y / 180.0F * 3.141593F) * 0.16F;\r\n/* 46: 60 */ b(this.s, this.t, this.u);\r\n/* 47: */ \r\n/* 48: 62 */ float f1 = 0.4F;\r\n/* 49: 63 */ this.v = (-uv.a(this.y / 180.0F * 3.141593F) * uv.b(this.z / 180.0F * 3.141593F) * f1);\r\n/* 50: 64 */ this.x = (uv.b(this.y / 180.0F * 3.141593F) * uv.b(this.z / 180.0F * 3.141593F) * f1);\r\n/* 51: 65 */ this.w = (-uv.a((this.z + l()) / 180.0F * 3.141593F) * f1);\r\n/* 52: */ \r\n/* 53: 67 */ c(this.v, this.w, this.x, j(), 1.0F);\r\n/* 54: */ }", "public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }", "public int getRotations();", "int getEndRotationDegree();", "static double mediaAritmetica (double c, int e, int f) {\n return (c+e+f)/3;\n }", "public double getWidthInDeg();", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\r\n\r\n //Reads ints from user\r\n int angles = scanner.nextInt();\n int anglesPerHour = 30;\n int anglePerMin = 12;\r\n int angleRemainder;\n int angleMultipliedMin;\n\r\n /*\r\n * your code goes here\r\n */\n\r\n angleRemainder = angles % anglesPerHour;\n angleMultipliedMin = angleRemainder * anglePerMin;\n\n System.out.print(angleMultipliedMin);\n\r\n // closing the scanner object\r\n scanner.close();\r\n }", "private String intTime(long l){\r\n String s=\"\";\r\n s+=(char)(((l/1000)/60)+'0')+\":\"+(char)((((l/1000)%60)/10)+'0')+(char)((((l/1000)%60)%10)+'0'); \r\n return s;\r\n }", "public static String hoursMinutesSeconds(double t) {\n int hours = (int) t/3600;\n int rem = (int) t - hours*3600;\n int mins = rem / 60;\n int secs = rem - mins*60;\n //return String.format(\"%2d:%02d:%02d\", hours, mins, secs);\n return String.format(\"%d:%02d:%02d\", hours, mins, secs);\n }", "int getStartRotationDegree();", "public int getPoseDuration(){ return poseDuration;}", "private static double fds_h(Vec v) { return 2*ASTMad.mad(new Frame(v), null, 1.4826)*Math.pow(v.length(),-1./3.); }", "public static void main(String[] args) {\n\n\tint time = 32150;\n\t\n\t\t\tSystem.out.print((time / 3600)+\" 시간 \");\n\t\t\tSystem.out.print((time % 3600 / 60)+\" 분 \");\n\t\t\tSystem.out.println((time % 3600 % 60)+\" 초\");\n\t\t\n\t\t\n\t}", "int canon_600_color (int ratio[], int mar)\n{\n int clipped=0, target, miss;\n\n if (flash_used != 0.0) {\n if (ratio[1] < -104)\n { ratio[1] = -104; clipped = 1; }\n if (ratio[1] > 12)\n { ratio[1] = 12; clipped = 1; }\n } else {\n if (ratio[1] < -264 || ratio[1] > 461) return 2;\n if (ratio[1] < -50)\n { ratio[1] = -50; clipped = 1; }\n if (ratio[1] > 307)\n { ratio[1] = 307; clipped = 1; }\n }\n target = flash_used != 0.0 || ratio[1] < 197\n\t? -38 - (398 * ratio[1] >> 10)\n\t: -123 + (48 * ratio[1] >> 10);\n if (target - mar <= ratio[0] &&\n target + 20 >= ratio[0] && clipped == 0) return 0;\n miss = target - ratio[0];\n if ( Math.abs(miss) >= mar*4) return 2;\n if (miss < -20) miss = -20;\n if (miss > mar) miss = mar;\n ratio[0] = target - miss;\n return 1;\n}", "private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}", "private void calculateDelta() {\n // 60 fps <=> delta ~ 0.016f\n //\n long curTime = SystemClock.elapsedRealtimeNanos();\n delta = (curTime - lastTime) / 1_000_000_000.0f;\n lastTime = curTime;\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n \n //Reads ints from user\n int hourHand = scanner.nextInt();\n \n int hours = hourHand / 30;\n int degreesPast = hours * 30;\n int minPast = hourHand - degreesPast;//gets leftover min.\n int degreeMinHand = minPast * 2; \n degreeMinHand = degreeMinHand * 6;//moves 6 degrees a min\n System.out.print(degreeMinHand);\n // closing the scanner object\n scanner.close();\n }", "protected void calculateProgressDegrees() {\r\n\t\tmProgressDegrees = mPointerPosition - mStartAngle; // Verified\r\n\t\tmProgressDegrees = (mProgressDegrees < 0 ? 360f + mProgressDegrees : mProgressDegrees); // Verified\r\n\t}", "public static String m34537a(long j) {\n Formatter format;\n if (j <= 0 || j >= LogBuilder.MAX_INTERVAL) {\n return \"00:00\";\n }\n long j2 = j / 1000;\n int i = (int) (j2 % 60);\n int i2 = (int) ((j2 / 60) % 60);\n int i3 = (int) (j2 / 3600);\n Formatter formatter = new Formatter(new StringBuilder(), Locale.getDefault());\n if (i3 > 0) {\n format = formatter.format(\"%d:%02d:%02d\", Integer.valueOf(i3), Integer.valueOf(i2), Integer.valueOf(i));\n } else {\n format = formatter.format(\"%02d:%02d\", Integer.valueOf(i2), Integer.valueOf(i));\n }\n return format.toString();\n }", "private double toRotationsPerSecond(int encoderPulsesPer100ms) {\n return (double)encoderPulsesPer100ms * 10 / m_encoderResolution;\n }", "public float getMaxTimeSeconds() { return getMaxTime()/1000f; }", "private static float calculateStepRate(int stepCount) {\n\n return (float) stepCount / (float) secsPerMinute;\n\n }", "private static int convertTimeToSecs(String time){\n if (time == null) return 0;\n String hours = time.substring(0, 2);\n String mins = time.substring(3,5);\n return Integer.parseInt(hours)*3600 + Integer.parseInt(mins)*60;\n }", "public static float rad2deg(float rad) {return rad/D2R;}", "public void mo5968e() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{-((float) C1413m.f5711i.getHeight()), 0.0f}).setDuration(240);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{0.0f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f}).setDuration(240);\n duration.start();\n duration2.start();\n long j = (long) 160;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.6f, 0.5f, 0.4f, 0.3f, 0.2f, 0.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5438qa, \"alpha\", new float[]{1.0f, 0.0f}).setDuration(j).start();\n duration.addListener(new C1302Xa(this));\n }", "private float hzToPeriod(float hz ) {\n\t\tint sampling = 44100;\n\t\treturn sampling / hz;\n\t}" ]
[ "0.60506016", "0.60077286", "0.5975417", "0.59005", "0.589993", "0.58390737", "0.57596934", "0.56923276", "0.56789416", "0.56699467", "0.5642618", "0.55839264", "0.5570282", "0.551445", "0.548661", "0.5465891", "0.546208", "0.54602623", "0.54190415", "0.5367516", "0.536031", "0.5354336", "0.53370404", "0.53344405", "0.52992827", "0.52701217", "0.5261929", "0.52440083", "0.5242679", "0.5230489", "0.5220593", "0.52132666", "0.5210367", "0.520703", "0.52036697", "0.5203107", "0.5202535", "0.5191186", "0.51706696", "0.5154395", "0.5151984", "0.51509243", "0.5148575", "0.51354545", "0.5130071", "0.512247", "0.5110647", "0.50922394", "0.5082197", "0.506853", "0.50660866", "0.5058333", "0.5056717", "0.505118", "0.5051045", "0.50500053", "0.50497514", "0.50478864", "0.50434476", "0.5041254", "0.5030685", "0.50268465", "0.50014585", "0.5000258", "0.49976456", "0.4993021", "0.49925503", "0.4988888", "0.49824595", "0.49783185", "0.49735796", "0.49732226", "0.49727893", "0.4964926", "0.49602866", "0.4960201", "0.49511656", "0.49491447", "0.49467137", "0.49425748", "0.49424872", "0.49406713", "0.49379474", "0.4931828", "0.49127436", "0.49110156", "0.48953336", "0.4891281", "0.4885325", "0.48839578", "0.48783308", "0.48732176", "0.4869204", "0.4867081", "0.48635682", "0.48635244", "0.48633286", "0.48628312", "0.48611176", "0.4859", "0.4856388" ]
0.0
-1
/ 364: / 365:
public void setDtDetalleFacturaProveedorSRI(DataTable dtDetalleFacturaProveedorSRI) /* 366: */ { /* 367:353 */ this.dtDetalleFacturaProveedorSRI = dtDetalleFacturaProveedorSRI; /* 368: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Period mo20733e();", "private static String calcY_MD(int[] age){\n\t\tdouble y = age[2];\t// Add number of years\n\t\ty += age[1]/12.0;\t// Add months as fraction (divided by 12)\t// as each year has 12 months\n\t\ty += age[0]/365.0;\t// Add days as fraction (divided by 365)\t// as each year has 365 days\n\t\treturn y+\"\";\n\t}", "int getYears();", "public int a(int i2) {\n return e(i2) ? 366 : 365;\n }", "int getAgeYearsRelativeToReferencePoint(Calendar anchorTime, Calendar testTime);", "private static String calcYMD(int[] age){\n\t\treturn age[2]+\" years \" + age[1] + \" months \" + age[0] + \" days \";\n\t}", "long mo309d();", "public static void main(String[] args) {\n int i =2003;\n long d = 13220100526L;\n System.out.println(new Date(d));\n System.out.println(i / 20 + (i % 20 > 0 ? 1 : 0));\n }", "public static void main(String arg[]) {\n\t\t\n\t\tlong longNumberWithoutL = 1000*60*60*24*365;\n\t\tlong longNumberWithL = 1000*60*60*24*365L;\n\n\t\tSystem.out.println(longNumberWithoutL);//1471228928\n\t\tSystem.out.println(longNumberWithL);//31536000000\n\n\t\t//31536000000 -- 36 bits\n\t\t// 11101010111101100010010110000000000\n\t\t//max limit of 32 bit int: 2147483647\n\t\t//1010111101100010010110000000000 --> 1471228928\n\t}", "public double getPer_day(){\n\t\tdouble amount=this.num_of_commits/365;\n\t\treturn amount;\n\t}", "public final int mo6465d() {\n return 19729000;\n }", "long mo20406a();", "Integer getTenYear();", "public long getExpires()\r\n/* 229: */ {\r\n/* 230:347 */ return getFirstDate(\"Expires\");\r\n/* 231: */ }", "BigInteger getPeriod();", "int getExpYear(String bookingRef);", "public int getHowManyInPeriod();", "static int getYear(byte[] bytes) {\n return readBits(bytes, YEAR_POS, YEAR_BITS) - YEAR_EXCESS;\n }", "@Override\r\n\tpublic int yearsTillRetirement() //calculate years until retirement\r\n\t{\n\t\tint retire = (int)Math.round((35 - (super.getYears() + (double)(usedUnpaidVacation + usedVacation* 2 + usedSickDays)/260)));\r\n\t\t\r\n\t\treturn retire;\r\n\t\t\r\n\t\t\r\n\t}", "long mo1154d();", "private static double m1936a(double d) {\n if (d > 6.26d) {\n return 100.0d;\n }\n if (d < 0.01d) {\n return 0.0d;\n }\n return ((d - 0.01d) * 100.0d) / 6.25d;\n }", "int getAgeInYears(Person p);", "int getExpiryTimeSecs();", "long getExpirations();", "public int age(){\r\n\t\t//1000 ms = 1s, 60s = 1 min, 60 min = 1h, 24h = 1 day\r\n\t\t//1 Day = 1000 * 60 * 60 * 24\r\n\t\tlong divide = 1000 * 60 * 60 * 24;\r\n\t\tDate d = new Date();\r\n\t\tlong timeNow = d.getTime();\r\n\t\tlong pubDate = dateOfPublication.getTime();\r\n\t\t\r\n\t\tlong between = timeNow - pubDate;\r\n\t\t\r\n\t\tlong daysSincePub = between / divide;\r\n\t\treturn (int) daysSincePub;\r\n\t}", "public int getCycleYearsForComponent(Record record);", "public void yourAgeInSeconds()\n {\n System.out.print( \"Enter your goddamn age in years: \" );\n long years = scan.nextLong();\n long yearDays = 365 * years;\n System.out.print( \"Enter month number: \" );\n long months = scan.nextLong();\n long monthDays = 0;\n if ( months > 0 ) // 1 month\n {\n monthDays = 31;\n {\n if ( months > 1 ) // 2 months\n {\n monthDays = monthDays + 28;\n if ( months > 2 ) // 3 months\n {\n monthDays = monthDays + 31;\n if ( months > 3 )\n {\n monthDays = monthDays + 30;\n if ( months > 4 )\n {\n monthDays = monthDays + 31;\n if ( months > 5 )\n {\n monthDays = monthDays + 30;\n if ( months > 6 )\n {\n monthDays = monthDays + 31;\n if ( months > 7 )\n {\n monthDays = monthDays + 31;\n if ( months > 8 )\n {\n monthDays = monthDays + 30;\n if ( months > 9 )\n {\n monthDays = monthDays + 31;\n if ( months > 10 )\n {\n monthDays \n = monthDays + 30;\n if ( months > 11 )\n {\n monthDays \n = monthDays \n + 31;\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n System.out.print( \"Enter the day number: \" );\n long days = scan.nextLong();\n long totalDays = yearDays + monthDays + days;\n long seconds = totalDays * 24 * 60 * 60;\n System.out.println( \"Your are \" + seconds + \" seconds old.\" );\n }", "public abstract long mo9229aD();", "public java.math.BigInteger getExpirationYear() {\r\n return expirationYear;\r\n }", "private int m521e(C0082e eVar) {\n int c = C0069c.m383c(eVar.mo67c(C0071a.DAY_OF_WEEK) - this.f279b.mo283a().mo236a(), 7) + 1;\n int c2 = eVar.mo67c(C0071a.YEAR);\n long c3 = m517c(eVar, c);\n if (c3 == 0) {\n return c2 - 1;\n }\n if (c3 < 53) {\n return c2;\n }\n if (c3 >= ((long) m514b(m511a(eVar.mo67c(C0071a.DAY_OF_YEAR), c), (C0128k.m770a((long) c2) ? 366 : 365) + this.f279b.mo284b()))) {\n return c2 + 1;\n }\n return c2;\n }", "public int getDuration( ) {\nreturn numberOfPayments / MONTHS;\n}", "public int a() {\n return 366;\n }", "private int m2013i() {\n return C0962e0.m5566x(this.f1288Z) == 1 ? 0 : 1;\n }", "public abstract long mo9748m();", "public static void printYearsAndDays(long minutes) {\n if (minutes < 0) System.out.println(\"Invalid Value\");\n else {\n int year = (int) minutes / 525600;\n int days = (int) (minutes % 525600) / 1440;\n System.out.printf(\"%d min = %d y and %d d%n\", minutes, year, days);\n }\n }", "Integer getTHunYear();", "@Test\n public void computeFactor_TwoMonthsOfLeapYear() {\n long startTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-02-01 00:00:00\");\n long endTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-03-01 23:59:59\");\n BillingInput billingInput = BillingInputFactory.newBillingInput(\n \"2012-02-01 00:00:00\", \"2012-03-02 00:00:00\");\n\n // when\n double factor = calculator.computeFactor(PricingPeriod.MONTH,\n billingInput, startTimeUsage, endTimeUsage, true, true);\n\n // then factor is 1 months\n assertEquals(1, factor, 0);\n }", "private static double m29994c(double d, double d2) {\n return ((d - d2) + 360.0d) % 360.0d;\n }", "public final long mo20954WX() {\n return 10485760;\n }", "public long calHurt() {\n/* 82 */ return 0L;\n/* */ }", "public int mo36g() {\n return 4;\n }", "@Test\n public void computeFactor_FebruaryOfLeapYear() {\n long startTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-02-01 00:00:00\");\n long endTimeUsage = DateTimeHandling\n .calculateMillis(\"2012-02-29 23:59:59\");\n BillingInput billingInput = BillingInputFactory.newBillingInput(\n \"2012-02-01 00:00:00\", \"2012-03-01 00:00:00\");\n\n // when\n double factor = calculator.computeFactor(PricingPeriod.DAY,\n billingInput, startTimeUsage, endTimeUsage, true, true);\n\n // then factor is 29 (days)\n assertEquals(29, factor, 0);\n }", "private int calculateDaysLeftOnLicense(Date pNowDate, Date pExpiryDate)\n{\n \n //milliseconds since 1/1/1970, 00:00:00 GMT\n long nowTime = pNowDate.getTime(); \n long expiryTime = pExpiryDate.getTime();\n\n long daysRemaining = expiryTime - nowTime; //time left in milliseconds\n \n daysRemaining /= 1000; //convert to seconds\n daysRemaining /= 60; //convert to minutes\n daysRemaining /= 60; //convert to hours\n daysRemaining /= 24; //convert to days\n \n if (daysRemaining > Integer.MAX_VALUE) {daysRemaining = Integer.MAX_VALUE;}\n if (daysRemaining < Integer.MIN_VALUE) {daysRemaining = Integer.MIN_VALUE;}\n \n return((int)daysRemaining);\n \n}", "public int lengthOfYear() {\n\n return this.isLeapYear() ? 366 : 365;\n\n }", "public abstract long mo24412e();", "private int calculateAge() {\n\t\treturn LocalDate.now().getYear() - this.birthYear;\n\t}", "public int getYearsUntilTenure(){\n return m_yearsUntilTenure;\n }", "long getExpiration();", "private int m519d(C0082e eVar) {\n int c = C0069c.m383c(eVar.mo67c(C0071a.DAY_OF_WEEK) - this.f279b.mo283a().mo236a(), 7) + 1;\n long c2 = m517c(eVar, c);\n if (c2 == 0) {\n return ((int) m517c(C0018g.m125a(eVar).mo98b(eVar).mo27c(1, C0072b.WEEKS), c)) + 1;\n }\n if (c2 >= 53) {\n int b = m514b(m511a(eVar.mo67c(C0071a.DAY_OF_YEAR), c), (C0128k.m770a((long) eVar.mo67c(C0071a.YEAR)) ? 366 : 365) + this.f279b.mo284b());\n if (c2 >= ((long) b)) {\n return (int) (c2 - ((long) (b - 1)));\n }\n }\n return (int) c2;\n }", "@Test\n public void leapYearIsDivisibleBy4(){\n int year = 2020;\n assertTrue(LeapYear.isLeapYear(year));\n }", "public long mo9746k() {\n return mo9775y();\n }", "public int calc_century() // defining method calc_century\r\n\t{\r\n\t\tif(year %100 == 0) // implement in the condition of year%100 =0\r\n\t\t\tyear = year / 100; // divide year by 100 and put its value to year\r\n\t\telse // implement except for the condition of year%100 =0\r\n\t\t{\r\n\t\t\tyear = (year/100) +1; // divide year by 100 and add 1 then put its value to year\r\n\t\t}\r\n\t\treturn year; // return value of year\r\n\t}", "public abstract long mo9743h();", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter a minutes\");\n\t\t\n\t\tdouble min=scan.nextDouble();\n\t\t\n\t\tlong years=(long) (min/(60*24*365));\n\t\t\n\t\tlong days=(long) (min/60*24)%365;\n\t\t\n\t\tSystem.out.println(min + \" minutes is approximately \" + years + \" years and \" + days + \" days\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public long mo1981x() throws cf {\r\n return m10270d(m10258F());\r\n }", "@Test\n public void nbDaysBetweenSameYear(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.nbDaysBetween(new Date(31,Month.december,1970)),364);\n }", "int getPeriod();", "private long m517c(C0082e eVar, int i) {\n int c = eVar.mo67c(C0071a.DAY_OF_YEAR);\n return (long) m514b(m511a(c, i), c);\n }", "int getYear();", "@org.junit.Test\n public void kYearMonthDurationMultiply13() {\n final XQuery query = new XQuery(\n \"xs:dayTimeDuration(\\\"P3D\\\") * xs:dayTimeDuration(\\\"P3D\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XPTY0004\")\n );\n }", "long getTotalDoExamTime();", "public void setPeriod(int periodInYears) {\nnumberOfPayments = periodInYears * MONTHS;\n}", "public double getMon60314() {\r\n\t\treturn mon60314;\r\n\t}", "private static long m39416a(String str) {\n try {\n return C6440a.m39308a(str).getTime();\n } catch (Exception unused) {\n return 0;\n }\n }", "private static double m29995d(double d, double d2) {\n return ((d2 - d) + 360.0d) % 360.0d;\n }", "public void EasterMath(int year)\n {\n a = year%19;\n b = Math.floor(year/100);\n c = year%100;\n d = Math.floor((b/4));\n e = b%4;\n f = Math.floor((b+8)/25);\n g = Math.floor((b-f+1)/3);\n h = (19*a+b-d-g+15)%30;\n i = Math.floor(c/4);\n k = c%4;\n l = (32 + 2* e + 2 * i - h - k)%7;\n m = Math.floor((a+11*h+22*l)/451);\n month = (int) Math.floor((h+l-7*m+114)/31);\n day = (int) (((h+l-7*m+114)%31)+1);\n }", "public abstract long mo9755t();", "public float m7365c() {\n return this.f4512a;\n }", "double getAgeDays();", "boolean mo106365g();", "public int getDocumentYear();", "public final long mo23972d() {\n return C9612c.m28452c();\n }", "public int getLBR_ProtestDays();", "public int getNoYears(){return this.no_years;}", "private static Long diasRestantesA3(X509Certificate certificate) throws NfeException {\r\n\r\n\t\tDate data = certificate.getNotAfter(); //DataValidade(certificado);\r\n\t\tif (data == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tlong differenceMilliSeconds = data.getTime() - new Date().getTime();\r\n\t\treturn differenceMilliSeconds / 1000 / 60 / 60 / 24;\r\n\t}", "public abstract long mo9746k();", "public final double calculateCarbon() {\n\n if (calories > 2000) {\n allowedCarbonPerYear = 2200 * quantity;\n\n } else {\n allowedCarbonPerYear = 2000 * quantity;\n }\n allowedCarbonPerDay = (double) allowedCarbonPerYear / (double) 365;\n // String strDouble = String.format(\"%.2f\", allowedCarbonPerDay);\n // System.out.println(strDouble);\n return allowedCarbonPerDay;\n\n }", "@Test\n public void checkDivisibilityByFourHundred() {\n LeapYear leapYear = new LeapYear();\n boolean flag = leapYear.isItDivisibleByFourHundred(1600);\n assertTrue(flag);\n }", "Long mo20729a();", "public int mo36g() {\n return 8;\n }", "private long m18337c(long durationUs) {\n return (((long) this.f16625s) * durationUs) / 1000000;\n }", "long mo117970a();", "public long mo15025h() {\n throw new UnsupportedOperationException();\n }", "public abstract long mo131997a() throws IOException;", "protected long m8217a(long j) {\n return (j * 1000000) / ((long) this.f7048i);\n }", "public int getLBR_LatePaymentPenaltyDays();", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public static int microDateDays(long modified) {\n return (int) ((modified / day) % 262144);\r\n }", "@Test\n public void checkDivisibilityByHundred() {\n LeapYear leapYear = new LeapYear();\n boolean flag = leapYear.isItDivisibleByHundred(1600);\n assertTrue(flag);\n }", "long mo30295f();", "private static Long diasRestantes(Certificado certificado) throws NfeException {\r\n\r\n\t\tDate data = DataValidade(certificado);\r\n\t\tif (data == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tlong differenceMilliSeconds = data.getTime() - new Date().getTime();\r\n\t\treturn differenceMilliSeconds / 1000 / 60 / 60 / 24;\r\n\t}", "public abstract Integer mo36210m();", "public static int getTodaysYear() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.year;\t\r\n\t\t\r\n\t}", "public abstract long mo24409b();", "public String printYearsAndDays(long minutes) {\n\t\t// TODO Write an implementation for this method declaration\n\t\tlong years;\n\t\tlong days;\n\t\tString result;\n\t\tyears = minutes / 525600;\n\t\tdays = (minutes % 525600) / (60*24);\n\n\t\tresult = Long.toString(minutes) + \" min\" + \" = \" + Long.toString(years) + \" y \" + \"and \" + Long.toString(days) + \" d\";\n\t\t//System.out.println(result);\n\t\treturn result;\n\t}", "public static int calculateYears ( double principal, double interest, double tax, double desired){\n\n int y = 0;\n while (principal < desired) {\n principal = (principal * (interest + 1)) - ((principal * interest) * tax);\n y++;\n }\n return y;\n }", "@Override\r\n\tpublic int hashCode()\r\n\t{\n\t\tlong hash = year * 32140800;\r\n\t\thash += month * 2678400;\r\n\t\thash += day * 86400;\r\n\t\tif (!dateOnly)\r\n\t\t{\r\n\t\t\thash += hour * 3600;\r\n\t\t\thash += minute * 60;\r\n\t\t\thash += second;\r\n\t\t}\r\n\t\treturn (int) hash;\r\n\t}", "private static int getDaysSinceNewYear() {\n\t\tGregorianCalendar now = new GregorianCalendar();\n\n\t\treturn now.get(GregorianCalendar.DAY_OF_YEAR);\n\t}", "public long mo9746k() {\n return mo9786y();\n }", "private int getPublishingYear(String date) {\n String[] splitArray = date.split(\"-\");\n\n return Integer.parseInt(splitArray[splitArray.length - 1]);\n }", "long getAgeRelativeToReferencePoint(Calendar referenceTime, Calendar testTime);" ]
[ "0.6117797", "0.59748155", "0.58347356", "0.5817441", "0.57851225", "0.5766314", "0.5730724", "0.5685916", "0.5667061", "0.56351745", "0.5593653", "0.5561001", "0.555216", "0.5541673", "0.5531096", "0.55304754", "0.5489714", "0.5489573", "0.5489146", "0.5470083", "0.54688317", "0.5456484", "0.5438565", "0.5428431", "0.54075724", "0.54063016", "0.53985465", "0.5381525", "0.53784245", "0.5363994", "0.5357955", "0.5343944", "0.5338429", "0.5318247", "0.53121567", "0.5302662", "0.5301467", "0.52954304", "0.5277126", "0.5276202", "0.5255888", "0.52439094", "0.5239086", "0.5234218", "0.523321", "0.5228847", "0.52170444", "0.5211786", "0.52102274", "0.52079743", "0.5202493", "0.52017736", "0.5198919", "0.51940095", "0.51861686", "0.5175238", "0.51540446", "0.5150939", "0.514798", "0.51417655", "0.51379365", "0.5136045", "0.51321363", "0.5129566", "0.5115682", "0.5113592", "0.51119447", "0.5111899", "0.51020044", "0.5101625", "0.510035", "0.5094961", "0.50940645", "0.50931484", "0.50881433", "0.50858474", "0.50840586", "0.5083659", "0.5080071", "0.50792354", "0.5077511", "0.50737447", "0.5072315", "0.5072219", "0.5068278", "0.50674427", "0.5067337", "0.50661105", "0.50657517", "0.50640845", "0.5056746", "0.5047296", "0.5042857", "0.5040803", "0.5037153", "0.5035338", "0.5029264", "0.50256735", "0.50230616", "0.50215006", "0.5017954" ]
0.0
-1
/ 369: / 370:
public List<DetalleFacturaProveedorSRI> getListaDetalleFacturaProveedorSRI() /* 371: */ { /* 372:362 */ List<DetalleFacturaProveedorSRI> detalle = new ArrayList(); /* 373:363 */ for (DetalleFacturaProveedorSRI dfpSRI : getFacturaProveedorSRI().getListaDetalleFacturaProveedorSRI()) { /* 374:364 */ if ((!dfpSRI.isEliminado()) && (dfpSRI.getTipoConceptoRetencion().equals(TipoConceptoRetencion.FUENTE))) { /* 375:365 */ detalle.add(dfpSRI); /* 376: */ } /* 377: */ } /* 378:368 */ return detalle; /* 379: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m50366E() {\n }", "public void method_4270() {}", "private void m50367F() {\n }", "public void mo21787L() {\n }", "public void mo3749d() {\n }", "public void mo21877s() {\n }", "public void mo38117a() {\n }", "public void mo21779D() {\n }", "public void mo21794S() {\n }", "public void mo21782G() {\n }", "public void mo23813b() {\n }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public void mo21785J() {\n }", "private void kk12() {\n\n\t}", "public void mo21786K() {\n }", "public void m23075a() {\n }", "void m1864a() {\r\n }", "public void mo4359a() {\n }", "public void mo21789N() {\n }", "public void mo21793R() {\n }", "public void mo44053a() {\n }", "public void mo21780E() {\n }", "public void mo21783H() {\n }", "public void mo3376r() {\n }", "public void mo12930a() {\n }", "public void mo3370l() {\n }", "public void mo21791P() {\n }", "public void mo21792Q() {\n }", "public void mo6944a() {\n }", "public void mo21795T() {\n }", "public void mo12628c() {\n }", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "public void mo9233aH() {\n }", "public final void mo51373a() {\n }", "public int method_2436() {\r\n return 16;\r\n }", "public abstract long mo13681c();", "static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public void mo2740a() {\n }", "public void mo115190b() {\n }", "public void mo56167c() {\n }", "public abstract int mo9754s();", "public void mo55254a() {\n }", "public void mo21878t() {\n }", "public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }", "public void mo2471e() {\n }", "public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }", "public void mo21788M() {\n }", "private void level7() {\n }", "public void mo97908d() {\n }", "public void mo21781F() {\n }", "public int method_6437() {\r\n return this.field_6227;\r\n }", "void mo57277b();", "public void skystonePos4() {\n }", "public int method_209() {\r\n return 0;\r\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "void mo21073d();", "public void skystonePos6() {\n }", "public void mo21879u() {\n }", "public void mo5382o() {\n }", "public void mo115188a() {\n }", "public abstract long mo9229aD();", "public void mo2470d() {\n }", "void mo72113b();", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public int getDrawingOrder() {\n/* 1068 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void mo9137b() {\n }", "public abstract int mo8526p();", "void m5770d() throws C0841b;", "public void mo1405e() {\n }", "void mo41086b();", "void mo41083a();", "public abstract String mo13682d();", "public final void mo91715d() {\n }", "public void mo6081a() {\n }", "public void mo5248a() {\n }", "void mo21074e();", "void mo72114c();", "public abstract void mo27385c();", "public abstract int mo9742g();", "protected int mo3987c() {\n return -1;\n }", "public void mo21784I() {\n }", "protected void method_4160() {\r\n String[] var10000 = class_752.method_4253();\r\n ++this.field_3416;\r\n String[] var1 = var10000;\r\n int var7 = this.field_3416;\r\n if(var1 != null) {\r\n label96: {\r\n if(this.field_3416 >= 180) {\r\n var7 = this.field_3416;\r\n if(var1 == null) {\r\n break label96;\r\n }\r\n\r\n if(this.field_3416 <= 200) {\r\n float var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n float var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n float var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var10001 = field_3418;\r\n this.field_2990.method_2087(\"hugeexplosion\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n }\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n }\r\n\r\n int var5;\r\n int var6;\r\n class_715 var9;\r\n ahb var10;\r\n label101: {\r\n short var8;\r\n label102: {\r\n if(var1 != null) {\r\n label85: {\r\n if(var7 == 0) {\r\n var7 = this.field_3416;\r\n var8 = 150;\r\n if(var1 != null) {\r\n label80: {\r\n if(this.field_3416 > 150) {\r\n var7 = this.field_3416 % 5;\r\n if(var1 == null) {\r\n break label80;\r\n }\r\n\r\n if(var7 == 0) {\r\n var5 = 1000;\r\n\r\n while(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break label85;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n var8 = 1;\r\n }\r\n\r\n if(var1 == null) {\r\n break label102;\r\n }\r\n\r\n if(var7 == var8) {\r\n this.field_2990.method_2209(1018, (int)this.field_2994, (int)this.field_2995, (int)this.field_2996, 0);\r\n }\r\n }\r\n\r\n this.method_3864(0.0D, 0.10000000149011612D, 0.0D);\r\n this.field_3330 = this.field_3000 += 20.0F;\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n if(var1 == null) {\r\n break label101;\r\n }\r\n\r\n var8 = 200;\r\n }\r\n\r\n if(var7 != var8) {\r\n return;\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var1 != null) {\r\n if(var7 != 0) {\r\n return;\r\n }\r\n\r\n var7 = 2000;\r\n }\r\n\r\n var5 = var7;\r\n\r\n while(true) {\r\n if(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_4325(class_1715.method_9561(this.field_2994), class_1715.method_9561(this.field_2996));\r\n break;\r\n }\r\n\r\n this.method_3851();\r\n }", "void mo17013d();", "void mo57278c();", "void m5771e() throws C0841b;", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public void mo3946e() {\n m25427g();\n }", "public void mo8738a() {\n }", "public abstract void mo56925d();", "void mo1943l();", "@Override\n public void func_104112_b() {\n \n }", "public int mo36g() {\n return 2;\n }", "public int getExtendedID()\r\n/* 12: */ {\r\n/* 13:17 */ return 10;\r\n/* 14: */ }" ]
[ "0.66999924", "0.66245115", "0.64324266", "0.62927353", "0.6286298", "0.62608784", "0.62369144", "0.62125415", "0.6161425", "0.6154128", "0.6114088", "0.60464567", "0.6037013", "0.6035594", "0.6031727", "0.60304666", "0.60282034", "0.6027776", "0.6013585", "0.5998343", "0.5994341", "0.59891963", "0.59885037", "0.5978707", "0.593998", "0.59344405", "0.5928564", "0.59190786", "0.5918765", "0.5915668", "0.59154135", "0.5907973", "0.5901794", "0.58991206", "0.58852994", "0.58841956", "0.588304", "0.5882262", "0.5882159", "0.58819443", "0.5874256", "0.5855973", "0.5855894", "0.5849614", "0.58480203", "0.58449805", "0.58374244", "0.5830735", "0.5829176", "0.5826051", "0.5811751", "0.5809233", "0.58067745", "0.580254", "0.5800476", "0.5800476", "0.5800476", "0.5800476", "0.5800476", "0.5800476", "0.5800476", "0.5799854", "0.5791251", "0.57904154", "0.579022", "0.5785247", "0.5783037", "0.578153", "0.576459", "0.57643974", "0.5761129", "0.5756852", "0.57456493", "0.5731327", "0.5727614", "0.5726032", "0.57119185", "0.571147", "0.57082677", "0.5703412", "0.56978256", "0.56891096", "0.56878054", "0.5685827", "0.5684698", "0.5684547", "0.56802064", "0.56799185", "0.5677908", "0.56776667", "0.56751573", "0.5675082", "0.56715417", "0.56662", "0.5665657", "0.5664176", "0.56633294", "0.5661804", "0.5660158", "0.5658852", "0.56585956" ]
0.0
-1
/ 380: / 381:
public List<DetalleFacturaProveedorSRI> getListaDetalleIVAFacturaProveedorSRI() /* 382: */ { /* 383:372 */ List<DetalleFacturaProveedorSRI> detalle = new ArrayList(); /* 384:373 */ for (DetalleFacturaProveedorSRI dfpSRI : getFacturaProveedorSRI().getListaDetalleFacturaProveedorSRI()) { /* 385:374 */ if ((!dfpSRI.isEliminado()) && (dfpSRI.getTipoConceptoRetencion().equals(TipoConceptoRetencion.IVA))) { /* 386:375 */ detalle.add(dfpSRI); /* 387: */ } /* 388: */ } /* 389:378 */ return detalle; /* 390: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo6081a() {\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "void mo3194r();", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "private void m3932O() {\n int e = mo4732e();\n for (int i = 0; i < e; i++) {\n C0780b bVar = (C0780b) mo4729d(i).getLayoutParams();\n int b = bVar.mo4772b();\n this.f3123L.put(b, bVar.mo4310h());\n this.f3124M.put(b, bVar.mo4309g());\n }\n }", "private void m50367F() {\n }", "private static int m13704a(C2085b c2085b, int i, long j, int i2, C2302k c2302k, int i3) {\n Object obj;\n int[] iArr;\n long j2;\n C2085b c2085b2 = c2085b;\n c2302k.m8388c(8);\n int b = C2087a.m7471b(c2302k.m8403o());\n Track track = c2085b2.f5791c;\n C2102i c2102i = c2085b2.f5790b;\n C2093c c2093c = c2102i.f5938a;\n c2102i.f5945h[i] = c2302k.m8409u();\n c2102i.f5944g[i] = c2102i.f5940c;\n if ((b & 1) != 0) {\n long[] jArr = c2102i.f5944g;\n jArr[i] = jArr[i] + ((long) c2302k.m8403o());\n }\n Object obj2 = (b & 4) != 0 ? 1 : null;\n int i4 = c2093c.f5892d;\n if (obj2 != null) {\n i4 = c2302k.m8409u();\n }\n Object obj3 = (b & 256) != 0 ? 1 : null;\n Object obj4 = (b & 512) != 0 ? 1 : null;\n Object obj5 = (b & 1024) != 0 ? 1 : null;\n Object obj6 = (b & ItemAnimator.FLAG_MOVED) != 0 ? 1 : null;\n long j3 = 0;\n if (track.f5810h != null && track.f5810h.length == 1 && track.f5810h[0] == 0) {\n j3 = C2314v.m8492d(track.f5811i[0], 1000, track.f5805c);\n }\n int[] iArr2 = c2102i.f5946i;\n int[] iArr3 = c2102i.f5947j;\n long[] jArr2 = c2102i.f5948k;\n int i5 = i4;\n boolean[] zArr = c2102i.f5949l;\n int[] iArr4 = iArr2;\n Object obj7 = (track.f5804b != 2 || (i2 & 1) == 0) ? null : 1;\n i4 = i3 + c2102i.f5945h[i];\n long[] jArr3 = jArr2;\n long j4 = j3;\n long j5 = track.f5805c;\n if (i > 0) {\n obj = obj7;\n iArr = iArr3;\n j2 = c2102i.f5956s;\n } else {\n obj = obj7;\n iArr = iArr3;\n j2 = j;\n }\n int i6 = i3;\n while (i6 < i4) {\n Object obj8;\n int i7;\n Object obj9;\n int u = obj3 != null ? c2302k.m8409u() : c2093c.f5890b;\n int u2 = obj4 != null ? c2302k.m8409u() : c2093c.f5891c;\n if (i6 == 0 && obj2 != null) {\n obj8 = obj2;\n i7 = i5;\n } else if (obj5 != null) {\n i7 = c2302k.m8403o();\n obj8 = obj2;\n } else {\n obj8 = obj2;\n i7 = c2093c.f5892d;\n }\n if (obj6 != null) {\n obj9 = obj6;\n iArr[i6] = (int) ((((long) c2302k.m8403o()) * 1000) / j5);\n } else {\n obj9 = obj6;\n iArr[i6] = 0;\n }\n jArr3[i6] = C2314v.m8492d(j2, 1000, j5) - j4;\n iArr4[i6] = u2;\n boolean z = ((i7 >> 16) & 1) == 0 && (obj == null || i6 == 0);\n zArr[i6] = z;\n i6++;\n j2 += (long) u;\n obj2 = obj8;\n obj6 = obj9;\n C2302k c2302k2 = c2302k;\n }\n c2102i.f5956s = j2;\n return i4;\n }", "public void mo21781F() {\n }", "public int arn() {\n return 383;\n }", "public void mo12628c() {\n }", "public void mo21782G() {\n }", "public void mo38117a() {\n }", "private static int[] m10288a(C9383t tVar) {\n int intValue = ((Integer) LiveSettingKeys.STREAM_DEFINITION_LEVEL.mo10240a()).intValue();\n if (intValue > 0 && intValue <= f8023g.length) {\n return f8023g[intValue - 1];\n }\n return new int[]{tVar.mo23063c(), tVar.mo23064d(), tVar.mo23065e(), tVar.f25784h};\n }", "public void mo21877s() {\n }", "public void mo21783H() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo9769i(int r9) {\n /*\n r8 = this;\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r0 = r0 - r1\n if (r9 > r0) goto L_0x000e\n if (r9 < 0) goto L_0x000e\n int r1 = r1 + r9\n r8.f9082i = r1\n goto L_0x0097\n L_0x000e:\n if (r9 < 0) goto L_0x00a2\n int r0 = r8.f9084k\n int r1 = r8.f9082i\n int r2 = r0 + r1\n int r3 = r2 + r9\n int r4 = r8.f9085l\n if (r3 > r4) goto L_0x0098\n q.b.c.a.j0.a.k$c$a r0 = r8.f9086m\n r3 = 0\n if (r0 != 0) goto L_0x007d\n r8.f9084k = r2\n int r0 = r8.f9080g\n int r0 = r0 - r1\n r8.f9080g = r3\n r8.f9082i = r3\n r3 = r0\n L_0x002b:\n if (r3 >= r9) goto L_0x0075\n int r0 = r9 - r3\n java.io.InputStream r1 = r8.f9078e // Catch:{ all -> 0x006b }\n long r4 = (long) r0 // Catch:{ all -> 0x006b }\n long r0 = r1.skip(r4) // Catch:{ all -> 0x006b }\n r6 = 0\n int r2 = (r0 > r6 ? 1 : (r0 == r6 ? 0 : -1))\n if (r2 < 0) goto L_0x0046\n int r4 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1))\n if (r4 > 0) goto L_0x0046\n if (r2 != 0) goto L_0x0043\n goto L_0x0075\n L_0x0043:\n int r0 = (int) r0 // Catch:{ all -> 0x006b }\n int r3 = r3 + r0\n goto L_0x002b\n L_0x0046:\n java.lang.IllegalStateException r9 = new java.lang.IllegalStateException // Catch:{ all -> 0x006b }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x006b }\n r2.<init>() // Catch:{ all -> 0x006b }\n java.io.InputStream r4 = r8.f9078e // Catch:{ all -> 0x006b }\n java.lang.Class r4 = r4.getClass() // Catch:{ all -> 0x006b }\n r2.append(r4) // Catch:{ all -> 0x006b }\n java.lang.String r4 = \"#skip returned invalid result: \"\n r2.append(r4) // Catch:{ all -> 0x006b }\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = \"\\nThe InputStream implementation is buggy.\"\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = r2.toString() // Catch:{ all -> 0x006b }\n r9.<init>(r0) // Catch:{ all -> 0x006b }\n throw r9 // Catch:{ all -> 0x006b }\n L_0x006b:\n r9 = move-exception\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n throw r9\n L_0x0075:\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n L_0x007d:\n if (r3 >= r9) goto L_0x0097\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r1 = r0 - r1\n r8.f9082i = r0\n r0 = 1\n L_0x0088:\n r8.mo9768h(r0)\n int r2 = r9 - r1\n int r3 = r8.f9080g\n if (r2 <= r3) goto L_0x0095\n int r1 = r1 + r3\n r8.f9082i = r3\n goto L_0x0088\n L_0x0095:\n r8.f9082i = r2\n L_0x0097:\n return\n L_0x0098:\n int r4 = r4 - r0\n int r4 = r4 - r1\n r8.mo9769i(r4)\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8181h()\n throw r9\n L_0x00a2:\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8179f()\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9769i(int):void\");\n }", "public void mo21794S() {\n }", "public int mo4452e() {\n /*\n r7 = this;\n int r0 = r7.f2518c\n r7.f2519d = r0\n r0 = 0\n r1 = 0\n r2 = 0\n L_0x0007:\n int r3 = r7.f2519d\n if (r3 <= 0) goto L_0x003b\n byte r3 = r7.mo4449a()\n r4 = -1\n if (r3 == 0) goto L_0x0034\n r5 = 1\n if (r3 == r5) goto L_0x002e\n r6 = 2\n if (r3 == r6) goto L_0x002e\n r6 = 9\n if (r3 == r6) goto L_0x0007\n switch(r3) {\n case 14: goto L_0x0028;\n case 15: goto L_0x0028;\n case 16: goto L_0x0025;\n case 17: goto L_0x0025;\n case 18: goto L_0x0022;\n default: goto L_0x001f;\n }\n L_0x001f:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0022:\n int r1 = r1 + 1\n goto L_0x0007\n L_0x0025:\n if (r2 != r1) goto L_0x002b\n return r5\n L_0x0028:\n if (r2 != r1) goto L_0x002b\n return r4\n L_0x002b:\n int r1 = r1 + -1\n goto L_0x0007\n L_0x002e:\n if (r1 != 0) goto L_0x0031\n return r5\n L_0x0031:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0034:\n if (r1 != 0) goto L_0x0037\n return r4\n L_0x0037:\n if (r2 != 0) goto L_0x0007\n L_0x0039:\n r2 = r1\n goto L_0x0007\n L_0x003b:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.text.BidiFormatter.C0510a.mo4452e():int\");\n }", "long getUnknown72();", "void m8368b();", "public void mo3376r() {\n }", "public void mo21880v() {\n }", "public void mo55254a() {\n }", "public void mo4683c() {\n mo4679a(3);\n }", "private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }", "private void m50366E() {\n }", "public void mo3370l() {\n }", "Info mo7564ix();", "public void mo472g() throws RemoteException {\r\n int i = 0;\r\n if (this.f1761e != null && this.f1762f != null && this.f1763g != null && this.f1767k) {\r\n try {\r\n this.f1772p = false;\r\n MapProjection c = this.f1769m.mo395c();\r\n FPoint fPoint;\r\n if (m2832l()) {\r\n DPoint m = m2833m();\r\n int abs = (int) ((Math.abs(this.f1775s - this.f1774r) * 180.0d) / 3.141592653589793d);\r\n double d = (this.f1775s - this.f1774r) / ((double) abs);\r\n FPoint[] fPointArr = new FPoint[(abs + 1)];\r\n this.f1770n = new float[(fPointArr.length * 3)];\r\n for (int i2 = 0; i2 <= abs; i2++) {\r\n MapProjection mapProjection;\r\n if (i2 == abs) {\r\n fPoint = new FPoint();\r\n this.f1769m.mo352a(this.f1763g.latitude, this.f1763g.longitude, fPoint);\r\n fPointArr[i2] = fPoint;\r\n } else {\r\n mapProjection = c;\r\n fPointArr[i2] = m2831a(mapProjection, (((double) i2) * d) + this.f1774r, m.f3635x, m.f3636y);\r\n }\r\n mapProjection = c;\r\n fPointArr[i2] = m2831a(mapProjection, (((double) i2) * d) + this.f1774r, m.f3635x, m.f3636y);\r\n this.f1770n[i2 * 3] = fPointArr[i2].f3637x;\r\n this.f1770n[(i2 * 3) + 1] = fPointArr[i2].f3638y;\r\n this.f1770n[(i2 * 3) + 2] = 0.0f;\r\n }\r\n this.f1771o = fPointArr.length;\r\n return;\r\n }\r\n FPoint[] fPointArr2 = new FPoint[3];\r\n this.f1770n = new float[(fPointArr2.length * 3)];\r\n fPoint = new FPoint();\r\n this.f1769m.mo352a(this.f1761e.latitude, this.f1761e.longitude, fPoint);\r\n fPointArr2[0] = fPoint;\r\n fPoint = new FPoint();\r\n this.f1769m.mo352a(this.f1762f.latitude, this.f1762f.longitude, fPoint);\r\n fPointArr2[1] = fPoint;\r\n fPoint = new FPoint();\r\n this.f1769m.mo352a(this.f1763g.latitude, this.f1763g.longitude, fPoint);\r\n fPointArr2[2] = fPoint;\r\n while (i < 3) {\r\n this.f1770n[i * 3] = fPointArr2[i].f3637x;\r\n this.f1770n[(i * 3) + 1] = fPointArr2[i].f3638y;\r\n this.f1770n[(i * 3) + 2] = 0.0f;\r\n i++;\r\n }\r\n this.f1771o = fPointArr2.length;\r\n } catch (Throwable th) {\r\n az.m3143a(th, \"ArcDelegateImp\", \"calMapFPoint\");\r\n th.printStackTrace();\r\n }\r\n }\r\n }", "public abstract int mo9754s();", "public final int mo5380m() {\n RecyclerView recyclerView = this.f9709b;\n C0261jp jpVar = recyclerView != null ? recyclerView.f1067g : null;\n if (jpVar == null) {\n return 0;\n }\n return jpVar.mo2794a();\n }", "public void mo4359a() {\n }", "C2841w mo7234g();", "public void mo7778r() {\n C1617m mVar;\n C1680l lVar;\n long j;\n C1605b c = this.f5559c.mo7539c(C1613i.f5305hP);\n if (c instanceof C1604a) {\n C1604a aVar = (C1604a) c;\n C1604a aVar2 = (C1604a) this.f5559c.mo7539c(C1613i.f5122ds);\n if (aVar2 == null) {\n aVar2 = new C1604a();\n aVar2.mo7490a((C1605b) C1612h.f4886a);\n aVar2.mo7490a(this.f5559c.mo7539c(C1613i.f5288gz));\n }\n ArrayList arrayList = new ArrayList();\n Iterator<C1605b> it = aVar2.iterator();\n while (true) {\n if (!it.hasNext()) {\n break;\n }\n long b = ((C1612h) it.next()).mo7585b();\n int c2 = ((C1612h) it.next()).mo7586c();\n for (int i = 0; i < c2; i++) {\n arrayList.add(Long.valueOf(((long) i) + b));\n }\n }\n Iterator it2 = arrayList.iterator();\n int c3 = aVar.mo7498c(0);\n int c4 = aVar.mo7498c(1);\n int c5 = aVar.mo7498c(2);\n int i2 = c3 + c4 + c5;\n while (!this.f5510a.mo7797d() && it2.hasNext()) {\n byte[] bArr = new byte[i2];\n this.f5510a.mo7789a(bArr);\n int i3 = 0;\n for (int i4 = 0; i4 < c3; i4++) {\n i3 += (bArr[i4] & 255) << (((c3 - i4) - 1) * 8);\n }\n Long l = (Long) it2.next();\n switch (i3) {\n case 1:\n int i5 = 0;\n for (int i6 = 0; i6 < c4; i6++) {\n i5 += (bArr[i6 + c3] & 255) << (((c4 - i6) - 1) * 8);\n }\n int i7 = 0;\n for (int i8 = 0; i8 < c5; i8++) {\n i7 += (bArr[(i8 + c3) + c4] & 255) << (((c5 - i8) - 1) * 8);\n }\n mVar = new C1617m(l.longValue(), i7);\n lVar = this.f5560d;\n j = (long) i5;\n break;\n case 2:\n int i9 = 0;\n for (int i10 = 0; i10 < c4; i10++) {\n i9 += (bArr[i10 + c3] & 255) << (((c4 - i10) - 1) * 8);\n }\n mVar = new C1617m(l.longValue(), 0);\n lVar = this.f5560d;\n j = (long) (-i9);\n break;\n }\n lVar.mo7812a(mVar, j);\n }\n return;\n }\n throw new IOException(\"/W array is missing in Xref stream\");\n }", "public final void mo92082N() {\n }", "void mo1943l();", "public void mo5833c(android.content.Context r7) {\n /*\n r6 = this;\n r0 = 2\n java.lang.String r1 = m3302v() // Catch:{ a -> 0x0097, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x0097, IOException -> 0x008a }\n L_0x0008:\n r0 = 1\n java.lang.String r1 = m3304x() // Catch:{ a -> 0x0094, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x0094, IOException -> 0x008a }\n L_0x0010:\n java.lang.Long r0 = m3303w() // Catch:{ a -> 0x0092, IOException -> 0x008a }\n long r0 = r0.longValue() // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r2 = 25\n r6.mo5829a(r2, r0) // Catch:{ a -> 0x0092, IOException -> 0x008a }\n long r2 = startTime // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r4 = 0\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 == 0) goto L_0x0034\n r2 = 17\n long r3 = startTime // Catch:{ a -> 0x0092, IOException -> 0x008a }\n long r0 = r0 - r3\n r6.mo5829a(r2, r0) // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r0 = 23\n long r1 = startTime // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r6.mo5829a(r0, r1) // Catch:{ a -> 0x0092, IOException -> 0x008a }\n L_0x0034:\n android.view.MotionEvent r0 = r6.f2852jY // Catch:{ a -> 0x0090, IOException -> 0x008a }\n android.util.DisplayMetrics r1 = r6.f2853jZ // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.util.ArrayList r1 = m3296a(r0, r1) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r2 = 14\n r0 = 0\n java.lang.Object r0 = r1.get(r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.lang.Long r0 = (java.lang.Long) r0 // Catch:{ a -> 0x0090, IOException -> 0x008a }\n long r3 = r0.longValue() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r6.mo5829a(r2, r3) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r2 = 15\n r0 = 1\n java.lang.Object r0 = r1.get(r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.lang.Long r0 = (java.lang.Long) r0 // Catch:{ a -> 0x0090, IOException -> 0x008a }\n long r3 = r0.longValue() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r6.mo5829a(r2, r3) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n int r0 = r1.size() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r2 = 3\n if (r0 < r2) goto L_0x0073\n r2 = 16\n r0 = 2\n java.lang.Object r0 = r1.get(r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.lang.Long r0 = (java.lang.Long) r0 // Catch:{ a -> 0x0090, IOException -> 0x008a }\n long r0 = r0.longValue() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r6.mo5829a(r2, r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n L_0x0073:\n r0 = 27\n com.google.android.gms.internal.n r1 = r6.f2854ka // Catch:{ a -> 0x008e, IOException -> 0x008a }\n java.lang.String r1 = m3295a(r7, r1) // Catch:{ a -> 0x008e, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x008e, IOException -> 0x008a }\n L_0x007e:\n r0 = 29\n com.google.android.gms.internal.n r1 = r6.f2854ka // Catch:{ a -> 0x008c, IOException -> 0x008a }\n java.lang.String r1 = m3298b(r7, r1) // Catch:{ a -> 0x008c, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x008c, IOException -> 0x008a }\n L_0x0089:\n return\n L_0x008a:\n r0 = move-exception\n goto L_0x0089\n L_0x008c:\n r0 = move-exception\n goto L_0x0089\n L_0x008e:\n r0 = move-exception\n goto L_0x007e\n L_0x0090:\n r0 = move-exception\n goto L_0x0073\n L_0x0092:\n r0 = move-exception\n goto L_0x0034\n L_0x0094:\n r0 = move-exception\n goto L_0x0010\n L_0x0097:\n r0 = move-exception\n goto L_0x0008\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.C1107j.mo5833c(android.content.Context):void\");\n }", "private final void m711f() {\n /*\n r25 = this;\n r6 = r25\n long r7 = android.os.SystemClock.uptimeMillis()\n awv r0 = r6.f534s\n r11 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n r14 = 1\n r15 = 0\n if (r0 != 0) goto L_0x0013\n goto L_0x0224\n L_0x0013:\n int r1 = r6.f511B\n if (r1 > 0) goto L_0x0221\n akn r0 = r6.f531p\n long r1 = r6.f513D\n r0.mo453a(r1)\n akn r0 = r6.f531p\n akl r1 = r0.f603f\n if (r1 != 0) goto L_0x0025\n goto L_0x0041\n L_0x0025:\n akm r2 = r1.f582f\n boolean r2 = r2.f597g\n if (r2 != 0) goto L_0x00e4\n boolean r1 = r1.mo441b()\n if (r1 == 0) goto L_0x00e4\n akl r1 = r0.f603f\n akm r1 = r1.f582f\n long r1 = r1.f595e\n int r3 = (r1 > r11 ? 1 : (r1 == r11 ? 0 : -1))\n if (r3 == 0) goto L_0x00e4\n int r0 = r0.f604g\n r1 = 100\n if (r0 >= r1) goto L_0x00e4\n L_0x0041:\n akn r0 = r6.f531p\n long r1 = r6.f513D\n akp r3 = r6.f533r\n akl r4 = r0.f603f\n if (r4 == 0) goto L_0x0050\n akm r0 = r0.mo449a(r4, r1)\n goto L_0x005a\n L_0x0050:\n awt r1 = r3.f612b\n long r4 = r3.f614d\n long r2 = r3.f613c\n akm r0 = r0.mo451a(r1, r2)\n L_0x005a:\n if (r0 == 0) goto L_0x00c8\n akn r1 = r6.f531p\n aky[] r2 = r6.f519d\n bgq r3 = r6.f520e\n akk r4 = r6.f522g\n ajd r4 = (p000.ajd) r4\n bhz r4 = r4.f433a\n awv r5 = r6.f534s\n bgr r13 = r6.f521f\n akl r9 = r1.f603f\n if (r9 == 0) goto L_0x007e\n long r11 = r9.f586j\n akm r9 = r9.f582f\n long r9 = r9.f595e\n long r11 = r11 + r9\n long r9 = r0.f592b\n long r9 = r11 - r9\n r18 = r9\n goto L_0x0086\n L_0x007e:\n awt r9 = r0.f591a\n boolean r9 = r9.mo1504a()\n r18 = 0\n L_0x0086:\n akl r9 = new akl\n r16 = r9\n r17 = r2\n r20 = r3\n r21 = r4\n r22 = r5\n r23 = r0\n r24 = r13\n r16.<init>(r17, r18, r20, r21, r22, r23, r24)\n akl r2 = r1.f603f\n if (r2 == 0) goto L_0x00a1\n r2.mo439a(r9)\n goto L_0x00a5\n L_0x00a1:\n r1.f601d = r9\n r1.f602e = r9\n L_0x00a5:\n r2 = 0\n r1.f605h = r2\n r1.f603f = r9\n int r2 = r1.f604g\n int r2 = r2 + r14\n r1.f604g = r2\n aws r1 = r9.f577a\n long r2 = r0.f592b\n r1.mo1483a(r6, r2)\n akn r0 = r6.f531p\n akl r0 = r0.f601d\n if (r0 != r9) goto L_0x00c3\n long r0 = r9.mo434a()\n r6.m691a(r0)\n L_0x00c3:\n r6.m706b(r15)\n goto L_0x00e4\n L_0x00c8:\n akn r0 = r6.f531p\n akl r0 = r0.f603f\n if (r0 == 0) goto L_0x00df\n akx[] r0 = r6.f535t\n int r1 = r0.length\n r2 = 0\n L_0x00d2:\n if (r2 >= r1) goto L_0x00df\n r3 = r0[r2]\n boolean r3 = r3.mo359g()\n if (r3 == 0) goto L_0x00e4\n int r2 = r2 + 1\n goto L_0x00d2\n L_0x00df:\n awv r0 = r6.f534s\n r0.mo1494d()\n L_0x00e4:\n boolean r0 = r6.f539x\n if (r0 == 0) goto L_0x00f2\n boolean r0 = r25.m717l()\n r6.f539x = r0\n r25.m718m()\n goto L_0x00f5\n L_0x00f2:\n r25.m716k()\n L_0x00f5:\n akn r0 = r6.f531p\n akl r0 = r0.f602e\n if (r0 == 0) goto L_0x01ba\n akl r1 = r0.f583g\n if (r1 != 0) goto L_0x012b\n akm r1 = r0.f582f\n boolean r1 = r1.f597g\n if (r1 != 0) goto L_0x0107\n goto L_0x01ba\n L_0x0107:\n r1 = 0\n L_0x0109:\n akx[] r2 = r6.f518c\n int r3 = r2.length\n if (r1 >= r3) goto L_0x0129\n r2 = r2[r1]\n axx[] r3 = r0.f579c\n r3 = r3[r1]\n if (r3 != 0) goto L_0x0117\n goto L_0x0126\n L_0x0117:\n axx r4 = r2.mo358f()\n if (r4 != r3) goto L_0x0126\n boolean r3 = r2.mo359g()\n if (r3 == 0) goto L_0x0126\n r2.mo361i()\n L_0x0126:\n int r1 = r1 + 1\n goto L_0x0109\n L_0x0129:\n goto L_0x01ba\n L_0x012b:\n boolean r1 = r25.m714i()\n if (r1 == 0) goto L_0x01ba\n akl r1 = r0.f583g\n boolean r1 = r1.f580d\n if (r1 == 0) goto L_0x01ba\n bgr r0 = r0.f585i\n akn r1 = r6.f531p\n akl r2 = r1.f602e\n if (r2 == 0) goto L_0x0147\n akl r2 = r2.f583g\n if (r2 == 0) goto L_0x0145\n r2 = 1\n goto L_0x0148\n L_0x0145:\n L_0x0147:\n r2 = 0\n L_0x0148:\n p000.bks.m3512b(r2)\n akl r2 = r1.f602e\n akl r2 = r2.f583g\n r1.f602e = r2\n akl r1 = r1.f602e\n bgr r2 = r1.f585i\n aws r3 = r1.f577a\n long r3 = r3.mo1486c()\n r9 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n int r5 = (r3 > r9 ? 1 : (r3 == r9 ? 0 : -1))\n if (r5 == 0) goto L_0x016a\n r25.m715j()\n r0 = 0\n goto L_0x01bb\n L_0x016a:\n r3 = 0\n L_0x016b:\n akx[] r4 = r6.f518c\n int r5 = r4.length\n if (r3 >= r5) goto L_0x01b9\n r4 = r4[r3]\n boolean r5 = r0.mo1867a(r3)\n if (r5 != 0) goto L_0x0179\n goto L_0x01b6\n L_0x0179:\n boolean r5 = r4.mo362j()\n if (r5 != 0) goto L_0x01b6\n bgm r5 = r2.f3835c\n bgl r5 = r5.mo1861a(r3)\n boolean r9 = r2.mo1867a(r3)\n aky[] r10 = r6.f519d\n r10 = r10[r3]\n int r10 = r10.mo344a()\n akz[] r11 = r0.f3834b\n r11 = r11[r3]\n akz[] r12 = r2.f3834b\n r12 = r12[r3]\n if (r9 == 0) goto L_0x01b3\n boolean r9 = r12.equals(r11)\n if (r9 == 0) goto L_0x01b3\n r9 = 6\n if (r10 != r9) goto L_0x01a5\n goto L_0x01b3\n L_0x01a5:\n akh[] r5 = m701a(r5)\n axx[] r9 = r1.f579c\n r9 = r9[r3]\n long r10 = r1.f586j\n r4.mo353a(r5, r9, r10)\n goto L_0x01b6\n L_0x01b3:\n r4.mo361i()\n L_0x01b6:\n int r3 = r3 + 1\n goto L_0x016b\n L_0x01b9:\n L_0x01ba:\n r0 = 0\n L_0x01bb:\n boolean r1 = r6.f537v\n if (r1 == 0) goto L_0x0224\n akn r1 = r6.f531p\n akl r2 = r1.f601d\n if (r2 == 0) goto L_0x0224\n akl r3 = r2.f583g\n if (r3 == 0) goto L_0x0224\n akl r1 = r1.f602e\n if (r2 == r1) goto L_0x01ce\n goto L_0x01d4\n L_0x01ce:\n boolean r1 = r25.m714i()\n if (r1 == 0) goto L_0x0224\n L_0x01d4:\n long r1 = r6.f513D\n long r3 = r3.mo434a()\n int r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r5 < 0) goto L_0x0224\n if (r0 != 0) goto L_0x01e1\n goto L_0x01e4\n L_0x01e1:\n r25.m703b()\n L_0x01e4:\n akn r0 = r6.f531p\n akl r9 = r0.f601d\n akl r0 = r0.f602e\n if (r9 == r0) goto L_0x01ed\n goto L_0x01f0\n L_0x01ed:\n r25.m715j()\n L_0x01f0:\n akn r0 = r6.f531p\n akl r0 = r0.mo448a()\n r6.m693a(r9)\n akm r0 = r0.f582f\n awt r1 = r0.f591a\n long r2 = r0.f592b\n r4 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n r0 = r25\n akp r0 = r0.m686a(r1, r2, r4)\n r6.f533r = r0\n akm r0 = r9.f582f\n boolean r0 = r0.f596f\n if (r0 != 0) goto L_0x0214\n r0 = 3\n goto L_0x0216\n L_0x0214:\n r0 = 0\n L_0x0216:\n akc r1 = r6.f529n\n r1.mo409b(r0)\n r25.m710e()\n r0 = 1\n goto L_0x01bb\n L_0x0221:\n r0.mo1494d()\n L_0x0224:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r14) goto L_0x022c\n goto L_0x03b3\n L_0x022c:\n r1 = 4\n if (r0 == r1) goto L_0x03b3\n akn r0 = r6.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x03ad\n java.lang.String r4 = \"doSomeWork\"\n p000.blk.m3619a(r4)\n r25.m710e()\n boolean r4 = r0.f580d\n r9 = 1000(0x3e8, double:4.94E-321)\n if (r4 == 0) goto L_0x02b5\n long r4 = android.os.SystemClock.elapsedRealtime()\n long r4 = r4 * r9\n aws r11 = r0.f577a\n akp r12 = r6.f533r\n long r12 = r12.f623m\n long r14 = r6.f527l\n long r12 = r12 - r14\n r11.mo1489d(r12)\n r11 = 0\n r12 = 1\n r14 = 1\n L_0x0258:\n akx[] r13 = r6.f518c\n int r15 = r13.length\n if (r11 >= r15) goto L_0x02b2\n r13 = r13[r11]\n int r15 = r13.mo356d()\n if (r15 == 0) goto L_0x02ad\n long r2 = r6.f513D\n r13.mo484a(r2, r4)\n if (r12 == 0) goto L_0x0275\n boolean r2 = r13.mo486w()\n if (r2 == 0) goto L_0x0274\n r12 = 1\n goto L_0x0276\n L_0x0274:\n L_0x0275:\n r12 = 0\n L_0x0276:\n axx[] r2 = r0.f579c\n r2 = r2[r11]\n axx r3 = r13.mo358f()\n if (r2 != r3) goto L_0x028c\n akl r15 = r0.f583g\n if (r15 == 0) goto L_0x028c\n boolean r15 = r13.mo359g()\n if (r15 == 0) goto L_0x028c\n r15 = 1\n goto L_0x028d\n L_0x028c:\n r15 = 0\n L_0x028d:\n if (r2 == r3) goto L_0x0291\n L_0x028f:\n r2 = 1\n goto L_0x02a0\n L_0x0291:\n if (r15 != 0) goto L_0x028f\n boolean r2 = r13.mo485v()\n if (r2 != 0) goto L_0x028f\n boolean r2 = r13.mo486w()\n if (r2 != 0) goto L_0x028f\n r2 = 0\n L_0x02a0:\n if (r14 != 0) goto L_0x02a4\n L_0x02a2:\n r14 = 0\n goto L_0x02a7\n L_0x02a4:\n if (r2 == 0) goto L_0x02a2\n r14 = 1\n L_0x02a7:\n if (r2 != 0) goto L_0x02ad\n r13.mo363k()\n goto L_0x02ae\n L_0x02ad:\n L_0x02ae:\n int r11 = r11 + 1\n goto L_0x0258\n L_0x02b2:\n r16 = r12\n goto L_0x02be\n L_0x02b5:\n aws r2 = r0.f577a\n r2.mo1482a()\n r14 = 1\n r16 = 1\n L_0x02be:\n akm r2 = r0.f582f\n long r2 = r2.f595e\n r4 = 2\n if (r16 != 0) goto L_0x02c6\n goto L_0x02e9\n L_0x02c6:\n boolean r5 = r0.f580d\n if (r5 == 0) goto L_0x02e9\n r11 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n int r5 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r5 == 0) goto L_0x02db\n akp r5 = r6.f533r\n long r11 = r5.f623m\n int r5 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r5 > 0) goto L_0x02e9\n L_0x02db:\n akm r0 = r0.f582f\n boolean r0 = r0.f597g\n if (r0 == 0) goto L_0x02e9\n r6.m690a(r1)\n r25.m709d()\n goto L_0x036b\n L_0x02e9:\n akp r0 = r6.f533r\n int r2 = r0.f615e\n if (r2 == r4) goto L_0x02f0\n goto L_0x034c\n L_0x02f0:\n akx[] r2 = r6.f535t\n int r2 = r2.length\n if (r2 != 0) goto L_0x02fc\n boolean r0 = r25.m712g()\n if (r0 == 0) goto L_0x034c\n goto L_0x033f\n L_0x02fc:\n if (r14 == 0) goto L_0x034c\n boolean r0 = r0.f617g\n if (r0 == 0) goto L_0x033f\n akn r0 = r6.f531p\n akl r0 = r0.f603f\n boolean r2 = r0.mo441b()\n if (r2 != 0) goto L_0x030d\n L_0x030c:\n goto L_0x0314\n L_0x030d:\n akm r0 = r0.f582f\n boolean r0 = r0.f597g\n if (r0 != 0) goto L_0x033f\n goto L_0x030c\n L_0x0314:\n akk r0 = r6.f522g\n long r2 = r25.m719n()\n ajf r5 = r6.f528m\n akq r5 = r5.mo376Q()\n float r5 = r5.f625b\n boolean r11 = r6.f538w\n long r2 = p000.blm.m3661b(r2, r5)\n if (r11 == 0) goto L_0x032f\n ajd r0 = (p000.ajd) r0\n long r11 = r0.f438f\n goto L_0x0333\n L_0x032f:\n ajd r0 = (p000.ajd) r0\n long r11 = r0.f437e\n L_0x0333:\n r15 = 0\n int r0 = (r11 > r15 ? 1 : (r11 == r15 ? 0 : -1))\n if (r0 <= 0) goto L_0x033f\n int r0 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r0 >= 0) goto L_0x033f\n goto L_0x034c\n L_0x033f:\n r0 = 3\n r6.m690a(r0)\n boolean r0 = r6.f537v\n if (r0 == 0) goto L_0x036b\n r25.m707c()\n goto L_0x036b\n L_0x034c:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n r2 = 3\n if (r0 != r2) goto L_0x036b\n akx[] r0 = r6.f535t\n int r0 = r0.length\n if (r0 != 0) goto L_0x035f\n boolean r0 = r25.m712g()\n if (r0 != 0) goto L_0x036b\n goto L_0x0361\n L_0x035f:\n if (r14 != 0) goto L_0x036b\n L_0x0361:\n boolean r0 = r6.f537v\n r6.f538w = r0\n r6.m690a(r4)\n r25.m709d()\n L_0x036b:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r4) goto L_0x037f\n akx[] r0 = r6.f535t\n int r2 = r0.length\n r3 = 0\n L_0x0375:\n if (r3 >= r2) goto L_0x037f\n r5 = r0[r3]\n r5.mo363k()\n int r3 = r3 + 1\n goto L_0x0375\n L_0x037f:\n boolean r0 = r6.f537v\n if (r0 != 0) goto L_0x0384\n goto L_0x038b\n L_0x0384:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n r2 = 3\n if (r0 == r2) goto L_0x0391\n L_0x038b:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r4) goto L_0x0392\n L_0x0391:\n goto L_0x03a4\n L_0x0392:\n akx[] r2 = r6.f535t\n int r2 = r2.length\n if (r2 != 0) goto L_0x0398\n goto L_0x039e\n L_0x0398:\n if (r0 == r1) goto L_0x039e\n r6.m692a(r7, r9)\n goto L_0x03a9\n L_0x039e:\n bkp r0 = r6.f516a\n r0.mo2044a()\n goto L_0x03a9\n L_0x03a4:\n r0 = 10\n r6.m692a(r7, r0)\n L_0x03a9:\n p000.blk.m3618a()\n return\n L_0x03ad:\n r0 = 10\n r6.m692a(r7, r0)\n return\n L_0x03b3:\n bkp r0 = r6.f516a\n r0.mo2044a()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m711f():void\");\n }", "public int method_2436() {\r\n return 16;\r\n }", "public long mo1981x() throws cf {\r\n return m10270d(m10258F());\r\n }", "private void m6603T() {\n RecordService.C1445b bVar;\n if (!isFinishing() && !this.f5427l && (bVar = this.f5401U) != null) {\n bVar.mo6340a(true);\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"from\", \"1\");\n C1390G.m6779b(\"A107|7|2|7\", hashMap);\n } catch (Exception unused) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"vcode error\");\n }\n }\n }", "private void info3(int i) {\n\t\t\n\t}", "public void m6607X() {\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"is_rename\", \"0\");\n C1390G.m6779b(\"A107|1|3|10\", hashMap);\n HashMap hashMap2 = new HashMap();\n hashMap2.put(\"mark_num\", String.valueOf(this.f5418ga));\n C1390G.m6779b(\"A107|1|3|10\", hashMap2);\n HashMap hashMap3 = new HashMap();\n hashMap3.put(\"rec_time\", String.valueOf(this.f5420ha));\n C1390G.m6779b(\"A107|1|3|10\", hashMap3);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"A107|1|3|10Vcode error:\" + e);\n }\n }", "void mo21072c();", "public void mo21890a() {\n mo21891a(this.f24566d);\n }", "C1458cs mo7613iS();", "int mo27480a();", "public final int mo9382ZU() {\n return 470;\n }", "public abstract void mo70703a(C16180m c16180m);", "public final int mo26232a(C17480i c17480i, int i, int i2) {\n int i3 = -1;\n AppMethodBeat.m2504i(2017);\n if (Math.abs(i2) <= 500 || Math.abs(i) >= Math.abs(i2)) {\n AppMethodBeat.m2505o(2017);\n } else {\n int itemCount = c17480i.getItemCount();\n if (itemCount == 0) {\n AppMethodBeat.m2505o(2017);\n } else {\n int cFY = this.sDo.cFY() + 1;\n if (cFY == -1) {\n AppMethodBeat.m2505o(2017);\n } else {\n boolean z = c17480i.mo1776iG() ? i > 0 : i2 > 0;\n if (c17480i instanceof C37140b) {\n PointF bX = ((C37140b) c17480i).mo1761bX(itemCount - 1);\n if (bX != null) {\n if (bX.x < 0.0f || bX.y < 0.0f) {\n i3 = 1;\n } else {\n i3 = 0;\n }\n if (i3 == 0) {\n if (!z) {\n i3 = cFY + 1;\n }\n i3 = cFY - 1;\n } else {\n if (z) {\n i3 = cFY + 1;\n }\n i3 = cFY - 1;\n }\n C4990ab.m7417i(\"MicroMsg.TopStory.TopStoryVideoPagerSnapHelper\", \"findTargetSnapPosition velocityY: %d centerPosition: %d forwardDirection: %b result: %d currentPlayPos: %d\", Integer.valueOf(i2), Integer.valueOf(cFY), Boolean.valueOf(z), Integer.valueOf(i3), Integer.valueOf(this.sDo.cFY() + 1));\n AppMethodBeat.m2505o(2017);\n }\n }\n i3 = 0;\n if (i3 == 0) {\n }\n C4990ab.m7417i(\"MicroMsg.TopStory.TopStoryVideoPagerSnapHelper\", \"findTargetSnapPosition velocityY: %d centerPosition: %d forwardDirection: %b result: %d currentPlayPos: %d\", Integer.valueOf(i2), Integer.valueOf(cFY), Boolean.valueOf(z), Integer.valueOf(i3), Integer.valueOf(this.sDo.cFY() + 1));\n AppMethodBeat.m2505o(2017);\n }\n }\n }\n return i3;\n }", "void mo304a(C0366h c0366h);", "public static int offset_infos_log_src() {\n return (16 / 8);\n }", "public int method_2832() {\n return this.field_1651;\n }", "public void mo21786K() {\n }", "public void mo44053a() {\n }", "public void mo3812h() {\n for (int i = 0; i < 6; i++) {\n this.f1426A[i].mo3751a().mo3882c();\n }\n }", "protected void m10364g() {\n this.f9056t.mo4019a(this.f9052p.m15391H());\n this.f9055s.mo4019a(this.f9051o.m15391H());\n }", "void mo21076g();", "public void mo7623i() {\n int size = this.f4373c.size();\n for (int i = 0; i < size; i++) {\n this.f4374d.mo7441d(this.f4373c.get(i));\n }\n mo7636x(this.f4373c);\n this.f4378h = 0;\n }", "public void mo21867i() {\n mo21877s();\n }", "public void mo21787L() {\n }", "protected void mo6255a() {\n }", "public void mo3108c() {\n this.f2612h = Mode.valueOf(this.f2613i);\n int i = this.f2605a;\n if (i != -1) {\n if (i != 1) {\n if (i != 2) {\n if (i == 3) {\n this.f2606b = this.f2607c;\n return;\n } else if (i != 4) {\n if (i != 5) {\n return;\n }\n }\n }\n this.f2606b = new String(this.f2607c, Charset.forName(\"UTF-16\"));\n return;\n }\n Parcelable parcelable = this.f2608d;\n if (parcelable != null) {\n this.f2606b = parcelable;\n return;\n }\n byte[] bArr = this.f2607c;\n this.f2606b = bArr;\n this.f2605a = 3;\n this.f2609e = 0;\n this.f2610f = bArr.length;\n return;\n }\n Parcelable parcelable2 = this.f2608d;\n if (parcelable2 != null) {\n this.f2606b = parcelable2;\n return;\n }\n throw new IllegalArgumentException(\"Invalid icon\");\n }", "public void mo21784I() {\n }", "public void mo37873b() {\n C13262e.this.mo38103a(this.f34241f, this.f34242g, this.f34243h);\n }", "public boolean mo33814a(byte[] r17, int r18, int r19, boolean r20) {\n /*\n r16 = this;\n r0 = r16\n int r1 = r0.f15318c\n r2 = 0\n r3 = 6\n if (r1 != r3) goto L_0x0009\n return r2\n L_0x0009:\n int r4 = r19 + r18\n int r5 = r0.f15319d\n byte[] r6 = r0.f15314a\n int[] r7 = r0.f15320e\n r8 = r5\n r9 = 0\n r5 = r1\n r1 = r18\n L_0x0016:\n r10 = 3\n r11 = 4\n r12 = 2\n r13 = 1\n if (r1 >= r4) goto L_0x00f1\n if (r5 != 0) goto L_0x0063\n L_0x001e:\n int r14 = r1 + 4\n if (r14 > r4) goto L_0x005f\n byte r8 = r17[r1]\n r8 = r8 & 255(0xff, float:3.57E-43)\n r8 = r7[r8]\n int r8 = r8 << 18\n int r15 = r1 + 1\n byte r15 = r17[r15]\n r15 = r15 & 255(0xff, float:3.57E-43)\n r15 = r7[r15]\n int r15 = r15 << 12\n r8 = r8 | r15\n int r15 = r1 + 2\n byte r15 = r17[r15]\n r15 = r15 & 255(0xff, float:3.57E-43)\n r15 = r7[r15]\n int r15 = r15 << r3\n r8 = r8 | r15\n int r15 = r1 + 3\n byte r15 = r17[r15]\n r15 = r15 & 255(0xff, float:3.57E-43)\n r15 = r7[r15]\n r8 = r8 | r15\n if (r8 < 0) goto L_0x005f\n int r1 = r9 + 2\n byte r15 = (byte) r8\n r6[r1] = r15\n int r1 = r9 + 1\n int r15 = r8 >> 8\n byte r15 = (byte) r15\n r6[r1] = r15\n int r1 = r8 >> 16\n byte r1 = (byte) r1\n r6[r9] = r1\n int r9 = r9 + 3\n r1 = r14\n goto L_0x001e\n L_0x005f:\n if (r1 < r4) goto L_0x0063\n goto L_0x00f1\n L_0x0063:\n int r14 = r1 + 1\n byte r1 = r17[r1]\n r1 = r1 & 255(0xff, float:3.57E-43)\n r1 = r7[r1]\n r15 = 5\n r2 = -1\n if (r5 == 0) goto L_0x00e1\n if (r5 == r13) goto L_0x00d5\n r13 = -2\n if (r5 == r12) goto L_0x00c1\n if (r5 == r10) goto L_0x008e\n if (r5 == r11) goto L_0x0082\n if (r5 == r15) goto L_0x007c\n goto L_0x00ed\n L_0x007c:\n if (r1 == r2) goto L_0x00ed\n r0.f15318c = r3\n L_0x0080:\n r10 = 0\n return r10\n L_0x0082:\n r10 = 0\n if (r1 != r13) goto L_0x0089\n int r5 = r5 + 1\n goto L_0x00ed\n L_0x0089:\n if (r1 == r2) goto L_0x00ed\n r0.f15318c = r3\n return r10\n L_0x008e:\n if (r1 < 0) goto L_0x00a9\n int r2 = r8 << 6\n r1 = r1 | r2\n int r2 = r9 + 2\n byte r5 = (byte) r1\n r6[r2] = r5\n int r2 = r9 + 1\n int r5 = r1 >> 8\n byte r5 = (byte) r5\n r6[r2] = r5\n int r2 = r1 >> 16\n byte r2 = (byte) r2\n r6[r9] = r2\n int r9 = r9 + 3\n r8 = r1\n r5 = 0\n goto L_0x00ed\n L_0x00a9:\n if (r1 != r13) goto L_0x00bb\n int r1 = r9 + 1\n int r2 = r8 >> 2\n byte r2 = (byte) r2\n r6[r1] = r2\n int r1 = r8 >> 10\n byte r1 = (byte) r1\n r6[r9] = r1\n int r9 = r9 + 2\n r5 = 5\n goto L_0x00ed\n L_0x00bb:\n if (r1 == r2) goto L_0x00ed\n r0.f15318c = r3\n L_0x00bf:\n r1 = 0\n return r1\n L_0x00c1:\n if (r1 < 0) goto L_0x00c4\n goto L_0x00d8\n L_0x00c4:\n if (r1 != r13) goto L_0x00d0\n int r1 = r9 + 1\n int r2 = r8 >> 4\n byte r2 = (byte) r2\n r6[r9] = r2\n r9 = r1\n r5 = 4\n goto L_0x00ed\n L_0x00d0:\n if (r1 == r2) goto L_0x00ed\n r0.f15318c = r3\n goto L_0x0080\n L_0x00d5:\n r10 = 0\n if (r1 < 0) goto L_0x00dc\n L_0x00d8:\n int r2 = r8 << 6\n r1 = r1 | r2\n goto L_0x00e4\n L_0x00dc:\n if (r1 == r2) goto L_0x00ed\n r0.f15318c = r3\n return r10\n L_0x00e1:\n r10 = 0\n if (r1 < 0) goto L_0x00e8\n L_0x00e4:\n int r5 = r5 + 1\n r8 = r1\n goto L_0x00ed\n L_0x00e8:\n if (r1 == r2) goto L_0x00ed\n r0.f15318c = r3\n return r10\n L_0x00ed:\n r1 = r14\n r2 = 0\n goto L_0x0016\n L_0x00f1:\n if (r20 != 0) goto L_0x00fa\n r0.f15318c = r5\n r0.f15319d = r8\n r0.f15315b = r9\n return r13\n L_0x00fa:\n if (r5 == r13) goto L_0x0122\n if (r5 == r12) goto L_0x0115\n if (r5 == r10) goto L_0x0106\n if (r5 == r11) goto L_0x0103\n goto L_0x011d\n L_0x0103:\n r0.f15318c = r3\n goto L_0x00bf\n L_0x0106:\n int r1 = r9 + 1\n int r2 = r8 >> 10\n byte r2 = (byte) r2\n r6[r9] = r2\n int r9 = r1 + 1\n int r2 = r8 >> 2\n byte r2 = (byte) r2\n r6[r1] = r2\n goto L_0x011d\n L_0x0115:\n int r1 = r9 + 1\n int r2 = r8 >> 4\n byte r2 = (byte) r2\n r6[r9] = r2\n r9 = r1\n L_0x011d:\n r0.f15318c = r5\n r0.f15315b = r9\n return r13\n L_0x0122:\n r0.f15318c = r3\n goto L_0x00bf\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p118io.branch.referral.C5985a.C5987b.mo33814a(byte[], int, int, boolean):boolean\");\n }", "public void method_4270() {}", "public final /* synthetic */ void mo9024k() {\n C3517a.m12960a(this.f8025c, (int) R.string.f0l);\n HashMap hashMap = new HashMap();\n hashMap.put(\"error_type\", \"1\");\n C8443c.m25663a().mo21606a(\"livesdk_anchor_network_error\", hashMap, new Object[0]);\n }", "private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }", "public final int mo4456a(C1902e c1902e, C1202f c1202f) {\n AppMethodBeat.m2504i(73517);\n this.ehi = c1202f;\n try {\n long yz = C5046bo.m7588yz();\n C1196a c1196a = new C1196a();\n c1196a.fsJ = new aip();\n c1196a.fsK = new aiq();\n c1196a.uri = \"/cgi-bin/mmexptappsvr-bin/getexptconfig\";\n c1196a.fsI = 2738;\n c1196a.fsL = 0;\n c1196a.fsM = 0;\n C7472b acD = c1196a.acD();\n aip aip = (aip) acD.fsG.fsP;\n aip.Scene = this.lNQ;\n aip.woB = ((Integer) C1720g.m3536RP().mo5239Ry().get(C5127a.USERINFO_GET_EXPT_LAST_TIME_SEC_INT, Integer.valueOf(0))).intValue();\n List<C7503a> brw = C45898a.bqR().lNF.brw();\n if (brw != null && brw.size() > 0) {\n aip.woC = new LinkedList();\n for (C7503a c7503a : brw) {\n C35969zf c35969zf = new C35969zf();\n c35969zf.weA = c7503a.field_exptId;\n c35969zf.weB = c7503a.field_groupId;\n c35969zf.weC = c7503a.field_exptSeq;\n aip.woC.add(c35969zf);\n }\n C4990ab.m7417i(\"MicroMsg.NetSceneGetExpt\", \"req local exptList [%s] \", Arrays.toString(brw.toArray()));\n }\n C7060h.pYm.mo8378a(863, 0, 1, false);\n String str = \"MicroMsg.NetSceneGetExpt\";\n String str2 = \"get expt config scene[%d] lastGetSvrSec[%d] localExptList[%d] cost[%d]\";\n Object[] objArr = new Object[4];\n objArr[0] = Integer.valueOf(aip.Scene);\n objArr[1] = Integer.valueOf(aip.woB);\n objArr[2] = Integer.valueOf(aip.woC != null ? aip.woC.size() : 0);\n objArr[3] = Long.valueOf(C5046bo.m7525az(yz));\n C4990ab.m7417i(str, str2, objArr);\n int a = mo4457a(c1902e, acD, this);\n AppMethodBeat.m2505o(73517);\n return a;\n } catch (Exception e) {\n C4990ab.printErrStackTrace(\"MicroMsg.NetSceneGetExpt\", e, \"get expt error\", new Object[0]);\n AppMethodBeat.m2505o(73517);\n return -1;\n }\n }", "C4945r5 mo19057F();", "public static int m8651d() {\n return 4;\n }", "public final void mo92084P() {\n }", "public void init241()\n {\n\t \twidth= p2[21]<<24 | p2[20]<<16 | p2[19]<<8 | p2[18];\n\n\n\n\t\theight= p2[25]<<24 | p2[24]<<16 | p2[23]<<8 | p2[22];\n\n\n\t\tint extra=(width*3)%4;\n \tif(extra!=0)\n \tpadding=4-extra;\n int x,z=54;\n l=0;\n int j=0;\n i=0;\n for(int q=0;q<height;q++)\n {\n x=0;\n \t while(x<width)\n \t{\n \t b=p2[z]&0xff;\n binary[j++]=b&0x01;\n g=p2[z+1]&0xff;\n binary[j++]=g&0x01;\n \t r=p2[z+2]&0xff;\n binary[j++]=r&0x01;\n \t pix[l]= 255<<24 | r<<16 | g<<8 | b;\n z=z+3;\n x++;\n \t l++;\n }\n z=z+padding;\n }\n int k;\n x=0;\n stringcon();\n\n\n\tfor(i=l-width;i>=0;i=i-width)\n\t{\n\t\tfor(k=0;k<width;k++)\n\t\t{\n\t\tpixels[x]=pix[i+k];\n// pixels1[x]=pix[i+k];\n\t\tx++;\n\t\t}\n\t}\n}", "public void mo21791P() {\n }", "public void mo21780E() {\n }", "public void mo21785J() {\n }", "void mo80452a();", "public void mo3749d() {\n }", "void mo1507n();", "void mo57278c();", "public void mo3770E() {\n int i = this.f1434I;\n int i2 = this.f1435J;\n this.f1462ak = i;\n this.f1463al = i2;\n this.f1464am = (this.f1430E + i) - i;\n this.f1465an = (this.f1431F + i2) - i2;\n }", "public void mo21779D() {\n }", "public void mo2470d() {\n }", "public abstract int mo8526p();", "public abstract int mo9753r();", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "public final void mo92083O() {\n }", "public final int mo40473a() {\n int a = super.mo40473a() + bbf.m48355b(1, this.f41423c.intValue());\n if (this.f41424d != null) {\n a += bbf.m48357b(2, this.f41424d);\n }\n if (this.f41425e != null) {\n a += bbf.m48356b(3, (bbl) this.f41425e);\n }\n if (this.f41430k != null && this.f41430k.length > 0) {\n int i = 0;\n for (int a2 : this.f41430k) {\n i += bbf.m48348a(a2);\n }\n a = a + i + (this.f41430k.length * 1);\n }\n if (this.f41426f != null) {\n a += bbf.m48355b(8, this.f41426f.intValue());\n }\n if (this.f41427g == null || this.f41427g.length <= 0) {\n return a;\n }\n int i2 = 0;\n int i3 = 0;\n for (String str : this.f41427g) {\n if (str != null) {\n i3++;\n i2 += bbf.m48350a(str);\n }\n }\n return a + i2 + (i3 * 1);\n }", "void m8367a();", "public abstract void mo27385c();", "public void skystonePos4() {\n }" ]
[ "0.60562843", "0.57850367", "0.5689675", "0.56884515", "0.5614564", "0.5554529", "0.55322886", "0.549983", "0.54960865", "0.5472348", "0.5454658", "0.54429793", "0.5433138", "0.5428512", "0.54281086", "0.54280883", "0.54258776", "0.5421291", "0.5421291", "0.5421291", "0.5421291", "0.5421291", "0.5421291", "0.5421291", "0.54139036", "0.5411142", "0.5398781", "0.5381926", "0.53777987", "0.53773755", "0.5373578", "0.53712946", "0.53695756", "0.53603977", "0.5358276", "0.5358215", "0.53567916", "0.53510004", "0.53482175", "0.5347847", "0.53410083", "0.5339741", "0.5318726", "0.5313966", "0.5306941", "0.53046435", "0.5300648", "0.5298183", "0.5286879", "0.5286061", "0.52785504", "0.52694815", "0.526717", "0.5266889", "0.5266088", "0.5265341", "0.5258565", "0.5256719", "0.52548385", "0.52526957", "0.525263", "0.5242078", "0.5241159", "0.52410567", "0.5240804", "0.5235361", "0.5231432", "0.5227834", "0.52271867", "0.52266777", "0.52249116", "0.5223236", "0.5222293", "0.52200216", "0.52190554", "0.52091235", "0.5206763", "0.52007407", "0.5199495", "0.5199348", "0.51982087", "0.5194551", "0.5193293", "0.5189226", "0.5181405", "0.51811767", "0.51786494", "0.5177795", "0.5177445", "0.51668805", "0.51646566", "0.51632684", "0.51631975", "0.5159579", "0.51589906", "0.51562697", "0.5151471", "0.51487964", "0.5144291", "0.5143915", "0.51435935" ]
0.0
-1
/ 391: / 392:
public void cargarConceptoRetencion() /* 393: */ { /* 394: */ try /* 395: */ { /* 396:387 */ this.listaConceptoRetencionSRI = this.servicioConceptoRetencionSRI.getConceptoListaRetencionPorFecha(this.facturaProveedorSRI.getFechaRegistro()); /* 397: */ } /* 398: */ catch (Exception e) /* 399: */ { /* 400:390 */ addErrorMessage(getLanguageController().getMensaje("msg_error_cargar_datos")); /* 401: */ } /* 402: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo3194r();", "public void method_4270() {}", "public int arn() {\n return 383;\n }", "public void mo9233aH() {\n }", "public void mo21794S() {\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "void mo303a(C0237a c0237a, String str, String str2, String str3);", "public void mo21789N() {\n }", "public void mo21793R() {\n }", "public void mo21877s() {\n }", "public void mo12628c() {\n }", "public void mo21791P() {\n }", "private void kk12() {\n\n\t}", "public void mo21787L() {\n }", "static C2395k m11983b() {\n return new C2395k(\"While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either than the input has been truncated or that an embedded message misreported its own length.\");\n }", "C2451d mo3408a(C2457e c2457e);", "public final void mo92082N() {\n }", "public void mo4683c() {\n mo4679a(3);\n }", "public void mo21879u() {\n }", "public void mo3376r() {\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "@Test(timeout = 4000)\n public void test53() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The database key of the entry being cross referenced. Any fields that are missing from the current record are inherited from the field being cross referenced.\");\n assertEquals(\"th databas key of th entr being cros refer. any field that ar mis from th cur record ar inherit from th field being cros refer.\", string0);\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo21786K() {\n }", "public void mo55254a() {\n }", "public void mo38117a() {\n }", "C1458cs mo7613iS();", "public void mo21792Q() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "void mo8715r(String str, String str2, String str3);", "public void mo21785J() {\n }", "public void mo23813b() {\n }", "private void m50366E() {\n }", "void mo1943l();", "void mo1493c();", "public void mo44053a() {\n }", "public void mo12930a() {\n }", "C45321i mo90380a();", "public void mo21878t() {\n }", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public void mo9848a() {\n }", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "public void func_70295_k_() {}", "C2841w mo7234g();", "public void mo21779D() {\n }", "public void mo21795T() {\n }", "public abstract void mo2153a(CharSequence charSequence);", "String mo10312id();", "public void mo115190b() {\n }", "public void mo6081a() {\n }", "public void mo3749d() {\n }", "public abstract void mo53562a(C18796a c18796a);", "private void m9222a(C5915m c5915m) {\n int i = 0;\n switch (c5915m.dRL()) {\n case 0:\n C31085l.m50143a(this.AAJ, 0, (long) c5915m.readByte());\n return;\n case 2:\n C31085l.m50143a(this.AAJ, 2, (long) c5915m.readShort());\n return;\n case 3:\n C31085l.m50144b(this.AAJ, 3, (long) c5915m.readChar());\n return;\n case 4:\n C31085l.m50143a(this.AAJ, 4, (long) c5915m.readInt());\n return;\n case 6:\n C31085l.m50143a(this.AAJ, 6, c5915m.readLong());\n return;\n case 16:\n C31085l.m50145c(this.AAJ, 16, ((long) Float.floatToIntBits(c5915m.readFloat())) << 32);\n return;\n case 17:\n C31085l.m50145c(this.AAJ, 17, Double.doubleToLongBits(c5915m.readDouble()));\n return;\n case 23:\n C31085l.m50144b(this.AAJ, 23, (long) C5920a.this.mo12572RL(c5915m.dRP()));\n return;\n case 24:\n C31085l.m50144b(this.AAJ, 24, (long) C5920a.this.mo12573RM(c5915m.dRQ()));\n return;\n case 25:\n C31085l.m50144b(this.AAJ, 25, (long) C5920a.this.mo12575RO(c5915m.dRR()));\n return;\n case 26:\n C31085l.m50144b(this.AAJ, 26, (long) C5920a.this.mo12576RP(c5915m.dRT()));\n return;\n case 27:\n C31085l.m50144b(this.AAJ, 27, (long) C5920a.this.mo12575RO(c5915m.dRS()));\n return;\n case C31128d.MIC_BASE_CHANNELSHARPEN /*28*/:\n m9223id(28, 0);\n mo12590c(c5915m);\n return;\n case 29:\n m9223id(29, 0);\n mo12589b(c5915m);\n return;\n case 30:\n c5915m.dRU();\n m9223id(30, 0);\n return;\n case 31:\n if (c5915m.readBoolean()) {\n i = 1;\n }\n m9223id(31, i);\n return;\n default:\n throw new C36548j(\"Unexpected type: \" + Integer.toHexString(c5915m.dRL()));\n }\n }", "void mo57278c();", "void mo1582a(String str, C1329do c1329do);", "public void mo21788M() {\n }", "public void mo21890a() {\n mo21891a(this.f24566d);\n }", "void mo64942a(String str, long j, long j2);", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "String mo20731c();", "static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public abstract long mo9229aD();", "static zzco m26829a() {\n return new zzco(\"While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.\");\n }", "void mo5875b(String str, long j);", "void mo4873a(C4718l c4718l);", "public abstract int mo9749n();", "void mo304a(C0366h c0366h);", "public void mo21780E() {\n }", "C15430g mo56154a();", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "private void m91737K() {\n String str = this.f73944a;\n boolean z = true;\n if (this.f73953m != 1) {\n z = false;\n }\n C28141am.m92411a(new C28311ag(str, z), new C28312ah(this.f73949f.hashCode()), this.f73944a);\n }", "C7562b<C10403b, C10328a> mo25041a();", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "private static int m13704a(C2085b c2085b, int i, long j, int i2, C2302k c2302k, int i3) {\n Object obj;\n int[] iArr;\n long j2;\n C2085b c2085b2 = c2085b;\n c2302k.m8388c(8);\n int b = C2087a.m7471b(c2302k.m8403o());\n Track track = c2085b2.f5791c;\n C2102i c2102i = c2085b2.f5790b;\n C2093c c2093c = c2102i.f5938a;\n c2102i.f5945h[i] = c2302k.m8409u();\n c2102i.f5944g[i] = c2102i.f5940c;\n if ((b & 1) != 0) {\n long[] jArr = c2102i.f5944g;\n jArr[i] = jArr[i] + ((long) c2302k.m8403o());\n }\n Object obj2 = (b & 4) != 0 ? 1 : null;\n int i4 = c2093c.f5892d;\n if (obj2 != null) {\n i4 = c2302k.m8409u();\n }\n Object obj3 = (b & 256) != 0 ? 1 : null;\n Object obj4 = (b & 512) != 0 ? 1 : null;\n Object obj5 = (b & 1024) != 0 ? 1 : null;\n Object obj6 = (b & ItemAnimator.FLAG_MOVED) != 0 ? 1 : null;\n long j3 = 0;\n if (track.f5810h != null && track.f5810h.length == 1 && track.f5810h[0] == 0) {\n j3 = C2314v.m8492d(track.f5811i[0], 1000, track.f5805c);\n }\n int[] iArr2 = c2102i.f5946i;\n int[] iArr3 = c2102i.f5947j;\n long[] jArr2 = c2102i.f5948k;\n int i5 = i4;\n boolean[] zArr = c2102i.f5949l;\n int[] iArr4 = iArr2;\n Object obj7 = (track.f5804b != 2 || (i2 & 1) == 0) ? null : 1;\n i4 = i3 + c2102i.f5945h[i];\n long[] jArr3 = jArr2;\n long j4 = j3;\n long j5 = track.f5805c;\n if (i > 0) {\n obj = obj7;\n iArr = iArr3;\n j2 = c2102i.f5956s;\n } else {\n obj = obj7;\n iArr = iArr3;\n j2 = j;\n }\n int i6 = i3;\n while (i6 < i4) {\n Object obj8;\n int i7;\n Object obj9;\n int u = obj3 != null ? c2302k.m8409u() : c2093c.f5890b;\n int u2 = obj4 != null ? c2302k.m8409u() : c2093c.f5891c;\n if (i6 == 0 && obj2 != null) {\n obj8 = obj2;\n i7 = i5;\n } else if (obj5 != null) {\n i7 = c2302k.m8403o();\n obj8 = obj2;\n } else {\n obj8 = obj2;\n i7 = c2093c.f5892d;\n }\n if (obj6 != null) {\n obj9 = obj6;\n iArr[i6] = (int) ((((long) c2302k.m8403o()) * 1000) / j5);\n } else {\n obj9 = obj6;\n iArr[i6] = 0;\n }\n jArr3[i6] = C2314v.m8492d(j2, 1000, j5) - j4;\n iArr4[i6] = u2;\n boolean z = ((i7 >> 16) & 1) == 0 && (obj == null || i6 == 0);\n zArr[i6] = z;\n i6++;\n j2 += (long) u;\n obj2 = obj8;\n obj6 = obj9;\n C2302k c2302k2 = c2302k;\n }\n c2102i.f5956s = j2;\n return i4;\n }", "public void mo21781F() {\n }", "void mo12638c();", "long getUnknown72();", "void mo1507n();", "public void mo1531a() {\n }", "public void mo115188a() {\n }", "public void mo21784I() {\n }", "public void mo37873b() {\n C13262e eVar = C13262e.this;\n eVar.f34192f.mo38031a(eVar);\n }", "public void m23075a() {\n }", "private void m6603T() {\n RecordService.C1445b bVar;\n if (!isFinishing() && !this.f5427l && (bVar = this.f5401U) != null) {\n bVar.mo6340a(true);\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"from\", \"1\");\n C1390G.m6779b(\"A107|7|2|7\", hashMap);\n } catch (Exception unused) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"vcode error\");\n }\n }\n }", "public void mo6944a() {\n }", "public static long m3983tj(String str) {\n AppMethodBeat.m2504i(93203);\n int lastIndexOf = str.lastIndexOf(\";?enc=\");\n if (lastIndexOf > 0) {\n long anl = C5046bo.anl(str.substring(lastIndexOf + 6));\n AppMethodBeat.m2505o(93203);\n return anl;\n }\n AppMethodBeat.m2505o(93203);\n return 0;\n }", "public void mo33392b() {\n mo33395e();\n }", "void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);", "void mo7375a(C1320b bVar, int i, String str, Uri uri, String str2, String str3) throws RemoteException;", "public void mo21825b() {\n }", "abstract String mo1748c();", "public void mo56167c() {\n }", "public void mo9824b(String str) {\n int i;\n int i2;\n try {\n int length = str.length() * 3;\n int i3 = C3670m.m8671i(length);\n int i4 = i3 + length;\n if (i4 > this.f9107e) {\n byte[] bArr = new byte[length];\n int a = C3700r1.m8885a(str, bArr, 0, length);\n mo9814c(a);\n mo9826b(bArr, 0, a);\n return;\n }\n if (i4 > this.f9107e - this.f9108f) {\n mo9827i();\n }\n int i5 = C3670m.m8671i(str.length());\n i = this.f9108f;\n if (i5 == i3) {\n int i6 = i + i5;\n this.f9108f = i6;\n int a2 = C3700r1.m8885a(str, this.f9106d, i6, this.f9107e - i6);\n this.f9108f = i;\n i2 = (a2 - i) - i5;\n mo9820l(i2);\n this.f9108f = a2;\n } else {\n i2 = C3700r1.m8884a((CharSequence) str);\n mo9820l(i2);\n this.f9108f = C3700r1.m8885a(str, this.f9106d, this.f9108f, i2);\n }\n this.f9109g += i2;\n } catch (C3703c e) {\n this.f9109g -= this.f9108f - i;\n this.f9108f = i;\n throw e;\n } catch (ArrayIndexOutOfBoundsException e2) {\n throw new C3674d(e2);\n } catch (C3703c e3) {\n mo9808a(str, e3);\n }\n }", "C5727e mo33224a();" ]
[ "0.577474", "0.57159567", "0.5673927", "0.565971", "0.56313527", "0.5624948", "0.5596135", "0.55783194", "0.55603135", "0.5545627", "0.5540048", "0.5535132", "0.54980546", "0.5474406", "0.54610354", "0.54583246", "0.5452771", "0.54480803", "0.5434101", "0.5425269", "0.5417709", "0.5414502", "0.5414385", "0.5414385", "0.5414385", "0.5414385", "0.5414385", "0.5414385", "0.5414385", "0.541429", "0.5408282", "0.54067254", "0.5403243", "0.540124", "0.53995657", "0.5384021", "0.537959", "0.5370758", "0.5360982", "0.53598005", "0.5334763", "0.53319544", "0.5328117", "0.5323631", "0.5318237", "0.5314445", "0.5312136", "0.5311583", "0.5311096", "0.53069484", "0.53067565", "0.5300838", "0.5296083", "0.52914804", "0.5273889", "0.52675736", "0.5261049", "0.5252614", "0.5251847", "0.524927", "0.52468234", "0.52460074", "0.5245658", "0.5242926", "0.52423924", "0.52372825", "0.523445", "0.5234324", "0.5234291", "0.5234245", "0.52261525", "0.5219047", "0.5218243", "0.5213776", "0.5209131", "0.5209021", "0.5207965", "0.5200389", "0.51990616", "0.5198408", "0.5194236", "0.5190425", "0.5189169", "0.5187943", "0.5186926", "0.51848274", "0.51796794", "0.5177939", "0.5177833", "0.5177662", "0.5177191", "0.5171391", "0.5169376", "0.51690954", "0.51678514", "0.516579", "0.51637876", "0.5159445", "0.5157359", "0.51527095", "0.5151973" ]
0.0
-1
/ 403: / 404:
public String agregarDetalleFacturaSRI() /* 405: */ { /* 406:401 */ this.servicioFacturaProveedorSRI.cargarDetalleRetencion(this.facturaProveedorSRI, null, null); /* 407: */ /* 408:403 */ return ""; /* 409: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/denied\", method = RequestMethod.GET)\r\n\tpublic String getDeniedPage() {\r\n\t\treturn \"403\";\r\n\t}", "@GetMapping(\"notfound\")\n public void notFound()\n {\n throw new NotFoundException(\"404\", \"404 Not Found - NotFoundException\");\n }", "@RequestMapping(value = \"/access-denied.do\", method = RequestMethod.GET)\n public String accessDenied(HttpServletRequest request, Model model) {\n logger.debug(\"SMNLOG:ACCESS DENIED\");\n return \"accessDenied\";\n }", "public String formForbidden()\r\n {\r\n return formError(\"403 Forbidden\",\"You need permission for this service\");\r\n }", "private String httpNotOk() {\n return \"HTTP/1.1 404 not Found\\r\\n\"\n + \"Content-Type: text/html\\r\\n\"\n + \"\\r\\n\"\n + \"<!DOCTYPE html>\\n\"\n + \"<html>\\n\"\n + \"<head>\\n\"\n + \"<meta charset=\\\"UTF-8\\\">\\n\"\n + \"<title>Error</title>\\n\"\n + \"</head>\\n\"\n + \"<body>\\n\"\n + \"<h1>There is an error</h1>\\n\"\n + \"</body>\\n\"\n + \"</html>\\n\";\n }", "public static Result accessDenied() {\n return ok(buildExtendResponse(\"ACCESS DENIED\"));\n }", "@GetMapping(\"/access-denied\")\n\tpublic String displayAccessDeniedPage() {\n\t\treturn \"error/access-denied\";\n\t}", "@RequestMapping(value = \"/403\", method = RequestMethod.GET)\n \tpublic ModelAndView accesssDenied() {\n\n \t ModelAndView model = new ModelAndView();\n \t\t\n \t //check if user is login\n \t Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n \t if (!(auth instanceof AnonymousAuthenticationToken)) {\n \t\tUserDetails userDetail = (UserDetails) auth.getPrincipal();\t\n \t\tmodel.addObject(\"username\", userDetail.getUsername());\n \t }\n \t\t\n \t model.setViewName(\"403\");\n \t return model;\n\n \t}", "public String formNotAllowed()\r\n {\r\n return formError(\"403 Access Denied\",\"Access is not allowed\");\r\n }", "@SuppressWarnings(\"unused\")\n protected static HttpResponseImpl createForbidden(final String ip) {\n final HttpResponseImpl res = new HttpResponseImpl(403, \"Forbidden\", \"text/html\");\n final PrintWriter body;\n try {\n body = res.getWriter();\n } catch (final IOException e) { // normally impossible\n return res;\n }\n\n body.println(\"<html>\");\n body.println(\"<body>\");\n body.println(\"<h3>Forbidden</h3>\");\n body.println(\"<br><br>\");\n // Add more text here\n // IP not allowed, etc.\n body.println(\"IP address: \" + ip + \" is not registered on this server, please contact your system administrator.\");\n body.println(\"</body>\");\n body.println(\"</html>\");\n\n return res;\n }", "private static void writeNotFound(\n final ChannelHandlerContext ctx,\n final FullHttpRequest request) {\n\n writeErrorResponse(ctx, request, HttpResponseStatus.NOT_FOUND);\n }", "@RequestMapping(value = \"/404\", method = RequestMethod.GET)\n public String notFoundPage(){\n return \"_404\";\n }", "@RequestMapping(value = \"/errors/403\", method = RequestMethod.GET)\r\n \tpublic ModelAndView accesssDenied(HttpServletRequest req, Principal user) {\r\n \r\n \t\tModelAndView model = new ModelAndView();\r\n \r\n \t\tif (user != null)\r\n \t\t\tmodel.addObject(\"message\", user.getName() + \", vous n'avez pas les droits\");\r\n \t\telse\r\n \t\t\tmodel.addObject(\"message\", \"Vous n'avez pas les droits\");\r\n \t\t\r\n \t\tmodel.addObject(\"retUrl\", req.getHeader(\"referer\"));\r\n \t\t\r\n \t\tmodel.setViewName(\"/errors/403\");\r\n \t\treturn model;\r\n \t}", "@Error(status = HttpStatus.NOT_FOUND, global = true)\n public HttpResponse<?> notFound(HttpRequest<?> request) {\n if (request.getHeaders()\n .accept()\n .stream()\n .anyMatch(mediaType -> mediaType.getName().contains(MediaType.TEXT_HTML))) {\n return HttpResponse.ok(\"<h1>not found</h1>\")\n .contentType(MediaType.TEXT_HTML);\n }\n\n JsonError error = new JsonError(\"Page Not Found\")\n .link(Link.SELF, Link.of(request.getUri()));\n\n return HttpResponse.<JsonError>notFound()\n .body(error);\n }", "@Test\n public void negativeScenario(){\n // when().get(\"http://34.223.219.142:1212/ords/hr/employees/1234\")\n // .then().statusCode(404);\n Response response = when().get(\"http://34.223.219.142:1212/ords/hr/employees/1234\");\n assertEquals(response.statusCode(),404);\n assertTrue(response.asString().contains(\"Not Found\"));\n response.prettyPrint();\n\n }", "@RequestMapping(value = \"/403\", method = RequestMethod.GET)\n\tpublic ModelAndView accesssDenied() {\n\t\tModelAndView model = new ModelAndView();\n\t\t// check if user is login\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tif (!(auth instanceof AnonymousAuthenticationToken)) {\n\t\t\tUserDetails userDetail = (UserDetails) auth.getPrincipal();\n\t\t\tSystem.out.println(userDetail);\n\t\t\tmodel.addObject(\"username\", userDetail.getUsername());\n\n\t\t}\n\t\tmodel.setViewName(\"403\");\n\t\treturn model;\n\t}", "private void throwExceptionOnBadResponseExcept404(Response response) throws DoiHttpException {\n if (!response.isSuccessful() && response.code() != 404) {\n throw new DoiHttpException(response.code(), response.message(), getErrorBody(response));\n }\n }", "public NotFoundException() {\r\n super(Responses.notFound().build());\r\n }", "@ResponseStatus(value = HttpStatus.NOT_FOUND)\n public String generalError(HttpServletRequest request, HttpServletResponse response, Model model) {\n // retrieve some useful information from the request\n\n String message = \"404 Not found\";\n\n model.addAttribute(\"errorMessage\", message);\n return \"error/general\";\n }", "@Override\n\tprotected boolean onAccessDenied(ServletRequest arg0, ServletResponse arg1) throws Exception {\n\t\treturn false;\n\t}", "@RequestMapping(value = \"/Access_Denied\", method = RequestMethod.GET)\n public String accessDeniedPage(ModelMap model) {\n model.addAttribute(LOGGED_USER, userService.getPrincipal());\n return ACCESS_DENIED;\n }", "@Override\n public void onFailure(int statusCode, Throwable error,\n String content) {\n\n if(statusCode == 404){\n Toast.makeText(context, \"Requested resource not found\", Toast.LENGTH_LONG).show();\n }else if(statusCode == 500){\n Toast.makeText(context, \"Something went wrong at server end\", Toast.LENGTH_LONG).show();\n }else{\n // Toast.makeText(context, \"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet]\", Toast.LENGTH_LONG).show();\n }\n }", "protected void handleNotFound(final String target, final HttpServletRequest request,\n final HttpServletResponse response) throws IOException {\n response.sendError(SC_NOT_FOUND, \"target \" + target + \" not supported\");\n }", "@ExceptionHandler(value = AccessDeniedException.class)\n public ResponseEntity<Object> handleForbiddenErr(Exception exception, WebRequest request) {\n \treturn new ResponseEntity<Object>(\"Acceso denegado. Pruebe nuevamente con la elección de la operación deseada\", \n \t\t\t\t\t\t\t\t new HttpHeaders(), \n \t\t\t\t\t\t\t\t HttpStatus.FORBIDDEN);\n }", "@PreAuthorize(\"hasAuthority('ROLE_USER')\") //got a 401 event though my antMatcher was set to allow all for dist\n @GetMapping(\"distance/{id}\")\n public ResponseEntity<?> getDistanceById(@PathVariable(\"id\") Integer id) throws ResourceNotFoundException{\n log.info(\"getDistanceById\");\n Distance distance = distanceService.getDistanceById(id);\n if (distance == null){\n // return new ResponseEntity<CustomErrorMsg>(new CustomErrorMsg(\"Distance ID \" + id + \" Not Found\"),HttpStatus.NOT_FOUND);\n throw new ResourceNotFoundException(\"Distance ID \" + id + \" Not Found\");\n }\n return new ResponseEntity<Distance>(distance, HttpStatus.OK);\n }", "public String formNotFound()\r\n {\r\n return formError(\"404 Not_found\",\"Requested object was not found\");\r\n }", "@RequestMapping(value = \"/403\", method = RequestMethod.GET)\n public String accessDenied(Model model) {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n if (!(auth instanceof AnonymousAuthenticationToken)) {\n UserDetails userDetail = (UserDetails) auth.getPrincipal();\n System.out.println(userDetail);\n\n model.addAttribute(\"username\", userDetail.getUsername());\n\n }\n\n return \"403\";\n }", "private void action_error(HttpServletRequest request, HttpServletResponse response) throws IOException {\n //assumiamo che l'eccezione sia passata tramite gli attributi della request\n //we assume that the exception has been passed using the request attributes \n Map data=new HashMap();\n \n Exception exception = (Exception) request.getAttribute(\"exception\");\n String message;\n if (exception != null && exception.getMessage() != null) {\n message = exception.getMessage();\n } else {\n message = \"Unknown error\";\n }\n data.put(\"errore\",message);\n FreeMarker.process(\"404error.html\",data, response, getServletContext()); \n }", "private void sendSecurityProblems(HttpRequest request,\n\t\t\tHttpResponse response, L2pSecurityException e) {\n\t\tresponse.clearContent();\n\t\tresponse.setStatus( HttpResponse.STATUS_FORBIDDEN );\n\t\tresponse.setContentType( \"text/plain\" );\n\t\tresponse.println ( \"You don't have access to the method you requested\" );\n\t\tconnector.logError(\"Security exception in invocation request \" + request.getPath());\n\t\t\n\t\tif ( System.getProperty(\"http-connector.printSecException\") != null\n\t\t\t\t&& System.getProperty( \"http-connector.printSecException\").equals ( \"true\" ) )\n\t\t\te.printStackTrace();\n\t}", "void showForbiddenErrorSnackbar();", "public boolean resourceNotFound() {\n return statusCode == 404;\n }", "@Override\n\t\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\t\t\t\t\t\n\t\t\t\t}", "@RequestMapping(value = \"/Access_Denied\", method = RequestMethod.GET)\n public String accessDeniedPage(ModelMap model) {\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n return \"accessDenied\";\n }", "private void checkRequest(Request req) throws MethodNotAllowed, NotFound {\n if (!req.getHeader(\"Method\").equals(\"GET\") ||\n !req.getHeader(\"Version\").equals(\"HTTP/1.1\")) {\n throw new MethodNotAllowed();\n }\n if (req.getHeader(\"Path\").endsWith(\"/\")) {\n throw new NotFound();\n }\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tresponse.getWriter().append(\"你找的资源不存在\");\n\t}", "@GetMapping(\"/500\")\n public void error()\n {\n throw new BadRequestException(\"500\", \"500 Internal Server Error - Threw BadRequestException.\");\n }", "private void redirectToAccessDeniedPage()\n throws IllegalArgumentException, IOException {\n HttpServletRequest request = JSFUtils.getRequest();\n HttpServletResponse response = JSFUtils.getResponse();\n String relativePath = BaseBean.MARKETPLACE_ACCESS_DENY_PAGE;\n JSFUtils.sendRedirect(response,\n request.getContextPath() + relativePath);\n }", "@Test\n public void whenFetchingNonExistingUserReturn404() throws Exception {\n Response<UserDTO> user = api.getUserDetails(1000).execute();\n\n // then http status code should be 404\n assertThat(user.code(), is(404));\n }", "public String formUnauthorized()\r\n {\r\n return formError(\"401 Unauthorized\",\"Unauthorized use of this service\");\r\n }", "@Test\n public void testAliceAccess() throws IOException {\n HttpResponse response = makeRequest(\"http://localhost:8080/api/alice\", \"alice\", \"alice\");\n assertAccessGranted(response, \"alice\");\n\n // alice can not access information about jdoe\n response = makeRequest(\"http://localhost:8080/api/jdoe\", \"alice\", \"alice\");\n assertEquals(403, response.getStatusLine().getStatusCode());\n }", "@RequestMapping(method = RequestMethod.GET)\n public String loadProfilePage() {\n return \"denied\";\n }", "@RequestMapping(\"/error\")\n\tpublic String handleError() {\n\t\treturn \"error-404\";\n\t}", "@Test\n\tpublic void getAccountTestFailure() {\n\t\tRestAssured.given().when().get(\"/account?accountNumber=7912\").then().assertThat().statusCode(404);\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void HttpFail(int ErrCode) {\n\n\t\t\t\t\t\t\t}", "private void permissionsDenied() {\n Log.w(\"TAG\", \"permissionsDenied()\");\n }", "public ResourceNotFoundException(String msg) {\r\n\t\tsuper(msg);\r\n\t}", "@GetMapping(Mappings.ACCESS_DENIED)\n\tpublic String showAccessDenied() {\n\t\t\n\t\treturn ViewNames.ACCESS_DENIED;\n\t\t\n\t}", "@Test\n void incorrectGetPathTest() {\n URI uri = URI.create(endBody + \"/dummy\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.get(uri);\n\n // it should receive 404\n assertNotEquals(200, response.statusCode());\n assertEquals(404, response.statusCode());\n }", "public SimpleResponse NOT_AUTHORIZED() {\n this.state = NOT_AUTHORIZED;\n return ERROR_CUSTOM();\n }", "@Override\n\t\t\t\t\tpublic void httpFail(String response) {\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t}", "void blocked(HttpServletRequest request, HttpServletResponse response) throws IOException;", "@Test\n public void getNonexistentGameTest() throws IOException {\n int status = callHandler(\"/xxxxxxx\", \"GET\");\n assertEquals(404, status);\n }", "private static Response handleIllegalSelector() {\n ServiceError errMsg = new ServiceError(Response.Status.BAD_REQUEST.getStatusCode(), \"An attribute selector contained an illegal value\");\n return Response.status(Response.Status.BAD_REQUEST)\n .entity(errMsg)\n .build();\n }", "@Override\r\n protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws IOException {\n \tboolean b = WebUtil.isAjax((HttpServletRequest)request);\r\n \tif(b){//ajax請求,没有权限操作的\r\n JSONObject js = new JSONObject();\r\n js.put(\"isDenied\", true);\r\n js.put(\"message\", \"沒有权限执行该操作\");\r\n WebUtil.printJson(response, js);\r\n return false;\r\n \t}\r\n \treturn super.onAccessDenied(request, response);\r\n }", "@Override\r\n public void onPermissionsDenied(int requestCode, List<String> list) {\r\n // Do nothing.\r\n }", "@Override\r\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\r\n\t\t\t\t\t}", "public SimpleResponse ERROR_NOT_FOUND() {\n this.state = HttpStatus.NOT_FOUND.value();\n return ERROR_CUSTOM();\n }", "@Override\n public void onPermissionsDenied(int requestCode, List<String> list) {\n // Do nothing.\n }", "@Override\n public void onPermissionsDenied(int requestCode, List<String> list) {\n // Do nothing.\n }", "@Override\n public void onPermissionsDenied(int requestCode, List<String> list) {\n // Do nothing.\n }", "@Override\r\n\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\r\n\t\t\t}", "@Override\n public void onFailure(int statusCode, cz.msebera.android.httpclient.Header[] headers, byte[] bytes, Throwable throwable) {\n\n // Hide Progress Dialog\n prgDialog.hide();\n // When Http response code is '404'\n if (statusCode == 404) {\n Toast.makeText(getApplicationContext(),\n \"Requested resource not found\",\n Toast.LENGTH_LONG).show();\n }\n // When Http response code is '500'\n else if (statusCode == 500) {\n Toast.makeText(getApplicationContext(),\n \"Something went wrong at server end\",\n Toast.LENGTH_LONG).show();\n }\n // When Http response code other than 404, 500\n else {\n Toast.makeText(\n getApplicationContext(),\n \"Error Occured n Most Common Error: n1. Device not connected to Internetn2. Web App is not deployed in App servern3. App server is not runningn HTTP Status code : \"\n + statusCode, Toast.LENGTH_LONG)\n .show();\n }\n }", "@Override\n\t\t\tpublic void onFailure(Request request, IOException e) {\n\t\t\t\t Log.i(\"info\",\"hehe\");\n\t\t\t}", "@Override\n public void fileNotFound(String path, Throwable cause) {\n headers.put(CONTENT_TYPE, MediaType.getType(\".html\"));\n send404NotFound(ctx, headers, \"404 NOT FOUND\".getBytes(), true);\n }", "@Test\n\tpublic void requestDataForCustomer99999_checkResponseCode_expect404() {\n\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\tthen();\n\t}", "@ExceptionHandler(NoHandlerFoundException.class)\r\n\tpublic ModelAndView handlerNoHandlerFoundException() {\r\n\t\t\r\n\t\tModelAndView mv = new ModelAndView(\"/clientViews/page\");\r\n\t\t\r\n\t\tmv.addObject(\"title\",\"404 Error Page\");\r\n\t\tmv.addObject(\"error404\", true);\r\n\t\treturn mv;\r\n\t\t\r\n\t}", "@ExceptionHandler(NoHandlerFoundException.class)\n public ModelAndView handleError404(Exception e) {\n ModelAndView model = new ModelAndView(\"genericError\");\n model.addObject(\"errCode\", \"404\");\n model.addObject(\"errMsg\", \"Zadana stranka nebyla na serveru bikeo.cz nalezena\");\n return model;\n }", "public AccessDeniedException(String message){\n\t\tsuper(message);\n\t}", "public String formServerNotFound()\r\n {\r\n return formError(\"503 Gateway timeout\",\"The requested server was not found\");\r\n }", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}", "default void protect(@NotNull HttpSession session)\n {\n if (!isLoggedIn(session)) {\n throw new ResponseStatusException(HttpStatus.UNAUTHORIZED, \"Login please\");\n }\n }", "@Test\n void sendGetRequest() {\n try {\n String response = HttpUtils.sendGet();\n assertFalse(response.contains(\"404\"));\n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n }", "@Override\n\t\tpublic void onFailure(HttpException error, String msg) {\n\t\t\t\n\t\t}", "void permissionDenied(int requestCode, boolean willShowCheckBoxNextTime);", "public DataNotFoundException() {\n\t\tsuper(\"Requested data not found\");\n\t}", "private static Response handleIOError(IOException e) {\n log.log(Level.WARNING, \"Error retrieving values\", e);\n ServiceError errMsg = new ServiceError(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), \"Internal error retrieving value. If this error persists, please contact the site administrator\");\n return Response.status(Response.Status.BAD_REQUEST)\n .entity(errMsg)\n .build();\n }", "@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = \"This entity is not found in the system\")\n @ExceptionHandler({NotFoundException.class})\n public void handleNotFound(NotFoundException nfe) {\n // just return empty 404\n logger.info(\"-----> Entity \" + nfe.getObjType() + \" with identifier\" + nfe.getObjIdentifier() + \"not found.\");\n }", "@ResponseBody\n @ExceptionHandler(UserNotFoundException.class)\n @ResponseStatus(HttpStatus.NOT_FOUND)\n String userNotFoundHandler(UserNotFoundException ex) {\n return ex.getMessage();\n }", "@Test\n void testGivenFaultyRequestWithFaultString_thenFail() throws Exception {\n URL u = new URL(\"http://localhost:8080/sentry-servlet/fault?fault=true\");\n HttpURLConnection conn = (HttpURLConnection)u.openConnection();\n int rc = conn.getResponseCode();\n assertThat(rc)\n .isEqualTo(500);\n }", "@Override\n\tpublic boolean isDenied();", "@Override\n\t\t\tpublic void onError(Request request, Throwable exception) {\n\t\t\t\t\n\t\t\t}", "protected void throwForbidden(final ContainerRequestContext requestContext) {\n abortFilter(requestContext, Response.status(Status.FORBIDDEN).build());\n }", "protected void checkError(Response res) {\n if (res.getStatus() < 300) {\n return;\n }\n\n if (res.getStatus() == 404) {\n throw new NotFoundException(\"No results found.\");\n }\n\n // TODO custom exceptions here\n // final String responseBody = res.readEntity(String.class);\n }", "@Test\n void testGivenFaultyRequestWithExceptionString_thenFail() throws Exception {\n URL u = new URL(\"http://localhost:8080/sentry-servlet/fault?exception=true\");\n HttpURLConnection conn = (HttpURLConnection)u.openConnection();\n int rc = conn.getResponseCode();\n assertThat(rc)\n .isEqualTo(500);\n }", "@Test\n\tpublic void othersShouldNotBeAbleToLookAtLeonardsQueryByItsPrivateId() throws Exception {\n\t\tthis.mockMvc.perform(get(\"/user/me/queries/123456789\").accept(MediaType.APPLICATION_JSON)).\n\t\t\t\tandExpect(status().isForbidden());\n\t}", "@Override\n\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\n\t\t}", "@RequestMapping(value = \"/access-denied\", method = RequestMethod.GET)\n\tpublic ModelAndView accesssDenied(Principal user) {\n\t\n\t\tModelAndView model = new ModelAndView();\n\t\tif (user != null) {\n\t\t\tmodel.addObject(\"msg\", \"Hi \" + user.getName() + \", you do not have permission to access this page!\");\n\t\t} else {\n\t\t\tmodel.addObject(\"msg\", \"You do not have permission to access this page!\");\n\t\t}\n\n\t\tmodel.setViewName(\"accessDenied\");\n\t\treturn model;\n\n\t}", "@Override\n public void onDenied(String permission) {\n }", "@Test\n @OperateOnDeployment(\"server\")\n public void shouldFailToGetResourceWhenTokenNonCurrent() {\n given().header(\"Authorization\", \"Bearer noncurrent_access_token\").expect().statusCode(401).when().get(\n getBaseTestUrl() + \"/1/category/get/json/1\");\n }", "@Test\n public void itShouldbeAbleToHandleA404Properly() {\n RequestStore requestStore = new RequestStore();\n// requestStore.setDirectory(\"com/angeleah/webserver/TestDirectory/\");\n String body =\"<!DOCTYPE html>\\n<title>Web Server</title>\\n<body>\\n<h1>Not Found</h1>\\n</body>\\n</html>\";\n notFoundHandler.handle(requestStore);\n byte[] b1 = requestStore.getBody();\n byte[] b2 = body.getBytes();\n assertEquals(true, FileByteArrayCompare(b1, b2));\n }", "@Test\n @OperateOnDeployment(\"server\")\n public void shouldFailToGetResourceWhenTokenInvalid() {\n given().header(\"Authorization\", \"Bearer fake_access_token\").expect().statusCode(401).when().get(\n getBaseTestUrl() + \"/1/category/get/json/1\");\n }", "public static String getAccessDeniedPageURL(HttpServletRequest request) {\n\t\treturn request.getContextPath() + \"/AccessDenied.jsp\";\n\t}", "public void invokePropagateNotFound(HttpRequest request, HttpResponse response) throws NotFoundException\n {\n ResourceInvoker invoker = getInvoker(request);\n try\n {\n invoke(request, response, invoker);\n }\n catch (Failure e)\n {\n handleException(request, response, e);\n return;\n }\n }", "protected Object unspecified(ActionContext context) throws Exception {\n HttpServletResponse response = ((ServletActionContext) context).getResponse();\n response.sendError(HttpServletResponse.SC_NOT_FOUND);\n return null;\n }", "@ResponseStatus(HttpStatus.NOT_FOUND)\n @ExceptionHandler(NotFoundException.class)\n public ModelAndView handleNotFound(Exception exception){\n\n System.err.println(\"Handling Not Found Exception\");\n System.err.println(exception.getMessage());\n\n\n ModelAndView modelAndView = new ModelAndView();\n\n modelAndView.setViewName(\"404Error\");\n //adding model attr to 404 error.html\n modelAndView.addObject(\"exception\", exception);\n\n return modelAndView;\n }", "public void setDenied() {\r\n\t\tstatus = \"Denied\";\r\n\t}", "@Override\n\t\t\t\t\tpublic void onError(Request request, Throwable exception) {\n\n\t\t\t\t\t}" ]
[ "0.6799458", "0.6724921", "0.6652348", "0.6589956", "0.65768886", "0.65291", "0.6468862", "0.64603233", "0.64522696", "0.64346766", "0.6391642", "0.6369778", "0.6363257", "0.6218117", "0.6200861", "0.61524034", "0.61422694", "0.6042543", "0.6026194", "0.59990185", "0.5989982", "0.5962006", "0.59600735", "0.5944233", "0.59072435", "0.5899425", "0.5892978", "0.588261", "0.5880468", "0.5871987", "0.58379", "0.58363557", "0.58336306", "0.58270985", "0.58025116", "0.5765497", "0.5757451", "0.574291", "0.57401115", "0.5727318", "0.5725555", "0.5725335", "0.57139623", "0.5708646", "0.5708185", "0.5703067", "0.5694699", "0.56806433", "0.5679452", "0.5662404", "0.5653444", "0.5642848", "0.56352365", "0.56309724", "0.5618535", "0.5614972", "0.557643", "0.5568245", "0.5568245", "0.5568245", "0.55676246", "0.5558391", "0.5558391", "0.5558391", "0.5556863", "0.55452955", "0.5538178", "0.5531963", "0.55304086", "0.55168307", "0.55032384", "0.55004615", "0.54996175", "0.549145", "0.5489732", "0.5479812", "0.5476515", "0.54697424", "0.5466256", "0.54638314", "0.54629755", "0.5454599", "0.5454275", "0.5436953", "0.54318213", "0.54215497", "0.54214567", "0.54168284", "0.5406806", "0.5396479", "0.53921", "0.537484", "0.53605485", "0.53561974", "0.535579", "0.53399676", "0.53392285", "0.5338957", "0.5336789", "0.533407", "0.5332626" ]
0.0
-1
/ 410: / 411:
public String agregarDetalleFacturaSRI332() /* 412: */ { /* 413:415 */ this.servicioFacturaProveedor.agregarDetalleFacturaSRI332(this.facturaProveedorSRI); /* 414:416 */ return ""; /* 415: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m43017g() {\n try {\n this.f40245p = this.f40244o + Long.valueOf(this.f40240k.getHeaderField(\"Content-Length\")).longValue();\n } catch (Exception e) {\n this.f40245p = -1;\n }\n }", "private final void m37301b(int i) throws Exception {\n if (Callback.DEFAULT_DRAG_ANIMATION_DURATION <= i) {\n if (299 >= i) {\n return;\n }\n }\n if (i == 410) {\n throw ((Throwable) new NoUsernameAvailableException());\n }\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Network Error: status code \");\n stringBuilder.append(i);\n throw new IOException(stringBuilder.toString());\n }", "Response mo35726n0() throws IOException;", "public void method_204() {}", "public int getCountRequests() {\n/* 415 */ return this.countRequests;\n/* */ }", "private final void m37299a(int i) throws Exception {\n if (Callback.DEFAULT_DRAG_ANIMATION_DURATION <= i) {\n if (299 >= i) {\n return;\n }\n }\n if (i != 405) {\n if (i != 409) {\n if (i != 410) {\n if (i != 422) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Network Error: status code \");\n stringBuilder.append(i);\n throw new IOException(stringBuilder.toString());\n }\n }\n }\n }\n throw ((Throwable) new UsernameTakenException());\n }", "public void mo38101a(okhttp3.internal.http2.C13256a r4, okhttp3.internal.http2.C13256a r5, java.io.IOException r6) {\n /*\n r3 = this;\n r3.mo38100a(r4) // Catch:{ IOException -> 0x0003 }\n L_0x0003:\n r4 = 0\n monitor-enter(r3)\n java.util.Map<java.lang.Integer, okhttp3.internal.http2.h> r0 = r3.f34193g // Catch:{ all -> 0x004a }\n boolean r0 = r0.isEmpty() // Catch:{ all -> 0x004a }\n if (r0 != 0) goto L_0x0026\n java.util.Map<java.lang.Integer, okhttp3.internal.http2.h> r4 = r3.f34193g // Catch:{ all -> 0x004a }\n java.util.Collection r4 = r4.values() // Catch:{ all -> 0x004a }\n java.util.Map<java.lang.Integer, okhttp3.internal.http2.h> r0 = r3.f34193g // Catch:{ all -> 0x004a }\n int r0 = r0.size() // Catch:{ all -> 0x004a }\n okhttp3.internal.http2.h[] r0 = new okhttp3.internal.http2.C13281h[r0] // Catch:{ all -> 0x004a }\n java.lang.Object[] r4 = r4.toArray(r0) // Catch:{ all -> 0x004a }\n okhttp3.internal.http2.h[] r4 = (okhttp3.internal.http2.C13281h[]) r4 // Catch:{ all -> 0x004a }\n java.util.Map<java.lang.Integer, okhttp3.internal.http2.h> r0 = r3.f34193g // Catch:{ all -> 0x004a }\n r0.clear() // Catch:{ all -> 0x004a }\n L_0x0026:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n if (r4 == 0) goto L_0x0035\n int r0 = r4.length\n r1 = 0\n L_0x002b:\n if (r1 >= r0) goto L_0x0035\n r2 = r4[r1]\n r2.mo38133a(r5, r6) // Catch:{ IOException -> 0x0032 }\n L_0x0032:\n int r1 = r1 + 1\n goto L_0x002b\n L_0x0035:\n okhttp3.internal.http2.i r4 = r3.f34208v // Catch:{ IOException -> 0x003a }\n r4.close() // Catch:{ IOException -> 0x003a }\n L_0x003a:\n java.net.Socket r4 = r3.f34207u // Catch:{ IOException -> 0x003f }\n r4.close() // Catch:{ IOException -> 0x003f }\n L_0x003f:\n java.util.concurrent.ScheduledExecutorService r4 = r3.f34198l\n r4.shutdown()\n java.util.concurrent.ExecutorService r4 = r3.f34199m\n r4.shutdown()\n return\n L_0x004a:\n r4 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http2.C13262e.mo38101a(okhttp3.internal.http2.a, okhttp3.internal.http2.a, java.io.IOException):void\");\n }", "public void method_206() {}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Test\n public void redirectInfinite303And307() throws Exception {\n final Map<String, Class<? extends Servlet>> servlets = new HashMap<String, Class<? extends Servlet>>();\n servlets.put(RedirectServlet307.URL, RedirectServlet307.class);\n servlets.put(RedirectServlet303.URL, RedirectServlet303.class);\n startWebServer(\"./\", new String[0], servlets);\n\n final WebClient client = getWebClient();\n\n try {\n client.getPage(\"http://localhost:\" + PORT + RedirectServlet307.URL);\n }\n catch (final Exception e) {\n assertTrue(e.getMessage(), e.getMessage().contains(\"Too much redirect\"));\n }\n }", "public void request() {\n /*\n r11 = this;\n r0 = 0\n r11.mResponse = r0\n java.lang.String r1 = r11.mUrlString\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n r3 = 0\n r5 = r0\n r4 = 0\n L_0x000d:\n r6 = 1\n java.lang.String r7 = \"DistanceConfigFetcher\"\n if (r4 == 0) goto L_0x002a\n r1 = 2\n java.lang.Object[] r1 = new java.lang.Object[r1]\n java.lang.String r8 = r11.mUrlString\n r1[r3] = r8\n java.lang.String r8 = \"Location\"\n java.lang.String r9 = r5.getHeaderField(r8)\n r1[r6] = r9\n java.lang.String r9 = \"Following redirect from %s to %s\"\n org.altbeacon.beacon.logging.LogManager.d(r7, r9, r1)\n java.lang.String r1 = r5.getHeaderField(r8)\n L_0x002a:\n int r4 = r4 + 1\n r8 = -1\n r11.mResponseCode = r8\n java.net.URL r8 = new java.net.URL // Catch:{ Exception -> 0x0035 }\n r8.<init>(r1) // Catch:{ Exception -> 0x0035 }\n goto L_0x0044\n L_0x0035:\n r8 = move-exception\n java.lang.Object[] r9 = new java.lang.Object[r6]\n java.lang.String r10 = r11.mUrlString\n r9[r3] = r10\n java.lang.String r10 = \"Can't construct URL from: %s\"\n org.altbeacon.beacon.logging.LogManager.e(r7, r10, r9)\n r11.mException = r8\n r8 = r0\n L_0x0044:\n if (r8 != 0) goto L_0x004e\n java.lang.Object[] r6 = new java.lang.Object[r3]\n java.lang.String r8 = \"URL is null. Cannot make request\"\n org.altbeacon.beacon.logging.LogManager.d(r7, r8, r6)\n goto L_0x00a0\n L_0x004e:\n java.net.URLConnection r8 = r8.openConnection() // Catch:{ SecurityException -> 0x0093, FileNotFoundException -> 0x0086, IOException -> 0x0079 }\n java.net.HttpURLConnection r8 = (java.net.HttpURLConnection) r8 // Catch:{ SecurityException -> 0x0093, FileNotFoundException -> 0x0086, IOException -> 0x0079 }\n java.lang.String r5 = \"User-Agent\"\n java.lang.String r9 = r11.mUserAgentString // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n r8.addRequestProperty(r5, r9) // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n int r5 = r8.getResponseCode() // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n r11.mResponseCode = r5 // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n java.lang.String r5 = \"response code is %s\"\n java.lang.Object[] r6 = new java.lang.Object[r6] // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n int r9 = r8.getResponseCode() // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9) // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n r6[r3] = r9 // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n org.altbeacon.beacon.logging.LogManager.d(r7, r5, r6) // Catch:{ SecurityException -> 0x0077, FileNotFoundException -> 0x0075, IOException -> 0x0073 }\n goto L_0x009f\n L_0x0073:\n r5 = move-exception\n goto L_0x007c\n L_0x0075:\n r5 = move-exception\n goto L_0x0089\n L_0x0077:\n r5 = move-exception\n goto L_0x0096\n L_0x0079:\n r6 = move-exception\n r8 = r5\n r5 = r6\n L_0x007c:\n java.lang.Object[] r6 = new java.lang.Object[r3]\n java.lang.String r9 = \"Can't reach server\"\n org.altbeacon.beacon.logging.LogManager.w(r5, r7, r9, r6)\n r11.mException = r5\n goto L_0x009f\n L_0x0086:\n r6 = move-exception\n r8 = r5\n r5 = r6\n L_0x0089:\n java.lang.Object[] r6 = new java.lang.Object[r3]\n java.lang.String r9 = \"No data exists at \\\"+urlString\"\n org.altbeacon.beacon.logging.LogManager.w(r5, r7, r9, r6)\n r11.mException = r5\n goto L_0x009f\n L_0x0093:\n r6 = move-exception\n r8 = r5\n r5 = r6\n L_0x0096:\n java.lang.Object[] r6 = new java.lang.Object[r3]\n java.lang.String r9 = \"Can't reach sever. Have you added android.permission.INTERNET to your manifest?\"\n org.altbeacon.beacon.logging.LogManager.w(r5, r7, r9, r6)\n r11.mException = r5\n L_0x009f:\n r5 = r8\n L_0x00a0:\n r6 = 10\n if (r4 >= r6) goto L_0x00b2\n int r6 = r11.mResponseCode\n r8 = 302(0x12e, float:4.23E-43)\n if (r6 == r8) goto L_0x000d\n r8 = 301(0x12d, float:4.22E-43)\n if (r6 == r8) goto L_0x000d\n r8 = 303(0x12f, float:4.25E-43)\n if (r6 == r8) goto L_0x000d\n L_0x00b2:\n java.lang.Exception r0 = r11.mException\n if (r0 != 0) goto L_0x00e2\n java.io.BufferedReader r0 = new java.io.BufferedReader // Catch:{ Exception -> 0x00d8 }\n java.io.InputStreamReader r1 = new java.io.InputStreamReader // Catch:{ Exception -> 0x00d8 }\n java.io.InputStream r4 = r5.getInputStream() // Catch:{ Exception -> 0x00d8 }\n r1.<init>(r4) // Catch:{ Exception -> 0x00d8 }\n r0.<init>(r1) // Catch:{ Exception -> 0x00d8 }\n L_0x00c4:\n java.lang.String r1 = r0.readLine() // Catch:{ Exception -> 0x00d8 }\n if (r1 == 0) goto L_0x00ce\n r2.append(r1) // Catch:{ Exception -> 0x00d8 }\n goto L_0x00c4\n L_0x00ce:\n r0.close() // Catch:{ Exception -> 0x00d8 }\n java.lang.String r0 = r2.toString() // Catch:{ Exception -> 0x00d8 }\n r11.mResponse = r0 // Catch:{ Exception -> 0x00d8 }\n goto L_0x00e2\n L_0x00d8:\n r0 = move-exception\n r11.mException = r0\n java.lang.Object[] r1 = new java.lang.Object[r3]\n java.lang.String r2 = \"error reading beacon data\"\n org.altbeacon.beacon.logging.LogManager.w(r0, r7, r2, r1)\n L_0x00e2:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.altbeacon.beacon.distance.DistanceConfigFetcher.request():void\");\n }", "void m14051a(okhttp3.aa r2, okhttp3.aa r3) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r1 = this;\n r0 = new okhttp3.c$c;\n r0.<init>(r3);\n r2 = r2.m14017h();\n r2 = (okhttp3.C2900c.C4340b) r2;\n r2 = r2.f18085a;\n r2 = r2.m14105a();\t Catch:{ IOException -> 0x001a }\n if (r2 == 0) goto L_0x001e;\n L_0x0013:\n r0.m14043a(r2);\t Catch:{ IOException -> 0x001b }\n r2.m14099b();\t Catch:{ IOException -> 0x001b }\n goto L_0x001e;\n L_0x001a:\n r2 = 0;\n L_0x001b:\n r1.m14047a(r2);\n L_0x001e:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a(okhttp3.aa, okhttp3.aa):void\");\n }", "public static java.lang.String a(android.content.Context r16, android.net.Uri r17) {\n /*\n r1 = 2\n java.lang.Object[] r8 = new java.lang.Object[r1]\n r15 = 0\n r8[r15] = r16\n r6 = 1\n r8[r6] = r17\n com.meituan.robust.ChangeQuickRedirect r10 = f17527a\n java.lang.Class[] r13 = new java.lang.Class[r1]\n java.lang.Class<android.content.Context> r2 = android.content.Context.class\n r13[r15] = r2\n java.lang.Class<android.net.Uri> r2 = android.net.Uri.class\n r13[r6] = r2\n java.lang.Class<java.lang.String> r14 = java.lang.String.class\n r9 = 0\n r11 = 1\n r12 = 13601(0x3521, float:1.9059E-41)\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r8, r9, r10, r11, r12, r13, r14)\n if (r2 == 0) goto L_0x0041\n java.lang.Object[] r2 = new java.lang.Object[r1]\n r2[r15] = r16\n r2[r6] = r17\n r8 = 0\n com.meituan.robust.ChangeQuickRedirect r9 = f17527a\n r10 = 1\n r11 = 13601(0x3521, float:1.9059E-41)\n java.lang.Class[] r12 = new java.lang.Class[r1]\n java.lang.Class<android.content.Context> r0 = android.content.Context.class\n r12[r15] = r0\n java.lang.Class<android.net.Uri> r0 = android.net.Uri.class\n r12[r6] = r0\n java.lang.Class<java.lang.String> r13 = java.lang.String.class\n r7 = r2\n java.lang.Object r0 = com.meituan.robust.PatchProxy.accessDispatch(r7, r8, r9, r10, r11, r12, r13)\n java.lang.String r0 = (java.lang.String) r0\n return r0\n L_0x0041:\n r8 = 0\n if (r17 != 0) goto L_0x0045\n return r8\n L_0x0045:\n java.lang.String r1 = r17.getScheme()\n boolean r2 = com.bytedance.common.utility.StringUtils.isEmpty(r1)\n if (r2 != 0) goto L_0x010a\n java.lang.String r2 = \"file\"\n boolean r2 = r2.equals(r1)\n if (r2 == 0) goto L_0x0059\n goto L_0x010a\n L_0x0059:\n java.lang.String r2 = \"http\"\n boolean r2 = r2.equals(r1)\n if (r2 == 0) goto L_0x0066\n java.lang.String r0 = r17.toString()\n return r0\n L_0x0066:\n java.lang.String r2 = \"content\"\n boolean r1 = r2.equals(r1)\n if (r1 == 0) goto L_0x0109\n java.lang.String[] r11 = new java.lang.String[r6]\n java.lang.String r1 = \"_data\"\n r11[r15] = r1\n java.lang.String r9 = \"\"\n android.content.ContentResolver r1 = r16.getContentResolver() // Catch:{ Exception -> 0x00a3, all -> 0x009b }\n r4 = 0\n r5 = 0\n r10 = 0\n r2 = r17\n r3 = r11\n r12 = 1\n r6 = r10\n android.database.Cursor r1 = r1.query(r2, r3, r4, r5, r6) // Catch:{ Exception -> 0x00a4, all -> 0x009b }\n boolean r2 = r1.moveToFirst() // Catch:{ Exception -> 0x00a5, all -> 0x0099 }\n if (r2 == 0) goto L_0x0091\n java.lang.String r2 = r1.getString(r15) // Catch:{ Exception -> 0x00a5, all -> 0x0099 }\n r9 = r2\n L_0x0091:\n if (r1 == 0) goto L_0x0096\n r1.close() // Catch:{ Exception -> 0x00a5, all -> 0x0099 }\n L_0x0096:\n if (r1 == 0) goto L_0x00aa\n goto L_0x00a7\n L_0x0099:\n r0 = move-exception\n goto L_0x009d\n L_0x009b:\n r0 = move-exception\n r1 = r8\n L_0x009d:\n if (r1 == 0) goto L_0x00a2\n r1.close() // Catch:{ Exception -> 0x00a2 }\n L_0x00a2:\n throw r0\n L_0x00a3:\n r12 = 1\n L_0x00a4:\n r1 = r8\n L_0x00a5:\n if (r1 == 0) goto L_0x00aa\n L_0x00a7:\n r1.close() // Catch:{ Exception -> 0x00aa }\n L_0x00aa:\n r2 = r1\n r1 = r9\n boolean r3 = com.bytedance.common.utility.StringUtils.isEmpty(r1)\n if (r3 == 0) goto L_0x0108\n android.content.ContentResolver r9 = r16.getContentResolver() // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n java.lang.String r0 = \"_id= ?\"\n java.lang.String r3 = r17.getLastPathSegment() // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n int r4 = android.os.Build.VERSION.SDK_INT // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n r5 = 19\n if (r4 < r5) goto L_0x00d8\n boolean r4 = com.bytedance.common.utility.StringUtils.isEmpty(r3) // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n if (r4 != 0) goto L_0x00d8\n java.lang.String r4 = \":\"\n boolean r4 = r3.contains(r4) // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n if (r4 == 0) goto L_0x00d8\n java.lang.String r4 = \":\"\n java.lang.String[] r3 = r3.split(r4) // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n r3 = r3[r12] // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n L_0x00d8:\n java.lang.String[] r13 = new java.lang.String[r12] // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n r13[r15] = r3 // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n android.net.Uri r10 = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n r14 = 0\n r12 = r0\n android.database.Cursor r3 = r9.query(r10, r11, r12, r13, r14) // Catch:{ Exception -> 0x0104, all -> 0x00fd }\n boolean r0 = r3.moveToFirst() // Catch:{ Exception -> 0x0105, all -> 0x00fa }\n if (r0 == 0) goto L_0x00ef\n java.lang.String r0 = r3.getString(r15) // Catch:{ Exception -> 0x0105, all -> 0x00fa }\n r1 = r0\n L_0x00ef:\n if (r3 == 0) goto L_0x00f4\n r3.close() // Catch:{ Exception -> 0x0105, all -> 0x00fa }\n L_0x00f4:\n if (r3 == 0) goto L_0x0108\n L_0x00f6:\n r3.close() // Catch:{ Exception -> 0x0108 }\n goto L_0x0108\n L_0x00fa:\n r0 = move-exception\n r2 = r3\n goto L_0x00fe\n L_0x00fd:\n r0 = move-exception\n L_0x00fe:\n if (r2 == 0) goto L_0x0103\n r2.close() // Catch:{ Exception -> 0x0103 }\n L_0x0103:\n throw r0\n L_0x0104:\n r3 = r2\n L_0x0105:\n if (r3 == 0) goto L_0x0108\n goto L_0x00f6\n L_0x0108:\n return r1\n L_0x0109:\n return r8\n L_0x010a:\n java.lang.String r0 = r17.getPath()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.android.livesdk.utils.a.a(android.content.Context, android.net.Uri):java.lang.String\");\n }", "public static android.net.Uri a(android.content.Context r19, java.lang.String r20) {\n /*\n r2 = 2\n java.lang.Object[] r3 = new java.lang.Object[r2]\n r10 = 0\n r3[r10] = r19\n r11 = 1\n r3[r11] = r20\n com.meituan.robust.ChangeQuickRedirect r5 = f17527a\n java.lang.Class[] r8 = new java.lang.Class[r2]\n java.lang.Class<android.content.Context> r4 = android.content.Context.class\n r8[r10] = r4\n java.lang.Class<java.lang.String> r4 = java.lang.String.class\n r8[r11] = r4\n java.lang.Class<android.net.Uri> r9 = android.net.Uri.class\n r4 = 0\n r6 = 1\n r7 = 13600(0x3520, float:1.9058E-41)\n boolean r3 = com.meituan.robust.PatchProxy.isSupport(r3, r4, r5, r6, r7, r8, r9)\n if (r3 == 0) goto L_0x0042\n java.lang.Object[] r12 = new java.lang.Object[r2]\n r12[r10] = r19\n r12[r11] = r20\n r13 = 0\n com.meituan.robust.ChangeQuickRedirect r14 = f17527a\n r15 = 1\n r16 = 13600(0x3520, float:1.9058E-41)\n java.lang.Class[] r0 = new java.lang.Class[r2]\n java.lang.Class<android.content.Context> r1 = android.content.Context.class\n r0[r10] = r1\n java.lang.Class<java.lang.String> r1 = java.lang.String.class\n r0[r11] = r1\n java.lang.Class<android.net.Uri> r18 = android.net.Uri.class\n r17 = r0\n java.lang.Object r0 = com.meituan.robust.PatchProxy.accessDispatch(r12, r13, r14, r15, r16, r17, r18)\n android.net.Uri r0 = (android.net.Uri) r0\n return r0\n L_0x0042:\n boolean r2 = com.bytedance.common.utility.StringUtils.isEmpty(r20)\n r3 = 0\n if (r2 == 0) goto L_0x004a\n return r3\n L_0x004a:\n android.content.ContentResolver r4 = r19.getContentResolver() // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n java.lang.String r7 = \"_data= ?\"\n java.lang.String[] r8 = new java.lang.String[r11] // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n r8[r10] = r20 // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n java.lang.String[] r6 = new java.lang.String[r11] // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n java.lang.String r0 = \"_id\"\n r6[r10] = r0 // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n android.net.Uri r5 = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n r9 = 0\n android.database.Cursor r1 = r4.query(r5, r6, r7, r8, r9) // Catch:{ Exception -> 0x0088, all -> 0x0081 }\n boolean r0 = r1.moveToFirst() // Catch:{ Exception -> 0x0089, all -> 0x007e }\n if (r0 == 0) goto L_0x007b\n java.lang.String r0 = r1.getString(r10) // Catch:{ Exception -> 0x0089, all -> 0x007e }\n android.net.Uri r2 = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI // Catch:{ Exception -> 0x0089, all -> 0x007e }\n long r4 = java.lang.Long.parseLong(r0) // Catch:{ Exception -> 0x0089, all -> 0x007e }\n android.net.Uri r0 = android.content.ContentUris.withAppendedId(r2, r4) // Catch:{ Exception -> 0x0089, all -> 0x007e }\n if (r1 == 0) goto L_0x007a\n r1.close()\n L_0x007a:\n return r0\n L_0x007b:\n if (r1 == 0) goto L_0x008e\n goto L_0x008b\n L_0x007e:\n r0 = move-exception\n r3 = r1\n goto L_0x0082\n L_0x0081:\n r0 = move-exception\n L_0x0082:\n if (r3 == 0) goto L_0x0087\n r3.close()\n L_0x0087:\n throw r0\n L_0x0088:\n r1 = r3\n L_0x0089:\n if (r1 == 0) goto L_0x008e\n L_0x008b:\n r1.close()\n L_0x008e:\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.android.livesdk.utils.a.a(android.content.Context, java.lang.String):android.net.Uri\");\n }", "private static void responseHandler(StringBuilder sb)\n\t{\n\t\tString s = sb.toString();\t\t\n\t\tString[] lines = s.split(\"\\n\");\t\t\n\t\tString firstLine = \"\";\n\t\t\n\t\t// Only search through the first five lines. If it isn't \n\t\t// in the first five lines it probably isn't there.\n\t\tfor(int i = 0; i < 5; i++)\n\t\t{\n\t\t\tif(lines[i].contains(\"HTTP/1\"))\n\t\t\t{\n\t\t\t\tfirstLine = lines[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Error and quit if it is still empty.\n\t\tif(firstLine.equals(\"\"))\n\t\t{\n\t\t\terrorQuit(\"Whoops something went wrong.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(firstLine.contains(\"200\"))\n\t\t\t{\n\t\t\t\tSystem.out.print(s);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(firstLine);\n\t\t\t}\n\t\t}\n\t}", "private static byte[] a(org.apache.http.HttpResponse r4) throws java.lang.IllegalStateException, java.io.IOException {\n /*\n r0 = 1024(0x400, float:1.435E-42)\n byte[] r0 = new byte[r0]\n r1 = 0\n org.apache.http.HttpEntity r4 = r4.getEntity() // Catch:{ all -> 0x0030 }\n java.io.InputStream r4 = r4.getContent() // Catch:{ all -> 0x0030 }\n java.io.ByteArrayOutputStream r2 = new java.io.ByteArrayOutputStream // Catch:{ all -> 0x002e }\n r2.<init>() // Catch:{ all -> 0x002e }\n L_0x0012:\n int r1 = r4.read(r0) // Catch:{ all -> 0x002b }\n r3 = -1\n if (r1 == r3) goto L_0x001e\n r3 = 0\n r2.write(r0, r3, r1) // Catch:{ all -> 0x002b }\n goto L_0x0012\n L_0x001e:\n byte[] r0 = r2.toByteArray() // Catch:{ all -> 0x002b }\n if (r4 == 0) goto L_0x0027\n r4.close() // Catch:{ Exception -> 0x0027 }\n L_0x0027:\n r2.close() // Catch:{ Exception -> 0x002a }\n L_0x002a:\n return r0\n L_0x002b:\n r0 = move-exception\n r1 = r2\n goto L_0x0032\n L_0x002e:\n r0 = move-exception\n goto L_0x0032\n L_0x0030:\n r0 = move-exception\n r4 = r1\n L_0x0032:\n if (r4 == 0) goto L_0x0039\n r4.close() // Catch:{ Exception -> 0x0038 }\n goto L_0x0039\n L_0x0038:\n L_0x0039:\n if (r1 == 0) goto L_0x003e\n r1.close() // Catch:{ Exception -> 0x003e }\n L_0x003e:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.sdk.f.d.a(org.apache.http.HttpResponse):byte[]\");\n }", "int getStatusCode( );", "public RedirectServlet307() {\n super(307, RedirectServlet303.URL);\n }", "private okhttp3.internal.http2.C13281h m34855b(int r11, java.util.List<okhttp3.internal.http2.C13257b> r12, boolean r13) throws java.io.IOException {\n /*\n r10 = this;\n r6 = r13 ^ 1\n r4 = 0\n okhttp3.internal.http2.i r7 = r10.f34208v\n monitor-enter(r7)\n monitor-enter(r10) // Catch:{ all -> 0x0078 }\n int r0 = r10.f34196j // Catch:{ all -> 0x0075 }\n r1 = 1073741823(0x3fffffff, float:1.9999999)\n if (r0 <= r1) goto L_0x0013\n okhttp3.internal.http2.a r0 = okhttp3.internal.http2.C13256a.REFUSED_STREAM // Catch:{ all -> 0x0075 }\n r10.mo38100a(r0) // Catch:{ all -> 0x0075 }\n L_0x0013:\n boolean r0 = r10.f34197k // Catch:{ all -> 0x0075 }\n if (r0 != 0) goto L_0x006f\n int r8 = r10.f34196j // Catch:{ all -> 0x0075 }\n int r0 = r10.f34196j // Catch:{ all -> 0x0075 }\n int r0 = r0 + 2\n r10.f34196j = r0 // Catch:{ all -> 0x0075 }\n okhttp3.internal.http2.h r9 = new okhttp3.internal.http2.h // Catch:{ all -> 0x0075 }\n r5 = 0\n r0 = r9\n r1 = r8\n r2 = r10\n r3 = r6\n r0.<init>(r1, r2, r3, r4, r5) // Catch:{ all -> 0x0075 }\n if (r13 == 0) goto L_0x003c\n long r0 = r10.f34203q // Catch:{ all -> 0x0075 }\n r2 = 0\n int r13 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1))\n if (r13 == 0) goto L_0x003c\n long r0 = r9.f34272b // Catch:{ all -> 0x0075 }\n int r13 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1))\n if (r13 != 0) goto L_0x003a\n goto L_0x003c\n L_0x003a:\n r13 = 0\n goto L_0x003d\n L_0x003c:\n r13 = 1\n L_0x003d:\n boolean r0 = r9.mo38142g() // Catch:{ all -> 0x0075 }\n if (r0 == 0) goto L_0x004c\n java.util.Map<java.lang.Integer, okhttp3.internal.http2.h> r0 = r10.f34193g // Catch:{ all -> 0x0075 }\n java.lang.Integer r1 = java.lang.Integer.valueOf(r8) // Catch:{ all -> 0x0075 }\n r0.put(r1, r9) // Catch:{ all -> 0x0075 }\n L_0x004c:\n monitor-exit(r10) // Catch:{ all -> 0x0075 }\n if (r11 != 0) goto L_0x0055\n okhttp3.internal.http2.i r11 = r10.f34208v // Catch:{ all -> 0x0078 }\n r11.mo38160a(r6, r8, r12) // Catch:{ all -> 0x0078 }\n goto L_0x005e\n L_0x0055:\n boolean r0 = r10.f34191e // Catch:{ all -> 0x0078 }\n if (r0 != 0) goto L_0x0067\n okhttp3.internal.http2.i r0 = r10.f34208v // Catch:{ all -> 0x0078 }\n r0.mo38154a(r11, r8, r12) // Catch:{ all -> 0x0078 }\n L_0x005e:\n monitor-exit(r7) // Catch:{ all -> 0x0078 }\n if (r13 == 0) goto L_0x0066\n okhttp3.internal.http2.i r11 = r10.f34208v\n r11.flush()\n L_0x0066:\n return r9\n L_0x0067:\n java.lang.IllegalArgumentException r11 = new java.lang.IllegalArgumentException // Catch:{ all -> 0x0078 }\n java.lang.String r12 = \"client streams shouldn't have associated stream IDs\"\n r11.<init>(r12) // Catch:{ all -> 0x0078 }\n throw r11 // Catch:{ all -> 0x0078 }\n L_0x006f:\n okhttp3.internal.http2.ConnectionShutdownException r11 = new okhttp3.internal.http2.ConnectionShutdownException // Catch:{ all -> 0x0075 }\n r11.<init>() // Catch:{ all -> 0x0075 }\n throw r11 // Catch:{ all -> 0x0075 }\n L_0x0075:\n r11 = move-exception\n monitor-exit(r10) // Catch:{ all -> 0x0075 }\n throw r11 // Catch:{ all -> 0x0078 }\n L_0x0078:\n r11 = move-exception\n monitor-exit(r7) // Catch:{ all -> 0x0078 }\n throw r11\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http2.C13262e.m34855b(int, java.util.List, boolean):okhttp3.internal.http2.h\");\n }", "private static long m60262a(java.lang.String r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = -1;\n if (r4 != 0) goto L_0x0005;\n L_0x0004:\n return r0;\n L_0x0005:\n r2 = java.lang.Long.parseLong(r4);\t Catch:{ NumberFormatException -> 0x000a }\n return r2;\n L_0x000a:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http.d.a(java.lang.String):long\");\n }", "public ahb method_408() {\r\n return this.field_2990;\r\n }", "public static int m60268b(java.lang.String r3, int r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = java.lang.Long.parseLong(r3);\t Catch:{ NumberFormatException -> 0x0019 }\n r3 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n r2 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1));\n if (r2 <= 0) goto L_0x000f;\n L_0x000b:\n r3 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n return r3;\n L_0x000f:\n r3 = 0;\n r2 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1));\n if (r2 >= 0) goto L_0x0017;\n L_0x0015:\n r3 = 0;\n return r3;\n L_0x0017:\n r3 = (int) r0;\n return r3;\n L_0x0019:\n return r4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http.d.b(java.lang.String, int):int\");\n }", "public okhttp3.Request followUpRequest() {\n /*\n r5 = this;\n r1 = 0;\n r0 = r5.userResponse;\n if (r0 != 0) goto L_0x000b;\n L_0x0005:\n r0 = new java.lang.IllegalStateException;\n r0.<init>();\n throw r0;\n L_0x000b:\n r0 = r5.streamAllocation;\n r0 = r0.connection();\n if (r0 == 0) goto L_0x0027;\n L_0x0013:\n r0 = r0.route();\n L_0x0017:\n r2 = r5.userResponse;\n r2 = r2.code();\n r3 = r5.userRequest;\n r3 = r3.method();\n switch(r2) {\n case 300: goto L_0x0063;\n case 301: goto L_0x0063;\n case 302: goto L_0x0063;\n case 303: goto L_0x0063;\n case 307: goto L_0x0053;\n case 308: goto L_0x0053;\n case 401: goto L_0x0046;\n case 407: goto L_0x0029;\n case 408: goto L_0x00dc;\n default: goto L_0x0026;\n };\n L_0x0026:\n return r1;\n L_0x0027:\n r0 = r1;\n goto L_0x0017;\n L_0x0029:\n if (r0 == 0) goto L_0x003f;\n L_0x002b:\n r1 = r0.proxy();\n L_0x002f:\n r1 = r1.type();\n r2 = java.net.Proxy.Type.HTTP;\n if (r1 == r2) goto L_0x0046;\n L_0x0037:\n r0 = new java.net.ProtocolException;\n r1 = \"Received HTTP_PROXY_AUTH (407) code while not using proxy\";\n r0.<init>(r1);\n throw r0;\n L_0x003f:\n r1 = r5.client;\n r1 = r1.proxy();\n goto L_0x002f;\n L_0x0046:\n r1 = r5.client;\n r1 = r1.authenticator();\n r2 = r5.userResponse;\n r1 = r1.authenticate(r0, r2);\n goto L_0x0026;\n L_0x0053:\n r0 = \"GET\";\n r0 = r3.equals(r0);\n if (r0 != 0) goto L_0x0063;\n L_0x005b:\n r0 = \"HEAD\";\n r0 = r3.equals(r0);\n if (r0 == 0) goto L_0x0026;\n L_0x0063:\n r0 = r5.client;\n r0 = r0.followRedirects();\n if (r0 == 0) goto L_0x0026;\n L_0x006b:\n r0 = r5.userResponse;\n r2 = \"Location\";\n r0 = r0.header(r2);\n if (r0 == 0) goto L_0x0026;\n L_0x0075:\n r2 = r5.userRequest;\n r2 = r2.url();\n r0 = r2.resolve(r0);\n if (r0 == 0) goto L_0x0026;\n L_0x0081:\n r2 = r0.scheme();\n r4 = r5.userRequest;\n r4 = r4.url();\n r4 = r4.scheme();\n r2 = r2.equals(r4);\n if (r2 != 0) goto L_0x009d;\n L_0x0095:\n r2 = r5.client;\n r2 = r2.followSslRedirects();\n if (r2 == 0) goto L_0x0026;\n L_0x009d:\n r2 = r5.userRequest;\n r2 = r2.newBuilder();\n r4 = okhttp3.internal.http.HttpMethod.permitsRequestBody(r3);\n if (r4 == 0) goto L_0x00c3;\n L_0x00a9:\n r4 = okhttp3.internal.http.HttpMethod.redirectsToGet(r3);\n if (r4 == 0) goto L_0x00d8;\n L_0x00af:\n r3 = \"GET\";\n r2.method(r3, r1);\n L_0x00b4:\n r1 = \"Transfer-Encoding\";\n r2.removeHeader(r1);\n r1 = \"Content-Length\";\n r2.removeHeader(r1);\n r1 = \"Content-Type\";\n r2.removeHeader(r1);\n L_0x00c3:\n r1 = r5.sameConnection(r0);\n if (r1 != 0) goto L_0x00ce;\n L_0x00c9:\n r1 = \"Authorization\";\n r2.removeHeader(r1);\n L_0x00ce:\n r0 = r2.url(r0);\n r1 = r0.build();\n goto L_0x0026;\n L_0x00d8:\n r2.method(r3, r1);\n goto L_0x00b4;\n L_0x00dc:\n r0 = r5.requestBodyOut;\n if (r0 == 0) goto L_0x00e6;\n L_0x00e0:\n r0 = r5.requestBodyOut;\n r0 = r0 instanceof okhttp3.internal.http.RetryableSink;\n if (r0 == 0) goto L_0x00f1;\n L_0x00e6:\n r0 = 1;\n L_0x00e7:\n r2 = r5.callerWritesRequestBody;\n if (r2 == 0) goto L_0x00ed;\n L_0x00eb:\n if (r0 == 0) goto L_0x0026;\n L_0x00ed:\n r1 = r5.userRequest;\n goto L_0x0026;\n L_0x00f1:\n r0 = 0;\n goto L_0x00e7;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http.HttpEngine.followUpRequest():okhttp3.Request\");\n }", "public boolean m60372a(boolean r7, okhttp3.internal.http2.C15938f.C15937b r8) throws java.io.IOException {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n r0 = 0;\n r1 = r6.f49425c;\t Catch:{ IOException -> 0x0097 }\n r2 = 9;\t Catch:{ IOException -> 0x0097 }\n r1.require(r2);\t Catch:{ IOException -> 0x0097 }\n r1 = r6.f49425c;\n r1 = okhttp3.internal.http2.C15938f.m60359a(r1);\n r2 = 1;\n if (r1 < 0) goto L_0x0088;\n L_0x0011:\n r3 = 16384; // 0x4000 float:2.2959E-41 double:8.0948E-320;\n if (r1 <= r3) goto L_0x0017;\n L_0x0015:\n goto L_0x0088;\n L_0x0017:\n r3 = r6.f49425c;\n r3 = r3.readByte();\n r3 = r3 & 255;\n r3 = (byte) r3;\n if (r7 == 0) goto L_0x0034;\n L_0x0022:\n r7 = 4;\n if (r3 == r7) goto L_0x0034;\n L_0x0025:\n r7 = \"Expected a SETTINGS frame but was %s\";\n r8 = new java.lang.Object[r2];\n r1 = java.lang.Byte.valueOf(r3);\n r8[r0] = r1;\n r7 = okhttp3.internal.http2.C15933c.m60314b(r7, r8);\n throw r7;\n L_0x0034:\n r7 = r6.f49425c;\n r7 = r7.readByte();\n r7 = r7 & 255;\n r7 = (byte) r7;\n r0 = r6.f49425c;\n r0 = r0.readInt();\n r4 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n r0 = r0 & r4;\n r4 = f49423a;\n r5 = java.util.logging.Level.FINE;\n r4 = r4.isLoggable(r5);\n if (r4 == 0) goto L_0x005a;\n L_0x0051:\n r4 = f49423a;\n r5 = okhttp3.internal.http2.C15933c.m60313a(r2, r0, r1, r3, r7);\n r4.fine(r5);\n L_0x005a:\n switch(r3) {\n case 0: goto L_0x0084;\n case 1: goto L_0x0080;\n case 2: goto L_0x007c;\n case 3: goto L_0x0078;\n case 4: goto L_0x0074;\n case 5: goto L_0x0070;\n case 6: goto L_0x006c;\n case 7: goto L_0x0068;\n case 8: goto L_0x0064;\n default: goto L_0x005d;\n };\n L_0x005d:\n r7 = r6.f49425c;\n r0 = (long) r1;\n r7.skip(r0);\n goto L_0x0087;\n L_0x0064:\n r6.m60370i(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x0068:\n r6.m60369h(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x006c:\n r6.m60368g(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x0070:\n r6.m60367f(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x0074:\n r6.m60366e(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x0078:\n r6.m60365d(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x007c:\n r6.m60364c(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x0080:\n r6.m60362a(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x0084:\n r6.m60363b(r8, r1, r7, r0);\n L_0x0087:\n return r2;\n L_0x0088:\n r7 = \"FRAME_SIZE_ERROR: %s\";\n r8 = new java.lang.Object[r2];\n r1 = java.lang.Integer.valueOf(r1);\n r8[r0] = r1;\n r7 = okhttp3.internal.http2.C15933c.m60314b(r7, r8);\n throw r7;\n L_0x0097:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http2.f.a(boolean, okhttp3.internal.http2.f$b):boolean\");\n }", "private boolean m43013b(int responseCode) {\n if (responseCode == 200 || responseCode == 202 || responseCode == 206) {\n return true;\n }\n return false;\n }", "public static int m18349a(AbsResponseWrapper aVar) {\n int lastIndexOf;\n if (aVar == null) {\n return -1;\n }\n if (aVar.mo26442a() == 200) {\n return m18350a(aVar.mo26445a(\"Content-Length\", null), -1);\n }\n if (aVar.mo26442a() == 206) {\n String a = aVar.mo26445a(AsyncHttpClient.HEADER_CONTENT_RANGE, null);\n if (!TextUtils.isEmpty(a) && (lastIndexOf = a.lastIndexOf(MqttTopic.TOPIC_LEVEL_SEPARATOR)) >= 0 && lastIndexOf < a.length() - 1) {\n return m18350a(a.substring(lastIndexOf + 1), -1);\n }\n }\n return -1;\n }", "public int getMaxRedirects()\n {\n return _maxRedirects;\n }", "public void validateRpd4s5()\n {\n // URL guidelines can't be automatically tested, this validator allow to validate content only.\n }", "@Override\r\n\tprotected void processRespond() throws SGSException {\n\r\n\t}", "OptimizeResponse() {\n\n\t}", "public long getContentLength()\r\n/* 180: */ {\r\n/* 181:269 */ String value = getFirst(\"Content-Length\");\r\n/* 182:270 */ return value != null ? Long.parseLong(value) : -1L;\r\n/* 183: */ }", "protected int getRequestContentLength() {\n return 0;\n }", "@Override\n\t\t\t\t\tpublic void httpFail(String response) {\n\t\t\t\t\t}", "int getOneof2616();", "private void getMall(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public static void m7909b(java.net.HttpURLConnection r10, @androidx.annotation.Nullable java.lang.String r11, @androidx.annotation.NonNull java.lang.String r12, @androidx.annotation.NonNull java.lang.String r13) {\n /*\n java.io.InputStream r0 = r10.getErrorStream()\n r1 = 0\n r2 = 2\n r3 = 1\n r4 = 0\n r5 = 3\n if (r0 != 0) goto L_0x000c\n goto L_0x0050\n L_0x000c:\n java.io.BufferedReader r6 = new java.io.BufferedReader\n java.io.InputStreamReader r7 = new java.io.InputStreamReader\n java.nio.charset.Charset r8 = f8009f\n r7.<init>(r0, r8)\n r6.<init>(r7)\n java.lang.StringBuilder r0 = new java.lang.StringBuilder // Catch:{ IOException -> 0x004d, all -> 0x0048 }\n r0.<init>() // Catch:{ IOException -> 0x004d, all -> 0x0048 }\n L_0x001d:\n java.lang.String r7 = r6.readLine() // Catch:{ IOException -> 0x004d, all -> 0x0048 }\n if (r7 == 0) goto L_0x002c\n r0.append(r7) // Catch:{ IOException -> 0x004d, all -> 0x0048 }\n r7 = 10\n r0.append(r7) // Catch:{ IOException -> 0x004d, all -> 0x0048 }\n goto L_0x001d\n L_0x002c:\n java.lang.String r7 = \"Error when communicating with the Firebase Installations server API. HTTP response: [%d %s: %s]\"\n java.lang.Object[] r8 = new java.lang.Object[r5] // Catch:{ IOException -> 0x004d, all -> 0x0048 }\n int r9 = r10.getResponseCode() // Catch:{ IOException -> 0x004d, all -> 0x0048 }\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9) // Catch:{ IOException -> 0x004d, all -> 0x0048 }\n r8[r4] = r9 // Catch:{ IOException -> 0x004d, all -> 0x0048 }\n java.lang.String r10 = r10.getResponseMessage() // Catch:{ IOException -> 0x004d, all -> 0x0048 }\n r8[r3] = r10 // Catch:{ IOException -> 0x004d, all -> 0x0048 }\n r8[r2] = r0 // Catch:{ IOException -> 0x004d, all -> 0x0048 }\n java.lang.String r10 = java.lang.String.format(r7, r8) // Catch:{ IOException -> 0x004d, all -> 0x0048 }\n r1 = r10\n goto L_0x004d\n L_0x0048:\n r10 = move-exception\n r6.close() // Catch:{ IOException -> 0x004c }\n L_0x004c:\n throw r10\n L_0x004d:\n r6.close() // Catch:{ IOException -> 0x0050 }\n L_0x0050:\n boolean r10 = android.text.TextUtils.isEmpty(r1)\n if (r10 != 0) goto L_0x007b\n java.lang.String r10 = \"Firebase-Installations\"\n android.util.Log.w(r10, r1)\n java.lang.Object[] r0 = new java.lang.Object[r5]\n r0[r4] = r12\n r0[r3] = r13\n boolean r12 = android.text.TextUtils.isEmpty(r11)\n if (r12 == 0) goto L_0x006a\n java.lang.String r11 = \"\"\n goto L_0x0070\n L_0x006a:\n java.lang.String r12 = \", \"\n java.lang.String r11 = p005b.p035e.p036a.p037a.C0843a.m451l(r12, r11)\n L_0x0070:\n r0[r2] = r11\n java.lang.String r11 = \"Firebase options used while communicating with Firebase server APIs: %s, %s%s\"\n java.lang.String r11 = java.lang.String.format(r11, r0)\n android.util.Log.w(r10, r11)\n L_0x007b:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p005b.p096l.p180d.p216x.p219n.C4312c.m7909b(java.net.HttpURLConnection, java.lang.String, java.lang.String, java.lang.String):void\");\n }", "private void processRequestRange(String targetID, HttpServerRequest req) throws Exception {\n\t\tString result = retrieveDetails(targetID);\n\t\tif(result != null)\n\t\t\treq.response().end(result);\n\t\telse\n\t\t\treq.response().end(\"No resopnse received\");\n\t}", "private ByteBuffer m152573b(int i) {\n String str = i != 404 ? \"500 Internal Server Error\" : \"404 WebSocket Upgrade Failure\";\n return ByteBuffer.wrap(Charsetfunctions.m152704b(\"HTTP/1.1 \" + str + \"\\r\\nContent-Type: text/html\\nServer: TooTallNate Java-WebSocket\\r\\nContent-Length: \" + (str.length() + 48) + \"\\r\\n\\r\\n<html><head></head><body><h1>\" + str + \"</h1></body></html>\"));\n }", "public void validateRpd4s1()\n {\n // URL guidelines can't be automatically tested, this validator allow to validate content only.\n }", "public static String m18354a(AbsResponseWrapper aVar, int i) {\n int a;\n if (aVar == null || !aVar.mo26446b()) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(aVar.mo26449e().toUpperCase());\n sb.append(' ');\n sb.append(aVar.mo26442a());\n sb.append(' ');\n sb.append(aVar.mo26450f());\n sb.append(\"\\r\\n\");\n if (Proxy.f16280c) {\n Log.i(\"TAG_PROXY_headers\", aVar.mo26449e().toUpperCase() + \" \" + aVar.mo26442a() + \" \" + aVar.mo26450f());\n }\n List<C3717i.C3719b> a2 = m18357a(aVar.mo26447c());\n boolean z = true;\n if (a2 != null) {\n int size = a2.size();\n boolean z2 = true;\n for (int i2 = 0; i2 < size; i2++) {\n C3717i.C3719b bVar = a2.get(i2);\n if (bVar != null) {\n String str = bVar.f16375a;\n String str2 = bVar.f16376b;\n sb.append(str);\n sb.append(\": \");\n sb.append(str2);\n sb.append(\"\\r\\n\");\n if (AsyncHttpClient.HEADER_CONTENT_RANGE.equalsIgnoreCase(str)) {\n z2 = false;\n } else if (\"Accept-Ranges\".equalsIgnoreCase(str) && \"bytes\".equalsIgnoreCase(str2)) {\n z2 = false;\n }\n }\n }\n z = z2;\n }\n if (z && (a = m18349a(aVar)) > 0) {\n sb.append(\"Content-Range: bytes \");\n sb.append(Math.max(i, 0));\n sb.append(Constants.ACCEPT_TIME_SEPARATOR_SERVER);\n sb.append(a - 1);\n sb.append(MqttTopic.TOPIC_LEVEL_SEPARATOR);\n sb.append(a);\n sb.append(\"\\r\\n\");\n }\n sb.append(\"Connection: close\");\n sb.append(\"\\r\\n\");\n sb.append(\"\\r\\n\");\n String sb2 = sb.toString();\n if (Proxy.f16280c) {\n Log.i(\"TAG_PROXY_WRITE_TO_MP\", sb2);\n }\n return sb2;\n }", "public static String m18353a(VideoHttpHeaderInfo aVar, int i) {\n StringBuilder sb = new StringBuilder();\n if (i <= 0) {\n sb.append(\"HTTP/1.1 200 OK\");\n sb.append(\"\\r\\n\");\n } else {\n sb.append(\"HTTP/1.1 206 Partial Content\");\n sb.append(\"\\r\\n\");\n }\n sb.append(\"Accept-Ranges: bytes\");\n sb.append(\"\\r\\n\");\n sb.append(\"Content-Type: \");\n sb.append(aVar.f16233b);\n sb.append(\"\\r\\n\");\n if (i <= 0) {\n sb.append(\"Content-Length: \");\n sb.append(aVar.f16234c);\n sb.append(\"\\r\\n\");\n } else {\n sb.append(\"Content-Range: bytes \");\n sb.append(i);\n sb.append(Constants.ACCEPT_TIME_SEPARATOR_SERVER);\n sb.append(aVar.f16234c - 1);\n sb.append(MqttTopic.TOPIC_LEVEL_SEPARATOR);\n sb.append(aVar.f16234c);\n sb.append(\"\\r\\n\");\n sb.append(\"Content-Length: \");\n sb.append(aVar.f16234c - i);\n sb.append(\"\\r\\n\");\n }\n sb.append(\"Connection: close\");\n sb.append(\"\\r\\n\");\n sb.append(\"\\r\\n\");\n String sb2 = sb.toString();\n if (Proxy.f16280c) {\n Log.i(\"TAG_PROXY_WRITE_TO_MP\", sb2);\n }\n return sb2;\n }", "int getStatusCode();", "int getStatusCode();", "public HttpRequest part(String var1_1, String var2_7, String var3_10, File var4_11) throws HttpRequestException {\n var5_12 = null;\n var6_13 = null;\n var4_11 = new BufferedInputStream(new FileInputStream((File)var4_11));\n var1_1 = this.part((String)var1_1, var2_7, var3_10, (InputStream)var4_11);\n if (var4_11 == null) return var1_1;\n var4_11.close();\n return var1_1;\n {\n catch (IOException var2_8) {\n return var1_1;\n }\n }\n catch (IOException var1_2) {\n block11: {\n var5_12 = var6_13;\n break block11;\n catch (Throwable var1_5) {\n var5_12 = var4_11;\n ** GOTO lbl-1000\n }\n catch (IOException var1_6) {\n var5_12 = var4_11;\n }\n }\n try {\n throw new HttpRequestException((IOException)var1_1);\n }\n catch (Throwable var1_3) lbl-1000:\n // 2 sources\n {\n if (var5_12 == null) throw var1_4;\n try {\n var5_12.close();\n }\n catch (IOException var2_9) {\n throw var1_4;\n }\n throw var1_4;\n }\n }\n }", "public aa m14042a(C2917c c2917c) {\n String a = this.f12193i.m14548a(\"Content-Type\");\n String a2 = this.f12193i.m14548a(\"Content-Length\");\n return new C2896a().m14003a(new C2989a().m14608a(this.f12187c).m14610a(this.f12189e, null).m14613a(this.f12188d).m14620c()).m13998a(this.f12190f).m13994a(this.f12191g).m13996a(this.f12192h).m14002a(this.f12193i).m14000a(new C4340b(c2917c, a, a2)).m14001a(this.f12194j).m13995a(this.f12195k).m14005b(this.f12196l).m14004a();\n }", "HttpURLConnection mo120621a(Uri uri) throws IOException;", "public void validateRpd4s4()\n {\n // URL guidelines can't be automatically tested, this validator allow to validate content only.\n }", "interface HttpRedirectsService {\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @HEAD(\"http/redirect/300\")\n Call<Void> head300();\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @GET(\"http/redirect/300\")\n Call<ResponseBody> get300();\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @HEAD(\"http/redirect/301\")\n Call<Void> head301();\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @GET(\"http/redirect/301\")\n Call<ResponseBody> get301();\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @PUT(\"http/redirect/301\")\n Call<ResponseBody> put301(@Body Boolean booleanValue);\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @HEAD(\"http/redirect/302\")\n Call<Void> head302();\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @GET(\"http/redirect/302\")\n Call<ResponseBody> get302();\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @PATCH(\"http/redirect/302\")\n Call<ResponseBody> patch302(@Body Boolean booleanValue);\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @POST(\"http/redirect/303\")\n Call<ResponseBody> post303(@Body Boolean booleanValue);\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @HEAD(\"http/redirect/307\")\n Call<Void> head307();\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @GET(\"http/redirect/307\")\n Call<ResponseBody> get307();\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @PUT(\"http/redirect/307\")\n Call<ResponseBody> put307(@Body Boolean booleanValue);\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @PATCH(\"http/redirect/307\")\n Call<ResponseBody> patch307(@Body Boolean booleanValue);\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @POST(\"http/redirect/307\")\n Call<ResponseBody> post307(@Body Boolean booleanValue);\n\n @Headers(\"Content-Type: application/json; charset=utf-8\")\n @HTTP(path = \"http/redirect/307\", method = \"DELETE\", hasBody = true)\n Call<ResponseBody> delete307(@Body Boolean booleanValue);\n\n }", "private boolean redirectClient(String path)\n {\n URL url;\n String reqHost = _req.requestHdr.getHeader(\"Host\");\n String fullspec = \"http://\" + reqHost + path;\n String location = null;\n String gapAddress = null;\n boolean randomGAP = false;\n boolean haveValidGAPCookie = false;\n boolean haveValidLocationCookie = false;\n String s = null;\n\n InetAddress cliAddr = _req.connection.getSocket().getInetAddress();\n\n if (DEBUG && _debugLevel > 0) {\n debugPrintLn(\"Got request from \" + cliAddr.toString() + \" \"\n + _req.requestHdr.getVersion() );\n }\n\n /*\n * Check if the client's host is blocked.\n */\n if (_blockList.isBlockedHost(cliAddr.getHostAddress())) {\n _req.sendHtmlErrorPage(HTTPStatusCode.FORBIDDEN,\n \"Not allowed: your host is blocked by the Globe redirector.\");\n return false;\n }\n\n try {\n s = URIDecoder.decode(path);\n }\n catch(IllegalArgumentException e) {\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Format error: request contains an invalid escape sequence: \"\n + e.getMessage());\n return false;\n }\n\n /*\n * Check if the file requested is blocked.\n */\n if (_blockList.isBlockedFile(s)) {\n _req.sendHtmlErrorPage(HTTPStatusCode.FORBIDDEN,\n \"Not allowed: the requested file is blocked by the Globe redirector.\");\n return false;\n }\n\n try {\n s = URIDecoder.decode(fullspec);\n }\n catch(IllegalArgumentException e) {\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Format error: request contains an invalid escape sequence: \"\n + e.getMessage());\n return false;\n }\n\n /*\n * Check if the URL requested is blocked.\n */\n if (_blockList.isBlockedURL(s)) {\n _req.sendHtmlErrorPage(HTTPStatusCode.FORBIDDEN,\n \"Not allowed: the requested URL is blocked by the Globe redirector.\");\n return false;\n }\n\n try {\n url = new URL(fullspec);\n }\n catch( MalformedURLException e ) {\n logError(\"Unsupported request-URI: \" + fullspec);\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"unsupported request-URI\");\n return false;\n }\n\n String file = url.getFile();\n\n /*\n * Redirect the client to the default URL (if defined) if the\n * object name is absent.\n */\n if (file.equals(\"/\")) {\n s = _config.getDefaultURL();\n\n if (s != null) {\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"no object name specified -- using default URL\");\n }\n\n return sendHTTPRedirectMessage(s, null, null);\n }\n }\n\n _cookieCoords = null;\n\n /*\n * If the client sent a redirector cookie, the cookie contains the\n * hostname and port number of the client's nearest GAP, and the\n * geographical coordinates associated with the client's IP address.\n */\n if (_config.getCookieEnabledFlag()) {\n HTTPCookie clientCookie = null;\n\n if ( (s = _req.requestHdr.getHeader(\"Cookie\")) != null) {\n try {\n _httpCookie.init(s);\n clientCookie = _httpCookie;\n }\n catch(IllegalArgumentException e) {\n logError(\"Malformed cookie: \" + e.getMessage());\n\n // CONTINUE - cookie will be replaced\n }\n\n if (clientCookie != null) {\n if (DEBUG & _debugLevel > 1) {\n debugPrintLn(\"Cookie: \" + clientCookie.toString());\n }\n\n String gap = clientCookie.getAttribute(\n RedirectorCookieFactory.COOKIE_GAP_ATTRIB);\n\n /*\n * Set the nearest GAP to the GAP indicated by the cookie. If\n * the GAP address inside the cookie is invalid or if it does\n * not refer to a GAP, the cookie is discarded (and replaced).\n */\n if (gap != null) {\n HostAddress gapHost = null;\n\n try {\n gapHost = new HostAddress(gap);\n s = gapHost.toString();\n\n // Check if gapHost still refers to an active GAP.\n if (_gapList.get(s) != null) {\n gapAddress = s;\n haveValidGAPCookie = true;\n }\n }\n catch(UnknownHostException e) {\n logError(\"Unknown host in cookie: \" + gap);\n\n // CONTINUE - GAP cookie will be replaced\n }\n catch(IllegalArgumentException e) {\n logError(\"Malformed host address in cookie: \" + gap);\n\n // CONTINUE - GAP cookie will be replaced\n }\n }\n else {\n if (DEBUG & _debugLevel > 1) {\n debugPrintLn(\"Cookie does not contain a \"\n + RedirectorCookieFactory.COOKIE_GAP_ATTRIB\n + \" attribute\");\n }\n }\n\n /*\n * If the cookie does not contain a valid nearest GAP attribute,\n * we may need the cookie's coordinates attribute to determine the\n * nearest GAP.\n */\n if (gapAddress == null) {\n s = clientCookie.getAttribute(\n RedirectorCookieFactory.COOKIE_COORDS_ATTRIB);\n\n if (s != null) {\n try {\n _cookieCoords = new FloatCoordinate(s);\n haveValidLocationCookie = true;\n }\n catch(IllegalArgumentException e) {\n logError(\"Malformed coordinates in cookie: \" + s);\n\n // CONTINUE - location cookie will be replaced\n }\n }\n else {\n if (DEBUG & _debugLevel > 1) {\n debugPrintLn(\"Cookie does not contain a \"\n + RedirectorCookieFactory.COOKIE_COORDS_ATTRIB\n + \" attribute\");\n }\n }\n }\n }\n }\n }\n\n /*\n * If there is no (valid) GAP cookie, find the location of the nearest\n * GAP. Pick a random GAP if the nearest GAP could not be determined.\n */\n if (gapAddress == null) {\n GlobeAccessPointRecord gaprec;\n\n if ( (gaprec = findNearestGAP(cliAddr)) == null) {\n gaprec = getRandomGAP();\n randomGAP = true;\n }\n gapAddress = gaprec.hostport;\n\n // _cookieCoords set\n }\n\n String gapCookie = null, locationCookie = null;\n\n /*\n * Create the GAP cookie value if cookies are enabled and the client\n * does not have a (valid) GAP cookie. If a GAP cookie is created,\n * create a location cookie if the client doesn't have a valid one.\n */\n if (_config.getCookieEnabledFlag()) {\n if (! haveValidGAPCookie) {\n if (randomGAP) {\n setExpiresDate(_date, 1000 * RANDOM_GAP_COOKIE_TTL);\n }\n else {\n setExpiresDate(_date, 1000 * _config.getGAPCookieTTL());\n }\n\n gapCookie = _cookieFactory.getGAPValue(gapAddress, _date);\n\n if ( ! haveValidLocationCookie) {\n if (_cookieCoords != null) {\n setExpiresDate(_date, 1000 * _config.getLocationCookieTTL());\n locationCookie = _cookieFactory.getLocationValue(_cookieCoords,\n _date);\n }\n }\n }\n }\n\n /*\n * Send a reply to redirect the client to the nearest GAP.\n */\n if (_config.getHTTPRedirectFlag()) {\n return sendHTTPRedirectMessage(gapAddress, file,\n gapCookie, locationCookie);\n }\n else {\n return sendHTMLReloadPage(gapAddress, file,\n gapCookie, locationCookie);\n }\n }", "public static String parseRequest(String request) {\r\n String parsedSoFar = \"\";\r\n String file = \"\";\r\n int fileSize = 0;\r\n String s = null;\r\n \r\n if (request.length() < 14) {\r\n return s;\r\n }\r\n \t\r\n if (!request.substring(0, 4).equals(\"GET \")) {\r\n return s;\r\n }\r\n \r\n parsedSoFar = request.substring(4, request.length());\r\n \t\r\n int counter = 0;\r\n \r\n while (parsedSoFar.charAt(counter) != ' ') {\r\n counter++;\r\n }\r\n \r\n file = parsedSoFar.substring(0, counter);\r\n \r\n parsedSoFar = parsedSoFar.substring(file.length() + 1, parsedSoFar.length()).trim();\r\n \r\n if (!parsedSoFar.equals(\"HTTP/1.0\")) {\r\n return s;\r\n }\r\n \r\n return file;\r\n }", "public void validateRpd4s6()\n {\n // URL guidelines can't be automatically tested, this validator allow to validate content only.\n }", "private boolean inspectHeader() throws UrlCacheException {\n\n\t\tif(header.contains(\"HTTP/1.1 2\")){\n\t\t\treturn true;\n\t\t}\n\t\telse if(header.contains(\"HTTP/1.1 304\"))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tthrow new UrlCacheException();\n\t\t\n\t}", "@Test\n public void tooManyRedirects() throws Exception {\n UrlPattern up1 = urlPathEqualTo(\"/\" + REDIRECT);\n redirectWireMock.stubFor(get(up1)\n .withQueryParam(\"r\", matching(\"[0-9]+\"))\n .willReturn(aResponse()\n .withStatus(HttpServletResponse.SC_FOUND)\n .withTransformer(\"redirect\", \"redirects\", 51)));\n\n Download t = makeProjectAndTask();\n t.src(redirectWireMock.url(REDIRECT) + \"?r=52\");\n File dst = newTempFile();\n t.dest(dst);\n assertThatThrownBy(() -> execute(t))\n .isInstanceOf(WorkerExecutionException.class)\n .rootCause()\n .isInstanceOf(RedirectException.class)\n .hasMessage(\"Maximum redirects (50) exceeded\");\n }", "public void method_200() {}", "@Override\npublic int writingBenches() {\n\treturn 200;\n}", "private Document getPageWithRetries(URL url) throws IOException {\n Document doc;\n int retries = 3;\n while (true) {\n sendUpdate(STATUS.LOADING_RESOURCE, url.toExternalForm());\n LOGGER.info(\"Retrieving \" + url);\n doc = Http.url(url)\n .referrer(this.url)\n .cookies(cookies)\n .get();\n if (doc.toString().contains(\"IP address will be automatically banned\")) {\n if (retries == 0) {\n throw new IOException(\"Hit rate limit and maximum number of retries, giving up\");\n }\n LOGGER.warn(\"Hit rate limit while loading \" + url + \", sleeping for \" + IP_BLOCK_SLEEP_TIME + \"ms, \" + retries + \" retries remaining\");\n retries--;\n try {\n Thread.sleep(IP_BLOCK_SLEEP_TIME);\n } catch (InterruptedException e) {\n throw new IOException(\"Interrupted while waiting for rate limit to subside\");\n }\n }\n else {\n return doc;\n }\n }\n }", "@Override\n\t\t\tpublic void onError(int httpcode) {\n\t\t\t\t\n\t\t\t}", "public static long getApiMaxInflightRequests() {\n return 5000L;\n }", "public RedirectServlet303() {\n super(303, RedirectServlet307.URL);\n }", "public int method_209() {\r\n return 0;\r\n }", "public int getResponseCode() throws IOException {\n/* 317 */ return this.delegate.getResponseCode();\n/* */ }", "abstract Integer getStatusCode();", "public int method_530() {\r\n return this.proxy.method_5603();\r\n }", "@Override\n\t\t\t\t\t\t\tpublic void HttpFail(int ErrCode) {\n\n\t\t\t\t\t\t\t}", "private void m43018h() throws IOException {\n this.f40240k = (HttpURLConnection) new URL(this.f40231b).openConnection();\n this.f40240k.setRequestMethod(\"GET\");\n this.f40240k.setReadTimeout(20000);\n this.f40240k.setConnectTimeout(15000);\n this.f40240k.setUseCaches(false);\n this.f40240k.setDefaultUseCaches(false);\n this.f40240k.setInstanceFollowRedirects(true);\n this.f40240k.setDoInput(true);\n for (C13157a header : this.f40233d) {\n this.f40240k.addRequestProperty(header.mo42192a(), header.mo42193b());\n }\n }", "private void http_handler(BufferedReader input, DataOutputStream output) {\n int method = 0; //1 get, 2 head, 0 not supported\n String http = new String(); //a bunch of strings to hold\n String path = new String(); //the various things, what http v, what path,\n String file = new String(); //what file\n String user_agent = new String(); //what user_agent\n try {\n //This is the two types of request we can handle\n //GET /index.html HTTP/1.0\n //HEAD /index.html HTTP/1.0\n String tmp = input.readLine(); //read from the stream\n String tmp2 = new String(tmp);\n String line = input.readLine();\n String header = \"\";\n while (line != null && !line.equals(\"\")) {\n header += line;\n line = input.readLine();\n }\n if(header.contains(\"Content-Length\")){\n int offset = header.indexOf(\"Content-Length: \") + \"Content-Length: \".length();\n int cLength = Integer.parseInt(header.substring(offset, header.length()));\n char[] buffer = new char[cLength];\n input.read(buffer);\n value = new String(buffer);\n }\n tmp.toUpperCase(); //convert it to uppercase\n\n if (tmp.startsWith(\"GET\")) { //compare it is it GET\n method = 1;\n } //if we set it to method 1\n if (tmp.startsWith(\"OPTIONS\")) { //same here is it OPTIONS\n method = 2;\n } //set method to 2\n if (tmp.startsWith(\"POST\")) { //same here is it POST\n method = 3;\n } //set method to 3\n\n if (method == 0) { // not supported\n try {\n output.writeBytes(construct_http_header(501, 0));\n output.close();\n return;\n } catch (Exception e3) { //if some error happened catch it\n s(\"error:\" + e3.getMessage());\n } //and display error\n }\n //}\n\n //tmp contains \"GET /index.html HTTP/1.0 .......\"\n //find first space\n //find next space\n //copy whats between minus slash, then you get \"index.html\"\n //it's a bit of dirty code, but bear with me...\n\n int start = 0;\n int end = 0;\n for (int a = 0; a < tmp2.length(); a++) {\n if (tmp2.charAt(a) == ' ' && start != 0) {\n end = a;\n break;\n }\n if (tmp2.charAt(a) == ' ' && start == 0) {\n start = a;\n }\n }\n path = tmp2.substring(start + 1, end); //fill in the path\n } catch (Exception e) {\n s(\"error\" + e.getMessage());\n } //catch any exception\n\n try {\n //send response header\n output.writeBytes(construct_http_header(200, 5));\n\n if (method == 1) { //1 is GET 2 is head and skips the body\n //Response with data from kinect (persoon aanwezig, positie, ...)\n //output.writeBytes(response);\n }\n if (method == 2) {\n String msg = \"\";\n //Description of the sensor sent back (OPTIONS)\n if (path.equals(\"/\")) {\n msg = \"<link rel=\\\"description\\\" type=\\\"text/n3\\\" href=\\\"/service\\\">\\n<link rel=\\\"goal\\\" type=\\\"text/n3\\\" href=\\\"/serviceGoal\\\">\";\n }\n if (path.equals(\"/service\")) {\n msg = \"@prefix sensor: <http://example.org/sensor/>.\\n\";\n msg += \"@prefix ex: <http://example.org/example/>. \\n\";\n msg += \"@prefix xsd: <http://www.w3.org/2001/XMLSchema#>. \\n\";\n msg += \"@prefix environment: <http://example.org/environment/>. \\n\";\n msg += \"@prefix http: <http://www.w3.org/2011/http#>. \\n\";\n msg += \"@prefix tmpl: <http://purl.org/restdesc/http-template#>. \\n\";\n msg += \"{ \\n\";\n msg += \"?sensor a sensor:Kinect. \\n\";\n msg += \"} \\n\";\n msg += \"=> \\n\";\n msg += \"{ \\n\";\n msg += \"_:request http:methodName \\\"POST\\\"; \\n\";\n msg += \"tmpl:requestURI (?sensor \\\"/lightValue\\\"); \\n\";\n msg += \"http:body ?environmentLight;\\n\";\n msg += \"http:resp [ http:body ?lightingValue]. \\n\";\n msg += \"?environmentLight a environment:lightingCondition.\\n\";\n msg += \"?sensor sensor:lightingCondition ?lightingValue. \\n\";\n msg += \"?lightingValue a xsd:String. \\n\";\n msg += \"}. \\n\";\n msg += \"<http://\" + ip + \"/#sensor> a sensor:Kinect.\\n\";\n }\n if (path.equals(\"/serviceGoal\")) {\n msg = \"@prefix sensor: <http://example.org/sensor/>. \\n\";\n msg += \"@prefix environment: <http://example.org/environment/>. \\n\";\n msg += \"{ \\n\";\n msg += \"<http://\" + ip + \"/#sensor> sensor:lightingCondition ?value. \\n\";\n msg += \"} \\n\";\n msg += \"=> \\n\";\n msg += \"{ \\n\";\n msg += \"<http://\" + ip + \"/#sensor> sensor:lightingCondition ?value. \\n\";\n msg += \"}. \\n\";\n }\n output.writeBytes(msg);\n }\n if (method == 3) {\n //Add something to sensor (LightSensor data)\n if (path.equals(\"/lightValue\")) {\n //get Light Value, send to kinect\n String lightValue = value.substring(value.indexOf(\"=\") + 1, value.length()).trim();\n EnvironmentVars.getInstance().setLightValue(lightValue);\n output.writeBytes(\"OK\");\n }\n if (path.equals(\"/personPresent\")) {\n EnvironmentVars.getInstance().setPersonPresent(true);\n output.writeBytes(\"OK\");\n }\n }\n output.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void method_4270() {}", "private void retryTask(HttpServletResponse resp) {\n resp.setStatus(500);\n }", "private String httpNotOk() {\n return \"HTTP/1.1 404 not Found\\r\\n\"\n + \"Content-Type: text/html\\r\\n\"\n + \"\\r\\n\"\n + \"<!DOCTYPE html>\\n\"\n + \"<html>\\n\"\n + \"<head>\\n\"\n + \"<meta charset=\\\"UTF-8\\\">\\n\"\n + \"<title>Error</title>\\n\"\n + \"</head>\\n\"\n + \"<body>\\n\"\n + \"<h1>There is an error</h1>\\n\"\n + \"</body>\\n\"\n + \"</html>\\n\";\n }", "private void errorNotEnoughPointsForRoute(Response response) {\n System.out.println(\"Error in server request.\");\n String error = \"Для маршрута нужно как минимум две точки.\";\n JSONObject errorObject = new JSONObject();\n errorObject.put(\"wkt\", JSONObject.NULL);\n errorObject.put(\"error_message\", error);\n response.setContentType(\"application/json\");\n response.setBody(errorObject);\n System.out.println(\"Error to client: \" + errorObject.toString());\n System.out.println(\"end of post\");\n }", "public com.p035e.p036a.C2298v followUpRequest() throws java.io.IOException {\n /*\n r4 = this;\n r1 = 0;\n r0 = r4.f5694n;\n if (r0 != 0) goto L_0x000b;\n L_0x0005:\n r0 = new java.lang.IllegalStateException;\n r0.<init>();\n throw r0;\n L_0x000b:\n r0 = r4.getRoute();\n if (r0 == 0) goto L_0x0024;\n L_0x0011:\n r0 = r4.getRoute();\n r0 = r0.getProxy();\n L_0x0019:\n r2 = r4.f5694n;\n r2 = r2.code();\n switch(r2) {\n case 300: goto L_0x0066;\n case 301: goto L_0x0066;\n case 302: goto L_0x0066;\n case 303: goto L_0x0066;\n case 307: goto L_0x0048;\n case 308: goto L_0x0048;\n case 401: goto L_0x003b;\n case 407: goto L_0x002b;\n default: goto L_0x0022;\n };\n L_0x0022:\n r0 = r1;\n L_0x0023:\n return r0;\n L_0x0024:\n r0 = r4.f5682a;\n r0 = r0.getProxy();\n goto L_0x0019;\n L_0x002b:\n r1 = r0.type();\n r2 = java.net.Proxy.Type.HTTP;\n if (r1 == r2) goto L_0x003b;\n L_0x0033:\n r0 = new java.net.ProtocolException;\n r1 = \"Received HTTP_PROXY_AUTH (407) code while not using proxy\";\n r0.<init>(r1);\n throw r0;\n L_0x003b:\n r1 = r4.f5682a;\n r1 = r1.getAuthenticator();\n r2 = r4.f5694n;\n r0 = com.p035e.p036a.p054a.p055a.C2182j.processAuthHeader(r1, r2, r0);\n goto L_0x0023;\n L_0x0048:\n r0 = r4.f5691k;\n r0 = r0.method();\n r2 = \"GET\";\n r0 = r0.equals(r2);\n if (r0 != 0) goto L_0x0066;\n L_0x0056:\n r0 = r4.f5691k;\n r0 = r0.method();\n r2 = \"HEAD\";\n r0 = r0.equals(r2);\n if (r0 != 0) goto L_0x0066;\n L_0x0064:\n r0 = r1;\n goto L_0x0023;\n L_0x0066:\n r0 = r4.f5682a;\n r0 = r0.getFollowRedirects();\n if (r0 != 0) goto L_0x0070;\n L_0x006e:\n r0 = r1;\n goto L_0x0023;\n L_0x0070:\n r0 = r4.f5694n;\n r2 = \"Location\";\n r0 = r0.header(r2);\n if (r0 != 0) goto L_0x007c;\n L_0x007a:\n r0 = r1;\n goto L_0x0023;\n L_0x007c:\n r2 = new java.net.URL;\n r3 = r4.f5691k;\n r3 = r3.url();\n r2.<init>(r3, r0);\n r0 = r2.getProtocol();\n r3 = \"https\";\n r0 = r0.equals(r3);\n if (r0 != 0) goto L_0x00a1;\n L_0x0093:\n r0 = r2.getProtocol();\n r3 = \"http\";\n r0 = r0.equals(r3);\n if (r0 != 0) goto L_0x00a1;\n L_0x009f:\n r0 = r1;\n goto L_0x0023;\n L_0x00a1:\n r0 = r2.getProtocol();\n r3 = r4.f5691k;\n r3 = r3.url();\n r3 = r3.getProtocol();\n r0 = r0.equals(r3);\n if (r0 != 0) goto L_0x00c0;\n L_0x00b5:\n r0 = r4.f5682a;\n r0 = r0.getFollowSslRedirects();\n if (r0 != 0) goto L_0x00c0;\n L_0x00bd:\n r0 = r1;\n goto L_0x0023;\n L_0x00c0:\n r0 = r4.f5691k;\n r0 = r0.newBuilder();\n r3 = r4.f5691k;\n r3 = r3.method();\n r3 = com.p035e.p036a.p054a.p055a.C2178h.permitsRequestBody(r3);\n if (r3 == 0) goto L_0x00e6;\n L_0x00d2:\n r3 = \"GET\";\n r0.method(r3, r1);\n r1 = \"Transfer-Encoding\";\n r0.removeHeader(r1);\n r1 = \"Content-Length\";\n r0.removeHeader(r1);\n r1 = \"Content-Type\";\n r0.removeHeader(r1);\n L_0x00e6:\n r1 = r4.sameConnection(r2);\n if (r1 != 0) goto L_0x00f1;\n L_0x00ec:\n r1 = \"Authorization\";\n r0.removeHeader(r1);\n L_0x00f1:\n r0 = r0.url(r2);\n r0 = r0.build();\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.e.a.a.a.g.followUpRequest():com.e.a.v\");\n }", "public void httpUrlFetch(ohos.miscservices.httpaccess.data.RequestData r10, ohos.miscservices.httpaccess.HttpProbe r11) {\r\n /*\r\n // Method dump skipped, instructions count: 376\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: ohos.miscservices.httpaccess.HttpFetchImpl.httpUrlFetch(ohos.miscservices.httpaccess.data.RequestData, ohos.miscservices.httpaccess.HttpProbe):void\");\r\n }", "@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}", "public void validateRpd4s7()\n {\n // URL guidelines can't be automatically tested, this validator allow to validate content only.\n }", "int getRequestCount();", "public interface RTSPConstants\n{\n // 1xx: Informational - Request received, continuing process\n public static final int RTSP_CONTINUE =100;\n \n // 2xx: Success - The action was successfully received, understood, and accepted\n public static final int RTSP_OK =200;\n public static final int RTSP_CREATED =201;\n public static final int RTSP_LOW_ON_STORAGE_SPACE =250;\n \n // 3xx: Redirection - Further action must be taken in order to complete the request\n public static final int RTSP_MULTIPLE_CHOICES =300;\n public static final int RTSP_MOVED_PERMANENTLY =301;\n public static final int RTSP_MOVED_TEMPORARILY =302;\n public static final int RTSP_SEE_OTHER =303;\n public static final int RTSP_NOT_MODIFIED =304;\n public static final int RTSP_USE_PROXY =305;\n \n // 4xx: Client Error - The request contains bad syntax or cannot be fulfilled\n public static final int RTSP_BAD_REQUEST =400;\n public static final int RTSP_UNAUTHORIZED =401;\n public static final int RTSP_PAYMENT_REQUIRED =402;\n public static final int RTSP_FORBIDDEN =403;\n public static final int RTSP_NOT_FOUND =404;\n public static final int RTSP_METHOD_NOT_ALLOWED =405;\n public static final int RTSP_NOT_ACCEPTABLE =406;\n public static final int RTSP_PROXY_AUTHENTICATION_REQUIRED =407;\n public static final int RTSP_REQUEST_TIME_OUT =408;\n public static final int RTSP_GONE =410;\n public static final int RTSP_LENGTH_REQUIRED =411;\n public static final int RTSP_PRECONDITION_FAILED =412;\n public static final int RTSP_REQUEST_ENTITY_TOO_LARGE =413;\n public static final int RTSP_REQUEST_URI_TOO_LARGE =414;\n public static final int RTSP_UNSUPPORTED_MEDIA_TYPE =415;\n public static final int RTSP_PARAMETER_NOT_UNDERSTOOD =451;\n public static final int RTSP_CONFERENCE_NOT_FOUND =452;\n public static final int RTSP_NOT_ENOUGH_BANDWIDTH =453;\n public static final int RTSP_SESSION_NOT_FOUND =454;\n public static final int RTSP_METHOD_NOT_VALID_IN_THIS_STATE =455;\n public static final int RTSP_HEADER_FIELD_NOT_VALID_FOR_RESOURCE =456;\n public static final int RTSP_INVALID_RANGE =457;\n public static final int RTSP_PARAMETER_IS_READ_ONLY =458;\n public static final int RTSP_AGGREGATE_OPERATION_NOT_ALLOWED =459;\n public static final int RTSP_ONLY_AGGREGATE_OPERATION_ALLOWED =460;\n public static final int RTSP_UNSUPPORTED_TRANSPORT =461;\n public static final int RTSP_DESTINATION_UNREACHABLE =462;\n \n // 5xx: Server Error - The server failed to fulfill an apparently valid request\n public static final int RTSP_INTERNAL_SERVER_ERROR =500;\n public static final int RTSP_NOT_IMPLEMENTED =501;\n public static final int RTSP_BAD_GATEWAY =502;\n public static final int RTSP_SERVICE_UNAVAILABLE =503;\n public static final int RTSP_GATEWAY_TIME_OUT =504;\n public static final int RTSP_RTSP_VERSION_NOT_SUPPORTED =505;\n public static final int RTSP_OPTION_NOT_SUPPORTED =551;\n\n\n\n public static final String tantau_sccsid = \"@(#)$Id: RTSPConstants.java,v 1.1 2009/02/06 14:24:14 rsoder Exp $\";\n}", "public void zzbr() {\n /*\n r8 = this;\n r0 = 0;\n r2 = r8.zzF;\n L_0x0003:\n r1 = 10;\n if (r0 >= r1) goto L_0x0119;\n L_0x0007:\n r4 = r0 + 1;\n r0 = new java.net.URL;\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r0.<init>(r2);\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r1 = \"play.google.com\";\n r3 = r0.getHost();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r1 = r1.equalsIgnoreCase(r3);\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n if (r1 == 0) goto L_0x002d;\n L_0x001a:\n r0 = r2;\n L_0x001b:\n r0 = r8.zzT(r0);\n r1 = com.google.android.gms.ads.internal.zzr.zzbC();\n r2 = r8.zzpD;\n r2 = r2.getContext();\n r1.zzb(r2, r0);\n return;\n L_0x002d:\n r1 = \"market\";\n r3 = r0.getProtocol();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r1 = r1.equalsIgnoreCase(r3);\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n if (r1 == 0) goto L_0x003b;\n L_0x0039:\n r0 = r2;\n goto L_0x001b;\n L_0x003b:\n r0 = r0.openConnection();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r0 = (java.net.HttpURLConnection) r0;\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r1 = com.google.android.gms.ads.internal.zzr.zzbC();\t Catch:{ all -> 0x00b1 }\n r3 = r8.zzpD;\t Catch:{ all -> 0x00b1 }\n r3 = r3.getContext();\t Catch:{ all -> 0x00b1 }\n r5 = r8.zzpD;\t Catch:{ all -> 0x00b1 }\n r5 = r5.zzhX();\t Catch:{ all -> 0x00b1 }\n r5 = r5.afmaVersion;\t Catch:{ all -> 0x00b1 }\n r6 = 0;\n r1.zza(r3, r5, r6, r0);\t Catch:{ all -> 0x00b1 }\n r1 = r0.getResponseCode();\t Catch:{ all -> 0x00b1 }\n r5 = r0.getHeaderFields();\t Catch:{ all -> 0x00b1 }\n r3 = \"\";\n r6 = 300; // 0x12c float:4.2E-43 double:1.48E-321;\n if (r1 < r6) goto L_0x0116;\n L_0x0065:\n r6 = 399; // 0x18f float:5.59E-43 double:1.97E-321;\n if (r1 > r6) goto L_0x0116;\n L_0x0069:\n r1 = 0;\n r6 = \"Location\";\n r6 = r5.containsKey(r6);\t Catch:{ all -> 0x00b1 }\n if (r6 == 0) goto L_0x0099;\n L_0x0072:\n r1 = \"Location\";\n r1 = r5.get(r1);\t Catch:{ all -> 0x00b1 }\n r1 = (java.util.List) r1;\t Catch:{ all -> 0x00b1 }\n L_0x007a:\n if (r1 == 0) goto L_0x0116;\n L_0x007c:\n r5 = r1.size();\t Catch:{ all -> 0x00b1 }\n if (r5 <= 0) goto L_0x0116;\n L_0x0082:\n r3 = 0;\n r1 = r1.get(r3);\t Catch:{ all -> 0x00b1 }\n r1 = (java.lang.String) r1;\t Catch:{ all -> 0x00b1 }\n L_0x0089:\n r3 = android.text.TextUtils.isEmpty(r1);\t Catch:{ all -> 0x00b1 }\n if (r3 == 0) goto L_0x00aa;\n L_0x008f:\n r1 = \"Arrived at landing page, this ideally should not happen. Will open it in browser.\";\n com.google.android.gms.ads.internal.util.client.zzb.zzaK(r1);\t Catch:{ all -> 0x00b1 }\n r0.disconnect();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n r0 = r2;\n goto L_0x001b;\n L_0x0099:\n r6 = \"location\";\n r6 = r5.containsKey(r6);\t Catch:{ all -> 0x00b1 }\n if (r6 == 0) goto L_0x007a;\n L_0x00a1:\n r1 = \"location\";\n r1 = r5.get(r1);\t Catch:{ all -> 0x00b1 }\n r1 = (java.util.List) r1;\t Catch:{ all -> 0x00b1 }\n goto L_0x007a;\n L_0x00aa:\n r0.disconnect();\t Catch:{ IndexOutOfBoundsException -> 0x0111, IOException -> 0x010c, RuntimeException -> 0x0107 }\n r0 = r4;\n r2 = r1;\n goto L_0x0003;\n L_0x00b1:\n r1 = move-exception;\n r0.disconnect();\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n throw r1;\t Catch:{ IndexOutOfBoundsException -> 0x00b6, IOException -> 0x00d1, RuntimeException -> 0x00ec }\n L_0x00b6:\n r0 = move-exception;\n r1 = r0;\n r0 = r2;\n L_0x00b9:\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"Error while parsing ping URL: \";\n r2 = r2.append(r3);\n r2 = r2.append(r0);\n r2 = r2.toString();\n com.google.android.gms.ads.internal.util.client.zzb.zzd(r2, r1);\n goto L_0x001b;\n L_0x00d1:\n r0 = move-exception;\n r1 = r0;\n r0 = r2;\n L_0x00d4:\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"Error while pinging URL: \";\n r2 = r2.append(r3);\n r2 = r2.append(r0);\n r2 = r2.toString();\n com.google.android.gms.ads.internal.util.client.zzb.zzd(r2, r1);\n goto L_0x001b;\n L_0x00ec:\n r0 = move-exception;\n r1 = r0;\n r0 = r2;\n L_0x00ef:\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"Error while pinging URL: \";\n r2 = r2.append(r3);\n r2 = r2.append(r0);\n r2 = r2.toString();\n com.google.android.gms.ads.internal.util.client.zzb.zzd(r2, r1);\n goto L_0x001b;\n L_0x0107:\n r0 = move-exception;\n r7 = r0;\n r0 = r1;\n r1 = r7;\n goto L_0x00ef;\n L_0x010c:\n r0 = move-exception;\n r7 = r0;\n r0 = r1;\n r1 = r7;\n goto L_0x00d4;\n L_0x0111:\n r0 = move-exception;\n r7 = r0;\n r0 = r1;\n r1 = r7;\n goto L_0x00b9;\n L_0x0116:\n r1 = r3;\n goto L_0x0089;\n L_0x0119:\n r0 = r2;\n goto L_0x001b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzdm.zza.zzbr():void\");\n }", "@Test\n public void test001() {\n int limit = response.extract().path(\"limit\");\n\n System.out.println(\"------------------StartingTest---------------------------\");\n System.out.println(\"The total number of limit is: \" + limit);\n System.out.println(\"------------------End of Test---------------------------\");\n\n }", "public void readMore20(View view) {\n String readMore20 = \"Website: http://hellodoc.ng/\";\n displayMessage20(readMore20);\n }", "public void validateRpd4s2()\n {\n // URL guidelines can't be automatically tested, this validator allow to validate content only.\n }", "private void m14047a(@javax.annotation.Nullable okhttp3.internal.p155a.C2918d.C2915a r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = this;\n if (r1 == 0) goto L_0x0005;\n L_0x0002:\n r1.m14100c();\t Catch:{ IOException -> 0x0005 }\n L_0x0005:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a(okhttp3.internal.a.d$a):void\");\n }", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "private void m1654a(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m322b();\n r7 = r7.m321a();\n r1 = 0;\n L_0x0009:\n r2 = \"http.request\";\n r8.mo160a(r2, r7);\n r1 = r1 + 1;\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x002f }\n if (r2 != 0) goto L_0x0020;\t Catch:{ IOException -> 0x002f }\n L_0x0018:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r2.mo2023a(r0, r8, r3);\t Catch:{ IOException -> 0x002f }\n goto L_0x002b;\t Catch:{ IOException -> 0x002f }\n L_0x0020:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x002f }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x002f }\n r3 = p000a.p001a.p002a.p003a.p032l.C0150c.m428a(r3);\t Catch:{ IOException -> 0x002f }\n r2.mo1931b(r3);\t Catch:{ IOException -> 0x002f }\n L_0x002b:\n r6.m1660a(r0, r8);\t Catch:{ IOException -> 0x002f }\n return;\n L_0x002f:\n r2 = move-exception;\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0035 }\n r3.close();\t Catch:{ IOException -> 0x0035 }\n L_0x0035:\n r3 = r6.f1520h;\n r3 = r3.retryRequest(r2, r1, r8);\n if (r3 == 0) goto L_0x00a0;\n L_0x003d:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x0009;\n L_0x0045:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when connecting to \";\n r4.append(r5);\n r4.append(r0);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x0088;\n L_0x007f:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x0088:\n r2 = r6.f1513a;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r4 = \"Retrying connect to \";\n r3.append(r4);\n r3.append(r0);\n r3 = r3.toString();\n r2.m269d(r3);\n goto L_0x0009;\n L_0x00a0:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.a(a.a.a.a.i.b.x, a.a.a.a.n.e):void\");\n }", "@Override\n protected boolean isResponseStatusToRetry(Response response)\n {\n return response.getStatus() / 4 != 100;\n }", "private synchronized void processHttpRequest\n\t\t(HttpRequest request,\n\t\t HttpResponse response)\n\t\tthrows IOException\n\t\t{\n\t\tlong now = System.currentTimeMillis();\n\n\t\t// Reject an invalid HTTP request.\n\t\tif (! request.isValid())\n\t\t\t{\n\t\t\tresponse.setStatusCode\n\t\t\t\t(HttpResponse.Status.STATUS_400_BAD_REQUEST);\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintStatusHtmlStart (out, now);\n\t\t\tout.println (\"<P>\");\n\t\t\tout.println (\"400 Bad Request\");\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Reject all methods except GET.\n\t\telse if (! request.getMethod().equals (HttpRequest.GET_METHOD))\n\t\t\t{\n\t\t\tresponse.setStatusCode\n\t\t\t\t(HttpResponse.Status.STATUS_501_NOT_IMPLEMENTED);\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintStatusHtmlStart (out, now);\n\t\t\tout.println (\"<P>\");\n\t\t\tout.println (\"501 Not Implemented\");\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Print the status document.\n\t\telse if (request.getUri().equals (\"/\") ||\n\t\t\t\t\trequest.getUri().equals (\"/?\"))\n\t\t\t{\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintStatusHtmlStart (out, now);\n\t\t\tprintStatusHtmlBody (out, now);\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Print the debug document.\n\t\telse if (request.getUri().equals (\"/debug\"))\n\t\t\t{\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintDebugHtmlStart (out, now);\n\t\t\tprintDebugHtmlBody (out);\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Reject all other URIs.\n\t\telse\n\t\t\t{\n\t\t\tresponse.setStatusCode\n\t\t\t\t(HttpResponse.Status.STATUS_404_NOT_FOUND);\n\t\t\tPrintWriter out = response.getPrintWriter();\n\t\t\tprintStatusHtmlStart (out, now);\n\t\t\tout.println (\"<P>\");\n\t\t\tout.println (\"404 Not Found\");\n\t\t\tprintStatusHtmlEnd (out);\n\t\t\t}\n\n\t\t// Send the response.\n\t\tresponse.close();\n\t\t}", "public static AbstractC1616b.C1617a m2850a(C1625j jVar) {\n long j;\n long j2;\n boolean z;\n long j3;\n long j4;\n long j5;\n long currentTimeMillis = System.currentTimeMillis();\n Map<String, String> map = jVar.f2879c;\n String str = map.get(HttpRequest.HEADER_DATE);\n long a = str != null ? m2849a(str) : 0;\n String str2 = map.get(\"Cache-Control\");\n int i = 0;\n if (str2 != null) {\n String[] split = str2.split(Constants.ACCEPT_TIME_SEPARATOR_SP);\n int i2 = 0;\n j2 = 0;\n j = 0;\n while (i < split.length) {\n String trim = split[i].trim();\n if (trim.equals(\"no-cache\") || trim.equals(\"no-store\")) {\n return null;\n }\n if (trim.startsWith(\"max-age=\")) {\n try {\n j2 = Long.parseLong(trim.substring(8));\n } catch (Exception unused) {\n }\n } else if (trim.startsWith(\"stale-while-revalidate=\")) {\n j = Long.parseLong(trim.substring(23));\n } else if (trim.equals(\"must-revalidate\") || trim.equals(\"proxy-revalidate\")) {\n i2 = 1;\n }\n i++;\n }\n i = i2;\n z = true;\n } else {\n z = false;\n j2 = 0;\n j = 0;\n }\n String str3 = map.get(HttpRequest.HEADER_EXPIRES);\n long a2 = str3 != null ? m2849a(str3) : 0;\n String str4 = map.get(HttpRequest.HEADER_LAST_MODIFIED);\n long a3 = str4 != null ? m2849a(str4) : 0;\n String str5 = map.get(HttpRequest.HEADER_ETAG);\n if (z) {\n j4 = currentTimeMillis + (j2 * 1000);\n if (i != 0) {\n j5 = j4;\n } else {\n Long.signum(j);\n j5 = (j * 1000) + j4;\n }\n j3 = j5;\n } else {\n j3 = 0;\n if (a <= 0 || a2 < a) {\n j4 = 0;\n } else {\n j4 = currentTimeMillis + (a2 - a);\n j3 = j4;\n }\n }\n AbstractC1616b.C1617a aVar = new AbstractC1616b.C1617a();\n aVar.f2854a = jVar.f2878b;\n aVar.f2855b = str5;\n aVar.f2859f = j4;\n aVar.f2858e = j3;\n aVar.f2856c = a;\n aVar.f2857d = a3;\n aVar.f2860g = map;\n return aVar;\n }", "protected abstract boolean isExpectedResponseCode(int httpStatus);", "private String urlShort(String url){\n\n\t\treturn null;\n\t}", "Http.Status status();", "protected com.android.volley.Response<T> parseNetworkResponse(com.android.volley.NetworkResponse r7) {\n /*\n r6 = this;\n r5 = 1;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = \"StatusCode=\";\n r0 = r0.append(r1);\n r1 = r7.statusCode;\n r0 = r0.append(r1);\n r0 = r0.toString();\n com.jd.fridge.util.k.a(r0);\n r0 = \"infoss\";\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = \"code==\";\n r1 = r1.append(r2);\n r2 = r7.statusCode;\n r1 = r1.append(r2);\n r1 = r1.toString();\n com.jd.fridge.util.r.c(r0, r1);\n r2 = \"\";\n r0 = r7.statusCode;\n r1 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r0 != r1) goto L_0x013e;\n L_0x003b:\n r0 = org.greenrobot.eventbus.c.a();\n r1 = 3;\n r3 = 0;\n r1 = com.jd.fridge.bean.Event.newEvent(r1, r3);\n r0.c(r1);\n r1 = new java.lang.String;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x00f0, Exception -> 0x0114 }\n r0 = r7.data;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x00f0, Exception -> 0x0114 }\n r3 = r7.headers;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x00f0, Exception -> 0x0114 }\n r3 = com.android.volley.toolbox.HttpHeaderParser.parseCharset(r3);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x00f0, Exception -> 0x0114 }\n r1.<init>(r0, r3);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x00f0, Exception -> 0x0114 }\n r0 = r6.m;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n if (r0 == 0) goto L_0x005e;\n L_0x0059:\n r0 = r6.m;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0.a(r1);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n L_0x005e:\n r0 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0.<init>();\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = \"jsonStr===\";\n r0 = r0.append(r2);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = r0.append(r1);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = r0.toString();\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n com.jd.fridge.util.k.a(r0);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = \"infoss\";\n r2 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2.<init>();\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r3 = \"jsonStr==\";\n r2 = r2.append(r3);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = r2.append(r1);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = r2.toString();\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n com.jd.fridge.util.r.c(r0, r2);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = \"infoss\";\n r2 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2.<init>();\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r3 = \"gson==\";\n r2 = r2.append(r3);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r3 = r6.d;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r4 = r6.e;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r3 = r3.fromJson(r1, r4);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = r2.append(r3);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = r2.toString();\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n com.jd.fridge.util.r.c(r0, r2);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = r6.d;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = r6.e;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = r0.fromJson(r1, r2);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = com.android.volley.toolbox.HttpHeaderParser.parseCacheHeaders(r7);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = com.android.volley.Response.success(r0, r2);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n L_0x00bc:\n return r0;\n L_0x00bd:\n r0 = move-exception;\n r0.printStackTrace();\n r1 = r6.f;\n r1.a(r5);\n r1 = new com.jd.fridge.util.a.c;\n r1.<init>(r0);\n com.android.volley.Response.error(r1);\n r1 = \"infoss\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"jsonStr=1111111=\";\n r2 = r2.append(r3);\n r0 = r2.append(r0);\n r0 = r0.toString();\n com.jd.fridge.util.r.c(r1, r0);\n L_0x00e6:\n r0 = new com.jd.fridge.util.a.c;\n r0.<init>(r7);\n r0 = com.android.volley.Response.error(r0);\n goto L_0x00bc;\n L_0x00f0:\n r0 = move-exception;\n r1 = r2;\n L_0x00f2:\n r2 = r6.c;\n if (r2 == 0) goto L_0x00fb;\n L_0x00f6:\n r2 = r6.c;\n r2.a(r1);\n L_0x00fb:\n r1 = \"infoss\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"JsonSyntaxException=222=\";\n r2 = r2.append(r3);\n r0 = r2.append(r0);\n r0 = r0.toString();\n com.jd.fridge.util.r.c(r1, r0);\n goto L_0x00e6;\n L_0x0114:\n r0 = move-exception;\n r0.printStackTrace();\n r1 = r6.f;\n r1.a(r5);\n r1 = new com.jd.fridge.util.a.c;\n r1.<init>(r0);\n com.android.volley.Response.error(r1);\n r1 = \"infoss\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"jsonStr=333=\";\n r2 = r2.append(r3);\n r0 = r2.append(r0);\n r0 = r0.toString();\n com.jd.fridge.util.r.c(r1, r0);\n goto L_0x00e6;\n L_0x013e:\n r0 = \"infos\";\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = \"response fail: \";\n r1 = r1.append(r2);\n r2 = r7.data;\n r2 = r2.toString();\n r1 = r1.append(r2);\n r1 = r1.toString();\n com.jd.fridge.util.r.c(r0, r1);\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = \"result=\";\n r0 = r0.append(r1);\n r1 = r7.data;\n r1 = r1.toString();\n r0 = r0.append(r1);\n r0 = r0.toString();\n com.jd.fridge.util.k.a(r0);\n r0 = r6.f;\n r0.a(r5);\n r0 = new com.jd.fridge.util.a.c;\n r0.<init>(r7);\n com.android.volley.Response.error(r0);\n goto L_0x00e6;\n L_0x0187:\n r0 = move-exception;\n goto L_0x00f2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.jd.fridge.util.a.d.parseNetworkResponse(com.android.volley.NetworkResponse):com.android.volley.Response<T>\");\n }", "String httpSafe();", "private static void create406Page(String path, Configuration c, Properties lang) {\n saveDocument(path,Constants.get406(c,lang), c);\n }", "public abstract boolean mo9094a(Request request);", "@Override\r\n public void onTrackLimitationNotice(int arg0) {\n\r\n }", "public abstract int getHttpStatusErrorCode();", "public int size()\r\n/* 376: */ {\r\n/* 377:548 */ return this.headers.size();\r\n/* 378: */ }", "public final /* synthetic */ void mo9024k() {\n C3517a.m12960a(this.f8025c, (int) R.string.f0l);\n HashMap hashMap = new HashMap();\n hashMap.put(\"error_type\", \"1\");\n C8443c.m25663a().mo21606a(\"livesdk_anchor_network_error\", hashMap, new Object[0]);\n }", "private void badMove(HttpServletResponse response) throws IOException {\r\n // Handle a bad request\r\n response.setStatus(400);\r\n try (PrintWriter out = response.getWriter()) {\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Tic Tac Toe</title>\"); \r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>400 Bad Request</h1>\");\r\n out.println(\"</html>\"); \r\n }\r\n }", "private String getHttpVersion() {\n return (http11 ? \"HTTP/1.1\" : \"HTTP/1.0\");\n }", "private void checkResponseHeader(HttpResponse p_checkResponseHeader_1_) {\n/* 277 */ String s = p_checkResponseHeader_1_.getHeader(\"Connection\");\n/* */ \n/* 279 */ if (s != null && !s.toLowerCase().equals(\"keep-alive\"))\n/* */ {\n/* 281 */ terminate(new EOFException(\"Connection not keep-alive\"));\n/* */ }\n/* */ \n/* 284 */ String s1 = p_checkResponseHeader_1_.getHeader(\"Keep-Alive\");\n/* */ \n/* 286 */ if (s1 != null) {\n/* */ \n/* 288 */ String[] astring = Config.tokenize(s1, \",;\");\n/* */ \n/* 290 */ for (int i = 0; i < astring.length; i++) {\n/* */ \n/* 292 */ String s2 = astring[i];\n/* 293 */ String[] astring1 = split(s2, '=');\n/* */ \n/* 295 */ if (astring1.length >= 2) {\n/* */ \n/* 297 */ if (astring1[0].equals(\"timeout\")) {\n/* */ \n/* 299 */ int j = Config.parseInt(astring1[1], -1);\n/* */ \n/* 301 */ if (j > 0)\n/* */ {\n/* 303 */ this.keepaliveTimeoutMs = (j * 1000);\n/* */ }\n/* */ } \n/* */ \n/* 307 */ if (astring1[0].equals(\"max\")) {\n/* */ \n/* 309 */ int k = Config.parseInt(astring1[1], -1);\n/* */ \n/* 311 */ if (k > 0)\n/* */ {\n/* 313 */ this.keepaliveMaxCount = k;\n/* */ }\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ }" ]
[ "0.5889824", "0.555091", "0.5375392", "0.5311238", "0.5267334", "0.5231437", "0.5166466", "0.5154719", "0.5154411", "0.5154411", "0.51350003", "0.5126257", "0.5095334", "0.50835854", "0.5078836", "0.5066601", "0.5038872", "0.49796805", "0.4973632", "0.49599284", "0.49578753", "0.4918474", "0.49157286", "0.49040166", "0.4893998", "0.4874648", "0.48686934", "0.48681265", "0.48292536", "0.48285422", "0.4828403", "0.480234", "0.47924614", "0.4786906", "0.47852913", "0.4768638", "0.47497007", "0.47488284", "0.47445288", "0.47434595", "0.4736608", "0.4732462", "0.47300544", "0.47300544", "0.4729823", "0.47231838", "0.47148132", "0.470833", "0.47048247", "0.46990272", "0.4696217", "0.46961048", "0.46914944", "0.46864957", "0.46853682", "0.46795127", "0.4670284", "0.4660612", "0.46573368", "0.46536082", "0.4651367", "0.46509618", "0.46504158", "0.46427262", "0.46425128", "0.46382767", "0.46363667", "0.46311653", "0.46272013", "0.4617827", "0.46173885", "0.4610139", "0.46101147", "0.46076816", "0.46069595", "0.46008468", "0.45914933", "0.4588919", "0.45870766", "0.45806453", "0.45763418", "0.4556028", "0.45468992", "0.4542068", "0.45406425", "0.45385882", "0.45360854", "0.45290503", "0.45263124", "0.45186797", "0.4518315", "0.45174545", "0.45174417", "0.45106244", "0.45104417", "0.45033392", "0.44958907", "0.44936165", "0.44900298", "0.448929", "0.44875842" ]
0.0
-1
/ 416: / 417:
public String agregarDetalleIVAFacturaSRI() /* 418: */ { /* 419:421 */ this.servicioFacturaProveedorSRI.cargarDetalleIVARetencion(this.facturaProveedorSRI, null); /* 420: */ /* 421:423 */ return ""; /* 422: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m43017g() {\n try {\n this.f40245p = this.f40244o + Long.valueOf(this.f40240k.getHeaderField(\"Content-Length\")).longValue();\n } catch (Exception e) {\n this.f40245p = -1;\n }\n }", "public static String m18353a(VideoHttpHeaderInfo aVar, int i) {\n StringBuilder sb = new StringBuilder();\n if (i <= 0) {\n sb.append(\"HTTP/1.1 200 OK\");\n sb.append(\"\\r\\n\");\n } else {\n sb.append(\"HTTP/1.1 206 Partial Content\");\n sb.append(\"\\r\\n\");\n }\n sb.append(\"Accept-Ranges: bytes\");\n sb.append(\"\\r\\n\");\n sb.append(\"Content-Type: \");\n sb.append(aVar.f16233b);\n sb.append(\"\\r\\n\");\n if (i <= 0) {\n sb.append(\"Content-Length: \");\n sb.append(aVar.f16234c);\n sb.append(\"\\r\\n\");\n } else {\n sb.append(\"Content-Range: bytes \");\n sb.append(i);\n sb.append(Constants.ACCEPT_TIME_SEPARATOR_SERVER);\n sb.append(aVar.f16234c - 1);\n sb.append(MqttTopic.TOPIC_LEVEL_SEPARATOR);\n sb.append(aVar.f16234c);\n sb.append(\"\\r\\n\");\n sb.append(\"Content-Length: \");\n sb.append(aVar.f16234c - i);\n sb.append(\"\\r\\n\");\n }\n sb.append(\"Connection: close\");\n sb.append(\"\\r\\n\");\n sb.append(\"\\r\\n\");\n String sb2 = sb.toString();\n if (Proxy.f16280c) {\n Log.i(\"TAG_PROXY_WRITE_TO_MP\", sb2);\n }\n return sb2;\n }", "private byte[] m150948d() throws IOException {\n DataInputStream dataInputStream;\n ByteArrayOutputStream byteArrayOutputStream;\n Throwable th;\n byte[] bArr;\n Exception e;\n long a = mo131997a();\n if (a <= 2147483647L) {\n try {\n dataInputStream = new DataInputStream(mo131998b());\n try {\n byteArrayOutputStream = new ByteArrayOutputStream();\n } catch (Exception e2) {\n e = e2;\n byteArrayOutputStream = null;\n try {\n TBSdkLog.m150897b(\"mtopsdk.ResponseBody\", \"[readBytes] read bytes from byteStream error.\", e);\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n bArr = null;\n if (bArr != null) {\n }\n } catch (Throwable th2) {\n th = th2;\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n throw th;\n }\n } catch (Throwable th3) {\n th = th3;\n byteArrayOutputStream = null;\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n throw th;\n }\n try {\n byte[] bArr2 = new byte[1024];\n while (true) {\n int read = dataInputStream.read(bArr2);\n if (read == -1) {\n break;\n }\n byteArrayOutputStream.write(bArr2, 0, read);\n }\n byteArrayOutputStream.flush();\n bArr = byteArrayOutputStream.toByteArray();\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n } catch (Exception e3) {\n e = e3;\n TBSdkLog.m150897b(\"mtopsdk.ResponseBody\", \"[readBytes] read bytes from byteStream error.\", e);\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n bArr = null;\n if (bArr != null) {\n }\n }\n } catch (Exception e4) {\n e = e4;\n byteArrayOutputStream = null;\n dataInputStream = null;\n TBSdkLog.m150897b(\"mtopsdk.ResponseBody\", \"[readBytes] read bytes from byteStream error.\", e);\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n bArr = null;\n if (bArr != null) {\n }\n } catch (Throwable th4) {\n th = th4;\n byteArrayOutputStream = null;\n dataInputStream = null;\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n throw th;\n }\n if (bArr != null) {\n return null;\n }\n if (a == -1 || a == ((long) bArr.length)) {\n return bArr;\n }\n throw new IOException(\"Content-Length and stream length disagree\");\n }\n throw new IOException(\"Cannot buffer entire body for content length: \" + a);\n }", "@Override\n public void setContentLength(int arg0) {\n\n }", "private final void m37299a(int i) throws Exception {\n if (Callback.DEFAULT_DRAG_ANIMATION_DURATION <= i) {\n if (299 >= i) {\n return;\n }\n }\n if (i != 405) {\n if (i != 409) {\n if (i != 410) {\n if (i != 422) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Network Error: status code \");\n stringBuilder.append(i);\n throw new IOException(stringBuilder.toString());\n }\n }\n }\n }\n throw ((Throwable) new UsernameTakenException());\n }", "private void onReceivedResponseData(org.apache.http.HttpResponse r14, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo r15) {\n /*\n r13 = this;\n r2 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r6 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n r7 = 0;\n r12 = 0;\n r0 = r14.getEntity();\n r1 = r13.verifyTotalLen(r14, r0);\n if (r1 != 0) goto L_0x0022;\n L_0x0010:\n r0 = \"_DownloadTask\";\n r1 = \"verifyTotalLen false\";\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\n r1 = \"totalLen is not match the requestSize\";\n r0.<init>(r2, r1);\n throw r0;\n L_0x0022:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r4 = 0;\n r1 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r1 != 0) goto L_0x015c;\n L_0x002e:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n r2 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r1 != r2) goto L_0x00f9;\n L_0x003a:\n r1 = r13.mDownloadInfo;\n r2 = r0.getContentLength();\n r1.setTotalSize(r2);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 200, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n L_0x005f:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"first start downloadinfoTotalSize = \";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n if (r1 == 0) goto L_0x00a0;\n L_0x0084:\n r1 = r1.getValue();\n r1 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r1);\n r2 = r1.getStart();\n r15.responseRangePosition = r2;\n r2 = r1.getEnd();\n r4 = r1.getStart();\n r2 = r2 - r4;\n r4 = 1;\n r2 = r2 + r4;\n r15.responseRangeLength = r2;\n L_0x00a0:\n r1 = r13.mDownloadInfo;\n r2 = r1.getTotalSize();\n r15.responseContentLength = r2;\n L_0x00a8:\n r1 = r13.mSaveFile;\n if (r1 != 0) goto L_0x00bb;\n L_0x00ac:\n r1 = new com.tencent.tmassistantsdk.storage.TMAssistantFile;\n r2 = r13.mDownloadInfo;\n r2 = r2.mTempFileName;\n r3 = r13.mDownloadInfo;\n r3 = r3.mFileName;\n r1.<init>(r2, r3);\n r13.mSaveFile = r1;\n L_0x00bb:\n r2 = 0;\n r10 = r0.getContent();\t Catch:{ SocketException -> 0x0406 }\n r0 = \"_DownloadTask\";\n r1 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x0406 }\n r4 = \"start write file, fileName: \";\n r1.<init>(r4);\t Catch:{ SocketException -> 0x0406 }\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x0406 }\n r4 = r4.mFileName;\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.append(r4);\t Catch:{ SocketException -> 0x0406 }\n r1 = r1.toString();\t Catch:{ SocketException -> 0x0406 }\n com.tencent.tmassistantsdk.util.TMLog.i(r0, r1);\t Catch:{ SocketException -> 0x0406 }\n r8 = r2;\n L_0x00dc:\n r0 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r10.read(r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r3 <= 0) goto L_0x00eb;\n L_0x00e4:\n r0 = r13.mStopTask;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0262;\n L_0x00e8:\n r10.close();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x00eb:\n r0 = r13.mSaveFile;\n if (r0 == 0) goto L_0x00f6;\n L_0x00ef:\n r0 = r13.mSaveFile;\n r0.close();\n r13.mSaveFile = r12;\n L_0x00f6:\n r15.receiveDataSize = r8;\n return;\n L_0x00f9:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x0135;\n L_0x0103:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\n r2 = r13.mDownloadInfo;\n r1 = r1.getValue();\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r1);\n r2.setTotalSize(r4);\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"HTTPCode 206, totalBytes:\";\n r2.<init>(r3);\n r3 = r13.mDownloadInfo;\n r4 = r3.getTotalSize();\n r2 = r2.append(r4);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.i(r1, r2);\n goto L_0x005f;\n L_0x0135:\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\n r3 = \"statusCode=\";\n r2.<init>(r3);\n r3 = r14.getStatusLine();\n r3 = r3.getStatusCode();\n r2 = r2.append(r3);\n r3 = \" onReceivedResponseData error.\";\n r2 = r2.append(r3);\n r2 = r2.toString();\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\n goto L_0x005f;\n L_0x015c:\n r1 = r14.getStatusLine();\n r1 = r1.getStatusCode();\n if (r1 != r6) goto L_0x00a8;\n L_0x0166:\n r1 = \"content-range\";\n r1 = r14.getFirstHeader(r1);\t Catch:{ Throwable -> 0x0214 }\n r2 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r2 = com.tencent.tmassistantsdk.downloadservice.ByteRange.parseContentRange(r2);\t Catch:{ Throwable -> 0x0214 }\n r3 = r1.getValue();\t Catch:{ Throwable -> 0x0214 }\n r4 = com.tencent.tmassistantsdk.downloadservice.ByteRange.getTotalSize(r3);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r15.responseRangePosition = r8;\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r10 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r8 = r8 - r10;\n r10 = 1;\n r8 = r8 + r10;\n r15.responseRangeLength = r8;\t Catch:{ Throwable -> 0x0214 }\n r15.responseContentLength = r4;\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"totalSize = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r4);\t Catch:{ Throwable -> 0x0214 }\n r8 = \" downloadinfoTotalSize = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.w(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"mReceivedBytes = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r8.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r3 = \"_DownloadTask\";\n r6 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r8 = \"start = \";\n r6.<init>(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = \", end = \";\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r8 = r2.getEnd();\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.append(r8);\t Catch:{ Throwable -> 0x0214 }\n r6 = r6.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.i(r3, r6);\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getStart();\t Catch:{ Throwable -> 0x0214 }\n r6 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r8 = r6.mReceivedBytes;\t Catch:{ Throwable -> 0x0214 }\n r2 = (r2 > r8 ? 1 : (r2 == r8 ? 0 : -1));\n if (r2 == 0) goto L_0x022a;\n L_0x0209:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 706; // 0x2c2 float:9.9E-43 double:3.49E-321;\n r2 = \"The received size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x0214:\n r0 = move-exception;\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x021d }\n r2 = 704; // 0x2c0 float:9.87E-43 double:3.48E-321;\n r1.<init>(r2, r0);\t Catch:{ all -> 0x021d }\n throw r1;\t Catch:{ all -> 0x021d }\n L_0x021d:\n r0 = move-exception;\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0229;\n L_0x0222:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0229:\n throw r0;\n L_0x022a:\n r2 = r13.mDownloadInfo;\t Catch:{ Throwable -> 0x0214 }\n r2 = r2.getTotalSize();\t Catch:{ Throwable -> 0x0214 }\n r2 = (r4 > r2 ? 1 : (r4 == r2 ? 0 : -1));\n if (r2 == 0) goto L_0x023f;\n L_0x0234:\n r0 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ Throwable -> 0x0214 }\n r1 = 705; // 0x2c1 float:9.88E-43 double:3.483E-321;\n r2 = \"The total size is not equal with ByteRange.\";\n r0.<init>(r1, r2);\t Catch:{ Throwable -> 0x0214 }\n throw r0;\t Catch:{ Throwable -> 0x0214 }\n L_0x023f:\n r2 = \"_DownloadTask\";\n r3 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0214 }\n r4 = \"response ByteRange: \";\n r3.<init>(r4);\t Catch:{ Throwable -> 0x0214 }\n r1 = r3.append(r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r1.toString();\t Catch:{ Throwable -> 0x0214 }\n com.tencent.tmassistantsdk.util.TMLog.d(r2, r1);\t Catch:{ Throwable -> 0x0214 }\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x00a8;\n L_0x0259:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n goto L_0x00a8;\n L_0x0262:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0 + r4;\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r2 > 0) goto L_0x03be;\n L_0x0272:\n r2 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r2.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1));\n if (r0 != 0) goto L_0x0315;\n L_0x027c:\n r6 = 1;\n L_0x027d:\n r0 = r13.mSaveFile;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mRecvBuf;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 0;\n r4 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r4.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.write(r1, r2, r3, r4, r6);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 != 0) goto L_0x03b4;\n L_0x028c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.getSavePathRootDir();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = com.tencent.tmassistantsdk.downloadservice.DownloadHelper.isSpaceEnough(r0, r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0367;\n L_0x029c:\n r0 = com.tencent.tmassistantsdk.storage.TMAssistantFile.isSDCardExistAndCanWrite();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n if (r0 == 0) goto L_0x0318;\n L_0x02a2:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x02ef:\n r0 = move-exception;\n r2 = r8;\n L_0x02f1:\n r1 = \"_DownloadTask\";\n r4 = \"\";\n r5 = 0;\n r5 = new java.lang.Object[r5];\t Catch:{ all -> 0x0305 }\n com.tencent.mm.sdk.platformtools.w.printErrStackTrace(r1, r0, r4, r5);\t Catch:{ all -> 0x0305 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ all -> 0x0305 }\n r4 = 605; // 0x25d float:8.48E-43 double:2.99E-321;\n r1.<init>(r4, r0);\t Catch:{ all -> 0x0305 }\n throw r1;\t Catch:{ all -> 0x0305 }\n L_0x0305:\n r0 = move-exception;\n r8 = r2;\n L_0x0307:\n r1 = r13.mSaveFile;\n if (r1 == 0) goto L_0x0312;\n L_0x030b:\n r1 = r13.mSaveFile;\n r1.close();\n r13.mSaveFile = r12;\n L_0x0312:\n r15.receiveDataSize = r8;\n throw r0;\n L_0x0315:\n r6 = r7;\n goto L_0x027d;\n L_0x0318:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no sdCard! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 711; // 0x2c7 float:9.96E-43 double:3.513E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0365:\n r0 = move-exception;\n goto L_0x0307;\n L_0x0367:\n r0 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"write file failed, no enough space! fileName: \";\n r0.<init>(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r1.mFileName;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" receivedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r1.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" readedSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \" totalSize: \";\n r0 = r0.append(r1);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r1.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.append(r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = r0.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = \"_DownloadTask\";\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 710; // 0x2c6 float:9.95E-43 double:3.51E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x03b4:\n r0 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0.updateReceivedSize(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r0 = (long) r3;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r8 = r8 + r0;\n goto L_0x00dc;\n L_0x03be:\n r0 = \"write file size too long.\";\n r1 = \"_DownloadTask\";\n r2 = new java.lang.StringBuilder;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = \"write file size too long.\\r\\nreadedLen: \";\n r2.<init>(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nreceivedSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.mReceivedBytes;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\ntotalSize: \";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = r13.mDownloadInfo;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r4 = r3.getTotalSize();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.append(r4);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r3 = \"\\r\\nisTheEndData: false\";\n r2 = r2.append(r3);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = r2.toString();\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n com.tencent.tmassistantsdk.util.TMLog.w(r1, r2);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r1 = new com.tencent.tmassistantsdk.downloadservice.StopRequestException;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n r2 = 703; // 0x2bf float:9.85E-43 double:3.473E-321;\n r1.<init>(r2, r0);\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n throw r1;\t Catch:{ SocketException -> 0x02ef, all -> 0x0365 }\n L_0x0406:\n r0 = move-exception;\n goto L_0x02f1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.tmassistantsdk.downloadservice.DownloadTask.onReceivedResponseData(org.apache.http.HttpResponse, com.tencent.tmassistantsdk.protocol.jce.DownloadChunkLogInfo):void\");\n }", "private static byte[] a(org.apache.http.HttpResponse r4) throws java.lang.IllegalStateException, java.io.IOException {\n /*\n r0 = 1024(0x400, float:1.435E-42)\n byte[] r0 = new byte[r0]\n r1 = 0\n org.apache.http.HttpEntity r4 = r4.getEntity() // Catch:{ all -> 0x0030 }\n java.io.InputStream r4 = r4.getContent() // Catch:{ all -> 0x0030 }\n java.io.ByteArrayOutputStream r2 = new java.io.ByteArrayOutputStream // Catch:{ all -> 0x002e }\n r2.<init>() // Catch:{ all -> 0x002e }\n L_0x0012:\n int r1 = r4.read(r0) // Catch:{ all -> 0x002b }\n r3 = -1\n if (r1 == r3) goto L_0x001e\n r3 = 0\n r2.write(r0, r3, r1) // Catch:{ all -> 0x002b }\n goto L_0x0012\n L_0x001e:\n byte[] r0 = r2.toByteArray() // Catch:{ all -> 0x002b }\n if (r4 == 0) goto L_0x0027\n r4.close() // Catch:{ Exception -> 0x0027 }\n L_0x0027:\n r2.close() // Catch:{ Exception -> 0x002a }\n L_0x002a:\n return r0\n L_0x002b:\n r0 = move-exception\n r1 = r2\n goto L_0x0032\n L_0x002e:\n r0 = move-exception\n goto L_0x0032\n L_0x0030:\n r0 = move-exception\n r4 = r1\n L_0x0032:\n if (r4 == 0) goto L_0x0039\n r4.close() // Catch:{ Exception -> 0x0038 }\n goto L_0x0039\n L_0x0038:\n L_0x0039:\n if (r1 == 0) goto L_0x003e\n r1.close() // Catch:{ Exception -> 0x003e }\n L_0x003e:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.sdk.f.d.a(org.apache.http.HttpResponse):byte[]\");\n }", "public aa m14042a(C2917c c2917c) {\n String a = this.f12193i.m14548a(\"Content-Type\");\n String a2 = this.f12193i.m14548a(\"Content-Length\");\n return new C2896a().m14003a(new C2989a().m14608a(this.f12187c).m14610a(this.f12189e, null).m14613a(this.f12188d).m14620c()).m13998a(this.f12190f).m13994a(this.f12191g).m13996a(this.f12192h).m14002a(this.f12193i).m14000a(new C4340b(c2917c, a, a2)).m14001a(this.f12194j).m13995a(this.f12195k).m14005b(this.f12196l).m14004a();\n }", "public int getDecodedStreamLength() {\n/* 567 */ return this.stream.getInt(COSName.DL);\n/* */ }", "public interface AbstractC48882Od {\n Uri A4W();\n\n String A5w();\n\n long A5y();\n\n long A67();\n\n String A7T();\n\n int A9V();\n\n Bitmap AQZ(int i);\n\n long getContentLength();\n}", "int wkhtmltoimage_http_error_code(PointerByReference converter);", "protected int getRequestContentLength() {\n return 0;\n }", "OptimizeResponse() {\n\n\t}", "Response mo35726n0() throws IOException;", "@Override\n public void setContentLengthLong(long arg0) {\n \n }", "public static VKApiPhotoSize m147523a(JSONObject jSONObject, int i, int i2) {\n VKApiPhotoSize vKApiPhotoSize = new VKApiPhotoSize();\n vKApiPhotoSize.f121135a = jSONObject.optString(\"src\");\n vKApiPhotoSize.f121136b = jSONObject.optInt(\"width\");\n vKApiPhotoSize.f121137c = jSONObject.optInt(\"height\");\n String optString = jSONObject.optString(\"type\");\n if (!TextUtils.isEmpty(optString)) {\n vKApiPhotoSize.f121138d = optString.charAt(0);\n }\n if (vKApiPhotoSize.f121136b == 0 || vKApiPhotoSize.f121137c == 0) {\n m147526a(vKApiPhotoSize, i, i2);\n }\n return vKApiPhotoSize;\n }", "private final boolean checkHeader(int paramInt) {\n/* 406 */ if (paramInt != 1416784229) {\n/* 407 */ return false;\n/* */ }\n/* */ \n/* 410 */ if ((this.m_options_ & 0xF) != 5 || (this.m_options_ >> 4 & 0xF) != 2)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 415 */ return false;\n/* */ }\n/* 417 */ return true;\n/* */ }", "private final void m126208g() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n if (!this.f102568b.mIsFromDraft || !this.f102568b.hasStickers()) {\n boolean a = C39804em.m127437a(this.f102568b.videoWidth(), this.f102568b.videoHeight());\n if (a) {\n i = this.f102568b.videoWidth();\n } else {\n int[] k = C36964i.m118935k();\n if (k != null) {\n i3 = k[0];\n } else {\n i3 = 720;\n }\n i = m125903a(C7551d.m23567d(this.f102568b.videoWidth(), i3));\n }\n this.f102569c = i;\n if (a) {\n i2 = this.f102568b.videoHeight();\n } else {\n double d = (double) this.f102569c;\n Double.isNaN(d);\n i2 = (int) (Math.ceil(d / 9.0d) * 16.0d);\n }\n this.f102570d = i2;\n return;\n }\n if (this.f102568b.mVideoCanvasWidth > 0) {\n i4 = this.f102568b.mVideoCanvasWidth;\n } else {\n i4 = this.f102568b.videoWidth();\n }\n this.f102569c = i4;\n if (this.f102568b.mVideoCanvasHeight > 0) {\n i5 = this.f102568b.mVideoCanvasHeight;\n } else {\n i5 = this.f102568b.videoHeight();\n }\n this.f102570d = i5;\n }", "public int size()\r\n/* 376: */ {\r\n/* 377:548 */ return this.headers.size();\r\n/* 378: */ }", "private static void m147526a(VKApiPhotoSize vKApiPhotoSize, int i, int i2) {\n float f = ((float) i) / ((float) i2);\n switch (vKApiPhotoSize.f121138d) {\n case 'm':\n m147524a(vKApiPhotoSize, f, Math.min(i, 130));\n return;\n case 'o':\n m147527b(vKApiPhotoSize, f, Math.min(i, 130));\n return;\n case 'p':\n m147527b(vKApiPhotoSize, f, Math.min(i, C34943c.f91127w));\n return;\n case 'q':\n m147527b(vKApiPhotoSize, f, Math.min(i, 320));\n return;\n case 's':\n m147524a(vKApiPhotoSize, f, Math.min(i, 75));\n return;\n case 'w':\n m147525a(vKApiPhotoSize, f, Math.min(i, 2560), Math.min(i2, 2048));\n break;\n case 'x':\n m147524a(vKApiPhotoSize, f, Math.min(i, 604));\n return;\n case 'y':\n m147524a(vKApiPhotoSize, f, Math.min(i, 807));\n return;\n case 'z':\n m147525a(vKApiPhotoSize, f, Math.min(i, 1280), Math.min(i2, PreloadTask.BYTE_UNIT_NUMBER));\n return;\n }\n }", "public ahb method_408() {\r\n return this.field_2990;\r\n }", "private static VKApiPhotoSize m147528a(Parcel parcel) {\n return new VKApiPhotoSize(parcel);\n }", "private static VKApiPhotoSize[] m147529a(int i) {\n return new VKApiPhotoSize[i];\n }", "int getOneof2616();", "public interface MediaRangeSubType {}", "@Override\n\t\t\tprotected Response<Bitmap> parseNetworkResponse(\n\t\t\t\t\tNetworkResponse response) {\n\t\t\t\treturn null;\n\t\t\t}", "private String m81849m() {\n String str;\n if (this.f58083o) {\n str = UrlUtil.m84496b(UrlUtil.m84494a(this.f58071c, C6969H.m41409d(\"G738BEA0FAD3C\")));\n } else {\n str = this.f58070b;\n }\n if (!TextUtils.isEmpty(str)) {\n this.f58072d = Uri.parse(str);\n }\n return str;\n }", "public int getPageWidth() {\n/* 116 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private boolean m43013b(int responseCode) {\n if (responseCode == 200 || responseCode == 202 || responseCode == 206) {\n return true;\n }\n return false;\n }", "public int method_2436() {\r\n return 16;\r\n }", "public void setContentLength(int i) {\n\n\t}", "public static VKApiPhotoSize m147522a(String str, int i, int i2) {\n char c;\n VKApiPhotoSize vKApiPhotoSize = new VKApiPhotoSize();\n vKApiPhotoSize.f121135a = str;\n vKApiPhotoSize.f121136b = i;\n vKApiPhotoSize.f121137c = i2;\n float f = ((float) i) / ((float) i2);\n if (i <= 75) {\n vKApiPhotoSize.f121138d = 's';\n } else if (i <= 130) {\n if (f <= 1.5f) {\n c = 'o';\n } else {\n c = 'm';\n }\n vKApiPhotoSize.f121138d = c;\n } else if (i <= 200 && f <= 1.5f) {\n vKApiPhotoSize.f121138d = 'p';\n } else if (i <= 320 && f <= 1.5f) {\n vKApiPhotoSize.f121138d = 'q';\n } else if (i <= 604) {\n vKApiPhotoSize.f121138d = 'x';\n } else if (i <= 807) {\n vKApiPhotoSize.f121138d = 'y';\n } else if (i <= 1280 && i2 <= 1024) {\n vKApiPhotoSize.f121138d = 'z';\n } else if (i <= 2560 && i2 <= 2048) {\n vKApiPhotoSize.f121138d = 'w';\n }\n return vKApiPhotoSize;\n }", "private void m9023a(int i) {\n int i2;\n Object obj = null;\n AppMethodBeat.m2504i(98679);\n try {\n BufferedInputStream bufferedInputStream = new BufferedInputStream(this.f1556t.getInputStream());\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[4096];\n i2 = 0;\n do {\n try {\n int read = bufferedInputStream.read(bArr);\n if (read == -1) {\n int obj2 = 1;\n break;\n } else {\n byteArrayOutputStream.write(bArr, 0, read);\n i2 += read;\n }\n } catch (Exception e) {\n AppMethodBeat.m2505o(98679);\n return;\n } catch (OutOfMemoryError e2) {\n }\n } while (i2 <= i);\n this.f1559w.f1540a = -303;\n this.f1559w.f1541b = \"no-content-length\";\n if (obj2 != null) {\n this.f1559w.f1543d = byteArrayOutputStream.toByteArray();\n this.f1549E.f1568f = SystemClock.elapsedRealtime();\n }\n byteArrayOutputStream.close();\n AppMethodBeat.m2505o(98679);\n return;\n } catch (OutOfMemoryError e3) {\n i2 = 0;\n } catch (Exception e4) {\n this.f1559w.f1540a = -287;\n this.f1559w.f1541b = \"read without content-length error\";\n AppMethodBeat.m2505o(98679);\n return;\n }\n this.f1559w.f1540a = -306;\n this.f1559w.f1541b = \"no-content-length:\".concat(String.valueOf(i2));\n AppMethodBeat.m2505o(98679);\n }", "Long getCompressedContentLength(String contentEncoding);", "public static String m18354a(AbsResponseWrapper aVar, int i) {\n int a;\n if (aVar == null || !aVar.mo26446b()) {\n return null;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(aVar.mo26449e().toUpperCase());\n sb.append(' ');\n sb.append(aVar.mo26442a());\n sb.append(' ');\n sb.append(aVar.mo26450f());\n sb.append(\"\\r\\n\");\n if (Proxy.f16280c) {\n Log.i(\"TAG_PROXY_headers\", aVar.mo26449e().toUpperCase() + \" \" + aVar.mo26442a() + \" \" + aVar.mo26450f());\n }\n List<C3717i.C3719b> a2 = m18357a(aVar.mo26447c());\n boolean z = true;\n if (a2 != null) {\n int size = a2.size();\n boolean z2 = true;\n for (int i2 = 0; i2 < size; i2++) {\n C3717i.C3719b bVar = a2.get(i2);\n if (bVar != null) {\n String str = bVar.f16375a;\n String str2 = bVar.f16376b;\n sb.append(str);\n sb.append(\": \");\n sb.append(str2);\n sb.append(\"\\r\\n\");\n if (AsyncHttpClient.HEADER_CONTENT_RANGE.equalsIgnoreCase(str)) {\n z2 = false;\n } else if (\"Accept-Ranges\".equalsIgnoreCase(str) && \"bytes\".equalsIgnoreCase(str2)) {\n z2 = false;\n }\n }\n }\n z = z2;\n }\n if (z && (a = m18349a(aVar)) > 0) {\n sb.append(\"Content-Range: bytes \");\n sb.append(Math.max(i, 0));\n sb.append(Constants.ACCEPT_TIME_SEPARATOR_SERVER);\n sb.append(a - 1);\n sb.append(MqttTopic.TOPIC_LEVEL_SEPARATOR);\n sb.append(a);\n sb.append(\"\\r\\n\");\n }\n sb.append(\"Connection: close\");\n sb.append(\"\\r\\n\");\n sb.append(\"\\r\\n\");\n String sb2 = sb.toString();\n if (Proxy.f16280c) {\n Log.i(\"TAG_PROXY_WRITE_TO_MP\", sb2);\n }\n return sb2;\n }", "public int size() {\n/* 426 */ return -1;\n/* */ }", "private Bitmap m14718q() {\n Bitmap a = this.f10962q.mo12204a(this.f10968w, this.f10967v, this.f10969x ? Config.ARGB_8888 : Config.RGB_565);\n m14714a(a);\n return a;\n }", "protected com.android.volley.Response<T> parseNetworkResponse(com.android.volley.NetworkResponse r7) {\n /*\n r6 = this;\n r5 = 1;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = \"StatusCode=\";\n r0 = r0.append(r1);\n r1 = r7.statusCode;\n r0 = r0.append(r1);\n r0 = r0.toString();\n com.jd.fridge.util.k.a(r0);\n r0 = \"infoss\";\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = \"code==\";\n r1 = r1.append(r2);\n r2 = r7.statusCode;\n r1 = r1.append(r2);\n r1 = r1.toString();\n com.jd.fridge.util.r.c(r0, r1);\n r2 = \"\";\n r0 = r7.statusCode;\n r1 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r0 != r1) goto L_0x013e;\n L_0x003b:\n r0 = org.greenrobot.eventbus.c.a();\n r1 = 3;\n r3 = 0;\n r1 = com.jd.fridge.bean.Event.newEvent(r1, r3);\n r0.c(r1);\n r1 = new java.lang.String;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x00f0, Exception -> 0x0114 }\n r0 = r7.data;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x00f0, Exception -> 0x0114 }\n r3 = r7.headers;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x00f0, Exception -> 0x0114 }\n r3 = com.android.volley.toolbox.HttpHeaderParser.parseCharset(r3);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x00f0, Exception -> 0x0114 }\n r1.<init>(r0, r3);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x00f0, Exception -> 0x0114 }\n r0 = r6.m;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n if (r0 == 0) goto L_0x005e;\n L_0x0059:\n r0 = r6.m;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0.a(r1);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n L_0x005e:\n r0 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0.<init>();\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = \"jsonStr===\";\n r0 = r0.append(r2);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = r0.append(r1);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = r0.toString();\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n com.jd.fridge.util.k.a(r0);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = \"infoss\";\n r2 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2.<init>();\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r3 = \"jsonStr==\";\n r2 = r2.append(r3);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = r2.append(r1);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = r2.toString();\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n com.jd.fridge.util.r.c(r0, r2);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = \"infoss\";\n r2 = new java.lang.StringBuilder;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2.<init>();\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r3 = \"gson==\";\n r2 = r2.append(r3);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r3 = r6.d;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r4 = r6.e;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r3 = r3.fromJson(r1, r4);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = r2.append(r3);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = r2.toString();\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n com.jd.fridge.util.r.c(r0, r2);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = r6.d;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = r6.e;\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = r0.fromJson(r1, r2);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r2 = com.android.volley.toolbox.HttpHeaderParser.parseCacheHeaders(r7);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n r0 = com.android.volley.Response.success(r0, r2);\t Catch:{ UnsupportedEncodingException -> 0x00bd, JsonSyntaxException -> 0x0187, Exception -> 0x0114 }\n L_0x00bc:\n return r0;\n L_0x00bd:\n r0 = move-exception;\n r0.printStackTrace();\n r1 = r6.f;\n r1.a(r5);\n r1 = new com.jd.fridge.util.a.c;\n r1.<init>(r0);\n com.android.volley.Response.error(r1);\n r1 = \"infoss\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"jsonStr=1111111=\";\n r2 = r2.append(r3);\n r0 = r2.append(r0);\n r0 = r0.toString();\n com.jd.fridge.util.r.c(r1, r0);\n L_0x00e6:\n r0 = new com.jd.fridge.util.a.c;\n r0.<init>(r7);\n r0 = com.android.volley.Response.error(r0);\n goto L_0x00bc;\n L_0x00f0:\n r0 = move-exception;\n r1 = r2;\n L_0x00f2:\n r2 = r6.c;\n if (r2 == 0) goto L_0x00fb;\n L_0x00f6:\n r2 = r6.c;\n r2.a(r1);\n L_0x00fb:\n r1 = \"infoss\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"JsonSyntaxException=222=\";\n r2 = r2.append(r3);\n r0 = r2.append(r0);\n r0 = r0.toString();\n com.jd.fridge.util.r.c(r1, r0);\n goto L_0x00e6;\n L_0x0114:\n r0 = move-exception;\n r0.printStackTrace();\n r1 = r6.f;\n r1.a(r5);\n r1 = new com.jd.fridge.util.a.c;\n r1.<init>(r0);\n com.android.volley.Response.error(r1);\n r1 = \"infoss\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"jsonStr=333=\";\n r2 = r2.append(r3);\n r0 = r2.append(r0);\n r0 = r0.toString();\n com.jd.fridge.util.r.c(r1, r0);\n goto L_0x00e6;\n L_0x013e:\n r0 = \"infos\";\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = \"response fail: \";\n r1 = r1.append(r2);\n r2 = r7.data;\n r2 = r2.toString();\n r1 = r1.append(r2);\n r1 = r1.toString();\n com.jd.fridge.util.r.c(r0, r1);\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r1 = \"result=\";\n r0 = r0.append(r1);\n r1 = r7.data;\n r1 = r1.toString();\n r0 = r0.append(r1);\n r0 = r0.toString();\n com.jd.fridge.util.k.a(r0);\n r0 = r6.f;\n r0.a(r5);\n r0 = new com.jd.fridge.util.a.c;\n r0.<init>(r7);\n com.android.volley.Response.error(r0);\n goto L_0x00e6;\n L_0x0187:\n r0 = move-exception;\n goto L_0x00f2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.jd.fridge.util.a.d.parseNetworkResponse(com.android.volley.NetworkResponse):com.android.volley.Response<T>\");\n }", "public IMAGE_OPTIONAL_HEADER64 getOptionalHeader64() { return null; }", "public long getContentLength()\r\n/* 180: */ {\r\n/* 181:269 */ String value = getFirst(\"Content-Length\");\r\n/* 182:270 */ return value != null ? Long.parseLong(value) : -1L;\r\n/* 183: */ }", "@Override\n\tpublic int getMaxSizeZ()\n\t{\n\t\treturn 200;\n\t}", "private final void m37301b(int i) throws Exception {\n if (Callback.DEFAULT_DRAG_ANIMATION_DURATION <= i) {\n if (299 >= i) {\n return;\n }\n }\n if (i == 410) {\n throw ((Throwable) new NoUsernameAvailableException());\n }\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Network Error: status code \");\n stringBuilder.append(i);\n throw new IOException(stringBuilder.toString());\n }", "@Override\n\tpublic String getImagePath16X16() {\n\t\treturn null;\n\t}", "public int getCountRequests() {\n/* 415 */ return this.countRequests;\n/* */ }", "void mo54417a(DownloadChunk downloadChunk);", "@Override\r\n\tpublic String getSize() {\n\t\treturn \"A4\";\r\n\t}", "@Override\n\t\t\tprotected void deliverResponse(Bitmap response) {\n\n\t\t\t}", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r18\n r2 = r19\n int[] r10 = r0.f10958m\n r11 = 0\n if (r2 != 0) goto L_0x000e\n java.util.Arrays.fill(r10, r11)\n L_0x000e:\n r12 = 3\n r13 = 2\n r14 = 1\n if (r2 == 0) goto L_0x005e\n int r3 = r2.f10976g\n if (r3 <= 0) goto L_0x005e\n if (r3 != r13) goto L_0x0037\n boolean r3 = r1.f10975f\n if (r3 != 0) goto L_0x002c\n com.clevertap.android.sdk.c1 r3 = r0.f10961p\n int r4 = r3.f11004l\n int[] r5 = r1.f10980k\n if (r5 == 0) goto L_0x0033\n int r3 = r3.f11002j\n int r5 = r1.f10977h\n if (r3 != r5) goto L_0x0033\n goto L_0x0032\n L_0x002c:\n int r3 = r0.f10959n\n if (r3 != 0) goto L_0x0032\n r0.f10969x = r14\n L_0x0032:\n r4 = 0\n L_0x0033:\n r0.m14716a(r10, r2, r4)\n goto L_0x005e\n L_0x0037:\n if (r3 != r12) goto L_0x005e\n android.graphics.Bitmap r3 = r0.f10963r\n if (r3 != 0) goto L_0x0041\n r0.m14716a(r10, r2, r11)\n goto L_0x005e\n L_0x0041:\n int r4 = r2.f10973d\n int r5 = r0.f10966u\n int r9 = r4 / r5\n int r4 = r2.f10971b\n int r7 = r4 / r5\n int r4 = r2.f10972c\n int r8 = r4 / r5\n int r2 = r2.f10970a\n int r6 = r2 / r5\n int r5 = r0.f10968w\n int r2 = r7 * r5\n int r4 = r2 + r6\n r2 = r3\n r3 = r10\n r2.getPixels(r3, r4, r5, r6, r7, r8, r9)\n L_0x005e:\n r17.m14715a(r18)\n int r2 = r1.f10973d\n int r3 = r0.f10966u\n int r2 = r2 / r3\n int r4 = r1.f10971b\n int r4 = r4 / r3\n int r5 = r1.f10972c\n int r5 = r5 / r3\n int r6 = r1.f10970a\n int r6 = r6 / r3\n r3 = 8\n int r7 = r0.f10959n\n if (r7 != 0) goto L_0x0077\n r7 = 1\n goto L_0x0078\n L_0x0077:\n r7 = 0\n L_0x0078:\n r3 = 0\n r8 = 1\n r9 = 8\n L_0x007c:\n if (r11 >= r2) goto L_0x0100\n boolean r15 = r1.f10974e\n if (r15 == 0) goto L_0x0098\n r15 = 4\n if (r3 < r2) goto L_0x0095\n int r8 = r8 + 1\n if (r8 == r13) goto L_0x0094\n if (r8 == r12) goto L_0x0091\n if (r8 == r15) goto L_0x008e\n goto L_0x0095\n L_0x008e:\n r3 = 1\n r9 = 2\n goto L_0x0095\n L_0x0091:\n r3 = 2\n r9 = 4\n goto L_0x0095\n L_0x0094:\n r3 = 4\n L_0x0095:\n int r15 = r3 + r9\n goto L_0x009a\n L_0x0098:\n r15 = r3\n r3 = r11\n L_0x009a:\n int r3 = r3 + r4\n int r12 = r0.f10967v\n if (r3 >= r12) goto L_0x00f0\n int r12 = r0.f10968w\n int r3 = r3 * r12\n int r16 = r3 + r6\n int r13 = r16 + r5\n int r14 = r3 + r12\n if (r14 >= r13) goto L_0x00ad\n int r13 = r3 + r12\n L_0x00ad:\n int r3 = r0.f10966u\n int r12 = r11 * r3\n int r14 = r1.f10972c\n int r12 = r12 * r14\n int r14 = r13 - r16\n int r14 = r14 * r3\n int r14 = r14 + r12\n r3 = r16\n L_0x00bc:\n if (r3 >= r13) goto L_0x00f0\n r19 = r2\n int r2 = r0.f10966u\n r16 = r4\n r4 = 1\n if (r2 != r4) goto L_0x00d2\n byte[] r2 = r0.f10957l\n byte r2 = r2[r12]\n r2 = r2 & 255(0xff, float:3.57E-43)\n int[] r4 = r0.f10946a\n r2 = r4[r2]\n goto L_0x00d8\n L_0x00d2:\n int r2 = r1.f10972c\n int r2 = r0.m14712a(r12, r14, r2)\n L_0x00d8:\n if (r2 == 0) goto L_0x00dd\n r10[r3] = r2\n goto L_0x00e6\n L_0x00dd:\n boolean r2 = r0.f10969x\n if (r2 != 0) goto L_0x00e6\n if (r7 == 0) goto L_0x00e6\n r2 = 1\n r0.f10969x = r2\n L_0x00e6:\n int r2 = r0.f10966u\n int r12 = r12 + r2\n int r3 = r3 + 1\n r2 = r19\n r4 = r16\n goto L_0x00bc\n L_0x00f0:\n r19 = r2\n r16 = r4\n int r11 = r11 + 1\n r2 = r19\n r3 = r15\n r4 = r16\n r12 = 3\n r13 = 2\n r14 = 1\n goto L_0x007c\n L_0x0100:\n boolean r2 = r0.f10964s\n if (r2 == 0) goto L_0x0123\n int r1 = r1.f10976g\n if (r1 == 0) goto L_0x010b\n r2 = 1\n if (r1 != r2) goto L_0x0123\n L_0x010b:\n android.graphics.Bitmap r1 = r0.f10963r\n if (r1 != 0) goto L_0x0115\n android.graphics.Bitmap r1 = r17.m14718q()\n r0.f10963r = r1\n L_0x0115:\n android.graphics.Bitmap r1 = r0.f10963r\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n L_0x0123:\n android.graphics.Bitmap r9 = r17.m14718q()\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r1 = r9\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n return r9\n */\n 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\");\n }", "private android.graphics.Bitmap loadContactPhotoThumbnail(java.lang.String r4) {\n /*\n r3 = this;\n r1 = 0\n r0 = 11\n boolean r0 = org.linphone.mediastream.Version.sdkAboveOrEqual(r0) // Catch:{ FileNotFoundException -> 0x0045, all -> 0x0055 }\n if (r0 == 0) goto L_0x0027\n android.net.Uri r0 = android.net.Uri.parse(r4) // Catch:{ FileNotFoundException -> 0x0045, all -> 0x0055 }\n L_0x000d:\n com.pccw.mobile.sip.AddCallCallLogFragment r2 = com.pccw.mobile.sip.AddCallCallLogFragment.this // Catch:{ FileNotFoundException -> 0x0045, all -> 0x0055 }\n android.support.v4.app.FragmentActivity r2 = r2.getActivity() // Catch:{ FileNotFoundException -> 0x0045, all -> 0x0055 }\n android.content.ContentResolver r2 = r2.getContentResolver() // Catch:{ FileNotFoundException -> 0x0045, all -> 0x0055 }\n java.io.InputStream r2 = r2.openInputStream(r0) // Catch:{ FileNotFoundException -> 0x0045, all -> 0x0055 }\n if (r2 == 0) goto L_0x0039\n android.graphics.Bitmap r0 = android.graphics.BitmapFactory.decodeStream(r2) // Catch:{ FileNotFoundException -> 0x0064 }\n if (r2 == 0) goto L_0x0026\n r2.close() // Catch:{ IOException -> 0x0034 }\n L_0x0026:\n return r0\n L_0x0027:\n android.net.Uri r0 = android.provider.ContactsContract.Contacts.CONTENT_URI // Catch:{ FileNotFoundException -> 0x0045, all -> 0x0055 }\n android.net.Uri r0 = android.net.Uri.withAppendedPath(r0, r4) // Catch:{ FileNotFoundException -> 0x0045, all -> 0x0055 }\n java.lang.String r2 = \"photo\"\n android.net.Uri r0 = android.net.Uri.withAppendedPath(r0, r2) // Catch:{ FileNotFoundException -> 0x0045, all -> 0x0055 }\n goto L_0x000d\n L_0x0034:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x0026\n L_0x0039:\n if (r2 == 0) goto L_0x003e\n r2.close() // Catch:{ IOException -> 0x0040 }\n L_0x003e:\n r0 = r1\n goto L_0x0026\n L_0x0040:\n r0 = move-exception\n r0.printStackTrace()\n goto L_0x003e\n L_0x0045:\n r0 = move-exception\n r2 = r1\n L_0x0047:\n r0.printStackTrace() // Catch:{ all -> 0x0061 }\n if (r2 == 0) goto L_0x003e\n r2.close() // Catch:{ IOException -> 0x0050 }\n goto L_0x003e\n L_0x0050:\n r0 = move-exception\n r0.printStackTrace()\n goto L_0x003e\n L_0x0055:\n r0 = move-exception\n L_0x0056:\n if (r1 == 0) goto L_0x005b\n r1.close() // Catch:{ IOException -> 0x005c }\n L_0x005b:\n throw r0\n L_0x005c:\n r1 = move-exception\n r1.printStackTrace()\n goto L_0x005b\n L_0x0061:\n r0 = move-exception\n r1 = r2\n goto L_0x0056\n L_0x0064:\n r0 = move-exception\n goto L_0x0047\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.pccw.mobile.sip.AddCallCallLogFragment.CallLogAdapter.loadContactPhotoThumbnail(java.lang.String):android.graphics.Bitmap\");\n }", "private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "public void mo1534c() {\n C2201w.m8373a(\"Photo TransferData failed!\", 1);\n }", "@Override\npublic int writingBenches() {\n\treturn 200;\n}", "private String processBytes(String bytes){\n Pattern p = Pattern.compile(\"170-180\");\r\n Matcher m = p.matcher(bytes);\r\n //find two bounds\r\n int posi[] = new int[2];\r\n for(int i=0;i<2;i++){\r\n if(m.find()) posi[i] = m.start();\r\n }\r\n //Cut string\r\n return bytes.substring(posi[0], posi[1]);\r\n }", "abstract Long getContentLength();", "@Override\n public int getSize() {\n return 64;\n }", "public void setDecodedStreamLength(int decodedStreamLength) {\n/* 577 */ this.stream.setInt(COSName.DL, decodedStreamLength);\n/* */ }", "public int getSignedUrlDuration();", "public interface HttpMimeType {\n\n\t// Image\n \n public static final String APNG_IMAGE = \"image/apng\";\n \n public static final String BMP_IMAGE = \"image/bmp\";\n\n\tpublic static final String GIF_IMAGE = \"image/gif\";\n\t\n\tpublic static final String ICO_IMAGE = \"image/ico\";\n\n\tpublic static final String JPEG_IMAGE = \"image/jpeg\";\n\n\tpublic static final String JPG_IMAGE = \"image/jpg\";\n\n public static final String PNG_IMAGE = \"image/png\";\n\n\tpublic static final String SVG_IMAGE = \"image/svg+xml\";\n\n\tpublic static final String TIFF_IMAGE = \"image/tiff\";\n\t\n\tpublic static final String WEBP_IMAGE = \"image/webp\";\n\n\t// text formats\n\n\tpublic static final String TEXT_PLAIN = \"text/plain\";\n\n\tpublic static final String CSV = \"text/csv\";\n\n\tpublic static final String CSS = \"text/css\";\n\n\tpublic static final String HTML = \"text/html\";\n\n\tpublic static final String JAVASCRIPT = \"text/javascript\";\n\n\tpublic static final String RTF = \"text/rtf\";\n\n\tpublic static final String XML = \"text/xml\";\n\n\t// document formats\n\n\tpublic static final String JSON = \"application/json\";\n\n\tpublic static final String ATOM = \"application/atom+xml\";\n\n\tpublic static final String PDF = \"application/pdf\";\n\n\tpublic static final String POSTSCRIPT = \"application/postscript\";\n\n\tpublic static final String XLS = \"application/vnd.ms-excel\";\n\n\tpublic static final String XLSX = \"application/vnd.ms-excel\";\n\n\tpublic static final String PPT = \"application/vnd.ms-powerpoint\";\n\n\tpublic static final String PPTX = \"application/vnd.ms-powerpoint\";\n\n\tpublic static final String XPS = \"application/vnd.ms-xpsdocument\";\n\n\t// binary\n\n\tpublic static final String BINARY = \"application/octet-stream\";\n\n\t// music ones\n\n\tpublic static final String MP4_AUDIO = \"audio/mp4\";\n\n\tpublic static final String MP3_AUDIO = \"audio/mpeg\";\n\n\tpublic static final String OGG_VORBIS_AUDIO = \"audio/ogg\";\n\n\tpublic static final String OPUS_AUDIO = \"audio/opus\";\n\n\tpublic static final String VORBIS_AUDIO = \"audio/vorbis\";\n\n\tpublic static final String WEBM_AUDIO = \"audio/webm\";\n\n\t// video\n\n\tpublic static final String MPEG_VIDEO = \"video/mpeg\";\n\n\tpublic static final String MP4_VIDEO = \"video/mp4\";\n\n\tpublic static final String OGG_THEORA_VIDEO = \"video/ogg\";\n\n\tpublic static final String QUICKTIME_VIDEO = \"video/quicktime\";\n\n\tpublic static final String WEBM_VIDEO = \"video/webm\";\n\n\t// feeds\n\n\tpublic static final String RDF = \"application/rdf+xml\";\n\n\tpublic static final String RSS = \"application/rss+xml\";\n\n}", "public static int m18349a(AbsResponseWrapper aVar) {\n int lastIndexOf;\n if (aVar == null) {\n return -1;\n }\n if (aVar.mo26442a() == 200) {\n return m18350a(aVar.mo26445a(\"Content-Length\", null), -1);\n }\n if (aVar.mo26442a() == 206) {\n String a = aVar.mo26445a(AsyncHttpClient.HEADER_CONTENT_RANGE, null);\n if (!TextUtils.isEmpty(a) && (lastIndexOf = a.lastIndexOf(MqttTopic.TOPIC_LEVEL_SEPARATOR)) >= 0 && lastIndexOf < a.length() - 1) {\n return m18350a(a.substring(lastIndexOf + 1), -1);\n }\n }\n return -1;\n }", "public boolean m60372a(boolean r7, okhttp3.internal.http2.C15938f.C15937b r8) throws java.io.IOException {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n r0 = 0;\n r1 = r6.f49425c;\t Catch:{ IOException -> 0x0097 }\n r2 = 9;\t Catch:{ IOException -> 0x0097 }\n r1.require(r2);\t Catch:{ IOException -> 0x0097 }\n r1 = r6.f49425c;\n r1 = okhttp3.internal.http2.C15938f.m60359a(r1);\n r2 = 1;\n if (r1 < 0) goto L_0x0088;\n L_0x0011:\n r3 = 16384; // 0x4000 float:2.2959E-41 double:8.0948E-320;\n if (r1 <= r3) goto L_0x0017;\n L_0x0015:\n goto L_0x0088;\n L_0x0017:\n r3 = r6.f49425c;\n r3 = r3.readByte();\n r3 = r3 & 255;\n r3 = (byte) r3;\n if (r7 == 0) goto L_0x0034;\n L_0x0022:\n r7 = 4;\n if (r3 == r7) goto L_0x0034;\n L_0x0025:\n r7 = \"Expected a SETTINGS frame but was %s\";\n r8 = new java.lang.Object[r2];\n r1 = java.lang.Byte.valueOf(r3);\n r8[r0] = r1;\n r7 = okhttp3.internal.http2.C15933c.m60314b(r7, r8);\n throw r7;\n L_0x0034:\n r7 = r6.f49425c;\n r7 = r7.readByte();\n r7 = r7 & 255;\n r7 = (byte) r7;\n r0 = r6.f49425c;\n r0 = r0.readInt();\n r4 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n r0 = r0 & r4;\n r4 = f49423a;\n r5 = java.util.logging.Level.FINE;\n r4 = r4.isLoggable(r5);\n if (r4 == 0) goto L_0x005a;\n L_0x0051:\n r4 = f49423a;\n r5 = okhttp3.internal.http2.C15933c.m60313a(r2, r0, r1, r3, r7);\n r4.fine(r5);\n L_0x005a:\n switch(r3) {\n case 0: goto L_0x0084;\n case 1: goto L_0x0080;\n case 2: goto L_0x007c;\n case 3: goto L_0x0078;\n case 4: goto L_0x0074;\n case 5: goto L_0x0070;\n case 6: goto L_0x006c;\n case 7: goto L_0x0068;\n case 8: goto L_0x0064;\n default: goto L_0x005d;\n };\n L_0x005d:\n r7 = r6.f49425c;\n r0 = (long) r1;\n r7.skip(r0);\n goto L_0x0087;\n L_0x0064:\n r6.m60370i(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x0068:\n r6.m60369h(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x006c:\n r6.m60368g(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x0070:\n r6.m60367f(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x0074:\n r6.m60366e(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x0078:\n r6.m60365d(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x007c:\n r6.m60364c(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x0080:\n r6.m60362a(r8, r1, r7, r0);\n goto L_0x0087;\n L_0x0084:\n r6.m60363b(r8, r1, r7, r0);\n L_0x0087:\n return r2;\n L_0x0088:\n r7 = \"FRAME_SIZE_ERROR: %s\";\n r8 = new java.lang.Object[r2];\n r1 = java.lang.Integer.valueOf(r1);\n r8[r0] = r1;\n r7 = okhttp3.internal.http2.C15933c.m60314b(r7, r8);\n throw r7;\n L_0x0097:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http2.f.a(boolean, okhttp3.internal.http2.f$b):boolean\");\n }", "private void mo71773u() {\n List imageInfos = this.f73950g.getImageInfos();\n if (imageInfos != null && !imageInfos.isEmpty()) {\n ImageInfo imageInfo = (ImageInfo) imageInfos.get(0);\n if (imageInfo != null) {\n this.mCoverView.setVisibility(0);\n this.mLineProgressBar.mo74361a();\n C23323e.m76524b(this.mCoverView, imageInfo.getLabelLarge());\n C23323e.m76502a(imageInfo.getLabelLarge(), (C23328a) new C23328a() {\n /* renamed from: a */\n public final void mo60609a(C13346c<C13326a<C13645c>> cVar) {\n FeedImageViewHolder.this.mLineProgressBar.mo74362b();\n }\n\n /* renamed from: a */\n public final void mo60610a(Exception exc) {\n FeedImageViewHolder.this.mLineProgressBar.mo74362b();\n }\n });\n }\n }\n }", "private ByteBuffer m152573b(int i) {\n String str = i != 404 ? \"500 Internal Server Error\" : \"404 WebSocket Upgrade Failure\";\n return ByteBuffer.wrap(Charsetfunctions.m152704b(\"HTTP/1.1 \" + str + \"\\r\\nContent-Type: text/html\\nServer: TooTallNate Java-WebSocket\\r\\nContent-Length: \" + (str.length() + 48) + \"\\r\\n\\r\\n<html><head></head><body><h1>\" + str + \"</h1></body></html>\"));\n }", "public InputStream mo7250b(String str, Object obj) {\n HttpURLConnection c = mo7251c(str, obj);\n int i = 0;\n while (c.getResponseCode() / 100 == 3 && i < 5) {\n c = mo7251c(c.getHeaderField(\"Location\"), obj);\n i++;\n }\n try {\n InputStream inputStream = c.getInputStream();\n if (mo7249a(c)) {\n return new C0558gl(new BufferedInputStream(inputStream, 32768), c.getContentLength());\n }\n C0597hm.m1054a((Closeable) inputStream);\n throw new IOException(\"Image request failed with response code \" + c.getResponseCode());\n } catch (IOException e) {\n C0597hm.m1055a(c.getErrorStream());\n throw e;\n }\n }", "public byte[] getData()\r\n/* 18: */ {\r\n/* 19:59 */ byte[] data = new byte[4];\r\n/* 20: */ \r\n/* 21:61 */ IntegerHelper.getTwoBytes(this.xfIndex, data, 0); int \r\n/* 22: */ \r\n/* 23: */ \r\n/* 24:64 */ tmp15_14 = 1; byte[] tmp15_13 = data;tmp15_13[tmp15_14] = ((byte)(tmp15_13[tmp15_14] | 0x80));\r\n/* 25: */ \r\n/* 26:66 */ data[2] = ((byte)this.styleNumber);\r\n/* 27: */ \r\n/* 28: */ \r\n/* 29:69 */ data[3] = -1;\r\n/* 30: */ \r\n/* 31:71 */ return data;\r\n/* 32: */ }", "private static void m147524a(VKApiPhotoSize vKApiPhotoSize, float f, int i) {\n vKApiPhotoSize.f121136b = i;\n vKApiPhotoSize.f121137c = (int) Math.ceil((double) (((float) vKApiPhotoSize.f121136b) / f));\n }", "public static Size m97137a(String str) {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(str, options);\n return new Size(options.outWidth, options.outHeight);\n }", "public void validateRpd16s4()\n {\n Node meta = getElement(ELEM_META);\n\n assertTrue(Type.ERROR, \"rpd16s4.position\", hasAttribute(meta, ATTR_CONTENT)\n && StringUtils.containsIgnoreCase(getAttributeValue(meta, ATTR_CONTENT), CONTENT_CHARSET_FRAGMENT));\n }", "private float m215d(float f) {\n return TypedValue.applyDimension(1, f, this.f418s);\n }", "private void m43018h() throws IOException {\n this.f40240k = (HttpURLConnection) new URL(this.f40231b).openConnection();\n this.f40240k.setRequestMethod(\"GET\");\n this.f40240k.setReadTimeout(20000);\n this.f40240k.setConnectTimeout(15000);\n this.f40240k.setUseCaches(false);\n this.f40240k.setDefaultUseCaches(false);\n this.f40240k.setInstanceFollowRedirects(true);\n this.f40240k.setDoInput(true);\n for (C13157a header : this.f40233d) {\n this.f40240k.addRequestProperty(header.mo42192a(), header.mo42193b());\n }\n }", "private long writeOrCountBytes(okio.BufferedSink r19, boolean r20) throws java.io.IOException {\n /*\n r18 = this;\n r4 = 0\n r3 = 0\n if (r20 == 0) goto L_0x000c\n okio.Buffer r3 = new okio.Buffer\n r3.<init>()\n r19 = r3\n L_0x000c:\n r12 = 0\n r0 = r18\n java.util.List<okhttp3.MultipartBody$Part> r15 = r0.parts\n int r14 = r15.size()\n L_0x0015:\n if (r12 >= r14) goto L_0x00c0\n r0 = r18\n java.util.List<okhttp3.MultipartBody$Part> r15 = r0.parts\n java.lang.Object r13 = r15.get(r12)\n okhttp3.MultipartBody$Part r13 = (okhttp3.MultipartBody.Part) r13\n okhttp3.Headers r11 = r13.headers\n okhttp3.RequestBody r2 = r13.body\n byte[] r15 = DASHDASH\n r0 = r19\n r0.write(r15)\n r0 = r18\n okio.ByteString r15 = r0.boundary\n r0 = r19\n r0.write(r15)\n byte[] r15 = CRLF\n r0 = r19\n r0.write(r15)\n if (r11 == 0) goto L_0x0065\n r9 = 0\n int r10 = r11.size()\n L_0x0043:\n if (r9 >= r10) goto L_0x0065\n java.lang.String r15 = r11.name(r9)\n r0 = r19\n okio.BufferedSink r15 = r0.writeUtf8(r15)\n byte[] r16 = COLONSPACE\n okio.BufferedSink r15 = r15.write(r16)\n java.lang.String r16 = r11.value(r9)\n okio.BufferedSink r15 = r15.writeUtf8(r16)\n byte[] r16 = CRLF\n r15.write(r16)\n int r9 = r9 + 1\n goto L_0x0043\n L_0x0065:\n okhttp3.MediaType r8 = r2.contentType()\n if (r8 == 0) goto L_0x0081\n java.lang.String r15 = \"Content-Type: \"\n r0 = r19\n okio.BufferedSink r15 = r0.writeUtf8(r15)\n java.lang.String r16 = r8.toString()\n okio.BufferedSink r15 = r15.writeUtf8(r16)\n byte[] r16 = CRLF\n r15.write(r16)\n L_0x0081:\n long r6 = r2.contentLength()\n r16 = -1\n int r15 = (r6 > r16 ? 1 : (r6 == r16 ? 0 : -1))\n if (r15 == 0) goto L_0x00b2\n java.lang.String r15 = \"Content-Length: \"\n r0 = r19\n okio.BufferedSink r15 = r0.writeUtf8(r15)\n okio.BufferedSink r15 = r15.writeDecimalLong(r6)\n byte[] r16 = CRLF\n r15.write(r16)\n L_0x009d:\n byte[] r15 = CRLF\n r0 = r19\n r0.write(r15)\n if (r20 == 0) goto L_0x00ba\n long r4 = r4 + r6\n L_0x00a7:\n byte[] r15 = CRLF\n r0 = r19\n r0.write(r15)\n int r12 = r12 + 1\n goto L_0x0015\n L_0x00b2:\n if (r20 == 0) goto L_0x009d\n r3.clear()\n r16 = -1\n L_0x00b9:\n return r16\n L_0x00ba:\n r0 = r19\n r2.writeTo(r0)\n goto L_0x00a7\n L_0x00c0:\n byte[] r15 = DASHDASH\n r0 = r19\n r0.write(r15)\n r0 = r18\n okio.ByteString r15 = r0.boundary\n r0 = r19\n r0.write(r15)\n byte[] r15 = DASHDASH\n r0 = r19\n r0.write(r15)\n byte[] r15 = CRLF\n r0 = r19\n r0.write(r15)\n if (r20 == 0) goto L_0x00e9\n long r16 = r3.size()\n long r4 = r4 + r16\n r3.clear()\n L_0x00e9:\n r16 = r4\n goto L_0x00b9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.MultipartBody.writeOrCountBytes(okio.BufferedSink, boolean):long\");\n }", "protected abstract int decodeLength ();", "@Override\n\tpublic int getMediaDuration() {\n\t\treturn 0;\n\t}", "private static String m33067a(String str, long j, int i, String str2, String str3, int i2, int i3, int i4) {\n AppMethodBeat.m2504i(135624);\n C30065b c30065b = new C30065b();\n c30065b.field_fileFullPath = str;\n c30065b.field_appId = str2;\n c30065b.field_sdkVer = (long) i;\n c30065b.field_mediaSvrId = str3;\n c30065b.field_totalLen = (long) i2;\n c30065b.field_status = 101;\n c30065b.field_isUpload = false;\n c30065b.field_createTime = C5046bo.anU();\n c30065b.field_lastModifyTime = C5046bo.anT();\n c30065b.field_msgInfoId = j;\n c30065b.field_netTimes = 0;\n c30065b.field_type = (long) i3;\n C4990ab.m7417i(\"MicroMsg.AppMsgLogic\", \"summerbig initDownloadAttach ret[%b], rowid[%d], field_totalLen[%d], type[%d], isLargeFile[%d], destFile[%s], stack[%s]\", Boolean.valueOf(C34832a.aUq().mo10101b((C4925c) c30065b)), Long.valueOf(c30065b.xDa), Long.valueOf(c30065b.field_totalLen), Long.valueOf(c30065b.field_type), Integer.valueOf(i4), str, C5046bo.dpG());\n AppMethodBeat.m2505o(135624);\n return str3;\n }", "@Override\n public void onRewardedVideoAdFailedToLoad(int i) {\n }", "public static void sliceTo4x4(final Context context, final onSuccessLoadBitmap onSuccessLoadBitmap, String imageUrl) {\n\n new ConvertUrlToBitmap().execute(imageUrl);\n\n final Handler handler = new Handler();\n Runnable runnable = new Runnable() {\n\n @Override\n public void run() {\n try{\n //do your code here\n System.out.println(bitmapList.size());\n if(bitmapList.size()==16)onSuccessLoadBitmap.onSliceSuccess(bitmapList);\n }\n catch (Exception e) {\n\n }\n finally{\n //also call the same runnable to call it at regular interval\n if(!downloadselesai)handler.postDelayed(this, 1000);\n }\n }\n };\n handler.post(runnable);\n\n /*\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample11));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample12));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample13));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample14));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample21));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample22));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample23));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample24));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample31));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample32));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample33));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample34));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample41));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample42));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample43));*/\n\n\n\n\n }", "@Override\n\tpublic void setContentLength(int len) {\n\t}", "private byte[] getImageIDESizeParameter() {\n if (ideSize != 1) {\n final byte[] ideSizeData = new byte[] {\n (byte)0x96, // ID\n 0x01, // Length\n ideSize};\n return ideSizeData;\n } else {\n return new byte[0];\n }\n }", "public int getResponseCode() throws IOException {\n/* 317 */ return this.delegate.getResponseCode();\n/* */ }", "@Override\n protected int getExpectedOutgoingMessageSize() {\n return 256;\n }", "public String reSizeImage(String url){\n if (url.equals(\"\"))\n return url;\n String[] separated = url.split(\"=\");\n return separated[0] + \"=s500\";\n }", "public static String m18355a(AbsResponseWrapper aVar, boolean z, boolean z2) {\n String a;\n if (aVar == null) {\n if (!Proxy.f16280c) {\n return \"response null\";\n }\n Log.e(\"TAG_PROXY_Response\", \"response null\");\n return \"response null\";\n } else if (!aVar.mo26446b()) {\n if (Proxy.f16280c) {\n Log.e(\"TAG_PROXY_Response\", \"response code: \" + aVar.mo26442a());\n }\n return \"response code: \" + aVar.mo26442a();\n } else {\n String a2 = aVar.mo26445a(\"Content-Type\", null);\n if (!m18372c(a2)) {\n if (Proxy.f16280c) {\n Log.e(\"TAG_PROXY_Response\", \"Content-Type: \" + a2);\n }\n return \"Content-Type: \" + a2;\n }\n int a3 = m18349a(aVar);\n if (a3 <= 0) {\n if (Proxy.f16280c) {\n Log.e(\"TAG_PROXY_Response\", \"Content-Length: \" + a3);\n }\n return \"Content-Length: \" + a3;\n } else if (z && ((a = aVar.mo26445a(\"Accept-Ranges\", null)) == null || !a.contains(\"bytes\"))) {\n if (Proxy.f16280c) {\n Log.e(\"TAG_PROXY_Response\", \"Accept-Ranges: \" + a);\n }\n return \"Accept-Ranges: \" + a;\n } else if (!z2 || aVar.mo26448d() != null) {\n return null;\n } else {\n if (!Proxy.f16280c) {\n return \"response body null\";\n }\n Log.e(\"TAG_PROXY_Response\", \"response body null\");\n return \"response body null\";\n }\n }\n }", "private static int m25216a(Activity activity) {\n return ((activity.getWindow().getAttributes().flags & 1024) == 1024 ? true : null) != null ? 16973841 : 16973840;\n }", "private int getAdSize(int position) {\r\n int adSize = position > 2 ? ((position - 3) / 8 + 1) : 0;\r\n return adSize;\r\n }", "@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }", "public C4720i0 mo11074a(C4878a aVar) {\n boolean z;\n C4878a aVar2 = aVar;\n if (aVar2 != null) {\n C4706e0 g = aVar.mo11176g();\n if (g != null) {\n C4707a aVar3 = new C4707a(g);\n C4716h0 h0Var = g.f11032e;\n String str = \"Content-Type\";\n String str2 = \"Content-Length\";\n if (h0Var != null) {\n C4879z b = h0Var.mo10973b();\n if (b != null) {\n aVar3.mo11017a(str, b.f11638a);\n }\n long a = h0Var.mo10970a();\n String str3 = \"Transfer-Encoding\";\n if (a != -1) {\n aVar3.mo11017a(str2, String.valueOf(a));\n aVar3.mo11016a(str3);\n } else {\n aVar3.mo11017a(str3, \"chunked\");\n aVar3.mo11016a(str2);\n }\n }\n String str4 = \"Host\";\n int i = 0;\n if (g.mo11012a(str4) == null) {\n aVar3.mo11017a(str4, C4737b.m10456a(g.f11029b, false));\n }\n String str5 = \"Connection\";\n if (g.mo11012a(str5) == null) {\n aVar3.mo11017a(str5, \"Keep-Alive\");\n }\n String str6 = \"Accept-Encoding\";\n String str7 = \"gzip\";\n if (g.mo11012a(str6) == null && g.mo11012a(\"Range\") == null) {\n aVar3.mo11017a(str6, str7);\n z = true;\n } else {\n z = false;\n }\n List a2 = this.f11294a.mo11344a(g.f11029b);\n if (!a2.isEmpty()) {\n StringBuilder sb = new StringBuilder();\n for (Object next : a2) {\n int i2 = i + 1;\n if (i >= 0) {\n C4854n nVar = (C4854n) next;\n if (i > 0) {\n sb.append(\"; \");\n }\n sb.append(nVar.f11571a);\n sb.append('=');\n sb.append(nVar.f11572b);\n i = i2;\n } else {\n C2286e.m5338f();\n throw null;\n }\n }\n String sb2 = sb.toString();\n C4638h.m10270a((Object) sb2, \"StringBuilder().apply(builderAction).toString()\");\n aVar3.mo11017a(\"Cookie\", sb2);\n }\n String str8 = \"User-Agent\";\n if (g.mo11012a(str8) == null) {\n aVar3.mo11017a(str8, \"okhttp/4.2.1\");\n }\n C4720i0 a3 = aVar2.mo11170a(aVar3.mo11021a());\n C4776e.m10582a(this.f11294a, g.f11029b, a3.f11065k);\n C4721a aVar4 = new C4721a(a3);\n aVar4.f11073a = g;\n if (z) {\n String str9 = \"Content-Encoding\";\n if (C4681g.m10322a(str7, C4720i0.m10406a(a3, str9, null, 2), true) && C4776e.m10583a(a3)) {\n C4725j0 j0Var = a3.f11066l;\n if (j0Var != null) {\n C4902n nVar2 = new C4902n(j0Var.mo10991h());\n C4871a c = a3.f11065k.mo11368c();\n c.mo11381c(str9);\n c.mo11381c(str2);\n aVar4.mo11041a(c.mo11378a());\n aVar4.f11079g = new C4779h(C4720i0.m10406a(a3, str, null, 2), -1, C0967p0.m2183a((C4882a0) nVar2));\n }\n }\n }\n return aVar4.mo11042a();\n }\n throw null;\n }\n C4638h.m10271a(\"chain\");\n throw null;\n }", "abstract boolean ignoreContentLength();", "public void get_B8(String URL);", "private static android.util.Pair<com.google.android.exoplayer2.Format, java.lang.Long> m26780a(com.google.android.exoplayer2.p366s0.p374y.C9043p.C9044a r20, java.lang.String r21) {\n /*\n r0 = r20\n byte[] r1 = r0.f19970d\n int r2 = r0.f19968b\n byte[] r1 = java.util.Arrays.copyOf(r1, r2)\n r2 = 4\n byte r3 = r1[r2]\n r3 = r3 & 255(0xff, float:3.57E-43)\n r4 = 5\n byte r5 = r1[r4]\n r5 = r5 & 255(0xff, float:3.57E-43)\n r6 = 6\n byte r6 = r1[r6]\n r6 = r6 & 255(0xff, float:3.57E-43)\n int r3 = r3 << r2\n int r7 = r5 >> 4\n r13 = r3 | r7\n r3 = r5 & 15\n int r3 = r3 << 8\n r14 = r3 | r6\n r3 = 7\n byte r5 = r1[r3]\n r5 = r5 & 240(0xf0, float:3.36E-43)\n int r5 = r5 >> r2\n r6 = 2\n if (r5 == r6) goto L_0x0043\n r6 = 3\n if (r5 == r6) goto L_0x003d\n if (r5 == r2) goto L_0x0037\n r2 = 1065353216(0x3f800000, float:1.0)\n r18 = 1065353216(0x3f800000, float:1.0)\n goto L_0x004c\n L_0x0037:\n int r2 = r14 * 121\n float r2 = (float) r2\n int r5 = r13 * 100\n goto L_0x0048\n L_0x003d:\n int r2 = r14 * 16\n float r2 = (float) r2\n int r5 = r13 * 9\n goto L_0x0048\n L_0x0043:\n int r2 = r14 * 4\n float r2 = (float) r2\n int r5 = r13 * 3\n L_0x0048:\n float r5 = (float) r5\n float r2 = r2 / r5\n r18 = r2\n L_0x004c:\n r10 = 0\n r11 = -1\n r12 = -1\n r15 = -1082130432(0xffffffffbf800000, float:-1.0)\n java.util.List r16 = java.util.Collections.singletonList(r1)\n r17 = -1\n r19 = 0\n java.lang.String r9 = \"video/mpeg2\"\n r8 = r21\n com.google.android.exoplayer2.Format r2 = com.google.android.exoplayer2.Format.m24871a(r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19)\n r5 = 0\n byte r3 = r1[r3]\n r3 = r3 & 15\n int r3 = r3 + -1\n if (r3 < 0) goto L_0x0092\n double[] r7 = f19949q\n int r8 = r7.length\n if (r3 >= r8) goto L_0x0092\n r5 = r7[r3]\n int r0 = r0.f19969c\n int r0 = r0 + 9\n byte r3 = r1[r0]\n r3 = r3 & 96\n int r3 = r3 >> r4\n byte r0 = r1[r0]\n r0 = r0 & 31\n if (r3 == r0) goto L_0x008b\n double r3 = (double) r3\n r7 = 4607182418800017408(0x3ff0000000000000, double:1.0)\n double r3 = r3 + r7\n int r0 = r0 + 1\n double r0 = (double) r0\n double r3 = r3 / r0\n double r5 = r5 * r3\n L_0x008b:\n r0 = 4696837146684686336(0x412e848000000000, double:1000000.0)\n double r0 = r0 / r5\n long r5 = (long) r0\n L_0x0092:\n java.lang.Long r0 = java.lang.Long.valueOf(r5)\n android.util.Pair r0 = android.util.Pair.create(r2, r0)\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.p366s0.p374y.C9043p.m26780a(com.google.android.exoplayer2.s0.y.p$a, java.lang.String):android.util.Pair\");\n }", "@Override\r\n\tpublic int size() {\n\t\treturn 27;\r\n\t}", "public int getUploadBandwidth();", "private void m64355a() throws IOException {\n int i = this.f54971c;\n int a = C15938f.m60359a(this.f54974f);\n this.f54972d = a;\n this.f54969a = a;\n byte readByte = (byte) (this.f54974f.readByte() & 255);\n this.f54970b = (byte) (this.f54974f.readByte() & 255);\n if (C15938f.f49423a.isLoggable(Level.FINE)) {\n C15938f.f49423a.fine(C15933c.m60313a(true, this.f54971c, this.f54969a, readByte, this.f54970b));\n }\n this.f54971c = this.f54974f.readInt() & ActivityChooserViewAdapter.MAX_ACTIVITY_COUNT_UNLIMITED;\n if (readByte != (byte) 9) {\n throw C15933c.m60314b(\"%s != TYPE_CONTINUATION\", Byte.valueOf(readByte));\n } else if (this.f54971c != i) {\n throw C15933c.m60314b(\"TYPE_CONTINUATION streamId changed\", new Object[0]);\n }\n }", "public int getIconWidth()\r\n/* 154: */ {\r\n/* 155:194 */ return SIZE;\r\n/* 156: */ }", "@Test public void inJustDecodeBoundsIfResizing() {\n final Request requiresResize = new Request.Builder(TestUtils.URI_1).resize(20, 15).build();\n final BitmapFactory.Options resizeOptions = createBitmapOptions(requiresResize);\n assertThat(resizeOptions).isNotNull();\n assertThat(resizeOptions.inJustDecodeBounds).isTrue();\n }", "@Override\n public void BitmapDownloadFailedWithError(MessageObj response)\n {\n }", "public AdSize(int r7, int r8) {\n /*\n r6 = this;\n r0 = -1\n if (r7 != r0) goto L_0x004c\n java.lang.String r0 = \"FULL\"\n r1 = r0\n L_0x0006:\n r0 = -2\n if (r8 != r0) goto L_0x0052\n java.lang.String r0 = \"AUTO\"\n L_0x000b:\n java.lang.String r2 = \"_as\"\n java.lang.String r2 = java.lang.String.valueOf(r2)\n java.lang.StringBuilder r3 = new java.lang.StringBuilder\n java.lang.String r4 = java.lang.String.valueOf(r1)\n int r4 = r4.length()\n int r4 = r4 + 1\n java.lang.String r5 = java.lang.String.valueOf(r0)\n int r5 = r5.length()\n int r4 = r4 + r5\n java.lang.String r5 = java.lang.String.valueOf(r2)\n int r5 = r5.length()\n int r4 = r4 + r5\n r3.<init>(r4)\n java.lang.StringBuilder r1 = r3.append(r1)\n java.lang.String r3 = \"x\"\n java.lang.StringBuilder r1 = r1.append(r3)\n java.lang.StringBuilder r0 = r1.append(r0)\n java.lang.StringBuilder r0 = r0.append(r2)\n java.lang.String r0 = r0.toString()\n r6.<init>(r7, r8, r0)\n return\n L_0x004c:\n java.lang.String r0 = java.lang.String.valueOf(r7)\n r1 = r0\n goto L_0x0006\n L_0x0052:\n java.lang.String r0 = java.lang.String.valueOf(r8)\n goto L_0x000b\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.ads.AdSize.<init>(int, int):void\");\n }", "public static int totalSize_infos_metadata() {\n return (16 / 8);\n }", "public int getDownloadBandwidth();", "private Response<Bitmap> doParse(NetworkResponse response) {\n byte[] data = response.data;\n Bitmap bitmap;\n bitmap = ImageUtils.zipBitmap(data, mMaxWidth, mMaxHeight, mScaleType, mDecodeConfig);\n\n if (bitmap == null) {\n return Response.error(new ParseError(response));\n } else {\n return Response.success(bitmap, HttpHeaderParser.parseCacheHeaders(response));\n }\n }" ]
[ "0.5892026", "0.5422422", "0.5397712", "0.5298565", "0.5228473", "0.5224236", "0.5209798", "0.5127334", "0.51183814", "0.5019087", "0.500424", "0.5000833", "0.49750936", "0.49368057", "0.49079505", "0.4904645", "0.49009994", "0.48507294", "0.48311207", "0.4822175", "0.47972915", "0.47933838", "0.47787955", "0.4774929", "0.4770699", "0.47586888", "0.47525755", "0.47468153", "0.47379565", "0.4732725", "0.47277716", "0.4716229", "0.4715698", "0.46867037", "0.46862325", "0.468514", "0.46821418", "0.4681722", "0.4678962", "0.46779248", "0.4675799", "0.4664497", "0.46599856", "0.46506307", "0.4646755", "0.46462914", "0.46385565", "0.4635835", "0.46341872", "0.46303093", "0.462981", "0.46192005", "0.4612567", "0.46069735", "0.460242", "0.46013847", "0.46008897", "0.4589188", "0.45880064", "0.45783", "0.4574663", "0.45716897", "0.45706174", "0.45686117", "0.4560134", "0.4551537", "0.45443618", "0.454189", "0.45373312", "0.45359105", "0.45356447", "0.45283368", "0.4528044", "0.452758", "0.45256376", "0.4525184", "0.45249256", "0.45208025", "0.45164105", "0.45158833", "0.45137993", "0.45120633", "0.45095134", "0.45092717", "0.45045587", "0.4504042", "0.45013633", "0.4496629", "0.4496101", "0.44957095", "0.44859183", "0.44813964", "0.44771785", "0.4476646", "0.4474474", "0.4472396", "0.4470397", "0.44642305", "0.44629496", "0.44623685", "0.4456966" ]
0.0
-1
/ 423: / 424:
public String eliminarDetalleFacturaSRI() /* 425: */ { /* 426:428 */ DetalleFacturaProveedorSRI detalleFacturaProveedorSRI = (DetalleFacturaProveedorSRI)this.dtDetalleFacturaProveedorSRI.getRowData(); /* 427:429 */ detalleFacturaProveedorSRI.setEliminado(true); /* 428: */ /* 429:431 */ return ""; /* 430: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "private static String formatTime(String time) {\n\t\treturn String.format(\"%s:%s\", time.substring(0, 2), time.substring(2));\n\t}", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "@Override\n\tpublic String toString() {\n\t\treturn ip + \" \"+ times;\n\t}", "public static void main(String[] args) {\n\t\tString s = \"12:45:54PM\";\r\n\t\tString temp=\":\";\r\n\t\tString Result=\"\";\r\n\t\t\r\n\t\tif(s.charAt(8)=='P' || s.charAt(8)=='p')\r\n\t\t {\r\n\t\t\tString s1[] = s.split(\":\");\r\n\t int Hour = Integer.parseInt(s1[0]);\r\n\t String Actual_Hour = \"\";\r\n\t if(Hour == 12)\r\n\t {\r\n\t \tActual_Hour = \"12\";\r\n\t }\r\n\t else\r\n\t {\r\n\t \tint data = 12 + Hour;\r\n\t \tActual_Hour = String.valueOf(data);\r\n\t }\r\n\t \r\n\t \r\n\t Result = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2);\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t \tString s1[] = s.split(\":\");\r\n\t\t \tint Hour = Integer.parseInt(s1[0]);\r\n\t\t String Actual_Hour = \"\";\r\n\t\t if(Hour == 12)\r\n\t\t {\r\n\t\t \tActual_Hour = \"00\";\r\n\t\t \tResult = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2); \r\n\t\t }\r\n\t\t else {\r\n\t\t \tString s2[] = s.split(\"AM\");\r\n\t\t\t for(int i=0; i<s2.length; i++)\r\n\t\t\t {\r\n\t\t\t \tResult = s2[i];\r\n\t\t\t }\t\r\n\t\t }\r\n\t\t \t\r\n\t\t }\r\n\t\t\r\n\t\t\t\tSystem.out.println(Result);\r\n}", "String canonHr(String s) {\n List<String> l = StringUtil.breakAt(s, \":\");\n if (l.size() == 2) {\n return l.get(0) + \":\" + l.get(1).toUpperCase();\n }\n return s.toUpperCase();\n }", "public String Formatting(){\n\t\t\t return String.format(\"%03d-%02d-%04d\", getFirstSSN(),getSecondSSN(),getThirdSSN());\n\t\t }", "private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }", "static String timeCount_1(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n \n timeHH += hh;\n timeMI += mi;\n timeSS += ss;\n \n }\n else{\n continue;\n }\n }\n \n timeMI += timeSS / 60;\n timeSS %= 60;\n \n timeHH += timeMI / 60;\n timeMI %= 60; \n\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n \n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n //String result = timeHH + \":\" + timeMI + \":\" + timeSS;\n \n return result;\n }", "String formatTime(int time) {\r\n\t\tint h = time / 3600;\r\n\t\ttime %= 3600;\r\n\t\tint m = time / 60;\r\n\t\ttime %= 60;\r\n\t\tint s = time;\r\n\t\treturn String.format(\"%02d:%02d:%02d\", h, m, s);\r\n\t}", "static String timeConversion(String s) {\n if(s.indexOf('P') >= 0 && s.substring(0, 2).equals(\"12\")){\n }\n else if(s.indexOf('P') >= 0){\n Integer n = Integer.parseInt(s.substring(0, 2));\n s = removeHour(s);\n n += 12;\n String hour = Integer.toString(n);\n s = hour + s;\n }\n else if (s.indexOf('A') >= 0 && s.substring(0, 2).equals(\"12\")){\n s = \"00\" + s.substring(2);\n }\n return removeHourFormat(s);\n }", "private String extractHourMinute(String dateTime)\n {\n String[] aux = dateTime.split(\"T\");\n String[] auxTime = aux[1].split(\":\");\n\n return auxTime[0] + \":\" + auxTime[1];\n }", "private static String timeLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, TIME_STR, TIME);\n }", "@Test\n public void testSplitTime(){\n \tCountDownTimer s = new CountDownTimer();\n \ts.splitTime(3975);\n \tassertEquals(s.toString(), \"1:06:15\");\n \t\n \ts.splitTime(45);\n \tassertEquals(s.toString(), \"0:00:45\");\n \t\n }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "static String timeConversion(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2, 4);\n\n String newHours;\n if (ampm.equals(\"AM\")) {\n newHours = hours.equals(\"12\") ? \"00\" : hours;\n\n } else {\n newHours = hours.equals(\"12\") ? hours : String.valueOf(Integer.parseInt(hours) + 12);\n }\n\n return newHours + \":\" + minutes + \":\" + seconds;\n\n }", "private static boolean validate(String line){\n\t\tString[] lineArray = line.split(\" \");\n\t\t\n\t\tif(lineArray.length != 3) return false; //skip lines in incorrect format\n\t\t\n\t\t//http://stackoverflow.com/questions/25873636/regex-pattern-for-exactly-hhmmss-time-string\n\t\tif(!lineArray[0].matches(\"(?:[01]\\\\d|2[0123]):(?:[012345]\\\\d):(?:[012345]\\\\d)\")) return false;\n\n\t\tif(!lineArray[2].equals(\"Start\") && !lineArray[2].equals(\"End\")) return false;\n\t\t\n\t\treturn true;\n\t}", "private void normalGmtStringToMinutes() {\n int i = Integer.parseInt(gmtString.substring(4, 6));\n offsetMinutes = i * 60;\n i = Integer.parseInt(gmtString.substring(7));\n offsetMinutes += i;\n if (gmtString.charAt(3) == MINUS) {\n offsetMinutes *= -1;\n }\n }", "public String getParamName()\r\n/* 23: */ {\r\n/* 24:59 */ return this.paramName;\r\n/* 25: */ }", "private String formatTime(int seconds){\n return String.format(\"%02d:%02d\", seconds / 60, seconds % 60);\n }", "public static long TimeInformationToSeconds(String info){\n\t\tif(info.indexOf(':') > 0){\n\t\t\tString[] data = info.split(\":\");\n\t\t\tlong hours = Long.parseLong(data[0]);\n\t\t\tlong minutes = Long.parseLong(data[1]);\n\t\t\tlong seconds = Long.parseLong(data[2].split(\"[.]\")[0]);\n\t\t\tlong milliseconds = Long.parseLong(data[2].split(\"[.]\")[1]);\n\t\t\treturn (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t\t}else{\n\t\t\n\t\t/*\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tSystem.out.println(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tSystem.out.println(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tSystem.out.println(info.substring(info.indexOf('.')));\n/*\t\tlong days = Long.parseLong(info.substring(0, info.indexOf(\"day\")));\n\t\tlong hours = Long.parseLong(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tlong minutes = Long.parseLong(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tlong seconds = Long.parseLong(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tlong milliseconds = Long.parseLong(info.substring(info.indexOf('.')));\n\t*/\t\n\t\t}\n\t\treturn 1;//(days * 86400000) + (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t}", "public static void main2(String args[]) {\n String s1 = \"2009-03-10T16:08:55.184 -0600 [ 16621850][ 162233] INFO - thredds.server.opendap.NcDODSServlet - Remote host: 128.117.140.71 - Request: \\\"GET /thredds/dodsC/model/NCEP/NAM/CONUS_80km/NAM_CONUS_80km_20090309_0000.grib1.dods?Geopotential_height%5B7:1:7%5D%5B0:10:10%5D%5B0:1:64%5D%5B0:1:92%5D HTTP/1.1\\\"\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s1, p1);\r\n\r\n // 1 2 3 4 5 6 7 8 9\r\n String s2 = \"2009-03-10T16:08:54.617 -0600 [ 16621283][ 162230] INFO - thredds.server.opendap.NcDODSServlet - Request Completed - 200 - -1 - 47\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s2, p2);\r\n\r\n// Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n Pattern p3 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - (.*)\");\r\n\r\n show(s1, p3);\r\n show(s2, p3);\r\n\r\n }", "private static int getNodeTime(String node) {\n int offSet = 4;\n return (int) node.toCharArray()[0] - offSet;\n }", "private static String normalizeWWN(String unpaddedWWN) {\n String wwn = StringUtils.leftPad(unpaddedWWN, 16, '0');\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < wwn.length(); i += 2) {\n String slice = StringUtils.substring(wwn, i, i + 2);\n if (sb.length() > 0) {\n sb.append(':');\n }\n sb.append(slice);\n }\n return sb.toString();\n }", "protected String mo3406c() {\n return \"Minute\";\n }", "public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }", "public static String[] validateHours(String hours) {\n\tString[] hourString=new String[2];\r\n\tStringTokenizer st=new StringTokenizer(hours,\"-\");\r\n\ttry{\r\n\t\thourString[0]=st.nextToken();\r\n\t\thourString[1]=st.nextToken();\r\n\t}\r\n\tcatch(Exception e){\r\n\t\tSystem.out.println(\"Hours are not proper:\");\r\n\t\thourString[0]=null;\r\n\t\treturn hourString;\r\n\t}\r\n\tboolean validHour=validInteger(hourString[0]);\r\n\tif(!validHour || hourString[0].length()!=4){\r\n\t\tSystem.out.println(\"Invalid Start Time\");\r\n\t\thourString[0]=null;\r\n\t\treturn hourString;\r\n\t}\r\n\tvalidHour=validInteger(hourString[1]);\r\n\tif(!validHour || hourString[1].length()!=4){\r\n\t\tSystem.out.println(\"Invalid End Time Time\");\r\n\t\thourString[0]=null;\r\n\t\treturn hourString;\r\n\t}\r\n\tString time=hourString[0].substring(0, 2)+\":\"+hourString[0].substring(2, 4);\r\n\thourString[0]=time;\r\n\tSystem.out.println(\"Start Time : \"+time);\r\n\ttime=null;\r\n\ttime=hourString[1].substring(0, 2)+\":\"+hourString[1].substring(2, 4);\r\n\thourString[1]=time;\r\n\treturn hourString;\r\n}", "public static String getParsedColonKey(String input) {\t\n\t\tif (input == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn input.split(\":\")[0];\n\t}", "public static String getHHMM()\r\n/* 74: */ {\r\n/* 75: 94 */ String nowTime = \"\";\r\n/* 76: 95 */ Date now = new Date();\r\n/* 77: 96 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 78: 97 */ nowTime = formatter.format(now);\r\n/* 79: 98 */ return nowTime;\r\n/* 80: */ }", "static String timeCount_2(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n int timeSum_second = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n\n timeSum_second += hh*60*60 + mi*60 + ss;\n \n }\n else{\n continue;\n }\n }\n \n timeHH = timeSum_second/60/60;\n timeMI = (timeSum_second%(60*60))/60;\n timeSS = timeSum_second%60;\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n \n return result;\n }", "public String TI()\n\t{\n\t\tDateTimeFormatter f = DateTimeFormatter.ofPattern(\"hh:mm a\");\n\t\tString ti = f.format(st);\n\t\tString ti2 = f.format(et);\n\t\treturn ti + \" - \" + ti2;\n \t}", "public static void main(String[] args) {\n System.out.println(solution(\"02:03:55\",\"00:14:15\",\n new String[] {\"01:20:15-01:45:14\", \n \"00:40:31-01:00:00\",\n \"00:25:50-00:48:29\",\n \"01:30:59-01:53:29\", \n \"01:37:44-02:02:30\"}));\n \n // \"01:00:00\"\n System.out.println(solution(\"99:59:59\", \"25:00:00\",\n new String[] {\"69:59:59-89:59:59\",\n \"01:00:00-21:00:00\",\n \"79:59:59-99:59:59\",\n \"11:00:00-31:00:00\"}));\n \n // \"00:00:00\"\n System.out.println(solution(\"50:00:00\", \"50:00:00\",\n new String[] {\"15:36:51-38:21:49\",\n \"10:14:18-15:36:51\",\n \"38:21:49-42:51:45\"}));\n \n }", "private String normalizeDiseaseId(String diseaseId) {\n String[] tokens = diseaseId.split(\":\");\n if (\"ORPHANET\".equals(tokens[0])) {\n diseaseId = \"ORPHA:\" + tokens[1];\n }\n return diseaseId;\n }", "private int[] parseHours(String str) {\n try {\n return enumerate(str, 0, 23);\n } catch (IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Error parsing hours: \" + e.getMessage());\n }\n }", "private static void checkFormat(String str) {\n if (str.length() != 8)\n throw new IllegalArgumentException(\"length has too be 8\");\n try {\n Integer.parseInt(str.substring(0,2)); //Hours\n Integer.parseInt(str.substring(3,5)); //Minutes\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"These numbers are wrong\");\n }\n if (str.charAt(2) != ':') {\n throw new IllegalArgumentException(\"requires colon between times\");\n }\n if (str.charAt(5) != ' ') {\n throw new IllegalArgumentException(\"requires space between time and period\");\n }\n String mStr = str.substring(6);\n if (!mStr.equals(\"PM\") && !mStr.equals(\"AM\")) {\n throw new IllegalArgumentException(\"Must be AM or PM\");\n }\n }", "private boolean timeValidation(String time){\n if(! time.matches(\"(?:[0-1][0-9]|2[0-4]):[0-5]\\\\d\")){\n return false;\n }\n return true;\n }", "void milestone4(int inputSeconds){\n int days = inputSeconds / 86400;\n int seconds = inputSeconds % 86400;\n int hours = seconds / 3600;\n seconds = seconds % 3600;\n int minutes = seconds / 60;\n seconds = seconds % 60;\n\n System.out.println(\"Day/s: \" + days);\n System.out.println(\"Hour/s: \" + hours);\n System.out.println(\"Minute/s: \" + minutes);\n System.out.println(\"Second/s: \" + seconds);\n }", "public static String m18367b(int i, int i2) {\n if (i >= 0 && i2 > 0) {\n return i + Constants.ACCEPT_TIME_SEPARATOR_SERVER + i2;\n } else if (i > 0) {\n return i + Constants.ACCEPT_TIME_SEPARATOR_SERVER;\n } else if (i >= 0 || i2 <= 0) {\n return null;\n } else {\n return Constants.ACCEPT_TIME_SEPARATOR_SERVER + i2;\n }\n }", "private static int computeTime(String time) {\n\t\tint ret = 0;\n\t\tint multiply = 1;\n\t\tint decimals = 1;\n\t\tfor (int i = time.length() - 1; i >= 0; --i) {\n\t\t\tif (time.charAt(i) == ':') {\n\t\t\t\tmultiply *= 60;\n\t\t\t\tdecimals = 1;\n\t\t\t} else {\n\t\t\t\tret += (time.charAt(i) - '0') * multiply * decimals;\n\t\t\t\tdecimals *= 10;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}", "public String toString() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // 4\n\t\tString hours = String.format(\"%02d\", this.hours);\n\t\tString minutes = String.format(\"%02d\", this.minutes);\n\t\tString seconds = String.format(\"%05.2f\", this.seconds);\n\n\t\tString time = hours + \":\" + minutes + \":\" + seconds;\n\t\treturn time;\n\t}", "public static String m34537a(long j) {\n Formatter format;\n if (j <= 0 || j >= LogBuilder.MAX_INTERVAL) {\n return \"00:00\";\n }\n long j2 = j / 1000;\n int i = (int) (j2 % 60);\n int i2 = (int) ((j2 / 60) % 60);\n int i3 = (int) (j2 / 3600);\n Formatter formatter = new Formatter(new StringBuilder(), Locale.getDefault());\n if (i3 > 0) {\n format = formatter.format(\"%d:%02d:%02d\", Integer.valueOf(i3), Integer.valueOf(i2), Integer.valueOf(i));\n } else {\n format = formatter.format(\"%02d:%02d\", Integer.valueOf(i2), Integer.valueOf(i));\n }\n return format.toString();\n }", "static String timeConversion(String s) {\n String[] sTime = s.split(\":\");\n\n int x = 0;\n\n // if PM and hours >12, add additional 12 to hours\n // for AM and hour = 12, set hour to 00\n if(sTime[sTime.length - 1].contains(\"PM\") && !sTime[0].equals(\"12\"))\n x = 12;\n\n String val1 = \"\";\n if(x == 12)\n val1 = (Integer.parseInt(sTime[0]) + x) + \"\";\n else {\n if(sTime[0].equals(\"12\") && sTime[sTime.length - 1].contains(\"AM\"))\n val1 = \"00\";\n else\n val1 = sTime[0];\n }\n\n // merge the string and return the result\n String result = val1 + \":\" + sTime[1] + \":\" + sTime[2].substring(0,2);\n return result;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println( getDurationString(61, 61));\r\n\t\t System.out.println(getDurationString(60, 59));\r\n\t\t System.out.println(getDurationString(-610, 9));\r\n\t\t System.out.println( getDurationString(1, 6));\r\n\t\t System.out.println( getDurationString(3722));\r\n\t\t\r\n\t\t\r\n\t}", "public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }", "public static String generate4DigitPin() {\n\t\tString longTime = String.valueOf(Calendar.getInstance().getTimeInMillis());\n\t\tint len = longTime.length();\n\n\t\treturn longTime.substring(len - 4);\n\t}", "static String timeConversion(String s) {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tboolean isAm = s.contains(\"AM\");\n\t\t\n\t\ts = s.replace(\"AM\", \"\");\n\t\ts = s.replace(\"PM\", \"\");\n\t\t\n\t\tString str[] = s.split(\":\");\n\t\tint time = Integer.parseInt(str[0]);\n\t\t\n\t\t\n\t\tif(time < 12 && !isAm) {\n\t\t\ttime = time + 12;\n\t\t\tsb.append(time).append(\":\");\n\t\t}else if(time == 12 && isAm) {\n\t\t\tsb.append(\"00:\");\n\t\t}else {\n\t\t\tif (time < 10) sb.append(\"0\").append(time).append(\":\");\n\t\t\telse sb.append(time).append(\":\");\n\t\t}\n\n\t\tsb.append(str[1]).append(\":\").append(str[2]);\n\t\treturn sb.toString();\n\t}", "private static String checkFormat(String date){\r\n\t\tif(date.length()==0) return \"\";\r\n\t\tint dateChars=0,timeChars=0;\r\n\t\tchar currenChar;\r\n\t\t\r\n\t\t//check if the first and the last character of the string is a number, it must always be\r\n\t\tif(!Character.isDigit(date.charAt(0))) return \"\";\r\n\t\tif(!Character.isDigit(date.charAt((date.length()-1)))) return \"\";\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<date.length()-1;i++){\r\n\t\t\tcurrenChar=date.charAt(i);\r\n\t\t\t\r\n\t\t\t//check if every character is / or : or number\t\t\r\n\t\t\tif(!(Character.isDigit(currenChar) || currenChar==':' || currenChar=='/')) return \"\";\r\n\t\t\t//check if there is a number between // or ::, if not it returns false\r\n\t\t\tif((currenChar==':' || currenChar=='/') && (date.charAt(i+1)==':' || date.charAt(i+1)=='/')) return \"\";\r\n\t\t\t\r\n\t\t\t//count the / and :\r\n\t\t\tif(currenChar==':') timeChars++; \r\n\t\t\telse if(currenChar=='/') dateChars++;\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with one :\r\n\t\tif(timeChars==1 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[2];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with two :\r\n\t\telse if(timeChars==2 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[1];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is a date with two /\r\n\t\telse if(dateChars==2 && timeChars==0){\r\n\t\t\t//check if one of the numbers have the right amount of digits\r\n\t\t\tString[] numbers= splitWords(date.replaceAll(\"/\", \" \"));\r\n\t\t\tif(numbers[0].length()>2) return \"\";\r\n\t\t\tif(numbers[1].length()>2) return \"\";\r\n\t\t\tif(numbers[2].length()>4) return \"\";\r\n\t\t\t\r\n\t\t\treturn formats[0];\r\n\t\t}\r\n\t\t\r\n\t\telse return \"\";\t\t\r\n\t}", "private static String format(String value) {\r\n String formattedValue = value.trim();\r\n if (formattedValue.endsWith(\" 00:00:00\")) {\r\n formattedValue = formattedValue.substring(0, formattedValue.length() - 9);\r\n } else {\r\n if (formattedValue.endsWith(\" 00:00:00.0\")) {\r\n formattedValue = formattedValue.substring(0, formattedValue.length() - 11);\r\n }\r\n }\r\n return formattedValue;\r\n }", "public static void main(String[] args)\r\n/* 219: */ throws ParseException\r\n/* 220: */ {\r\n/* 221:299 */ log.debug(Double.valueOf(getAttHour(\"14:15\", \"18:00\")));\r\n/* 222: */ }", "private static String m21400e() {\n try {\n return new BufferedReader(new FileReader(new File(\"/sys/class/net/wlan0/address\"))).readLine();\n } catch (Throwable th) {\n C5205o.m21464a(th);\n return \"02:00:00:00:00:00\";\n }\n }", "public static final String m17015P(String str, String str2) {\n AppMethodBeat.m2504i(114129);\n if (str.contains(VideoMaterialUtil.FRAMES_ID_SEPARATOR_3D) || str.length() <= 0) {\n String[] split = str.split(VideoMaterialUtil.FRAMES_ID_SEPARATOR_3D);\n if (split[0] == null || split[0].length() <= 0) {\n AppMethodBeat.m2505o(114129);\n return str2;\n }\n str = split[0];\n AppMethodBeat.m2505o(114129);\n return str;\n }\n AppMethodBeat.m2505o(114129);\n return str;\n }", "private void processDelay(String str) {\r\n delay = Integer.valueOf(str.split(\":\")[1].trim());\r\n }", "public static String hoursMinutesSeconds(double t) {\n int hours = (int) t/3600;\n int rem = (int) t - hours*3600;\n int mins = rem / 60;\n int secs = rem - mins*60;\n //return String.format(\"%2d:%02d:%02d\", hours, mins, secs);\n return String.format(\"%d:%02d:%02d\", hours, mins, secs);\n }", "private String multipleStartTimes() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (startTimes.size() > 1) {\n\t\t\tsb.append(\"Flera starttider? \");\n\t\t\tfor (int i = 1; i < startTimes.size(); i++) {\n\t\t\t\tsb.append(startTimes.get(i) + \" \");\n\t\t\t}\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\treturn sb.toString();\n\t}", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public static double getAttHour(String time1, String time2)\r\n/* 178: */ throws ParseException\r\n/* 179: */ {\r\n/* 180:258 */ double hour = 0.0D;\r\n/* 181:259 */ DateFormat fulDate = new SimpleDateFormat(\"HH:mm\");\r\n/* 182:260 */ long t12 = fulDate.parse(\"12:00\").getTime();\r\n/* 183:261 */ long t13 = fulDate.parse(\"13:00\").getTime();\r\n/* 184:262 */ long t1 = fulDate.parse(time1).getTime();\r\n/* 185:263 */ long PERHOUR = 3600000L;\r\n/* 186:264 */ if (time2 == null)\r\n/* 187: */ {\r\n/* 188:265 */ if (t12 - t1 > 0L) {\r\n/* 189:266 */ hour = (t12 - t1) / PERHOUR;\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192: */ else\r\n/* 193: */ {\r\n/* 194:269 */ long t2 = fulDate.parse(time2).getTime();\r\n/* 195:270 */ if ((t1 <= t12) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 196:271 */ hour = (t12 - t1) / PERHOUR;\r\n/* 197:272 */ } else if ((t1 <= t12) && (t2 >= t13)) {\r\n/* 198:273 */ hour = (t2 - t1) / PERHOUR - 1.0D;\r\n/* 199:274 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 200:275 */ hour = 0.0D;\r\n/* 201:276 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t13)) {\r\n/* 202:277 */ hour = (t2 - t13) / PERHOUR;\r\n/* 203: */ } else {\r\n/* 204:279 */ hour = (t2 - t1) / PERHOUR;\r\n/* 205: */ }\r\n/* 206: */ }\r\n/* 207:282 */ DecimalFormat df = new DecimalFormat(\"#.0\");\r\n/* 208:283 */ return Double.parseDouble(df.format(hour));\r\n/* 209: */ }", "private String checkSegments(ArrayList<DataSegment> list, int start, int end) {\n if (list.isEmpty()) return \"38020\";\n if (list.get(0).getSegmentStart()!=start) return \"38021\";\n if (list.get(list.size()-1).getSegmentEnd()!=end) return \"38022\";\n int lastend=start-1; \n for (int i=0;i<list.size();i++) {\n DataSegment segment=list.get(i);\n if (segment.getSegmentStart()!=lastend+1) return \"38023[\"+(i+1)+\"/\"+(list.size())+\"]\";\n lastend=segment.getSegmentEnd();\n if (lastend>end) return \"38024[\"+(i+1)+\"/\"+(list.size())+\"]\";\n }\n return null;\n }", "public static void main(String[] args) {\n System.out.println(getDurationString(65,45));\n\n System.out.println(getDurationString(3945));\n }", "private String prettyTime() {\n String[] dt = time.split(\"T\");\n String[] ymd = dt[0].split(\"-\");\n String[] hms = dt[1].split(\":\");\n\n int hour = Integer.parseInt(hms[0]);\n\n String date = getMonth(Integer.parseInt(ymd[1])) + \" \" + ymd[2] + \", \" + ymd[0];\n String time = (hour > 12 ? hour - 12 : hour) + \":\" + hms[1] + \":\" + hms[2].substring(0, hms[2].indexOf(\".\"));\n return date + \" at \" + time;\n }", "@Test\n\tpublic void test() throws InterruptedException {\n\t\tString firstTime = Time.main();\n\t\tString[] splitFirst = firstTime.split(\":\");\n\t\tThread.sleep(5000);\n\t\tString secondTime = Time.main();\n\t\tString[] splitSecond = secondTime.split(\":\");\n\t\t\n\t\t\n\t\tif(Integer.parseInt(splitFirst[2])>=55) //if first time was >= 55 seconds\n\t\t{\n\t\t\tassertEquals(Integer.parseInt(splitSecond[2]),(Integer.parseInt(splitFirst[2])+5)%60); //seconds should increase by 5 mod 60\n\n\t\t\tif(Integer.parseInt(splitFirst[1])==59) //if first time was 59 minutes\n\t\t\t{ \n\t\t\t\tassertTrue(splitFirst[1].equals(\"00\")); //reset to zero minutes\n\t\t\t\t\n\t\t\t\tif(Integer.parseInt(splitFirst[0])==23) //if first time was 23 hours\n\t\t\t\t\tassertTrue(splitFirst[0].equals(\"00\")); //reset to zero hours\n\t\t\t\telse //if first time is not 23 hours\n\t\t\t\t\tassertEquals(Integer.parseInt(splitFirst[0])+1, Integer.parseInt(splitSecond[0])); //hours should increase by 1\n\t\t\t}\n\t\t\telse //if first time was not 59 minutes\n\t\t\t{\n\t\t\t\tassertEquals(Integer.parseInt(splitFirst[1])+1, Integer.parseInt(splitSecond[1])); //minutes should increase by 1\n\t\t\t\tassertTrue(splitFirst[0].equals(splitSecond[0])); //hours should not change\n\t\t\t}\n\t\t}\n\t\telse //if first time was <= 55 seconds\n\t\t{\n\t\t\tassertEquals(Integer.parseInt(splitSecond[2]),(Integer.parseInt(splitFirst[2])+5)); //seconds should increase by 5\n\t\t\tassertTrue(splitFirst[1].equals(splitSecond[1])); //minutes should not change\n\t\t\tassertTrue(splitFirst[0].equals(splitSecond[0])); //hours should not change\n\t\t\t\n\t\t}\n\t\t\n\t}", "public static String parseHostPort(String fullName){\n\t\t\n\t\tString newName = fullName.trim();\n\t\tString name = \"\";\n\t\tint indexOfSlash1 = newName.indexOf(\"/\");\n\t\tint indexOfColon = newName.indexOf(\":\",indexOfSlash1);\n\t\tint indexOfSlash2 = newName.indexOf(\"/\", indexOfColon);\n\t\tString host = newName.substring(indexOfSlash1+2, indexOfColon);\n\t\tString port = newName.substring(indexOfColon+1,indexOfSlash2);\n\t\tif(indexOfSlash2 +1 < fullName.length())\n\t\t\t name = newName.substring(indexOfSlash2+1);\n\t\tString finalString = host+\" \"+port+\" \"+name;\n\t\treturn finalString;\n\t}", "private int compareTimes(String time1, String time2) {\n \n String[] timeOneSplit = time1.trim().split(\":\");\n String[] timeTwoSplit = time2.trim().split(\":\");\n \n \n if (timeOneSplit.length == 2 && timeTwoSplit.length == 2) {\n \n String[] minutesAmPmSplitOne = new String[2];\n minutesAmPmSplitOne[1] = timeOneSplit[1].trim().substring(0, timeOneSplit[1].length() - 2);\n minutesAmPmSplitOne[1] = timeOneSplit[1].trim().substring(timeOneSplit[1].length() - 2, timeOneSplit[1].length());\n\n String[] minutesAmPmSplitTwo = new String[2];\n minutesAmPmSplitTwo[1] = timeTwoSplit[1].trim().substring(0, timeTwoSplit[1].length() - 2);\n minutesAmPmSplitTwo[1] = timeTwoSplit[1].trim().substring(timeTwoSplit[1].length() - 2, timeTwoSplit[1].length());\n \n int hourOne = Integer.parseInt(timeOneSplit[0]);\n int hourTwo = Integer.parseInt(timeTwoSplit[0]);\n \n //increment hours depending on am or pm\n if (minutesAmPmSplitOne[1].trim().equalsIgnoreCase(\"pm\")) {\n hourOne += 12;\n }\n if (minutesAmPmSplitTwo[1].trim().equalsIgnoreCase(\"pm\")) {\n hourTwo += 12;\n }\n \n if (hourOne < hourTwo) {\n \n return -1;\n }\n else if (hourOne > hourTwo) {\n \n return 1;\n }\n else {\n \n int minutesOne = Integer.parseInt(minutesAmPmSplitOne[0]);\n int minutesTwo = Integer.parseInt(minutesAmPmSplitTwo[0]);\n \n if (minutesOne < minutesTwo) {\n \n return -1;\n }\n else if (minutesOne > minutesTwo) {\n \n return 1;\n }\n else {\n \n return 0;\n }\n }\n }\n //time1 exists, time 2 doesn't, time 1 comes first!\n else if (timeOneSplit.length == 2 && timeTwoSplit.length != 2) {\n return -1;\n }\n else {\n return 1;\n }\n }", "public final String m592n(Context context) {\r\n C0163a.m590o(context.getApplicationContext());\r\n int i = -1;\r\n StringBuilder stringBuilder = new StringBuilder();\r\n try {\r\n if (Integer.parseInt(VERSION.SDK) > 8) {\r\n i = Camera.getNumberOfCameras();\r\n }\r\n } catch (Throwable th) {\r\n }\r\n for (int i2 = 0; i2 < i; i2++) {\r\n String format;\r\n if (i2 == 0) {\r\n format = String.format(Locale.ENGLISH, \"%1$d:%2$s\", new Object[]{Integer.valueOf(i2), m568a(context, i2)});\r\n } else {\r\n format = String.format(Locale.ENGLISH, \"#%1$d:%2$s\", new Object[]{Integer.valueOf(i2), m568a(context, i2)});\r\n }\r\n stringBuilder.append(format);\r\n }\r\n return stringBuilder.toString();\r\n }", "private static String m60359b(String str, String str2, String str3) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 4 + String.valueOf(str2).length() + String.valueOf(str3).length());\n sb.append(str);\n sb.append(\"|T|\");\n sb.append(str2);\n sb.append(\"|\");\n sb.append(str3);\n return sb.toString();\n }", "@Override\r\n public String toString() {\r\n String intersectionName = \"\";\r\n for (Route demo : connections) {\r\n intersectionName += demo.getFrom() + \",\";\r\n }\r\n return duration + \":\" + intersectionName.substring(0,\r\n intersectionName.length() - 1);\r\n }", "public String toString(){\r\n String strout = \"\";\r\n strout = String.format(\"%02d:%02d\", this.getMinutes(), this.getSeconds());\r\n return strout;\r\n }", "@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }", "@Override\r\n\tpublic int connectingTime() {\r\n\t\tint totalTime = 0;\r\n\t\tfor (int i = 0; i < flights.size()-1; i++) {\r\n\t\t\tString time1 = \"\" + flights.get(i).getData().getArrivalTime();\r\n\t\t\tif (time1.length() < 3)\r\n\t\t\t\ttime1 = \"00\" + time1;\r\n\t\t\tif (time1.length() < 4)\r\n\t\t\t\ttime1 = \"0\" + time1;\r\n\t\t\t\r\n\t\t\tString time2 = \"\" + flights.get(i+1).getData().getDepartureTime();\r\n\t\t\tif (time1.length() < 3)\r\n\t\t\t\ttime1 = \"00\" + time1;\r\n\t\t\tif (time2.length() < 4)\r\n\t\t\t\ttime2 = \"0\" + time2;\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"HHmm\");\r\n\t\t\tDate date1 = null;\r\n\t\t\tDate date2 = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tdate1 = format.parse(time1);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tdate2 = format.parse(time2);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tlong difference = 0;\r\n\t\t\tdifference = date2.getTime() - date1.getTime();\r\n\t\t\tif(difference < 0) {\r\n\t\t\t\tdifference += 24*60*60*1000;\r\n\t\t\t}\r\n\t\t\ttotalTime += difference;\r\n\t\t}\r\n\t\treturn totalTime;\r\n\t}", "public static void main(String[] args) {\n\t\tString n = \"수 10:00~18:30/목,토 09:00~13:00\";\n\t\t\n\t\tSystem.out.println(isTimePatternIn(n));\n\t}", "@Test(timeout = 4000)\n public void test55() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateAccountTime(\"yTci@Ca5ai_xH#X\");\n assertEquals(\"updateAccountTime: yTci@Ca5ai_xH#X\", string0);\n }", "private static int getHours(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(0)) * 10) + Character.getNumericValue(time.charAt(1));\n\t}", "@Test(timeout = 4000)\n public void test44() throws Throwable {\n String string0 = EWrapperMsgGenerator.accountDownloadEnd(\"6FL]:1rO^5$2j=[!jjK\");\n assertEquals(\"accountDownloadEnd: 6FL]:1rO^5$2j=[!jjK\", string0);\n }", "public static String getParsedColonValue(String input){\n\t\tif (input == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn input.split(\":\")[1];\n\t}", "private String m1032a(String str, int i) {\n String[] split = this.f682B.split(\"\\\\*\")[i].split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n if (str.equals(\"lac\")) {\n return split[0];\n }\n if (str.equals(\"cellid\")) {\n return split[1];\n }\n if (str.equals(\"signal\")) {\n return split[2];\n }\n return null;\n }", "public static String getYYYYMMDDHHMMSS()\r\n/* 56: */ {\r\n/* 57: 68 */ String nowTime = \"\";\r\n/* 58: 69 */ Date now = new Date();\r\n/* 59: 70 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMddHHmmss\");\r\n/* 60: 71 */ nowTime = formatter.format(now);\r\n/* 61: 72 */ return nowTime;\r\n/* 62: */ }", "private String extractHostFromDBUrl(String url) throws Exception {\n\t\tint start = url.indexOf(\"sid=\") + 4;\n\t\tif (start > 3) {\n\t\t\tint stop = url.indexOf(\")\", start);\n\t\t\tif (stop > -1) {\n\t\t\t\treturn url.substring(start, stop);\n\t\t\t}\n\t\t} else {\n\t\t\tlog.warn(\"Try to extract sid from short url\");\n\t\t\tstart = url.lastIndexOf(\":\") + 1;\n\t\t\tif (start > 0) {\n\t\t\t\treturn url.substring(start, url.length());\n\t\t\t}\n\t\t}\n\t\tthrow new Exception(\"Unable to extract the SID from the URL \" + url);\n\t}", "private String secondsToMinutesAndSeconds(double seconds) {\n\t\tint numberOfminutes = (int) (seconds / 60);\n\t\tint numberOfSeconds = (int) (seconds % 60);\n\t\tif (numberOfSeconds < 10) {\n\t\t\treturn numberOfminutes + \":0\" + numberOfSeconds;\n\t\t} else {\n\t\t\treturn numberOfminutes + \":\" + numberOfSeconds;\n\t\t}\n\t}", "public final void mRULE_TWENTYFOURHRSTIME() throws RecognitionException {\n try {\n int _type = RULE_TWENTYFOURHRSTIME;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:16737:24: ( '0' .. '2' '0' .. '9' ':' '0' .. '5' '0' .. '9' ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )? )\n // InternalDSL.g:16737:26: '0' .. '2' '0' .. '9' ':' '0' .. '5' '0' .. '9' ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )?\n {\n matchRange('0','2'); \n matchRange('0','9'); \n match(':'); \n matchRange('0','5'); \n matchRange('0','9'); \n // InternalDSL.g:16737:66: ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )?\n int alt28=2;\n int LA28_0 = input.LA(1);\n\n if ( (LA28_0==':') ) {\n alt28=1;\n }\n switch (alt28) {\n case 1 :\n // InternalDSL.g:16737:67: ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )?\n {\n match(':'); \n matchRange('0','6'); \n matchRange('0','9'); \n // InternalDSL.g:16737:89: ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )?\n int alt27=2;\n int LA27_0 = input.LA(1);\n\n if ( (LA27_0=='.') ) {\n alt27=1;\n }\n switch (alt27) {\n case 1 :\n // InternalDSL.g:16737:90: '.' '0' .. '9' '0' .. '9' '0' .. '9'\n {\n match('.'); \n matchRange('0','9'); \n matchRange('0','9'); \n matchRange('0','9'); \n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Override\r\n\tpublic int getHH() {\n\t\treturn HH;\r\n\t}", "private static void m1() {\n\n String d = \"2019/03/22 10:00-11:00\";\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd HH:mm-HH:mm\");\n try {\n Date parse = df.parse(d);\n System.out.println(df.format(parse));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "protected String getMicrotimingKey(WebContext context) {\n switch (this) {\n case IP:\n return context.getRemoteIP().toString();\n case BOTH:\n return context.getRemoteIP().toString() + \" <-- \" + context.microtimingKey;\n }\n\n // URI is the default:\n return context.microtimingKey;\n }", "private void deliver(String mb) {\n\t\t\tString[] sourceIdAndMsgAndTime = mb.split(\" \", 3);\n\t\t\tSystem.out.println(\"Received \"+ sourceIdAndMsgAndTime[1] + \" from process \"+ sourceIdAndMsgAndTime[0] +\", system time is ­­­­­­­­­­­­­\" + sourceIdAndMsgAndTime[2]);\n\t\t\t\n\t\t}", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "public String[] getTimeAMPMZone(String webinarTime) {\r\n\t\tString[] webinarTimeDetails = new String[4];\r\n\t\tString pattern = \"(^[0-9]+:[0-9][0-9])(\\\\s)([A-Z]M)(\\\\s-\\\\s)([0-9]+:[0-9][0-9])(\\\\s)([A-Z]M)\";\r\n\t\t// Create a Pattern object\r\n\t\tPattern r = Pattern.compile(pattern);\r\n\r\n\t\t// Now create matcher object.\r\n\t\tMatcher m = r.matcher(webinarTime);\r\n\t\twhile (m.find()) {\r\n\t\t\twebinarTimeDetails[0] = m.group(1);\r\n\t\t\twebinarTimeDetails[1] = m.group(3);\r\n\t\t\twebinarTimeDetails[2] = m.group(5);\r\n\t\t\twebinarTimeDetails[3] = m.group(7);\r\n\t\t}\r\n\t\tLog.info(\"Start Time: \" + webinarTimeDetails[0]);\r\n\t\tLog.info(\"Start AMPM: \" + webinarTimeDetails[1]);\r\n\t\tLog.info(\"End Time: \" + webinarTimeDetails[2]);\r\n\t\tLog.info(\"End AMPM: \" + webinarTimeDetails[3]);\r\n\t\treturn webinarTimeDetails;\r\n\t}", "@Test\n public void doesNotThrowWhenRoutingKeyInvalid3() {\n String key = \"hi.-.live.odds_change.6b.sr:match.9536715\";\n\n parser.getRoutingKeyInfo(key);\n Assert.assertNotNull(parser);\n }", "private static String convertTime(String timeString) {\n try {\n int timeIn24hRepresentation = Integer.parseInt(timeString);\n int hours = timeIn24hRepresentation / 100;\n int minutes = timeIn24hRepresentation % 100;\n boolean isOutOfBounds = hours < 0 || hours > 24 || minutes < 0 || minutes > 60;\n boolean cannotConvertToTime = timeString.length() != 4;\n\n if (isOutOfBounds || cannotConvertToTime) {\n return timeString;\n } else {\n return convertTimeToStringRepresentation(hours, minutes);\n }\n } catch (NumberFormatException e) {\n return timeString;\n }\n }", "private String formatTime(long length) {\n\t\tString hms = \"\";\n\t\tif(length < 3600000) {\n\t\t\thms = String.format(\"%02d:%02d\",\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t} else {\n\t\t\thms = String.format(\"%02d:%02d:%02d\", TimeUnit.MILLISECONDS.toHours(length),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t}\n\n\t\treturn hms;\n\t}", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateNewsBulletin(11, 13, \"E{Iw-^%H:1$e/\", \"LW)W-|=b,lie*CW\");\n assertEquals(\"MsgId=11 :: MsgType=13 :: Origin=LW)W-|=b,lie*CW :: Message=E{Iw-^%H:1$e/\", string0);\n }", "public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\t// input in form of hh:mm:ss(AM/PM)\n\t\t// don't use any bracket in input\n\t\tString s = scn.nextLine();\n\t\tint hour = s.charAt(0) - '0';\n\t\thour = hour * 10 + s.charAt(1) - '0';\n\t\t// System.out.println(hour);\n\t\tString rv = new String();\n\t\tif (s.charAt(s.length() - 2) == 'A') {\n\t\t\tif (hour == 12) {\n\t\t\t\trv = s.substring(0, s.length() - 2);\n\t\t\t\trv = rv.substring(2, rv.length());\n\t\t\t\tint newh = 0;\n\t\t\t\trv = newh + rv;\n\t\t\t\trv = 0 + rv;\n\n\t\t\t} else {\n\t\t\t\trv = s.substring(0, s.length() - 2);\n\t\t\t}\n\n\t\t} else {\n\t\t\tif (hour == 12) {\n\t\t\t\trv = s.substring(0, s.length() - 2);\n\t\t\t} else {\n\t\t\t\trv = s.substring(0, s.length() - 2);\n\t\t\t\trv = rv.substring(2, rv.length());\n\t\t\t\tint newhour = hour + 12;\n\t\t\t\trv = newhour + rv;\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(rv);\n\n\t}", "public static boolean isTime24HourFormat( Activity act ) {\r\n\t\tContentResolver cr = act.getContentResolver();\r\n\t\tString v = Settings.System.getString( cr, android.provider.Settings.System.TIME_12_24 );\r\n\t\tif ( v == null || v.isEmpty() || v.equals( \"12\" ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@NonNull\n private String getDpnId(@NonNull String id) {\n String[] nodeNo = id.split(\":\");\n String[] dpnId = nodeNo[1].split(\"]\");\n return dpnId[0];\n }", "String clientTransferTime(final int index);", "public int day02PartOne(ArrayList<String> input) {\n int validPwd = 0;\n for (String str : input) {\n Pattern p = Pattern.compile(\"(\\\\d*)-(\\\\d*) (.): ([a-z]*)\");\n Matcher m = p.matcher(str);\n\n if (m.find()) {\n int min = Integer.parseInt(m.group(1));\n int max = Integer.parseInt(m.group(2));\n char ch = m.group(3).charAt(0);\n String pwd = m.group(4);\n int n = 0;\n for (int i = 0; i < pwd.length(); i++) {\n char c = pwd.charAt(i);\n if (c == ch)\n n++;\n }\n if (n >= min && n <= max) {\n validPwd++;\n }\n\n } else {\n System.out.println(\"NO MATCH\");\n }\n\n }\n\n return validPwd;\n }", "public Time4( int hour ) \r\n { \r\n this.setTime( hour, 0, 0 ); \r\n }", "private String formatTccId(TCC tcc) {\n\t\tString id = Integer.toString(tcc.getIdTCC());\n\t\twhile (id.length() < 5) {\n\t\t\tid = \"0\" + id;\n\t\t}\n\t\treturn id;\n\t}", "private String parseTime(TimePicker start){\n String time = \"\";\n if (start.getHour() < 10){\n time += \"0\" + start.getHour() + \":\";\n } else {\n time += start.getHour() + \":\";\n }\n if (start.getMinute() < 10){\n time += \"0\" + start.getMinute();\n } else {\n time += start.getMinute();\n }\n return time;\n }", "java.lang.String getS4();", "public String getExtraTimeHost()\r\n {\r\n return extraTimeHost;\r\n }" ]
[ "0.5833028", "0.5816598", "0.55565816", "0.5536664", "0.539722", "0.53012115", "0.524258", "0.5202126", "0.5178659", "0.5170126", "0.51240796", "0.5113388", "0.5097831", "0.5094461", "0.50628746", "0.5054305", "0.5053462", "0.50475425", "0.5039335", "0.50292903", "0.5021744", "0.5016922", "0.50142974", "0.50073636", "0.499897", "0.49945712", "0.49931633", "0.49760348", "0.4964376", "0.49592754", "0.4951792", "0.4946468", "0.49456897", "0.4943158", "0.49021935", "0.4900637", "0.48930016", "0.48888218", "0.4874765", "0.48741278", "0.48584202", "0.4858351", "0.48496786", "0.48468313", "0.48449144", "0.48412082", "0.4839146", "0.48307282", "0.48244917", "0.48093683", "0.48016024", "0.47940648", "0.47892302", "0.4788512", "0.47853902", "0.47848254", "0.47816136", "0.4776739", "0.47723162", "0.47686324", "0.47582054", "0.47407353", "0.47397923", "0.47295883", "0.47287396", "0.47212708", "0.47156882", "0.4711953", "0.47082695", "0.47044182", "0.47035033", "0.4698206", "0.46893424", "0.46877024", "0.46873778", "0.4686637", "0.46839222", "0.46826008", "0.4681227", "0.4676662", "0.466872", "0.46577507", "0.46573493", "0.46572608", "0.4647061", "0.46417382", "0.46370146", "0.46325982", "0.4631995", "0.46286184", "0.46203154", "0.46196198", "0.46185428", "0.4613305", "0.46108136", "0.46099335", "0.46077776", "0.46058628", "0.45960188", "0.4583887", "0.4583792" ]
0.0
-1
/ 431: / 432:
public String eliminarDetalleIVAFacturaSRI() /* 433: */ { /* 434:436 */ DetalleFacturaProveedorSRI detalleFacturaProveedorSRI = (DetalleFacturaProveedorSRI)this.dtDetalleIVAFacturaProveedorSRI.getRowData(); /* 435:437 */ detalleFacturaProveedorSRI.setEliminado(true); /* 436: */ /* 437:439 */ return ""; /* 438: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String mo10312id();", "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "public static int m8651d() {\n return 4;\n }", "static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "public int mo4321K() {\n View a = mo4328a(mo4732e() - 1, -1, false, true);\n if (a == null) {\n return -1;\n }\n return mo4749l(a);\n }", "public int mo36g() {\n return 4;\n }", "static com.tencent.mm.plugin.appbrand.jsapi.b.a.a nI(java.lang.String r4) {\n /*\n r0 = 0;\n r1 = r4.length();\n r2 = 5;\n r1 = java.lang.Math.min(r1, r2);\n r1 = java.lang.Math.max(r0, r1);\n r1 = r4.substring(r0, r1);\n r2 = r1.toLowerCase();\n r1 = -1;\n r3 = r2.hashCode();\n switch(r3) {\n case 99228: goto L_0x003a;\n case 3704893: goto L_0x0025;\n case 104080000: goto L_0x002f;\n default: goto L_0x001e;\n };\n L_0x001e:\n r0 = r1;\n L_0x001f:\n switch(r0) {\n case 0: goto L_0x0045;\n case 1: goto L_0x0048;\n case 2: goto L_0x004b;\n default: goto L_0x0022;\n };\n L_0x0022:\n r0 = MONTH;\n L_0x0024:\n return r0;\n L_0x0025:\n r3 = \"year\";\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x001e;\n L_0x002e:\n goto L_0x001f;\n L_0x002f:\n r0 = \"month\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0038:\n r0 = 1;\n goto L_0x001f;\n L_0x003a:\n r0 = \"day\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0043:\n r0 = 2;\n goto L_0x001f;\n L_0x0045:\n r0 = YEAR;\n goto L_0x0024;\n L_0x0048:\n r0 = MONTH;\n goto L_0x0024;\n L_0x004b:\n r0 = DAY;\n goto L_0x0024;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.jsapi.b.a.a.nI(java.lang.String):com.tencent.mm.plugin.appbrand.jsapi.b.a$a\");\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "java.lang.String getS4();", "private String normalizeDiseaseId(String diseaseId) {\n String[] tokens = diseaseId.split(\":\");\n if (\"ORPHANET\".equals(tokens[0])) {\n diseaseId = \"ORPHA:\" + tokens[1];\n }\n return diseaseId;\n }", "public int arn() {\n return 383;\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }", "private static long m60262a(java.lang.String r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = -1;\n if (r4 != 0) goto L_0x0005;\n L_0x0004:\n return r0;\n L_0x0005:\n r2 = java.lang.Long.parseLong(r4);\t Catch:{ NumberFormatException -> 0x000a }\n return r2;\n L_0x000a:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http.d.a(java.lang.String):long\");\n }", "public final int mo34012n() {\n return this.f7223c;\n }", "public String m3256j() {\n String string = getString();\n return this.f1938d >= 0 ? string.substring(0, this.f1937c) + string.substring(this.f1937c + this.f1938d, string.length()) : string.substring(0, this.f1937c);\n }", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }", "String mo20732d();", "java.lang.String getField1636();", "private Uri m2344g(String str) {\n return mo10091b(str, this.f2759a.mo9868F(), true);\n }", "public final String mo34002d() {\n return this.f7238r;\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "public String mo38889c() {\n String trim = this.f30736g0.getText().toString().trim();\n return trim.length() == 5 ? trim.substring(3, 5) : \"\";\n }", "private void m3935R() {\n int i;\n int i2;\n if (mo4322L() == 1) {\n i2 = mo4758r() - mo4756p();\n i = mo4754o();\n } else {\n i2 = mo4741h() - mo4752n();\n i = mo4757q();\n }\n m3945n(i2 - i);\n }", "public void mo12306a(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "private String m20344d(String str) {\n String valueOf = String.valueOf(Math.abs(str.hashCode() % 100));\n return this.f17416e + File.separator + valueOf;\n }", "private String formatTccId(TCC tcc) {\n\t\tString id = Integer.toString(tcc.getIdTCC());\n\t\twhile (id.length() < 5) {\n\t\t\tid = \"0\" + id;\n\t\t}\n\t\treturn id;\n\t}", "public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }", "String mo20731c();", "private static C10387b m26008a(String str) {\n String str2;\n int i;\n if (str == null) {\n return null;\n }\n int indexOf = str.indexOf(44);\n if (indexOf >= 0) {\n str2 = str.substring(0, indexOf);\n i = indexOf + 1;\n } else {\n str2 = \"\";\n i = 0;\n }\n int indexOf2 = str.indexOf(47, i);\n String str3 = \"LogSamplerImpl\";\n if (indexOf2 <= 0) {\n String str4 = \"Failed to parse the rule: \";\n String valueOf = String.valueOf(str);\n Log.e(str3, valueOf.length() != 0 ? str4.concat(valueOf) : new String(str4));\n return null;\n }\n try {\n long parseLong = Long.parseLong(str.substring(i, indexOf2));\n long parseLong2 = Long.parseLong(str.substring(indexOf2 + 1));\n if (parseLong < 0 || parseLong2 < 0) {\n StringBuilder sb = new StringBuilder(72);\n sb.append(\"negative values not supported: \");\n sb.append(parseLong);\n sb.append(Constants.URL_PATH_DELIMITER);\n sb.append(parseLong2);\n Log.e(str3, sb.toString());\n return null;\n }\n C10388a h = C10387b.m26478h();\n h.mo28112a(str2);\n h.mo28111a(parseLong);\n h.mo28113b(parseLong2);\n return (C10387b) h.mo27817c();\n } catch (NumberFormatException e) {\n String str5 = \"parseLong() failed while parsing: \";\n String valueOf2 = String.valueOf(str);\n Log.e(str3, valueOf2.length() != 0 ? str5.concat(valueOf2) : new String(str5), e);\n return null;\n }\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "private static String m14296fm(String str) {\n return toHexString(m14295fl(str), \"\");\n }", "public int mo4451d() {\n this.f2519d = 0;\n int i = 0;\n int i2 = 0;\n int i3 = 0;\n while (this.f2519d < this.f2518c && i == 0) {\n byte b = mo4450b();\n if (b != 0) {\n if (b == 1 || b == 2) {\n if (i3 == 0) {\n return 1;\n }\n } else if (b != 9) {\n switch (b) {\n case 14:\n case 15:\n i3++;\n i2 = -1;\n continue;\n case 16:\n case 17:\n i3++;\n i2 = 1;\n continue;\n case 18:\n i3--;\n i2 = 0;\n continue;\n }\n }\n } else if (i3 == 0) {\n return -1;\n }\n i = i3;\n }\n if (i == 0) {\n return 0;\n }\n if (i2 != 0) {\n return i2;\n }\n while (this.f2519d > 0) {\n switch (mo4449a()) {\n case 14:\n case 15:\n if (i == i3) {\n return -1;\n }\n break;\n case 16:\n case 17:\n if (i == i3) {\n return 1;\n }\n break;\n case 18:\n i3++;\n continue;\n }\n i3--;\n }\n return 0;\n }", "public int method_2436() {\r\n return 16;\r\n }", "C2451d mo3408a(C2457e c2457e);", "public static asw m47155c() {\n return zzfkz;\n }", "public int mo4322L() {\n return this.f3138s;\n }", "public int mo4452e() {\n /*\n r7 = this;\n int r0 = r7.f2518c\n r7.f2519d = r0\n r0 = 0\n r1 = 0\n r2 = 0\n L_0x0007:\n int r3 = r7.f2519d\n if (r3 <= 0) goto L_0x003b\n byte r3 = r7.mo4449a()\n r4 = -1\n if (r3 == 0) goto L_0x0034\n r5 = 1\n if (r3 == r5) goto L_0x002e\n r6 = 2\n if (r3 == r6) goto L_0x002e\n r6 = 9\n if (r3 == r6) goto L_0x0007\n switch(r3) {\n case 14: goto L_0x0028;\n case 15: goto L_0x0028;\n case 16: goto L_0x0025;\n case 17: goto L_0x0025;\n case 18: goto L_0x0022;\n default: goto L_0x001f;\n }\n L_0x001f:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0022:\n int r1 = r1 + 1\n goto L_0x0007\n L_0x0025:\n if (r2 != r1) goto L_0x002b\n return r5\n L_0x0028:\n if (r2 != r1) goto L_0x002b\n return r4\n L_0x002b:\n int r1 = r1 + -1\n goto L_0x0007\n L_0x002e:\n if (r1 != 0) goto L_0x0031\n return r5\n L_0x0031:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0034:\n if (r1 != 0) goto L_0x0037\n return r4\n L_0x0037:\n if (r2 != 0) goto L_0x0007\n L_0x0039:\n r2 = r1\n goto L_0x0007\n L_0x003b:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.text.BidiFormatter.C0510a.mo4452e():int\");\n }", "public abstract long mo9743h();", "private String extractHostFromDBUrl(String url) throws Exception {\n\t\tint start = url.indexOf(\"sid=\") + 4;\n\t\tif (start > 3) {\n\t\t\tint stop = url.indexOf(\")\", start);\n\t\t\tif (stop > -1) {\n\t\t\t\treturn url.substring(start, stop);\n\t\t\t}\n\t\t} else {\n\t\t\tlog.warn(\"Try to extract sid from short url\");\n\t\t\tstart = url.lastIndexOf(\":\") + 1;\n\t\t\tif (start > 0) {\n\t\t\t\treturn url.substring(start, url.length());\n\t\t\t}\n\t\t}\n\t\tthrow new Exception(\"Unable to extract the SID from the URL \" + url);\n\t}", "private static long m146732b(String str) {\n String[] split = str.split(\"_\");\n if (split.length != 3) {\n return 0;\n }\n try {\n return Long.valueOf(split[2]).longValue();\n } catch (NumberFormatException unused) {\n return 0;\n }\n }", "public String mo38887b() {\n String trim = this.f30736g0.getText().toString().trim();\n if (trim.length() < 2) {\n return \"\";\n }\n return trim.substring(0, 2);\n }", "@Test\n public void testDAM31102001() {\n testDAM31001001();\n }", "public String rtvUserId4()\n\t{\n\t\treturn Toolbox.trim(userId, 4);\n\t}", "public final aji mo15444g() {\n return this.f13323b;\n }", "public static String m114840g() {\n String str;\n if (!C7163a.m22363a() || !f93231M.mo93305a(Property.UseEffectCam)) {\n str = \"142710f02c3a11e8b42429f14557854a\";\n } else {\n str = \"68d32050064f11e891efe7cc07299bc5\";\n }\n if (!str.equals(\"142710f02c3a11e8b42429f14557854a\")) {\n return str;\n }\n if (!C7163a.m22363a() || !f93231M.mo93305a(Property.UsePlanQi)) {\n return \"142710f02c3a11e8b42429f14557854a\";\n }\n return \"9f623eb0ee4911e98a27811dc5ef9137\";\n }", "private static int getNodeTime(String node) {\n int offSet = 4;\n return (int) node.toCharArray()[0] - offSet;\n }", "void mo3314b(String str);", "long getUnknown72();", "public final int mo44046a(String str) {\n return mo44049b(str, C16942h.f47455w);\n }", "private String checkSegments(ArrayList<DataSegment> list, int start, int end) {\n if (list.isEmpty()) return \"38020\";\n if (list.get(0).getSegmentStart()!=start) return \"38021\";\n if (list.get(list.size()-1).getSegmentEnd()!=end) return \"38022\";\n int lastend=start-1; \n for (int i=0;i<list.size();i++) {\n DataSegment segment=list.get(i);\n if (segment.getSegmentStart()!=lastend+1) return \"38023[\"+(i+1)+\"/\"+(list.size())+\"]\";\n lastend=segment.getSegmentEnd();\n if (lastend>end) return \"38024[\"+(i+1)+\"/\"+(list.size())+\"]\";\n }\n return null;\n }", "private static String m33066X(String str, String str2, String str3) {\n String str4;\n int i = 1;\n AppMethodBeat.m2504i(135623);\n C5728b c5728b = new C5728b(str);\n if (!c5728b.exists()) {\n c5728b.mkdirs();\n }\n if (C5046bo.isNullOrNil(str2)) {\n str4 = str + \"da_\" + C5046bo.anU();\n if (!C5046bo.isNullOrNil(str3)) {\n str4 = str4 + \".\" + str3;\n }\n } else {\n if (!(C5046bo.isNullOrNil(str3) || str2.endsWith(str3))) {\n str2 = str2 + \".\" + str3;\n }\n str4 = str + str2;\n if (C5730e.m8628ct(str4)) {\n while (i < 20) {\n if (!C5730e.m8628ct(str + i + \"_\" + str2)) {\n str4 = str + i + \"_\" + str2;\n break;\n }\n i++;\n }\n if (i == 20) {\n str4 = str + \"da_\" + C5046bo.anU();\n if (!C5046bo.isNullOrNil(str3)) {\n str4 = str4 + \".\" + str3;\n }\n }\n }\n }\n try {\n if (!C5736j.m8649w(new C5728b(str4).dMC().dMD()).equalsIgnoreCase(C5736j.m8649w(new C5728b(str).dMD()))) {\n str4 = str + \"da_\" + C5046bo.anU();\n C4990ab.m7421w(\"MicroMsg.AppMsgLogic\", \"maybe DirTraversal attach. %s\", str4);\n }\n } catch (Exception e) {\n C4990ab.printErrStackTrace(\"MicroMsg.AppMsgLogic\", e, \"\", new Object[0]);\n str4 = str + \"da_\" + C5046bo.anU();\n if (!C5046bo.isNullOrNil(str3)) {\n str4 = str4 + \".\" + str3;\n }\n }\n AppMethodBeat.m2505o(135623);\n return str4;\n }", "public final void mo4373a(String str) {\n int i = this.f20656e;\n try {\n int g = zzut.m22576g(str.length() * 3);\n int g2 = zzut.m22576g(str.length());\n if (g2 == g) {\n this.f20656e = i + g2;\n g = dr.m11789a(str, this.f20653b, this.f20656e, mo4375b());\n this.f20656e = i;\n mo4376b((g - i) - g2);\n this.f20656e = g;\n return;\n }\n mo4376b(dr.m11788a((CharSequence) str));\n this.f20656e = dr.m11789a(str, this.f20653b, this.f20656e, mo4375b());\n } catch (zzyn e) {\n this.f20656e = i;\n m22612a(str, e);\n } catch (Throwable e2) {\n throw new zzc(e2);\n }\n }", "private String getOidDirectory(OID oid) {\n NumberFormat numberFormat = NumberFormat.getNumberInstance();\n numberFormat.setMaximumIntegerDigits(4);\n numberFormat.setMinimumIntegerDigits(4);\n numberFormat.setGroupingUsed(false);\n String lastFour = numberFormat.format(Math.abs(oid.getValue()) % 10000);\n return lastFour.substring(0, 2) + \"/\" + lastFour.substring(2);\n }", "public static int m128353a() {\n return f104444b;\n }", "static zzco m26829a() {\n return new zzco(\"While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.\");\n }", "private void check4(){\n \n if (errorCode == 0){\n int sum = 0;\n \n for(int i = 0; i < number.length();){\n sum += Integer.parseInt(number.substring(i, ++i));\n }\n \n if (sum % 4 != 0){\n valid = false;\n errorCode = 4;\n }\n }\n\t}", "public String mo23326x() {\n return (String) this.f13965a.mo23249a(C7196pb.f13668Ad);\n }", "void mo1507n();", "public final void mo56353a(String str) {\n C7573i.m23587b(str, \"msg\");\n this.f56252a.mo38740a(str);\n }", "public int getExtendedID()\r\n/* 50: */ {\r\n/* 51: 39 */ return 0;\r\n/* 52: */ }", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "static void m14933d(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public int getExtendedID()\r\n/* 12: */ {\r\n/* 13:17 */ return 10;\r\n/* 14: */ }", "public static Part validate310(Part p){\r\n\t\t\r\n\t\tString part = p.getDesc();\r\n\t\tString num = p.getNum();\r\n\t\t\r\n\t\tboolean pfx = false;\r\n\t\tboolean ignorePart = false;\r\n\t\tif(num.startsWith(\"310104\")\r\n\t\t\t\t||num.startsWith(\"310113\")\r\n\t\t\t\t||num.startsWith(\"310114\")\r\n\t\t\t\t||num.startsWith(\"310115\")\r\n\t\t\t\t||num.startsWith(\"310120\")\r\n\t\t\t\t||num.startsWith(\"310122\")\r\n\t\t\t\t||num.startsWith(\"310123\")\r\n\t\t\t\t||num.startsWith(\"310124\")\r\n\t\t\t\t||num.startsWith(\"310128\")\r\n\t\t\t\t||num.startsWith(\"310130\")\r\n\t\t\t\t){\r\n\t\t\t\r\n\t\t\t//REMOVE LEADING CHARACTERS\r\n\t\t\tif(part.startsWith(\"$\") || part.startsWith(\"#\")) {\r\n\t\t\t\tpart = part.substring(1);\r\n\t\t\t\tpfx = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//CAPITALIZE PART FOR STANDARDIZATION\r\n\t\t\tif(!part.equals(part.toUpperCase())){\r\n\t\t\t\tpart = part.toUpperCase();\r\n\t\t\t\tpfx = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tignorePart = true;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//AT THIS POINT PART WILL BE CAPITALIZED WITHOUT LEADING CHARACTERS\r\n\t\t\r\n\t\tString[] a = part.split(\" \");\r\n\t\t\r\n\t\t\r\n\t\t//104,113,114,115,120,122,123,124,128,130\r\n\t\t\r\n\t\t/* 104\r\n\t\t * RCV 90S X MOD\r\n\t\t * RCV XXS QT X MOD \r\n\t\t * */\r\n\t\tif(!pfx) p.setCode(\"OK\");\r\n\t\tif(num.startsWith(\"310104\")){\r\n\t\t\tif(a[0].equals(\"RCV\")){\r\n\t\t\t\tif(a[1].equals(\"90S\")){\r\n\t\t\t\t\t//&& isNumber(a[3]) && a[4].equals(\"MOD\")\r\n\t\t\t\t\tif(part.contains(\" QT\")){\r\n\t\t\t\t\t\tpart = part.replace(\" QT\", \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if(a[1].equals(\"QT\") && a[2].equals(\"90S\")){\r\n\t\t\t\t\tpart = new String(\"RCV 90S QT \"+ part.substring(11));\r\n\t\t\t\t}\r\n\t\t\t\telse p.setCode(\"MR\");;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tp.setCode(\"MR\");;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\r\n\t\t/* 113\r\n\t\t * RCV AC\r\n\t\t * RCV ADPTR\r\n\t\t * PRTV CV\r\n\t\t * VHMF RCV \r\n\t\t * */\r\n\t\telse if (num.startsWith(\"310113\")){\r\n\t\t\t\r\n\t\t\t//310113317\r\n\t\t\tif(part.startsWith(\"VHMF\")){\r\n\t\t\t\tif(part.contains(\"RCV\")){\r\n\t\t\t\t\tpart = part.replace(\"RCV \",\"\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t p.setCode(\"MR\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/* 114\r\n\t\t * Only 6 - Inspect separately\r\n\t\t * */\r\n\t\telse if (num.startsWith(\"310114\")){\r\n\t\t\tp.setCode(\"MR\");\r\n\t\t}\r\n\t\t\r\n\t\t/* 115\r\n\t\t * RCV 80S XX MOD\r\n\t\t * CASS CASS\r\n\t\t * */\r\n\t\telse if (num.startsWith(\"310115\")){\r\n\t\t\tif(part.startsWith(\"RCV 80S\")){\r\n\t\t\t\tp.setCode(\"OK\");\r\n\t\t\t}\r\n\t\t\telse p.setCode(\"MR\");; \r\n\t\t}\r\n\t\t\r\n\t\t/* 120\r\n\t\t * RCV 2100S\r\n\t\t * PXI\r\n\t\t * GXX\r\n\t\t * */\r\n\t\telse if (num.startsWith(\"310120\")){\r\n\t\t\t//all possible GXX \r\n\t\t\tString[] gx = {\"G14\",\"G14X\",\"G18\",\"G18X\",\"G20\",\"G20X\",\"GD20\",\"G20X\",\"G40\",\"G40X\",\"G2\",\"G19\",\"G19X\",\"G11\"};\r\n\t\t\tboolean g = false; //Part contains GXX\r\n\t\t\tString xmod;\r\n\t\t\t\r\n\t\t\tif(part.startsWith(\"RCV\")){\r\n\t\t\t\t//check if part already contains G series\r\n\t\t\t\t//310120143 310120146\r\n\t\t\t\tfor(String s:gx){\r\n\t\t\t\t\tif(part.contains(s)) g=true;\r\n\t\t\t\t}\r\n\t\t\t\tif(part.contains(\"2100\")||part.contains(\"MOD\")||part.contains(\"TWO\")){\r\n\t\t\t\t\tpart = part.replace(\"2100S \", \"\");\r\n\t\t\t\t\tpart = part.replace(\"2100 \", \"\");\r\n\t\t\t\t\tpart = part.replace(\" MOD\", \"\");\r\n\t\t\t\t\tpart = part.replace(\"MOD\", \"\");\r\n\t\t\t\t\tpart = part.replace(\"TWO\", \"2\");\r\n\t\t\t\t\tif(!g){\r\n\t\t\t\t\t\tString n = Connect.findNumber(part);\r\n\t\t\t\t\t\tString gr = \"G\"+n;\r\n\t\t\t\t\t\tif(Connect.isNumber(n)) part = part.replace(n, \"G\"+n);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//310120174\r\n\t\t\t\t\ta = part.split(\" \");\r\n\t\t\t\t\tif(a[1].equals(\"20X\")){\r\n\t\t\t\t\t\tpart = part.replace(\"20X\",\"G20X\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse p.setCode(\"OK\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t/* 122\r\n\t\t * RCV 90S SX\r\n\t\t * */\r\n\t\telse if (num.startsWith(\"310122\")){\r\n\t\t\tif(part.startsWith(\"RCV 90S SX\")) p.setCode(\"OK\");\r\n\t\t\telse if (!pfx) p.setCode(\"MR\");;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/* 123\r\n\t\t * RCV ICON\r\n\t\t * */\r\n\t\telse if (num.startsWith(\"310123\")){\r\n\t\t\tif(part.startsWith(\"RCV ICON\")) p.setCode(\"OK\");\r\n\t\t\telse if (!pfx) p.setCode(\"MR\");\r\n\t\t\t\r\n\t\t\tif(part.contains(\"ICN\")){\r\n\t\t\t\tpart = part.replace(\"ICN\", \"ICON\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/* 124\r\n\t\t * RCV ICON 960\r\n\t\t * */\r\n\t\telse if (num.startsWith(\"310124\")){\r\n\t\t\tif(part.contains(\"ICN\")){\r\n\t\t\t\tpart = part.replace(\"ICN\", \"ICON\");\r\n\t\t\t}\r\n\t\t\telse if(!pfx) p.setCode(\"MR\");\r\n\t\t}\r\n\t\t\r\n\t\t/* 128\r\n\t\t * RCV i1\r\n\t\t * */\r\n\t\telse if (num.startsWith(\"310128\")){\r\n\t\t\t\r\n\t\t\tif(part.startsWith(\"RCV i1 WRD\")){\r\n\t\t\t\tp.setCode(\"OK\");\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(!pfx) p.setCode(\"MR\");\r\n\t\t}\r\n\t\t\r\n\t\t/* 130\r\n\t\t * RCV i2\r\n\t\t * */\r\n\t\telse if (num.startsWith(\"310130\")){\r\n\t\t\t\r\n\t\t\tif(part.startsWith(\"RCV i2 MX EMI\") || part.startsWith(\"RCV i2 WRD\")){\r\n\t\t\t\tp.setCode(\"OK\");\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(!pfx) p.setCode(\"MR\");\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(part.contains(\",\")) part = part.replace(\",\", \"\");\r\n \tif(part.contains(\"MOD\") && !part.contains(\" MOD\")) part = part.replace(\"MOD\", \" MOD\");\r\n\t\t\r\n\t\tif(part.contains(\"90S\") && part.contains(\"MOD\") && (part.contains(\"25\") || part.contains(\"50\") || part.contains(\"75\"))){\r\n\t\t\tpart = part.replace(\"75\", \"9075\");\r\n\t\t\tpart = part.replace(\"50\", \"9050\");\r\n\t\t\tpart = part.replace(\"25\", \"9025\");\r\n\t\t\tpart = part.replace(\"MOD\", \"\");\r\n\t\t\tpart = part.replace(\"90S\", \"\");\r\n\t\t}\r\n\t\telse if (part.contains(\"90S\")){\r\n\t\t\tpart = part.replace(\"90S\", \"\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//Validate length\r\n\t\t//REPLACE UNCONVENTIONAL OBSOLETE PART DESCRIPTIONS\r\n\t\tif(part.contains(\"OBS\")){\r\n\t\t\tif(part.equalsIgnoreCase(\"OBS\")||part.equalsIgnoreCase(\"OBSOLETE\")){\r\n\t\t\t\tpart = \"OBS\";\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tpart = \"OBS IFO \" + Connect.findNumber(part);\r\n\t\t\t\tif(part.equals(\"OBS IFO \")) part = \"OBS\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tpart = part.trim();\r\n \tpart = part.replace(\" \", \" \");\r\n \tpart = part.replace(\" \", \" \");\r\n \t\r\n\t\tif(!part.equals(p.getDesc().trim())){\r\n\t\t\tp.setNewDesc(part);\r\n\t\t\tp.setCode(\"CD\");\r\n\t\t}\r\n\t\t\r\n\t\tif(ignorePart) {\r\n\t\t\tp.setCode(\"OS\");\r\n\t\t\tp.setNewDesc(\"\");\r\n\t\t}\r\n\t\t\r\n\t\tif(p.getNewDesc().length() > 30) p.setCode(\"30\");\r\n\t\t\r\n\t\treturn p;\r\n\t}", "java.lang.String getField1631();", "public static final String m17015P(String str, String str2) {\n AppMethodBeat.m2504i(114129);\n if (str.contains(VideoMaterialUtil.FRAMES_ID_SEPARATOR_3D) || str.length() <= 0) {\n String[] split = str.split(VideoMaterialUtil.FRAMES_ID_SEPARATOR_3D);\n if (split[0] == null || split[0].length() <= 0) {\n AppMethodBeat.m2505o(114129);\n return str2;\n }\n str = split[0];\n AppMethodBeat.m2505o(114129);\n return str;\n }\n AppMethodBeat.m2505o(114129);\n return str;\n }", "private final void m134908d(String str) {\n if (!TextUtils.isEmpty(str)) {\n String str2 = C6969H.m41409d(\"G738BDC12AA7FAF3BE7039107E4B48CDA6C8ED71FAD7F\") + str + '/';\n VideoXOnlineLog.f101073b.mo121420a(C6969H.m41409d(\"G6887D15AAA23AE3BA61A9F58FBE6838D2998C8\"), str2);\n MQTTClient a = MQTTClientManager.m55413a(C6969H.m41409d(\"G4DA6F33B8A1C9F16C522B96DDCD1\"));\n if (a != null) {\n ProtoAdapter<EventMessage> gVar = EventMessage.f96677a;\n C32569u.m150513a((Object) gVar, C6969H.m41409d(\"G4C95D014AB1DAE3AF50F974DBCC4E7F659B7F028\"));\n f97550g = a.mo57249a(str2, new MQTTWirePbConverter(gVar));\n MQTTTopic<EventMessage> oVar = f97550g;\n if (oVar == null) {\n C32569u.m150511a();\n }\n oVar.mo57278a((MQTTTopicListener<EventMessage>) f97552i, true);\n MQTTTopic<EventMessage> oVar2 = f97550g;\n if (oVar2 == null) {\n C32569u.m150511a();\n }\n oVar2.mo57274a(MQTTQosLevel.LEVEL_1, true);\n }\n }\n }", "java.lang.String getField1648();", "private static boolean isMalformed4(int b2, int b3, int b4) {\n return (b2 & 0xc0) != 0x80 || (b3 & 0xc0) != 0x80 || (b4 & 0xc0) != 0x80;\n }", "public static long m3983tj(String str) {\n AppMethodBeat.m2504i(93203);\n int lastIndexOf = str.lastIndexOf(\";?enc=\");\n if (lastIndexOf > 0) {\n long anl = C5046bo.anl(str.substring(lastIndexOf + 6));\n AppMethodBeat.m2505o(93203);\n return anl;\n }\n AppMethodBeat.m2505o(93203);\n return 0;\n }", "public String mo23262D() {\n return (String) this.f13965a.mo23249a(C7196pb.f13688Ed);\n }", "public static int m60268b(java.lang.String r3, int r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = java.lang.Long.parseLong(r3);\t Catch:{ NumberFormatException -> 0x0019 }\n r3 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n r2 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1));\n if (r2 <= 0) goto L_0x000f;\n L_0x000b:\n r3 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n return r3;\n L_0x000f:\n r3 = 0;\n r2 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1));\n if (r2 >= 0) goto L_0x0017;\n L_0x0015:\n r3 = 0;\n return r3;\n L_0x0017:\n r3 = (int) r0;\n return r3;\n L_0x0019:\n return r4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http.d.b(java.lang.String, int):int\");\n }", "private static String m39043k(Uri uri) {\n if (uri == null) {\n return null;\n }\n return uri.getScheme();\n }", "static int m14045a(C4394e c4394e) {\n try {\n long m = c4394e.mo4572m();\n c4394e = c4394e.mo4576q();\n if (m >= 0 && m <= 2147483647L && c4394e.isEmpty()) {\n return (int) m;\n }\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected an int but was \\\"\");\n stringBuilder.append(m);\n stringBuilder.append(c4394e);\n stringBuilder.append(\"\\\"\");\n throw new IOException(stringBuilder.toString());\n } catch (C4394e c4394e2) {\n throw new IOException(c4394e2.getMessage());\n }\n }", "public final int mo34016r() {\n return this.f7229i;\n }", "public void mo23434a() {\n C9568u.m29525a(this.f19956g);\n this.f19957h.mo23447a();\n if (this.f19954e != null) {\n this.f19958i.mo23468b();\n }\n this.f19959j = 0;\n this.f19960k = false;\n }", "public String Formatting(){\n\t\t\t return String.format(\"%03d-%02d-%04d\", getFirstSSN(),getSecondSSN(),getThirdSSN());\n\t\t }", "public final long mo23972d() {\n return C9612c.m28452c();\n }", "public String m3257k() {\n String string = getString();\n return this.f1938d >= 0 ? string.substring(this.f1937c, this.f1937c + this.f1938d) : string;\n }", "private void m1183f() {\n long d = C3604l2.m1115c().mo55534a().mo55174d();\n CollectorsInfrastructure.getInstance().setPropertyId(Long.valueOf(d));\n C3815z4.m2010d().mo55983b(C3815z4.C3816a.PROPERTY_ID, d);\n }", "public int mo12192d() {\n return this.f10959n;\n }", "private static int m24353e(int i) {\n return i - (i >> 2);\n }", "public String m3147h() {\n return this.f2416j;\n }", "public abstract long mo9229aD();", "@NonNull\n private String getDpnId(@NonNull String id) {\n String[] nodeNo = id.split(\":\");\n String[] dpnId = nodeNo[1].split(\"]\");\n return dpnId[0];\n }", "static C7396f m22227a() {\n return C7444g.f16350k0;\n }", "private static int m1645a(CharSequence charSequence) {\n return new C0510a(charSequence, false).mo4451d();\n }", "java.lang.String getField1624();", "public int mo1534c() {\n return 2;\n }", "java.lang.String getField1637();", "public final int mo50059a() {\n return 2;\n }", "public static String m3984tk(String str) {\n AppMethodBeat.m2504i(93204);\n int lastIndexOf = str.lastIndexOf(\";?enc=\");\n String trim;\n if (lastIndexOf > 0) {\n trim = str.substring(lastIndexOf + 6).trim();\n AppMethodBeat.m2505o(93204);\n return trim;\n }\n trim = \"\";\n AppMethodBeat.m2505o(93204);\n return trim;\n }", "public String mo23344a() {\n return this.f13985l;\n }", "public static String m13824n() {\n C6694S.m13433b(f12469a, String.format(\"getGraphApiVersion: %s\", new Object[]{f12484p}));\n return f12484p;\n }", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "public static String converterddmmaaaaParaaaammdd(String data) {\n String[] aux = data.trim().split(\"/\");\n String dia = aux[0].length() < 2 ? \"0\" + aux[0] : aux[0];\n String mes = aux[1].length() < 2 ? \"0\" + aux[1] : aux[1];\n return aux[2] + mes + dia;\n }", "void mo303a(C0237a c0237a, String str, String str2, String str3);" ]
[ "0.5675513", "0.5536926", "0.54448825", "0.5373793", "0.53429216", "0.5336757", "0.5320928", "0.5282396", "0.5250871", "0.52507997", "0.5246495", "0.52157474", "0.52047366", "0.51937306", "0.5146025", "0.51458675", "0.51454276", "0.5100565", "0.50963396", "0.5087894", "0.5082597", "0.5081951", "0.5077142", "0.50732374", "0.5071885", "0.5070867", "0.5068878", "0.5068415", "0.5067821", "0.50628716", "0.50575614", "0.5049854", "0.5047569", "0.5029578", "0.50210726", "0.50086015", "0.5002206", "0.49848235", "0.49832445", "0.49753255", "0.4948141", "0.49443406", "0.49442613", "0.4941731", "0.49386054", "0.49310872", "0.49287874", "0.49260017", "0.492448", "0.4916925", "0.490827", "0.48951107", "0.48902372", "0.48862404", "0.48803428", "0.4879106", "0.48683122", "0.48682383", "0.48677942", "0.4867619", "0.486433", "0.4861315", "0.48606056", "0.4855512", "0.48525488", "0.48492923", "0.48477957", "0.4847482", "0.48472935", "0.4839619", "0.48384526", "0.4838187", "0.48370996", "0.48355567", "0.48344457", "0.48309746", "0.4826277", "0.48213407", "0.48211065", "0.48162508", "0.48152643", "0.48143047", "0.48140082", "0.4813424", "0.48129338", "0.48129097", "0.4812865", "0.48119003", "0.48086932", "0.48077095", "0.48011413", "0.4801042", "0.47989166", "0.47982022", "0.47981748", "0.4796977", "0.4796183", "0.47959977", "0.4795534", "0.4795534", "0.47952992" ]
0.0
-1
/ 439: / 440:
public String editar() /* 441: */ { /* 442:445 */ return null; /* 443: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "public final int mo50059a() {\n return 2;\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "public int mo36g() {\n return 4;\n }", "private void m43017g() {\n try {\n this.f40245p = this.f40244o + Long.valueOf(this.f40240k.getHeaderField(\"Content-Length\")).longValue();\n } catch (Exception e) {\n this.f40245p = -1;\n }\n }", "protected void m10364g() {\n this.f9056t.mo4019a(this.f9052p.m15391H());\n this.f9055s.mo4019a(this.f9051o.m15391H());\n }", "private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }", "public int mo34973b() {\n return 48;\n }", "public void mo5994p() {\n this.f5411d = this.f5389I.getString(R.string.new_recording) + \" \" + C1398b.m6805a();\n C1413m.f5726x = this.f5411d;\n }", "public int mo4451d() {\n this.f2519d = 0;\n int i = 0;\n int i2 = 0;\n int i3 = 0;\n while (this.f2519d < this.f2518c && i == 0) {\n byte b = mo4450b();\n if (b != 0) {\n if (b == 1 || b == 2) {\n if (i3 == 0) {\n return 1;\n }\n } else if (b != 9) {\n switch (b) {\n case 14:\n case 15:\n i3++;\n i2 = -1;\n continue;\n case 16:\n case 17:\n i3++;\n i2 = 1;\n continue;\n case 18:\n i3--;\n i2 = 0;\n continue;\n }\n }\n } else if (i3 == 0) {\n return -1;\n }\n i = i3;\n }\n if (i == 0) {\n return 0;\n }\n if (i2 != 0) {\n return i2;\n }\n while (this.f2519d > 0) {\n switch (mo4449a()) {\n case 14:\n case 15:\n if (i == i3) {\n return -1;\n }\n break;\n case 16:\n case 17:\n if (i == i3) {\n return 1;\n }\n break;\n case 18:\n i3++;\n continue;\n }\n i3--;\n }\n return 0;\n }", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "static String m56087d() {\n return (String) C16942h.f47441i.mo44132a();\n }", "public final int mo44046a(String str) {\n return mo44049b(str, C16942h.f47455w);\n }", "public void mo44053a() {\n }", "public int mo4318H() {\n View a = mo4328a(0, mo4732e(), true, false);\n if (a == null) {\n return -1;\n }\n return mo4749l(a);\n }", "public short mo34e() {\n return 140;\n }", "static int m14045a(C4394e c4394e) {\n try {\n long m = c4394e.mo4572m();\n c4394e = c4394e.mo4576q();\n if (m >= 0 && m <= 2147483647L && c4394e.isEmpty()) {\n return (int) m;\n }\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected an int but was \\\"\");\n stringBuilder.append(m);\n stringBuilder.append(c4394e);\n stringBuilder.append(\"\\\"\");\n throw new IOException(stringBuilder.toString());\n } catch (C4394e c4394e2) {\n throw new IOException(c4394e2.getMessage());\n }\n }", "public String mo9504h() {\n return this.f1518g;\n }", "public void mo4359a() {\n }", "public void mo4690h() {\n C0269T.m1643a().mo4569a(this.f1121g, this.f1124j);\n }", "C4945r5 mo19056B();", "private static int m1645a(CharSequence charSequence) {\n return new C0510a(charSequence, false).mo4451d();\n }", "public void mo4683c() {\n mo4679a(3);\n }", "void mo3194r();", "public abstract void incorrectlyParsedUtterance(long ms);", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public final void mo42079g() {\n mo42076a(riv.f43130x, mo42086n());\n super.mo42079g();\n }", "public void mo5972i() {\n int i = this.f5435p;\n if (i == 2) {\n this.f5396P.sendEmptyMessage(1);\n try {\n if (C1413m.m6844f()) {\n this.f5392L.setRecordState(true);\n } else if (m6595L()) {\n this.f5391K.setRecordState(true);\n } else {\n this.f5392L.setRecordState(true);\n }\n } catch (Exception unused) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"onResume() RecordView or RecognizeVoiceView error:\");\n }\n } else if (i == 4) {\n try {\n if (C1413m.m6844f()) {\n this.f5392L.setRecordState(false);\n } else if (m6595L()) {\n this.f5391K.setRecordState(false);\n } else {\n this.f5392L.setRecordState(false);\n }\n } catch (Exception unused2) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"onResume() RecordView or RecognizeVoiceView error:\");\n }\n }\n }", "public int mo4321K() {\n View a = mo4328a(mo4732e() - 1, -1, false, true);\n if (a == null) {\n return -1;\n }\n return mo4749l(a);\n }", "java.lang.String getField1408();", "public int mo4322L() {\n return this.f3138s;\n }", "public int mo27480a() {\n return 0;\n }", "public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }", "public int mo3836t() {\n return this.f1467ap;\n }", "public void mo3749d() {\n }", "public final String mo34002d() {\n return this.f7238r;\n }", "public String mo4638y() {\n Object c = C1565s.m5959c(m1450h());\n C2885g.m13907a(c, \"UrlBuilder.getLicenseScraperApiUrl(context)\");\n return c;\n }", "public void mo21794S() {\n }", "public abstract void correctlyParsedUtterance(long ms);", "public abstract long mo9748m();", "public String m3147h() {\n return this.f2416j;\n }", "long getUnknown72();", "public void mo9848a() {\n }", "public int mo38499c() {\n return this.f27232a;\n }", "public void mo21783H() {\n }", "public static int m8651d() {\n return 4;\n }", "public final byte mo27874d() {\n return 15;\n }", "public int mo8444b() {\n return this.f6812a;\n }", "public int mo36g() {\n return 8;\n }", "public void mo55254a() {\n }", "public final int mo9382ZU() {\n return 470;\n }", "public int mo38492a() {\n return this.f27233b;\n }", "public static long m3983tj(String str) {\n AppMethodBeat.m2504i(93203);\n int lastIndexOf = str.lastIndexOf(\";?enc=\");\n if (lastIndexOf > 0) {\n long anl = C5046bo.anl(str.substring(lastIndexOf + 6));\n AppMethodBeat.m2505o(93203);\n return anl;\n }\n AppMethodBeat.m2505o(93203);\n return 0;\n }", "public final int mo6465d() {\n return 19729000;\n }", "public int getAudioDscp();", "public int mo4319I() {\n View a = mo4328a(0, mo4732e(), false, true);\n if (a == null) {\n return -1;\n }\n return mo4749l(a);\n }", "public int arn() {\n return 383;\n }", "java.lang.String getField1648();", "private String altitudeConversion() {\n int reading = ((record[9] & 255) << 8) + (record[8] & 255);\n if (reading == 60000) {\n return \" \";\n } else {\n return reading + \"\";\n }\n }", "public static asw m47155c() {\n return zzfkz;\n }", "public static String getChallenge() {\n return \"00 84 00 00 00\";\n }", "C4945r5 mo19057F();", "public int method_2436() {\r\n return 16;\r\n }", "java.lang.String getS4();", "public int mo4452e() {\n /*\n r7 = this;\n int r0 = r7.f2518c\n r7.f2519d = r0\n r0 = 0\n r1 = 0\n r2 = 0\n L_0x0007:\n int r3 = r7.f2519d\n if (r3 <= 0) goto L_0x003b\n byte r3 = r7.mo4449a()\n r4 = -1\n if (r3 == 0) goto L_0x0034\n r5 = 1\n if (r3 == r5) goto L_0x002e\n r6 = 2\n if (r3 == r6) goto L_0x002e\n r6 = 9\n if (r3 == r6) goto L_0x0007\n switch(r3) {\n case 14: goto L_0x0028;\n case 15: goto L_0x0028;\n case 16: goto L_0x0025;\n case 17: goto L_0x0025;\n case 18: goto L_0x0022;\n default: goto L_0x001f;\n }\n L_0x001f:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0022:\n int r1 = r1 + 1\n goto L_0x0007\n L_0x0025:\n if (r2 != r1) goto L_0x002b\n return r5\n L_0x0028:\n if (r2 != r1) goto L_0x002b\n return r4\n L_0x002b:\n int r1 = r1 + -1\n goto L_0x0007\n L_0x002e:\n if (r1 != 0) goto L_0x0031\n return r5\n L_0x0031:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0034:\n if (r1 != 0) goto L_0x0037\n return r4\n L_0x0037:\n if (r2 != 0) goto L_0x0007\n L_0x0039:\n r2 = r1\n goto L_0x0007\n L_0x003b:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.text.BidiFormatter.C0510a.mo4452e():int\");\n }", "public final void mo9764A() {\n int i = this.f9080g + this.f9081h;\n this.f9080g = i;\n int i2 = this.f9084k + i;\n int i3 = this.f9085l;\n if (i2 > i3) {\n int i4 = i2 - i3;\n this.f9081h = i4;\n this.f9080g = i - i4;\n return;\n }\n this.f9081h = 0;\n }", "static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public int mo12192d() {\n return this.f10959n;\n }", "private View m4004h(C0820v vVar, C0788a0 a0Var) {\n return mo4340e(mo4732e() - 1, -1);\n }", "public final void mo3956d() {\n this.f1305o = true;\n this.f1306p = true;\n }", "public void mo9233aH() {\n }", "public final String mo64254a() {\n return this.f41347a;\n }", "public byte mo4449a() {\n char charAt = this.f2516a.charAt(this.f2519d - 1);\n this.f2520e = charAt;\n if (Character.isLowSurrogate(charAt)) {\n int codePointBefore = Character.codePointBefore(this.f2516a, this.f2519d);\n this.f2519d -= Character.charCount(codePointBefore);\n return Character.getDirectionality(codePointBefore);\n }\n this.f2519d--;\n byte c = m1652c(this.f2520e);\n if (!this.f2517b) {\n return c;\n }\n char c2 = this.f2520e;\n if (c2 == '>') {\n return m1655h();\n }\n return c2 == ';' ? m1653f() : c;\n }", "C1458cs mo7613iS();", "private void m6603T() {\n RecordService.C1445b bVar;\n if (!isFinishing() && !this.f5427l && (bVar = this.f5401U) != null) {\n bVar.mo6340a(true);\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"from\", \"1\");\n C1390G.m6779b(\"A107|7|2|7\", hashMap);\n } catch (Exception unused) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"vcode error\");\n }\n }\n }", "public int mo11550h() {\n int i = 0;\n for (C4929d f : this.f11878e) {\n i += f.mo11569f().mo11550h();\n }\n return i + 2 + 2;\n }", "private static C10387b m26008a(String str) {\n String str2;\n int i;\n if (str == null) {\n return null;\n }\n int indexOf = str.indexOf(44);\n if (indexOf >= 0) {\n str2 = str.substring(0, indexOf);\n i = indexOf + 1;\n } else {\n str2 = \"\";\n i = 0;\n }\n int indexOf2 = str.indexOf(47, i);\n String str3 = \"LogSamplerImpl\";\n if (indexOf2 <= 0) {\n String str4 = \"Failed to parse the rule: \";\n String valueOf = String.valueOf(str);\n Log.e(str3, valueOf.length() != 0 ? str4.concat(valueOf) : new String(str4));\n return null;\n }\n try {\n long parseLong = Long.parseLong(str.substring(i, indexOf2));\n long parseLong2 = Long.parseLong(str.substring(indexOf2 + 1));\n if (parseLong < 0 || parseLong2 < 0) {\n StringBuilder sb = new StringBuilder(72);\n sb.append(\"negative values not supported: \");\n sb.append(parseLong);\n sb.append(Constants.URL_PATH_DELIMITER);\n sb.append(parseLong2);\n Log.e(str3, sb.toString());\n return null;\n }\n C10388a h = C10387b.m26478h();\n h.mo28112a(str2);\n h.mo28111a(parseLong);\n h.mo28113b(parseLong2);\n return (C10387b) h.mo27817c();\n } catch (NumberFormatException e) {\n String str5 = \"parseLong() failed while parsing: \";\n String valueOf2 = String.valueOf(str);\n Log.e(str3, valueOf2.length() != 0 ? str5.concat(valueOf2) : new String(str5), e);\n return null;\n }\n }", "public int getDecodedStreamLength() {\n/* 567 */ return this.stream.getInt(COSName.DL);\n/* */ }", "public int mo3841w() {\n return this.f1434I + this.f1438M;\n }", "public final aji mo15444g() {\n return this.f13323b;\n }", "public static String m3984tk(String str) {\n AppMethodBeat.m2504i(93204);\n int lastIndexOf = str.lastIndexOf(\";?enc=\");\n String trim;\n if (lastIndexOf > 0) {\n trim = str.substring(lastIndexOf + 6).trim();\n AppMethodBeat.m2505o(93204);\n return trim;\n }\n trim = \"\";\n AppMethodBeat.m2505o(93204);\n return trim;\n }", "public abstract void partiallyParsedUtterance(long ms);", "public short mo34e() {\n return 41;\n }", "public void mo1542h() {\n if (this.f4002h != null) {\n this.f4002h.mo1526d();\n }\n this.f4000f.mo1526d();\n m5005j();\n }", "public void mo2470d() {\n }", "public static long m56088h() {\n return ((Long) C16942h.f47391L.mo44132a()).longValue();\n }", "public String mo81386a() {\n String d = C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\");\n WebUtil.m68654a(d, C6969H.m41409d(\"G6691DC1DB63E9E3BEA54D0\") + this.f58070b);\n if (TextUtils.isEmpty(this.f58070b)) {\n return \"\";\n }\n this.f58071c = Uri.parse(this.f58070b);\n this.f58083o = m81839a(this.f58071c.getScheme());\n String m = m81849m();\n m81850n();\n m81852p();\n m81853q();\n m81854r();\n m81855s();\n m81856t();\n return m;\n }", "public static String m13823m() {\n return f12476h;\n }", "void mo1943l();", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "public int mo4310h() {\n return this.f3128f;\n }", "public String mo862g() {\n return this.f2278h;\n }", "public int mo12196h() {\n return this.f10961p.f11005m;\n }" ]
[ "0.61703557", "0.5707586", "0.55040926", "0.54950947", "0.5483137", "0.53833276", "0.5345557", "0.5335433", "0.53148884", "0.53043705", "0.530307", "0.52849233", "0.5279922", "0.5275174", "0.5256696", "0.52380174", "0.52245516", "0.52191806", "0.5208564", "0.5205497", "0.519889", "0.51951855", "0.51937616", "0.51931703", "0.5192387", "0.51913065", "0.51800936", "0.51726377", "0.51726377", "0.51726377", "0.51726377", "0.51726377", "0.51726377", "0.51726377", "0.5172608", "0.51717836", "0.51690006", "0.5159657", "0.51480055", "0.51472384", "0.51457167", "0.51250136", "0.5118751", "0.5113079", "0.5107719", "0.5107198", "0.5101297", "0.5100256", "0.50791585", "0.50776875", "0.5076704", "0.5074152", "0.50710857", "0.5068919", "0.506712", "0.5064154", "0.50608957", "0.50604534", "0.5058796", "0.50535905", "0.50512516", "0.5047483", "0.5046395", "0.5042698", "0.50423414", "0.5038992", "0.5033755", "0.50335014", "0.50300455", "0.5028859", "0.50265354", "0.5024792", "0.502266", "0.5022245", "0.5022016", "0.5021959", "0.50165325", "0.5013908", "0.5013901", "0.50103855", "0.5006173", "0.50044435", "0.50010955", "0.500076", "0.50005656", "0.49995667", "0.4998296", "0.49973822", "0.49973053", "0.4996069", "0.49943238", "0.499261", "0.49925303", "0.49868885", "0.4986662", "0.49832603", "0.4982513", "0.49685502", "0.49685252", "0.49633428", "0.4957767" ]
0.0
-1
/ 444: / 445:
public String guardar() /* 446: */ { /* 447:455 */ String url = ""; /* 448: */ try /* 449: */ { /* 450:458 */ if ((this.facturaProveedorSRI.getMensajeSRI() == null) || (this.facturaProveedorSRI.getMensajeSRI().toLowerCase().contains("guardado")) || /* 451:459 */ (!this.facturaProveedorSRI.isTraCorregirDatos())) /* 452: */ { /* 453:461 */ if (this.facturaProveedorSRI.getDocumento().isIndicadorDocumentoElectronico()) { /* 454:462 */ this.facturaProveedorSRI.setAutorizacionRetencion("0000000000"); /* 455: */ } /* 456:464 */ if (isMostrarBaseImponible()) { /* 457:465 */ for (DetalleFacturaProveedorSRI detalleFacturaProveedorSRI : this.facturaProveedorSRI.getListaDetalleFacturaProveedorSRI()) /* 458: */ { /* 459:466 */ detalleFacturaProveedorSRI.setBaseImponibleTarifaCero(BigDecimal.ZERO); /* 460:467 */ detalleFacturaProveedorSRI.setBaseImponibleDiferenteCero(BigDecimal.ZERO); /* 461:468 */ detalleFacturaProveedorSRI.setBaseImponibleNoObjetoIva(BigDecimal.ZERO); /* 462: */ } /* 463: */ } /* 464:471 */ if (isMostrarBasesDetalle()) { /* 465:472 */ for (DetalleFacturaProveedorSRI detalleFacturaProveedorSRI : this.facturaProveedorSRI.getListaDetalleFacturaProveedorSRI()) { /* 466:473 */ detalleFacturaProveedorSRI.setBaseImponibleRetencion(BigDecimal.ZERO); /* 467: */ } /* 468: */ } /* 469:477 */ this.servicioFacturaProveedorSRI.guardar(this.facturaProveedorSRI); /* 470: */ } /* 471: */ else /* 472: */ { /* 473:480 */ this.servicioFacturaProveedorSRI.actualizarRetencion(this.facturaProveedorSRI); /* 474: */ } /* 475:482 */ addInfoMessage(getLanguageController().getMensaje("msg_info_guardar")); /* 476:484 */ if (this.facturaProveedorSRI.getFacturaProveedor() == null) { /* 477:485 */ url = "/paginas/financiero/contabilidad/procesos/compraCajaChica?faces-redirect=true"; /* 478: */ } else { /* 479:488 */ url = "/paginas/compras/procesos/facturaProveedor?faces-redirect=true&numero=" + this.facturaProveedorSRI.getFacturaProveedor().getNumero(); /* 480: */ } /* 481: */ } /* 482: */ catch (ExcepcionAS2Financiero e) /* 483: */ { /* 484:492 */ e.printStackTrace(); /* 485:493 */ addInfoMessage(getLanguageController().getMensaje(e.getCodigoExcepcion()) + e.getMessage()); /* 486:494 */ LOG.info("ERROR ExcepcionAS2Financiero AL GUARDAR DATOS FACTURA PROVEEDOR SRI", e); /* 487: */ } /* 488: */ catch (ExcepcionAS2 e) /* 489: */ { /* 490:497 */ e.printStackTrace(); /* 491:498 */ addInfoMessage(getLanguageController().getMensaje(e.getCodigoExcepcion()) + e.getMessage()); /* 492:499 */ LOG.info("ERROR ExcepcionAS2 AL GUARDAR DATOS FACTURA PROVEEDOR SRI", e); /* 493: */ } /* 494: */ catch (Exception e) /* 495: */ { /* 496:502 */ e.printStackTrace(); /* 497:503 */ addInfoMessage(getLanguageController().getMensaje("msg_error_guardar")); /* 498:504 */ LOG.error("ERROR AL GUARDAR DATOS FACTURA PROVEEDOR SRI", e); /* 499: */ } /* 500:507 */ return url; /* 501: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String extractHostFromDBUrl(String url) throws Exception {\n\t\tint start = url.indexOf(\"sid=\") + 4;\n\t\tif (start > 3) {\n\t\t\tint stop = url.indexOf(\")\", start);\n\t\t\tif (stop > -1) {\n\t\t\t\treturn url.substring(start, stop);\n\t\t\t}\n\t\t} else {\n\t\t\tlog.warn(\"Try to extract sid from short url\");\n\t\t\tstart = url.lastIndexOf(\":\") + 1;\n\t\t\tif (start > 0) {\n\t\t\t\treturn url.substring(start, url.length());\n\t\t\t}\n\t\t}\n\t\tthrow new Exception(\"Unable to extract the SID from the URL \" + url);\n\t}", "@Test\n\tpublic void testIPV4WithPortAndUserInfo() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://brett@192.168.91.1:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"192.168.91.1\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(\"brett\", uri.getUserinfo());\n\t}", "private String normalizeDiseaseId(String diseaseId) {\n String[] tokens = diseaseId.split(\":\");\n if (\"ORPHANET\".equals(tokens[0])) {\n diseaseId = \"ORPHA:\" + tokens[1];\n }\n return diseaseId;\n }", "@Test\n\tpublic void testIPV4WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://192.168.91.1:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"192.168.91.1\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "public static String getParsedColonKey(String input) {\t\n\t\tif (input == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn input.split(\":\")[0];\n\t}", "@NonNull\n private String getDpnId(@NonNull String id) {\n String[] nodeNo = id.split(\":\");\n String[] dpnId = nodeNo[1].split(\"]\");\n return dpnId[0];\n }", "public static void main(String[] args) throws JsonProcessingException {\n\t\tString txt= \"5C:A8:6A:ED:65:2D,B4:82:C5:00:22:DB,B4:82:C5:51:C2:30,\\\"UREC\\\",2097154,4,14,-59,6,2,Deauth by Inactivity or Many Retries,1517391829738\";\n\t\tString[] spliturl = txt.split(\",\");\n\t\tSystem.out.println(spliturl[0]);\n\t\tSystem.out.println(spliturl[4]);\n\t\tSystem.out.println(spliturl[5]);\n\t}", "@Test\r\n public void testRegexp() throws Exception {\n\r\n String a = \"a/b/100/test\";\r\n\r\n Pattern pattern = Pattern.compile(\".+/(\\\\d+)/test\");\r\n\r\n System.out.println(parseIdFromUriPath(a, pattern));\r\n\r\n }", "private static String formatTime(String time) {\n\t\treturn String.format(\"%s:%s\", time.substring(0, 2), time.substring(2));\n\t}", "private void appendIPv4(long lowAddress, Appendable dest, boolean endsWithColon) throws IOException {\n if (!endsWithColon) {\n dest.append(':');\n }\n IPv4.INSTANCE.append((int) lowAddress, dest);\n }", "String getPartWithPort();", "private Uri m2344g(String str) {\n return mo10091b(str, this.f2759a.mo9868F(), true);\n }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "@Override\n\tpublic String toString() {\n\t\treturn ip + \" \"+ times;\n\t}", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "public static void main(String[] args) {\n\t\tString url = \"http://hell.com/?pw=8936,id='fsfds'\";\n\t\t\n\t\tint location = url.indexOf(\"pw=\");\n\t\tString str2 = url.substring(location+7);\n\t\tString str1 = url.substring(0,location+3);\n\t\tSystem.out.println(str1+\"****\"+str2);\n\t\t\n\t}", "public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }", "public String getRoutingNo();", "private boolean initializeAuthority(String p_uriSpec) {\n \n int index = 0;\n int start = 0;\n int end = p_uriSpec.length();\n \n char testChar = '\\0';\n String userinfo = null;\n \n // userinfo is everything up to @\n if (p_uriSpec.indexOf('@', start) != -1) {\n while (index < end) {\n testChar = p_uriSpec.charAt(index);\n if (testChar == '@') {\n break;\n }\n index++;\n }\n userinfo = p_uriSpec.substring(start, index);\n index++;\n }\n \n // host is everything up to last ':', or up to \n // and including ']' if followed by ':'.\n String host = null;\n start = index;\n boolean hasPort = false;\n if (index < end) {\n if (p_uriSpec.charAt(start) == '[') {\n int bracketIndex = p_uriSpec.indexOf(']', start);\n index = (bracketIndex != -1) ? bracketIndex : end;\n if (index+1 < end && p_uriSpec.charAt(index+1) == ':') {\n ++index;\n hasPort = true;\n }\n else {\n index = end;\n }\n }\n else {\n int colonIndex = p_uriSpec.lastIndexOf(':', end);\n index = (colonIndex > start) ? colonIndex : end;\n hasPort = (index != end);\n }\n }\n host = p_uriSpec.substring(start, index);\n int port = -1;\n if (host.length() > 0) {\n // port\n if (hasPort) {\n index++;\n start = index;\n while (index < end) {\n index++;\n }\n String portStr = p_uriSpec.substring(start, index);\n if (portStr.length() > 0) {\n // REVISIT: Remove this code.\n /** for (int i = 0; i < portStr.length(); i++) {\n if (!isDigit(portStr.charAt(i))) {\n throw new MalformedURIException(\n portStr +\n \" is invalid. Port should only contain digits!\");\n }\n }**/\n // REVISIT: Remove this code.\n // Store port value as string instead of integer.\n try {\n port = Integer.parseInt(portStr);\n if (port == -1) --port;\n }\n catch (NumberFormatException nfe) {\n port = -2;\n }\n }\n }\n }\n \n if (isValidServerBasedAuthority(host, port, userinfo)) {\n m_host = host;\n m_port = port;\n m_userinfo = userinfo;\n return true;\n }\n // Note: Registry based authority is being removed from a\n // new spec for URI which would obsolete RFC 2396. If the\n // spec is added to XML errata, processing of reg_name\n // needs to be removed. - mrglavas.\n else if (isValidRegistryBasedAuthority(p_uriSpec)) {\n m_regAuthority = p_uriSpec;\n return true;\n }\n return false;\n }", "String getRouteID();", "public static String parseHostPort(String fullName){\n\t\t\n\t\tString newName = fullName.trim();\n\t\tString name = \"\";\n\t\tint indexOfSlash1 = newName.indexOf(\"/\");\n\t\tint indexOfColon = newName.indexOf(\":\",indexOfSlash1);\n\t\tint indexOfSlash2 = newName.indexOf(\"/\", indexOfColon);\n\t\tString host = newName.substring(indexOfSlash1+2, indexOfColon);\n\t\tString port = newName.substring(indexOfColon+1,indexOfSlash2);\n\t\tif(indexOfSlash2 +1 < fullName.length())\n\t\t\t name = newName.substring(indexOfSlash2+1);\n\t\tString finalString = host+\" \"+port+\" \"+name;\n\t\treturn finalString;\n\t}", "public static String getParsedColonValue(String input){\n\t\tif (input == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn input.split(\":\")[1];\n\t}", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "@Test\n public void doesNotThrowWhenRoutingKeyInvalid3() {\n String key = \"hi.-.live.odds_change.6b.sr:match.9536715\";\n\n parser.getRoutingKeyInfo(key);\n Assert.assertNotNull(parser);\n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "public void testYourFifthPartition() {\n\tSystem.out.print(\"\\nTesting Fifth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:1/a?key=value\", true); // domain + port + path + query\n executeTestPrintResult(\"http://abc.com/a?key=value\", true); // domain + path + query\n executeTestPrintResult(\"http://abc.com:1/a\", true); // domain + port + path\n executeTestPrintResult(\"http://abc.com:1?key=value\", true); // domain + port + query\n\n executeTestPrintResult(\"http://abc.com/a/b:80\", false); // domain + path + port\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c\", false); // domain + query + path\n executeTestPrintResult(\"http://abc.com?key=value:80\", false); // domain + query + port\n executeTestPrintResult(\"http://abc.com:1?key=value/a/b/c\", false); // domain + port + query + path\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c:80\", false); // domain + query + path + port\n executeTestPrintResult(\"http://abc.com?key=value:80/a/b/c\", false); // domain + query + port + path\n executeTestPrintResult(\"http://abc.com/a/b/c:80?key=value\", false); // domain + path + port + query\n executeTestPrintResult(\"http://abc.com/a/b/c?key=value:80\", false); // domain + path + query + port\n\t \n }", "private String buildUriFromId(String baseUri, String id){\n\t\treturn baseUri + \"/\" + id;\n\t}", "@Override\r\n public String toString() {\r\n String intersectionName = \"\";\r\n for (Route demo : connections) {\r\n intersectionName += demo.getFrom() + \",\";\r\n }\r\n return duration + \":\" + intersectionName.substring(0,\r\n intersectionName.length() - 1);\r\n }", "private String m81849m() {\n String str;\n if (this.f58083o) {\n str = UrlUtil.m84496b(UrlUtil.m84494a(this.f58071c, C6969H.m41409d(\"G738BEA0FAD3C\")));\n } else {\n str = this.f58070b;\n }\n if (!TextUtils.isEmpty(str)) {\n this.f58072d = Uri.parse(str);\n }\n return str;\n }", "private static String getHost(final String host) {\n final int colonIndex = host.indexOf(':');\n\n if (colonIndex == -1) {\n return host;\n }\n\n return host.substring(0, colonIndex);\n }", "private String checkSegments(ArrayList<DataSegment> list, int start, int end) {\n if (list.isEmpty()) return \"38020\";\n if (list.get(0).getSegmentStart()!=start) return \"38021\";\n if (list.get(list.size()-1).getSegmentEnd()!=end) return \"38022\";\n int lastend=start-1; \n for (int i=0;i<list.size();i++) {\n DataSegment segment=list.get(i);\n if (segment.getSegmentStart()!=lastend+1) return \"38023[\"+(i+1)+\"/\"+(list.size())+\"]\";\n lastend=segment.getSegmentEnd();\n if (lastend>end) return \"38024[\"+(i+1)+\"/\"+(list.size())+\"]\";\n }\n return null;\n }", "private String m81844c(String str) {\n Uri uri;\n String a = UrlUtil.m84494a(this.f58071c, str);\n return (!TextUtils.isEmpty(a) || (uri = this.f58072d) == null) ? a : UrlUtil.m84494a(uri, str);\n }", "@Test\n\tpublic void testIPV6WithPortAndUserinfo() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://brett@[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(\"brett\", uri.getUserinfo());\n\t}", "@Test\n public void doesNotThrowWhenRoutingKeyInvalid2() {\n String key = \"hi.-.live.odds_change.6sr:match.9536715\";\n\n parser.getRoutingKeyInfo(key);\n Assert.assertNotNull(parser);\n }", "public void testYourFourthPartition() {\n\tSystem.out.print(\"\\nTesting Fourth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com?\", false); // empty \n executeTestPrintResult(\"http://abc.com?key=value\", true); \n executeTestPrintResult(\"http://abc.com?a=1&b=2&c=3\", true); // arbitrary length, letters/digits \n executeTestPrintResult(\"http://abc.com?a=1+b=2\", false); // +\n executeTestPrintResult(\"http://abc.com?a\", false); // no value\n executeTestPrintResult(\"http://abc.com?=a\", false); // no key\n executeTestPrintResult(\"?key=value\", false); // no domain \n }", "public int getProtocolDelimitedLength();", "static String hashURL(String url){\n\t\treturn url.replace('/', 's').replace(':','c');\n\t}", "Uri mo1686a();", "protected void parseURL(URL paramURL, String paramString, int paramInt1, int paramInt2) {\n/* 126 */ String str1 = paramURL.getProtocol();\n/* 127 */ String str2 = paramURL.getAuthority();\n/* 128 */ String str3 = paramURL.getUserInfo();\n/* 129 */ String str4 = paramURL.getHost();\n/* 130 */ int i = paramURL.getPort();\n/* 131 */ String str5 = paramURL.getPath();\n/* 132 */ String str6 = paramURL.getQuery();\n/* */ \n/* */ \n/* 135 */ String str7 = paramURL.getRef();\n/* */ \n/* 137 */ boolean bool1 = false;\n/* 138 */ boolean bool2 = false;\n/* */ \n/* */ \n/* */ \n/* 142 */ if (paramInt1 < paramInt2) {\n/* 143 */ int k = paramString.indexOf('?');\n/* 144 */ bool2 = (k == paramInt1) ? true : false;\n/* 145 */ if (k != -1 && k < paramInt2) {\n/* 146 */ str6 = paramString.substring(k + 1, paramInt2);\n/* 147 */ if (paramInt2 > k)\n/* 148 */ paramInt2 = k; \n/* 149 */ paramString = paramString.substring(0, k);\n/* */ } \n/* */ } \n/* */ \n/* 153 */ int j = 0;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 159 */ boolean bool3 = (paramInt1 <= paramInt2 - 4 && paramString.charAt(paramInt1) == '/' && paramString.charAt(paramInt1 + 1) == '/' && paramString.charAt(paramInt1 + 2) == '/' && paramString.charAt(paramInt1 + 3) == '/') ? true : false;\n/* 160 */ if (!bool3 && paramInt1 <= paramInt2 - 2 && paramString.charAt(paramInt1) == '/' && paramString\n/* 161 */ .charAt(paramInt1 + 1) == '/') {\n/* 162 */ paramInt1 += 2;\n/* 163 */ j = paramString.indexOf('/', paramInt1);\n/* 164 */ if (j < 0 || j > paramInt2) {\n/* 165 */ j = paramString.indexOf('?', paramInt1);\n/* 166 */ if (j < 0 || j > paramInt2) {\n/* 167 */ j = paramInt2;\n/* */ }\n/* */ } \n/* 170 */ str4 = str2 = paramString.substring(paramInt1, j);\n/* */ \n/* 172 */ int k = str2.indexOf('@');\n/* 173 */ if (k != -1) {\n/* 174 */ if (k != str2.lastIndexOf('@')) {\n/* */ \n/* 176 */ str3 = null;\n/* 177 */ str4 = null;\n/* */ } else {\n/* 179 */ str3 = str2.substring(0, k);\n/* 180 */ str4 = str2.substring(k + 1);\n/* */ } \n/* */ } else {\n/* 183 */ str3 = null;\n/* */ } \n/* 185 */ if (str4 != null) {\n/* */ \n/* */ \n/* 188 */ if (str4.length() > 0 && str4.charAt(0) == '[') {\n/* 189 */ if ((k = str4.indexOf(']')) > 2) {\n/* */ \n/* 191 */ String str = str4;\n/* 192 */ str4 = str.substring(0, k + 1);\n/* */ \n/* 194 */ if (!IPAddressUtil.isIPv6LiteralAddress(str4.substring(1, k))) {\n/* 195 */ throw new IllegalArgumentException(\"Invalid host: \" + str4);\n/* */ }\n/* */ \n/* */ \n/* 199 */ i = -1;\n/* 200 */ if (str.length() > k + 1) {\n/* 201 */ if (str.charAt(k + 1) == ':') {\n/* 202 */ k++;\n/* */ \n/* 204 */ if (str.length() > k + 1) {\n/* 205 */ i = Integer.parseInt(str.substring(k + 1));\n/* */ }\n/* */ } else {\n/* 208 */ throw new IllegalArgumentException(\"Invalid authority field: \" + str2);\n/* */ } \n/* */ }\n/* */ } else {\n/* */ \n/* 213 */ throw new IllegalArgumentException(\"Invalid authority field: \" + str2);\n/* */ } \n/* */ } else {\n/* */ \n/* 217 */ k = str4.indexOf(':');\n/* 218 */ i = -1;\n/* 219 */ if (k >= 0) {\n/* */ \n/* 221 */ if (str4.length() > k + 1) {\n/* 222 */ i = Integer.parseInt(str4.substring(k + 1));\n/* */ }\n/* 224 */ str4 = str4.substring(0, k);\n/* */ } \n/* */ } \n/* */ } else {\n/* 228 */ str4 = \"\";\n/* */ } \n/* 230 */ if (i < -1) {\n/* 231 */ throw new IllegalArgumentException(\"Invalid port number :\" + i);\n/* */ }\n/* 233 */ paramInt1 = j;\n/* */ \n/* */ \n/* 236 */ if (str2 != null && str2.length() > 0) {\n/* 237 */ str5 = \"\";\n/* */ }\n/* */ } \n/* 240 */ if (str4 == null) {\n/* 241 */ str4 = \"\";\n/* */ }\n/* */ \n/* */ \n/* 245 */ if (paramInt1 < paramInt2) {\n/* 246 */ if (paramString.charAt(paramInt1) == '/') {\n/* 247 */ str5 = paramString.substring(paramInt1, paramInt2);\n/* 248 */ } else if (str5 != null && str5.length() > 0) {\n/* 249 */ bool1 = true;\n/* 250 */ int k = str5.lastIndexOf('/');\n/* 251 */ String str = \"\";\n/* 252 */ if (k == -1 && str2 != null) {\n/* 253 */ str = \"/\";\n/* */ }\n/* 255 */ str5 = str5.substring(0, k + 1) + str + paramString.substring(paramInt1, paramInt2);\n/* */ } else {\n/* */ \n/* 258 */ String str = (str2 != null) ? \"/\" : \"\";\n/* 259 */ str5 = str + paramString.substring(paramInt1, paramInt2);\n/* */ } \n/* 261 */ } else if (bool2 && str5 != null) {\n/* 262 */ int k = str5.lastIndexOf('/');\n/* 263 */ if (k < 0)\n/* 264 */ k = 0; \n/* 265 */ str5 = str5.substring(0, k) + \"/\";\n/* */ } \n/* 267 */ if (str5 == null) {\n/* 268 */ str5 = \"\";\n/* */ }\n/* 270 */ if (bool1) {\n/* */ \n/* 272 */ while ((j = str5.indexOf(\"/./\")) >= 0) {\n/* 273 */ str5 = str5.substring(0, j) + str5.substring(j + 2);\n/* */ }\n/* */ \n/* 276 */ j = 0;\n/* 277 */ while ((j = str5.indexOf(\"/../\", j)) >= 0) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 284 */ if (j > 0 && (paramInt2 = str5.lastIndexOf('/', j - 1)) >= 0 && str5\n/* 285 */ .indexOf(\"/../\", paramInt2) != 0) {\n/* 286 */ str5 = str5.substring(0, paramInt2) + str5.substring(j + 3);\n/* 287 */ j = 0; continue;\n/* */ } \n/* 289 */ j += 3;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 294 */ j = str5.indexOf(\"/..\");\n/* 295 */ while (str5.endsWith(\"/..\") && (paramInt2 = str5.lastIndexOf('/', j - 1)) >= 0) {\n/* 296 */ str5 = str5.substring(0, paramInt2 + 1);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 302 */ if (str5.startsWith(\"./\") && str5.length() > 2) {\n/* 303 */ str5 = str5.substring(2);\n/* */ }\n/* */ \n/* 306 */ if (str5.endsWith(\"/.\")) {\n/* 307 */ str5 = str5.substring(0, str5.length() - 1);\n/* */ }\n/* */ } \n/* 310 */ setURL(paramURL, str1, str4, i, str2, str3, str5, str6, str7);\n/* */ }", "@Test(timeout = 4000)\n public void test44() throws Throwable {\n String string0 = EWrapperMsgGenerator.accountDownloadEnd(\"6FL]:1rO^5$2j=[!jjK\");\n assertEquals(\"accountDownloadEnd: 6FL]:1rO^5$2j=[!jjK\", string0);\n }", "public String rtvUserId4()\n\t{\n\t\treturn Toolbox.trim(userId, 4);\n\t}", "String endpoint();", "@Override\n public String splitId() {\n return splitId(subtaskId);\n }", "protected String parsePrimaryId(String uriTxt) {\n\t\tString id = null;\n\t\tint idx = uriTxt.lastIndexOf(QuickLinksAction.CHAR_SLASH);\n\t\tif (idx < uriTxt.length()) \n\t\t\tid = uriTxt.substring(idx+1);\n\t\treturn id;\n\t}", "public static void main2(String args[]) {\n String s1 = \"2009-03-10T16:08:55.184 -0600 [ 16621850][ 162233] INFO - thredds.server.opendap.NcDODSServlet - Remote host: 128.117.140.71 - Request: \\\"GET /thredds/dodsC/model/NCEP/NAM/CONUS_80km/NAM_CONUS_80km_20090309_0000.grib1.dods?Geopotential_height%5B7:1:7%5D%5B0:10:10%5D%5B0:1:64%5D%5B0:1:92%5D HTTP/1.1\\\"\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s1, p1);\r\n\r\n // 1 2 3 4 5 6 7 8 9\r\n String s2 = \"2009-03-10T16:08:54.617 -0600 [ 16621283][ 162230] INFO - thredds.server.opendap.NcDODSServlet - Request Completed - 200 - -1 - 47\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s2, p2);\r\n\r\n// Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n Pattern p3 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - (.*)\");\r\n\r\n show(s1, p3);\r\n show(s2, p3);\r\n\r\n }", "private UUID uuidFromUri(URI uri) {\n Pattern pairRegex = Pattern.compile(\"\\\\p{XDigit}{8}-\\\\p{XDigit}{4}-\\\\p{XDigit}{4}-\\\\p{XDigit}{4}-\\\\p{XDigit}{12}\");\n Matcher matcher = pairRegex.matcher(uri.toString());\n String uuid = \"\";\n while (matcher.find()) {\n uuid = matcher.group(0);\n }\n return UUID.fromString(uuid);\n }", "public void testYourFirstPartition()\n {\n //instantiate the validator \n UrlValidator urlVal = new UrlValidator(null, null, UrlValidator.ALLOW_ALL_SCHEMES);\n \n //build the url to test from random valid parts\n String url = \"\";\n Random rand = new Random();\n int scheme = rand.nextInt(validScheme.length);\n int auth = rand.nextInt(validAuthority.length);\n url = validScheme[scheme] + validAuthority[auth];\n \n //1 in 4 chance of adding a port number to the string\n if(rand.nextInt(4) == 3)\n {\n int port = rand.nextInt(65536);//port number ranges 0-65535\n //url = url + \"/:\" + port;\n url = url + \":\" + port;\n }\n\n //print out the url and test if valid\n System.out.print(url + \" : \");\n\t System.out.println(urlVal.isValid(url));\n \n }", "public int getSipDscp();", "private static String m39043k(Uri uri) {\n if (uri == null) {\n return null;\n }\n return uri.getScheme();\n }", "public static String extractCurrentSnipId(String token) {\n\t\tString[] tokenSplit = token.split(\":\");\n\t\tif (tokenSplit.length > 1)\n\t\t\treturn tokenSplit[1];\n\t\treturn null;\n\t}", "public void testYourSecondPartition() {\n\tSystem.out.print(\"\\nTesting Second Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:65535\", true); // max allowed port number\n executeTestPrintResult(\"http://abc.com:0\", true); // min allowed port number\n executeTestPrintResult(\"http://abc.com:1\", true); // 1 digit port number \n executeTestPrintResult(\"http://abc.com:99\", true); // 2 digit port number \n executeTestPrintResult(\"http://abc.com:999\", true); // 3 digit port number \n executeTestPrintResult(\"http://abc.com:1000\", true); // 4 digit port number \n executeTestPrintResult(\"http://abc.com:65536\", false); // port number too high \n executeTestPrintResult(\"http://abc.com:-1\", false); // negative port\n executeTestPrintResult(\"http://abc.com:a\", false); // letter in port\n executeTestPrintResult(\"http://abc.com:\", false); // empty port \n executeTestPrintResult(\":123\", false); // no domain \n }", "private void readHttpPath(String line) {\n\t\tString[] parts = line.split(\" \");\n\t\tif (parts.length != 3) {\n\t\t\tchannel.close();\n\t\t} else {\n\t\t\trequest = new Request(parts[1].trim());\n\t\t}\n\t}", "int getClientIpV4();", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "private String printRoute(Rota r) {\n StringBuilder s = new StringBuilder();\n\n for (String d : r.getPontos()) {\n s.append(d + \"->\");\n }\n s = s.replace(s.length() - 2, s.length(), \".\");\n\n return s.toString();\n }", "public String Formatting(){\n\t\t\t return String.format(\"%03d-%02d-%04d\", getFirstSSN(),getSecondSSN(),getThirdSSN());\n\t\t }", "private void formatPhoneNum() {\n\t\tthis.phoneNum = \"(\" + this.phoneNum.substring(0, 3) + \") \" + this.phoneNum.substring(3, 6) + \" \"\n\t\t\t\t+ this.phoneNum.substring(6);\n\t}", "String mo10312id();", "java.lang.String getPhonenumber();", "private String getOidDirectory(OID oid) {\n NumberFormat numberFormat = NumberFormat.getNumberInstance();\n numberFormat.setMaximumIntegerDigits(4);\n numberFormat.setMinimumIntegerDigits(4);\n numberFormat.setGroupingUsed(false);\n String lastFour = numberFormat.format(Math.abs(oid.getValue()) % 10000);\n return lastFour.substring(0, 2) + \"/\" + lastFour.substring(2);\n }", "private static int scanHexSequence (String address, int index, int end, int [] counter) {\n \n char testChar;\n int numDigits = 0;\n int start = index;\n \n // Trying to match the following productions:\n // hexseq = hex4 *( \":\" hex4)\n // hex4 = 1*4HEXDIG\n for (; index < end; ++index) {\n testChar = address.charAt(index);\n if (testChar == ':') {\n // IPv6 addresses are 128-bit, so there can be at most eight sections.\n if (numDigits > 0 && ++counter[0] > 8) {\n return -1;\n }\n // This could be '::'.\n if (numDigits == 0 || ((index+1 < end) && address.charAt(index+1) == ':')) {\n return index;\n }\n numDigits = 0;\n }\n // This might be invalid or an IPv4address. If it's potentially an IPv4address,\n // backup to just after the last valid character that matches hexseq.\n else if (!isHex(testChar)) {\n if (testChar == '.' && numDigits < 4 && numDigits > 0 && counter[0] <= 6) {\n int back = index - numDigits - 1;\n return (back >= start) ? back : (back+1);\n }\n return -1;\n }\n // There can be at most 4 hex digits per group.\n else if (++numDigits > 4) {\n return -1;\n }\n }\n return (numDigits > 0 && ++counter[0] <= 8) ? end : -1;\n }", "private void process(DatagramPacket packet){\n\t\tString string = new String(packet.getData());\r\n\t\tstring = string.split(\"/end/\")[0];\r\n\t\tInetAddress address = packet.getAddress();\r\n\t\tint port = packet.getPort();\r\n\t\tif(string.startsWith(\"/ping/\")) {\r\n\t\t\tsend(\"/ping/\".getBytes(), address, port);\r\n\t\t}else if(string.startsWith(\"/r/\")) {\r\n\t\t\tclients.add(new ServerClient(address, port));\r\n\t\t\tclients.get(clients.size() - 1).username = string.split(\"/u/|/p/\")[1];\r\n\t\t\tclients.get(clients.size() - 1).password = string.split(\"/p/|/m/\")[1];\r\n\t\t\tclients.get(clients.size() - 1).mail = string.split(\"/m/|/a/\")[1];\r\n\t\t\tclients.get(clients.size() - 1).age = string.split(\"/a/|/c/\")[1];\r\n\t\t\tclients.get(clients.size() - 1).country = string.split(\"/c/|/s/\")[1];\r\n\t\t\tclients.get(clients.size() - 1).sex = string.split(\"/s/|/pn/\")[1];\r\n\t\t\tclients.get(clients.size() - 1).phoneNum = string.split(\"/pn/|/er/\")[1];\r\n\t\t\t\r\n\t\t\tint id = clients.get(clients.size() - 1).userID;\r\n\t\t\t\r\n\t\t\tsave();\r\n\t\t\t\r\n\t\t\tsend(getBynaryFtomInt(id), clients.get(clients.size() - 1).address, clients.get(clients.size() - 1).port);\r\n\t\t\t\r\n\t\t}else if(string.startsWith(\"/e/\")) {\r\n\t\t\tint ID = Integer.parseInt(string.split(\"/id/|/u/\")[1]);\r\n\t\t\tfor(int i = 0; i < clients.size(); i++) {\r\n\t\t\t\tServerClient c = clients.get(i);\r\n\t\t\t\tif(ID == c.userID) {\r\n\t\t\t\t\tc.username = string.split(\"/u/|/p/\")[1];\r\n\t\t\t\t\tc.password = string.split(\"/p/|/m/\")[1];\r\n\t\t\t\t\tc.mail = string.split(\"/m/|/a/\")[1];\r\n\t\t\t\t\tc.age = string.split(\"/a/|/c/\")[1];\r\n\t\t\t\t\tc.country = string.split(\"/c/|/s/\")[1];\r\n\t\t\t\t\tc.sex = string.split(\"/s/|/pn/\")[1];\r\n\t\t\t\t\tc.phoneNum = string.split(\"/pn/|/ee/\")[1];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsave();\r\n\t\t\t\r\n\t\t}else if(string.startsWith(\"/d/\")) {\r\n\t\t\tint ID = Integer.parseInt(string.split(\"/id/|/u/\")[1]);\r\n\t\t\tfor(int i = 0; i < clients.size(); i++) {\r\n\t\t\t\tif(ID == clients.get(i).userID) {\r\n\t\t\t\t\tremove(i);\r\n\t\t\t\t\tclients.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsave();\r\n\t\t}else if(string.startsWith(\"/l/\")) {\r\n\t\t\tfor(int i = 0; i < clients.size(); i++) {\r\n\t\t\t\tServerClient c = clients.get(i);\r\n\t\t\t\tif(c.username.equals(string.split(\"/u/|/p/\")[1]) && c.password.equals(string.split(\"/p/|/el/\")[1])) {\r\n\t\t\t\t\tc.address = packet.getAddress();\r\n\t\t\t\t\tc.port = packet.getPort();\r\n\t\t\t\t\t\r\n\t\t\t\t\tString information = \"/i/\" + \"/id/\" + c.userID + \"/u/\" + c.username + \"/p/\" + c.password + \"/m/\" + c.mail + \"/a/\" + c.age + \"/c/\" + c.country + \"/s/\" + c.sex + \"/pn/\" + c.phoneNum + \"/ei/\" + \"/\" + \"/end/\";\r\n\t\t\t\t\tsend(information.getBytes(), c.address, c.port);\r\n\t\t\t\t\t\r\n\t\t\t\t\twrong = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(wrong) {\r\n\t\t\t\tString information = \"/w/\" + \"/end/\";\r\n\t\t\t\tsend(information.getBytes(), packet.getAddress(), packet.getPort());\r\n\t\t\t}else {\r\n\t\t\t\twrong = true;\r\n\t\t\t}\r\n\t\t}/*else if(string.startsWith(\"/photo/\")) {\r\n\t\t\tfor(int i = 0; i < clients.size(); i++) {\r\n\t\t\t\tServerClient c = clients.get(i);\r\n\t\t\t\tif(Integer.parseInt(string.split(\"/photo/|//\")[1]) == c.userID) {\r\n\t\t\t\t\tc.pixels = string.split(\"//|/e/\")[1].getBytes();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsave();\r\n\t\t}*/\r\n\t\t\r\n\t\t\t\r\n\t}", "private void parseTriplet(String item) {\n int vertex;\n\n int first_slash = item.indexOf('/');\n if (first_slash == -1) {\n vertex = parseInteger(item);\n if (vertex < 0) {\n vertex += mLastVertexNumber;\n }\n mIndices.add(vertex);\n return;\n }\n // wait wait there are more indices in this line\n vertex = parseInteger(item.substring(0, first_slash));\n if (vertex < 0) {\n vertex += mLastVertexNumber;\n }\n mIndices.add(vertex);\n String leftover = item.substring(first_slash + 1, item.length());\n int second_slash = leftover.indexOf('/');\n if (second_slash == -1) {\n mTextureIndex.add(parseInteger(leftover));\n return;\n }\n if (second_slash == 0) {\n mNormalIndex.add(parseInteger(leftover.substring(1, leftover.length())));\n }\n }", "private String printRoute() {\n String r = String.valueOf(this.route.get(0));\n int index = 1;\n while (index < this.route.size()) {\n r = r + \" - \" + this.route.get(index);\n index++;\n }\n return r;\n }", "@Override\n public String getFromID()\n {\n \tStringBuilder sb = new StringBuilder();\n\n \tint ident2 = getIdent2();\n \t\n \tIdentType type = IdentType.fromIdent( ident2 );\n\n \t/* Inter-Prefix - the from and to idents are different prefixes */\n \tif( type == IdentType.IPFIXI )\n \t{\n \tsb.append( format( getBlock2Prefix(), 3 ) );\n \tsb.append( \"-\" );\n \tsb.append( format( getBlock2Ident2(), 4) );\n \t}\n \telse\n \t{\n \tsb.append( format( getPrefix(), 3 ) );\n \tsb.append( \"-\" );\n \tsb.append( format( ident2, 4) );\n \t}\n \t\n \treturn sb.toString();\n }", "private String getHost(String url)\r\n\t{\r\n\t\tif(url == null || url.length() == 0)\r\n\t\t\treturn \"\";\r\n\r\n\t\tint doubleslash = url.indexOf(\"//\");\r\n\t\tif(doubleslash == -1)\r\n\t\t\tdoubleslash = 0;\r\n\t\telse\r\n\t\t\tdoubleslash += 2;\r\n\r\n\t\tint end = url.indexOf('/', doubleslash);\r\n\t\tend = end >= 0 ? end : url.length();\r\n\r\n\t\tint port = url.indexOf(':', doubleslash);\r\n\t\tend = (port > 0 && port < end) ? port : end;\r\n\r\n\t\treturn url.substring(doubleslash, end);\r\n\t}", "private String formatTccId(TCC tcc) {\n\t\tString id = Integer.toString(tcc.getIdTCC());\n\t\twhile (id.length() < 5) {\n\t\t\tid = \"0\" + id;\n\t\t}\n\t\treturn id;\n\t}", "private static String applyRFC2732(String hostname) {\n if (hostname.indexOf(\":\") != -1) {\n // Assuming an IPv6 literal because of the ':'\n return \"[\" + hostname + \"]\";\n }\n return hostname;\n }", "java.lang.String getProtocolId();", "String webSocketUri();", "private String webId(String web) {\n return \" and \"+\r\n \" p.email_key = \"+getEMailKeyStr(web)+\" and \"+\r\n \" pt.email_key = \"+getEMailKeyStr(web)+\" and \"+\r\n \" ct.email_key = \"+getEMailKeyStr(web)+\" \"\r\n ;\r\n }", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "protected String getMicrotimingKey(WebContext context) {\n switch (this) {\n case IP:\n return context.getRemoteIP().toString();\n case BOTH:\n return context.getRemoteIP().toString() + \" <-- \" + context.microtimingKey;\n }\n\n // URI is the default:\n return context.microtimingKey;\n }", "private String parseGroupNameD2K(String line) {\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tsb.append(tokens[0] + \".\");\n\t\tsb.append(tokens[1].replace(';', '_'));\n\t\ttry{\n\t\t\tsb.append(tokens[4].replace('#', '.'));\n\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t// do nothing\n\t\t}\n\t\treturn sb.toString();\n\t}", "private String getResourceIdPrefix(String resourceId) {\n if (resourceId == null) {\n return null;\n }\n if (resourceId.indexOf(\"%3A\") != -1) {\n return resourceId.substring(0, resourceId.indexOf(\"%3A\"));\n } else if (resourceId.indexOf(\":\") != -1) {\n return resourceId.substring(0, resourceId.indexOf(\":\"));\n } else {\n return null;\n }\n }", "@Test\n public void testSplitTime(){\n \tCountDownTimer s = new CountDownTimer();\n \ts.splitTime(3975);\n \tassertEquals(s.toString(), \"1:06:15\");\n \t\n \ts.splitTime(45);\n \tassertEquals(s.toString(), \"0:00:45\");\n \t\n }", "private String extractHourMinute(String dateTime)\n {\n String[] aux = dateTime.split(\"T\");\n String[] auxTime = aux[1].split(\":\");\n\n return auxTime[0] + \":\" + auxTime[1];\n }", "public static int parsePort(String url) {\n // rtmp://localhost:2035/foo/bar\n // Find first slash with colon\n int start = url.indexOf(\":/\");\n if (start == -1)\n return 0;\n\n // Second slash should be +1, so start 3 after for ://\n start = start + 3;\n int end = url.indexOf('/', start);\n\n // take everything up until the next slash for servername:port\n String snp = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // If IPv6 is in use, start looking after the square bracket.\n int delim = snp.indexOf(']');\n delim = (delim > -1) ? snp.indexOf(':', delim) : snp.indexOf(':');\n if (delim == -1)\n return 0;\n\n int port = 0;\n try {\n int p = Integer.parseInt(snp.substring(delim + 1));\n port = (p > 0) ? p : 0;\n } catch (Throwable t) {\n port = -1; // To denote that the url contained server.port token.\n }\n return port;\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "private String parsingURL(String requestURL) {\n\t\tint pos = 0;\n\t\tif (requestURL.startsWith(\"http://\")) {\n\t\t\tpos = \"http://\".length();\n\t\t}\n\t\telse {\n\t\t\tpos = \"https://\".length();\n\t\t}\n\t\t\n\t\tint pos2 = requestURL.indexOf(\":\", pos);\n\t\tif (pos2 < 0) {\n\t\t\tpos2 = requestURL.length();\n\t\t}\n\t\t\n\t\tint pos3 = requestURL.indexOf(\"/\", pos);\n\t\tif (pos3 < 0) {\n\t\t\tpos3 = requestURL.length();\n\t\t}\n\t\t\n\t\tpos2 = Math.min(pos2, pos3);\n\t\t\n\t\tString host = requestURL.substring(pos, pos2);\n\t\t/**\n\t\t * parsing request url\n\t\t */\n\t\treturn host;\n\t}", "public static String parseHost(String url) {\n int start = url.indexOf(\":/\");\n if (start == -1)\n return \"\";\n\n start = start + 3; // Advance past all of '://' to beginning of host name.\n int end = url.indexOf('/', start);\n String hostnameWithPort = end == -1 ? url.substring(start) : url.substring(start, end);\n\n // IPv6 hostnames may contain ':' but the full value is wrapped in [] - skip past if necessary.\n int delim = hostnameWithPort.indexOf(']');\n delim = (delim != -1) ? hostnameWithPort.indexOf(':', delim) : hostnameWithPort.indexOf(':');\n if (delim == -1) // No port.\n return hostnameWithPort;\n else\n return hostnameWithPort.substring(0, delim);\n }", "public void testYourFirstPartition() {\n\t System.out.print(\"\\nTesting First Partition...\\n\");\n executeTestPrintResult(\"http://a.com\", true); // valid scheme all letters\n executeTestPrintResult(\"http://a.a\", false); // invalid domain \n executeTestPrintResult(\"http://.com\", false); // invalid scheme, empty domain\n executeTestPrintResult(\"http://com\", false); // invalid scheme, empty domain\n executeTestPrintResult(\"http://abc\", false); // invalid scheme, no TLD\n executeTestPrintResult(\"http://a.123\", false); // invalid domain \n executeTestPrintResult(\"h123://a.com\", true); // valid scheme letters/digits\n executeTestPrintResult(\"1htp://a.com\", false); // invalid scheme starts with digit\n executeTestPrintResult(\"http:///a.com\", false); // invalid scheme triple slash \n executeTestPrintResult(\"http:/a.com\", false); // invalid scheme one slash \n executeTestPrintResult(\"http/a.com\", false); // invalid scheme no colon\n\n executeTestPrintResult(\"http://a.com\", true); // one dot \n executeTestPrintResult(\"http://a.a.a.com\", true); // arbitrary number of dots \n executeTestPrintResult(\"http://a.a.a.a.com\", true); // arbitrary number of dots \n executeTestPrintResult(\"http://0.0.0.0\", true); // four digits all min\n executeTestPrintResult(\"http://255.255.255.255\", true); // four digits all valid max\n executeTestPrintResult(\"http://255.255.256.255\", false); // four digits, one invalid\n executeTestPrintResult(\"http://0.-1.0.0\", false); // invalid digit/character\n executeTestPrintResult(\"http://0.0.0.0.0\", false); // five digits\n executeTestPrintResult(\"http://0.0\", false); // two digits\n executeTestPrintResult(\"\", false); // empty string\n }", "@Test\n public void doesNotThrowWhenRoutingKeyInvalid() {\n String key = \"hi.-.live.oddschange.6.sr:match.9536715\";\n\n parser.getRoutingKeyInfo(key);\n Assert.assertNotNull(parser);\n }", "private String readPrefixPart()\n // { return readWordSub(false, false) ; }\n {\n return readSegment(false);\n }", "public String getIdentificationPrefix();", "public abstract void partiallyParsedUtterance(long ms);", "public String getIdCardUpUrl()\n/* */ {\n/* 89 */ return this.idCardUpUrl;\n/* */ }", "public static String generate4DigitPin() {\n\t\tString longTime = String.valueOf(Calendar.getInstance().getTimeInMillis());\n\t\tint len = longTime.length();\n\n\t\treturn longTime.substring(len - 4);\n\t}", "public static void splitConnectionParams(final ConnectionParams connectionParams, String host) {\r\n\t\tint displayNum = 0;\r\n\t\tint indexOfColon = host.indexOf(':');\r\n\t\tif (indexOfColon > 0) {\r\n\t\t\tString[] splited = host.split(\":\");\r\n\t\t\tconnectionParams.hostName = splited[0];\r\n\t\t\tif (splited.length > 1) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdisplayNum = Integer.parseInt(splited[1]);\r\n\t\t\t\t} catch (NumberFormatException e) { /*nop*/ }\r\n\t\t\t}\r\n\t\t\tif (splited.length > 2) {\r\n\t\t\t\tconnectionParams.parsePortNumber(splited[2]);\r\n\t\t\t}\r\n\t\t\tconnectionParams.portNumber+= displayNum;\r\n\t\t} else {\r\n\t\t\tconnectionParams.hostName = host;\r\n\t\t}\r\n\t}", "java.lang.String getS4();", "private String trimName(String line) {\n line = trimLine(line);\n int idx = line.indexOf(\"(\");\n if(idx == -1){\n idx = line.indexOf(\":\");\n }\n if (idx != -1) {\n line = line.substring(0, idx);\n }\n return line.trim();\n }", "private String m25428h() {\n if (this.a == null) {\n return null;\n }\n Uri parse;\n Builder builder;\n String a = AdSettings.m6374a();\n if (a != null) {\n if (!a.isEmpty()) {\n a = String.format(\"https://www.%s.facebook.com/audience_network/server_side_reward\", new Object[]{a});\n parse = Uri.parse(a);\n builder = new Builder();\n builder.scheme(parse.getScheme());\n builder.authority(parse.getAuthority());\n builder.path(parse.getPath());\n builder.query(parse.getQuery());\n builder.fragment(parse.getFragment());\n builder.appendQueryParameter(\"puid\", this.a.m7645a());\n builder.appendQueryParameter(\"pc\", this.a.m7646b());\n builder.appendQueryParameter(\"ptid\", this.f19103e);\n builder.appendQueryParameter(\"appid\", this.f19107i);\n return builder.build().toString();\n }\n }\n a = \"https://www.facebook.com/audience_network/server_side_reward\";\n parse = Uri.parse(a);\n builder = new Builder();\n builder.scheme(parse.getScheme());\n builder.authority(parse.getAuthority());\n builder.path(parse.getPath());\n builder.query(parse.getQuery());\n builder.fragment(parse.getFragment());\n builder.appendQueryParameter(\"puid\", this.a.m7645a());\n builder.appendQueryParameter(\"pc\", this.a.m7646b());\n builder.appendQueryParameter(\"ptid\", this.f19103e);\n builder.appendQueryParameter(\"appid\", this.f19107i);\n return builder.build().toString();\n }", "int getReceivingMajorFragmentId();", "private void deliver(String mb) {\n\t\t\tString[] sourceIdAndMsgAndTime = mb.split(\" \", 3);\n\t\t\tSystem.out.println(\"Received \"+ sourceIdAndMsgAndTime[1] + \" from process \"+ sourceIdAndMsgAndTime[0] +\", system time is ­­­­­­­­­­­­­\" + sourceIdAndMsgAndTime[2]);\n\t\t\t\n\t\t}", "public static String getPlaceDetailId(Uri uri) {\n\t\t\treturn uri.getLastPathSegment();\n\t\t}", "@Test\r\n void findRouteDifferentLine() {\r\n List<Station> route = model.findRoute(9, 60);\r\n assertNotNull(route);\r\n assertEquals(10, route.size());\r\n assertEquals(\"SuffolkDowns\", route.get(0).getName());\r\n assertEquals(\"Broadway\", route.get(9).getName());\r\n }", "public static String constructQuery(int port, int uploaded, int downloaded, int left){\n \t String url_string = \"\";\n \t try{\n \t \n String escaped_hash = Helpers.toURLHex(INFO_HASH);\n String ip = \"128.6.5.130\";\n url_string = TORRENT_INFO.announce_url.toString()\n + \"?port=\" + port\n + \"&peer_id=\" + PEER_ID\n + \"&info_hash=\" + escaped_hash \n + \"&uploaded=\" + uploaded\n + \"&downloaded=\" + downloaded\n + \"&left=\" + left\n + \"&ip=\" + ip;\n \n } catch (Exception e){\n System.out.println(e);\n }\n \n return url_string;\n \t}", "public abstract void correctlyParsedUtterance(long ms);", "public String getProtocolId();", "private String getMediaPageUrl(String url) {\n\t\tfor(int idx=url.length()-1; idx > 0; idx--) {\n\t\t\tif (!Character.isDigit(url.charAt(idx))) {\n\t\t\t\tString clipId = url.substring(idx+1);\n\t\t\t\turl = VimeoConverter.ROOT_URL + \"/\" + clipId;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t}", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}" ]
[ "0.5113772", "0.5080249", "0.49392933", "0.49331737", "0.4932296", "0.48994148", "0.4891508", "0.48502484", "0.48373768", "0.4828264", "0.48183134", "0.48120177", "0.48072413", "0.47990716", "0.47988585", "0.47960302", "0.47957784", "0.47750822", "0.47578967", "0.47481215", "0.46989843", "0.46971193", "0.4687128", "0.46719214", "0.46669558", "0.46638164", "0.4657145", "0.4647619", "0.46297595", "0.46287176", "0.46244803", "0.46002683", "0.45827585", "0.45693704", "0.45623174", "0.4542379", "0.453722", "0.45321366", "0.4527539", "0.45225802", "0.4508756", "0.45029834", "0.44937354", "0.44924727", "0.44833508", "0.4469229", "0.4463105", "0.44611385", "0.44553423", "0.4440373", "0.44392303", "0.44320863", "0.4430136", "0.44294888", "0.44265628", "0.44217095", "0.44209895", "0.44146678", "0.44099247", "0.44079667", "0.44072953", "0.44003907", "0.4383288", "0.43822056", "0.4375534", "0.43657532", "0.43616602", "0.43587172", "0.43573245", "0.43534893", "0.43493164", "0.43422234", "0.4335914", "0.43329793", "0.43308005", "0.43220496", "0.43219322", "0.43073812", "0.43015122", "0.42960933", "0.4290966", "0.4283676", "0.42835563", "0.4282233", "0.42765093", "0.4275765", "0.4271883", "0.4265857", "0.42656475", "0.42632324", "0.42628613", "0.42621604", "0.426122", "0.42566547", "0.42544332", "0.42524162", "0.4251378", "0.42499748", "0.42499065", "0.42457083", "0.4241659" ]
0.0
-1
/ 502: / 503:
public String eliminar() /* 504: */ { /* 505:518 */ return null; /* 506: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void retryTask(HttpServletResponse resp) {\n resp.setStatus(500);\n }", "@Override\n\t\t\t\t\t\t\tpublic void HttpFail(int ErrCode) {\n\n\t\t\t\t\t\t\t}", "int getStatusCode( );", "@Override\n\t\t\t\t\tpublic void httpFail(String response) {\n\t\t\t\t\t}", "private void checkResponseHeader(HttpResponse p_checkResponseHeader_1_) {\n/* 277 */ String s = p_checkResponseHeader_1_.getHeader(\"Connection\");\n/* */ \n/* 279 */ if (s != null && !s.toLowerCase().equals(\"keep-alive\"))\n/* */ {\n/* 281 */ terminate(new EOFException(\"Connection not keep-alive\"));\n/* */ }\n/* */ \n/* 284 */ String s1 = p_checkResponseHeader_1_.getHeader(\"Keep-Alive\");\n/* */ \n/* 286 */ if (s1 != null) {\n/* */ \n/* 288 */ String[] astring = Config.tokenize(s1, \",;\");\n/* */ \n/* 290 */ for (int i = 0; i < astring.length; i++) {\n/* */ \n/* 292 */ String s2 = astring[i];\n/* 293 */ String[] astring1 = split(s2, '=');\n/* */ \n/* 295 */ if (astring1.length >= 2) {\n/* */ \n/* 297 */ if (astring1[0].equals(\"timeout\")) {\n/* */ \n/* 299 */ int j = Config.parseInt(astring1[1], -1);\n/* */ \n/* 301 */ if (j > 0)\n/* */ {\n/* 303 */ this.keepaliveTimeoutMs = (j * 1000);\n/* */ }\n/* */ } \n/* */ \n/* 307 */ if (astring1[0].equals(\"max\")) {\n/* */ \n/* 309 */ int k = Config.parseInt(astring1[1], -1);\n/* */ \n/* 311 */ if (k > 0)\n/* */ {\n/* 313 */ this.keepaliveMaxCount = k;\n/* */ }\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ }", "@Override\n public void onFailure(int statusCode, Throwable error,\n String content) {\n\n if(statusCode == 404){\n Toast.makeText(context, \"Requested resource not found\", Toast.LENGTH_LONG).show();\n }else if(statusCode == 500){\n Toast.makeText(context, \"Something went wrong at server end\", Toast.LENGTH_LONG).show();\n }else{\n // Toast.makeText(context, \"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet]\", Toast.LENGTH_LONG).show();\n }\n }", "private final void m37301b(int i) throws Exception {\n if (Callback.DEFAULT_DRAG_ANIMATION_DURATION <= i) {\n if (299 >= i) {\n return;\n }\n }\n if (i == 410) {\n throw ((Throwable) new NoUsernameAvailableException());\n }\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Network Error: status code \");\n stringBuilder.append(i);\n throw new IOException(stringBuilder.toString());\n }", "private String httpNotOk() {\n return \"HTTP/1.1 404 not Found\\r\\n\"\n + \"Content-Type: text/html\\r\\n\"\n + \"\\r\\n\"\n + \"<!DOCTYPE html>\\n\"\n + \"<html>\\n\"\n + \"<head>\\n\"\n + \"<meta charset=\\\"UTF-8\\\">\\n\"\n + \"<title>Error</title>\\n\"\n + \"</head>\\n\"\n + \"<body>\\n\"\n + \"<h1>There is an error</h1>\\n\"\n + \"</body>\\n\"\n + \"</html>\\n\";\n }", "@Override\n\t\t\tpublic void onNetworkError() {\n\n\t\t\t}", "@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n Log.d(\"recon\", \"error \" + statusCode + \" \" + throwable);\n\n Toast.makeText(getApplicationContext(), \"Error: \" + statusCode + \" Verify your Internet Connection is stable or working.\", Toast.LENGTH_LONG).show();\n }", "private static Response handleIOError(IOException e) {\n log.log(Level.WARNING, \"Error retrieving values\", e);\n ServiceError errMsg = new ServiceError(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), \"Internal error retrieving value. If this error persists, please contact the site administrator\");\n return Response.status(Response.Status.BAD_REQUEST)\n .entity(errMsg)\n .build();\n }", "int getStatusCode();", "int getStatusCode();", "public String formTimeout()\r\n {\r\n return formError(\"503 Gateway timeout\",\"The connection timed out\");\r\n }", "Http.Status status();", "@Override\n\t\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\t\n\t\t\t\t\tscrollView.onRefreshComplete();\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\t\t\t\t\t\n\t\t\t\t}", "public String formServerNotFound()\r\n {\r\n return formError(\"503 Gateway timeout\",\"The requested server was not found\");\r\n }", "@Override\n\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\n\t\t\t}", "public ServerException(Response.Status status) {\n super(status);\n }", "@Test\n @Category(FastTest.class)\n public void handleDownloadsExceededCorrectly() throws Exception {\n stubFor(get(urlPathMatching(\"/download/0/.*\"))\n .willReturn(aResponse()\n .withStatus(500)\n .withHeader(\"Content-Type\", \"text/html\")\n .withBodyFile(\"download-limit-exceeded.html\")));\n\n // call service under test\n migrator.migrate(getClass().getResource(TESTFILE_VALID_BOOK));\n\n // verify that our logic attempted download twice\n verify(getRequestedFor(urlEqualTo(\n \"/download/0/?token=abcdef\")));\n }", "@Override\r\n protected Result check() throws Exception {\n try {\r\n Response response = webTarget.request().get();\r\n\r\n if (!response.getStatusInfo().getFamily().equals(Response.Status.Family.SUCCESSFUL)) {\r\n\r\n return Result.unhealthy(\"Received status: \" + response.getStatus());\r\n }\r\n\r\n return Result.healthy();\r\n } catch (Exception e) {\r\n\r\n return Result.unhealthy(e.getMessage());\r\n }\r\n }", "@Test\n void testGivenFaultyRequestWithFaultString_thenFail() throws Exception {\n URL u = new URL(\"http://localhost:8080/sentry-servlet/fault?fault=true\");\n HttpURLConnection conn = (HttpURLConnection)u.openConnection();\n int rc = conn.getResponseCode();\n assertThat(rc)\n .isEqualTo(500);\n }", "public abstract int statusCode();", "public void checkServerErrors() throws NumberFormatException, PluginException {\r\n if (new Regex(brbefore, Pattern.compile(\"No file\", Pattern.CASE_INSENSITIVE)).matches()) {\r\n throw new PluginException(LinkStatus.ERROR_FATAL, getPhrase(\"SERVER_ERROR\"));\r\n }\r\n if (new Regex(brbefore, \"(Not Found|<h1>(404 )?Not Found</h1>)\").matches()) {\r\n logger.warning(\"Server says link offline, please recheck that!\");\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n if (br.containsHTML(\"Twój dzienny limit transferu\")) {\r\n UserIO.getInstance().requestMessageDialog(0, getPhrase(\"PREMIUM_ERROR\"), getPhrase(\"DAILY_LIMIT\") + \"\\r\\n\" + getPhrase(\"PREMIUM_DISABLED\"));\r\n throw new PluginException(LinkStatus.ERROR_PREMIUM, PluginException.VALUE_ID_PREMIUM_TEMP_DISABLE);\r\n } else if (br.containsHTML(\"<input type=\\\"submit\\\" class=\\\"btn btn-large btn-inverse\\\" style=\\\"font-size:30px; font-weight: bold; padding:30px\\\" value=\\\"Pobierz szybko\\\" />\")) {\r\n throw new PluginException(LinkStatus.ERROR_FATAL, getPhrase(\"LINK_BROKEN\"));\r\n }\r\n\r\n }", "public static Integer getResponseCode(String url) throws IOException {\n\n String chrome_user_agent = \"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36\";\n\n\n HttpClient client = HttpClientBuilder.create().build();\n HttpGet request = new HttpGet(url);\n request.addHeader(\"User-Agent\", chrome_user_agent);\n HttpResponse response = null;\n try {\n response = client.execute(request);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n /* System.out.println(\"Response Code : \"\n + response.getStatusLine().getStatusCode());\n*/\n /*BufferedReader rd = new BufferedReader(\n new InputStreamReader(response.getEntity().getContent()));\n\n StringBuffer result = new StringBuffer();\n String line = \"\";\n while ((line = rd.readLine()) != null) {\n result.append(line);\n }\n*/\n return response.getStatusLine().getStatusCode();\n }", "public int getResponseCode() throws IOException {\n/* 317 */ return this.delegate.getResponseCode();\n/* */ }", "@GetMapping(\"/500\")\n public void error()\n {\n throw new BadRequestException(\"500\", \"500 Internal Server Error - Threw BadRequestException.\");\n }", "@Override\n public void onFailure(int statusCode, cz.msebera.android.httpclient.Header[] headers, byte[] bytes, Throwable throwable) {\n\n // Hide Progress Dialog\n prgDialog.hide();\n // When Http response code is '404'\n if (statusCode == 404) {\n Toast.makeText(getApplicationContext(),\n \"Requested resource not found\",\n Toast.LENGTH_LONG).show();\n }\n // When Http response code is '500'\n else if (statusCode == 500) {\n Toast.makeText(getApplicationContext(),\n \"Something went wrong at server end\",\n Toast.LENGTH_LONG).show();\n }\n // When Http response code other than 404, 500\n else {\n Toast.makeText(\n getApplicationContext(),\n \"Error Occured n Most Common Error: n1. Device not connected to Internetn2. Web App is not deployed in App servern3. App server is not runningn HTTP Status code : \"\n + statusCode, Toast.LENGTH_LONG)\n .show();\n }\n }", "@Test\n void testGivenFaultyRequestWithExceptionString_thenFail() throws Exception {\n URL u = new URL(\"http://localhost:8080/sentry-servlet/fault?exception=true\");\n HttpURLConnection conn = (HttpURLConnection)u.openConnection();\n int rc = conn.getResponseCode();\n assertThat(rc)\n .isEqualTo(500);\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void onFail(String msg) {\n\t\t\t\t\t\t\t\tToast.makeText(PhotoImagePagerActivity.this, \"服务器错误\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}", "Response.StatusType getStatus(Exception exception);", "private Document getPageWithRetries(URL url) throws IOException {\n Document doc;\n int retries = 3;\n while (true) {\n sendUpdate(STATUS.LOADING_RESOURCE, url.toExternalForm());\n LOGGER.info(\"Retrieving \" + url);\n doc = Http.url(url)\n .referrer(this.url)\n .cookies(cookies)\n .get();\n if (doc.toString().contains(\"IP address will be automatically banned\")) {\n if (retries == 0) {\n throw new IOException(\"Hit rate limit and maximum number of retries, giving up\");\n }\n LOGGER.warn(\"Hit rate limit while loading \" + url + \", sleeping for \" + IP_BLOCK_SLEEP_TIME + \"ms, \" + retries + \" retries remaining\");\n retries--;\n try {\n Thread.sleep(IP_BLOCK_SLEEP_TIME);\n } catch (InterruptedException e) {\n throw new IOException(\"Interrupted while waiting for rate limit to subside\");\n }\n }\n else {\n return doc;\n }\n }\n }", "abstract Integer getStatusCode();", "@Override\n public void onErrorResponse(VolleyError error) {\n if (ConstantsDefined.isOnline(AllSectionsSummary.this)) {\n //Do nothing..\n Toast.makeText(AllSectionsSummary.this, \"Couldn't connect..Please try again..\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(AllSectionsSummary.this, \"Sorry! No internet connection\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n if (ConstantsDefined.isOnline(AllSectionsSummary.this)) {\n //Do nothing..\n Toast.makeText(AllSectionsSummary.this, \"Couldn't connect..Please try again..\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(AllSectionsSummary.this, \"Sorry! No internet connection\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n if (ConstantsDefined.isOnline(AllSectionsSummary.this)) {\n //Do nothing..\n Toast.makeText(AllSectionsSummary.this, \"Couldn't connect..Please try again..\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(AllSectionsSummary.this, \"Sorry! No internet connection\", Toast.LENGTH_SHORT).show();\n }\n }", "private String tryGetResponse(Request request) throws IOException {\n long startTime = System.currentTimeMillis();\n Response response;\n String responseBody;\n do {\n response = client.newCall(request).execute();\n responseBody = response.body().string();\n System.out.println(\"Got response code \" + response.code());\n } while (response.code() != 200\n && System.currentTimeMillis() - startTime < TimeUnit.SECONDS.toMillis(30));\n\n assertEquals(\n 200, response.code(), \"Unexpected response code. Got this response: \" + responseBody);\n return responseBody;\n }", "@Override\r\n\t\t\tpublic void onNetworkError(NetworkError networkError) {\n\r\n\t\t\t}", "public String formOverloaded()\r\n {\r\n return formError(\"502 Server overloaded\",\"Try again latter\");\r\n }", "@Test\n\tpublic void testIncorrectStatusCode() {\n\t\tgiven().\n\t\tget(Endpoint.GET_COUNTRY_invalid).then().statusCode(404);\n\t}", "public void httpfailure(String errmsg) {\n\t\t\n\t}", "public interface HttpConfig {\n\n // http code\n int SUCCESS = 1;\n int FORBIDDEN = 403;\n int NOT_FOUND = 404;\n int REQUEST_TIMEOUT = 408;\n int INTERNAL_SERVER_ERROR = 500;\n int BAD_GATEWAY = 502;\n int SERVICE_UNAVAILABLE = 503;\n int GATEWAY_TIMEOUT = 504;\n\n // error code\n int UNKNOWN_ERROR = -100;\n int PARSE_ERROR = -101;\n int PERMISSION_ERROR = -102;\n int HTTP_EXCEPTION = -103;\n int SOCKET_TIMEOUT_EXCEPTION = -104;\n int CONNECT_EXCEPTION = -105;\n int NOT_NET_EXCEPTION = -106;\n int SSL_EXCEPTION = -107;\n\n // timeout period\n int TIME_OUT = 15 * 1000;\n}", "private final void m37299a(int i) throws Exception {\n if (Callback.DEFAULT_DRAG_ANIMATION_DURATION <= i) {\n if (299 >= i) {\n return;\n }\n }\n if (i != 405) {\n if (i != 409) {\n if (i != 410) {\n if (i != 422) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Network Error: status code \");\n stringBuilder.append(i);\n throw new IOException(stringBuilder.toString());\n }\n }\n }\n }\n throw ((Throwable) new UsernameTakenException());\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n // Hide Progress Dialog\n prgDialog.hide();\n // When Http response code is '400'\n if(statusCode == 400){\n Toast.makeText(getApplicationContext(), \"Error Creating Donation!!\", Toast.LENGTH_LONG).show();\n }\n // When Http response code is '500'\n else if(statusCode == 500){\n Toast.makeText(getApplicationContext(), \"Something went wrong at server end\", Toast.LENGTH_LONG).show();\n }\n // When Http response code other than 400, 500\n else{\n Toast.makeText(getApplicationContext(), \"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet or remote server is not up and running]\", Toast.LENGTH_LONG).show();\n }\n }", "public SimpleResponse ERROR_INTERNAL_SERVER() {\n this.state = HttpStatus.INTERNAL_SERVER_ERROR.value();\n return ERROR_CUSTOM();\n }", "@Override\n\t\t\tpublic void handleError(ClientHttpResponse response) throws IOException {\n\t\t\t\t\n\t\t\t}", "@Override\n public void run() {\n try {\n ServiceInfo serviceInfo = this.getServiceStatus(url);\n this.saveServiceStatusInfo(serviceInfo);\n if(serviceInfo.getResponseTimeInMillis() > 200)\n log.warn(\"The service is taking too long to respond\");\n\n if(serviceInfo.getStatusCode()!=200)\n log.warn(\"The service did not respond OK\");\n\n\n } catch (IOException e) {\n log.error(\"Error while accessing the service\" ,e);\n }\n }", "@Test\n public void teststatusCode() {\n\t \n\t given().\n\t \tget(\"https://reqres.in/api/unknown\").\n\t then().\t\t\n\t \tstatusCode(200);\n\t \n }", "public String status() throws Exception {\n\n \t\tString apiUrl = \"api/status.json\";\n \t\t\n \t\tString url = this.baseUrl + apiUrl;\n\n URL urlObj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) urlObj.openConnection();\n\n con.setRequestMethod(\"GET\");\n\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n int responseCode = con.getResponseCode();\n String response = \"\";\n\t\tif (responseCode == 200) {\n response = buildReponse(con);\n\t\t} else {\n\t response = \"{'error': 'Something went wrong, looks like the server is down.'}\";\n\t\t}\n\n\t\treturn response; \n \t}", "@Override\n public void onErrorResponse(VolleyError error) {\n try{\n Log.d(\"wsrong\",error.getMessage());\n }catch(NullPointerException ex)\n {\n Toast.makeText(context,\"Server issue try later\", Toast.LENGTH_LONG).show();\n Log.d(\"wsrong\",ex.getMessage());\n }\n }", "public HTTPErrorException(String message) {\n super(message);\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, Throwable e, JSONArray errorResponse) {\n // Hide Progress Dialog\n prgDialog.hide();\n // When Http response code is '404'\n if(statusCode == 404){\n Toast.makeText(getApplicationContext(), \"Requested resource not found\", Toast.LENGTH_LONG).show();\n }\n // When Http response code is '500'\n else if(statusCode == 500){\n Toast.makeText(getApplicationContext(), \"Something went wrong at server end\", Toast.LENGTH_LONG).show();\n }\n // When Http response code other than 404, 500\n else{\n Toast.makeText(getApplicationContext(), \"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet or remote server is not up and running]\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, String content,\n Throwable e) {\n Log.d(\"statusCode\", \"4XX\");\n // Hide Progress Dialog\n //progress.hide();\n String resultErrorMsg = \"\";\n // When Http response code is '404'\n if (statusCode == 404) {\n resultErrorMsg = \"Requested resource not found\";\n }\n // When Http response code is '500'\n else if (statusCode == 500) {\n resultErrorMsg = \"Something went wrong at server end\";\n }\n // When Http response code other than 404, 500\n else {\n resultErrorMsg = \"Unexpected Error occcured! [Most common Error: Device might not be connected to Internet or remote server is not up and running]\";\n }\n bro.setResultStateCode(statusCode);\n bro.setResultMsg(resultErrorMsg);\n bro.setResultJSONArray(null);\n listener.onShowJobsFailure(bro);\n }", "@Override\n\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\tif(progressDialog!=null)progressDialog.dismiss();\n\t\t\t\tshowShortToast(\"获取失败,请检查网络连接\");\n\t\t\t}", "@Override\n public void onErrorResponse(VolleyError error) {\n\n NetworkResponse networkResponse = error.networkResponse;\n Log.i(\"Checking\", new String(error.networkResponse.data));\n if(networkResponse != null && networkResponse.data != null)\n {\n switch (networkResponse.statusCode)\n {\n\n default:\n break;\n }\n }\n }", "public int statusCode(){\n return code;\n }", "protected void onConnectionError() {\n\t}", "@Override\n public RestStatus status() {\n return response.status();\n }", "@Override\n\t\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\t\tnew Tus(AddIncomeActivity.this)\n\t\t\t\t\t\t\t\t\t.toast(\"网络异常,请稍后······\");\n\t\t\t\t\t\t}", "protected abstract boolean isExpectedResponseCode(int httpStatus);", "private void sendError(HttpExchange exchange, java.lang.String error, int errorCode) throws IOException {\n\n\t\tlogger.debug(\"Illegal request from \" + exchange.getRemoteAddress().getHostName() + \": \" + error);\n\t\texchange.sendResponseHeaders(errorCode, 0);\n\t\texchange.close();\n\t\treturn;\n\n\t}", "private void handleDownloadFailure(){\n Toast.makeText(this,\n \"Could not establish connection to service.\\n\" +\n \"Please check your internet connection and \\n\" +\n \"make sure internet permissions are granted.\",\n Toast.LENGTH_LONG\n ).show();\n }", "@Test\r\n\tpublic void test_KeepAlive() throws UnknownHostException, IOException {\n\t\tSocket socket = new Socket(\"localhost\", 8080);\r\n\t\t\r\n\t\t// first request\r\n\t\tRawHttpResponse<?> response = executeRequest(\"GET\", \"/index.html\", \"Connection: keep-alive\", socket);\r\n\t\t// check the response code\r\n\t\tassertEquals(200, response.getStatusCode());\r\n\t\t// check for keep-alive responsse\r\n\t\tOptional<String> connectionHeader = response.getHeaders().getFirst(\"Connection\");\r\n\t\tassertTrue(connectionHeader.isPresent());\r\n\t\tassertEquals(\"keep-alive\", connectionHeader.get());\r\n\r\n\t\t// second request\r\n\t\tresponse = executeRequest(\"GET\", \"/img/main/logo.jpg\", \"\", socket);\r\n\t\t// check the response code\r\n\t\tassertEquals(200, response.getStatusCode());\r\n\t\t// check for keep-alive responsse\r\n\t\tconnectionHeader = response.getHeaders().getFirst(\"Connection\");\r\n\t\tassertFalse(connectionHeader.isPresent());\r\n\t\t\r\n\t\tsocket.close();\r\n\t}", "protected void onConnectionFailed(Endpoint endpoint) {}", "@Override\n\t\tpublic void onFailure(HttpException error, String msg) {\n\t\t\t\n\t\t}", "private void sendNoSuchService(HttpRequest request, HttpResponse response,\n\t\t\tString service) {\n\t\tresponse.clearContent();\n\t\tresponse.setStatus( HttpResponse.STATUS_SERVICE_UNAVAILABLE );\n\t\tresponse.setContentType( \"text/plain\" );\n\t\tresponse.println ( \"The service you requested is not known to this server!\" );\n\t\t\n\t\tconnector.logError (\"Service not found: \" +service);\n\t}", "@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\tLog.e(\"ee\", \"失败:\" + arg1);\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t\t// handler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}", "@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n loopjListener.getResponse(\"Error Bro:(\");\n Log.d(TAG, \"onFailure#2: \" + responseString);\n }", "@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\tLog.e(\"ee\", \"失败:\" + arg1);\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}", "@Override\n public void onError(Status status) {\n }", "@Override\r\n\t\t\tpublic void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n\t\t\t\tsuper.onFailure(statusCode, headers, throwable, errorResponse);\r\n\t\t\t\tToast.makeText(context, \"网络异常,请稍后重试\", Toast.LENGTH_LONG).show();\r\n\t\t\t}", "@Test\n public void negativeScenario(){\n // when().get(\"http://34.223.219.142:1212/ords/hr/employees/1234\")\n // .then().statusCode(404);\n Response response = when().get(\"http://34.223.219.142:1212/ords/hr/employees/1234\");\n assertEquals(response.statusCode(),404);\n assertTrue(response.asString().contains(\"Not Found\"));\n response.prettyPrint();\n\n }", "@Test\n public void testSocketTimeout(){\n CloseableHttpClient client = HttpClients.createDefault();\n HttpGet httpGet = new HttpGet(URL + \"/http/testSocketTimeout\");\n RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(3500).build();\n httpGet.setConfig(requestConfig);\n try {\n CloseableHttpResponse response = client.execute(httpGet);\n System.out.println(EntityUtils.toString(response.getEntity()));\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "@ExceptionHandler(value = {NullPointerException.class, \n \t\t\t\t\t\t RuntimeException.class, \n \t\t\t\t\t\t IOException.class})\n public ResponseEntity<Object> handleInternalServerErr(RuntimeException exception, WebRequest request) {\n return handleExceptionInternal(exception, \n \t\t\t\t\t\t\t \"Error interno en el servidor\", \n \t\t\t\t\t\t\t new HttpHeaders(), \n \t\t\t\t\t\t\t HttpStatus.INTERNAL_SERVER_ERROR, \n \t\t\t\t\t\t\t request);\n }", "@Test\n void testGivenFaultyRequestWithNoQueryString_thenSuccess() throws Exception {\n URL u = new URL(\"http://localhost:8080/sentry-servlet/fault\");\n HttpURLConnection conn = (HttpURLConnection)u.openConnection();\n int rc = conn.getResponseCode();\n assertThat(rc)\n .isEqualTo(200);\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"INTERNET\", error.toString());\n\n toastIt(\"Internet Failure: \" + error.toString());\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"INTERNET\", error.toString());\n\n toastIt(\"Internet Failure: \" + error.toString());\n }", "@Test\n public void testConnectionNoIdleTimeout() throws Exception {\n long timeoutMillis = TimeUnit.SECONDS.toMillis(CONNECTION_IDLE_TIMEOUT_SECS) + 500;\n URL url = new URL(resolveURI(\"/v1/timeout/\" + timeoutMillis));\n HttpURLConnection urlConnection = openURL(url);\n Assert.assertEquals(200, urlConnection.getResponseCode());\n urlConnection.disconnect();\n }", "public abstract int getHttpStatusErrorCode();", "@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t}", "public void internetConnectionProble()\n\t\t{\n\n\n\t\t}", "public boolean isHttpOK(){\n return getStatusCode() == HttpURLConnection.HTTP_OK;\n }", "public void onError(Request request, Throwable exception) {\n\t\t\t logger.severe(\"HTTP error occurred\");\n\t\t\t \tdeliveryPoint.onDeliveryProblem(letterBox, 0);\n\t\t\t }", "HttpStatusCode getStatusCode();", "@Override\n public void onError(Status status) {\n }", "public static long getServerErrors() {\n return serverErrors;\n }", "int getHappiness();", "@Override\r\n\t\t\t\t\tpublic void onSocketTimeoutException(String msg) {\n\t\t\t\t\t\tUToast.showSocketTimeoutToast(getActivity());\r\n\t\t\t\t\t\tstopLoadMoreAndRefresh();\r\n\t\t\t\t\t}", "void heartbeatInvalidStatusCode(XMLHttpRequest xhr);", "public void testHttpFailureRetries() {\n delayTestFinish(RUNASYNC_TIMEOUT);\n runAsync1(0);\n }", "@Override\n protected boolean isResponseStatusToRetry(Response response)\n {\n return response.getStatus() / 4 != 100;\n }", "@Override\r\n protected Response<JSONObject> parseNetworkResponse(NetworkResponse response) {\r\n try {\r\n if (response.data.length == 0) {\r\n byte[] responseData = \"{}\".getBytes(\"UTF8\");\r\n response = new NetworkResponse(response.statusCode, responseData, response.headers, response.notModified);\r\n }\r\n } catch (UnsupportedEncodingException e) {\r\n e.printStackTrace();\r\n }\r\n return super.parseNetworkResponse(response);\r\n }", "@Override\n public void onFailure(HttpException arg0, String arg1) {\n mProgressDialog.setMessage(\"下载失败\");\n mProgressDialog.dismiss();\n enterHome();\n }", "private static String getHTTPResponse(URL url){\n\t\t\n\t\tStringBuilder response = new StringBuilder();\n\t\t\n\t\ttry{\n\t\t\tURLConnection connection = url.openConnection();\n\t\t\tBufferedReader res = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\t\t\tString responseLine;\n\t\t\t\n\t\t\twhile((responseLine = res.readLine()) != null)\n\t\t\t\tresponse.append(responseLine);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t\treturn response.toString();\n\t}", "public void handleError(ClientHttpResponse response) throws IOException {\n }", "@Override\n public void testFullMethod() throws Exception\n {\n Assume.assumeTrue(!OS.IS_WINDOWS);\n \n try\n {\n super.testFullMethod();\n }\n catch (SocketException e)\n {\n Log.getLogger(SslConnection.class).warn(\"Close overtook 400 response\");\n }\n }", "private boolean testConn(String URL)\n {\n\n if(TestHTTP.test(URL))\n \treturn true;\n else \n {\n \tlogfile.severe(URL+\" DOWN\");\n \treturn false;\n }\n }", "private void handleError(HttpServletResponse resp, Throwable ex) {\r\n try {\r\n if (resp.isCommitted()) {\r\n PrintWriter out = resp.getWriter();\r\n ex.printStackTrace(out);\r\n return;\r\n }\r\n resp.setStatus(500);\r\n resp.setContentType(\"text/html\");\r\n PrintWriter out = resp.getWriter();\r\n out.println(\"<html>\");\r\n out.println(\" <head><title>Execution Error: 500</title></head>\");\r\n out.println(\" <body>\");\r\n out.println(\" <h2>Execution Error: \"+ex.getClass().getSimpleName()+\"</h2>\");\r\n out.println(\" <p>Stack trace:</p>\");\r\n out.print(\" <blockquote><pre>\");\r\n if (ex instanceof RhinoException) {\r\n RhinoException rex = (RhinoException)ex;\r\n rex.printStackTrace(out);\r\n } else {\r\n ex.printStackTrace(out);\r\n }\r\n out.println(\"</pre></blockquote>\");\r\n out.println(\" <p><address>Powered by Alt Framework</address></p>\");\r\n out.println(\" </body>\");\r\n out.println(\"</html>\");\r\n } catch (IOException ex2) {\r\n ex2.printStackTrace(System.err);\r\n }\r\n }" ]
[ "0.61328804", "0.57354426", "0.5677696", "0.563144", "0.562431", "0.5622487", "0.56097335", "0.5590361", "0.55746764", "0.5565232", "0.55527043", "0.5534512", "0.5534512", "0.546993", "0.54634404", "0.5458566", "0.5422272", "0.54069746", "0.5397093", "0.5370539", "0.5369119", "0.5366454", "0.53316885", "0.5298525", "0.5292218", "0.5277937", "0.5242311", "0.5238646", "0.5231785", "0.52310306", "0.5221926", "0.5198806", "0.5198806", "0.51936924", "0.5170801", "0.51397043", "0.5128733", "0.5128733", "0.5118655", "0.51111245", "0.5110904", "0.5105556", "0.5076612", "0.5069014", "0.50476867", "0.5033744", "0.50329846", "0.50266314", "0.50197965", "0.501111", "0.5006842", "0.5004237", "0.49994922", "0.49933377", "0.4963902", "0.49573833", "0.49529877", "0.4950458", "0.49447626", "0.4936882", "0.4927987", "0.49189568", "0.49167046", "0.49136117", "0.4908057", "0.49080482", "0.490714", "0.4895851", "0.4886339", "0.4870164", "0.4867954", "0.48660016", "0.48634025", "0.48628974", "0.48620448", "0.48589045", "0.48489046", "0.48471415", "0.48378673", "0.48378673", "0.48300746", "0.48238114", "0.48203957", "0.48184982", "0.4814555", "0.4813264", "0.48062533", "0.48050687", "0.4804476", "0.47977", "0.47895598", "0.47862363", "0.47846338", "0.47821864", "0.47745043", "0.47623655", "0.47606373", "0.47548118", "0.47429568", "0.47313818", "0.47304934" ]
0.0
-1
/ 507: / 508:
public String limpiar() /* 509: */ { /* 510:529 */ return null; /* 511: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "private static int getNodeTime(String node) {\n int offSet = 4;\n return (int) node.toCharArray()[0] - offSet;\n }", "protected String mo3406c() {\n return \"Minute\";\n }", "public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}", "private String TimeConversion() {\n\n int hours, minutes, seconds, dayOfWeek, date, month, year;\n\n seconds = ((raw[27] & 0xF0) >> 4) + ((raw[28] & 0x03) << 4);\n minutes = ((raw[28] & 0xFC) >> 2);\n hours = (raw[29] & 0x1F);\n dayOfWeek = ((raw[29] & 0xE0) >> 5);\n date = (raw[30]) & 0x1F;\n month = ((raw[30] & 0xE0) >> 5) + ((raw[31] & 0x01) << 3);\n year = (((raw[31] & 0xFE) >> 1) & 255) + 2000;\n\n\n\n return hR(month) + \"/\" + hR(date) + \"/\" + year + \" \" + hR(hours) + \":\" + hR(minutes) + \":\" + hR(seconds) + \":00\";\n }", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "private void normalGmtStringToMinutes() {\n int i = Integer.parseInt(gmtString.substring(4, 6));\n offsetMinutes = i * 60;\n i = Integer.parseInt(gmtString.substring(7));\n offsetMinutes += i;\n if (gmtString.charAt(3) == MINUS) {\n offsetMinutes *= -1;\n }\n }", "private static String formatTime(String time) {\n\t\treturn String.format(\"%s:%s\", time.substring(0, 2), time.substring(2));\n\t}", "private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "public static String getHHMM()\r\n/* 74: */ {\r\n/* 75: 94 */ String nowTime = \"\";\r\n/* 76: 95 */ Date now = new Date();\r\n/* 77: 96 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 78: 97 */ nowTime = formatter.format(now);\r\n/* 79: 98 */ return nowTime;\r\n/* 80: */ }", "private String m7d() {\n return \"\";\n }", "private static String m21400e() {\n try {\n return new BufferedReader(new FileReader(new File(\"/sys/class/net/wlan0/address\"))).readLine();\n } catch (Throwable th) {\n C5205o.m21464a(th);\n return \"02:00:00:00:00:00\";\n }\n }", "String canonHr(String s) {\n List<String> l = StringUtil.breakAt(s, \":\");\n if (l.size() == 2) {\n return l.get(0) + \":\" + l.get(1).toUpperCase();\n }\n return s.toUpperCase();\n }", "private void m6605V() {\n if (C1422t.m6866a()) {\n String.format(\"%02d:%02d:%02d\", new Object[]{0, 0, 0});\n this.f5387G.setCurrentTime(0);\n return;\n }\n this.f5387G.setCurrentTime(0);\n }", "public static int m8668h() {\n return 8;\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public String mo15787hm() {\n return this.f3880Mw.mo15796hm();\n }", "public static void main(String[] args) {\n\t\tString s = \"12:45:54PM\";\r\n\t\tString temp=\":\";\r\n\t\tString Result=\"\";\r\n\t\t\r\n\t\tif(s.charAt(8)=='P' || s.charAt(8)=='p')\r\n\t\t {\r\n\t\t\tString s1[] = s.split(\":\");\r\n\t int Hour = Integer.parseInt(s1[0]);\r\n\t String Actual_Hour = \"\";\r\n\t if(Hour == 12)\r\n\t {\r\n\t \tActual_Hour = \"12\";\r\n\t }\r\n\t else\r\n\t {\r\n\t \tint data = 12 + Hour;\r\n\t \tActual_Hour = String.valueOf(data);\r\n\t }\r\n\t \r\n\t \r\n\t Result = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2);\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t \tString s1[] = s.split(\":\");\r\n\t\t \tint Hour = Integer.parseInt(s1[0]);\r\n\t\t String Actual_Hour = \"\";\r\n\t\t if(Hour == 12)\r\n\t\t {\r\n\t\t \tActual_Hour = \"00\";\r\n\t\t \tResult = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2); \r\n\t\t }\r\n\t\t else {\r\n\t\t \tString s2[] = s.split(\"AM\");\r\n\t\t\t for(int i=0; i<s2.length; i++)\r\n\t\t\t {\r\n\t\t\t \tResult = s2[i];\r\n\t\t\t }\t\r\n\t\t }\r\n\t\t \t\r\n\t\t }\r\n\t\t\r\n\t\t\t\tSystem.out.println(Result);\r\n}", "void mo1507n();", "void mo1506m();", "public String getBeginTime() {\n/* 28 */ return this.beginTime;\n/* */ }", "public static String m13823m() {\n return f12476h;\n }", "private String generateWindowsFriendlyDate(String date) {\n\t\t\n\t\treturn date.replaceAll(\"(\\\\:)+\", \"-\");\n\t\t\n\t}", "@Test public void shouldGive240MinFor950cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 4 * 60 /*minutes*/ , rs.calculateTime(950) ); \r\n }", "private Integer getStandardStart(int startTime) \n {\n \tif (startTime % 1440 > 960) {\n \t\tstartTime += 1440;\n \t}\n \tint startOfDay = startTime - (startTime % 1440);\n \t//we need a standard variable to indicate the day of week;\n \t//standard day starts at 08:00 = 480 minutes and ends at 16:00 = 960 minutes\n \tcapacityEndTime = startOfDay + 960;\n \treturn startOfDay + 480;\n }", "@Test(timeout = 4000)\n public void test49() throws Throwable {\n String string0 = EWrapperMsgGenerator.currentTime((-532L));\n assertEquals(\"current time = -532 (Dec 31, 1969 11:51:08 PM)\", string0);\n }", "public static int offset_infos_timestamp() {\n return (32 / 8);\n }", "private String extractHourMinute(String dateTime)\n {\n String[] aux = dateTime.split(\"T\");\n String[] auxTime = aux[1].split(\":\");\n\n return auxTime[0] + \":\" + auxTime[1];\n }", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n String string0 = SQLUtil.normalize(\"^`-{}\\\"8M,,3\", true);\n assertEquals(\"^ ` - { } \\\"8M,,3\\\"\", string0);\n }", "public static asw m47155c() {\n return zzfkz;\n }", "private String getSatRiseTime(String satName) {\n\t\tif (satName.equals(\"SAT08\")) {\n\t\t\treturn \">24.0\";\n\t\t}\n\t\treturn \" - \";\n\t}", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }", "String indexBlackLabBuildTime();", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n String string0 = SQLUtil.normalize(\"Wk-M{)u04i&=ml]M\", false);\n assertEquals(\"Wk - M {) u04i & = ml ] M\", string0);\n }", "String m6857a() {\n return this.f5237h;\n }", "public String mo38889c() {\n String trim = this.f30736g0.getText().toString().trim();\n return trim.length() == 5 ? trim.substring(3, 5) : \"\";\n }", "public int mo36g() {\n return 8;\n }", "long getTimeBoltHBoltE();", "static int getHour(byte[] bytes) {\n if (HOUR_POS < bytes.length * 8) {\n return readBits(bytes, HOUR_POS, HOUR_BITS);\n }\n return 0;\n }", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public static double getAttHour(String time1, String time2)\r\n/* 178: */ throws ParseException\r\n/* 179: */ {\r\n/* 180:258 */ double hour = 0.0D;\r\n/* 181:259 */ DateFormat fulDate = new SimpleDateFormat(\"HH:mm\");\r\n/* 182:260 */ long t12 = fulDate.parse(\"12:00\").getTime();\r\n/* 183:261 */ long t13 = fulDate.parse(\"13:00\").getTime();\r\n/* 184:262 */ long t1 = fulDate.parse(time1).getTime();\r\n/* 185:263 */ long PERHOUR = 3600000L;\r\n/* 186:264 */ if (time2 == null)\r\n/* 187: */ {\r\n/* 188:265 */ if (t12 - t1 > 0L) {\r\n/* 189:266 */ hour = (t12 - t1) / PERHOUR;\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192: */ else\r\n/* 193: */ {\r\n/* 194:269 */ long t2 = fulDate.parse(time2).getTime();\r\n/* 195:270 */ if ((t1 <= t12) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 196:271 */ hour = (t12 - t1) / PERHOUR;\r\n/* 197:272 */ } else if ((t1 <= t12) && (t2 >= t13)) {\r\n/* 198:273 */ hour = (t2 - t1) / PERHOUR - 1.0D;\r\n/* 199:274 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 200:275 */ hour = 0.0D;\r\n/* 201:276 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t13)) {\r\n/* 202:277 */ hour = (t2 - t13) / PERHOUR;\r\n/* 203: */ } else {\r\n/* 204:279 */ hour = (t2 - t1) / PERHOUR;\r\n/* 205: */ }\r\n/* 206: */ }\r\n/* 207:282 */ DecimalFormat df = new DecimalFormat(\"#.0\");\r\n/* 208:283 */ return Double.parseDouble(df.format(hour));\r\n/* 209: */ }", "private static int computeTime(String time) {\n\t\tint ret = 0;\n\t\tint multiply = 1;\n\t\tint decimals = 1;\n\t\tfor (int i = time.length() - 1; i >= 0; --i) {\n\t\t\tif (time.charAt(i) == ':') {\n\t\t\t\tmultiply *= 60;\n\t\t\t\tdecimals = 1;\n\t\t\t} else {\n\t\t\t\tret += (time.charAt(i) - '0') * multiply * decimals;\n\t\t\t\tdecimals *= 10;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn ip + \" \"+ times;\n\t}", "public static String m128354a(String str) {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd-HHmmssSSS\", Locale.US);\n Calendar instance = Calendar.getInstance(TimeZone.getTimeZone(\"GMT+8\"));\n C7573i.m23582a((Object) instance, \"calendar\");\n Date time = instance.getTime();\n StringBuilder sb = new StringBuilder();\n sb.append(simpleDateFormat.format(time));\n sb.append(str);\n return sb.toString();\n }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "public static String m18367b(int i, int i2) {\n if (i >= 0 && i2 > 0) {\n return i + Constants.ACCEPT_TIME_SEPARATOR_SERVER + i2;\n } else if (i > 0) {\n return i + Constants.ACCEPT_TIME_SEPARATOR_SERVER;\n } else if (i >= 0 || i2 <= 0) {\n return null;\n } else {\n return Constants.ACCEPT_TIME_SEPARATOR_SERVER + i2;\n }\n }", "public void mo21783H() {\n }", "static String timeConversion(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2, 4);\n\n String newHours;\n if (ampm.equals(\"AM\")) {\n newHours = hours.equals(\"12\") ? \"00\" : hours;\n\n } else {\n newHours = hours.equals(\"12\") ? hours : String.valueOf(Integer.parseInt(hours) + 12);\n }\n\n return newHours + \":\" + minutes + \":\" + seconds;\n\n }", "public static long TimeInformationToSeconds(String info){\n\t\tif(info.indexOf(':') > 0){\n\t\t\tString[] data = info.split(\":\");\n\t\t\tlong hours = Long.parseLong(data[0]);\n\t\t\tlong minutes = Long.parseLong(data[1]);\n\t\t\tlong seconds = Long.parseLong(data[2].split(\"[.]\")[0]);\n\t\t\tlong milliseconds = Long.parseLong(data[2].split(\"[.]\")[1]);\n\t\t\treturn (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t\t}else{\n\t\t\n\t\t/*\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tSystem.out.println(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tSystem.out.println(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tSystem.out.println(info.substring(info.indexOf('.')));\n/*\t\tlong days = Long.parseLong(info.substring(0, info.indexOf(\"day\")));\n\t\tlong hours = Long.parseLong(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tlong minutes = Long.parseLong(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tlong seconds = Long.parseLong(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tlong milliseconds = Long.parseLong(info.substring(info.indexOf('.')));\n\t*/\t\n\t\t}\n\t\treturn 1;//(days * 86400000) + (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t}", "public long mo9743h() {\n return mo9773w();\n }", "public int mo36g() {\n return 4;\n }", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "void milestone4(int inputSeconds){\n int days = inputSeconds / 86400;\n int seconds = inputSeconds % 86400;\n int hours = seconds / 3600;\n seconds = seconds % 3600;\n int minutes = seconds / 60;\n seconds = seconds % 60;\n\n System.out.println(\"Day/s: \" + days);\n System.out.println(\"Hour/s: \" + hours);\n System.out.println(\"Minute/s: \" + minutes);\n System.out.println(\"Second/s: \" + seconds);\n }", "public void mo21877s() {\n }", "String formatTime(int time) {\r\n\t\tint h = time / 3600;\r\n\t\ttime %= 3600;\r\n\t\tint m = time / 60;\r\n\t\ttime %= 60;\r\n\t\tint s = time;\r\n\t\treturn String.format(\"%02d:%02d:%02d\", h, m, s);\r\n\t}", "public final void mo66559hj() {\n int hl = m72695hl() | m72696hm();\n m72697hn();\n if (hl != 0) {\n m72694hk();\n notifyChanged();\n }\n }", "@Test\n public void testSplitTime(){\n \tCountDownTimer s = new CountDownTimer();\n \ts.splitTime(3975);\n \tassertEquals(s.toString(), \"1:06:15\");\n \t\n \ts.splitTime(45);\n \tassertEquals(s.toString(), \"0:00:45\");\n \t\n }", "public String m3147h() {\n return this.f2416j;\n }", "public String m3257k() {\n String string = getString();\n return this.f1938d >= 0 ? string.substring(this.f1937c, this.f1937c + this.f1938d) : string;\n }", "private String obtenerMilisegundos(){\n\n String fecha = java.time.LocalDateTime.now().toString();\n int longitudPunto = fecha.lastIndexOf(\".\");\n try{\n this.milisegundos = java.time.LocalDateTime.now().toString().substring((longitudPunto+1),fecha.length());\n }catch (StringIndexOutOfBoundsException sioobe){\n this.milisegundos = \"000\";\n }\n\n return milisegundos;\n }", "private void deliver(String mb) {\n\t\t\tString[] sourceIdAndMsgAndTime = mb.split(\" \", 3);\n\t\t\tSystem.out.println(\"Received \"+ sourceIdAndMsgAndTime[1] + \" from process \"+ sourceIdAndMsgAndTime[0] +\", system time is ­­­­­­­­­­­­­\" + sourceIdAndMsgAndTime[2]);\n\t\t\t\n\t\t}", "static String timeConversion(String s) {\n if(s.indexOf('P') >= 0 && s.substring(0, 2).equals(\"12\")){\n }\n else if(s.indexOf('P') >= 0){\n Integer n = Integer.parseInt(s.substring(0, 2));\n s = removeHour(s);\n n += 12;\n String hour = Integer.toString(n);\n s = hour + s;\n }\n else if (s.indexOf('A') >= 0 && s.substring(0, 2).equals(\"12\")){\n s = \"00\" + s.substring(2);\n }\n return removeHourFormat(s);\n }", "private int m519d(C0082e eVar) {\n int c = C0069c.m383c(eVar.mo67c(C0071a.DAY_OF_WEEK) - this.f279b.mo283a().mo236a(), 7) + 1;\n long c2 = m517c(eVar, c);\n if (c2 == 0) {\n return ((int) m517c(C0018g.m125a(eVar).mo98b(eVar).mo27c(1, C0072b.WEEKS), c)) + 1;\n }\n if (c2 >= 53) {\n int b = m514b(m511a(eVar.mo67c(C0071a.DAY_OF_YEAR), c), (C0128k.m770a((long) eVar.mo67c(C0071a.YEAR)) ? 366 : 365) + this.f279b.mo284b());\n if (c2 >= ((long) b)) {\n return (int) (c2 - ((long) (b - 1)));\n }\n }\n return (int) c2;\n }", "public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}", "private String getSatSetTime(String satName) {\n\t\tif (satName.equals(\"SAT02\")) {\n\t\t\treturn \">24.0\";\n\t\t}\n\t\treturn \" - \";\n\t}", "public static void main(String[] args)\r\n/* 96: */ {\r\n/* 97:104 */ SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n/* 98:105 */ String qiandaotime = df.format(new Date());\r\n/* 99:106 */ System.out.println(qiandaotime);\r\n/* 100: */ }", "public long mo9743h() {\n return mo9784w();\n }", "public void mo21867i() {\n mo21877s();\n }", "public String mo38887b() {\n String trim = this.f30736g0.getText().toString().trim();\n if (trim.length() < 2) {\n return \"\";\n }\n return trim.substring(0, 2);\n }", "public abstract void correctlyParsedUtterance(long ms);", "public final String mo4983Fk() {\n AppMethodBeat.m2504i(128894);\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"InstanceId:\").append(this.ddx);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppId:\").append(this.ddc);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppVersion:\").append(this.ddd);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppState:\").append(this.dgQ);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AppType:\").append(this.ddz);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"CostTimeMs:\").append(this.ddA);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"Scene:\").append(this.cVR);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"StartTimeStampMs:\").append(this.ddB);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"EndTimeStampMs:\").append(this.ddC);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"path:\").append(this.bUh);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreload:\").append(this.ddg);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"isPreloadPageFrame:\").append(this.deD);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"networkTypeStr:\").append(this.dex);\n String stringBuffer2 = stringBuffer.toString();\n AppMethodBeat.m2505o(128894);\n return stringBuffer2;\n }", "@Test(timeout = 4000)\n public void test56() throws Throwable {\n String string0 = SQLUtil.normalize(\")]*/f/f2Nx{fI.* \", false);\n assertEquals(\") ] */ f / f2Nx { fI.*\", string0);\n }", "public String m50407k() {\n String w = m50429w();\n if (!TextUtils.isEmpty(w)) {\n TextView textView = this.f30731b0;\n CardEditText cardEditText = this.f30729a0;\n m50376a(textView, cardEditText, cardEditText, w);\n }\n return w;\n }", "private static String getPolltime(String date) {\n\t\tif (date.equals(\"\")) {\r\n\t\t\treturn \"pollTime > date_sub(now(),interval 1 WEEK)\";\r\n\t\t} else if (date.startsWith(\"20\") && date.length() == 10) {\r\n\t\t\treturn \"date(pollTime)='\" + date + \"'\";\r\n\t\t}\r\n\t\treturn \"\";\r\n\r\n\t}", "public static String getYYYYMMDDHHMMSS()\r\n/* 56: */ {\r\n/* 57: 68 */ String nowTime = \"\";\r\n/* 58: 69 */ Date now = new Date();\r\n/* 59: 70 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMddHHmmss\");\r\n/* 60: 71 */ nowTime = formatter.format(now);\r\n/* 61: 72 */ return nowTime;\r\n/* 62: */ }", "public String tiempoRestanteHMS(Integer segundos) {\n\t\tint hor = segundos / 3600;\n\t\tint min = (segundos - (3600 * hor)) / 60;\n\t\tint seg = segundos - ((hor * 3600) + (min * 60));\n\t\treturn String.format(\"%02d\", hor) + \" : \" + String.format(\"%02d\", min)\n\t\t\t\t+ \" : \" + String.format(\"%02d\", seg);\n\t}", "private static String normalizeWWN(String unpaddedWWN) {\n String wwn = StringUtils.leftPad(unpaddedWWN, 16, '0');\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < wwn.length(); i += 2) {\n String slice = StringUtils.substring(wwn, i, i + 2);\n if (sb.length() > 0) {\n sb.append(':');\n }\n sb.append(slice);\n }\n return sb.toString();\n }", "private String m36904a(long timeStamp) {\n if (timeStamp == -1) {\n return null;\n }\n return new SimpleDateFormat(\"M/d/yy hh:mm:ss a z\", Locale.US).format(new Date(timeStamp));\n }", "public String b4OrAfter();", "public static void main(String[] args) {\n\t\tString n = \"수 10:00~18:30/목,토 09:00~13:00\";\n\t\t\n\t\tSystem.out.println(isTimePatternIn(n));\n\t}", "public static String timeInWords(final int h, final int m) {\n\n\t\tif(m == 0) {\n\t\t\treturn getFromNumber(h).getWord() + \" \" + minuteInWord(m);\n\t\t} else if (m > 30) {\n\t\t\treturn minuteInWord(60 - m) + \" to \" + getFromNumber(h + 1).getWord();\n\t\t} else {\n\t\t\treturn minuteInWord(m) + \" past \" + getFromNumber(h).getWord();\n\t\t}\n\n }", "java.lang.String getS7();", "public String getInTime3() {\n\treturn inTime3;\n }", "protected String mo1606d() {\n return null;\n }", "public long mo9743h() {\n return mo9760w();\n }", "public static void main(String[] args) {\n\t\tSystem.out.println( getDurationString(61, 61));\r\n\t\t System.out.println(getDurationString(60, 59));\r\n\t\t System.out.println(getDurationString(-610, 9));\r\n\t\t System.out.println( getDurationString(1, 6));\r\n\t\t System.out.println( getDurationString(3722));\r\n\t\t\r\n\t\t\r\n\t}", "static String timeCount_1(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n \n timeHH += hh;\n timeMI += mi;\n timeSS += ss;\n \n }\n else{\n continue;\n }\n }\n \n timeMI += timeSS / 60;\n timeSS %= 60;\n \n timeHH += timeMI / 60;\n timeMI %= 60; \n\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n \n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n //String result = timeHH + \":\" + timeMI + \":\" + timeSS;\n \n return result;\n }", "public void mo2470d() {\n }", "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "private void m145780j() {\n String str;\n if (!this.f119477j.mo115499a() && !this.f119478k) {\n if ((this.f119477j.f119578d & 536870912) != 0) {\n str = \"WAL\";\n } else {\n str = \"PERSIST\";\n }\n m145773d(str);\n }\n }", "private String timeConversion() {\n Calendar local = Calendar.getInstance();\n Calendar GMT = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n\n //Time from the PINPoint\n int hours, minutes, seconds, day, month, year;\n hours = (record[10] & 0xF8) >> 3;\n minutes = ((record[10] & 0x07) << 3) + ((record[11] & 0xE0) >> 5);\n seconds = ((record[11] & 0x1F) << 1) + ((record[12] & 0x80) >> 7);\n seconds += (record[12] & 0x7F) / 100;\n day = (record[13] & 0xF8) >> 3;\n month = ((record[13] & 0x07) << 1) + ((record[14] & 0x80) >> 7);\n year = (record[14] & 0x7F) + 2000;\n \n month--; //Months in java are 0-11, PINPoint = 1-12;\n\n //Set GMTs time to be the time from the PINPoint\n GMT.set(Calendar.DAY_OF_MONTH, day);\n GMT.set(Calendar.MONTH, month);\n GMT.set(Calendar.YEAR, year);\n GMT.set(Calendar.HOUR_OF_DAY, hours);\n GMT.set(Calendar.MINUTE, minutes);\n GMT.set(Calendar.SECOND, seconds);\n\n //Local is set to GMTs time but with the correct timezone\n local.setTimeInMillis(GMT.getTimeInMillis());\n\n //Set Local time to be the time converted from GMT\n int lHours, lMinutes, lSeconds, lDay, lMonth, lYear;\n lHours = local.get(Calendar.HOUR_OF_DAY);\n lMinutes = local.get(Calendar.MINUTE);\n lSeconds = local.get(Calendar.SECOND);\n lDay = local.get(Calendar.DAY_OF_MONTH);\n lMonth = local.get(Calendar.MONTH);\n\n lMonth++; //Months in java are 0-11, humans read 1-12\n\n lYear = local.get(Calendar.YEAR);\n\n return hR(lMonth) + \"/\" + hR(lDay) + \"/\" + lYear + \" \" + hR(lHours) + \":\" + hR(lMinutes) + \":\" + hR(lSeconds);\n }", "public String mo9504h() {\n return this.f1518g;\n }", "public String getADD_STRING7_MAND() {\r\n return ADD_STRING7_MAND;\r\n }", "public String getADD_STRING7_MAND() {\r\n return ADD_STRING7_MAND;\r\n }", "private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }", "public String TI()\n\t{\n\t\tDateTimeFormatter f = DateTimeFormatter.ofPattern(\"hh:mm a\");\n\t\tString ti = f.format(st);\n\t\tString ti2 = f.format(et);\n\t\treturn ti + \" - \" + ti2;\n \t}", "public void m6607X() {\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"is_rename\", \"0\");\n C1390G.m6779b(\"A107|1|3|10\", hashMap);\n HashMap hashMap2 = new HashMap();\n hashMap2.put(\"mark_num\", String.valueOf(this.f5418ga));\n C1390G.m6779b(\"A107|1|3|10\", hashMap2);\n HashMap hashMap3 = new HashMap();\n hashMap3.put(\"rec_time\", String.valueOf(this.f5420ha));\n C1390G.m6779b(\"A107|1|3|10\", hashMap3);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"A107|1|3|10Vcode error:\" + e);\n }\n }", "private static String timeLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, TIME_STR, TIME);\n }" ]
[ "0.55971664", "0.55531245", "0.5523236", "0.54487425", "0.54229337", "0.53824836", "0.53276986", "0.5285717", "0.527087", "0.52046967", "0.5196519", "0.51882595", "0.51455027", "0.5122558", "0.5111409", "0.5097322", "0.5093708", "0.5086279", "0.50850815", "0.5071425", "0.50662583", "0.50459754", "0.5035338", "0.50278556", "0.5027685", "0.5025662", "0.50026876", "0.50011396", "0.4988491", "0.49861768", "0.49827412", "0.4974472", "0.49736536", "0.49680632", "0.49622327", "0.49540666", "0.4951634", "0.49514306", "0.49507374", "0.49400726", "0.49362546", "0.49319983", "0.4925869", "0.49181965", "0.49084622", "0.4902078", "0.48864758", "0.4881783", "0.48771477", "0.48754773", "0.48743588", "0.48734716", "0.48715034", "0.48678353", "0.48591974", "0.4856104", "0.48376408", "0.48371154", "0.4836406", "0.4834097", "0.4833978", "0.48321152", "0.48312885", "0.48289403", "0.48211423", "0.48201096", "0.48180863", "0.48144618", "0.48121157", "0.48120993", "0.48101005", "0.48095664", "0.4803514", "0.47960633", "0.47936034", "0.47930306", "0.47924477", "0.47901598", "0.47899348", "0.47896853", "0.47881347", "0.47877407", "0.47872683", "0.47855568", "0.47844014", "0.47830796", "0.47828534", "0.47827268", "0.4782652", "0.4779903", "0.47753575", "0.47753033", "0.47707945", "0.47705624", "0.47704035", "0.47694483", "0.47694483", "0.47688067", "0.4765215", "0.47643736", "0.47633278" ]
0.0
-1
/ 512: / 513:
public String cargarDatos() /* 514: */ { /* 515:540 */ return null; /* 516: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Info mo7564ix();", "byte[] mo38566a();", "public int getBlockSize()\n/* */ {\n/* 43 */ return this.blockSize;\n/* */ }", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "public final void mo4383c(long j) {\n try {\n byte[] bArr = this.f20653b;\n int i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) j);\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 8));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 16));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 24));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 32));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 40));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 48));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 56));\n } catch (long j2) {\n throw new zzc(String.format(\"Pos: %d, limit: %d, len: %d\", new Object[]{Integer.valueOf(this.f20656e), Integer.valueOf(this.f20655d), Integer.valueOf(1)}), j2);\n }\n }", "C5537g mo4096b(int i);", "private static byte[] m2536b(Context context) {\n byte[] c = StatisticsManager.m2537c(context);\n byte[] e = StatisticsManager.m2539e(context);\n byte[] bArr = new byte[(c.length + e.length)];\n System.arraycopy(c, 0, bArr, 0, c.length);\n System.arraycopy(e, 0, bArr, c.length, e.length);\n return StatisticsManager.m2534a(context, bArr);\n }", "public static int totalSizeBits_infos_noise() {\n return 48;\n }", "void mo33732Px();", "public static int totalSize_infos_noise() {\n return (48 / 8);\n }", "public abstract long mo9748m();", "@Override\n public int getSize() {\n return 64;\n }", "int memSize() {\n return super.memSize() + 4 * 4; }", "private void method_262(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14, int var15, int var16, int var17) {\n boolean var33 = field_759;\n int var21 = var13 >> 16 & 255;\n int var22 = var13 >> 8 & 255;\n int var23 = var13 & 255;\n int var24 = var14 >> 16 & 255;\n int var25 = var14 >> 8 & 255;\n int var26 = var14 & 255;\n\n try {\n int var27 = var5;\n int var28 = -var9;\n if(var33 || var28 < 0) {\n do {\n int var29 = (var6 >> 16) * var12;\n int var30 = var15 >> 16;\n int var31 = var8;\n int var32;\n if(var30 < this.field_745) {\n var32 = this.field_745 - var30;\n var31 = var8 - var32;\n var30 = this.field_745;\n var5 += var10 * var32;\n }\n\n if(var30 + var31 >= this.field_746) {\n var32 = var30 + var31 - this.field_746;\n var31 -= var32;\n }\n\n var17 = 1 - var17;\n if(var17 != 0) {\n var32 = var30;\n if(var33 || var30 < var30 + var31) {\n do {\n var4 = var2[(var5 >> 16) + var29] & 255;\n if(var4 != 0) {\n label69: {\n var4 = var3[var4];\n int var18 = var4 >> 16 & 255;\n int var19 = var4 >> 8 & 255;\n int var20 = var4 & 255;\n if(var18 == var19 && var19 == var20) {\n var1[var32 + var7] = (var18 * var21 >> 8 << 16) + (var19 * var22 >> 8 << 8) + (var20 * var23 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n if(var18 == 255 && var19 == var20) {\n var1[var32 + var7] = (var18 * var24 >> 8 << 16) + (var19 * var25 >> 8 << 8) + (var20 * var26 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n var1[var32 + var7] = var4;\n }\n }\n\n var5 += var10;\n ++var32;\n } while(var32 < var30 + var31);\n }\n }\n\n var6 += var11;\n var5 = var27;\n var7 += this.field_723;\n var15 += var16;\n ++var28;\n } while(var28 < 0);\n\n }\n } catch (Exception var34) {\n System.out.println(\"error in transparent sprite plot routine\"); // authentic System.out.println\n }\n }", "C4945r5 mo19056B();", "public byte[] mo3891a() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n int i6;\n int i7;\n int i8;\n int i9;\n int i10;\n int i11;\n int i12;\n int i13;\n int i14;\n int i15;\n int i16;\n int i17;\n int i18;\n byte[] b;\n int i19;\n int length;\n mo3892b();\n int i20 = 3072;\n if (this.f687G != null) {\n i20 = 3072 + this.f687G.length + 1;\n }\n byte[] bArr = new byte[i20];\n bArr[0] = Byte.parseByte(this.f688a);\n byte[] b2 = C0331cr.m1177b(this.f689b);\n System.arraycopy(b2, 0, bArr, 1, b2.length);\n int length2 = b2.length + 1;\n try {\n byte[] bytes = this.f690c.getBytes(\"GBK\");\n bArr[length2] = (byte) bytes.length;\n length2++;\n System.arraycopy(bytes, 0, bArr, length2, bytes.length);\n i = length2 + bytes.length;\n } catch (Throwable th) {\n C0310c.m956a(th, \"Req\", \"buildV4Dot2\");\n bArr[length2] = 0;\n i = length2 + 1;\n }\n try {\n byte[] bytes2 = this.f691d.getBytes(\"GBK\");\n bArr[i] = (byte) bytes2.length;\n i++;\n System.arraycopy(bytes2, 0, bArr, i, bytes2.length);\n i2 = i + bytes2.length;\n } catch (Throwable th2) {\n C0310c.m956a(th2, \"Req\", \"buildV4Dot21\");\n bArr[i] = 0;\n i2 = i + 1;\n }\n try {\n byte[] bytes3 = this.f702o.getBytes(\"GBK\");\n bArr[i2] = (byte) bytes3.length;\n i2++;\n System.arraycopy(bytes3, 0, bArr, i2, bytes3.length);\n i3 = i2 + bytes3.length;\n } catch (Throwable th3) {\n C0310c.m956a(th3, \"Req\", \"buildV4Dot22\");\n bArr[i2] = 0;\n i3 = i2 + 1;\n }\n try {\n byte[] bytes4 = this.f692e.getBytes(\"GBK\");\n bArr[i3] = (byte) bytes4.length;\n i3++;\n System.arraycopy(bytes4, 0, bArr, i3, bytes4.length);\n i4 = i3 + bytes4.length;\n } catch (Throwable th4) {\n C0310c.m956a(th4, \"Req\", \"buildV4Dot23\");\n bArr[i3] = 0;\n i4 = i3 + 1;\n }\n try {\n byte[] bytes5 = this.f693f.getBytes(\"GBK\");\n bArr[i4] = (byte) bytes5.length;\n i4++;\n System.arraycopy(bytes5, 0, bArr, i4, bytes5.length);\n i5 = i4 + bytes5.length;\n } catch (Throwable th5) {\n C0310c.m956a(th5, \"Req\", \"buildV4Dot24\");\n bArr[i4] = 0;\n i5 = i4 + 1;\n }\n try {\n byte[] bytes6 = this.f694g.getBytes(\"GBK\");\n bArr[i5] = (byte) bytes6.length;\n i5++;\n System.arraycopy(bytes6, 0, bArr, i5, bytes6.length);\n i6 = i5 + bytes6.length;\n } catch (Throwable th6) {\n C0310c.m956a(th6, \"Req\", \"buildV4Dot25\");\n bArr[i5] = 0;\n i6 = i5 + 1;\n }\n try {\n byte[] bytes7 = this.f708u.getBytes(\"GBK\");\n bArr[i6] = (byte) bytes7.length;\n i6++;\n System.arraycopy(bytes7, 0, bArr, i6, bytes7.length);\n i7 = i6 + bytes7.length;\n } catch (Throwable th7) {\n C0310c.m956a(th7, \"Req\", \"buildV4Dot26\");\n bArr[i6] = 0;\n i7 = i6 + 1;\n }\n try {\n byte[] bytes8 = this.f695h.getBytes(\"GBK\");\n bArr[i7] = (byte) bytes8.length;\n i7++;\n System.arraycopy(bytes8, 0, bArr, i7, bytes8.length);\n i8 = i7 + bytes8.length;\n } catch (Throwable th8) {\n C0310c.m956a(th8, \"Req\", \"buildV4Dot27\");\n bArr[i7] = 0;\n i8 = i7 + 1;\n }\n try {\n byte[] bytes9 = this.f703p.getBytes(\"GBK\");\n bArr[i8] = (byte) bytes9.length;\n i8++;\n System.arraycopy(bytes9, 0, bArr, i8, bytes9.length);\n i9 = i8 + bytes9.length;\n } catch (Throwable th9) {\n C0310c.m956a(th9, \"Req\", \"buildV4Dot28\");\n bArr[i8] = 0;\n i9 = i8 + 1;\n }\n try {\n byte[] bytes10 = this.f704q.getBytes(\"GBK\");\n bArr[i9] = (byte) bytes10.length;\n i9++;\n System.arraycopy(bytes10, 0, bArr, i9, bytes10.length);\n i10 = i9 + bytes10.length;\n } catch (Throwable th10) {\n C0310c.m956a(th10, \"Req\", \"buildV4Dot29\");\n bArr[i9] = 0;\n i10 = i9 + 1;\n }\n try {\n if (TextUtils.isEmpty(this.f707t)) {\n bArr[i10] = 0;\n length = i10 + 1;\n } else {\n byte[] b3 = m1034b(this.f707t);\n bArr[i10] = (byte) b3.length;\n int i21 = i10 + 1;\n System.arraycopy(b3, 0, bArr, i21, b3.length);\n length = b3.length + i21;\n }\n i11 = length;\n } catch (Throwable th11) {\n C0310c.m956a(th11, \"Req\", \"buildV4Dot219\");\n bArr[i10] = 0;\n i11 = i10 + 1;\n }\n try {\n byte[] bytes11 = this.f709v.getBytes(\"GBK\");\n bArr[i11] = (byte) bytes11.length;\n i11++;\n System.arraycopy(bytes11, 0, bArr, i11, bytes11.length);\n i12 = i11 + bytes11.length;\n } catch (Throwable th12) {\n C0310c.m956a(th12, \"Req\", \"buildV4Dot211\");\n bArr[i11] = 0;\n i12 = i11 + 1;\n }\n try {\n byte[] bytes12 = this.f710w.getBytes(\"GBK\");\n bArr[i12] = (byte) bytes12.length;\n i12++;\n System.arraycopy(bytes12, 0, bArr, i12, bytes12.length);\n i13 = i12 + bytes12.length;\n } catch (Throwable th13) {\n C0310c.m956a(th13, \"Req\", \"buildV4Dot212\");\n bArr[i12] = 0;\n i13 = i12 + 1;\n }\n try {\n byte[] bytes13 = this.f711x.getBytes(\"GBK\");\n bArr[i13] = (byte) bytes13.length;\n i13++;\n System.arraycopy(bytes13, 0, bArr, i13, bytes13.length);\n i14 = bytes13.length + i13;\n } catch (Throwable th14) {\n C0310c.m956a(th14, \"Req\", \"buildV4Dot213\");\n bArr[i13] = 0;\n i14 = i13 + 1;\n }\n bArr[i14] = Byte.parseByte(this.f712y);\n int i22 = i14 + 1;\n bArr[i22] = Byte.parseByte(this.f697j);\n int i23 = i22 + 1;\n bArr[i23] = Byte.parseByte(this.f713z);\n int i24 = i23 + 1;\n if (this.f713z.equals(\"1\")) {\n byte[] d = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d, 0, bArr, i24, d.length);\n int length3 = i24 + d.length;\n byte[] d2 = C0331cr.m1187d(mo3890a(\"mnc\"));\n System.arraycopy(d2, 0, bArr, length3, d2.length);\n int length4 = length3 + d2.length;\n byte[] d3 = C0331cr.m1187d(mo3890a(\"lac\"));\n System.arraycopy(d3, 0, bArr, length4, d3.length);\n int length5 = length4 + d3.length;\n byte[] e = C0331cr.m1190e(mo3890a(\"cellid\"));\n System.arraycopy(e, 0, bArr, length5, e.length);\n int length6 = e.length + length5;\n int parseInt = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt > 127) {\n parseInt = 0;\n }\n bArr[length6] = (byte) parseInt;\n int i25 = length6 + 1;\n if (this.f682B.length() == 0) {\n bArr[i25] = 0;\n i24 = i25 + 1;\n } else {\n int length7 = this.f682B.split(\"\\\\*\").length;\n bArr[i25] = (byte) length7;\n i24 = i25 + 1;\n int i26 = 0;\n while (i26 < length7) {\n byte[] d4 = C0331cr.m1187d(m1032a(\"lac\", i26));\n System.arraycopy(d4, 0, bArr, i24, d4.length);\n int length8 = i24 + d4.length;\n byte[] e2 = C0331cr.m1190e(m1032a(\"cellid\", i26));\n System.arraycopy(e2, 0, bArr, length8, e2.length);\n int length9 = e2.length + length8;\n int parseInt2 = Integer.parseInt(m1032a(\"signal\", i26));\n if (parseInt2 > 127) {\n parseInt2 = 0;\n }\n bArr[length9] = (byte) parseInt2;\n i26++;\n i24 = length9 + 1;\n }\n }\n } else if (this.f713z.equals(\"2\")) {\n byte[] d5 = C0331cr.m1187d(mo3890a(\"mcc\"));\n System.arraycopy(d5, 0, bArr, i24, d5.length);\n int length10 = i24 + d5.length;\n byte[] d6 = C0331cr.m1187d(mo3890a(\"sid\"));\n System.arraycopy(d6, 0, bArr, length10, d6.length);\n int length11 = length10 + d6.length;\n byte[] d7 = C0331cr.m1187d(mo3890a(\"nid\"));\n System.arraycopy(d7, 0, bArr, length11, d7.length);\n int length12 = length11 + d7.length;\n byte[] d8 = C0331cr.m1187d(mo3890a(\"bid\"));\n System.arraycopy(d8, 0, bArr, length12, d8.length);\n int length13 = length12 + d8.length;\n byte[] e3 = C0331cr.m1190e(mo3890a(\"lon\"));\n System.arraycopy(e3, 0, bArr, length13, e3.length);\n int length14 = length13 + e3.length;\n byte[] e4 = C0331cr.m1190e(mo3890a(C1447g.f3485ae));\n System.arraycopy(e4, 0, bArr, length14, e4.length);\n int length15 = e4.length + length14;\n int parseInt3 = Integer.parseInt(mo3890a(\"signal\"));\n if (parseInt3 > 127) {\n parseInt3 = 0;\n }\n bArr[length15] = (byte) parseInt3;\n int i27 = length15 + 1;\n bArr[i27] = 0;\n i24 = i27 + 1;\n }\n if (this.f683C.length() == 0) {\n bArr[i24] = 0;\n i15 = i24 + 1;\n } else {\n bArr[i24] = 1;\n int i28 = i24 + 1;\n try {\n String[] split = this.f683C.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n byte[] b4 = m1034b(split[0]);\n System.arraycopy(b4, 0, bArr, i28, b4.length);\n int length16 = i28 + b4.length;\n try {\n byte[] bytes14 = split[2].getBytes(\"GBK\");\n bArr[length16] = (byte) bytes14.length;\n length16++;\n System.arraycopy(bytes14, 0, bArr, length16, bytes14.length);\n i16 = length16 + bytes14.length;\n } catch (Throwable th15) {\n C0310c.m956a(th15, \"Req\", \"buildV4Dot214\");\n bArr[length16] = 0;\n i16 = length16 + 1;\n }\n int parseInt4 = Integer.parseInt(split[1]);\n if (parseInt4 > 127) {\n parseInt4 = 0;\n }\n bArr[i16] = Byte.parseByte(String.valueOf(parseInt4));\n i15 = i16 + 1;\n } catch (Throwable th16) {\n C0310c.m956a(th16, \"Req\", \"buildV4Dot216\");\n byte[] b5 = m1034b(\"00:00:00:00:00:00\");\n System.arraycopy(b5, 0, bArr, i28, b5.length);\n int length17 = b5.length + i28;\n bArr[length17] = 0;\n int i29 = length17 + 1;\n bArr[i29] = Byte.parseByte(\"0\");\n i15 = i29 + 1;\n }\n }\n String[] split2 = this.f684D.split(\"\\\\*\");\n if (TextUtils.isEmpty(this.f684D) || split2.length == 0) {\n bArr[i15] = 0;\n i17 = i15 + 1;\n } else {\n bArr[i15] = (byte) split2.length;\n int i30 = i15 + 1;\n for (String str : split2) {\n String[] split3 = str.split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n try {\n b = m1034b(split3[0]);\n } catch (Throwable th17) {\n C0310c.m956a(th17, \"Req\", \"buildV4Dot2110\");\n b = m1034b(\"00:00:00:00:00:00\");\n }\n System.arraycopy(b, 0, bArr, i30, b.length);\n int length18 = i30 + b.length;\n try {\n byte[] bytes15 = split3[2].getBytes(\"GBK\");\n bArr[length18] = (byte) bytes15.length;\n length18++;\n System.arraycopy(bytes15, 0, bArr, length18, bytes15.length);\n i19 = bytes15.length + length18;\n } catch (Throwable th18) {\n C0310c.m956a(th18, \"Req\", \"buildV4Dot217\");\n bArr[length18] = 0;\n i19 = length18 + 1;\n }\n int parseInt5 = Integer.parseInt(split3[1]);\n if (parseInt5 > 127) {\n parseInt5 = 0;\n }\n bArr[i19] = Byte.parseByte(String.valueOf(parseInt5));\n i30 = i19 + 1;\n }\n byte[] b6 = C0331cr.m1177b(Integer.parseInt(this.f685E));\n System.arraycopy(b6, 0, bArr, i30, b6.length);\n i17 = i30 + b6.length;\n }\n try {\n byte[] bytes16 = this.f686F.getBytes(\"GBK\");\n if (bytes16.length > 127) {\n bytes16 = null;\n }\n if (bytes16 == null) {\n bArr[i17] = 0;\n i18 = i17 + 1;\n } else {\n bArr[i17] = (byte) bytes16.length;\n int i31 = i17 + 1;\n System.arraycopy(bytes16, 0, bArr, i31, bytes16.length);\n i18 = bytes16.length + i31;\n }\n } catch (Throwable th19) {\n C0310c.m956a(th19, \"Req\", \"buildV4Dot218\");\n bArr[i17] = 0;\n i18 = i17 + 1;\n }\n int length19 = this.f687G != null ? this.f687G.length : 0;\n byte[] b7 = C0331cr.m1177b(length19);\n System.arraycopy(b7, 0, bArr, i18, b7.length);\n int length20 = i18 + b7.length;\n if (length19 > 0) {\n System.arraycopy(this.f687G, 0, bArr, length20, this.f687G.length);\n length20 += this.f687G.length;\n }\n byte[] bArr2 = new byte[length20];\n System.arraycopy(bArr, 0, bArr2, 0, length20);\n CRC32 crc32 = new CRC32();\n crc32.update(bArr2);\n byte[] a = C0331cr.m1167a(crc32.getValue());\n byte[] bArr3 = new byte[(a.length + length20)];\n System.arraycopy(bArr2, 0, bArr3, 0, length20);\n System.arraycopy(a, 0, bArr3, length20, a.length);\n int length21 = length20 + a.length;\n m1033a(bArr3, 0);\n return bArr3;\n }", "short getDQ1( byte[] buffer, short offset );", "private static byte[] m2537c(Context context) {\n Throwable th;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n try {\n Utils.m2512a(byteArrayOutputStream, \"1.2.12.5\");\n Utils.m2512a(byteArrayOutputStream, C0820dq.m2443q(context));\n Utils.m2512a(byteArrayOutputStream, C0820dq.m2435i(context));\n Utils.m2512a(byteArrayOutputStream, C0820dq.m2432f(context));\n Utils.m2512a(byteArrayOutputStream, Build.MANUFACTURER);\n Utils.m2512a(byteArrayOutputStream, Build.MODEL);\n Utils.m2512a(byteArrayOutputStream, Build.DEVICE);\n Utils.m2512a(byteArrayOutputStream, C0820dq.m2444r(context));\n Utils.m2512a(byteArrayOutputStream, AppInfo.m2384c(context));\n Utils.m2512a(byteArrayOutputStream, AppInfo.m2385d(context));\n Utils.m2512a(byteArrayOutputStream, AppInfo.m2387f(context));\n byteArrayOutputStream.write(new byte[]{(byte) 0});\n bArr = byteArrayOutputStream.toByteArray();\n try {\n byteArrayOutputStream.close();\n } catch (Throwable th2) {\n th = th2;\n th.printStackTrace();\n return bArr;\n }\n } catch (Throwable th3) {\n th = th3;\n }\n return bArr;\n }", "public abstract long mo9746k();", "private void method_261(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14, int var15, int var16) {\n boolean var29 = field_759;\n int var20 = var13 >> 16 & 255;\n int var21 = var13 >> 8 & 255;\n int var22 = var13 & 255;\n\n try {\n int var23 = var5;\n int var24 = -var9;\n if(var29 || var24 < 0) {\n do {\n int var25 = (var6 >> 16) * var12;\n int var26 = var14 >> 16;\n int var27 = var8;\n int var28;\n if(var26 < this.field_745) {\n var28 = this.field_745 - var26;\n var27 = var8 - var28;\n var26 = this.field_745;\n var5 += var10 * var28;\n }\n\n if(var26 + var27 >= this.field_746) {\n var28 = var26 + var27 - this.field_746;\n var27 -= var28;\n }\n\n var16 = 1 - var16;\n if(var16 != 0) {\n var28 = var26;\n if(var29 || var26 < var26 + var27) {\n do {\n var4 = var2[(var5 >> 16) + var25] & 255;\n if(var4 != 0) {\n label33: {\n var4 = var3[var4];\n int var17 = var4 >> 16 & 255;\n int var18 = var4 >> 8 & 255;\n int var19 = var4 & 255;\n if(var17 == var18 && var18 == var19) {\n var1[var28 + var7] = (var17 * var20 >> 8 << 16) + (var18 * var21 >> 8 << 8) + (var19 * var22 >> 8);\n if(!var29) {\n break label33;\n }\n }\n\n var1[var28 + var7] = var4;\n }\n }\n\n var5 += var10;\n ++var28;\n } while(var28 < var26 + var27);\n }\n }\n\n var6 += var11;\n var5 = var23;\n var7 += this.field_723;\n var14 += var15;\n ++var24;\n } while(var24 < 0);\n\n }\n } catch (Exception var30) {\n System.out.println(\"error in transparent sprite plot routine\"); // authentic System.out.println\n }\n }", "Bundle mo7259g();", "private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }", "private void method_268(int var1, int var2, int var3, int var4, byte[] var5) {\n int var6 = var2 + var5[var1 + 5];\n int var7 = var3 - var5[var1 + 6];\n int var8 = var5[var1 + 3];\n int var9 = var5[var1 + 4];\n int var10 = var5[var1] * 16384 + var5[var1 + 1] * 128 + var5[var1 + 2];\n int var11 = var6 + var7 * this.field_723;\n int var12 = this.field_723 - var8;\n int var13 = 0;\n int var14;\n if(var7 < this.field_743) {\n var14 = this.field_743 - var7;\n var9 -= var14;\n var7 = this.field_743;\n var10 += var14 * var8;\n var11 += var14 * this.field_723;\n }\n\n if(var7 + var9 >= this.field_744) {\n var9 -= var7 + var9 - this.field_744 + 1;\n }\n\n if(var6 < this.field_745) {\n var14 = this.field_745 - var6;\n var8 -= var14;\n var6 = this.field_745;\n var10 += var14;\n var11 += var14;\n var13 += var14;\n var12 += var14;\n }\n\n if(var6 + var8 >= this.field_746) {\n var14 = var6 + var8 - this.field_746 + 1;\n var8 -= var14;\n var13 += var14;\n var12 += var14;\n }\n\n if(var8 > 0 && var9 > 0) {\n this.method_269(this.pixels, var5, var4, var10, var11, var8, var9, var12, var13);\n }\n\n }", "public abstract int getSmallStackSizeWishInKb();", "public int method_2436() {\r\n return 16;\r\n }", "public abstract int getMediumStackSizeWishInKb();", "public final int bytesProduced() {\n/* 227 */ return this.bytesProduced;\n/* */ }", "byte mo30283c();", "private String sha512(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest sha512 = null;\n\t\ttry {\n\t\t\tsha512 = MessageDigest.getInstance(\"SHA-512\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = sha512.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}", "static com.qiyukf.nimlib.p470f.p471a.C5826a m23369a(android.os.Parcel r4) {\n /*\n com.qiyukf.nimlib.f.a.a r0 = new com.qiyukf.nimlib.f.a.a\n r1 = 0\n r0.m50001init(r1)\n int r2 = r4.readInt()\n r0.f18499a = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x001d\n byte[] r2 = r4.createByteArray()\n java.nio.ByteBuffer r2 = java.nio.ByteBuffer.wrap(r2)\n r0.f18501c = r2\n L_0x001d:\n int r2 = r4.readInt()\n r0.f18500b = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x0061\n byte[] r4 = r4.createByteArray()\n int r3 = r0.f18500b\n if (r3 <= 0) goto L_0x005c\n int r1 = r0.f18500b\n if (r1 != r2) goto L_0x0049\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4)\n r0.f18502d = r4\n java.nio.ByteBuffer r4 = r0.f18502d\n r4.position(r2)\n goto L_0x0068\n L_0x0049:\n int r1 = r0.f18500b\n java.nio.ByteBuffer r1 = java.nio.ByteBuffer.allocate(r1)\n r0.f18502d = r1\n java.nio.ByteBuffer r1 = r0.f18502d\n r1.put(r4)\n goto L_0x0068\n L_0x005c:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4, r1, r2)\n goto L_0x0065\n L_0x0061:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.allocate(r1)\n L_0x0065:\n r0.f18502d = r4\n L_0x0068:\n boolean r4 = m23372b(r0)\n if (r4 == 0) goto L_0x006f\n return r0\n L_0x006f:\n int r4 = r0.f18500b\n if (r4 <= 0) goto L_0x007d\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n r4.put(r1, r0)\n goto L_0x00a2\n L_0x007d:\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n java.lang.Object r4 = r4.get(r1)\n com.qiyukf.nimlib.f.a.a r4 = (com.qiyukf.nimlib.p470f.p471a.C5826a) r4\n if (r4 == 0) goto L_0x00a2\n java.nio.ByteBuffer r1 = r4.f18502d\n java.nio.ByteBuffer r0 = r0.f18502d\n r1.put(r0)\n boolean r0 = m23372b(r4)\n if (r0 == 0) goto L_0x00a2\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r0 = f18504a\n int r1 = r4.f18499a\n r0.remove(r1)\n return r4\n L_0x00a2:\n r4 = 0\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.qiyukf.nimlib.p470f.p471a.C5826a.C5829b.m23369a(android.os.Parcel):com.qiyukf.nimlib.f.a.a\");\n }", "C4945r5 mo19057F();", "C7562b<C10403b, C10328a> mo25041a();", "void mo1751a(byte[] bArr);", "public static int size_infos_log_src() {\n return (16 / 8);\n }", "public abstract long mo13681c();", "abstract void mo4384c(byte[] bArr, int i, int i2);", "protected void mo6255a() {\n }", "private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }", "private android.graphics.Bitmap m14713a(com.clevertap.android.sdk.C3072b1 r18, com.clevertap.android.sdk.C3072b1 r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r18\n r2 = r19\n int[] r10 = r0.f10958m\n r11 = 0\n if (r2 != 0) goto L_0x000e\n java.util.Arrays.fill(r10, r11)\n L_0x000e:\n r12 = 3\n r13 = 2\n r14 = 1\n if (r2 == 0) goto L_0x005e\n int r3 = r2.f10976g\n if (r3 <= 0) goto L_0x005e\n if (r3 != r13) goto L_0x0037\n boolean r3 = r1.f10975f\n if (r3 != 0) goto L_0x002c\n com.clevertap.android.sdk.c1 r3 = r0.f10961p\n int r4 = r3.f11004l\n int[] r5 = r1.f10980k\n if (r5 == 0) goto L_0x0033\n int r3 = r3.f11002j\n int r5 = r1.f10977h\n if (r3 != r5) goto L_0x0033\n goto L_0x0032\n L_0x002c:\n int r3 = r0.f10959n\n if (r3 != 0) goto L_0x0032\n r0.f10969x = r14\n L_0x0032:\n r4 = 0\n L_0x0033:\n r0.m14716a(r10, r2, r4)\n goto L_0x005e\n L_0x0037:\n if (r3 != r12) goto L_0x005e\n android.graphics.Bitmap r3 = r0.f10963r\n if (r3 != 0) goto L_0x0041\n r0.m14716a(r10, r2, r11)\n goto L_0x005e\n L_0x0041:\n int r4 = r2.f10973d\n int r5 = r0.f10966u\n int r9 = r4 / r5\n int r4 = r2.f10971b\n int r7 = r4 / r5\n int r4 = r2.f10972c\n int r8 = r4 / r5\n int r2 = r2.f10970a\n int r6 = r2 / r5\n int r5 = r0.f10968w\n int r2 = r7 * r5\n int r4 = r2 + r6\n r2 = r3\n r3 = r10\n r2.getPixels(r3, r4, r5, r6, r7, r8, r9)\n L_0x005e:\n r17.m14715a(r18)\n int r2 = r1.f10973d\n int r3 = r0.f10966u\n int r2 = r2 / r3\n int r4 = r1.f10971b\n int r4 = r4 / r3\n int r5 = r1.f10972c\n int r5 = r5 / r3\n int r6 = r1.f10970a\n int r6 = r6 / r3\n r3 = 8\n int r7 = r0.f10959n\n if (r7 != 0) goto L_0x0077\n r7 = 1\n goto L_0x0078\n L_0x0077:\n r7 = 0\n L_0x0078:\n r3 = 0\n r8 = 1\n r9 = 8\n L_0x007c:\n if (r11 >= r2) goto L_0x0100\n boolean r15 = r1.f10974e\n if (r15 == 0) goto L_0x0098\n r15 = 4\n if (r3 < r2) goto L_0x0095\n int r8 = r8 + 1\n if (r8 == r13) goto L_0x0094\n if (r8 == r12) goto L_0x0091\n if (r8 == r15) goto L_0x008e\n goto L_0x0095\n L_0x008e:\n r3 = 1\n r9 = 2\n goto L_0x0095\n L_0x0091:\n r3 = 2\n r9 = 4\n goto L_0x0095\n L_0x0094:\n r3 = 4\n L_0x0095:\n int r15 = r3 + r9\n goto L_0x009a\n L_0x0098:\n r15 = r3\n r3 = r11\n L_0x009a:\n int r3 = r3 + r4\n int r12 = r0.f10967v\n if (r3 >= r12) goto L_0x00f0\n int r12 = r0.f10968w\n int r3 = r3 * r12\n int r16 = r3 + r6\n int r13 = r16 + r5\n int r14 = r3 + r12\n if (r14 >= r13) goto L_0x00ad\n int r13 = r3 + r12\n L_0x00ad:\n int r3 = r0.f10966u\n int r12 = r11 * r3\n int r14 = r1.f10972c\n int r12 = r12 * r14\n int r14 = r13 - r16\n int r14 = r14 * r3\n int r14 = r14 + r12\n r3 = r16\n L_0x00bc:\n if (r3 >= r13) goto L_0x00f0\n r19 = r2\n int r2 = r0.f10966u\n r16 = r4\n r4 = 1\n if (r2 != r4) goto L_0x00d2\n byte[] r2 = r0.f10957l\n byte r2 = r2[r12]\n r2 = r2 & 255(0xff, float:3.57E-43)\n int[] r4 = r0.f10946a\n r2 = r4[r2]\n goto L_0x00d8\n L_0x00d2:\n int r2 = r1.f10972c\n int r2 = r0.m14712a(r12, r14, r2)\n L_0x00d8:\n if (r2 == 0) goto L_0x00dd\n r10[r3] = r2\n goto L_0x00e6\n L_0x00dd:\n boolean r2 = r0.f10969x\n if (r2 != 0) goto L_0x00e6\n if (r7 == 0) goto L_0x00e6\n r2 = 1\n r0.f10969x = r2\n L_0x00e6:\n int r2 = r0.f10966u\n int r12 = r12 + r2\n int r3 = r3 + 1\n r2 = r19\n r4 = r16\n goto L_0x00bc\n L_0x00f0:\n r19 = r2\n r16 = r4\n int r11 = r11 + 1\n r2 = r19\n r3 = r15\n r4 = r16\n r12 = 3\n r13 = 2\n r14 = 1\n goto L_0x007c\n L_0x0100:\n boolean r2 = r0.f10964s\n if (r2 == 0) goto L_0x0123\n int r1 = r1.f10976g\n if (r1 == 0) goto L_0x010b\n r2 = 1\n if (r1 != r2) goto L_0x0123\n L_0x010b:\n android.graphics.Bitmap r1 = r0.f10963r\n if (r1 != 0) goto L_0x0115\n android.graphics.Bitmap r1 = r17.m14718q()\n r0.f10963r = r1\n L_0x0115:\n android.graphics.Bitmap r1 = r0.f10963r\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n L_0x0123:\n android.graphics.Bitmap r9 = r17.m14718q()\n r3 = 0\n int r7 = r0.f10968w\n r5 = 0\n r6 = 0\n int r8 = r0.f10967v\n r1 = r9\n r2 = r10\n r4 = r7\n r1.setPixels(r2, r3, r4, r5, r6, r7, r8)\n return r9\n */\n 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\");\n }", "private Bitmap m14718q() {\n Bitmap a = this.f10962q.mo12204a(this.f10968w, this.f10967v, this.f10969x ? Config.ARGB_8888 : Config.RGB_565);\n m14714a(a);\n return a;\n }", "int mo1684a(byte[] bArr, int i, int i2);", "private void m76764b() {\n this.f61647d = this.f61646c.getStreamMaxVolume(3);\n this.f61648e = this.f61647d / 15;\n if (this.f61648e == 0) {\n this.f61648e = 1;\n }\n m76765c();\n }", "private static final byte[] xfj_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, 76,\n\t\t\t\t76, 76, 11, 11, 11, 7, 7, 7, -47, -47, -47, -1, -1, -1, -7, -7,\n\t\t\t\t-7, -128, -128, -128, 113, 113, 113, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, 33, -2, 14, 77, 97, 100, 101, 32, 119, 105, 116, 104,\n\t\t\t\t32, 71, 73, 77, 80, 0, 33, -7, 4, 1, 10, 0, 8, 0, 44, 0, 0, 0,\n\t\t\t\t0, 16, 0, 16, 0, 0, 4, 93, 16, 73, 9, -24, -84, 51, 99, 84,\n\t\t\t\t119, -106, 1, 16, -124, -31, 7, 6, 2, -112, 10, -23, 24, 76,\n\t\t\t\t-63, 48, -90, -86, -8, 34, 119, 64, 12, -78, 27, -53, 56, 24,\n\t\t\t\t97, -57, -29, 13, 95, 55, 28, -95, 48, 100, 46, -111, -97, 0,\n\t\t\t\t115, 122, 76, 26, -82, -40, -31, 18, -104, -63, 94, -117, 50,\n\t\t\t\t-62, -31, 32, 41, 20, -68, -66, -27, -110, -116, -16, 26, -76,\n\t\t\t\t-50, -79, -28, -118, 56, 27, -118, 99, 118, -37, -48, -11, 125,\n\t\t\t\t-24, 38, -127, 17, 0, 59 };\n\t\treturn data;\n\t}", "public int getChunkWidth() {\n return 256;\n }", "byte[] mo12209b(int i);", "private void c()\r\n/* 81: */ {\r\n/* 82: */ BufferedImage localBufferedImage;\r\n/* 83: */ try\r\n/* 84: */ {\r\n/* 85:102 */ localBufferedImage = cuj.a(bsu.z().O().a(this.g).b());\r\n/* 86: */ }\r\n/* 87: */ catch (IOException localIOException)\r\n/* 88: */ {\r\n/* 89:104 */ throw new RuntimeException(localIOException);\r\n/* 90: */ }\r\n/* 91:107 */ int i1 = localBufferedImage.getWidth();\r\n/* 92:108 */ int i2 = localBufferedImage.getHeight();\r\n/* 93:109 */ int[] arrayOfInt = new int[i1 * i2];\r\n/* 94:110 */ localBufferedImage.getRGB(0, 0, i1, i2, arrayOfInt, 0, i1);\r\n/* 95: */ \r\n/* 96:112 */ int i3 = i2 / 16;\r\n/* 97:113 */ int i4 = i1 / 16;\r\n/* 98: */ \r\n/* 99:115 */ int i5 = 1;\r\n/* 100: */ \r\n/* 101:117 */ float f1 = 8.0F / i4;\r\n/* 102:119 */ for (int i6 = 0; i6 < 256; i6++)\r\n/* 103: */ {\r\n/* 104:120 */ int i7 = i6 % 16;\r\n/* 105:121 */ int i8 = i6 / 16;\r\n/* 106:123 */ if (i6 == 32) {\r\n/* 107:124 */ this.d[i6] = (3 + i5);\r\n/* 108: */ }\r\n\t\t\t\t\tint i9;\r\n/* 109:127 */ for (i9 = i4 - 1; i9 >= 0; i9--)\r\n/* 110: */ {\r\n/* 111:129 */ int i10 = i7 * i4 + i9;\r\n/* 112:130 */ int i11 = 1;\r\n/* 113:131 */ for (int i12 = 0; (i12 < i3) && (i11 != 0); i12++)\r\n/* 114: */ {\r\n/* 115:132 */ int i13 = (i8 * i4 + i12) * i1;\r\n/* 116:134 */ if ((arrayOfInt[(i10 + i13)] >> 24 & 0xFF) != 0) {\r\n/* 117:135 */ i11 = 0;\r\n/* 118: */ }\r\n/* 119: */ }\r\n/* 120:138 */ if (i11 == 0) {\r\n/* 121: */ break;\r\n/* 122: */ }\r\n/* 123: */ }\r\n/* 124:142 */ i9++;\r\n/* 125: */ \r\n/* 126: */ \r\n/* 127:145 */ this.d[i6] = ((int)(0.5D + i9 * f1) + i5);\r\n/* 128: */ }\r\n/* 129: */ }", "void mo25616a(Context context);", "private byte[] m688e(int i) {\n if (i == 0) {\n return new byte[0];\n }\n byte[] bArr = new byte[i];\n this.f552g.mo503d(bArr, 0, i);\n return bArr;\n }", "@Override\r\n protected int sizeOf(String key, Bitmap b) {\n return b.getHeight() * b.getWidth() * 4;\r\n }", "public static int size_moteId() {\n return (16 / 8);\n }", "public <T> T mo511a(Class<T> r11, Class r12, JsonValue r13) {\n /*\n r10 = this;\n r5 = 0;\n r3 = 0;\n if (r13 != 0) goto L_0x0006;\n L_0x0004:\n r1 = r3;\n L_0x0005:\n return r1;\n L_0x0006:\n r0 = r13.m2276k();\n if (r0 == 0) goto L_0x0121;\n L_0x000c:\n r0 = r10.f2885b;\n if (r0 != 0) goto L_0x002e;\n L_0x0010:\n r1 = r3;\n L_0x0011:\n if (r1 == 0) goto L_0x03ff;\n L_0x0013:\n r0 = r10.f2893j;\n r0 = r0.m2467a(r1);\n r0 = (java.lang.Class) r0;\n if (r0 != 0) goto L_0x03fc;\n L_0x001d:\n r1 = com.badlogic.gdx.utils.reflect.C0713a.m2493a(r1);\t Catch:{ ReflectionException -> 0x0036 }\n L_0x0021:\n if (r1 != 0) goto L_0x003f;\n L_0x0023:\n r0 = r10.f2891h;\n if (r0 == 0) goto L_0x003d;\n L_0x0027:\n r0 = r10.f2891h;\n r1 = r0.mo512a(r10, r13);\n goto L_0x0005;\n L_0x002e:\n r0 = r10.f2885b;\n r0 = r13.m2261a(r0, r3);\n r1 = r0;\n goto L_0x0011;\n L_0x0036:\n r0 = move-exception;\n r1 = new com.badlogic.gdx.utils.SerializationException;\n r1.<init>(r0);\n throw r1;\n L_0x003d:\n r1 = r13;\n goto L_0x0005;\n L_0x003f:\n r0 = r10.f2885b;\n if (r0 == 0) goto L_0x007c;\n L_0x0043:\n r0 = java.util.Collection.class;\n r0 = r0.isAssignableFrom(r1);\n if (r0 == 0) goto L_0x007c;\n L_0x004b:\n r0 = \"items\";\n r2 = r13.m2259a(r0);\n if (r2 != 0) goto L_0x0123;\n L_0x0053:\n r0 = new com.badlogic.gdx.utils.SerializationException;\n r3 = new java.lang.StringBuilder;\n r4 = \"Unable to convert object to collection: \";\n r3.<init>(r4);\n r2 = r3.append(r2);\n r3 = \" (\";\n r2 = r2.append(r3);\n r1 = r1.getName();\n r1 = r2.append(r1);\n r2 = \")\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n throw r0;\n L_0x007c:\n r0 = r10.f2895l;\n r0 = r0.m2467a(r1);\n r0 = (com.badlogic.gdx.utils.C0636l.C0638d) r0;\n if (r0 == 0) goto L_0x008c;\n L_0x0086:\n r1 = r0.mo512a(r10, r13);\n goto L_0x0005;\n L_0x008c:\n r0 = java.lang.String.class;\n if (r1 == r0) goto L_0x00b8;\n L_0x0090:\n r0 = java.lang.Integer.class;\n if (r1 == r0) goto L_0x00b8;\n L_0x0094:\n r0 = java.lang.Boolean.class;\n if (r1 == r0) goto L_0x00b8;\n L_0x0098:\n r0 = java.lang.Float.class;\n if (r1 == r0) goto L_0x00b8;\n L_0x009c:\n r0 = java.lang.Long.class;\n if (r1 == r0) goto L_0x00b8;\n L_0x00a0:\n r0 = java.lang.Double.class;\n if (r1 == r0) goto L_0x00b8;\n L_0x00a4:\n r0 = java.lang.Short.class;\n if (r1 == r0) goto L_0x00b8;\n L_0x00a8:\n r0 = java.lang.Byte.class;\n if (r1 == r0) goto L_0x00b8;\n L_0x00ac:\n r0 = java.lang.Character.class;\n if (r1 == r0) goto L_0x00b8;\n L_0x00b0:\n r0 = java.lang.Enum.class;\n r0 = r0.isAssignableFrom(r1);\n if (r0 == 0) goto L_0x00c0;\n L_0x00b8:\n r0 = \"value\";\n r1 = r10.m2176a(r0, r1, r13);\n goto L_0x0005;\n L_0x00c0:\n r1 = com.badlogic.gdx.utils.C0636l.m2173b(r1);\n r0 = r1 instanceof com.badlogic.gdx.utils.C0636l.C0411c;\n if (r0 == 0) goto L_0x00d0;\n L_0x00c8:\n r0 = r1;\n r0 = (com.badlogic.gdx.utils.C0636l.C0411c) r0;\n r0.mo350a(r10, r13);\n goto L_0x0005;\n L_0x00d0:\n r0 = r1 instanceof com.badlogic.gdx.utils.C0710q;\n if (r0 == 0) goto L_0x00e6;\n L_0x00d4:\n r1 = (com.badlogic.gdx.utils.C0710q) r1;\n r0 = r13.f2957f;\n L_0x00d8:\n if (r0 == 0) goto L_0x0005;\n L_0x00da:\n r2 = r0.f2956e;\n r4 = r10.mo511a(r12, r3, r0);\n r1.mo542a(r2, r4);\n r0 = r0.f2958g;\n goto L_0x00d8;\n L_0x00e6:\n r0 = r1 instanceof com.badlogic.gdx.utils.C0685b;\n if (r0 == 0) goto L_0x00fc;\n L_0x00ea:\n r1 = (com.badlogic.gdx.utils.C0685b) r1;\n r0 = r13.f2957f;\n L_0x00ee:\n if (r0 == 0) goto L_0x0005;\n L_0x00f0:\n r2 = r0.f2956e;\n r4 = r10.mo511a(r12, r3, r0);\n r1.m2384a(r2, r4);\n r0 = r0.f2958g;\n goto L_0x00ee;\n L_0x00fc:\n r0 = r1 instanceof java.util.Map;\n if (r0 == 0) goto L_0x011c;\n L_0x0100:\n r1 = (java.util.Map) r1;\n r0 = r13.f2957f;\n L_0x0104:\n if (r0 == 0) goto L_0x0005;\n L_0x0106:\n r2 = r0.f2956e;\n r4 = r10.f2885b;\n r2 = r2.equals(r4);\n if (r2 != 0) goto L_0x0119;\n L_0x0110:\n r2 = r0.f2956e;\n r4 = r10.mo511a(r12, r3, r0);\n r1.put(r2, r4);\n L_0x0119:\n r0 = r0.f2958g;\n goto L_0x0104;\n L_0x011c:\n r10.m2172a(r1, r13);\n goto L_0x0005;\n L_0x0121:\n r2 = r13;\n r1 = r11;\n L_0x0123:\n if (r1 == 0) goto L_0x0149;\n L_0x0125:\n r0 = r10.f2895l;\n r0 = r0.m2467a(r1);\n r0 = (com.badlogic.gdx.utils.C0636l.C0638d) r0;\n if (r0 == 0) goto L_0x0135;\n L_0x012f:\n r1 = r0.mo512a(r10, r2);\n goto L_0x0005;\n L_0x0135:\n r0 = com.badlogic.gdx.utils.C0636l.C0411c.class;\n r0 = r0.isAssignableFrom(r1);\n if (r0 == 0) goto L_0x0149;\n L_0x013d:\n r1 = com.badlogic.gdx.utils.C0636l.m2173b(r1);\n r0 = r1;\n r0 = (com.badlogic.gdx.utils.C0636l.C0411c) r0;\n r0.mo350a(r10, r2);\n goto L_0x0005;\n L_0x0149:\n r0 = r2.m2275j();\n if (r0 == 0) goto L_0x0221;\n L_0x014f:\n if (r1 == 0) goto L_0x0155;\n L_0x0151:\n r0 = java.lang.Object.class;\n if (r1 != r0) goto L_0x03f9;\n L_0x0155:\n r0 = com.badlogic.gdx.utils.C0676a.class;\n L_0x0157:\n r1 = com.badlogic.gdx.utils.C0676a.class;\n r1 = r1.isAssignableFrom(r0);\n if (r1 == 0) goto L_0x0180;\n L_0x015f:\n r1 = com.badlogic.gdx.utils.C0676a.class;\n if (r0 != r1) goto L_0x0176;\n L_0x0163:\n r0 = new com.badlogic.gdx.utils.a;\n r0.<init>();\n L_0x0168:\n r1 = r2.f2957f;\n L_0x016a:\n if (r1 == 0) goto L_0x017d;\n L_0x016c:\n r2 = r10.mo511a(r12, r3, r1);\n r0.m2296a(r2);\n r1 = r1.f2958g;\n goto L_0x016a;\n L_0x0176:\n r0 = com.badlogic.gdx.utils.C0636l.m2173b(r0);\n r0 = (com.badlogic.gdx.utils.C0676a) r0;\n goto L_0x0168;\n L_0x017d:\n r1 = r0;\n goto L_0x0005;\n L_0x0180:\n r1 = com.badlogic.gdx.utils.C0724v.class;\n r1 = r1.isAssignableFrom(r0);\n if (r1 == 0) goto L_0x01a9;\n L_0x0188:\n r1 = com.badlogic.gdx.utils.C0724v.class;\n if (r0 != r1) goto L_0x019f;\n L_0x018c:\n r0 = new com.badlogic.gdx.utils.v;\n r0.<init>();\n L_0x0191:\n r1 = r2.f2957f;\n L_0x0193:\n if (r1 == 0) goto L_0x01a6;\n L_0x0195:\n r2 = r10.mo511a(r12, r3, r1);\n r0.m2516a(r2);\n r1 = r1.f2958g;\n goto L_0x0193;\n L_0x019f:\n r0 = com.badlogic.gdx.utils.C0636l.m2173b(r0);\n r0 = (com.badlogic.gdx.utils.C0724v) r0;\n goto L_0x0191;\n L_0x01a6:\n r1 = r0;\n goto L_0x0005;\n L_0x01a9:\n r1 = java.util.Collection.class;\n r1 = r1.isAssignableFrom(r0);\n if (r1 == 0) goto L_0x01d4;\n L_0x01b1:\n r1 = r0.isInterface();\n if (r1 == 0) goto L_0x01ca;\n L_0x01b7:\n r0 = new java.util.ArrayList;\n r0.<init>();\n L_0x01bc:\n r1 = r2.f2957f;\n L_0x01be:\n if (r1 == 0) goto L_0x01d1;\n L_0x01c0:\n r2 = r10.mo511a(r12, r3, r1);\n r0.add(r2);\n r1 = r1.f2958g;\n goto L_0x01be;\n L_0x01ca:\n r0 = com.badlogic.gdx.utils.C0636l.m2173b(r0);\n r0 = (java.util.Collection) r0;\n goto L_0x01bc;\n L_0x01d1:\n r1 = r0;\n goto L_0x0005;\n L_0x01d4:\n r1 = r0.isArray();\n if (r1 == 0) goto L_0x01f8;\n L_0x01da:\n r0 = r0.getComponentType();\n if (r12 != 0) goto L_0x01e1;\n L_0x01e0:\n r12 = r0;\n L_0x01e1:\n r1 = r2.f2961j;\n r1 = java.lang.reflect.Array.newInstance(r0, r1);\n r0 = r2.f2957f;\n L_0x01e9:\n if (r0 == 0) goto L_0x0005;\n L_0x01eb:\n r2 = r5 + 1;\n r4 = r10.mo511a(r12, r3, r0);\n java.lang.reflect.Array.set(r1, r5, r4);\n r0 = r0.f2958g;\n r5 = r2;\n goto L_0x01e9;\n L_0x01f8:\n r1 = new com.badlogic.gdx.utils.SerializationException;\n r3 = new java.lang.StringBuilder;\n r4 = \"Unable to convert value to required type: \";\n r3.<init>(r4);\n r2 = r3.append(r2);\n r3 = \" (\";\n r2 = r2.append(r3);\n r0 = r0.getName();\n r0 = r2.append(r0);\n r2 = \")\";\n r0 = r0.append(r2);\n r0 = r0.toString();\n r1.<init>(r0);\n throw r1;\n L_0x0221:\n r0 = r2.m2278m();\n if (r0 == 0) goto L_0x03f6;\n L_0x0227:\n if (r1 == 0) goto L_0x0231;\n L_0x0229:\n r0 = java.lang.Float.TYPE;\t Catch:{ NumberFormatException -> 0x02b9 }\n if (r1 == r0) goto L_0x0231;\n L_0x022d:\n r0 = java.lang.Float.class;\n if (r1 != r0) goto L_0x023b;\n L_0x0231:\n r0 = r2.m2262b();\t Catch:{ NumberFormatException -> 0x02b9 }\n r1 = java.lang.Float.valueOf(r0);\t Catch:{ NumberFormatException -> 0x02b9 }\n goto L_0x0005;\n L_0x023b:\n r0 = java.lang.Integer.TYPE;\t Catch:{ NumberFormatException -> 0x02b9 }\n if (r1 == r0) goto L_0x0243;\n L_0x023f:\n r0 = java.lang.Integer.class;\n if (r1 != r0) goto L_0x024d;\n L_0x0243:\n r0 = r2.m2269e();\t Catch:{ NumberFormatException -> 0x02b9 }\n r1 = java.lang.Integer.valueOf(r0);\t Catch:{ NumberFormatException -> 0x02b9 }\n goto L_0x0005;\n L_0x024d:\n r0 = java.lang.Long.TYPE;\t Catch:{ NumberFormatException -> 0x02b9 }\n if (r1 == r0) goto L_0x0255;\n L_0x0251:\n r0 = java.lang.Long.class;\n if (r1 != r0) goto L_0x025f;\n L_0x0255:\n r6 = r2.m2267d();\t Catch:{ NumberFormatException -> 0x02b9 }\n r1 = java.lang.Long.valueOf(r6);\t Catch:{ NumberFormatException -> 0x02b9 }\n goto L_0x0005;\n L_0x025f:\n r0 = java.lang.Double.TYPE;\t Catch:{ NumberFormatException -> 0x02b9 }\n if (r1 == r0) goto L_0x0267;\n L_0x0263:\n r0 = java.lang.Double.class;\n if (r1 != r0) goto L_0x0271;\n L_0x0267:\n r6 = r2.m2265c();\t Catch:{ NumberFormatException -> 0x02b9 }\n r1 = java.lang.Double.valueOf(r6);\t Catch:{ NumberFormatException -> 0x02b9 }\n goto L_0x0005;\n L_0x0271:\n r0 = java.lang.String.class;\n if (r1 != r0) goto L_0x027b;\n L_0x0275:\n r1 = r2.m2260a();\t Catch:{ NumberFormatException -> 0x02b9 }\n goto L_0x0005;\n L_0x027b:\n r0 = java.lang.Short.TYPE;\t Catch:{ NumberFormatException -> 0x02b9 }\n if (r1 == r0) goto L_0x0283;\n L_0x027f:\n r0 = java.lang.Short.class;\n if (r1 != r0) goto L_0x028d;\n L_0x0283:\n r0 = r2.m2272g();\t Catch:{ NumberFormatException -> 0x02b9 }\n r1 = java.lang.Short.valueOf(r0);\t Catch:{ NumberFormatException -> 0x02b9 }\n goto L_0x0005;\n L_0x028d:\n r0 = java.lang.Byte.TYPE;\t Catch:{ NumberFormatException -> 0x02b9 }\n if (r1 == r0) goto L_0x0295;\n L_0x0291:\n r0 = java.lang.Byte.class;\n if (r1 != r0) goto L_0x02ba;\n L_0x0295:\n r0 = com.badlogic.gdx.utils.JsonValue.C06641.f2937a;\t Catch:{ NumberFormatException -> 0x02b9 }\n r4 = r2.f2952a;\t Catch:{ NumberFormatException -> 0x02b9 }\n r4 = r4.ordinal();\t Catch:{ NumberFormatException -> 0x02b9 }\n r0 = r0[r4];\t Catch:{ NumberFormatException -> 0x02b9 }\n switch(r0) {\n case 1: goto L_0x02dd;\n case 2: goto L_0x02e9;\n case 3: goto L_0x02ee;\n case 4: goto L_0x02f3;\n default: goto L_0x02a2;\n };\t Catch:{ NumberFormatException -> 0x02b9 }\n L_0x02a2:\n r0 = new java.lang.IllegalStateException;\t Catch:{ NumberFormatException -> 0x02b9 }\n r4 = new java.lang.StringBuilder;\t Catch:{ NumberFormatException -> 0x02b9 }\n r6 = \"Value cannot be converted to byte: \";\n r4.<init>(r6);\t Catch:{ NumberFormatException -> 0x02b9 }\n r6 = r2.f2952a;\t Catch:{ NumberFormatException -> 0x02b9 }\n r4 = r4.append(r6);\t Catch:{ NumberFormatException -> 0x02b9 }\n r4 = r4.toString();\t Catch:{ NumberFormatException -> 0x02b9 }\n r0.<init>(r4);\t Catch:{ NumberFormatException -> 0x02b9 }\n throw r0;\t Catch:{ NumberFormatException -> 0x02b9 }\n L_0x02b9:\n r0 = move-exception;\n L_0x02ba:\n r0 = new com.badlogic.gdx.utils.JsonValue;\n r2 = r2.m2260a();\n r0.<init>(r2);\n L_0x02c3:\n r2 = r0.m2279n();\n if (r2 == 0) goto L_0x03f3;\n L_0x02c9:\n if (r1 == 0) goto L_0x02d3;\n L_0x02cb:\n r2 = java.lang.Boolean.TYPE;\t Catch:{ NumberFormatException -> 0x02ff }\n if (r1 == r2) goto L_0x02d3;\n L_0x02cf:\n r2 = java.lang.Boolean.class;\n if (r1 != r2) goto L_0x0300;\n L_0x02d3:\n r2 = r0.m2271f();\t Catch:{ NumberFormatException -> 0x02ff }\n r1 = java.lang.Boolean.valueOf(r2);\t Catch:{ NumberFormatException -> 0x02ff }\n goto L_0x0005;\n L_0x02dd:\n r0 = r2.f2953b;\t Catch:{ NumberFormatException -> 0x02b9 }\n r0 = java.lang.Byte.parseByte(r0);\t Catch:{ NumberFormatException -> 0x02b9 }\n L_0x02e3:\n r1 = java.lang.Byte.valueOf(r0);\t Catch:{ NumberFormatException -> 0x02b9 }\n goto L_0x0005;\n L_0x02e9:\n r6 = r2.f2954c;\t Catch:{ NumberFormatException -> 0x02b9 }\n r0 = (int) r6;\t Catch:{ NumberFormatException -> 0x02b9 }\n r0 = (byte) r0;\t Catch:{ NumberFormatException -> 0x02b9 }\n goto L_0x02e3;\n L_0x02ee:\n r6 = r2.f2955d;\t Catch:{ NumberFormatException -> 0x02b9 }\n r0 = (int) r6;\t Catch:{ NumberFormatException -> 0x02b9 }\n r0 = (byte) r0;\t Catch:{ NumberFormatException -> 0x02b9 }\n goto L_0x02e3;\n L_0x02f3:\n r6 = r2.f2955d;\t Catch:{ NumberFormatException -> 0x02b9 }\n r8 = 0;\n r0 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1));\n if (r0 == 0) goto L_0x02fd;\n L_0x02fb:\n r0 = 1;\n goto L_0x02e3;\n L_0x02fd:\n r0 = r5;\n goto L_0x02e3;\n L_0x02ff:\n r2 = move-exception;\n L_0x0300:\n r2 = new com.badlogic.gdx.utils.JsonValue;\n r0 = r0.m2260a();\n r2.<init>(r0);\n L_0x0309:\n r0 = r2.m2277l();\n if (r0 == 0) goto L_0x03f0;\n L_0x030f:\n r4 = r2.m2260a();\n if (r1 == 0) goto L_0x0319;\n L_0x0315:\n r0 = java.lang.String.class;\n if (r1 != r0) goto L_0x031c;\n L_0x0319:\n r1 = r4;\n goto L_0x0005;\n L_0x031c:\n r0 = java.lang.Integer.TYPE;\t Catch:{ NumberFormatException -> 0x0370 }\n if (r1 == r0) goto L_0x0324;\n L_0x0320:\n r0 = java.lang.Integer.class;\n if (r1 != r0) goto L_0x032a;\n L_0x0324:\n r1 = java.lang.Integer.valueOf(r4);\t Catch:{ NumberFormatException -> 0x0370 }\n goto L_0x0005;\n L_0x032a:\n r0 = java.lang.Float.TYPE;\t Catch:{ NumberFormatException -> 0x0370 }\n if (r1 == r0) goto L_0x0332;\n L_0x032e:\n r0 = java.lang.Float.class;\n if (r1 != r0) goto L_0x0338;\n L_0x0332:\n r1 = java.lang.Float.valueOf(r4);\t Catch:{ NumberFormatException -> 0x0370 }\n goto L_0x0005;\n L_0x0338:\n r0 = java.lang.Long.TYPE;\t Catch:{ NumberFormatException -> 0x0370 }\n if (r1 == r0) goto L_0x0340;\n L_0x033c:\n r0 = java.lang.Long.class;\n if (r1 != r0) goto L_0x0346;\n L_0x0340:\n r1 = java.lang.Long.valueOf(r4);\t Catch:{ NumberFormatException -> 0x0370 }\n goto L_0x0005;\n L_0x0346:\n r0 = java.lang.Double.TYPE;\t Catch:{ NumberFormatException -> 0x0370 }\n if (r1 == r0) goto L_0x034e;\n L_0x034a:\n r0 = java.lang.Double.class;\n if (r1 != r0) goto L_0x0354;\n L_0x034e:\n r1 = java.lang.Double.valueOf(r4);\t Catch:{ NumberFormatException -> 0x0370 }\n goto L_0x0005;\n L_0x0354:\n r0 = java.lang.Short.TYPE;\t Catch:{ NumberFormatException -> 0x0370 }\n if (r1 == r0) goto L_0x035c;\n L_0x0358:\n r0 = java.lang.Short.class;\n if (r1 != r0) goto L_0x0362;\n L_0x035c:\n r1 = java.lang.Short.valueOf(r4);\t Catch:{ NumberFormatException -> 0x0370 }\n goto L_0x0005;\n L_0x0362:\n r0 = java.lang.Byte.TYPE;\t Catch:{ NumberFormatException -> 0x0370 }\n if (r1 == r0) goto L_0x036a;\n L_0x0366:\n r0 = java.lang.Byte.class;\n if (r1 != r0) goto L_0x0371;\n L_0x036a:\n r1 = java.lang.Byte.valueOf(r4);\t Catch:{ NumberFormatException -> 0x0370 }\n goto L_0x0005;\n L_0x0370:\n r0 = move-exception;\n L_0x0371:\n r0 = java.lang.Boolean.TYPE;\n if (r1 == r0) goto L_0x0379;\n L_0x0375:\n r0 = java.lang.Boolean.class;\n if (r1 != r0) goto L_0x037f;\n L_0x0379:\n r1 = java.lang.Boolean.valueOf(r4);\n goto L_0x0005;\n L_0x037f:\n r0 = java.lang.Character.TYPE;\n if (r1 == r0) goto L_0x0387;\n L_0x0383:\n r0 = java.lang.Character.class;\n if (r1 != r0) goto L_0x0391;\n L_0x0387:\n r0 = r4.charAt(r5);\n r1 = java.lang.Character.valueOf(r0);\n goto L_0x0005;\n L_0x0391:\n r0 = java.lang.Enum.class;\n r0 = r0.isAssignableFrom(r1);\n if (r0 == 0) goto L_0x03c0;\n L_0x0399:\n r0 = r1.getEnumConstants();\n r0 = (java.lang.Enum[]) r0;\n r0 = (java.lang.Enum[]) r0;\n r6 = r0.length;\n L_0x03a2:\n if (r5 >= r6) goto L_0x03c0;\n L_0x03a4:\n r13 = r0[r5];\n r3 = r10.f2890g;\n if (r3 == 0) goto L_0x03b7;\n L_0x03aa:\n r3 = r13.name();\n L_0x03ae:\n r3 = r4.equals(r3);\n if (r3 == 0) goto L_0x03bc;\n L_0x03b4:\n r1 = r13;\n goto L_0x0005;\n L_0x03b7:\n r3 = r13.toString();\n goto L_0x03ae;\n L_0x03bc:\n r3 = r5 + 1;\n r5 = r3;\n goto L_0x03a2;\n L_0x03c0:\n r0 = java.lang.CharSequence.class;\n if (r1 != r0) goto L_0x03c7;\n L_0x03c4:\n r1 = r4;\n goto L_0x0005;\n L_0x03c7:\n r0 = new com.badlogic.gdx.utils.SerializationException;\n r3 = new java.lang.StringBuilder;\n r4 = \"Unable to convert value to required type: \";\n r3.<init>(r4);\n r2 = r3.append(r2);\n r3 = \" (\";\n r2 = r2.append(r3);\n r1 = r1.getName();\n r1 = r2.append(r1);\n r2 = \")\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n throw r0;\n L_0x03f0:\n r1 = r3;\n goto L_0x0005;\n L_0x03f3:\n r2 = r0;\n goto L_0x0309;\n L_0x03f6:\n r0 = r2;\n goto L_0x02c3;\n L_0x03f9:\n r0 = r1;\n goto L_0x0157;\n L_0x03fc:\n r1 = r0;\n goto L_0x0021;\n L_0x03ff:\n r1 = r11;\n goto L_0x0021;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.badlogic.gdx.utils.l.a(java.lang.Class, java.lang.Class, com.badlogic.gdx.utils.JsonValue):T\");\n }", "private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }", "C3676k mo12649b();", "private void m43017g() {\n try {\n this.f40245p = this.f40244o + Long.valueOf(this.f40240k.getHeaderField(\"Content-Length\")).longValue();\n } catch (Exception e) {\n this.f40245p = -1;\n }\n }", "int mo44965b();", "private void m50367F() {\n }", "int getPicSize(int pos) throws IOException\r\n {\n\r\n int out = pos;\r\n int jump = 0;\r\n byte ptrPar; // pointer parameter\r\n\r\n byte b = readByteFromRom(ch, out);\r\n\r\n while (b != (byte) 0xFF)\r\n {\r\n switch (b & 0b111_00000)\r\n {\r\n case (0b000_00000): // command with n parameters\r\n byte bMask = (byte) 0b0001_1111;\r\n jump = (byteToValue((byte) (b & bMask)) + 1) + 1;\r\n break;\r\n case (0b001_00000): // command with one parameter\r\n jump = 1 + 1;\r\n break;\r\n case (0b010_00000): // command with two parameters\r\n jump = 2 + 1;\r\n break;\r\n case (0b011_00000): // command with no parameters\r\n jump = 0 + 1;\r\n break;\r\n case (0b100_00000): // commands with pointer parameters\r\n case (0b101_00000):\r\n case (0b110_00000):\r\n ptrPar = readByteFromRom(ch, out + 1);\r\n if ((ptrPar & 0b1000_0000) == 0b1000_0000) // 7-bit negative offset\r\n {\r\n jump = 1 + 1;\r\n }\r\n else // 15-bit positive offset\r\n {\r\n jump = 2 + 1;\r\n }\r\n break;\r\n case (0b111_00000): // lz long\r\n byte[] c = readFromRom(ch, out, 2);\r\n switch (c[0] & 0b000_111_00)\r\n {\r\n case (0b000_000_00): // command with n parameters\r\n byte[] b2Mask = new byte[2];\r\n b2Mask[0] = (byte) 0b0000_0011;\r\n b2Mask[1] = (byte) 0b1111_1111;\r\n jump = (byteToValue((byte) (c[0] & b2Mask[0])) * 0x100 + byteToValue((byte) (c[1] & b2Mask[1])) + 1) + 2;\r\n break;\r\n case (0b000_001_00): // command with one parameter\r\n jump = 1 + 2;\r\n break;\r\n case (0b000_010_00): // command with two parameters\r\n jump = 2 + 2;\r\n break;\r\n case (0b000_011_00): // command with no parameters\r\n jump = 0 + 2;\r\n break;\r\n case (0b000_100_00): // commands with pointer parameters\r\n case (0b000_101_00):\r\n case (0b000_110_00):\r\n ptrPar = readByteFromRom(ch, out + 2);\r\n if ((ptrPar & 0b1000_0000) == 0b1000_0000) // 7-bit negative offset\r\n {\r\n jump = 1 + 2;\r\n }\r\n else // 15-bit positive offset\r\n {\r\n jump = 2 + 2;\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n out += jump;\r\n b = readByteFromRom(ch, out);\r\n }\r\n return (out - pos + 1);\r\n }", "public abstract long mo9750o();", "private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }", "protected int _getUnsignedMedium(int index)\r\n/* 356: */ {\r\n/* 357:370 */ return HeapByteBufUtil.getUnsignedMedium(this.array, index);\r\n/* 358: */ }", "@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}", "public void method_258(int var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8, boolean var9) {\n try {\n if(var6 == 0) {\n var6 = 16777215;\n }\n\n if(var7 == 0) {\n var7 = 16777215;\n }\n\n int var10 = this.field_736[var5];\n int var11 = this.field_737[var5];\n int var12 = 0;\n int var13 = 0;\n int var14 = var8 << 16;\n int var15 = (var10 << 16) / var3;\n int var16 = (var11 << 16) / var4;\n int var17 = -(var8 << 16) / var4;\n int var18;\n int var19;\n if(this.field_742[var5]) {\n var18 = this.spriteWidthFull[var5];\n var19 = this.field_741[var5];\n var15 = (var18 << 16) / var3;\n var16 = (var19 << 16) / var4;\n int var20 = this.field_738[var5];\n int var21 = this.field_739[var5];\n if(var9) {\n var20 = var18 - this.field_736[var5] - var20;\n }\n\n var1 += (var20 * var3 + var18 - 1) / var18;\n int var22 = (var21 * var4 + var19 - 1) / var19;\n var2 += var22;\n var14 += var22 * var17;\n if(var20 * var3 % var18 != 0) {\n var12 = (var18 - var20 * var3 % var18 << 16) / var3;\n }\n\n if(var21 * var4 % var19 != 0) {\n var13 = (var19 - var21 * var4 % var19 << 16) / var4;\n }\n\n var3 = ((this.field_736[var5] << 16) - var12 + var15 - 1) / var15;\n var4 = ((this.field_737[var5] << 16) - var13 + var16 - 1) / var16;\n }\n\n var18 = var2 * this.field_723;\n var14 += var1 << 16;\n if(var2 < this.field_743) {\n var19 = this.field_743 - var2;\n var4 -= var19;\n var2 = this.field_743;\n var18 += var19 * this.field_723;\n var13 += var16 * var19;\n var14 += var17 * var19;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n var19 = var18 / this.field_723 & 1;\n if(!this.interlace) {\n var19 = 2;\n }\n\n if(var7 == 16777215) {\n if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_259(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_259(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_260(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_260(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } catch (Exception var23) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }", "public static int size_quality() {\n return (16 / 8);\n }", "public final long mo20953WW() {\n AppMethodBeat.m2504i(60318);\n if (fXT <= 0) {\n fXT = ((ActivityManager) C4996ah.getContext().getSystemService(\"activity\")).getLargeMemoryClass();\n }\n if (fXT >= 512) {\n AppMethodBeat.m2505o(60318);\n return 41943040;\n }\n AppMethodBeat.m2505o(60318);\n return 20971520;\n }", "private static int getSize(int type) {\n switch (type) {\n case 0:\n return 65535;\n case 1:\n return 78513;\n case 2:\n return 101597;//getModelCount();\n case 3:\n return 3696;\n case 4:\n return 4193;\n case 5:\n return 6827;\n case 6:\n return 8487;\n case 7:\n return 645;//midiIndices.length;\n /*case 8:\n return 0;//getAnimCount();\n case 9:\n return 0;//getMapAmount();\n case 10:\n return 34026;\n case 11:\n return 3159;\n case 12:\n return 1956;*/\n }\n return 0;\n }", "public final void mo4385d(int i) {\n try {\n byte[] bArr = this.f20653b;\n int i2 = this.f20656e;\n this.f20656e = i2 + 1;\n bArr[i2] = (byte) i;\n bArr = this.f20653b;\n i2 = this.f20656e;\n this.f20656e = i2 + 1;\n bArr[i2] = (byte) (i >> 8);\n bArr = this.f20653b;\n i2 = this.f20656e;\n this.f20656e = i2 + 1;\n bArr[i2] = (byte) (i >> 16);\n bArr = this.f20653b;\n i2 = this.f20656e;\n this.f20656e = i2 + 1;\n bArr[i2] = i >> 24;\n } catch (int i3) {\n throw new zzc(String.format(\"Pos: %d, limit: %d, len: %d\", new Object[]{Integer.valueOf(this.f20656e), Integer.valueOf(this.f20655d), Integer.valueOf(1)}), i3);\n }\n }", "public abstract long mo24409b();", "public int getUnitSize() {\n\t\n\treturn 254; // A d64 block is 254 bytes (256 - pointer to the next sector).\n }", "@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }", "private static final byte[] xfsim_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, 0, 0,\n\t\t\t\t0, -128, -128, -128, -64, -64, -64, 28, 28, 28, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 5, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 72, 88, -70,\n\t\t\t\t-36, 30, 48, -58, 39, -86, -83, 1, -80, 64, -70, -17, -112,\n\t\t\t\t-74, 112, 64, 105, 18, -31, 70, 0, 67, -37, -94, -103, -54,\n\t\t\t\t-70, 3, 44, 42, 36, 93, -89, -29, -9, 101, -112, -111, 105, 88,\n\t\t\t\t10, 8, 68, 28, -97, -57, 24, 43, -124, -128, 0, 104, -54, 8,\n\t\t\t\t56, 90, -85, 88, 77, 82, -23, 57, 42, -120, -32, -110, 99, -20,\n\t\t\t\t72, 0, 0, 59 };\n\t\treturn data;\n\t}", "public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }", "private byte[] m150948d() throws IOException {\n DataInputStream dataInputStream;\n ByteArrayOutputStream byteArrayOutputStream;\n Throwable th;\n byte[] bArr;\n Exception e;\n long a = mo131997a();\n if (a <= 2147483647L) {\n try {\n dataInputStream = new DataInputStream(mo131998b());\n try {\n byteArrayOutputStream = new ByteArrayOutputStream();\n } catch (Exception e2) {\n e = e2;\n byteArrayOutputStream = null;\n try {\n TBSdkLog.m150897b(\"mtopsdk.ResponseBody\", \"[readBytes] read bytes from byteStream error.\", e);\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n bArr = null;\n if (bArr != null) {\n }\n } catch (Throwable th2) {\n th = th2;\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n throw th;\n }\n } catch (Throwable th3) {\n th = th3;\n byteArrayOutputStream = null;\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n throw th;\n }\n try {\n byte[] bArr2 = new byte[1024];\n while (true) {\n int read = dataInputStream.read(bArr2);\n if (read == -1) {\n break;\n }\n byteArrayOutputStream.write(bArr2, 0, read);\n }\n byteArrayOutputStream.flush();\n bArr = byteArrayOutputStream.toByteArray();\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n } catch (Exception e3) {\n e = e3;\n TBSdkLog.m150897b(\"mtopsdk.ResponseBody\", \"[readBytes] read bytes from byteStream error.\", e);\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n bArr = null;\n if (bArr != null) {\n }\n }\n } catch (Exception e4) {\n e = e4;\n byteArrayOutputStream = null;\n dataInputStream = null;\n TBSdkLog.m150897b(\"mtopsdk.ResponseBody\", \"[readBytes] read bytes from byteStream error.\", e);\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n bArr = null;\n if (bArr != null) {\n }\n } catch (Throwable th4) {\n th = th4;\n byteArrayOutputStream = null;\n dataInputStream = null;\n C32686a.m150970a(dataInputStream);\n C32686a.m150970a(byteArrayOutputStream);\n throw th;\n }\n if (bArr != null) {\n return null;\n }\n if (a == -1 || a == ((long) bArr.length)) {\n return bArr;\n }\n throw new IOException(\"Content-Length and stream length disagree\");\n }\n throw new IOException(\"Cannot buffer entire body for content length: \" + a);\n }", "private int pack(int size, int sum) {\n return size | (sum << 16);\n }", "long getSize();", "public abstract long mo9229aD();", "private void m145775e() {\n long j;\n String str;\n int i;\n if (!this.f119477j.mo115499a()) {\n if (this.f119484q != null) {\n str = \"PRAGMA cipher_page_size\";\n if (this.f119485r == null || this.f119485r.pageSize <= 0) {\n i = SQLiteGlobal.f119529a;\n } else {\n i = this.f119485r.pageSize;\n }\n j = (long) i;\n } else {\n str = \"PRAGMA page_size\";\n j = (long) SQLiteGlobal.f119529a;\n }\n if (mo115435b(str, null, null) != j) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(\"=\");\n sb.append(j);\n mo115433a(sb.toString(), null, null);\n }\n }\n }", "public int getSize() {\r\n\t\treturn 5; // 1 (code) + 2 (data length) + 2 (branch offset)\r\n\t}", "private int calculateBinSize(int r15) throws java.io.IOException {\n /*\n r14 = this;\n r1 = 0\n java.io.InputStream r2 = r14.in\n int r12 = r2.available()\n r2.mark(r12)\n r4 = 0\n int r0 = r2.read() // Catch:{ all -> 0x0052 }\n L_0x000f:\n r14.checkComma(r0) // Catch:{ all -> 0x0052 }\n int r5 = r14.readByte(r2) // Catch:{ all -> 0x0052 }\n int r8 = r14.readAddress(r2) // Catch:{ all -> 0x0052 }\n int r9 = r14.readByte(r2) // Catch:{ all -> 0x0052 }\n switch(r9) {\n case 0: goto L_0x0072;\n case 1: goto L_0x0036;\n case 2: goto L_0x0057;\n case 3: goto L_0x0021;\n case 4: goto L_0x003a;\n default: goto L_0x0021;\n } // Catch:{ all -> 0x0052 }\n L_0x0021:\n int r12 = r5 * 2\n int r12 = r12 + 2\n long r10 = (long) r12 // Catch:{ all -> 0x0052 }\n r14.skip(r2, r10) // Catch:{ all -> 0x0052 }\n L_0x0029:\n int r0 = r2.read() // Catch:{ all -> 0x0052 }\n r12 = 10\n if (r0 == r12) goto L_0x0029\n r12 = 13\n if (r0 == r12) goto L_0x0029\n goto L_0x000f\n L_0x0036:\n r2.reset()\n L_0x0039:\n return r1\n L_0x003a:\n int r7 = r14.readAddress(r2) // Catch:{ all -> 0x0052 }\n if (r1 <= 0) goto L_0x004a\n int r12 = r4 >> 16\n int r12 = r12 + 1\n if (r7 == r12) goto L_0x004a\n r2.reset()\n goto L_0x0039\n L_0x004a:\n int r4 = r7 << 16\n r12 = 2\n r14.skip(r2, r12) // Catch:{ all -> 0x0052 }\n goto L_0x0029\n L_0x0052:\n r12 = move-exception\n r2.reset()\n throw r12\n L_0x0057:\n int r12 = r14.readAddress(r2) // Catch:{ all -> 0x0052 }\n int r6 = r12 << 4\n if (r1 <= 0) goto L_0x006b\n int r12 = r6 >> 16\n int r13 = r4 >> 16\n int r13 = r13 + 1\n if (r12 == r13) goto L_0x006b\n r2.reset()\n goto L_0x0039\n L_0x006b:\n r4 = r6\n r12 = 2\n r14.skip(r2, r12) // Catch:{ all -> 0x0052 }\n goto L_0x0029\n L_0x0072:\n int r3 = r4 + r8\n if (r3 < r15) goto L_0x0021\n int r1 = r1 + r5\n goto L_0x0021\n */\n throw new UnsupportedOperationException(\"Method not decompiled: no.nordicsemi.android.dfu.internal.HexInputStream.calculateBinSize(int):int\");\n }", "private void m50366E() {\n }", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public static int size_reading() {\n return (16 / 8);\n }", "public static int sizeBits_infos_log_src() {\n return 16;\n }", "private int m23822a() {\n int min = Math.min(this.f25314a.getMemoryClass() * 1048576, Integer.MAX_VALUE);\n if (min < 33554432) {\n return 4194304;\n }\n if (min < 67108864) {\n return 6291456;\n }\n if (VERSION.SDK_INT < 11) {\n return 8388608;\n }\n return min / 4;\n }", "public void mo18644a(byte[] r8, int r9, int r10, com.startapp.p154a.p155a.p158c.C5047b.C5048a r11) {\n /*\n r7 = this;\n boolean r0 = r11.f16357f\n if (r0 == 0) goto L_0x0005\n return\n L_0x0005:\n r0 = 0\n r1 = 1\n if (r10 >= 0) goto L_0x00df\n r11.f16357f = r1\n int r8 = r11.f16359h\n if (r8 != 0) goto L_0x0014\n int r8 = r7.f16349c\n if (r8 != 0) goto L_0x0014\n return\n L_0x0014:\n int r8 = r7.f16346k\n byte[] r8 = r7.mo18648a(r8, r11)\n int r9 = r11.f16355d\n int r10 = r11.f16359h\n r1 = 61\n switch(r10) {\n case 0: goto L_0x00bb;\n case 1: goto L_0x0081;\n case 2: goto L_0x003c;\n default: goto L_0x0023;\n }\n L_0x0023:\n java.lang.IllegalStateException r8 = new java.lang.IllegalStateException\n java.lang.StringBuilder r9 = new java.lang.StringBuilder\n r9.<init>()\n java.lang.String r10 = \"Impossible modulus \"\n r9.append(r10)\n int r10 = r11.f16359h\n r9.append(r10)\n java.lang.String r9 = r9.toString()\n r8.<init>(r9)\n throw r8\n L_0x003c:\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 >> 10\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 >> 4\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 << 2\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n byte[] r10 = r7.f16342g\n byte[] r2 = f16339d\n if (r10 != r2) goto L_0x00bb\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n r8[r10] = r1\n goto L_0x00bb\n L_0x0081:\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 >> 2\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n byte[] r2 = r7.f16342g\n int r3 = r11.f16352a\n int r3 = r3 << 4\n r3 = r3 & 63\n byte r2 = r2[r3]\n r8[r10] = r2\n byte[] r10 = r7.f16342g\n byte[] r2 = f16339d\n if (r10 != r2) goto L_0x00bb\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n r8[r10] = r1\n int r10 = r11.f16355d\n int r2 = r10 + 1\n r11.f16355d = r2\n r8[r10] = r1\n L_0x00bb:\n int r10 = r11.f16358g\n int r1 = r11.f16355d\n int r1 = r1 - r9\n int r10 = r10 + r1\n r11.f16358g = r10\n int r9 = r7.f16349c\n if (r9 <= 0) goto L_0x0172\n int r9 = r11.f16358g\n if (r9 <= 0) goto L_0x0172\n byte[] r9 = r7.f16344i\n int r10 = r11.f16355d\n byte[] r1 = r7.f16344i\n int r1 = r1.length\n java.lang.System.arraycopy(r9, r0, r8, r10, r1)\n int r8 = r11.f16355d\n byte[] r9 = r7.f16344i\n int r9 = r9.length\n int r8 = r8 + r9\n r11.f16355d = r8\n goto L_0x0172\n L_0x00df:\n r2 = r9\n r9 = r0\n L_0x00e1:\n if (r9 >= r10) goto L_0x0172\n int r3 = r7.f16346k\n byte[] r3 = r7.mo18648a(r3, r11)\n int r4 = r11.f16359h\n int r4 = r4 + r1\n int r4 = r4 % 3\n r11.f16359h = r4\n int r4 = r2 + 1\n byte r2 = r8[r2]\n if (r2 >= 0) goto L_0x00f8\n int r2 = r2 + 256\n L_0x00f8:\n int r5 = r11.f16352a\n int r5 = r5 << 8\n int r5 = r5 + r2\n r11.f16352a = r5\n int r2 = r11.f16359h\n if (r2 != 0) goto L_0x016d\n int r2 = r11.f16355d\n int r5 = r2 + 1\n r11.f16355d = r5\n byte[] r5 = r7.f16342g\n int r6 = r11.f16352a\n int r6 = r6 >> 18\n r6 = r6 & 63\n byte r5 = r5[r6]\n r3[r2] = r5\n int r2 = r11.f16355d\n int r5 = r2 + 1\n r11.f16355d = r5\n byte[] r5 = r7.f16342g\n int r6 = r11.f16352a\n int r6 = r6 >> 12\n r6 = r6 & 63\n byte r5 = r5[r6]\n r3[r2] = r5\n int r2 = r11.f16355d\n int r5 = r2 + 1\n r11.f16355d = r5\n byte[] r5 = r7.f16342g\n int r6 = r11.f16352a\n int r6 = r6 >> 6\n r6 = r6 & 63\n byte r5 = r5[r6]\n r3[r2] = r5\n int r2 = r11.f16355d\n int r5 = r2 + 1\n r11.f16355d = r5\n byte[] r5 = r7.f16342g\n int r6 = r11.f16352a\n r6 = r6 & 63\n byte r5 = r5[r6]\n r3[r2] = r5\n int r2 = r11.f16358g\n int r2 = r2 + 4\n r11.f16358g = r2\n int r2 = r7.f16349c\n if (r2 <= 0) goto L_0x016d\n int r2 = r7.f16349c\n int r5 = r11.f16358g\n if (r2 > r5) goto L_0x016d\n byte[] r2 = r7.f16344i\n int r5 = r11.f16355d\n byte[] r6 = r7.f16344i\n int r6 = r6.length\n java.lang.System.arraycopy(r2, r0, r3, r5, r6)\n int r2 = r11.f16355d\n byte[] r3 = r7.f16344i\n int r3 = r3.length\n int r2 = r2 + r3\n r11.f16355d = r2\n r11.f16358g = r0\n L_0x016d:\n int r9 = r9 + 1\n r2 = r4\n goto L_0x00e1\n L_0x0172:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.startapp.p154a.p155a.p158c.C5046a.mo18644a(byte[], int, int, com.startapp.a.a.c.b$a):void\");\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "protected int bytesPerAtom() {\n return (2);\n }", "protected int bytesPerAtom() {\n return (2);\n }", "@Override\r\n\tpublic int size() {\n\t\treturn 27;\r\n\t}", "public void method_237(int var1, byte[] var2) {\n boolean var11 = field_759;\n int[] var3 = this.spritePixels[var1] = new int[10200];\n this.field_736[var1] = 255;\n this.field_737[var1] = 40;\n this.field_738[var1] = 0;\n this.field_739[var1] = 0;\n this.spriteWidthFull[var1] = 255;\n this.field_741[var1] = 40;\n this.field_742[var1] = false;\n int var4 = 0;\n int var5 = 1;\n int var6 = 0;\n int var7;\n int var8;\n if(var11 || var6 < 255) {\n do {\n var7 = var2[var5++] & 255;\n var8 = 0;\n if(var11) {\n var3[var6++] = var4;\n ++var8;\n }\n\n while(var8 < var7) {\n var3[var6++] = var4;\n ++var8;\n }\n\n var4 = 16777215 - var4;\n } while(var6 < 255);\n }\n\n var7 = 1;\n if(var11 || var7 < 40) {\n do {\n var8 = 0;\n if(!var11 && var8 >= 255) {\n ++var7;\n } else {\n do {\n int var9 = var2[var5++] & 255;\n int var10 = 0;\n if(var11) {\n var3[var6] = var3[var6 - 255];\n ++var6;\n ++var8;\n ++var10;\n }\n\n while(var10 < var9) {\n var3[var6] = var3[var6 - 255];\n ++var6;\n ++var8;\n ++var10;\n }\n\n if(var8 < 255) {\n var3[var6] = 16777215 - var3[var6 - 255];\n ++var6;\n ++var8;\n }\n } while(var8 < 255);\n\n ++var7;\n }\n } while(var7 < 40);\n\n }\n }", "public abstract void mo4380b(byte[] bArr, int i, int i2);", "public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }", "private byte[] magSerializedForm() {\n int len = mag.length;\n\n int bitLen = (len == 0 ? 0 : ((len - 1) << 5) + bitLengthForInt(mag[0]));\n int byteLen = (bitLen + 7) >>> 3;\n byte[] result = new byte[byteLen];\n\n for (int i = byteLen - 1, bytesCopied = 4, intIndex = len - 1, nextInt = 0;\n i >= 0; i--) {\n if (bytesCopied == 4) {\n nextInt = mag[intIndex--];\n bytesCopied = 1;\n } else {\n nextInt >>>= 8;\n bytesCopied++;\n }\n result[i] = (byte)nextInt;\n }\n return result;\n }", "public static int totalSize_data() {\n return (480 / 8);\n }", "@Override\n\tpublic void challenge16() {\n\n\t}", "public static int totalSizeBits_infos_metadata() {\n return 16;\n }", "public int getIconWidth()\r\n/* 50: */ {\r\n/* 51: 99 */ return SIZE;\r\n/* 52: */ }", "public static int sizeBits_moteId() {\n return 16;\n }", "public static int totalSizeBits_data() {\n return 480;\n }", "public void method_246(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_253(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }", "public abstract long mo24410c();" ]
[ "0.626624", "0.610937", "0.6011804", "0.60006213", "0.5941042", "0.5754189", "0.5746645", "0.5677518", "0.56774354", "0.5673377", "0.56491137", "0.5580859", "0.55735976", "0.5558627", "0.5557105", "0.5553056", "0.55378604", "0.5509706", "0.5496918", "0.5493988", "0.54842573", "0.547417", "0.5465645", "0.54563844", "0.54545647", "0.54322666", "0.5424156", "0.54064757", "0.53940725", "0.5387102", "0.5379676", "0.5378944", "0.53726417", "0.5370105", "0.53585434", "0.5346339", "0.5342288", "0.53412473", "0.5340733", "0.5336967", "0.5328211", "0.5323218", "0.531844", "0.53094035", "0.53086865", "0.5303461", "0.5299459", "0.52973175", "0.529466", "0.5287873", "0.5280996", "0.527642", "0.527545", "0.52707094", "0.5259581", "0.52592313", "0.5253428", "0.525093", "0.5250687", "0.5244316", "0.5243514", "0.52386814", "0.52338135", "0.52288586", "0.5227504", "0.52199113", "0.52166384", "0.5212818", "0.52075243", "0.5205597", "0.5194754", "0.51930237", "0.51927257", "0.51923084", "0.5191366", "0.5189839", "0.5189769", "0.51867425", "0.5181688", "0.5181217", "0.51772064", "0.51756936", "0.5174179", "0.517403", "0.51664877", "0.51622874", "0.5160025", "0.5160025", "0.5159943", "0.51573825", "0.5156791", "0.51561296", "0.515511", "0.51455575", "0.51454", "0.5141273", "0.5141156", "0.5138576", "0.51363647", "0.51314396", "0.5131424" ]
0.0
-1
/ 517: / 518:
public String cancelar() /* 519: */ { /* 520:545 */ String url = ""; /* 521:546 */ if (this.facturaProveedorSRI.getFacturaProveedor() != null) { /* 522:547 */ url = "/paginas/compras/procesos/facturaProveedor?faces-redirect=true"; /* 523: */ } else { /* 524:549 */ url = "/paginas/financiero/contabilidad/procesos/compraCajaChica?faces-redirect=true"; /* 525: */ } /* 526:551 */ return url; /* 527: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "public void mo21877s() {\n }", "public int method_2436() {\r\n return 16;\r\n }", "public void mo21794S() {\n }", "private void m50366E() {\n }", "abstract String mo1748c();", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void challenge17() {\n\n\t}", "public static void listing5_16() {\n }", "public void mo21878t() {\n }", "public void mo55254a() {\n }", "public void mo38117a() {\n }", "public void mo3749d() {\n }", "public void mo21795T() {\n }", "void mo1507n();", "public void mo21782G() {\n }", "public void mo21879u() {\n }", "public void mo23813b() {\n }", "public static void listing5_14() {\n }", "public void mo21783H() {\n }", "private void kk12() {\n\n\t}", "public int method_6437() {\r\n return this.field_6227;\r\n }", "public void mo21779D() {\n }", "public static void listing5_15() {\n }", "void m1864a() {\r\n }", "public void mo21785J() {\n }", "public void mo5248a() {\n }", "private void m50367F() {\n }", "public void mo6081a() {\n }", "public void mo21825b() {\n }", "public void mo12628c() {\n }", "public void mo12930a() {\n }", "protected void mo6255a() {\n }", "public void mo21787L() {\n }", "public void mo21792Q() {\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public void mo21867i() {\n mo21877s();\n }", "public void mo44053a() {\n }", "public void mo56167c() {\n }", "public void mo21789N() {\n }", "public void mo21786K() {\n }", "public void mo4359a() {\n }", "public void mo21788M() {\n }", "public void mo3376r() {\n }", "protected String[] mo1613b() {\r\n return f4638d;\r\n }", "public void skystonePos6() {\n }", "public void mo115188a() {\n }", "public void mo1531a() {\n }", "static void m14933d(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public void mo5382o() {\n }", "public abstract String mo13682d();", "public void mo9233aH() {\n }", "public void mo21793R() {\n }", "public void m23075a() {\n }", "protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }", "public void mo2470d() {\n }", "public void mo2740a() {\n }", "static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "void mo1506m();", "public void mo21791P() {\n }", "public void mo21780E() {\n }", "public abstract String mo9239aw();", "public void mo21784I() {\n }", "public void mo21880v() {\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }", "void mo17013d();", "public int method_2832() {\n return this.field_1651;\n }", "public void mo1405e() {\n }", "public abstract String mo9751p();", "public abstract int mo9754s();", "public final void mo51373a() {\n }", "public void mo2471e() {\n }", "public void mo9848a() {\n }", "public void mo21781F() {\n }", "public void mo115190b() {\n }", "public void skystonePos5() {\n }", "public int method_2031() {\r\n return this.field_1790;\r\n }", "public int method_1549() {\r\n return this.field_1434;\r\n }", "private String \\u02ca\\u0971() {\n int n2;\n LinkedHashMap linkedHashMap;\n int n3;\n Map<String, String> map;\n try {\n map = this.\\u02ca\\u0971;\n linkedHashMap = new LinkedHashMap();\n n2 = 0;\n }\n catch (Exception exception) {\n o.\\u02ce(exception);\n return \"\";\n }\n do {\n n3 = 0;\n if (n2 >= 8) break;\n StringBuilder stringBuilder = new StringBuilder(\"moatClientLevel\");\n stringBuilder.append(n2);\n String string = stringBuilder.toString();\n if (map.containsKey((Object)string)) {\n linkedHashMap.put((Object)string, map.get((Object)string));\n }\n ++n2;\n } while (true);\n do {\n if (n3 < 8) {\n StringBuilder stringBuilder = new StringBuilder(\"moatClientSlicer\");\n stringBuilder.append(n3);\n String string = stringBuilder.toString();\n if (map.containsKey((Object)string)) {\n linkedHashMap.put((Object)string, map.get((Object)string));\n }\n } else {\n Iterator iterator = map.keySet().iterator();\n do {\n if (!iterator.hasNext()) {\n String string = new JSONObject((Map)linkedHashMap).toString();\n StringBuilder stringBuilder = new StringBuilder(\"Parsed ad ids = \");\n stringBuilder.append(string);\n a.\\u02cf(3, \"NativeDisplayTracker\", this, stringBuilder.toString());\n StringBuilder stringBuilder2 = new StringBuilder(\"{\\\"adIds\\\":\");\n stringBuilder2.append(string);\n stringBuilder2.append(\", \\\"adKey\\\":\\\"\");\n stringBuilder2.append(this.\\u02cb);\n stringBuilder2.append(\"\\\", \\\"adSize\\\":\");\n stringBuilder2.append(this.\\u141d());\n stringBuilder2.append(\"}\");\n return stringBuilder2.toString();\n }\n String string = (String)iterator.next();\n if (linkedHashMap.containsKey((Object)string)) continue;\n linkedHashMap.put((Object)string, (Object)((String)map.get((Object)string)));\n } while (true);\n }\n ++n3;\n } while (true);\n }", "C4945r5 mo19056B();", "public abstract void mo56925d();", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "Info mo7564ix();", "static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }", "C1458cs mo7613iS();", "public abstract String mo41079d();", "void mo17023d();", "public abstract String mo118046b();", "public void mo8738a() {\n }", "C7562b<C10403b, C10328a> mo25041a();", "public void method_191() {}", "public int mo36g() {\n return 4;\n }", "public final void mo91715d() {\n }", "public void mo6944a() {\n }" ]
[ "0.60672414", "0.5966601", "0.5811804", "0.57822615", "0.57747716", "0.5734731", "0.57192475", "0.57192475", "0.57192475", "0.57192475", "0.57192475", "0.57192475", "0.57192475", "0.57192194", "0.57120484", "0.5689486", "0.5687943", "0.5661076", "0.5649929", "0.5632089", "0.56277466", "0.5612455", "0.5603134", "0.55877507", "0.5583725", "0.5576893", "0.5567399", "0.5547361", "0.5541863", "0.5541198", "0.55352753", "0.5517738", "0.5511134", "0.550606", "0.55054367", "0.55013406", "0.54943883", "0.5492493", "0.5475504", "0.5467835", "0.5462653", "0.54610866", "0.5453621", "0.5450147", "0.5445488", "0.54315275", "0.5429453", "0.54208237", "0.54124695", "0.5400806", "0.54000413", "0.5396658", "0.5378746", "0.5376778", "0.5373768", "0.5373321", "0.5365021", "0.5364467", "0.53630894", "0.535244", "0.5352058", "0.53512913", "0.53452027", "0.5336861", "0.53294927", "0.5324668", "0.5321547", "0.5316832", "0.53142256", "0.5306644", "0.528496", "0.5281576", "0.5259736", "0.52578163", "0.5247064", "0.5246476", "0.52440333", "0.5236722", "0.52358556", "0.52348226", "0.5234412", "0.52292174", "0.5224325", "0.5223848", "0.5220687", "0.5211275", "0.5204742", "0.519855", "0.5192551", "0.519078", "0.51900667", "0.5187985", "0.5186479", "0.518585", "0.5185313", "0.51808417", "0.51756406", "0.5173796", "0.5172358", "0.5172135", "0.5171364" ]
0.0
-1
/ 528: / 529:
public void calcular() /* 530: */ { /* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply( /* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L)))); /* 533: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "private void m50366E() {\n }", "public void mo12628c() {\n }", "public void mo21877s() {\n }", "public void mo21794S() {\n }", "public int method_2436() {\r\n return 16;\r\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "public void mo6081a() {\n }", "public void mo38117a() {\n }", "public void mo3749d() {\n }", "public void mo21785J() {\n }", "public void mo23813b() {\n }", "public void mo21787L() {\n }", "public void mo21878t() {\n }", "private void m50367F() {\n }", "private void kk12() {\n\n\t}", "public void mo21789N() {\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public int method_2832() {\n return this.field_1651;\n }", "public void mo9233aH() {\n }", "public void mo21788M() {\n }", "public void mo21779D() {\n }", "public void mo3376r() {\n }", "public void mo21795T() {\n }", "public void mo12930a() {\n }", "public void mo21786K() {\n }", "public void mo21825b() {\n }", "public abstract int mo9754s();", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "void mo1507n();", "static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }", "public static void listing5_16() {\n }", "void m1864a() {\r\n }", "public void mo55254a() {\n }", "public void mo21867i() {\n mo21877s();\n }", "static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "static void m14933d(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "void mo1506m();", "abstract String mo1748c();", "public void m23075a() {\n }", "public void mo21793R() {\n }", "public void mo2470d() {\n }", "public void mo56167c() {\n }", "static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public void mo5833c(android.content.Context r7) {\n /*\n r6 = this;\n r0 = 2\n java.lang.String r1 = m3302v() // Catch:{ a -> 0x0097, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x0097, IOException -> 0x008a }\n L_0x0008:\n r0 = 1\n java.lang.String r1 = m3304x() // Catch:{ a -> 0x0094, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x0094, IOException -> 0x008a }\n L_0x0010:\n java.lang.Long r0 = m3303w() // Catch:{ a -> 0x0092, IOException -> 0x008a }\n long r0 = r0.longValue() // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r2 = 25\n r6.mo5829a(r2, r0) // Catch:{ a -> 0x0092, IOException -> 0x008a }\n long r2 = startTime // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r4 = 0\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 == 0) goto L_0x0034\n r2 = 17\n long r3 = startTime // Catch:{ a -> 0x0092, IOException -> 0x008a }\n long r0 = r0 - r3\n r6.mo5829a(r2, r0) // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r0 = 23\n long r1 = startTime // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r6.mo5829a(r0, r1) // Catch:{ a -> 0x0092, IOException -> 0x008a }\n L_0x0034:\n android.view.MotionEvent r0 = r6.f2852jY // Catch:{ a -> 0x0090, IOException -> 0x008a }\n android.util.DisplayMetrics r1 = r6.f2853jZ // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.util.ArrayList r1 = m3296a(r0, r1) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r2 = 14\n r0 = 0\n java.lang.Object r0 = r1.get(r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.lang.Long r0 = (java.lang.Long) r0 // Catch:{ a -> 0x0090, IOException -> 0x008a }\n long r3 = r0.longValue() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r6.mo5829a(r2, r3) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r2 = 15\n r0 = 1\n java.lang.Object r0 = r1.get(r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.lang.Long r0 = (java.lang.Long) r0 // Catch:{ a -> 0x0090, IOException -> 0x008a }\n long r3 = r0.longValue() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r6.mo5829a(r2, r3) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n int r0 = r1.size() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r2 = 3\n if (r0 < r2) goto L_0x0073\n r2 = 16\n r0 = 2\n java.lang.Object r0 = r1.get(r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.lang.Long r0 = (java.lang.Long) r0 // Catch:{ a -> 0x0090, IOException -> 0x008a }\n long r0 = r0.longValue() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r6.mo5829a(r2, r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n L_0x0073:\n r0 = 27\n com.google.android.gms.internal.n r1 = r6.f2854ka // Catch:{ a -> 0x008e, IOException -> 0x008a }\n java.lang.String r1 = m3295a(r7, r1) // Catch:{ a -> 0x008e, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x008e, IOException -> 0x008a }\n L_0x007e:\n r0 = 29\n com.google.android.gms.internal.n r1 = r6.f2854ka // Catch:{ a -> 0x008c, IOException -> 0x008a }\n java.lang.String r1 = m3298b(r7, r1) // Catch:{ a -> 0x008c, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x008c, IOException -> 0x008a }\n L_0x0089:\n return\n L_0x008a:\n r0 = move-exception\n goto L_0x0089\n L_0x008c:\n r0 = move-exception\n goto L_0x0089\n L_0x008e:\n r0 = move-exception\n goto L_0x007e\n L_0x0090:\n r0 = move-exception\n goto L_0x0073\n L_0x0092:\n r0 = move-exception\n goto L_0x0034\n L_0x0094:\n r0 = move-exception\n goto L_0x0010\n L_0x0097:\n r0 = move-exception\n goto L_0x0008\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.C1107j.mo5833c(android.content.Context):void\");\n }", "public void mo1531a() {\n }", "public void mo5248a() {\n }", "public void mo21879u() {\n }", "public void mo21780E() {\n }", "public abstract String mo13682d();", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "public int method_6437() {\r\n return this.field_6227;\r\n }", "public void mo44053a() {\n }", "public void mo21784I() {\n }", "public void mo1976s() throws cf {\r\n }", "public void mo2740a() {\n }", "public void mo2471e() {\n }", "public void mo21792Q() {\n }", "public static void listing5_14() {\n }", "public void mo21791P() {\n }", "public abstract void mo2624j();", "public void mo3370l() {\n }", "public abstract void incorrectlyParsedUtterance(long ms);", "public final void mo92082N() {\n }", "public static int offset_infos_log_src() {\n return (16 / 8);\n }", "public abstract void correctlyParsedUtterance(long ms);", "public abstract long mo9229aD();", "public void mo21781F() {\n }", "public abstract Integer mo36210m();", "public void mo4359a() {\n }", "public void mo21880v() {\n }", "public int method_2031() {\r\n return this.field_1790;\r\n }", "public void mo115190b() {\n }", "public void mo3946e() {\n m25427g();\n }", "public void mo115188a() {\n }", "public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }", "public void mo5382o() {\n }", "public void mo1405e() {\n }", "@Test(timeout = 4000)\n public void test49() throws Throwable {\n String string0 = EWrapperMsgGenerator.currentTime((-532L));\n assertEquals(\"current time = -532 (Dec 31, 1969 11:51:08 PM)\", string0);\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateNewsBulletin(11, 13, \"E{Iw-^%H:1$e/\", \"LW)W-|=b,lie*CW\");\n assertEquals(\"MsgId=11 :: MsgType=13 :: Origin=LW)W-|=b,lie*CW :: Message=E{Iw-^%H:1$e/\", string0);\n }", "public abstract void mo56925d();", "static zzco m26829a() {\n return new zzco(\"While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.\");\n }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "C7562b<C10403b, C10328a> mo25041a();", "public final void mo91715d() {\n }", "@Test(timeout = 4000)\n public void test029() throws Throwable {\n StringReader stringReader0 = new StringReader(\"GD}>zPHIT2VcF.\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 0, 0, 1847);\n javaCharStream0.adjustBeginLineColumn((-2819), 2281);\n int int0 = javaCharStream0.getBeginLine();\n assertEquals((-2818), int0);\n }", "public abstract String mo9751p();", "public static void listing5_15() {\n }", "protected void mo6255a() {\n }", "C2841w mo7234g();", "C11316t5 mo29022j0();", "public int mo36g() {\n return 2;\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }" ]
[ "0.61375225", "0.60583174", "0.5990697", "0.5982595", "0.5867715", "0.58196706", "0.5719537", "0.57177347", "0.5681925", "0.56810683", "0.5674319", "0.5673021", "0.56593543", "0.56559545", "0.56515497", "0.56482595", "0.56439424", "0.5610213", "0.5607041", "0.5595718", "0.55923927", "0.5587797", "0.5586722", "0.5585776", "0.55850124", "0.5584725", "0.55797726", "0.55437386", "0.55433756", "0.554325", "0.554325", "0.554325", "0.554325", "0.554325", "0.554325", "0.554325", "0.5543103", "0.55393016", "0.55300623", "0.5526001", "0.55226415", "0.5519538", "0.55161285", "0.5506099", "0.5503025", "0.5493307", "0.5491221", "0.5480538", "0.5473584", "0.54731977", "0.5473171", "0.5472137", "0.54693985", "0.54667807", "0.54650944", "0.5456804", "0.54465735", "0.54415214", "0.54407203", "0.54398483", "0.54383636", "0.5432608", "0.5432267", "0.5432052", "0.54308593", "0.54208165", "0.5409372", "0.5403637", "0.53971696", "0.53746563", "0.5368123", "0.53576094", "0.5354573", "0.5351737", "0.5346911", "0.53460675", "0.53415704", "0.53404033", "0.534003", "0.5339573", "0.53359216", "0.53356403", "0.53343713", "0.532876", "0.5327612", "0.53238285", "0.53225595", "0.5322364", "0.53204966", "0.53199327", "0.5311747", "0.5311681", "0.53086823", "0.53034765", "0.5295322", "0.5289037", "0.52889615", "0.5286703", "0.52863204", "0.52855986", "0.528368" ]
0.0
-1
/ 534: / 535:
public List<ConceptoRetencionSRI> autocompletarConceptoRetencionSRI(String consulta) /* 536: */ { /* 537:568 */ String consultaMayuscula = consulta.toUpperCase(); /* 538:569 */ List<ConceptoRetencionSRI> lista = new ArrayList(); /* 539:571 */ for (ConceptoRetencionSRI conceptoRetencionSRI : getListaConceptoRetencionSRI()) { /* 540:572 */ if (((conceptoRetencionSRI.getCodigo().toUpperCase().contains(consultaMayuscula)) || /* 541:573 */ (conceptoRetencionSRI.getNombre().toUpperCase().contains(consultaMayuscula))) && /* 542:574 */ (conceptoRetencionSRI.getTipoConceptoRetencion().equals(TipoConceptoRetencion.FUENTE))) { /* 543:575 */ lista.add(conceptoRetencionSRI); /* 544: */ } /* 545: */ } /* 546:579 */ return lista; /* 547: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }", "public int mo36g() {\n return 4;\n }", "public abstract void correctlyParsedUtterance(long ms);", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "@Test(timeout = 4000)\n public void test45() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateMktDepthL2(2146794261, 927, \"@\", 2146889800, (-180), 2146794261, (-1940));\n assertEquals(\"updateMktDepth: 2146794261 927 @ 2146889800 -180 2.146794261E9 -1940\", string0);\n }", "public abstract void incorrectlyParsedUtterance(long ms);", "public int method_2436() {\r\n return 16;\r\n }", "public int mo36g() {\n return 8;\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }", "public void mo21877s() {\n }", "public static void m22735h() {\n if (f20301b.mo18963a()) {\n f20301b.mo18962a(C7268n.m22763a().mo18998b());\n }\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "static void m14933d(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateNewsBulletin(11, 13, \"E{Iw-^%H:1$e/\", \"LW)W-|=b,lie*CW\");\n assertEquals(\"MsgId=11 :: MsgType=13 :: Origin=LW)W-|=b,lie*CW :: Message=E{Iw-^%H:1$e/\", string0);\n }", "public abstract void partiallyParsedUtterance(long ms);", "public void mo55254a() {\n }", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "private void m50366E() {\n }", "public void mo21794S() {\n }", "public void mo3749d() {\n }", "@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "public void mo9233aH() {\n }", "@Test(timeout = 4000)\n public void test56() throws Throwable {\n String string0 = SQLUtil.normalize(\")]*/f/f2Nx{fI.* \", false);\n assertEquals(\") ] */ f / f2Nx { fI.*\", string0);\n }", "public int mo36g() {\n return 2;\n }", "public void mo21783H() {\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateMktDepth(1, 1, 1002, 1002, 2494.84595, (-195));\n assertEquals(\"updateMktDepth: 1 1 1002 1002 2494.84595 -195\", string0);\n }", "static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "public static void incorrect5() {\r\n\r\n System.out.println(\" *---*\");\r\n System.out.println(\" | |\");\r\n System.out.println(\" 0 |\");\r\n System.out.println(\" /|\\\\ | Incorrect - 5\");\r\n System.out.println(\" / |\");\r\n System.out.println(\" |\");\r\n System.out.println(\"==========\");\r\n }", "private void m3935R() {\n int i;\n int i2;\n if (mo4322L() == 1) {\n i2 = mo4758r() - mo4756p();\n i = mo4754o();\n } else {\n i2 = mo4741h() - mo4752n();\n i = mo4757q();\n }\n m3945n(i2 - i);\n }", "private static int getNodeTime(String node) {\n int offSet = 4;\n return (int) node.toCharArray()[0] - offSet;\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"_\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public final int mo50059a() {\n return 2;\n }", "public void mo21878t() {\n }", "C20259y mo54455t(int i);", "public void mo21788M() {\n }", "public void method_4270() {}", "public void mo21795T() {\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "public int arn() {\n return 383;\n }", "public static void listing5_16() {\n }", "@Test(timeout = 4000)\n public void test53() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The database key of the entry being cross referenced. Any fields that are missing from the current record are inherited from the field being cross referenced.\");\n assertEquals(\"th databas key of th entr being cros refer. any field that ar mis from th cur record ar inherit from th field being cros refer.\", string0);\n }", "private void m50367F() {\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n String string0 = EWrapperMsgGenerator.scannerDataEnd((-1344));\n assertEquals(\"id = -1344 =============== end ===============\", string0);\n }", "@Test(timeout = 4000)\n public void test49() throws Throwable {\n String string0 = EWrapperMsgGenerator.currentTime((-532L));\n assertEquals(\"current time = -532 (Dec 31, 1969 11:51:08 PM)\", string0);\n }", "public String m50407k() {\n String w = m50429w();\n if (!TextUtils.isEmpty(w)) {\n TextView textView = this.f30731b0;\n CardEditText cardEditText = this.f30729a0;\n m50376a(textView, cardEditText, cardEditText, w);\n }\n return w;\n }", "@Test(timeout = 4000)\n public void test60() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader(pipedWriter0);\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n streamTokenizer0.nval = 752.0;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"752\", string0);\n }", "public void mo21867i() {\n mo21877s();\n }", "public static int m8651d() {\n return 4;\n }", "public abstract long mo9755t();", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSnapshotEnd((-1165));\n assertEquals(\"id=-1165 =============== end ===============\", string0);\n }", "public static String m13823m() {\n return f12476h;\n }", "public void mo5248a() {\n }", "private void m128168k() {\n C42962b.f111525a.mo104671a(\"upload_page_duration\", C22984d.m75611a().mo59971a(\"first_selection_duration\", System.currentTimeMillis() - this.f104209S).mo59971a(\"page_stay_duration\", System.currentTimeMillis() - this.f104208R).f60753a);\n }", "public static int m8655e() {\n return 8;\n }", "static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public long mo9743h() {\n return mo9773w();\n }", "public void mo21786K() {\n }", "C4945r5 mo19056B();", "@Test(timeout = 4000)\n public void test136() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n stringReader0.read();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\":\", token0.toString());\n }", "@Test(timeout = 4000)\n public void test48() throws Throwable {\n String string0 = EWrapperMsgGenerator.realtimeBar(1, 845L, 251L, (-2474L), 1521.6451568161, 845L, 0L, 1, 3197);\n assertEquals(\"id=1 time = 845 open=251.0 high=-2474.0 low=1521.6451568161 close=845.0 volume=0 count=3197 WAP=1.0\", string0);\n }", "public void mo3376r() {\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n String string0 = SQLUtil.normalize(\"z'sD:aOZZhMnh\", false);\n assertEquals(\"z 'sD:aOZZhMnh'\", string0);\n }", "public void mo21789N() {\n }", "public void mo44053a() {\n }", "private final void step5()\n\t { if (k == 0) return; /* for Bug 1 */ switch (b[k-1])\n\t { case 'a': if (ends(\"al\")) break; return;\n\t case 'c': if (ends(\"ance\")) break;\n\t if (ends(\"ence\")) break; return;\n\t case 'e': if (ends(\"er\")) break; return;\n\t case 'i': if (ends(\"ic\")) break; return;\n\t case 'l': if (ends(\"able\")) break;\n\t if (ends(\"ible\")) break; return;\n\t case 'n': if (ends(\"ant\")) break;\n\t if (ends(\"ement\")) break;\n\t if (ends(\"ment\")) break;\n\t /* element etc. not stripped before the m */\n\t if (ends(\"ent\")) break; return;\n\t case 'o': if (ends(\"ion\") && j >= 0 && (b[j] == 's' || b[j] == 't')) break;\n\t /* j >= 0 fixes Bug 2 */\n\t if (ends(\"ou\")) break; return;\n\t /* takes care of -ous */\n\t case 's': if (ends(\"ism\")) break; return;\n\t case 't': if (ends(\"ate\")) break;\n\t if (ends(\"iti\")) break; return;\n\t case 'u': if (ends(\"ous\")) break; return;\n\t case 'v': if (ends(\"ive\")) break; return;\n\t case 'z': if (ends(\"ize\")) break; return;\n\t default: return;\n\t }\n\t if (m() > 1) k = j;\n\t }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateMktDepth((-1403), 4832, (-1403), 1220, (-1403), 1220);\n assertEquals(\"updateMktDepth: -1403 4832 -1403 1220 -1403.0 1220\", string0);\n }", "public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n String string0 = SQLUtil.normalize(\"alter sessionv)y/b{p(k{:tw\", false);\n assertEquals(\"alter sessionv) y / b { p (k { : tw\", string0);\n }", "public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.getPreviousToken();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(18, token0.getTokenType());\n }", "private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }", "public void mo56167c() {\n }", "public static String getSleepingSnake(int size)\r\n\t{\r\n if (size == 0) {\r\n\t\t return \"Size needs to be a positive integer\\n\";\r\n }\r\n if (size == 4) {\r\n return \">____ \\n ___ |\\n| > ||\\n||__||\\n|____|\\n\";\r\n }\r\n if (size == 7) {\r\n return \">_______\\n ______ |\\n| ____ ||\\n|| __ |||\\n||| < |||\\n|||___|||\\n||_____||\\n|_______|\\n\";\r\n }\r\n /*\r\n else if (size % 2 != 0) {\r\n StringBuffer sb = new StringBuffer(); \r\n\r\n // first line\r\n sb.append(\">\");\r\n for (int j = 0; j < size; j++) {\r\n sb.append(\"_\");\r\n }\r\n //sb.append(\" \\n\");\r\n sb.append(\"\\n\");\r\n \r\n // second through half\r\n for (int i = 1; i < size / 2 + 1; i++) {\r\n for (int j = 0; j < i - 1; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\" \");\r\n for (int j = 0; j < size - 2 * i + 1; j++) {\r\n sb.append(\"_\");\r\n }\r\n\r\n sb.append(\" \");\r\n for (int j = 0; j < i; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\"\\n\");\r\n }\r\n\r\n // middle\r\n for (int j = 0; j < size - 4; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\" < \");\r\n for (int j = 0; j < size - 4; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\"\\n\");\r\n\r\n \r\n int k = 0;\r\n // half through end\r\n for (int i = size / 2 + 1; i < size; i++, k++) {\r\n for (int j = i; j < size; j++) {\r\n sb.append(\"|\");\r\n }\r\n for (int j = 0; j < i - 1 + k; j++) {\r\n sb.append(\"_\");\r\n\r\n }\r\n\r\n for (int j = i; j < size; j++) {\r\n sb.append(\"|\");\r\n }\r\n sb.append(\"\\n\");\r\n }\r\n //sb.setLength(sb.length() - 1);\r\n return sb.toString();\r\n }\r\n */\r\n else {\r\n StringBuffer sb = new StringBuffer(); \r\n return sb.toString();\r\n }\r\n \r\n\t}", "public void mo21782G() {\n }", "public static void listing5_15() {\n }", "public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }", "public void mo23813b() {\n }", "static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n String string0 = SQLUtil.normalize(\"^`-{}\\\"8M,,3\", true);\n assertEquals(\"^ ` - { } \\\"8M,,3\\\"\", string0);\n }", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public long mo9743h() {\n return mo9784w();\n }", "public int method_6437() {\r\n return this.field_6227;\r\n }", "public void mo4359a() {\n }", "public static String m3984tk(String str) {\n AppMethodBeat.m2504i(93204);\n int lastIndexOf = str.lastIndexOf(\";?enc=\");\n String trim;\n if (lastIndexOf > 0) {\n trim = str.substring(lastIndexOf + 6).trim();\n AppMethodBeat.m2505o(93204);\n return trim;\n }\n trim = \"\";\n AppMethodBeat.m2505o(93204);\n return trim;\n }", "private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }", "String m6857a() {\n return this.f5237h;\n }", "void mo54435d();", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "public int m224a() {\n return 1;\n }", "public String getLine5() {\n return line5;\n }" ]
[ "0.5543429", "0.55070496", "0.5428053", "0.53873533", "0.538443", "0.53728443", "0.5368971", "0.53544784", "0.53167313", "0.53115666", "0.52909005", "0.5287665", "0.52709", "0.5269973", "0.5269973", "0.5269973", "0.5269973", "0.5269973", "0.5269973", "0.5269973", "0.5261741", "0.52540314", "0.5251864", "0.52323145", "0.5203473", "0.5201073", "0.51983726", "0.51954085", "0.5176129", "0.5164849", "0.51544654", "0.5154396", "0.5142828", "0.5138137", "0.5131292", "0.51225674", "0.5096567", "0.5094463", "0.5089711", "0.5085987", "0.50732446", "0.50728357", "0.50708234", "0.5039855", "0.5033073", "0.5030233", "0.5029559", "0.50290495", "0.50169414", "0.50119823", "0.50119203", "0.5008783", "0.5007444", "0.50011045", "0.5001069", "0.5000262", "0.4995043", "0.4989182", "0.49867588", "0.49852064", "0.49845237", "0.4980739", "0.49803755", "0.49791878", "0.49761587", "0.4963895", "0.49635", "0.4959107", "0.49553022", "0.49544322", "0.49540484", "0.49435785", "0.494204", "0.49173567", "0.4915034", "0.49120232", "0.4908406", "0.49070284", "0.49061054", "0.49044073", "0.48973972", "0.4897077", "0.4896507", "0.48954627", "0.48941028", "0.4888478", "0.4888449", "0.48862845", "0.4885389", "0.48846683", "0.48826304", "0.48813143", "0.48775163", "0.48774216", "0.487432", "0.4872866", "0.48695996", "0.4866847", "0.48624477", "0.48599994", "0.4859146" ]
0.0
-1
/ 548: / 549:
public List<ConceptoRetencionSRI> autocompletarConceptoRetencionIVASRI(String consulta) /* 550: */ { /* 551:583 */ String consultaMayuscula = consulta.toUpperCase(); /* 552:584 */ List<ConceptoRetencionSRI> lista = new ArrayList(); /* 553:586 */ for (ConceptoRetencionSRI conceptoRetencionSRI : getListaConceptoRetencionSRI()) { /* 554:587 */ if (((conceptoRetencionSRI.getCodigo().toUpperCase().contains(consultaMayuscula)) || /* 555:588 */ (conceptoRetencionSRI.getNombre().toUpperCase().contains(consultaMayuscula))) && /* 556:589 */ (conceptoRetencionSRI.getTipoConceptoRetencion().equals(TipoConceptoRetencion.IVA))) { /* 557:590 */ lista.add(conceptoRetencionSRI); /* 558: */ } /* 559: */ } /* 560:594 */ return lista; /* 561: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }", "@Test(timeout = 4000)\n public void test48() throws Throwable {\n String string0 = EWrapperMsgGenerator.realtimeBar(1, 845L, 251L, (-2474L), 1521.6451568161, 845L, 0L, 1, 3197);\n assertEquals(\"id=1 time = 845 open=251.0 high=-2474.0 low=1521.6451568161 close=845.0 volume=0 count=3197 WAP=1.0\", string0);\n }", "public void mo55254a() {\n }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "public final int mo50059a() {\n return 2;\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "C4945r5 mo19056B();", "public abstract void correctlyParsedUtterance(long ms);", "private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }", "private String m81849m() {\n String str;\n if (this.f58083o) {\n str = UrlUtil.m84496b(UrlUtil.m84494a(this.f58071c, C6969H.m41409d(\"G738BEA0FAD3C\")));\n } else {\n str = this.f58070b;\n }\n if (!TextUtils.isEmpty(str)) {\n this.f58072d = Uri.parse(str);\n }\n return str;\n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "public abstract void incorrectlyParsedUtterance(long ms);", "public void mo9848a() {\n }", "public void mo3749d() {\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n String string0 = EWrapperMsgGenerator.scannerDataEnd((-1344));\n assertEquals(\"id = -1344 =============== end ===============\", string0);\n }", "private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }", "@Test(timeout = 4000)\n public void test49() throws Throwable {\n String string0 = EWrapperMsgGenerator.currentTime((-532L));\n assertEquals(\"current time = -532 (Dec 31, 1969 11:51:08 PM)\", string0);\n }", "public void mo21794S() {\n }", "public void mo21783H() {\n }", "public void mo21877s() {\n }", "private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) ((int) (j - ((f / 100.0f) * j))));\n }", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "void mo54448m(int i);", "public void mo5248a() {\n }", "public void mo21867i() {\n mo21877s();\n }", "@Test(timeout = 4000)\n public void test39() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSnapshotEnd((-1165));\n assertEquals(\"id=-1165 =============== end ===============\", string0);\n }", "public void testYourFifthPartition() {\n\tSystem.out.print(\"\\nTesting Fifth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:1/a?key=value\", true); // domain + port + path + query\n executeTestPrintResult(\"http://abc.com/a?key=value\", true); // domain + path + query\n executeTestPrintResult(\"http://abc.com:1/a\", true); // domain + port + path\n executeTestPrintResult(\"http://abc.com:1?key=value\", true); // domain + port + query\n\n executeTestPrintResult(\"http://abc.com/a/b:80\", false); // domain + path + port\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c\", false); // domain + query + path\n executeTestPrintResult(\"http://abc.com?key=value:80\", false); // domain + query + port\n executeTestPrintResult(\"http://abc.com:1?key=value/a/b/c\", false); // domain + port + query + path\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c:80\", false); // domain + query + path + port\n executeTestPrintResult(\"http://abc.com?key=value:80/a/b/c\", false); // domain + query + port + path\n executeTestPrintResult(\"http://abc.com/a/b/c:80?key=value\", false); // domain + path + port + query\n executeTestPrintResult(\"http://abc.com/a/b/c?key=value:80\", false); // domain + path + query + port\n\t \n }", "private byte m1655h() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n char charAt2 = charSequence.charAt(i3);\n this.f2520e = charAt2;\n if (charAt2 == '<') {\n return 12;\n }\n if (charAt2 == '>') {\n break;\n } else if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i4 = this.f2519d;\n if (i4 <= 0) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n int i5 = i4 - 1;\n this.f2519d = i5;\n charAt = charSequence2.charAt(i5);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n }\n this.f2519d = i;\n this.f2520e = '>';\n return 13;\n }", "public int mo36g() {\n return 4;\n }", "public void mo21782G() {\n }", "public int arn() {\n return 383;\n }", "protected void mo6255a() {\n }", "private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }", "String m6857a() {\n return this.f5237h;\n }", "public void mo9233aH() {\n }", "public abstract void partiallyParsedUtterance(long ms);", "public int method_2436() {\r\n return 16;\r\n }", "public void mo44053a() {\n }", "public void method_4270() {}", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"_\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "C4945r5 mo19057F();", "public void mo21788M() {\n }", "@Test(timeout = 4000)\n public void test44() throws Throwable {\n String string0 = EWrapperMsgGenerator.accountDownloadEnd(\"6FL]:1rO^5$2j=[!jjK\");\n assertEquals(\"accountDownloadEnd: 6FL]:1rO^5$2j=[!jjK\", string0);\n }", "private byte m1656i() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 < this.f2518c) {\n CharSequence charSequence = this.f2516a;\n this.f2519d = i2 + 1;\n char charAt2 = charSequence.charAt(i2);\n this.f2520e = charAt2;\n if (charAt2 == '>') {\n return 12;\n }\n if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i3 = this.f2519d;\n if (i3 >= this.f2518c) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n this.f2519d = i3 + 1;\n charAt = charSequence2.charAt(i3);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n } else {\n this.f2519d = i;\n this.f2520e = '<';\n return 13;\n }\n }\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "private final void step5()\n\t { if (k == 0) return; /* for Bug 1 */ switch (b[k-1])\n\t { case 'a': if (ends(\"al\")) break; return;\n\t case 'c': if (ends(\"ance\")) break;\n\t if (ends(\"ence\")) break; return;\n\t case 'e': if (ends(\"er\")) break; return;\n\t case 'i': if (ends(\"ic\")) break; return;\n\t case 'l': if (ends(\"able\")) break;\n\t if (ends(\"ible\")) break; return;\n\t case 'n': if (ends(\"ant\")) break;\n\t if (ends(\"ement\")) break;\n\t if (ends(\"ment\")) break;\n\t /* element etc. not stripped before the m */\n\t if (ends(\"ent\")) break; return;\n\t case 'o': if (ends(\"ion\") && j >= 0 && (b[j] == 's' || b[j] == 't')) break;\n\t /* j >= 0 fixes Bug 2 */\n\t if (ends(\"ou\")) break; return;\n\t /* takes care of -ous */\n\t case 's': if (ends(\"ism\")) break; return;\n\t case 't': if (ends(\"ate\")) break;\n\t if (ends(\"iti\")) break; return;\n\t case 'u': if (ends(\"ous\")) break; return;\n\t case 'v': if (ends(\"ive\")) break; return;\n\t case 'z': if (ends(\"ize\")) break; return;\n\t default: return;\n\t }\n\t if (m() > 1) k = j;\n\t }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateNewsBulletin(11, 13, \"E{Iw-^%H:1$e/\", \"LW)W-|=b,lie*CW\");\n assertEquals(\"MsgId=11 :: MsgType=13 :: Origin=LW)W-|=b,lie*CW :: Message=E{Iw-^%H:1$e/\", string0);\n }", "public static int m8651d() {\n return 4;\n }", "public void mo6081a() {\n }", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "public final int mo9382ZU() {\n return 470;\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }", "private static boolean m55561ua(int i) {\n return i == 6;\n }", "public void mo23813b() {\n }", "@Test(timeout = 4000)\n public void test50() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickEFP((-2147), 10, 10, \".^|7={wR>bl,rlfYN\", 10, 484, \".^|7={wR>bl,rlfYN\", 484, 484);\n assertEquals(\"id=-2147 bidOptComp: basisPoints = 10.0/.^|7={wR>bl,rlfYN impliedFuture = 10.0 holdDays = 484 futureExpiry = .^|7={wR>bl,rlfYN dividendImpact = 484.0 dividends to expiry = 484.0\", string0);\n }", "public void mo21784I() {\n }", "abstract String mo1748c();", "public int mo36g() {\n return 8;\n }", "public void mo55177a() {\n C3561h5.m954c().mo55465a().execute(new C3634a());\n }", "public String method_2836() {\n return this.field_1648;\n }", "public void mo38117a() {\n }", "private void m4822r() {\n m4813i();\n this.f6612t = m4815k();\n this.f6595c.setImageDrawable(this.f6611s);\n if (m4816l()) {\n this.f6595c.setX((float) ((int) m4812h(this.f6609q, this.f6596d)));\n m4820p(1.0f);\n }\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }", "@Override\n\tpublic String toString() {\n\t\treturn ip + \" \"+ times;\n\t}", "public void mo55562a() {\n new C3547h(this, System.currentTimeMillis(), new C3623h()).mo55437a();\n C3754u5.m1743f().mo55859a();\n }", "private String m25428h() {\n if (this.a == null) {\n return null;\n }\n Uri parse;\n Builder builder;\n String a = AdSettings.m6374a();\n if (a != null) {\n if (!a.isEmpty()) {\n a = String.format(\"https://www.%s.facebook.com/audience_network/server_side_reward\", new Object[]{a});\n parse = Uri.parse(a);\n builder = new Builder();\n builder.scheme(parse.getScheme());\n builder.authority(parse.getAuthority());\n builder.path(parse.getPath());\n builder.query(parse.getQuery());\n builder.fragment(parse.getFragment());\n builder.appendQueryParameter(\"puid\", this.a.m7645a());\n builder.appendQueryParameter(\"pc\", this.a.m7646b());\n builder.appendQueryParameter(\"ptid\", this.f19103e);\n builder.appendQueryParameter(\"appid\", this.f19107i);\n return builder.build().toString();\n }\n }\n a = \"https://www.facebook.com/audience_network/server_side_reward\";\n parse = Uri.parse(a);\n builder = new Builder();\n builder.scheme(parse.getScheme());\n builder.authority(parse.getAuthority());\n builder.path(parse.getPath());\n builder.query(parse.getQuery());\n builder.fragment(parse.getFragment());\n builder.appendQueryParameter(\"puid\", this.a.m7645a());\n builder.appendQueryParameter(\"pc\", this.a.m7646b());\n builder.appendQueryParameter(\"ptid\", this.f19103e);\n builder.appendQueryParameter(\"appid\", this.f19107i);\n return builder.build().toString();\n }", "private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }", "public void mo4359a() {\n }", "public void print1T0255(){\n StringBuilder out = new StringBuilder();\n for (int i = 1; i <= 255; i++){\n out.append( i + \" \");\n }\n System.out.println( out.toString());\n }", "private void m50366E() {\n }", "public int mo4451d() {\n this.f2519d = 0;\n int i = 0;\n int i2 = 0;\n int i3 = 0;\n while (this.f2519d < this.f2518c && i == 0) {\n byte b = mo4450b();\n if (b != 0) {\n if (b == 1 || b == 2) {\n if (i3 == 0) {\n return 1;\n }\n } else if (b != 9) {\n switch (b) {\n case 14:\n case 15:\n i3++;\n i2 = -1;\n continue;\n case 16:\n case 17:\n i3++;\n i2 = 1;\n continue;\n case 18:\n i3--;\n i2 = 0;\n continue;\n }\n }\n } else if (i3 == 0) {\n return -1;\n }\n i = i3;\n }\n if (i == 0) {\n return 0;\n }\n if (i2 != 0) {\n return i2;\n }\n while (this.f2519d > 0) {\n switch (mo4449a()) {\n case 14:\n case 15:\n if (i == i3) {\n return -1;\n }\n break;\n case 16:\n case 17:\n if (i == i3) {\n return 1;\n }\n break;\n case 18:\n i3++;\n continue;\n }\n i3--;\n }\n return 0;\n }", "static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public void mo55583c() {\n C3561h5.m954c().mo55465a().execute(new C3629m());\n }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public void mo23349b() {\n C3902b.this.m16205g();\n }", "static void m14933d(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public void mo5996r() {\n Message obtainMessage = this.f5396P.obtainMessage(1);\n this.f5396P.removeMessages(1);\n this.f5396P.sendMessageDelayed(obtainMessage, 16);\n RecordService.C1445b bVar = this.f5401U;\n if (bVar != null) {\n this.f5441s = (float) bVar.mo6344e();\n this.f5443t = this.f5401U.mo6348i();\n }\n if (C1413m.m6844f()) {\n this.f5392L.mo6498a(this.f5443t, this.f5431n);\n this.f5392L.mo6500b(this.f5441s);\n } else if (m6595L()) {\n this.f5391K.mo6585a(this.f5443t, this.f5431n);\n this.f5391K.mo6586b(this.f5441s);\n } else {\n this.f5392L.mo6498a(this.f5443t, this.f5431n);\n this.f5392L.mo6500b(this.f5441s);\n }\n this.f5431n = false;\n }", "private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }", "@Override\r\n\tpublic String toString(String separator) {\n\t\treturn M1022C8 + separator + M1022C7 + separator + M1022C183 + separator + M1022C31 + separator + M1022C195 + separator + M1022C32 + separator\r\n\t\t\t\t+ M1022C210 + separator + M1022C68 + separator + M1022C67 + separator + M1022C62 + separator + M1022C61 + separator + M1022C213 + separator\r\n\t\t\t\t+ M1022C204 + separator + M1022C62 + separator + M1022C68 + separator + M1022C61 + separator + M1022C210 + separator + M1022C49 + separator\r\n\t\t\t\t+ M1022C67 + separator + M1022C213 + separator + M1022C49;\r\n\t}", "public static void m22735h() {\n if (f20301b.mo18963a()) {\n f20301b.mo18962a(C7268n.m22763a().mo18998b());\n }\n }", "@Test(timeout = 4000)\n public void test029() throws Throwable {\n StringReader stringReader0 = new StringReader(\"GD}>zPHIT2VcF.\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 0, 0, 1847);\n javaCharStream0.adjustBeginLineColumn((-2819), 2281);\n int int0 = javaCharStream0.getBeginLine();\n assertEquals((-2818), int0);\n }", "public void mo22955a() {\n for (C7059Ec ec : C7059Ec.m14677b(this.f13541a)) {\n if (!ec.mo22804e()) {\n mo22964h(ec);\n }\n }\n }", "static int m60358a(int i, byte b, short s) throws IOException {\n if ((b & 8) != (byte) 0) {\n short s2 = i - 1;\n }\n if (s <= s2) {\n return (short) (s2 - s);\n }\n throw C15933c.m60314b(\"PROTOCOL_ERROR padding %s > remaining length %s\", Short.valueOf(s), Integer.valueOf(s2));\n }", "public void mo21795T() {\n }", "@Test(timeout = 4000)\n public void test45() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateMktDepthL2(2146794261, 927, \"@\", 2146889800, (-180), 2146794261, (-1940));\n assertEquals(\"updateMktDepth: 2146794261 927 @ 2146889800 -180 2.146794261E9 -1940\", string0);\n }", "public final void mT__48() throws RecognitionException {\n try {\n int _type = T__48;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalIotLuaXtext.g:48:7: ( ':' )\n // InternalIotLuaXtext.g:48:9: ':'\n {\n match(':'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Test(timeout = 4000)\n public void test56() throws Throwable {\n String string0 = SQLUtil.normalize(\")]*/f/f2Nx{fI.* \", false);\n assertEquals(\") ] */ f / f2Nx { fI.*\", string0);\n }", "private final void m134908d(String str) {\n if (!TextUtils.isEmpty(str)) {\n String str2 = C6969H.m41409d(\"G738BDC12AA7FAF3BE7039107E4B48CDA6C8ED71FAD7F\") + str + '/';\n VideoXOnlineLog.f101073b.mo121420a(C6969H.m41409d(\"G6887D15AAA23AE3BA61A9F58FBE6838D2998C8\"), str2);\n MQTTClient a = MQTTClientManager.m55413a(C6969H.m41409d(\"G4DA6F33B8A1C9F16C522B96DDCD1\"));\n if (a != null) {\n ProtoAdapter<EventMessage> gVar = EventMessage.f96677a;\n C32569u.m150513a((Object) gVar, C6969H.m41409d(\"G4C95D014AB1DAE3AF50F974DBCC4E7F659B7F028\"));\n f97550g = a.mo57249a(str2, new MQTTWirePbConverter(gVar));\n MQTTTopic<EventMessage> oVar = f97550g;\n if (oVar == null) {\n C32569u.m150511a();\n }\n oVar.mo57278a((MQTTTopicListener<EventMessage>) f97552i, true);\n MQTTTopic<EventMessage> oVar2 = f97550g;\n if (oVar2 == null) {\n C32569u.m150511a();\n }\n oVar2.mo57274a(MQTTQosLevel.LEVEL_1, true);\n }\n }\n }", "C1458cs mo7613iS();", "public abstract long mo9748m();", "public int mo34973b() {\n return 48;\n }", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }" ]
[ "0.5511635", "0.53754437", "0.53006756", "0.53006756", "0.53006756", "0.53006756", "0.53006756", "0.53006756", "0.53006756", "0.5273051", "0.5262913", "0.52206075", "0.52068174", "0.5182465", "0.5149959", "0.512848", "0.5127424", "0.5096269", "0.5090565", "0.5086126", "0.50830984", "0.5061189", "0.5055627", "0.50390726", "0.50379187", "0.5027089", "0.50146973", "0.49972934", "0.49690488", "0.49525267", "0.4948767", "0.49346635", "0.4930937", "0.4923397", "0.4913259", "0.4912708", "0.4909547", "0.4903401", "0.48906502", "0.48860192", "0.48811615", "0.48795092", "0.4870467", "0.48651364", "0.48613918", "0.48473838", "0.48460665", "0.48374933", "0.483672", "0.4835968", "0.4833281", "0.4832085", "0.4831995", "0.48305652", "0.48281989", "0.4825534", "0.48234263", "0.48199767", "0.48106572", "0.48043582", "0.48004866", "0.47981024", "0.47953793", "0.47838405", "0.47817585", "0.47810316", "0.47804597", "0.47789815", "0.47647765", "0.47639182", "0.475016", "0.4742082", "0.47403172", "0.47356278", "0.4735349", "0.47331017", "0.47308797", "0.47269684", "0.47232953", "0.47226498", "0.4718579", "0.471552", "0.47132075", "0.47130424", "0.47102642", "0.4709642", "0.47088608", "0.47024545", "0.47021872", "0.46985996", "0.46965075", "0.46956837", "0.46930552", "0.469213", "0.46909526", "0.4690021", "0.46881834", "0.46878704", "0.46877763", "0.46872145", "0.4684449" ]
0.0
-1
/ 562: / 563:
public String actualizarValorRetencionListener() /* 564: */ { /* 565:599 */ DetalleFacturaProveedorSRI detalleFacturaProveedorSRI = (DetalleFacturaProveedorSRI)this.dtDetalleFacturaProveedorSRI.getRowData(); /* 566:600 */ this.servicioFacturaProveedorSRI.actualizarValorRetencion(detalleFacturaProveedorSRI); /* 567:601 */ return ""; /* 568: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m50366E() {\n }", "public void method_4270() {}", "public abstract long mo20901UQ();", "void m63698a() {\n m63702c();\n m63701b();\n }", "protected void mo6255a() {\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public abstract long mo13681c();", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "public int method_6437() {\r\n return this.field_6227;\r\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public abstract void mo53562a(C18796a c18796a);", "private void m50367F() {\n }", "public void mo21877s() {\n }", "public final void mo51373a() {\n }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public int method_2436() {\r\n return 16;\r\n }", "public void mo12628c() {\n }", "public abstract void mo6549b();", "public void mo55254a() {\n }", "public abstract long mo9229aD();", "public abstract int mo9754s();", "public void mo21794S() {\n }", "Info mo7564ix();", "public abstract long mo24410c();", "public void mo38117a() {\n }", "public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }", "public void mo23813b() {\n }", "public abstract long mo9743h();", "@Override\n\tpublic void challenge6() {\n\n\t}", "void mo3194r();", "void m5770d() throws C0841b;", "public void mo37873b() {\n C13262e eVar = C13262e.this;\n eVar.f34192f.mo38031a(eVar);\n }", "public abstract long mo9755t();", "C7562b<C10403b, C10328a> mo25041a();", "public static void m9105b(com.facebook.api.feedcache.db.FeedDbMutationService r5) {\n /*\n L_0x0000:\n r1 = r5.f5242q;\n monitor-enter(r1);\n r0 = r5.f5242q;\t Catch:{ all -> 0x004d }\n r0 = r0.isEmpty();\t Catch:{ all -> 0x004d }\n if (r0 == 0) goto L_0x0010;\n L_0x000b:\n r0 = 0;\n r5.f5240o = r0;\t Catch:{ all -> 0x004d }\n monitor-exit(r1);\t Catch:{ all -> 0x004d }\n return;\n L_0x0010:\n r0 = r5.f5242q;\t Catch:{ all -> 0x004d }\n r0 = r0.removeFirst();\t Catch:{ all -> 0x004d }\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbRequest) r0;\t Catch:{ all -> 0x004d }\n monitor-exit(r1);\t Catch:{ all -> 0x004d }\n r1 = \"FeedDbMutationService(%s)\";\n r2 = r0.getClass();\n r2 = r2.getSimpleName();\n r3 = -341619410; // 0xffffffffeba34d2e float:-3.9483876E26 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r1, r2, r3);\n r1 = -243934633; // 0xfffffffff175da57 float:-1.21740455E30 double:NaN;\n r1 = com.facebook.tools.dextr.runtime.detour.LoomLoggerDetour.a(r1);\n r2 = \"FeedDbMutationService\";\n r3 = r0.getClass();\n r3 = r3.getSimpleName();\n com.facebook.loom.logger.api.LoomLogger.a(r1, r2, r3);\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbInsertionRequest;\t Catch:{ all -> 0x0134 }\n if (r1 == 0) goto L_0x0050;\n L_0x0041:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbInsertionRequest) r0;\t Catch:{ all -> 0x0134 }\n r5.m9111a(r0);\t Catch:{ all -> 0x0134 }\n r0 = 1514815075; // 0x5a4a3e63 float:1.42316351E16 double:7.484180884E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x004d:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ }\n throw r0;\n L_0x0050:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbMutationRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0060;\n L_0x0054:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbMutationRequest) r0;\t Catch:{ }\n r5.m9100a(r0);\t Catch:{ }\n r0 = 32841027; // 0x1f51d43 float:9.0040775E-38 double:1.6225623E-316;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0060:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbStorySeenRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0070;\n L_0x0064:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbStorySeenRequest) r0;\t Catch:{ }\n r5.m9103a(r0);\t Catch:{ }\n r0 = -150761083; // 0xfffffffff7039185 float:-2.668525E33 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0070:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbImageCacheStateUpdateRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0080;\n L_0x0074:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbImageCacheStateUpdateRequest) r0;\t Catch:{ }\n r5.m9097a(r0);\t Catch:{ }\n r0 = -1582673432; // 0xffffffffa1aa51e8 float:-1.1541328E-18 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0080:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbSeeFirstClearRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0091;\n L_0x0084:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbSeeFirstClearRequest) r0;\t Catch:{ }\n r5.m9101a(r0);\t Catch:{ }\n r0 = -1051379810; // 0xffffffffc155379e float:-13.326078 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0091:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbCacheResultRerankRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00a2;\n L_0x0095:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbCacheResultRerankRequest) r0;\t Catch:{ }\n r5.m9094a(r0);\t Catch:{ }\n r0 = -521547659; // 0xffffffffe0e9d075 float:-1.3478476E20 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00a2:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbCacheRerankRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00b3;\n L_0x00a6:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbCacheRerankRequest) r0;\t Catch:{ }\n r5.m9093a(r0);\t Catch:{ }\n r0 = -495910365; // 0xffffffffe2710223 float:-1.1114548E21 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00b3:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbStoryImageUrlAddRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00c4;\n L_0x00b7:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbStoryImageUrlAddRequest) r0;\t Catch:{ }\n r5.m9102a(r0);\t Catch:{ }\n r0 = 1956524893; // 0x749e335d float:1.0027157E32 double:9.66651735E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00c4:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbDeleteStoriesRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00d5;\n L_0x00c8:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbDeleteStoriesRequest) r0;\t Catch:{ }\n r5.m9095a(r0);\t Catch:{ }\n r0 = 1671584920; // 0x63a25c98 float:5.990089E21 double:8.25872683E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00d5:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbDeleteStoryRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00e6;\n L_0x00d9:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbDeleteStoryRequest) r0;\t Catch:{ }\n r5.m9096a(r0);\t Catch:{ }\n r0 = -696100424; // 0xffffffffd68259b8 float:-7.1660925E13 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00e6:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbVpvOmnistoreSyncRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x00f5;\n L_0x00ea:\n r5.m9106c();\t Catch:{ }\n r0 = -1045059660; // 0xffffffffc1b5a7b4 float:-22.706886 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x00f5:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbLikeAndCommentCountUpdateRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0106;\n L_0x00f9:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbLikeAndCommentCountUpdateRequest) r0;\t Catch:{ }\n r5.m9098a(r0);\t Catch:{ }\n r0 = 759596755; // 0x2d4686d3 float:1.1284934E-11 double:3.752906613E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0106:\n r1 = r0 instanceof com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbLiveVideoStatusUpdateRequest;\t Catch:{ }\n if (r1 == 0) goto L_0x0117;\n L_0x010a:\n r0 = (com.facebook.api.feedcache.db.FeedDbMutationService.FeedDbLiveVideoStatusUpdateRequest) r0;\t Catch:{ }\n r5.m9099a(r0);\t Catch:{ }\n r0 = -1270711073; // 0xffffffffb4427cdf float:-1.8113086E-7 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0117:\n r1 = \"FeedDbMutationService\";\n r2 = \"Mutation request is not supported: %s\";\n r3 = 1;\n r3 = new java.lang.Object[r3];\t Catch:{ }\n r4 = 0;\n r0 = r0.getClass();\t Catch:{ }\n r0 = r0.getSimpleName();\t Catch:{ }\n r3[r4] = r0;\t Catch:{ }\n com.facebook.debug.log.BLog.c(r1, r2, r3);\t Catch:{ }\n r0 = 492192568; // 0x1d564338 float:2.8357415E-21 double:2.43175439E-315;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r0);\n goto L_0x0000;\n L_0x0134:\n r0 = move-exception;\n r1 = -693974918; // 0xffffffffd6a2c87a float:-8.9490962E13 double:NaN;\n com.facebook.tools.dextr.runtime.detour.TracerDetour.a(r1);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.api.feedcache.db.FeedDbMutationService.b(com.facebook.api.feedcache.db.FeedDbMutationService):void\");\n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "void m5768b() throws C0841b;", "public abstract Integer mo36210m();", "public abstract long mo9746k();", "public void mo6081a() {\n }", "public abstract int mo9753r();", "public final void mo65713j() {\n mo71771s();\n }", "public void method_6441() {\r\n int var1 = 0;\r\n\r\n class_1205 var2;\r\n for(Iterator var3 = this.field_6225.iterator(); var3.hasNext(); var1 += var2.method_6471()) {\r\n var2 = (class_1205)var3.next();\r\n var2.method_6475(var1);\r\n }\r\n\r\n }", "public void m23075a() {\n }", "public void method_191() {}", "public void mo56167c() {\n }", "public abstract long mo24409b();", "public void mo21785J() {\n }", "public void mo21792Q() {\n }", "void m5771e() throws C0841b;", "public int method_530() {\r\n return this.proxy.method_5603();\r\n }", "void m1864a() {\r\n }", "public abstract void mo4383c(long j);", "private C2101h m7462e() {\n int i = this.f5790b.f5938a.f5889a;\n if (this.f5790b.f5952o != null) {\n return this.f5790b.f5952o;\n }\n return this.f5791c.m7469a(i);\n }", "public void mo21879u() {\n }", "Aweme mo62993e();", "void m8368b();", "public static int m8655e() {\n return 8;\n }", "public void mo9233aH() {\n }", "public void mo21782G() {\n }", "public void mo3749d() {\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "public abstract long mo24412e();", "public void mo5062c(Result result) {\n }", "public abstract int mo8526p();", "public void mo4683c() {\n mo4679a(3);\n }", "C1458cs mo7613iS();", "private static long m60262a(java.lang.String r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = -1;\n if (r4 != 0) goto L_0x0005;\n L_0x0004:\n return r0;\n L_0x0005:\n r2 = java.lang.Long.parseLong(r4);\t Catch:{ NumberFormatException -> 0x000a }\n return r2;\n L_0x000a:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http.d.a(java.lang.String):long\");\n }", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }", "@Override\n\tpublic void challenge14() {\n\n\t}", "public void mo1962e() throws cf {\r\n }", "protected void m6157c(android.content.Context r7) {\n /*\n r6 = this;\n r0 = 2;\n r1 = m6143a();\t Catch:{ ms -> 0x0065, IOException -> 0x005d }\n r6.m6138a(r0, r1);\t Catch:{ ms -> 0x0065, IOException -> 0x005d }\n L_0x0008:\n r0 = 1;\n r1 = m6150c();\t Catch:{ ms -> 0x0063, IOException -> 0x005d }\n r6.m6138a(r0, r1);\t Catch:{ ms -> 0x0063, IOException -> 0x005d }\n L_0x0010:\n r0 = 25;\n r1 = m6147b();\t Catch:{ ms -> 0x0061, IOException -> 0x005d }\n r2 = r1.longValue();\t Catch:{ ms -> 0x0061, IOException -> 0x005d }\n r6.m6137a(r0, r2);\t Catch:{ ms -> 0x0061, IOException -> 0x005d }\n L_0x001d:\n r0 = r6.a;\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r1 = r6.b;\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r1 = m6145a(r0, r1);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r2 = 14;\n r0 = 0;\n r0 = r1.get(r0);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r0 = (java.lang.Long) r0;\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r4 = r0.longValue();\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r6.m6137a(r2, r4);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r2 = 15;\n r0 = 1;\n r0 = r1.get(r0);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r0 = (java.lang.Long) r0;\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r4 = r0.longValue();\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r6.m6137a(r2, r4);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r0 = r1.size();\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r2 = 3;\n if (r0 < r2) goto L_0x005c;\n L_0x004c:\n r2 = 16;\n r0 = 2;\n r0 = r1.get(r0);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r0 = (java.lang.Long) r0;\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r0 = r0.longValue();\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r6.m6137a(r2, r0);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n L_0x005c:\n return;\n L_0x005d:\n r0 = move-exception;\n goto L_0x005c;\n L_0x005f:\n r0 = move-exception;\n goto L_0x005c;\n L_0x0061:\n r0 = move-exception;\n goto L_0x001d;\n L_0x0063:\n r0 = move-exception;\n goto L_0x0010;\n L_0x0065:\n r0 = move-exception;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mr.c(android.content.Context):void\");\n }", "public void mo21779D() {\n }", "private void kk12() {\n\n\t}", "public void mo21786K() {\n }", "public void mo9848a() {\n }", "public abstract void mo56925d();", "public abstract int mo9749n();", "public void method_192() {}", "public final void mo58663a() {\n m113948b();\n }", "C4945r5 mo19056B();", "public final byte mo27873c() {\n return 6;\n }", "public abstract void mo4363a(int i, long j);", "protected void m6156b(android.content.Context r7) {\n /*\n r6 = this;\n r0 = 1;\n r1 = m6150c();\t Catch:{ ms -> 0x00a1, IOException -> 0x0090 }\n r6.m6138a(r0, r1);\t Catch:{ ms -> 0x00a1, IOException -> 0x0090 }\n L_0x0008:\n r0 = 2;\n r1 = m6143a();\t Catch:{ ms -> 0x009e, IOException -> 0x0090 }\n r6.m6138a(r0, r1);\t Catch:{ ms -> 0x009e, IOException -> 0x0090 }\n L_0x0010:\n r0 = m6147b();\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r0 = r0.longValue();\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r2 = 25;\n r6.m6137a(r2, r0);\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r2 = f7155q;\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r4 = 0;\n r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r2 == 0) goto L_0x0034;\n L_0x0025:\n r2 = 17;\n r4 = f7155q;\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r0 = r0 - r4;\n r6.m6137a(r2, r0);\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r0 = 23;\n r2 = f7155q;\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r6.m6137a(r0, r2);\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n L_0x0034:\n r1 = m6153e(r7);\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r2 = 31;\n r0 = 0;\n r0 = r1.get(r0);\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r0 = (java.lang.Long) r0;\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r4 = r0.longValue();\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r6.m6137a(r2, r4);\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r2 = 32;\n r0 = 1;\n r0 = r1.get(r0);\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r0 = (java.lang.Long) r0;\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r0 = r0.longValue();\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r6.m6137a(r2, r0);\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n L_0x0058:\n r0 = 33;\n r1 = m6151d();\t Catch:{ ms -> 0x0098, IOException -> 0x0090 }\n r2 = r1.longValue();\t Catch:{ ms -> 0x0098, IOException -> 0x0090 }\n r6.m6137a(r0, r2);\t Catch:{ ms -> 0x0098, IOException -> 0x0090 }\n L_0x0065:\n r0 = 27;\n r1 = r6.c;\t Catch:{ ms -> 0x0096, IOException -> 0x0090 }\n r1 = m6144a(r7, r1);\t Catch:{ ms -> 0x0096, IOException -> 0x0090 }\n r6.m6138a(r0, r1);\t Catch:{ ms -> 0x0096, IOException -> 0x0090 }\n L_0x0070:\n r0 = 29;\n r1 = r6.c;\t Catch:{ ms -> 0x0094, IOException -> 0x0090 }\n r1 = m6148b(r7, r1);\t Catch:{ ms -> 0x0094, IOException -> 0x0090 }\n r6.m6138a(r0, r1);\t Catch:{ ms -> 0x0094, IOException -> 0x0090 }\n L_0x007b:\n r0 = m6154f(r7);\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n r1 = 5;\n r2 = 0;\n r2 = r0[r2];\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n r2 = (long) r2;\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n r6.m6137a(r1, r2);\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n r1 = 6;\n r2 = 1;\n r0 = r0[r2];\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n r2 = (long) r0;\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n r6.m6137a(r1, r2);\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n L_0x008f:\n return;\n L_0x0090:\n r0 = move-exception;\n goto L_0x008f;\n L_0x0092:\n r0 = move-exception;\n goto L_0x008f;\n L_0x0094:\n r0 = move-exception;\n goto L_0x007b;\n L_0x0096:\n r0 = move-exception;\n goto L_0x0070;\n L_0x0098:\n r0 = move-exception;\n goto L_0x0065;\n L_0x009a:\n r0 = move-exception;\n goto L_0x0058;\n L_0x009c:\n r0 = move-exception;\n goto L_0x0034;\n L_0x009e:\n r0 = move-exception;\n goto L_0x0010;\n L_0x00a1:\n r0 = move-exception;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mr.b(android.content.Context):void\");\n }", "public int method_1549() {\r\n return this.field_1434;\r\n }", "public void method_6191() {\r\n super.method_6191();\r\n }", "public final int mo9382ZU() {\n return 470;\n }", "public static int m60268b(java.lang.String r3, int r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = java.lang.Long.parseLong(r3);\t Catch:{ NumberFormatException -> 0x0019 }\n r3 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n r2 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1));\n if (r2 <= 0) goto L_0x000f;\n L_0x000b:\n r3 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n return r3;\n L_0x000f:\n r3 = 0;\n r2 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1));\n if (r2 >= 0) goto L_0x0017;\n L_0x0015:\n r3 = 0;\n return r3;\n L_0x0017:\n r3 = (int) r0;\n return r3;\n L_0x0019:\n return r4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http.d.b(java.lang.String, int):int\");\n }", "private void m91737K() {\n String str = this.f73944a;\n boolean z = true;\n if (this.f73953m != 1) {\n z = false;\n }\n C28141am.m92411a(new C28311ag(str, z), new C28312ah(this.f73949f.hashCode()), this.f73944a);\n }", "public void mo21867i() {\n mo21877s();\n }", "public void mo21789N() {\n }", "public final void mo11687c() {\n }", "public void mo54369a() {\n m50958c();\n m50953a(0);\n }" ]
[ "0.62797946", "0.60405886", "0.6005067", "0.6004455", "0.60003537", "0.59967476", "0.59776586", "0.59702855", "0.58664066", "0.584748", "0.5839098", "0.5839098", "0.5839098", "0.5839098", "0.5839098", "0.5839098", "0.5839098", "0.58262366", "0.5815826", "0.5781893", "0.57798505", "0.57755166", "0.5775139", "0.5767844", "0.57643485", "0.57549447", "0.57479584", "0.5744597", "0.5739036", "0.571842", "0.5705815", "0.5694363", "0.56927073", "0.56852686", "0.5681496", "0.5645165", "0.5644438", "0.5628966", "0.5628885", "0.5622492", "0.56100464", "0.56033814", "0.56008923", "0.5596292", "0.5594088", "0.5591939", "0.55904955", "0.55894023", "0.5587558", "0.5585598", "0.55705756", "0.5562831", "0.5562552", "0.5561219", "0.5558808", "0.5551308", "0.5546546", "0.5543601", "0.55350715", "0.55305046", "0.5530481", "0.5528287", "0.5526123", "0.5525404", "0.5520955", "0.5513813", "0.5512595", "0.5511482", "0.55044144", "0.5503995", "0.5490948", "0.5488903", "0.54864675", "0.5483024", "0.5473206", "0.54712754", "0.54666144", "0.5465857", "0.5464813", "0.54511404", "0.54472166", "0.5445688", "0.54454106", "0.5445306", "0.54418015", "0.543718", "0.5434609", "0.54343176", "0.5429052", "0.54279727", "0.54262763", "0.54242545", "0.54233557", "0.54227626", "0.5420334", "0.5417759", "0.5414895", "0.5414098", "0.5413603", "0.54131055", "0.54122955" ]
0.0
-1
/ 569: / 570:
public String actualizarValorRetencionIVAListener() /* 571: */ { /* 572:605 */ DetalleFacturaProveedorSRI detalleFacturaProveedorSRI = (DetalleFacturaProveedorSRI)this.dtDetalleIVAFacturaProveedorSRI.getRowData(); /* 573:606 */ this.servicioFacturaProveedorSRI.actualizarValorRetencion(detalleFacturaProveedorSRI); /* 574:607 */ return ""; /* 575: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "private void m50366E() {\n }", "public void mo21877s() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo21794S() {\n }", "public void mo3749d() {\n }", "public void mo21779D() {\n }", "public void mo55254a() {\n }", "public void mo21782G() {\n }", "public void mo21785J() {\n }", "public void mo38117a() {\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "private void m50367F() {\n }", "protected void mo6255a() {\n }", "public void mo6081a() {\n }", "public void mo21789N() {\n }", "public void mo21783H() {\n }", "public void mo21791P() {\n }", "public void mo3376r() {\n }", "public void mo21780E() {\n }", "public void mo21793R() {\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "public final void mo51373a() {\n }", "public int method_6437() {\r\n return this.field_6227;\r\n }", "public void mo12628c() {\n }", "public abstract void mo56925d();", "public abstract void mo6549b();", "public void mo21787L() {\n }", "public void mo21792Q() {\n }", "public void mo44053a() {\n }", "public void mo2470d() {\n }", "public void mo3370l() {\n }", "public void mo56167c() {\n }", "public abstract int mo9754s();", "public abstract int mo8526p();", "public void mo6944a() {\n }", "Info mo7564ix();", "public void mo21825b() {\n }", "public void m23075a() {\n }", "public void mo9233aH() {\n }", "public void mo21878t() {\n }", "public void mo23813b() {\n }", "public void mo21795T() {\n }", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public final void mo91715d() {\n }", "void mo3194r();", "void mo57277b();", "public abstract long mo13681c();", "public void mo21784I() {\n }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public void mo115190b() {\n }", "private void kk12() {\n\n\t}", "public void mo12930a() {\n }", "public abstract void mo70713b();", "public void mo21879u() {\n }", "public abstract int mo9749n();", "public void mo5382o() {\n }", "public abstract int mo9753r();", "public void mo2740a() {\n }", "void mo72114c();", "void mo72113b();", "public void mo21781F() {\n }", "public void mo9848a() {\n }", "void mo21073d();", "void mo21072c();", "void mo57278c();", "public abstract String mo9751p();", "public int method_1549() {\r\n return this.field_1434;\r\n }", "public void mo4359a() {\n }", "public int method_2031() {\r\n return this.field_1790;\r\n }", "public void mo5099c() {\n }", "public abstract void mo27385c();", "public void mo21788M() {\n }", "public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }", "public abstract String mo41079d();", "void mo21070b();", "public void mo5248a() {\n }", "public static void listing5_14() {\n }", "public void mo115188a() {\n }", "long getUnknown72();", "public int method_2436() {\r\n return 16;\r\n }", "void mo60893b();", "public void skystonePos6() {\n }", "public void mo2471e() {\n }", "public int method_51() {\n return 1;\n }", "void mo80457c();", "public abstract long mo9229aD();", "public void mo97908d() {\n }", "void m1864a() {\r\n }", "void mo1507n();", "C4945r5 mo19056B();", "public void method_191() {}", "void mo21074e();", "public void mo1405e() {\n }" ]
[ "0.66171765", "0.6486232", "0.62725484", "0.6188897", "0.6188897", "0.6188897", "0.6188897", "0.6188897", "0.6188897", "0.6188897", "0.6179809", "0.6165523", "0.61633164", "0.6161371", "0.61446446", "0.610587", "0.6100921", "0.609876", "0.6081995", "0.60763085", "0.6034352", "0.60283", "0.6017769", "0.6003448", "0.60022354", "0.5997671", "0.5995446", "0.5985786", "0.59835684", "0.59776306", "0.5964418", "0.5956939", "0.5942562", "0.59422266", "0.59398216", "0.59353584", "0.59349626", "0.59339756", "0.59327996", "0.59295225", "0.59290135", "0.59249556", "0.59154314", "0.59057873", "0.588958", "0.5882555", "0.5879819", "0.5877844", "0.587141", "0.5870583", "0.58700186", "0.5861206", "0.5860788", "0.5860652", "0.58591104", "0.5856707", "0.5854644", "0.5848986", "0.5845347", "0.5841019", "0.58367646", "0.58185047", "0.5818198", "0.58155644", "0.58137006", "0.58114624", "0.5806407", "0.5804075", "0.5800758", "0.5796341", "0.5795068", "0.57860094", "0.5784115", "0.5784012", "0.5781448", "0.5764035", "0.5763895", "0.57585114", "0.5751305", "0.5751013", "0.5740425", "0.57293606", "0.57249594", "0.5718727", "0.5696899", "0.56939226", "0.5693743", "0.5687948", "0.5687023", "0.5685894", "0.5685749", "0.5685467", "0.5681116", "0.5680089", "0.56789315", "0.56775206", "0.5676591", "0.5672346", "0.56713784", "0.5645268", "0.56382996" ]
0.0
-1
/ 576: / 577:
public void actualizarConceptoRetencionSRI(SelectEvent event) /* 578: */ { /* 579:620 */ DetalleFacturaProveedorSRI detalleFacturaProveedorSRI = (DetalleFacturaProveedorSRI)this.dtDetalleFacturaProveedorSRI.getRowData(); /* 580:621 */ detalleFacturaProveedorSRI.setConceptoRetencionSRI((ConceptoRetencionSRI)event.getObject()); /* 581:622 */ this.servicioFacturaProveedorSRI.actualizarValorRetencion(detalleFacturaProveedorSRI); /* 582: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "protected void mo6255a() {\n }", "public void mo6081a() {\n }", "public final void mo8775b() {\n }", "Info mo7564ix();", "public void mo3376r() {\n }", "public void mo56167c() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo5251b() {\n }", "public void mo5248a() {\n }", "public void mo9848a() {\n }", "public void mo4359a() {\n }", "public void mo115190b() {\n }", "public abstract void mo6549b();", "public void mo21877s() {\n }", "private void m50366E() {\n }", "public void mo55583c() {\n C3561h5.m954c().mo55465a().execute(new C3629m());\n }", "void m8368b();", "C4945r5 mo19056B();", "public void mo3749d() {\n }", "private void m6585B() {\n this.f5395O = (TelephonyManager) getSystemService(\"phone\");\n this.f5399S = new C1425w(this.f5389I);\n this.f5404X = C1018a.m5416a(this.f5389I);\n }", "private void m50367F() {\n }", "public void mo21783H() {\n }", "void mo60893b();", "public void mo38117a() {\n }", "public void mo21782G() {\n }", "public void mo21791P() {\n }", "void mo80455b();", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "public static int m8641b() {\n return 1;\n }", "public void mo21794S() {\n }", "public void mo44053a() {\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "public void mo21785J() {\n }", "public final void mo51373a() {\n }", "private static boolean m55561ua(int i) {\n return i == 6;\n }", "public void mo5382o() {\n }", "public static int m8655e() {\n return 8;\n }", "public void mo5097b() {\n }", "public void mo55177a() {\n C3561h5.m954c().mo55465a().execute(new C3634a());\n }", "public static void listing5_16() {\n }", "public void mo21781F() {\n }", "public void mo21879u() {\n }", "C4945r5 mo19057F();", "public void mo21788M() {\n }", "void mo4833b();", "public void mo21779D() {\n }", "public void mo97908d() {\n }", "public void mo75192a() {\n AppMethodBeat.m2504i(65565);\n this.f17955a.setLength(0);\n this.f17956b.setText(\"\");\n this.f17957c.setText(\"\");\n AppMethodBeat.m2505o(65565);\n }", "public void mo9137b() {\n }", "void mo80457c();", "public void mo115188a() {\n }", "private void m6600Q() {\n this.f5397Q = new C1290d(this, (C1296Ua) null);\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(\"com.android.bbksoundrecorder.intent.action.RECORDER_STATE\");\n intentFilter.addAction(\"com.android.bbksoundrecorder.intent.action.HANDLE_ERROR\");\n intentFilter.addAction(\"android.intent.action.USER_SWITCHED\");\n C0900b.m4902a(this.f5389I).mo4900a(this.f5397Q, intentFilter);\n }", "public void mo21793R() {\n }", "public void mo6944a() {\n }", "public void mo21784I() {\n }", "public final void mo1285b() {\n }", "public void mo12628c() {\n }", "void mo88524c();", "C3676k mo12649b();", "void mo57277b();", "private final void m576b() {\n C2886bb bbVar = this.f1229b;\n bbVar.getClass();\n this.f1230c.mo44145a().mo43918a().addOnSuccessListener(this.f1236i.mo44145a(), C2963e.m573a(bbVar)).addOnFailureListener(this.f1236i.mo44145a(), C2964f.f1224a);\n }", "public int method_2436() {\r\n return 16;\r\n }", "void mo119582b();", "public void m23075a() {\n }", "public void mo68520e() {\n super.mo68520e();\n C26780aa.m87959a(this.itemView, mo75290r(), this.f77546j);\n C24942al.m81837c(mo75261ab(), this.f89221bo);\n C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"otherclick\").mo65283e(\"video\").mo65270a(mo75261ab());\n }", "private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public void mo97906c() {\n }", "private static C33023i m86585b() {\n return m86586c();\n }", "void mo57278c();", "public final int mo5376i() {\n RecyclerView recyclerView = this.f9709b;\n if (recyclerView == null) {\n return 0;\n }\n return recyclerView.getPaddingTop();\n }", "void mo5018b();", "private void m76764b() {\n this.f61647d = this.f61646c.getStreamMaxVolume(3);\n this.f61648e = this.f61647d / 15;\n if (this.f61648e == 0) {\n this.f61648e = 1;\n }\n m76765c();\n }", "public void mo21786K() {\n }", "public abstract void mo56925d();", "public final byte mo27873c() {\n return 6;\n }", "public void mo9233aH() {\n }", "private void m6597N() {\n C0938a.m5002a(\"SR/SoundRecorder\", \"<popClearDialogBox>\");\n String lowerCase = this.f5399S.mo6173f().getAbsolutePath().toLowerCase();\n if (this.f5419h) {\n C1492b.m7431a((Context) this, (CharSequence) getResources().getString(R.string.phone_mtp_space_expired_smartkey), 1).show();\n this.f5419h = false;\n }\n Intent intent = new Intent(\"com.iqoo.secure.LOW_MEMORY_WARNING\");\n intent.addFlags(268435456);\n intent.putExtra(\"require_size\", 5242880);\n intent.putExtra(\"pkg_name\", getPackageName());\n intent.putExtra(\"extra_loc\", 1);\n intent.putExtra(\"tips_title\", getResources().getString(R.string.manager_title));\n intent.putExtra(\"tips_title_all\", getResources().getString(R.string.unable_to_record));\n try {\n startActivity(intent);\n } catch (Exception unused) {\n Intent intent2 = new Intent();\n intent2.putExtra(\"BBKPhoneCardName\", lowerCase);\n intent2.setComponent(new ComponentName(\"com.android.filemanager\", \"com.android.filemanager.FileManagerActivity\"));\n startActivity(intent2);\n }\n }", "public void mo2470d() {\n }", "C1458cs mo7613iS();", "private static byte[] m2537c(Context context) {\n Throwable th;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n try {\n Utils.m2512a(byteArrayOutputStream, \"1.2.12.5\");\n Utils.m2512a(byteArrayOutputStream, C0820dq.m2443q(context));\n Utils.m2512a(byteArrayOutputStream, C0820dq.m2435i(context));\n Utils.m2512a(byteArrayOutputStream, C0820dq.m2432f(context));\n Utils.m2512a(byteArrayOutputStream, Build.MANUFACTURER);\n Utils.m2512a(byteArrayOutputStream, Build.MODEL);\n Utils.m2512a(byteArrayOutputStream, Build.DEVICE);\n Utils.m2512a(byteArrayOutputStream, C0820dq.m2444r(context));\n Utils.m2512a(byteArrayOutputStream, AppInfo.m2384c(context));\n Utils.m2512a(byteArrayOutputStream, AppInfo.m2385d(context));\n Utils.m2512a(byteArrayOutputStream, AppInfo.m2387f(context));\n byteArrayOutputStream.write(new byte[]{(byte) 0});\n bArr = byteArrayOutputStream.toByteArray();\n try {\n byteArrayOutputStream.close();\n } catch (Throwable th2) {\n th = th2;\n th.printStackTrace();\n return bArr;\n }\n } catch (Throwable th3) {\n th = th3;\n }\n return bArr;\n }", "private void m76768f() {\n m76770h();\n m76769g();\n }", "private void m7222b() {\n this.f5601w.mo5525a((C1272h) this);\n this.f5601w.mo5527a((C1280l) this);\n this.f5601w.mo5528a(this.f5580E);\n }", "void mo7353b();", "void mo54424b(int i);", "void mo80456b(Message message);", "private final com.google.wireless.android.finsky.dfe.p515h.p516a.ae m35733b(com.google.protobuf.nano.C7213a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.m33550a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 18: goto L_0x001f;\n case 26: goto L_0x002c;\n case 34: goto L_0x0039;\n case 42: goto L_0x004a;\n case 50: goto L_0x0057;\n case 56: goto L_0x0064;\n case 64: goto L_0x00a3;\n case 72: goto L_0x00b1;\n case 82: goto L_0x00bf;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r6.f38026c;\n if (r0 != 0) goto L_0x0019;\n L_0x0012:\n r0 = new com.google.android.finsky.cv.a.bd;\n r0.<init>();\n r6.f38026c = r0;\n L_0x0019:\n r0 = r6.f38026c;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x001f:\n r0 = r7.m33564f();\n r6.f38027d = r0;\n r0 = r6.f38025b;\n r0 = r0 | 1;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x002c:\n r0 = r7.m33564f();\n r6.f38028e = r0;\n r0 = r6.f38025b;\n r0 = r0 | 2;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0039:\n r0 = r6.f38029f;\n if (r0 != 0) goto L_0x0044;\n L_0x003d:\n r0 = new com.google.android.finsky.cv.a.ax;\n r0.<init>();\n r6.f38029f = r0;\n L_0x0044:\n r0 = r6.f38029f;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x004a:\n r0 = r7.m33564f();\n r6.f38030g = r0;\n r0 = r6.f38025b;\n r0 = r0 | 4;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0057:\n r0 = r7.m33564f();\n r6.f38031h = r0;\n r0 = r6.f38025b;\n r0 = r0 | 8;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0064:\n r1 = r6.f38025b;\n r1 = r1 | 16;\n r6.f38025b = r1;\n r1 = r7.m33573o();\n r2 = r7.m33567i();\t Catch:{ IllegalArgumentException -> 0x0090 }\n switch(r2) {\n case 0: goto L_0x0099;\n case 1: goto L_0x0099;\n case 2: goto L_0x0099;\n case 3: goto L_0x0099;\n case 4: goto L_0x0099;\n default: goto L_0x0075;\n };\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0075:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = 36;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = \" is not a valid enum Type\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0090 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0090:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x0099:\n r6.f38032i = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r6.f38025b;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2 | 16;\n r6.f38025b = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n goto L_0x0000;\n L_0x00a3:\n r0 = r7.m33563e();\n r6.f38033j = r0;\n r0 = r6.f38025b;\n r0 = r0 | 32;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00b1:\n r0 = r7.m33563e();\n r6.f38034k = r0;\n r0 = r6.f38025b;\n r0 = r0 | 64;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00bf:\n r0 = r6.f38035l;\n if (r0 != 0) goto L_0x00ca;\n L_0x00c3:\n r0 = new com.google.android.finsky.cv.a.cv;\n r0.<init>();\n r6.f38035l = r0;\n L_0x00ca:\n r0 = r6.f38035l;\n r7.m33552a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.h.a.ae.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.h.a.ae\");\n }", "public int mo9296bh() {\n return 0;\n }", "public void mo21880v() {\n }", "void mo56163g();", "void m1864a() {\r\n }", "public static void m72639a(com.p280ss.android.ugc.aweme.feed.model.Aweme r3, java.lang.String r4, int r5) {\n /*\n if (r3 == 0) goto L_0x006d\n boolean r0 = r3.isFamiliar()\n r1 = 1\n if (r0 != r1) goto L_0x006c\n boolean r0 = com.p280ss.android.ugc.aweme.utils.C43122ff.m136762a(r3)\n if (r0 == 0) goto L_0x0010\n goto L_0x006c\n L_0x0010:\n com.ss.android.ugc.aweme.app.g.d r0 = com.p280ss.android.ugc.aweme.app.p305g.C22984d.m75611a()\n java.lang.String r1 = \"enter_from\"\n java.lang.String r2 = \"homepage_hot\"\n com.ss.android.ugc.aweme.app.g.d r0 = r0.mo59973a(r1, r2)\n java.lang.String r1 = \"event_type\"\n com.ss.android.ugc.aweme.app.g.d r4 = r0.mo59973a(r1, r4)\n java.lang.String r0 = \"rec_uid\"\n java.lang.String r1 = com.p280ss.android.ugc.aweme.metrics.C33230ac.m107205a(r3)\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"req_id\"\n java.lang.String r1 = r3.getRequestId()\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"rec_reason\"\n com.ss.android.ugc.aweme.feed.model.RelationDynamicLabel r1 = r3.getRelationLabel()\n if (r1 == 0) goto L_0x0044\n java.lang.String r1 = r1.getLabelInfo()\n if (r1 != 0) goto L_0x0046\n L_0x0044:\n java.lang.String r1 = \"\"\n L_0x0046:\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"card_type\"\n java.lang.String r1 = \"item\"\n com.ss.android.ugc.aweme.app.g.d r4 = r4.mo59973a(r0, r1)\n java.lang.String r0 = \"group_id\"\n java.lang.String r3 = r3.getAid()\n com.ss.android.ugc.aweme.app.g.d r3 = r4.mo59973a(r0, r3)\n r4 = -1\n if (r5 == r4) goto L_0x0064\n java.lang.String r4 = \"feed_order\"\n r3.mo59970a(r4, r5)\n L_0x0064:\n java.lang.String r4 = \"follow_card\"\n java.util.Map<java.lang.String, java.lang.String> r3 = r3.f60753a\n com.p280ss.android.ugc.aweme.common.C6907h.m21524a(r4, r3)\n return\n L_0x006c:\n return\n L_0x006d:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.familiar.p966b.C21718a.m72639a(com.ss.android.ugc.aweme.feed.model.Aweme, java.lang.String, int):void\");\n }" ]
[ "0.6225482", "0.6225482", "0.6225482", "0.6225482", "0.6225482", "0.6225482", "0.6225482", "0.61683464", "0.5765951", "0.57503337", "0.55967987", "0.5594261", "0.558774", "0.5587109", "0.55467814", "0.54954624", "0.5495009", "0.54838145", "0.5448475", "0.54366547", "0.54200953", "0.54071754", "0.54005873", "0.53918964", "0.53819764", "0.53735757", "0.53692514", "0.53517735", "0.535087", "0.53477156", "0.5346838", "0.5338383", "0.53345156", "0.53328377", "0.5329725", "0.5315447", "0.53153735", "0.53075725", "0.5300176", "0.5299041", "0.52856934", "0.52840847", "0.52799726", "0.5273663", "0.5272838", "0.52682686", "0.5257871", "0.5252504", "0.5242346", "0.5242142", "0.5234049", "0.52306473", "0.5222582", "0.521599", "0.51894635", "0.5183172", "0.51790273", "0.5177114", "0.51654196", "0.5146347", "0.51451737", "0.5138688", "0.51333356", "0.51320475", "0.51309496", "0.51229197", "0.51194614", "0.5117156", "0.51137984", "0.5110948", "0.51002866", "0.5085195", "0.5083413", "0.5078534", "0.5077893", "0.50756496", "0.50745064", "0.50737417", "0.5073386", "0.5070237", "0.50688475", "0.5067673", "0.50662404", "0.5061732", "0.5059293", "0.5055099", "0.50537634", "0.5052825", "0.5049671", "0.5049088", "0.5041767", "0.503841", "0.5034471", "0.50327355", "0.5018843", "0.50159806", "0.50152683", "0.50059885", "0.5004672", "0.50037634", "0.50003004" ]
0.0
-1
/ 583: / 584:
public void actualizarConceptoRetencionIVASRI(SelectEvent event) /* 585: */ { /* 586:627 */ DetalleFacturaProveedorSRI detalleFacturaProveedorSRI = (DetalleFacturaProveedorSRI)this.dtDetalleIVAFacturaProveedorSRI.getRowData(); /* 587:628 */ detalleFacturaProveedorSRI.setConceptoRetencionSRI((ConceptoRetencionSRI)event.getObject()); /* 588:629 */ this.servicioFacturaProveedorSRI.actualizarValorRetencion(detalleFacturaProveedorSRI); /* 589: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo21877s() {\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo21783H() {\n }", "public void mo21794S() {\n }", "public void mo6081a() {\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "public void method_4270() {}", "public void mo21867i() {\n mo21877s();\n }", "public void mo3376r() {\n }", "public int arn() {\n return 383;\n }", "public void mo21782G() {\n }", "public void mo21784I() {\n }", "public void mo21785J() {\n }", "public void mo21789N() {\n }", "public void mo21879u() {\n }", "public void mo9233aH() {\n }", "private void m50366E() {\n }", "public void mo44053a() {\n }", "public void mo3749d() {\n }", "public void mo21779D() {\n }", "public void mo56167c() {\n }", "public void mo21878t() {\n }", "Info mo7564ix();", "public void testYourFifthPartition() {\n\tSystem.out.print(\"\\nTesting Fifth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:1/a?key=value\", true); // domain + port + path + query\n executeTestPrintResult(\"http://abc.com/a?key=value\", true); // domain + path + query\n executeTestPrintResult(\"http://abc.com:1/a\", true); // domain + port + path\n executeTestPrintResult(\"http://abc.com:1?key=value\", true); // domain + port + query\n\n executeTestPrintResult(\"http://abc.com/a/b:80\", false); // domain + path + port\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c\", false); // domain + query + path\n executeTestPrintResult(\"http://abc.com?key=value:80\", false); // domain + query + port\n executeTestPrintResult(\"http://abc.com:1?key=value/a/b/c\", false); // domain + port + query + path\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c:80\", false); // domain + query + path + port\n executeTestPrintResult(\"http://abc.com?key=value:80/a/b/c\", false); // domain + query + port + path\n executeTestPrintResult(\"http://abc.com/a/b/c:80?key=value\", false); // domain + path + port + query\n executeTestPrintResult(\"http://abc.com/a/b/c?key=value:80\", false); // domain + path + query + port\n\t \n }", "protected void mo6255a() {\n }", "C1458cs mo7613iS();", "public void mo21786K() {\n }", "public static void main(String[] ignore)\r\n/* 404: */ throws InterruptedException\r\n/* 405: */ {\r\n/* 406:358 */ String arg = \"drop(subject:object \\\"Object 1\\\", object:object \\\"Object 0\\\", from:time \\\"2011-08-25T20:30:08.733\\\", to:time \\\"2011-08-25T20:30:10.300\\\").\";\r\n/* 407:359 */ arg = arg + \"drop(subject:object \\\"Object 1\\\", object:object \\\"Object 0\\\", from:time \\\"2011-08-25T20:30:08.733\\\", to:time \\\"2011-08-25T20:30:10.000\\\").\";\r\n/* 408: */ \r\n/* 409: */ \r\n/* 410: */ \r\n/* 411:363 */ arg = arg + \"throw(subject:object \\\"Object 1\\\", object:object \\\"Object 0\\\", from:time \\\"2011-08-25T20:30:08.733\\\", to:time \\\"2011-08-25T20:30:09.467\\\").\";\r\n/* 412:364 */ arg = arg + \"bounce(subject:object \\\"Object 0\\\", from:time \\\"2011-08-25T20:30:08.933\\\", to:time \\\"2011-08-25T20:30:09.767\\\").\";\r\n/* 413: */ \r\n/* 414: */ \r\n/* 415: */ \r\n/* 416: */ \r\n/* 417: */ \r\n/* 418: */ \r\n/* 419: */ \r\n/* 420: */ \r\n/* 421: */ \r\n/* 422: */ \r\n/* 423: */ \r\n/* 424: */ \r\n/* 425: */ \r\n/* 426: */ \r\n/* 427: */ \r\n/* 428: */ \r\n/* 429: */ \r\n/* 430: */ \r\n/* 431: */ \r\n/* 432: */ \r\n/* 433:385 */ DisgustingMoebiusTranslator translator = new DisgustingMoebiusTranslator();\r\n/* 434:386 */ translator.translate(arg);\r\n/* 435:387 */ translator.commentOnAction(Long.valueOf(2000L));\r\n/* 436:388 */ Thread.sleep(2000L);\r\n/* 437:389 */ translator.commentOnAction(Long.valueOf(4000L));\r\n/* 438: */ }", "public void mo21788M() {\n }", "public void mo21792Q() {\n }", "public void mo21825b() {\n }", "public void mo21791P() {\n }", "public void mo5248a() {\n }", "void mo3194r();", "public void mo21795T() {\n }", "void mo1507n();", "public void mo4359a() {\n }", "public int method_2436() {\r\n return 16;\r\n }", "C4945r5 mo19056B();", "public void mo21793R() {\n }", "public void mo12628c() {\n }", "public void mo23813b() {\n }", "public void method_192() {}", "public void mo38117a() {\n }", "public final void mo92082N() {\n }", "private static String m33066X(String str, String str2, String str3) {\n String str4;\n int i = 1;\n AppMethodBeat.m2504i(135623);\n C5728b c5728b = new C5728b(str);\n if (!c5728b.exists()) {\n c5728b.mkdirs();\n }\n if (C5046bo.isNullOrNil(str2)) {\n str4 = str + \"da_\" + C5046bo.anU();\n if (!C5046bo.isNullOrNil(str3)) {\n str4 = str4 + \".\" + str3;\n }\n } else {\n if (!(C5046bo.isNullOrNil(str3) || str2.endsWith(str3))) {\n str2 = str2 + \".\" + str3;\n }\n str4 = str + str2;\n if (C5730e.m8628ct(str4)) {\n while (i < 20) {\n if (!C5730e.m8628ct(str + i + \"_\" + str2)) {\n str4 = str + i + \"_\" + str2;\n break;\n }\n i++;\n }\n if (i == 20) {\n str4 = str + \"da_\" + C5046bo.anU();\n if (!C5046bo.isNullOrNil(str3)) {\n str4 = str4 + \".\" + str3;\n }\n }\n }\n }\n try {\n if (!C5736j.m8649w(new C5728b(str4).dMC().dMD()).equalsIgnoreCase(C5736j.m8649w(new C5728b(str).dMD()))) {\n str4 = str + \"da_\" + C5046bo.anU();\n C4990ab.m7421w(\"MicroMsg.AppMsgLogic\", \"maybe DirTraversal attach. %s\", str4);\n }\n } catch (Exception e) {\n C4990ab.printErrStackTrace(\"MicroMsg.AppMsgLogic\", e, \"\", new Object[0]);\n str4 = str + \"da_\" + C5046bo.anU();\n if (!C5046bo.isNullOrNil(str3)) {\n str4 = str4 + \".\" + str3;\n }\n }\n AppMethodBeat.m2505o(135623);\n return str4;\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "public void mo21787L() {\n }", "public void mo21780E() {\n }", "public static int m8651d() {\n return 4;\n }", "private static String m33067a(String str, long j, int i, String str2, String str3, int i2, int i3, int i4) {\n AppMethodBeat.m2504i(135624);\n C30065b c30065b = new C30065b();\n c30065b.field_fileFullPath = str;\n c30065b.field_appId = str2;\n c30065b.field_sdkVer = (long) i;\n c30065b.field_mediaSvrId = str3;\n c30065b.field_totalLen = (long) i2;\n c30065b.field_status = 101;\n c30065b.field_isUpload = false;\n c30065b.field_createTime = C5046bo.anU();\n c30065b.field_lastModifyTime = C5046bo.anT();\n c30065b.field_msgInfoId = j;\n c30065b.field_netTimes = 0;\n c30065b.field_type = (long) i3;\n C4990ab.m7417i(\"MicroMsg.AppMsgLogic\", \"summerbig initDownloadAttach ret[%b], rowid[%d], field_totalLen[%d], type[%d], isLargeFile[%d], destFile[%s], stack[%s]\", Boolean.valueOf(C34832a.aUq().mo10101b((C4925c) c30065b)), Long.valueOf(c30065b.xDa), Long.valueOf(c30065b.field_totalLen), Long.valueOf(c30065b.field_type), Integer.valueOf(i4), str, C5046bo.dpG());\n AppMethodBeat.m2505o(135624);\n return str3;\n }", "public void mo9848a() {\n }", "private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }", "private void m50367F() {\n }", "public void mo21880v() {\n }", "private final com.google.android.p306h.p307a.p308a.C5685v m26927b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 18: goto L_0x0043;\n case 24: goto L_0x0054;\n case 32: goto L_0x005f;\n case 42: goto L_0x006a;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 101: goto L_0x003c;\n case 102: goto L_0x003c;\n case 103: goto L_0x003c;\n case 104: goto L_0x003c;\n case 105: goto L_0x003c;\n case 106: goto L_0x003c;\n case 107: goto L_0x003c;\n case 108: goto L_0x003c;\n case 201: goto L_0x003c;\n case 202: goto L_0x003c;\n case 203: goto L_0x003c;\n case 204: goto L_0x003c;\n case 205: goto L_0x003c;\n case 206: goto L_0x003c;\n case 207: goto L_0x003c;\n case 208: goto L_0x003c;\n case 209: goto L_0x003c;\n case 301: goto L_0x003c;\n case 302: goto L_0x003c;\n case 303: goto L_0x003c;\n case 304: goto L_0x003c;\n case 305: goto L_0x003c;\n case 306: goto L_0x003c;\n case 307: goto L_0x003c;\n case 401: goto L_0x003c;\n case 402: goto L_0x003c;\n case 403: goto L_0x003c;\n case 404: goto L_0x003c;\n case 501: goto L_0x003c;\n case 502: goto L_0x003c;\n case 503: goto L_0x003c;\n case 504: goto L_0x003c;\n case 601: goto L_0x003c;\n case 602: goto L_0x003c;\n case 603: goto L_0x003c;\n case 604: goto L_0x003c;\n case 605: goto L_0x003c;\n case 606: goto L_0x003c;\n case 607: goto L_0x003c;\n case 608: goto L_0x003c;\n case 609: goto L_0x003c;\n case 610: goto L_0x003c;\n case 611: goto L_0x003c;\n case 612: goto L_0x003c;\n case 613: goto L_0x003c;\n case 614: goto L_0x003c;\n case 615: goto L_0x003c;\n case 616: goto L_0x003c;\n case 617: goto L_0x003c;\n case 618: goto L_0x003c;\n case 619: goto L_0x003c;\n case 620: goto L_0x003c;\n case 621: goto L_0x003c;\n case 622: goto L_0x003c;\n case 623: goto L_0x003c;\n case 624: goto L_0x003c;\n case 625: goto L_0x003c;\n case 626: goto L_0x003c;\n case 627: goto L_0x003c;\n case 628: goto L_0x003c;\n case 629: goto L_0x003c;\n case 630: goto L_0x003c;\n case 631: goto L_0x003c;\n case 632: goto L_0x003c;\n case 633: goto L_0x003c;\n case 634: goto L_0x003c;\n case 635: goto L_0x003c;\n case 636: goto L_0x003c;\n case 637: goto L_0x003c;\n case 638: goto L_0x003c;\n case 639: goto L_0x003c;\n case 640: goto L_0x003c;\n case 641: goto L_0x003c;\n case 701: goto L_0x003c;\n case 702: goto L_0x003c;\n case 703: goto L_0x003c;\n case 704: goto L_0x003c;\n case 705: goto L_0x003c;\n case 706: goto L_0x003c;\n case 707: goto L_0x003c;\n case 708: goto L_0x003c;\n case 709: goto L_0x003c;\n case 710: goto L_0x003c;\n case 711: goto L_0x003c;\n case 712: goto L_0x003c;\n case 713: goto L_0x003c;\n case 714: goto L_0x003c;\n case 715: goto L_0x003c;\n case 716: goto L_0x003c;\n case 717: goto L_0x003c;\n case 718: goto L_0x003c;\n case 719: goto L_0x003c;\n case 720: goto L_0x003c;\n case 721: goto L_0x003c;\n case 722: goto L_0x003c;\n case 801: goto L_0x003c;\n case 802: goto L_0x003c;\n case 803: goto L_0x003c;\n case 901: goto L_0x003c;\n case 902: goto L_0x003c;\n case 903: goto L_0x003c;\n case 904: goto L_0x003c;\n case 905: goto L_0x003c;\n case 906: goto L_0x003c;\n case 907: goto L_0x003c;\n case 908: goto L_0x003c;\n case 909: goto L_0x003c;\n case 910: goto L_0x003c;\n case 911: goto L_0x003c;\n case 912: goto L_0x003c;\n case 1001: goto L_0x003c;\n case 1002: goto L_0x003c;\n case 1003: goto L_0x003c;\n case 1004: goto L_0x003c;\n case 1005: goto L_0x003c;\n case 1006: goto L_0x003c;\n case 1101: goto L_0x003c;\n case 1102: goto L_0x003c;\n case 1201: goto L_0x003c;\n case 1301: goto L_0x003c;\n case 1302: goto L_0x003c;\n case 1303: goto L_0x003c;\n case 1304: goto L_0x003c;\n case 1305: goto L_0x003c;\n case 1306: goto L_0x003c;\n case 1307: goto L_0x003c;\n case 1308: goto L_0x003c;\n case 1309: goto L_0x003c;\n case 1310: goto L_0x003c;\n case 1311: goto L_0x003c;\n case 1312: goto L_0x003c;\n case 1313: goto L_0x003c;\n case 1314: goto L_0x003c;\n case 1315: goto L_0x003c;\n case 1316: goto L_0x003c;\n case 1317: goto L_0x003c;\n case 1318: goto L_0x003c;\n case 1319: goto L_0x003c;\n case 1320: goto L_0x003c;\n case 1321: goto L_0x003c;\n case 1322: goto L_0x003c;\n case 1323: goto L_0x003c;\n case 1324: goto L_0x003c;\n case 1325: goto L_0x003c;\n case 1326: goto L_0x003c;\n case 1327: goto L_0x003c;\n case 1328: goto L_0x003c;\n case 1329: goto L_0x003c;\n case 1330: goto L_0x003c;\n case 1331: goto L_0x003c;\n case 1332: goto L_0x003c;\n case 1333: goto L_0x003c;\n case 1334: goto L_0x003c;\n case 1335: goto L_0x003c;\n case 1336: goto L_0x003c;\n case 1337: goto L_0x003c;\n case 1338: goto L_0x003c;\n case 1339: goto L_0x003c;\n case 1340: goto L_0x003c;\n case 1341: goto L_0x003c;\n case 1342: goto L_0x003c;\n case 1343: goto L_0x003c;\n case 1344: goto L_0x003c;\n case 1345: goto L_0x003c;\n case 1346: goto L_0x003c;\n case 1347: goto L_0x003c;\n case 1401: goto L_0x003c;\n case 1402: goto L_0x003c;\n case 1403: goto L_0x003c;\n case 1404: goto L_0x003c;\n case 1405: goto L_0x003c;\n case 1406: goto L_0x003c;\n case 1407: goto L_0x003c;\n case 1408: goto L_0x003c;\n case 1409: goto L_0x003c;\n case 1410: goto L_0x003c;\n case 1411: goto L_0x003c;\n case 1412: goto L_0x003c;\n case 1413: goto L_0x003c;\n case 1414: goto L_0x003c;\n case 1415: goto L_0x003c;\n case 1416: goto L_0x003c;\n case 1417: goto L_0x003c;\n case 1418: goto L_0x003c;\n case 1419: goto L_0x003c;\n case 1420: goto L_0x003c;\n case 1421: goto L_0x003c;\n case 1422: goto L_0x003c;\n case 1423: goto L_0x003c;\n case 1424: goto L_0x003c;\n case 1425: goto L_0x003c;\n case 1426: goto L_0x003c;\n case 1427: goto L_0x003c;\n case 1601: goto L_0x003c;\n case 1602: goto L_0x003c;\n case 1603: goto L_0x003c;\n case 1604: goto L_0x003c;\n case 1605: goto L_0x003c;\n case 1606: goto L_0x003c;\n case 1607: goto L_0x003c;\n case 1608: goto L_0x003c;\n case 1609: goto L_0x003c;\n case 1610: goto L_0x003c;\n case 1611: goto L_0x003c;\n case 1612: goto L_0x003c;\n case 1613: goto L_0x003c;\n case 1614: goto L_0x003c;\n case 1615: goto L_0x003c;\n case 1616: goto L_0x003c;\n case 1617: goto L_0x003c;\n case 1618: goto L_0x003c;\n case 1619: goto L_0x003c;\n case 1620: goto L_0x003c;\n case 1621: goto L_0x003c;\n case 1622: goto L_0x003c;\n case 1623: goto L_0x003c;\n case 1624: goto L_0x003c;\n case 1625: goto L_0x003c;\n case 1626: goto L_0x003c;\n case 1627: goto L_0x003c;\n case 1628: goto L_0x003c;\n case 1629: goto L_0x003c;\n case 1630: goto L_0x003c;\n case 1631: goto L_0x003c;\n case 1632: goto L_0x003c;\n case 1633: goto L_0x003c;\n case 1634: goto L_0x003c;\n case 1635: goto L_0x003c;\n case 1636: goto L_0x003c;\n case 1637: goto L_0x003c;\n case 1638: goto L_0x003c;\n case 1639: goto L_0x003c;\n case 1640: goto L_0x003c;\n case 1641: goto L_0x003c;\n case 1642: goto L_0x003c;\n case 1643: goto L_0x003c;\n case 1644: goto L_0x003c;\n case 1645: goto L_0x003c;\n case 1646: goto L_0x003c;\n case 1647: goto L_0x003c;\n case 1648: goto L_0x003c;\n case 1649: goto L_0x003c;\n case 1650: goto L_0x003c;\n case 1651: goto L_0x003c;\n case 1652: goto L_0x003c;\n case 1653: goto L_0x003c;\n case 1654: goto L_0x003c;\n case 1655: goto L_0x003c;\n case 1656: goto L_0x003c;\n case 1657: goto L_0x003c;\n case 1658: goto L_0x003c;\n case 1659: goto L_0x003c;\n case 1660: goto L_0x003c;\n case 1801: goto L_0x003c;\n case 1802: goto L_0x003c;\n case 1803: goto L_0x003c;\n case 1804: goto L_0x003c;\n case 1805: goto L_0x003c;\n case 1806: goto L_0x003c;\n case 1807: goto L_0x003c;\n case 1808: goto L_0x003c;\n case 1809: goto L_0x003c;\n case 1810: goto L_0x003c;\n case 1811: goto L_0x003c;\n case 1812: goto L_0x003c;\n case 1813: goto L_0x003c;\n case 1814: goto L_0x003c;\n case 1815: goto L_0x003c;\n case 1816: goto L_0x003c;\n case 1817: goto L_0x003c;\n case 1901: goto L_0x003c;\n case 1902: goto L_0x003c;\n case 1903: goto L_0x003c;\n case 1904: goto L_0x003c;\n case 1905: goto L_0x003c;\n case 1906: goto L_0x003c;\n case 1907: goto L_0x003c;\n case 1908: goto L_0x003c;\n case 1909: goto L_0x003c;\n case 2001: goto L_0x003c;\n case 2101: goto L_0x003c;\n case 2102: goto L_0x003c;\n case 2103: goto L_0x003c;\n case 2104: goto L_0x003c;\n case 2105: goto L_0x003c;\n case 2106: goto L_0x003c;\n case 2107: goto L_0x003c;\n case 2108: goto L_0x003c;\n case 2109: goto L_0x003c;\n case 2110: goto L_0x003c;\n case 2111: goto L_0x003c;\n case 2112: goto L_0x003c;\n case 2113: goto L_0x003c;\n case 2114: goto L_0x003c;\n case 2115: goto L_0x003c;\n case 2116: goto L_0x003c;\n case 2117: goto L_0x003c;\n case 2118: goto L_0x003c;\n case 2119: goto L_0x003c;\n case 2120: goto L_0x003c;\n case 2121: goto L_0x003c;\n case 2122: goto L_0x003c;\n case 2123: goto L_0x003c;\n case 2124: goto L_0x003c;\n case 2201: goto L_0x003c;\n case 2202: goto L_0x003c;\n case 2203: goto L_0x003c;\n case 2204: goto L_0x003c;\n case 2205: goto L_0x003c;\n case 2206: goto L_0x003c;\n case 2207: goto L_0x003c;\n case 2208: goto L_0x003c;\n case 2209: goto L_0x003c;\n case 2210: goto L_0x003c;\n case 2211: goto L_0x003c;\n case 2212: goto L_0x003c;\n case 2213: goto L_0x003c;\n case 2214: goto L_0x003c;\n case 2215: goto L_0x003c;\n case 2301: goto L_0x003c;\n case 2302: goto L_0x003c;\n case 2303: goto L_0x003c;\n case 2304: goto L_0x003c;\n case 2401: goto L_0x003c;\n case 2402: goto L_0x003c;\n case 2501: goto L_0x003c;\n case 2502: goto L_0x003c;\n case 2503: goto L_0x003c;\n case 2504: goto L_0x003c;\n case 2505: goto L_0x003c;\n case 2506: goto L_0x003c;\n case 2507: goto L_0x003c;\n case 2508: goto L_0x003c;\n case 2509: goto L_0x003c;\n case 2510: goto L_0x003c;\n case 2511: goto L_0x003c;\n case 2512: goto L_0x003c;\n case 2513: goto L_0x003c;\n case 2514: goto L_0x003c;\n case 2515: goto L_0x003c;\n case 2516: goto L_0x003c;\n case 2517: goto L_0x003c;\n case 2518: goto L_0x003c;\n case 2519: goto L_0x003c;\n case 2601: goto L_0x003c;\n case 2602: goto L_0x003c;\n case 2701: goto L_0x003c;\n case 2702: goto L_0x003c;\n case 2703: goto L_0x003c;\n case 2704: goto L_0x003c;\n case 2705: goto L_0x003c;\n case 2706: goto L_0x003c;\n case 2707: goto L_0x003c;\n case 2801: goto L_0x003c;\n case 2802: goto L_0x003c;\n case 2803: goto L_0x003c;\n case 2804: goto L_0x003c;\n case 2805: goto L_0x003c;\n case 2806: goto L_0x003c;\n case 2807: goto L_0x003c;\n case 2808: goto L_0x003c;\n case 2809: goto L_0x003c;\n case 2810: goto L_0x003c;\n case 2811: goto L_0x003c;\n case 2812: goto L_0x003c;\n case 2813: goto L_0x003c;\n case 2814: goto L_0x003c;\n case 2815: goto L_0x003c;\n case 2816: goto L_0x003c;\n case 2817: goto L_0x003c;\n case 2818: goto L_0x003c;\n case 2819: goto L_0x003c;\n case 2820: goto L_0x003c;\n case 2821: goto L_0x003c;\n case 2822: goto L_0x003c;\n case 2823: goto L_0x003c;\n case 2824: goto L_0x003c;\n case 2825: goto L_0x003c;\n case 2826: goto L_0x003c;\n case 2901: goto L_0x003c;\n case 2902: goto L_0x003c;\n case 2903: goto L_0x003c;\n case 2904: goto L_0x003c;\n case 2905: goto L_0x003c;\n case 2906: goto L_0x003c;\n case 2907: goto L_0x003c;\n case 3001: goto L_0x003c;\n case 3002: goto L_0x003c;\n case 3003: goto L_0x003c;\n case 3004: goto L_0x003c;\n case 3005: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 41;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum EventType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r6.f28837a = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x0043:\n r0 = r6.f28838b;\n if (r0 != 0) goto L_0x004e;\n L_0x0047:\n r0 = new com.google.android.h.a.a.u;\n r0.<init>();\n r6.f28838b = r0;\n L_0x004e:\n r0 = r6.f28838b;\n r7.a(r0);\n goto L_0x0000;\n L_0x0054:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28839c = r0;\n goto L_0x0000;\n L_0x005f:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28840d = r0;\n goto L_0x0000;\n L_0x006a:\n r0 = r6.f28841e;\n if (r0 != 0) goto L_0x0075;\n L_0x006e:\n r0 = new com.google.android.h.a.a.o;\n r0.<init>();\n r6.f28841e = r0;\n L_0x0075:\n r0 = r6.f28841e;\n r7.a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.h.a.a.v.b(com.google.protobuf.nano.a):com.google.android.h.a.a.v\");\n }", "public void mo21781F() {\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateNewsBulletin(11, 13, \"E{Iw-^%H:1$e/\", \"LW)W-|=b,lie*CW\");\n assertEquals(\"MsgId=11 :: MsgType=13 :: Origin=LW)W-|=b,lie*CW :: Message=E{Iw-^%H:1$e/\", string0);\n }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "public void mo2470d() {\n }", "public void mo5382o() {\n }", "@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }", "public final int mo4456a(C1902e c1902e, C1202f c1202f) {\n AppMethodBeat.m2504i(73517);\n this.ehi = c1202f;\n try {\n long yz = C5046bo.m7588yz();\n C1196a c1196a = new C1196a();\n c1196a.fsJ = new aip();\n c1196a.fsK = new aiq();\n c1196a.uri = \"/cgi-bin/mmexptappsvr-bin/getexptconfig\";\n c1196a.fsI = 2738;\n c1196a.fsL = 0;\n c1196a.fsM = 0;\n C7472b acD = c1196a.acD();\n aip aip = (aip) acD.fsG.fsP;\n aip.Scene = this.lNQ;\n aip.woB = ((Integer) C1720g.m3536RP().mo5239Ry().get(C5127a.USERINFO_GET_EXPT_LAST_TIME_SEC_INT, Integer.valueOf(0))).intValue();\n List<C7503a> brw = C45898a.bqR().lNF.brw();\n if (brw != null && brw.size() > 0) {\n aip.woC = new LinkedList();\n for (C7503a c7503a : brw) {\n C35969zf c35969zf = new C35969zf();\n c35969zf.weA = c7503a.field_exptId;\n c35969zf.weB = c7503a.field_groupId;\n c35969zf.weC = c7503a.field_exptSeq;\n aip.woC.add(c35969zf);\n }\n C4990ab.m7417i(\"MicroMsg.NetSceneGetExpt\", \"req local exptList [%s] \", Arrays.toString(brw.toArray()));\n }\n C7060h.pYm.mo8378a(863, 0, 1, false);\n String str = \"MicroMsg.NetSceneGetExpt\";\n String str2 = \"get expt config scene[%d] lastGetSvrSec[%d] localExptList[%d] cost[%d]\";\n Object[] objArr = new Object[4];\n objArr[0] = Integer.valueOf(aip.Scene);\n objArr[1] = Integer.valueOf(aip.woB);\n objArr[2] = Integer.valueOf(aip.woC != null ? aip.woC.size() : 0);\n objArr[3] = Long.valueOf(C5046bo.m7525az(yz));\n C4990ab.m7417i(str, str2, objArr);\n int a = mo4457a(c1902e, acD, this);\n AppMethodBeat.m2505o(73517);\n return a;\n } catch (Exception e) {\n C4990ab.printErrStackTrace(\"MicroMsg.NetSceneGetExpt\", e, \"get expt error\", new Object[0]);\n AppMethodBeat.m2505o(73517);\n return -1;\n }\n }", "private void m9024b() {\n AppMethodBeat.m2504i(98677);\n Object obj = null;\n if (this.f15283d != null && this.f15283d.size() > 0) {\n Object obj2;\n Iterator it = this.f15283d.keySet().iterator();\n while (true) {\n obj2 = obj;\n if (!it.hasNext()) {\n break;\n }\n String str = (String) it.next();\n this.f1556t.addRequestProperty(str, (String) this.f15283d.get(str));\n obj = str.toLowerCase().contains(\"host\") ? 1 : obj2;\n }\n obj = obj2;\n }\n if (obj == null) {\n this.f1556t.setRequestProperty(\"Host\", this.f1560x);\n }\n this.f1556t.setRequestProperty(\"Halley\", this.f15286g + \"-\" + this.f1554r + \"-\" + System.currentTimeMillis());\n if (this.f1553q) {\n this.f1556t.setRequestProperty(\"X-Online-Host\", this.f1560x);\n this.f1556t.setRequestProperty(\"x-tx-host\", this.f1560x);\n }\n AppMethodBeat.m2505o(98677);\n }", "public static int m8655e() {\n return 8;\n }", "@Override\n\tpublic void challenge17() {\n\n\t}", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "private final void m134908d(String str) {\n if (!TextUtils.isEmpty(str)) {\n String str2 = C6969H.m41409d(\"G738BDC12AA7FAF3BE7039107E4B48CDA6C8ED71FAD7F\") + str + '/';\n VideoXOnlineLog.f101073b.mo121420a(C6969H.m41409d(\"G6887D15AAA23AE3BA61A9F58FBE6838D2998C8\"), str2);\n MQTTClient a = MQTTClientManager.m55413a(C6969H.m41409d(\"G4DA6F33B8A1C9F16C522B96DDCD1\"));\n if (a != null) {\n ProtoAdapter<EventMessage> gVar = EventMessage.f96677a;\n C32569u.m150513a((Object) gVar, C6969H.m41409d(\"G4C95D014AB1DAE3AF50F974DBCC4E7F659B7F028\"));\n f97550g = a.mo57249a(str2, new MQTTWirePbConverter(gVar));\n MQTTTopic<EventMessage> oVar = f97550g;\n if (oVar == null) {\n C32569u.m150511a();\n }\n oVar.mo57278a((MQTTTopicListener<EventMessage>) f97552i, true);\n MQTTTopic<EventMessage> oVar2 = f97550g;\n if (oVar2 == null) {\n C32569u.m150511a();\n }\n oVar2.mo57274a(MQTTQosLevel.LEVEL_1, true);\n }\n }\n }", "static C2395k m11989h() {\n return new C2395k(\"Protocol message had too many levels of nesting. May be malicious. Use CodedInputStream.setRecursionLimit() to increase the depth limit.\");\n }", "static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public void mo115188a() {\n }", "private void kk12() {\n\n\t}", "public void mo6944a() {\n }", "public void mo2471e() {\n }", "@Test(timeout = 4000)\n public void test53() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The database key of the entry being cross referenced. Any fields that are missing from the current record are inherited from the field being cross referenced.\");\n assertEquals(\"th databas key of th entr being cros refer. any field that ar mis from th cur record ar inherit from th field being cros refer.\", string0);\n }", "@Test(timeout = 4000)\n public void test45() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateMktDepthL2(2146794261, 927, \"@\", 2146889800, (-180), 2146794261, (-1940));\n assertEquals(\"updateMktDepth: 2146794261 927 @ 2146889800 -180 2.146794261E9 -1940\", string0);\n }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "@Test(timeout = 4000)\n public void test48() throws Throwable {\n String string0 = EWrapperMsgGenerator.realtimeBar(1, 845L, 251L, (-2474L), 1521.6451568161, 845L, 0L, 1, 3197);\n assertEquals(\"id=1 time = 845 open=251.0 high=-2474.0 low=1521.6451568161 close=845.0 volume=0 count=3197 WAP=1.0\", string0);\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "static void m14933d(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public abstract int mo9754s();", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }", "public final String[] mo24226W(C7620bi c7620bi) {\n int i = 1;\n AppMethodBeat.m2504i(113302);\n String[] strArr = new String[2];\n String str = c7620bi.field_content;\n if (C5046bo.isNullOrNil(str)) {\n strArr[0] = \"\";\n strArr[1] = \"\";\n AppMethodBeat.m2505o(113302);\n return strArr;\n }\n int i2;\n String str2;\n if (c7620bi.field_isSend == 0) {\n i2 = 1;\n } else {\n i2 = 0;\n }\n if (C1855t.m3896kH(c7620bi.field_talker) && i2 != 0) {\n i2 = C1829bf.m3761ox(str);\n if (i2 != -1) {\n str = str.substring(i2 + 1).trim();\n }\n }\n C5136b Ro = ((C6982j) C1720g.m3528K(C6982j.class)).bOr().mo15261Ro(str);\n if (Ro.dua()) {\n str = Ro.label;\n str2 = Ro.eUu;\n strArr[0] = str;\n strArr[1] = str2;\n } else {\n strArr[0] = Ro.label;\n strArr[1] = \"\";\n }\n if (C5046bo.isNullOrNil(strArr[0]) && C5046bo.isNullOrNil(strArr[1])) {\n C4990ab.m7416i(\"MicroMsg.LocationServer\", \"pull from sever\");\n long j = c7620bi.field_msgId;\n if (!(this.nJC == null || this.nJC.contains(Long.valueOf(j)))) {\n str2 = c7620bi.field_content;\n if (c7620bi.field_isSend != 0) {\n i = 0;\n }\n if (C1855t.m3896kH(c7620bi.field_talker) && i != 0) {\n i = C1829bf.m3761ox(str2);\n if (i != -1) {\n str2 = str2.substring(i + 1).trim();\n }\n }\n Ro = C5136b.apD(str2);\n this.nJC.add(Long.valueOf(j));\n C18657c.agw().mo33924a(Ro.nJu, Ro.nJv, this.nJD, Long.valueOf(c7620bi.field_msgId));\n }\n }\n AppMethodBeat.m2505o(113302);\n return strArr;\n }", "@Override\n\tpublic void challenge6() {\n\n\t}", "public void mo4683c() {\n mo4679a(3);\n }", "public void mo115190b() {\n }", "public static void main(String[] args) throws JsonProcessingException {\n\t\tString txt= \"5C:A8:6A:ED:65:2D,B4:82:C5:00:22:DB,B4:82:C5:51:C2:30,\\\"UREC\\\",2097154,4,14,-59,6,2,Deauth by Inactivity or Many Retries,1517391829738\";\n\t\tString[] spliturl = txt.split(\",\");\n\t\tSystem.out.println(spliturl[0]);\n\t\tSystem.out.println(spliturl[4]);\n\t\tSystem.out.println(spliturl[5]);\n\t}", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "C2451d mo3408a(C2457e c2457e);", "public void mo9241ay() {\n }", "C7562b<C10403b, C10328a> mo25041a();", "public void mo8738a() {\n }" ]
[ "0.5474841", "0.5426062", "0.54220295", "0.54220295", "0.54220295", "0.54220295", "0.54220295", "0.54220295", "0.54220295", "0.5403186", "0.5318323", "0.5307021", "0.53050566", "0.52840626", "0.5282953", "0.51972145", "0.5178353", "0.5171052", "0.5153086", "0.51097065", "0.5106701", "0.5104385", "0.5101254", "0.51010144", "0.509422", "0.5067967", "0.50644594", "0.50628084", "0.50556743", "0.5045489", "0.5029803", "0.5023845", "0.50214565", "0.5021095", "0.5017647", "0.50070935", "0.5004372", "0.5003385", "0.4994537", "0.49917516", "0.49739945", "0.4961877", "0.49533287", "0.4952716", "0.49494183", "0.49474487", "0.49456653", "0.49425253", "0.4939041", "0.49306104", "0.4924035", "0.492375", "0.49226803", "0.49177805", "0.4893908", "0.48918363", "0.48863798", "0.4880552", "0.48783568", "0.48734075", "0.48695973", "0.48684192", "0.4868407", "0.48682043", "0.48562166", "0.4856164", "0.4849249", "0.48491353", "0.48422524", "0.48351902", "0.48258686", "0.4820728", "0.48190516", "0.48145592", "0.48032802", "0.4798413", "0.47906643", "0.47836608", "0.47836336", "0.4780424", "0.47801927", "0.47776154", "0.47740033", "0.47665718", "0.4766229", "0.47644925", "0.47617453", "0.47567156", "0.47561255", "0.4752879", "0.47503397", "0.47493652", "0.47492245", "0.4748356", "0.47470167", "0.47455317", "0.4744419", "0.4741472", "0.47394443", "0.47354582", "0.47313434" ]
0.0
-1
/ 590: / 591:
public boolean isMostrarBasesDetalle() /* 592: */ { /* 593:638 */ return this.mostrarBasesDetalle; /* 594: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public void mo55254a() {\n }", "public void method_4270() {}", "public void mo21794S() {\n }", "C4945r5 mo19056B();", "public void mo21877s() {\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "public void mo6081a() {\n }", "public void mo21785J() {\n }", "public void mo21782G() {\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "public void mo21789N() {\n }", "public void mo9233aH() {\n }", "public void mo21791P() {\n }", "public void mo21793R() {\n }", "private void m9222a(C5915m c5915m) {\n int i = 0;\n switch (c5915m.dRL()) {\n case 0:\n C31085l.m50143a(this.AAJ, 0, (long) c5915m.readByte());\n return;\n case 2:\n C31085l.m50143a(this.AAJ, 2, (long) c5915m.readShort());\n return;\n case 3:\n C31085l.m50144b(this.AAJ, 3, (long) c5915m.readChar());\n return;\n case 4:\n C31085l.m50143a(this.AAJ, 4, (long) c5915m.readInt());\n return;\n case 6:\n C31085l.m50143a(this.AAJ, 6, c5915m.readLong());\n return;\n case 16:\n C31085l.m50145c(this.AAJ, 16, ((long) Float.floatToIntBits(c5915m.readFloat())) << 32);\n return;\n case 17:\n C31085l.m50145c(this.AAJ, 17, Double.doubleToLongBits(c5915m.readDouble()));\n return;\n case 23:\n C31085l.m50144b(this.AAJ, 23, (long) C5920a.this.mo12572RL(c5915m.dRP()));\n return;\n case 24:\n C31085l.m50144b(this.AAJ, 24, (long) C5920a.this.mo12573RM(c5915m.dRQ()));\n return;\n case 25:\n C31085l.m50144b(this.AAJ, 25, (long) C5920a.this.mo12575RO(c5915m.dRR()));\n return;\n case 26:\n C31085l.m50144b(this.AAJ, 26, (long) C5920a.this.mo12576RP(c5915m.dRT()));\n return;\n case 27:\n C31085l.m50144b(this.AAJ, 27, (long) C5920a.this.mo12575RO(c5915m.dRS()));\n return;\n case C31128d.MIC_BASE_CHANNELSHARPEN /*28*/:\n m9223id(28, 0);\n mo12590c(c5915m);\n return;\n case 29:\n m9223id(29, 0);\n mo12589b(c5915m);\n return;\n case 30:\n c5915m.dRU();\n m9223id(30, 0);\n return;\n case 31:\n if (c5915m.readBoolean()) {\n i = 1;\n }\n m9223id(31, i);\n return;\n default:\n throw new C36548j(\"Unexpected type: \" + Integer.toHexString(c5915m.dRL()));\n }\n }", "public void mo3749d() {\n }", "public void mo21783H() {\n }", "void mo3194r();", "public void mo3376r() {\n }", "C1458cs mo7613iS();", "private void m50366E() {\n }", "public void mo21795T() {\n }", "public void mo12628c() {\n }", "public void mo56167c() {\n }", "public void mo115190b() {\n }", "public void mo44053a() {\n }", "public void mo21788M() {\n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "public void mo21787L() {\n }", "public void mo21786K() {\n }", "public final void mo92082N() {\n }", "C4945r5 mo19057F();", "public void mo9848a() {\n }", "public int arn() {\n return 383;\n }", "public void mo21779D() {\n }", "public void mo21792Q() {\n }", "public void mo23813b() {\n }", "public void mo21878t() {\n }", "public void mo38117a() {\n }", "public final int mo50059a() {\n return 2;\n }", "public void mo21784I() {\n }", "public void mo9241ay() {\n }", "void mo1507n();", "public void mo21780E() {\n }", "public abstract int mo9754s();", "public void mo21825b() {\n }", "public void mo12930a() {\n }", "public void mo5382o() {\n }", "public void mo4359a() {\n }", "public void mo5099c() {\n }", "C20254v mo54454s(int i);", "C15430g mo56154a();", "void mo60893b();", "public void mo5248a() {\n }", "public void mo21879u() {\n }", "C20259y mo54455t(int i);", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "public abstract long mo9755t();", "public void mo115188a() {\n }", "public void mo6944a() {\n }", "C2451d mo3408a(C2457e c2457e);", "private void kk12() {\n\n\t}", "public void mo3370l() {\n }", "public abstract int mo9753r();", "protected void mo6255a() {\n }", "void mo57278c();", "public void mo21867i() {\n mo21877s();\n }", "public abstract int mo9749n();", "public void mo2740a() {\n }", "public abstract String mo9751p();", "public void mo2470d() {\n }", "void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);", "public void mo8738a() {\n }", "int method20()\n {\n return 579190;\n }", "Info mo7564ix();", "public final void mo51373a() {\n }", "public abstract int mo8526p();", "public void mo5097b() {\n }", "public static int m8651d() {\n return 4;\n }", "public void method_191() {}", "abstract String mo1748c();", "@Override\n\tpublic void challenge9() {\n\n\t}", "public void mo9137b() {\n }", "void mo56163g();", "private void m50367F() {\n }", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "public final void mo91715d() {\n }", "void mo54435d();", "public void mo4683c() {\n mo4679a(3);\n }", "public void m23075a() {\n }", "public void mo1531a() {\n }", "public void mo55177a() {\n C3496e5.m699h().mo55344a(C3633q.this.f1485a);\n }", "public void mo38850q() {\n }" ]
[ "0.61623806", "0.61623806", "0.61623806", "0.61623806", "0.61623806", "0.61623806", "0.61623806", "0.61491394", "0.6119208", "0.6060411", "0.5982093", "0.5938818", "0.59374624", "0.58557403", "0.5832529", "0.58183354", "0.57944566", "0.57935137", "0.57853425", "0.5767942", "0.5751631", "0.57508755", "0.573542", "0.5730318", "0.57256633", "0.5720109", "0.5717391", "0.57167435", "0.57093203", "0.57019526", "0.56939316", "0.5691772", "0.56711304", "0.5668914", "0.56654483", "0.5657182", "0.56488866", "0.56439227", "0.5634929", "0.56328744", "0.5617818", "0.5613521", "0.561269", "0.56108236", "0.5610522", "0.56027937", "0.5593114", "0.5579703", "0.5579389", "0.5559711", "0.5558792", "0.5548667", "0.5547207", "0.5537687", "0.553207", "0.55302346", "0.552537", "0.55238163", "0.55192894", "0.5517689", "0.55085874", "0.55081594", "0.5494139", "0.5490437", "0.54875046", "0.5473491", "0.5470772", "0.54681253", "0.54623526", "0.5458282", "0.5456395", "0.54480714", "0.5447491", "0.544151", "0.54302686", "0.54299486", "0.54227203", "0.5416813", "0.5414763", "0.5413648", "0.5408539", "0.54082435", "0.5407157", "0.54069567", "0.5406547", "0.5405359", "0.54023945", "0.53835124", "0.5383102", "0.53822476", "0.5380116", "0.5376458", "0.5373631", "0.53727084", "0.5363942", "0.5358226", "0.535587", "0.53547865", "0.53530455", "0.53528714", "0.5352743" ]
0.0
-1
/ 595: / 596:
public void setMostrarBasesDetalle(boolean mostrarBasesDetalle) /* 597: */ { /* 598:648 */ this.mostrarBasesDetalle = mostrarBasesDetalle; /* 599: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_4270() {}", "public void mo21794S() {\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public void mo21795T() {\n }", "public void mo21877s() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "C4945r5 mo19056B();", "public void mo55254a() {\n }", "C1458cs mo7613iS();", "private void m50366E() {\n }", "public final int mo50059a() {\n return 2;\n }", "public abstract long mo9755t();", "public void mo9848a() {\n }", "public void mo21782G() {\n }", "public void mo21786K() {\n }", "public void mo21783H() {\n }", "public void mo3749d() {\n }", "public void mo21785J() {\n }", "private void method_268(int var1, int var2, int var3, int var4, byte[] var5) {\n int var6 = var2 + var5[var1 + 5];\n int var7 = var3 - var5[var1 + 6];\n int var8 = var5[var1 + 3];\n int var9 = var5[var1 + 4];\n int var10 = var5[var1] * 16384 + var5[var1 + 1] * 128 + var5[var1 + 2];\n int var11 = var6 + var7 * this.field_723;\n int var12 = this.field_723 - var8;\n int var13 = 0;\n int var14;\n if(var7 < this.field_743) {\n var14 = this.field_743 - var7;\n var9 -= var14;\n var7 = this.field_743;\n var10 += var14 * var8;\n var11 += var14 * this.field_723;\n }\n\n if(var7 + var9 >= this.field_744) {\n var9 -= var7 + var9 - this.field_744 + 1;\n }\n\n if(var6 < this.field_745) {\n var14 = this.field_745 - var6;\n var8 -= var14;\n var6 = this.field_745;\n var10 += var14;\n var11 += var14;\n var13 += var14;\n var12 += var14;\n }\n\n if(var6 + var8 >= this.field_746) {\n var14 = var6 + var8 - this.field_746 + 1;\n var8 -= var14;\n var13 += var14;\n var12 += var14;\n }\n\n if(var8 > 0 && var9 > 0) {\n this.method_269(this.pixels, var5, var4, var10, var11, var8, var9, var12, var13);\n }\n\n }", "public void mo12628c() {\n }", "public void mo21789N() {\n }", "void mo3194r();", "public void mo21878t() {\n }", "public void mo21867i() {\n mo21877s();\n }", "public void func_70295_k_() {}", "public void mo21793R() {\n }", "public void mo9233aH() {\n }", "C4945r5 mo19057F();", "public final void mo7596sH(String str) {\n }", "public void mo21792Q() {\n }", "public int arn() {\n return 383;\n }", "private void m50367F() {\n }", "public int mo36g() {\n return 4;\n }", "Info mo7564ix();", "public int method_2436() {\r\n return 16;\r\n }", "public abstract int mo9754s();", "public void mo21788M() {\n }", "public void mo38117a() {\n }", "@Test(timeout = 4000)\n public void test48() throws Throwable {\n String string0 = EWrapperMsgGenerator.realtimeBar(1, 845L, 251L, (-2474L), 1521.6451568161, 845L, 0L, 1, 3197);\n assertEquals(\"id=1 time = 845 open=251.0 high=-2474.0 low=1521.6451568161 close=845.0 volume=0 count=3197 WAP=1.0\", string0);\n }", "public void mo21787L() {\n }", "public void mo3376r() {\n }", "public void mo21779D() {\n }", "public void mo4359a() {\n }", "public final int mo6465d() {\n return 19729000;\n }", "public void mo5099c() {\n }", "public int method_2495(ahl var1, int var2, int var3, int var4) {\r\n int var6 = 0;\r\n String[] var10000 = class_752.method_4253();\r\n int var7 = 0;\r\n String[] var5 = var10000;\r\n int var8 = 0;\r\n int var9 = -1;\r\n\r\n int var12;\r\n while(true) {\r\n if(var9 <= 1) {\r\n var12 = -1;\r\n if(var5 == null) {\r\n break;\r\n }\r\n\r\n int var10 = -1;\r\n\r\n while(true) {\r\n if(var10 <= 1) {\r\n int var11 = var1.method_35(var2 + var10, var4 + var9).method_5715(var2 + var10, var3, var4 + var9);\r\n var6 += (var11 & 16711680) >> 16;\r\n var7 += (var11 & '\\uff00') >> 8;\r\n var8 += var11 & 255;\r\n ++var10;\r\n if(var5 == null) {\r\n break;\r\n }\r\n\r\n if(var5 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n ++var9;\r\n break;\r\n }\r\n\r\n if(var5 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n var12 = (var6 / 9 & 255) << 16 | (var7 / 9 & 255) << 8 | var8 / 9 & 255;\r\n break;\r\n }\r\n\r\n return var12;\r\n }", "public void mo21784I() {\n }", "public void mo21825b() {\n }", "private int m10257E() throws cf {\r\n int i = 0;\r\n int i2;\r\n if (this.g.mo1996h() >= 5) {\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n i2 = 0;\r\n int i3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n i3 |= (b & 127) << i2;\r\n if ((b & 128) != 128) {\r\n this.g.mo1993a(i + 1);\r\n return i3;\r\n }\r\n i2 += 7;\r\n i++;\r\n }\r\n } else {\r\n i2 = 0;\r\n while (true) {\r\n byte u = mo1978u();\r\n i2 |= (u & 127) << i;\r\n if ((u & 128) != 128) {\r\n return i2;\r\n }\r\n i += 7;\r\n }\r\n }\r\n }", "public void mo56167c() {\n }", "protected void mo6255a() {\n }", "public void mo115190b() {\n }", "@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }", "public void mo21791P() {\n }", "void mo57278c();", "C20259y mo54455t(int i);", "public void mo21780E() {\n }", "abstract String mo1748c();", "private void m3935R() {\n int i;\n int i2;\n if (mo4322L() == 1) {\n i2 = mo4758r() - mo4756p();\n i = mo4754o();\n } else {\n i2 = mo4741h() - mo4752n();\n i = mo4757q();\n }\n m3945n(i2 - i);\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "public void mo5097b() {\n }", "public void mo44053a() {\n }", "public void mo23813b() {\n }", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "@Test(timeout = 4000)\n public void test50() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickEFP((-2147), 10, 10, \".^|7={wR>bl,rlfYN\", 10, 484, \".^|7={wR>bl,rlfYN\", 484, 484);\n assertEquals(\"id=-2147 bidOptComp: basisPoints = 10.0/.^|7={wR>bl,rlfYN impliedFuture = 10.0 holdDays = 484 futureExpiry = .^|7={wR>bl,rlfYN dividendImpact = 484.0 dividends to expiry = 484.0\", string0);\n }", "private void kk12() {\n\n\t}", "public abstract long mo9748m();", "public void mo21879u() {\n }", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "public int mo36g() {\n return 8;\n }", "public void mo6081a() {\n }", "public void mo5248a() {\n }", "public abstract long mo9229aD();", "public void mo115188a() {\n }", "C7562b<C10403b, C10328a> mo25041a();", "public abstract int mo8526p();", "private void m9222a(C5915m c5915m) {\n int i = 0;\n switch (c5915m.dRL()) {\n case 0:\n C31085l.m50143a(this.AAJ, 0, (long) c5915m.readByte());\n return;\n case 2:\n C31085l.m50143a(this.AAJ, 2, (long) c5915m.readShort());\n return;\n case 3:\n C31085l.m50144b(this.AAJ, 3, (long) c5915m.readChar());\n return;\n case 4:\n C31085l.m50143a(this.AAJ, 4, (long) c5915m.readInt());\n return;\n case 6:\n C31085l.m50143a(this.AAJ, 6, c5915m.readLong());\n return;\n case 16:\n C31085l.m50145c(this.AAJ, 16, ((long) Float.floatToIntBits(c5915m.readFloat())) << 32);\n return;\n case 17:\n C31085l.m50145c(this.AAJ, 17, Double.doubleToLongBits(c5915m.readDouble()));\n return;\n case 23:\n C31085l.m50144b(this.AAJ, 23, (long) C5920a.this.mo12572RL(c5915m.dRP()));\n return;\n case 24:\n C31085l.m50144b(this.AAJ, 24, (long) C5920a.this.mo12573RM(c5915m.dRQ()));\n return;\n case 25:\n C31085l.m50144b(this.AAJ, 25, (long) C5920a.this.mo12575RO(c5915m.dRR()));\n return;\n case 26:\n C31085l.m50144b(this.AAJ, 26, (long) C5920a.this.mo12576RP(c5915m.dRT()));\n return;\n case 27:\n C31085l.m50144b(this.AAJ, 27, (long) C5920a.this.mo12575RO(c5915m.dRS()));\n return;\n case C31128d.MIC_BASE_CHANNELSHARPEN /*28*/:\n m9223id(28, 0);\n mo12590c(c5915m);\n return;\n case 29:\n m9223id(29, 0);\n mo12589b(c5915m);\n return;\n case 30:\n c5915m.dRU();\n m9223id(30, 0);\n return;\n case 31:\n if (c5915m.readBoolean()) {\n i = 1;\n }\n m9223id(31, i);\n return;\n default:\n throw new C36548j(\"Unexpected type: \" + Integer.toHexString(c5915m.dRL()));\n }\n }", "public void mo21880v() {\n }", "private int mo115245l() {\n int i = 0;\n while (i < this.f119298r) {\n int i2 = 0;\n while (i2 < this.f119297q.length && this.f119297q[i2] != i) {\n i2++;\n }\n if (i2 == this.f119297q.length) {\n return i;\n }\n i++;\n }\n return i;\n }", "public int method_6437() {\r\n return this.field_6227;\r\n }", "int mo4095a(int i);", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }", "@Test\n @Tag(\"slow\")\n public void test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, NumberContext.of(7, 4));\n }", "public abstract long mo9746k();", "private static int zzaz(java.lang.String r5) {\n /*\n int r0 = r5.hashCode()\n r1 = 0\n r2 = 3\n r3 = 2\n r4 = 1\n switch(r0) {\n case -1095064472: goto L_0x002a;\n case 187078296: goto L_0x0020;\n case 1504578661: goto L_0x0016;\n case 1505942594: goto L_0x000c;\n default: goto L_0x000b;\n }\n L_0x000b:\n goto L_0x0034\n L_0x000c:\n java.lang.String r0 = \"audio/vnd.dts.hd\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 3\n goto L_0x0035\n L_0x0016:\n java.lang.String r0 = \"audio/eac3\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 1\n goto L_0x0035\n L_0x0020:\n java.lang.String r0 = \"audio/ac3\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 0\n goto L_0x0035\n L_0x002a:\n java.lang.String r0 = \"audio/vnd.dts\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 2\n goto L_0x0035\n L_0x0034:\n r5 = -1\n L_0x0035:\n if (r5 == 0) goto L_0x0045\n if (r5 == r4) goto L_0x0043\n if (r5 == r3) goto L_0x0041\n if (r5 == r2) goto L_0x003e\n return r1\n L_0x003e:\n r5 = 8\n return r5\n L_0x0041:\n r5 = 7\n return r5\n L_0x0043:\n r5 = 6\n return r5\n L_0x0045:\n r5 = 5\n return r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzio.zzaz(java.lang.String):int\");\n }", "public abstract int mo9749n();", "private byte m1655h() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n char charAt2 = charSequence.charAt(i3);\n this.f2520e = charAt2;\n if (charAt2 == '<') {\n return 12;\n }\n if (charAt2 == '>') {\n break;\n } else if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i4 = this.f2519d;\n if (i4 <= 0) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n int i5 = i4 - 1;\n this.f2519d = i5;\n charAt = charSequence2.charAt(i5);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n }\n this.f2519d = i;\n this.f2520e = '>';\n return 13;\n }", "public abstract long mo24410c();", "static int m22556b(zzwt zzwt, cu cuVar) {\n zztw zztw = (zztw) zzwt;\n int d = zztw.mo4835d();\n if (d == -1) {\n d = cuVar.mo3068b(zztw);\n zztw.mo4833a(d);\n }\n return m22576g(d) + d;\n }", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "C20254v mo54454s(int i);" ]
[ "0.5849879", "0.58343184", "0.574808", "0.5733868", "0.5725952", "0.56877434", "0.56877434", "0.56877434", "0.56877434", "0.56877434", "0.56877434", "0.56877434", "0.563885", "0.56362706", "0.56088895", "0.5559094", "0.5550234", "0.55479485", "0.5539956", "0.55398864", "0.5531631", "0.5524214", "0.5498732", "0.548563", "0.5480413", "0.5472436", "0.54429", "0.54102576", "0.5408514", "0.5407274", "0.54010904", "0.53964376", "0.5386727", "0.5379029", "0.53730416", "0.53718704", "0.5368501", "0.53644097", "0.536319", "0.5357332", "0.5346482", "0.5342411", "0.5341767", "0.5326014", "0.5324718", "0.532347", "0.5318398", "0.5315086", "0.5313216", "0.53130335", "0.5306241", "0.53032476", "0.5303045", "0.5299101", "0.52941304", "0.5292002", "0.5287845", "0.5287624", "0.52857554", "0.5282344", "0.52777845", "0.5273062", "0.5267811", "0.526728", "0.52662337", "0.52635545", "0.5261173", "0.52593035", "0.52532125", "0.52528775", "0.5249879", "0.52476543", "0.5245036", "0.5244923", "0.52370083", "0.5228562", "0.52262896", "0.5224438", "0.52233475", "0.5219132", "0.52135956", "0.52086574", "0.5203034", "0.520183", "0.51980245", "0.51958126", "0.5194025", "0.5192331", "0.5188987", "0.5180364", "0.517865", "0.51749957", "0.5173513", "0.5172077", "0.5170108", "0.51668304", "0.5163717", "0.51630527", "0.5162525", "0.51605135", "0.51602846" ]
0.0
-1
/ 600: / 601:
public boolean isMostrarBaseImponible() /* 602: */ { /* 603:657 */ return this.mostrarBaseImponible; /* 604: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int mo36g() {\n return 8;\n }", "public int mo36g() {\n return 4;\n }", "public int mo36g() {\n return 2;\n }", "public final int mo50059a() {\n return 2;\n }", "@Test public void shouldGive240MinFor950cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 4 * 60 /*minutes*/ , rs.calculateTime(950) ); \r\n }", "public abstract Integer mo36210m();", "@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }", "public int mo3360e() {\n return 0;\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public int mo11550h() {\n int i = 0;\n for (C4929d f : this.f11878e) {\n i += f.mo11569f().mo11550h();\n }\n return i + 2 + 2;\n }", "void mo1506m();", "@Test public void shouldGive60MinFor150cent() {\r\n // First hour: $1.5\r\n assertEquals( 60 /*minutes*/, rs.calculateTime(150) ); \r\n }", "public static int m8668h() {\n return 8;\n }", "public long mo9743h() {\n return mo9760w();\n }", "public void mo21867i() {\n mo21877s();\n }", "@Test public void shouldGive120MinFor350cent() {\r\n // Two hours: $1.5+2.0\r\n assertEquals( 2 * 60 /*minutes*/ , rs.calculateTime(350) ); \r\n }", "@Test(timeout = 4000)\n public void test60() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader(pipedWriter0);\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n streamTokenizer0.nval = 752.0;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"752\", string0);\n }", "public abstract long mo9748m();", "@Test(timeout = 4000)\n public void test50() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickEFP((-2147), 10, 10, \".^|7={wR>bl,rlfYN\", 10, 484, \".^|7={wR>bl,rlfYN\", 484, 484);\n assertEquals(\"id=-2147 bidOptComp: basisPoints = 10.0/.^|7={wR>bl,rlfYN impliedFuture = 10.0 holdDays = 484 futureExpiry = .^|7={wR>bl,rlfYN dividendImpact = 484.0 dividends to expiry = 484.0\", string0);\n }", "public int method_2436() {\r\n return 16;\r\n }", "@Override\n protected int func_150123_b(int p_150123_1_)\n {\n return 60;\n }", "public abstract long mo9755t();", "public int mo80c() {\n return 7;\n }", "public void mo3812h() {\n for (int i = 0; i < 6; i++) {\n this.f1426A[i].mo3751a().mo3882c();\n }\n }", "public static void main(String[] args) {\n\t\t\n double p = 3048;\n int i;\n\t\t\n\t\t\n\t\tfor (i=1; i <=40; i++) {\n\t\t\t\n\t\t p = p * 2 / 3;\n\t\t \n\t\t}\n\t\t\n\t\tSystem.out.println(\"La distancia que habra recorrido la bola al momento de realizar su rebote numero 40 es de : \"+ p+ \" mts\");\n\n\t}", "Period mo20733e();", "public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }", "public long mo9743h() {\n return mo9784w();\n }", "public long mo9743h() {\n return mo9773w();\n }", "protected String mo3406c() {\n return \"Minute\";\n }", "@Override\n public double tuition(){\n return 2500;\n }", "protected long m8217a(long j) {\n return (j * 1000000) / ((long) this.f7048i);\n }", "public void mo6081a() {\n }", "public double getMon6062() {\r\n\t\treturn mon6062;\r\n\t}", "public int mo9754s() {\n return mo9774x();\n }", "Request mo35725m0();", "private void m128168k() {\n C42962b.f111525a.mo104671a(\"upload_page_duration\", C22984d.m75611a().mo59971a(\"first_selection_duration\", System.currentTimeMillis() - this.f104209S).mo59971a(\"page_stay_duration\", System.currentTimeMillis() - this.f104208R).f60753a);\n }", "@Test public void shouldGive180MinFor650cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 3 * 60 /*minutes*/ , rs.calculateTime(650) ); \r\n }", "Info mo7564ix();", "@Test\n\tpublic void testMakeMeterSectionTimes() {\n\t\tScorePiece sp = new ScorePiece(MIDIImport.importMidiFile(midiTestGetMeterKeyInfo));\n\t\tScoreMetricalTimeLine smtl = new ScoreMetricalTimeLine(sp.getMetricalTimeLine());\n\n\t\tList<Long> expected = Arrays.asList(new Long[]{\n\t\t\t(long) 0, \n\t\t\t(long) 1800000, \n\t\t\t(long) 11400000, \n\t\t\t(long) 25800000, \n\t\t\t(long) 30600000, \n\t\t\t(long) 31350000\n\t\t});\n\n\t\tList<Long> actual = smtl.makeMeterSectionTimes();\n\n\t\tassertEquals(expected.size(), actual.size());\n\t\tfor (int i = 0; i < expected.size(); i++) {\n\t\t\tassertEquals(expected.get(i), actual.get(i));\t\t\n\t\t}\n\t\tassertEquals(expected, actual);\n\t}", "protected void mo6255a() {\n }", "private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) ((int) (j - ((f / 100.0f) * j))));\n }", "public final int mo6465d() {\n return 19729000;\n }", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "void mo1507n();", "private int toTime(int i) {\n int count = 0;\n\n //hours units\n count += toLeds((i / 6000) % 10);\n //hours tens\n count += toLeds(((i / 6000) % 100) / 10);\n\n //minutes units\n count += toLeds((i / 60) % 10);\n //minutes tens\n count += toLeds(((i / 60) % 100) / 10);\n\n //seconds units\n count += toLeds((i % 60) % 10);\n //seconds tens\n count += toLeds(((i % 60) % 100) / 10);\n\n return count;\n }", "public abstract long mo9743h();", "public int m224a() {\n return 1;\n }", "void m63698a() {\n m63702c();\n m63701b();\n }", "C1458cs mo7613iS();", "private void m50366E() {\n }", "private int micRecTime(long freeSpace) {\n\n return (int) (freeSpace / 5898240);\n }", "@Test(timeout = 4000)\n public void test49() throws Throwable {\n String string0 = EWrapperMsgGenerator.currentTime((-532L));\n assertEquals(\"current time = -532 (Dec 31, 1969 11:51:08 PM)\", string0);\n }", "public void mo21877s() {\n }", "public void mo21788M() {\n }", "public long mo9748m() {\n return mo9760w();\n }", "public int m7468c() {\n if (!this.f5790b.f5950m) {\n return 0;\n }\n C2302k c2302k;\n int i;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k = this.f5790b.f5954q;\n i = e.f5936d;\n } else {\n byte[] bArr = e.f5937e;\n this.f5798j.m8383a(bArr, bArr.length);\n c2302k = this.f5798j;\n i = bArr.length;\n }\n boolean z = this.f5790b.f5951n[this.f5793e];\n this.f5797i.f6929a[0] = (byte) ((z ? ProfileEditingConfig.DEFAULT_MAX_LENGTH : 0) | i);\n this.f5797i.m8388c(0);\n this.f5789a.sampleData(this.f5797i, 1);\n this.f5789a.sampleData(c2302k, i);\n if (!z) {\n return i + 1;\n }\n C2302k c2302k2 = this.f5790b.f5954q;\n int h = c2302k2.m8396h();\n c2302k2.m8390d(-2);\n h = (h * 6) + 2;\n this.f5789a.sampleData(c2302k2, h);\n return (i + 1) + h;\n }", "public abstract int mo9754s();", "public long mo9750o() {\n return C3656k.m8444a(mo9775y());\n }", "void milestone4(int inputSeconds){\n int days = inputSeconds / 86400;\n int seconds = inputSeconds % 86400;\n int hours = seconds / 3600;\n seconds = seconds % 3600;\n int minutes = seconds / 60;\n seconds = seconds % 60;\n\n System.out.println(\"Day/s: \" + days);\n System.out.println(\"Hour/s: \" + hours);\n System.out.println(\"Minute/s: \" + minutes);\n System.out.println(\"Second/s: \" + seconds);\n }", "public static String m13823m() {\n return f12476h;\n }", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"system protocol handler\", \"system protocol handler\", (Content) null, 0.0F, 0.0F, \"\");\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1970), homeTexture0, 3, homeTexture0, 11, (-1970));\n homeEnvironment0.setVideoWidth((-1970));\n int int0 = homeEnvironment0.getVideoHeight();\n assertEquals((-1477), int0);\n }", "public int m2706g() {\n return ((Integer) this.f2439a.m2666a(ea.bs)).intValue();\n }", "private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "private final long m719n() {\n return m702b(this.f533r.f621k);\n }", "private void m50367F() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public final int mo34006h() {\n return this.f7230j;\n }", "public long mo9750o() {\n return C3656k.m8444a(mo9786y());\n }", "public int mo1534c() {\n return 2;\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "public int mo3822m() {\n return this.f1470as;\n }", "public int mo3356c() {\n return 0;\n }", "public int mo9754s() {\n return mo9761x();\n }", "public void mo21783H() {\n }", "public abstract int mo123249h();", "C3676k mo12649b();", "public static int m8655e() {\n return 8;\n }", "C20259y mo54455t(int i);", "@Test(timeout = 4000)\n public void test025() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-2146244886), (HomeTexture) null, (-2146244886), (HomeTexture) null, (-2146244886), (-2146244886));\n homeEnvironment0.setPhotoWidth((-119));\n int int0 = homeEnvironment0.getPhotoWidth();\n assertEquals((-119), int0);\n }", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n CatalogTexture catalogTexture0 = new CatalogTexture(\"system protocol handler\", \"system protocol handler\", (Content) null, 0.0F, 0.0F, \"\");\n HomeTexture homeTexture0 = new HomeTexture(catalogTexture0);\n HomeEnvironment homeEnvironment0 = new HomeEnvironment((-1970), homeTexture0, 3, homeTexture0, 11, (-1970));\n homeEnvironment0.setPhotoQuality(1260);\n int int0 = homeEnvironment0.getPhotoQuality();\n assertEquals(1260, int0);\n }", "private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }", "static int m22556b(zzwt zzwt, cu cuVar) {\n zztw zztw = (zztw) zzwt;\n int d = zztw.mo4835d();\n if (d == -1) {\n d = cuVar.mo3068b(zztw);\n zztw.mo4833a(d);\n }\n return m22576g(d) + d;\n }", "public long mo9750o() {\n return C3656k.m8444a(mo9762y());\n }", "@Override\r\n\tpublic int unitsToWagger() {\n\t\treturn 0;\r\n\t}", "public void mo2470d() {\n }", "public int mo12200l() {\n return this.f10965t;\n }", "public static void main(String[] args) {\n\t\tint seconds = 3910 ; // 1 hour 5 minutes and 10 seconds \r\n\t\t\r\n\t\tint minutes , hours ; \r\n\t\t\r\n\t\tminutes = seconds / 60 ; \r\n\t\tSystem.out.println(\" The minutes is : \" + minutes );\r\n\t\t\r\n\t\t// how many seconds remaining after getting minutes part \r\n\t\t\r\n\t\tint remainingSecondsAfterMinute = seconds % 60 ; \r\n\t\tSystem.out.println(\" The remianing seconds after minute is : \" + remainingSecondsAfterMinute );\r\n\t\t\r\n\t\t// we can use minute as below \r\n\t\t// hours = minutes / 60 ; \r\n\t\t// or we can use seconds directly\r\n\t\thours = seconds / 3600 ; \r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\" Hours is \" + hours);\r\n\t\t\r\n\t\t// Task : convert the seconds to real life example of \r\n\t\t// 3910 seconds is 1 hour 5 minute and 10 seconds \r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public long calHurt() {\n/* 82 */ return 0L;\n/* */ }", "public abstract long mo9750o();", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }", "C4945r5 mo19056B();", "public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }" ]
[ "0.614393", "0.6068757", "0.5947228", "0.5751807", "0.5717899", "0.57126737", "0.56680787", "0.56116444", "0.5491331", "0.5426741", "0.542211", "0.5414565", "0.541279", "0.5407177", "0.53885823", "0.53824896", "0.53780293", "0.5373519", "0.5370118", "0.53641385", "0.53252244", "0.5319087", "0.53183496", "0.53128177", "0.5309432", "0.5298872", "0.5297877", "0.5274757", "0.5272842", "0.52553844", "0.52405375", "0.5221995", "0.522036", "0.52148706", "0.52096385", "0.5207095", "0.518239", "0.5180806", "0.51782227", "0.5165732", "0.516534", "0.5160282", "0.5157195", "0.5157091", "0.51557213", "0.5148275", "0.5142365", "0.51363164", "0.51359385", "0.5125775", "0.5122011", "0.5121309", "0.51200706", "0.51056904", "0.5102128", "0.5097961", "0.50905675", "0.50849223", "0.5080315", "0.50798935", "0.5077443", "0.5077305", "0.5072782", "0.50708175", "0.5068774", "0.5068156", "0.50661576", "0.50618714", "0.50618714", "0.50618714", "0.50618714", "0.50618714", "0.50618714", "0.50618714", "0.5061096", "0.50610936", "0.50585157", "0.5058035", "0.5056046", "0.50463104", "0.50447255", "0.50410265", "0.5037417", "0.50361806", "0.5025856", "0.5025233", "0.50165755", "0.50165284", "0.50142086", "0.5012871", "0.5012327", "0.50063926", "0.50059193", "0.5002227", "0.5001495", "0.49989814", "0.49986592", "0.4998245", "0.4998223", "0.4997894", "0.49956447" ]
0.0
-1
/ 605: / 606:
public void setMostrarBaseImponible(boolean mostrarBaseImponible) /* 607: */ { /* 608:667 */ this.mostrarBaseImponible = mostrarBaseImponible; /* 609: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "protected String mo3406c() {\n return \"Minute\";\n }", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "private String TimeConversion() {\n\n int hours, minutes, seconds, dayOfWeek, date, month, year;\n\n seconds = ((raw[27] & 0xF0) >> 4) + ((raw[28] & 0x03) << 4);\n minutes = ((raw[28] & 0xFC) >> 2);\n hours = (raw[29] & 0x1F);\n dayOfWeek = ((raw[29] & 0xE0) >> 5);\n date = (raw[30]) & 0x1F;\n month = ((raw[30] & 0xE0) >> 5) + ((raw[31] & 0x01) << 3);\n year = (((raw[31] & 0xFE) >> 1) & 255) + 2000;\n\n\n\n return hR(month) + \"/\" + hR(date) + \"/\" + year + \" \" + hR(hours) + \":\" + hR(minutes) + \":\" + hR(seconds) + \":00\";\n }", "private static String formatTime(String time) {\n\t\treturn String.format(\"%s:%s\", time.substring(0, 2), time.substring(2));\n\t}", "private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }", "private static int computeTime(String time) {\n\t\tint ret = 0;\n\t\tint multiply = 1;\n\t\tint decimals = 1;\n\t\tfor (int i = time.length() - 1; i >= 0; --i) {\n\t\t\tif (time.charAt(i) == ':') {\n\t\t\t\tmultiply *= 60;\n\t\t\t\tdecimals = 1;\n\t\t\t} else {\n\t\t\t\tret += (time.charAt(i) - '0') * multiply * decimals;\n\t\t\t\tdecimals *= 10;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "private static int getNodeTime(String node) {\n int offSet = 4;\n return (int) node.toCharArray()[0] - offSet;\n }", "private void normalGmtStringToMinutes() {\n int i = Integer.parseInt(gmtString.substring(4, 6));\n offsetMinutes = i * 60;\n i = Integer.parseInt(gmtString.substring(7));\n offsetMinutes += i;\n if (gmtString.charAt(3) == MINUS) {\n offsetMinutes *= -1;\n }\n }", "java.lang.String getS6();", "public double getMon6045() {\r\n\t\treturn mon6045;\r\n\t}", "public static double getAttHour(String time1, String time2)\r\n/* 178: */ throws ParseException\r\n/* 179: */ {\r\n/* 180:258 */ double hour = 0.0D;\r\n/* 181:259 */ DateFormat fulDate = new SimpleDateFormat(\"HH:mm\");\r\n/* 182:260 */ long t12 = fulDate.parse(\"12:00\").getTime();\r\n/* 183:261 */ long t13 = fulDate.parse(\"13:00\").getTime();\r\n/* 184:262 */ long t1 = fulDate.parse(time1).getTime();\r\n/* 185:263 */ long PERHOUR = 3600000L;\r\n/* 186:264 */ if (time2 == null)\r\n/* 187: */ {\r\n/* 188:265 */ if (t12 - t1 > 0L) {\r\n/* 189:266 */ hour = (t12 - t1) / PERHOUR;\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192: */ else\r\n/* 193: */ {\r\n/* 194:269 */ long t2 = fulDate.parse(time2).getTime();\r\n/* 195:270 */ if ((t1 <= t12) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 196:271 */ hour = (t12 - t1) / PERHOUR;\r\n/* 197:272 */ } else if ((t1 <= t12) && (t2 >= t13)) {\r\n/* 198:273 */ hour = (t2 - t1) / PERHOUR - 1.0D;\r\n/* 199:274 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 200:275 */ hour = 0.0D;\r\n/* 201:276 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t13)) {\r\n/* 202:277 */ hour = (t2 - t13) / PERHOUR;\r\n/* 203: */ } else {\r\n/* 204:279 */ hour = (t2 - t1) / PERHOUR;\r\n/* 205: */ }\r\n/* 206: */ }\r\n/* 207:282 */ DecimalFormat df = new DecimalFormat(\"#.0\");\r\n/* 208:283 */ return Double.parseDouble(df.format(hour));\r\n/* 209: */ }", "private String extractHourMinute(String dateTime)\n {\n String[] aux = dateTime.split(\"T\");\n String[] auxTime = aux[1].split(\":\");\n\n return auxTime[0] + \":\" + auxTime[1];\n }", "public static String getHHMM()\r\n/* 74: */ {\r\n/* 75: 94 */ String nowTime = \"\";\r\n/* 76: 95 */ Date now = new Date();\r\n/* 77: 96 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 78: 97 */ nowTime = formatter.format(now);\r\n/* 79: 98 */ return nowTime;\r\n/* 80: */ }", "public static String m13823m() {\n return f12476h;\n }", "private void m6605V() {\n if (C1422t.m6866a()) {\n String.format(\"%02d:%02d:%02d\", new Object[]{0, 0, 0});\n this.f5387G.setCurrentTime(0);\n return;\n }\n this.f5387G.setCurrentTime(0);\n }", "public double getMon6044() {\r\n\t\treturn mon6044;\r\n\t}", "static String timeConversion(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2, 4);\n\n String newHours;\n if (ampm.equals(\"AM\")) {\n newHours = hours.equals(\"12\") ? \"00\" : hours;\n\n } else {\n newHours = hours.equals(\"12\") ? hours : String.valueOf(Integer.parseInt(hours) + 12);\n }\n\n return newHours + \":\" + minutes + \":\" + seconds;\n\n }", "public static long TimeInformationToSeconds(String info){\n\t\tif(info.indexOf(':') > 0){\n\t\t\tString[] data = info.split(\":\");\n\t\t\tlong hours = Long.parseLong(data[0]);\n\t\t\tlong minutes = Long.parseLong(data[1]);\n\t\t\tlong seconds = Long.parseLong(data[2].split(\"[.]\")[0]);\n\t\t\tlong milliseconds = Long.parseLong(data[2].split(\"[.]\")[1]);\n\t\t\treturn (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t\t}else{\n\t\t\n\t\t/*\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tSystem.out.println(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tSystem.out.println(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tSystem.out.println(info.substring(info.indexOf('.')));\n/*\t\tlong days = Long.parseLong(info.substring(0, info.indexOf(\"day\")));\n\t\tlong hours = Long.parseLong(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tlong minutes = Long.parseLong(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tlong seconds = Long.parseLong(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tlong milliseconds = Long.parseLong(info.substring(info.indexOf('.')));\n\t*/\t\n\t\t}\n\t\treturn 1;//(days * 86400000) + (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t}", "static String timeCount_1(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n \n timeHH += hh;\n timeMI += mi;\n timeSS += ss;\n \n }\n else{\n continue;\n }\n }\n \n timeMI += timeSS / 60;\n timeSS %= 60;\n \n timeHH += timeMI / 60;\n timeMI %= 60; \n\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n \n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n //String result = timeHH + \":\" + timeMI + \":\" + timeSS;\n \n return result;\n }", "String canonHr(String s) {\n List<String> l = StringUtil.breakAt(s, \":\");\n if (l.size() == 2) {\n return l.get(0) + \":\" + l.get(1).toUpperCase();\n }\n return s.toUpperCase();\n }", "public static String generate6CharacterTagCode() {\n\t\tString longTime = String.valueOf(Calendar.getInstance().getTimeInMillis());\n\t\tint len = longTime.length();\n\n\t\treturn longTime.substring(len - 6);\n\t}", "private static int getHours(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(0)) * 10) + Character.getNumericValue(time.charAt(1));\n\t}", "public static void main(String[] args) {\n\t\tString s = \"12:45:54PM\";\r\n\t\tString temp=\":\";\r\n\t\tString Result=\"\";\r\n\t\t\r\n\t\tif(s.charAt(8)=='P' || s.charAt(8)=='p')\r\n\t\t {\r\n\t\t\tString s1[] = s.split(\":\");\r\n\t int Hour = Integer.parseInt(s1[0]);\r\n\t String Actual_Hour = \"\";\r\n\t if(Hour == 12)\r\n\t {\r\n\t \tActual_Hour = \"12\";\r\n\t }\r\n\t else\r\n\t {\r\n\t \tint data = 12 + Hour;\r\n\t \tActual_Hour = String.valueOf(data);\r\n\t }\r\n\t \r\n\t \r\n\t Result = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2);\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t \tString s1[] = s.split(\":\");\r\n\t\t \tint Hour = Integer.parseInt(s1[0]);\r\n\t\t String Actual_Hour = \"\";\r\n\t\t if(Hour == 12)\r\n\t\t {\r\n\t\t \tActual_Hour = \"00\";\r\n\t\t \tResult = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2); \r\n\t\t }\r\n\t\t else {\r\n\t\t \tString s2[] = s.split(\"AM\");\r\n\t\t\t for(int i=0; i<s2.length; i++)\r\n\t\t\t {\r\n\t\t\t \tResult = s2[i];\r\n\t\t\t }\t\r\n\t\t }\r\n\t\t \t\r\n\t\t }\r\n\t\t\r\n\t\t\t\tSystem.out.println(Result);\r\n}", "@Test public void shouldGive240MinFor950cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 4 * 60 /*minutes*/ , rs.calculateTime(950) ); \r\n }", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "public static String formatTime(String userTime, String date) {\r\n\r\n\t\t\tint n = Integer.parseInt(userTime.substring(0, 2)) + 5;\r\n\r\n\t\t\tswitch (n) {\r\n\r\n\t\t\tcase 24:\r\n\t\t\t\tn = 0;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 25:\r\n\t\t\t\tn = 1;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 26:\r\n\t\t\t\tn = 2;\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 27:\r\n\t\t\t\tn = 3;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// extracting hour\r\n\t\t\tString hourChange = String.valueOf(n);\r\n\r\n\t\t\tStringBuilder time = new StringBuilder(userTime);\r\n\r\n\t\t\tif (hourChange.length() == 1) {\r\n\r\n\t\t\t\ttime.replace(0, 2, \"0\" + hourChange);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\ttime.replace(0, 2, hourChange);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tString formattedString = date + \" \" + time + \":00\";\r\n\r\n\t\t\treturn formattedString;\r\n\r\n\t\t}", "private static String normalizeWWN(String unpaddedWWN) {\n String wwn = StringUtils.leftPad(unpaddedWWN, 16, '0');\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < wwn.length(); i += 2) {\n String slice = StringUtils.substring(wwn, i, i + 2);\n if (sb.length() > 0) {\n sb.append(':');\n }\n sb.append(slice);\n }\n return sb.toString();\n }", "public double getMon6048() {\r\n\t\treturn mon6048;\r\n\t}", "static String timeConversion(String s) {\n String[] sTime = s.split(\":\");\n\n int x = 0;\n\n // if PM and hours >12, add additional 12 to hours\n // for AM and hour = 12, set hour to 00\n if(sTime[sTime.length - 1].contains(\"PM\") && !sTime[0].equals(\"12\"))\n x = 12;\n\n String val1 = \"\";\n if(x == 12)\n val1 = (Integer.parseInt(sTime[0]) + x) + \"\";\n else {\n if(sTime[0].equals(\"12\") && sTime[sTime.length - 1].contains(\"AM\"))\n val1 = \"00\";\n else\n val1 = sTime[0];\n }\n\n // merge the string and return the result\n String result = val1 + \":\" + sTime[1] + \":\" + sTime[2].substring(0,2);\n return result;\n }", "public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }", "void milestone4(int inputSeconds){\n int days = inputSeconds / 86400;\n int seconds = inputSeconds % 86400;\n int hours = seconds / 3600;\n seconds = seconds % 3600;\n int minutes = seconds / 60;\n seconds = seconds % 60;\n\n System.out.println(\"Day/s: \" + days);\n System.out.println(\"Hour/s: \" + hours);\n System.out.println(\"Minute/s: \" + minutes);\n System.out.println(\"Second/s: \" + seconds);\n }", "private int toTime(int i) {\n int count = 0;\n\n //hours units\n count += toLeds((i / 6000) % 10);\n //hours tens\n count += toLeds(((i / 6000) % 100) / 10);\n\n //minutes units\n count += toLeds((i / 60) % 10);\n //minutes tens\n count += toLeds(((i / 60) % 100) / 10);\n\n //seconds units\n count += toLeds((i % 60) % 10);\n //seconds tens\n count += toLeds(((i % 60) % 100) / 10);\n\n return count;\n }", "public static String toHH_MM(String draftDate) {\r\n\t\tif (draftDate == null || draftDate.length() < 19) {\r\n\t\t\treturn draftDate;\r\n\t\t}\r\n\t\treturn draftDate.substring(11, 16);\r\n\t}", "private String formatTime(long length) {\n\t\tString hms = \"\";\n\t\tif(length < 3600000) {\n\t\t\thms = String.format(\"%02d:%02d\",\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t} else {\n\t\t\thms = String.format(\"%02d:%02d:%02d\", TimeUnit.MILLISECONDS.toHours(length),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t}\n\n\t\treturn hms;\n\t}", "String formatTime(int time) {\r\n\t\tint h = time / 3600;\r\n\t\ttime %= 3600;\r\n\t\tint m = time / 60;\r\n\t\ttime %= 60;\r\n\t\tint s = time;\r\n\t\treturn String.format(\"%02d:%02d:%02d\", h, m, s);\r\n\t}", "@Override\r\n\tpublic int getHH() {\n\t\treturn HH;\r\n\t}", "public double getMon6046() {\r\n\t\treturn mon6046;\r\n\t}", "public void setMon6045(double mon6045) {\r\n\t\tthis.mon6045 = mon6045;\r\n\t}", "public static String TimeFormate() {\n\t\tString time;\n\t\tSimpleDateFormat dateFormat1 = new SimpleDateFormat();\n\t dateFormat1.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t Calendar cal = Calendar.getInstance();\n\t cal.add(Calendar.MINUTE, 3);\n String n=dateFormat1.format(cal.getTime());\n //n=\"03/09/20 8:30 AM\";\n System.out.println(\"Full Date = \" +n);\n int colonindex=n.indexOf(\":\");\n //System.out.println(\": placed= \" +colonindex);\n //String tt =n.substring(colonindex, n.length());\n //System.out.println(\"tt= \" +tt);\n String tt1 =n.substring(colonindex-2,colonindex-1);\n System.out.println(\"tt1= \" +tt1);\n if(tt1.equals(\"1\")) {\n \t time=n.substring(colonindex-2, n.length());\n \t System.out.println(\"Time with two digits in hours= \" +time);\n }\n else {\n \t time=n.substring(colonindex-1, n.length());\n \t System.out.println(\"Time with one digit in hours= \" +time);\n }\n return time;\n\t}", "@Test\n public void testSplitTime(){\n \tCountDownTimer s = new CountDownTimer();\n \ts.splitTime(3975);\n \tassertEquals(s.toString(), \"1:06:15\");\n \t\n \ts.splitTime(45);\n \tassertEquals(s.toString(), \"0:00:45\");\n \t\n }", "public double getMon603r6() {\r\n\t\treturn mon603r6;\r\n\t}", "public double getMon6056() {\r\n\t\treturn mon6056;\r\n\t}", "static String timeConversion(String s) {\n if(s.indexOf('P') >= 0 && s.substring(0, 2).equals(\"12\")){\n }\n else if(s.indexOf('P') >= 0){\n Integer n = Integer.parseInt(s.substring(0, 2));\n s = removeHour(s);\n n += 12;\n String hour = Integer.toString(n);\n s = hour + s;\n }\n else if (s.indexOf('A') >= 0 && s.substring(0, 2).equals(\"12\")){\n s = \"00\" + s.substring(2);\n }\n return removeHourFormat(s);\n }", "static String timeConversion(String s) {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tboolean isAm = s.contains(\"AM\");\n\t\t\n\t\ts = s.replace(\"AM\", \"\");\n\t\ts = s.replace(\"PM\", \"\");\n\t\t\n\t\tString str[] = s.split(\":\");\n\t\tint time = Integer.parseInt(str[0]);\n\t\t\n\t\t\n\t\tif(time < 12 && !isAm) {\n\t\t\ttime = time + 12;\n\t\t\tsb.append(time).append(\":\");\n\t\t}else if(time == 12 && isAm) {\n\t\t\tsb.append(\"00:\");\n\t\t}else {\n\t\t\tif (time < 10) sb.append(\"0\").append(time).append(\":\");\n\t\t\telse sb.append(time).append(\":\");\n\t\t}\n\n\t\tsb.append(str[1]).append(\":\").append(str[2]);\n\t\treturn sb.toString();\n\t}", "public static String m34537a(long j) {\n Formatter format;\n if (j <= 0 || j >= LogBuilder.MAX_INTERVAL) {\n return \"00:00\";\n }\n long j2 = j / 1000;\n int i = (int) (j2 % 60);\n int i2 = (int) ((j2 / 60) % 60);\n int i3 = (int) (j2 / 3600);\n Formatter formatter = new Formatter(new StringBuilder(), Locale.getDefault());\n if (i3 > 0) {\n format = formatter.format(\"%d:%02d:%02d\", Integer.valueOf(i3), Integer.valueOf(i2), Integer.valueOf(i));\n } else {\n format = formatter.format(\"%02d:%02d\", Integer.valueOf(i2), Integer.valueOf(i));\n }\n return format.toString();\n }", "private static String checkFormat(String date){\r\n\t\tif(date.length()==0) return \"\";\r\n\t\tint dateChars=0,timeChars=0;\r\n\t\tchar currenChar;\r\n\t\t\r\n\t\t//check if the first and the last character of the string is a number, it must always be\r\n\t\tif(!Character.isDigit(date.charAt(0))) return \"\";\r\n\t\tif(!Character.isDigit(date.charAt((date.length()-1)))) return \"\";\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<date.length()-1;i++){\r\n\t\t\tcurrenChar=date.charAt(i);\r\n\t\t\t\r\n\t\t\t//check if every character is / or : or number\t\t\r\n\t\t\tif(!(Character.isDigit(currenChar) || currenChar==':' || currenChar=='/')) return \"\";\r\n\t\t\t//check if there is a number between // or ::, if not it returns false\r\n\t\t\tif((currenChar==':' || currenChar=='/') && (date.charAt(i+1)==':' || date.charAt(i+1)=='/')) return \"\";\r\n\t\t\t\r\n\t\t\t//count the / and :\r\n\t\t\tif(currenChar==':') timeChars++; \r\n\t\t\telse if(currenChar=='/') dateChars++;\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with one :\r\n\t\tif(timeChars==1 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[2];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with two :\r\n\t\telse if(timeChars==2 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[1];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is a date with two /\r\n\t\telse if(dateChars==2 && timeChars==0){\r\n\t\t\t//check if one of the numbers have the right amount of digits\r\n\t\t\tString[] numbers= splitWords(date.replaceAll(\"/\", \" \"));\r\n\t\t\tif(numbers[0].length()>2) return \"\";\r\n\t\t\tif(numbers[1].length()>2) return \"\";\r\n\t\t\tif(numbers[2].length()>4) return \"\";\r\n\t\t\t\r\n\t\t\treturn formats[0];\r\n\t\t}\r\n\t\t\r\n\t\telse return \"\";\t\t\r\n\t}", "public String mo15787hm() {\n return this.f3880Mw.mo15796hm();\n }", "int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}", "public static String getQueryTimeString(String checkpoint) {\n Matcher matcher = ZONE_PATTERN.matcher(checkpoint);\n if (matcher.find()) {\n String timeZone = matcher.group();\n if (timeZone.length() == 5) {\n return checkpoint.substring(0, matcher.start()) + \n timeZone.substring(0,3) + \":\" + timeZone.substring(3);\n } else if (timeZone.length() == 3) {\n return checkpoint + \":00\";\n } else {\n return checkpoint.replaceFirst(\"Z$\", FileUtil.ZULU_WITH_COLON);\n }\n } else {\n return checkpoint + ZULU_WITH_COLON;\n }\n }", "public String calculateHour() {\n\t\tString hora;\n\t\tString min;\n\t\tString seg;\n\t\tString message;\n\t\tCalendar calendario = new GregorianCalendar();\n\t\tDate horaActual = new Date();\n\t\tcalendario.setTime(horaActual);\n\n\t\thora = calendario.get(Calendar.HOUR_OF_DAY) > 9 ? \"\" + calendario.get(Calendar.HOUR_OF_DAY)\n\t\t\t\t: \"0\" + calendario.get(Calendar.HOUR_OF_DAY);\n\t\tmin = calendario.get(Calendar.MINUTE) > 9 ? \"\" + calendario.get(Calendar.MINUTE)\n\t\t\t\t: \"0\" + calendario.get(Calendar.MINUTE);\n\t\tseg = calendario.get(Calendar.SECOND) > 9 ? \"\" + calendario.get(Calendar.SECOND)\n\t\t\t\t: \"0\" + calendario.get(Calendar.SECOND);\n\n\t\tmessage = hora + \":\" + min + \":\" + seg;\n\t\treturn message;\n\n\t}", "public double getMon6049() {\r\n\t\treturn mon6049;\r\n\t}", "public void calculateHours(String time1, String time2) {\n Date date1, date2;\n int days, hours, min;\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"hh:mm aa\", Locale.US);\n try {\n date1 = simpleDateFormat.parse(time1);\n date2 = simpleDateFormat.parse(time2);\n\n long difference = date2.getTime() - date1.getTime();\n days = (int) (difference / (1000 * 60 * 60 * 24));\n hours = (int) ((difference - (1000 * 60 * 60 * 24 * days)) / (1000 * 60 * 60));\n min = (int) (difference - (1000 * 60 * 60 * 24 * days) - (1000 * 60 * 60 * hours)) / (1000 * 60);\n hours = (hours < 0 ? -hours : hours);\n SessionHour = hours;\n SessionMinit = min;\n Log.i(\"======= Hours\", \" :: \" + hours + \":\" + min);\n\n if (SessionMinit > 0) {\n if (SessionMinit < 10) {\n SessionDuration = SessionHour + \":\" + \"0\" + SessionMinit + \" hrs\";\n } else {\n SessionDuration = SessionHour + \":\" + SessionMinit + \" hrs\";\n }\n } else {\n SessionDuration = SessionHour + \":\" + \"00\" + \" hrs\";\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "public double getMon603a6() {\r\n\t\treturn mon603a6;\r\n\t}", "static String timeCount_2(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n int timeSum_second = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n\n timeSum_second += hh*60*60 + mi*60 + ss;\n \n }\n else{\n continue;\n }\n }\n \n timeHH = timeSum_second/60/60;\n timeMI = (timeSum_second%(60*60))/60;\n timeSS = timeSum_second%60;\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n \n return result;\n }", "public static void main(String[] args) {\n\t\tString n = \"수 10:00~18:30/목,토 09:00~13:00\";\n\t\t\n\t\tSystem.out.println(isTimePatternIn(n));\n\t}", "public int mo36g() {\n return 4;\n }", "private static String format(String value) {\r\n String formattedValue = value.trim();\r\n if (formattedValue.endsWith(\" 00:00:00\")) {\r\n formattedValue = formattedValue.substring(0, formattedValue.length() - 9);\r\n } else {\r\n if (formattedValue.endsWith(\" 00:00:00.0\")) {\r\n formattedValue = formattedValue.substring(0, formattedValue.length() - 11);\r\n }\r\n }\r\n return formattedValue;\r\n }", "private static String hhhmmss(double totalseconds)\n {\n final int SECONDS_PER_MINUTE = 60;\n final int SECONDS_PER_HOUR = SECONDS_PER_MINUTE * 60;\n\n int hours = (int) (totalseconds / SECONDS_PER_HOUR);\n int minutes = (int) ((totalseconds % SECONDS_PER_HOUR)) / SECONDS_PER_MINUTE;\n double seconds = totalseconds % SECONDS_PER_MINUTE;\n\n return String.format(\"%d:%02d:%05.2f\", hours, minutes, seconds);\n }", "private static String hhhmmss(double totalseconds)\n {\n final int SECONDS_PER_MINUTE = 60;\n final int SECONDS_PER_HOUR = SECONDS_PER_MINUTE * 60;\n\n int hours = (int) (totalseconds / SECONDS_PER_HOUR);\n int minutes = (int) ((totalseconds % SECONDS_PER_HOUR)) / SECONDS_PER_MINUTE;\n double seconds = totalseconds % SECONDS_PER_MINUTE;\n\n return String.format(\"%d:%02d:%05.2f\", hours, minutes, seconds);\n }", "static int getHour(byte[] bytes) {\n if (HOUR_POS < bytes.length * 8) {\n return readBits(bytes, HOUR_POS, HOUR_BITS);\n }\n return 0;\n }", "public String getADD_STRING6_MAND() {\r\n return ADD_STRING6_MAND;\r\n }", "public String getADD_STRING6_MAND() {\r\n return ADD_STRING6_MAND;\r\n }", "private String intTime(long l){\r\n String s=\"\";\r\n s+=(char)(((l/1000)/60)+'0')+\":\"+(char)((((l/1000)%60)/10)+'0')+(char)((((l/1000)%60)%10)+'0'); \r\n return s;\r\n }", "public String toString() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // 4\n\t\tString hours = String.format(\"%02d\", this.hours);\n\t\tString minutes = String.format(\"%02d\", this.minutes);\n\t\tString seconds = String.format(\"%05.2f\", this.seconds);\n\n\t\tString time = hours + \":\" + minutes + \":\" + seconds;\n\t\treturn time;\n\t}", "private static String m21400e() {\n try {\n return new BufferedReader(new FileReader(new File(\"/sys/class/net/wlan0/address\"))).readLine();\n } catch (Throwable th) {\n C5205o.m21464a(th);\n return \"02:00:00:00:00:00\";\n }\n }", "private static int stringToHour(String stringDay) {\r\n\t\tswitch (stringDay) {\r\n\t\tcase \"6am\":\r\n\t\t\treturn 0;\r\n\t\tcase \"7am\":\r\n\t\t\treturn 1;\r\n\t\tcase \"8am\":\r\n\t\t\treturn 2;\r\n\t\tcase \"9am\":\r\n\t\t\treturn 3;\r\n\t\tcase \"10am\":\r\n\t\t\treturn 4;\r\n\t\tcase \"11am\":\r\n\t\t\treturn 5;\r\n\t\tcase \"12pm\":\r\n\t\t\treturn 6;\r\n\t\tcase \"1pm\":\r\n\t\t\treturn 7;\r\n\t\tcase \"2pm\":\r\n\t\t\treturn 8;\r\n\t\tcase \"3pm\":\r\n\t\t\treturn 9;\r\n\t\tcase \"4pm\":\r\n\t\t\treturn 10;\r\n\t\tcase \"5pm\":\r\n\t\t\treturn 11;\r\n\t\tcase \"6pm\":\r\n\t\t\treturn 12;\r\n\t\tcase \"7pm\":\r\n\t\t\treturn 13;\r\n\t\tcase \"8pm\":\r\n\t\t\treturn 14;\r\n\t\tdefault:\r\n\t\t\treturn -1;\r\n\t\t}// end switch\r\n\t}", "public String getDateHourRepresentation()\n\t{\n\t\tchar[] charArr = new char[13];\n\t\tcharArr[2] = charArr[5] = charArr[10] = '/';\n\t\tint day = m_day;\n\t\tint month = m_month;\n\t\tint year = m_year;\n\t\tint hour = m_hour;\n\t\tfor(int i = 0; i < 2; i++)\n\t\t{\n\t\t\tcharArr[1 - i] = Character.forDigit(day % 10, 10);\n\t\t\tcharArr[4 - i] = Character.forDigit(month % 10, 10);\n\t\t\tcharArr[12 - i] = Character.forDigit(hour % 10, 10);\n\t\t\tday /= 10;\n\t\t\tmonth /= 10;\n\t\t\thour /=10;\n \t\t}\n\t\tfor(int i = 0; i < 4; i++)\n\t\t{\n\t\t\tcharArr[9 - i] = Character.forDigit(year % 10, 10);\n\t\t\tyear /= 10;\n\t\t}\n\t\treturn new String(charArr);\n\t}", "public double getMon6036() {\r\n\t\treturn mon6036;\r\n\t}", "private String timeConversion() {\n Calendar local = Calendar.getInstance();\n Calendar GMT = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n\n //Time from the PINPoint\n int hours, minutes, seconds, day, month, year;\n hours = (record[10] & 0xF8) >> 3;\n minutes = ((record[10] & 0x07) << 3) + ((record[11] & 0xE0) >> 5);\n seconds = ((record[11] & 0x1F) << 1) + ((record[12] & 0x80) >> 7);\n seconds += (record[12] & 0x7F) / 100;\n day = (record[13] & 0xF8) >> 3;\n month = ((record[13] & 0x07) << 1) + ((record[14] & 0x80) >> 7);\n year = (record[14] & 0x7F) + 2000;\n \n month--; //Months in java are 0-11, PINPoint = 1-12;\n\n //Set GMTs time to be the time from the PINPoint\n GMT.set(Calendar.DAY_OF_MONTH, day);\n GMT.set(Calendar.MONTH, month);\n GMT.set(Calendar.YEAR, year);\n GMT.set(Calendar.HOUR_OF_DAY, hours);\n GMT.set(Calendar.MINUTE, minutes);\n GMT.set(Calendar.SECOND, seconds);\n\n //Local is set to GMTs time but with the correct timezone\n local.setTimeInMillis(GMT.getTimeInMillis());\n\n //Set Local time to be the time converted from GMT\n int lHours, lMinutes, lSeconds, lDay, lMonth, lYear;\n lHours = local.get(Calendar.HOUR_OF_DAY);\n lMinutes = local.get(Calendar.MINUTE);\n lSeconds = local.get(Calendar.SECOND);\n lDay = local.get(Calendar.DAY_OF_MONTH);\n lMonth = local.get(Calendar.MONTH);\n\n lMonth++; //Months in java are 0-11, humans read 1-12\n\n lYear = local.get(Calendar.YEAR);\n\n return hR(lMonth) + \"/\" + hR(lDay) + \"/\" + lYear + \" \" + hR(lHours) + \":\" + hR(lMinutes) + \":\" + hR(lSeconds);\n }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "public void setMon6044(double mon6044) {\r\n\t\tthis.mon6044 = mon6044;\r\n\t}", "public int mo36g() {\n return 8;\n }", "public static void main(String[] args) {\n\t\tdouble d = 14/1.6;\r\n\t\tdouble t = (45*60+30)/3600.0;\r\n\t\tdouble s = d/t;\r\n\t\tSystem.out.println(\"the average speed in miles per hour is \"+s);\r\n\t}", "private static String getTime() {\n\t\tDate getDate = new Date();\n\t\tString timeFormat = \"M/d/yy hh:mma\";\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(timeFormat);\n\t\treturn \"[\" + sdf.format(getDate) + \"]\\t\";\n\t}", "public double getMon6066() {\r\n\t\treturn mon6066;\r\n\t}", "java.lang.String getArrivalTime();", "java.lang.String getArrivalTime();", "public static void main(String [] args)\n\t{\n\tSystem.out.println(\"Enter your GMT ofset (ei: -5): \");\n Scanner input = new Scanner(System.in);\n long totalMilliSeconds=System.currentTimeMillis(); \n long totalSeconds=totalMilliSeconds/1000; \n int second=(int)(totalSeconds%60); \n long totalMinutes=totalSeconds/60; \n int minute=(int)(totalMinutes%60); \n long totalHours=totalMinutes/60; \n int hour=(int)((totalHours - 8)%24); \n //print result\n\tSystem.out.println(\"The current time is: \"+ hour + \":\" + minute + \":\" + second);\n\t}", "@Test public void shouldGive180MinFor650cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 3 * 60 /*minutes*/ , rs.calculateTime(650) ); \r\n }", "public static int m8668h() {\n return 8;\n }", "private String format(String s){\n\t\tint len = s.length();\n\t\tfor (int i = 0; i < 6 - len; i++){\n\t\t\ts = \"0\" + s;\n\t\t}\n\t\t\n\t\treturn s;\n\t}", "public double getMon6053() {\r\n\t\treturn mon6053;\r\n\t}", "public String TI()\n\t{\n\t\tDateTimeFormatter f = DateTimeFormatter.ofPattern(\"hh:mm a\");\n\t\tString ti = f.format(st);\n\t\tString ti2 = f.format(et);\n\t\treturn ti + \" - \" + ti2;\n \t}", "@Override\n\tpublic String toString() {\n\t\treturn ip + \" \"+ times;\n\t}", "public static String timeConversion(String s) {\n // Write your code here\n String end = s.substring(2, s.length() - 2);\n String ans = s.substring(0, s.length() - 2);\n if (s.charAt(8) == 'A') {\n return s.startsWith(\"12\") ? \"00\" + end : ans;\n }\n\n return s.startsWith(\"12\") ? ans : (Integer.parseInt(s.substring(0, 2)) + 12) + end;\n }", "private double normaliseViewingTime() {\n return this.averageViewingTime / (double) this.content.getViewLength();\n }", "public final void mo66559hj() {\n int hl = m72695hl() | m72696hm();\n m72697hn();\n if (hl != 0) {\n m72694hk();\n notifyChanged();\n }\n }", "public static String convert_minutes_to_hours(String minutess) {\n int hours = Integer.parseInt(minutess) / 60; //since both are ints, you get an int\n int minutes = Integer.parseInt(minutess) % 60;\n System.out.printf(\"%d:%02d\", hours, minutes);\n return hours + \":\" + minutes;\n }", "public String getTime(){\n String mt=\"\";\n String hr=\"\";\n if(minute<10){\n mt=0+(String.valueOf(minute));\n }\n\n else{\n mt=String.valueOf(minute);\n }\n\n if(hour<10){\n hr=0+(String.valueOf(hour));\n }\n else{\n hr=String.valueOf(hour);\n }\n //return hour:minute\n return (hr+\":\"+mt);\n }", "public double getMon6062() {\r\n\t\treturn mon6062;\r\n\t}", "public static int offset_infos_timestamp() {\n return (32 / 8);\n }", "public double getMon6068() {\r\n\t\treturn mon6068;\r\n\t}", "private String altitudeConversion() {\n int reading = ((record[9] & 255) << 8) + (record[8] & 255);\n if (reading == 60000) {\n return \" \";\n } else {\n return reading + \"\";\n }\n }", "private String getSatRiseTime(String satName) {\n\t\tif (satName.equals(\"SAT08\")) {\n\t\t\treturn \">24.0\";\n\t\t}\n\t\treturn \" - \";\n\t}", "private static int getMinutes(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(3)) * 10) + Character.getNumericValue(time.charAt(4));\n\t}", "public Integer getMacTime() {\r\n return macTime;\r\n }", "public double getMon6055() {\r\n\t\treturn mon6055;\r\n\t}", "static String timeConversion(String s) {\n /*\n * Write your code here.\n */\n String conversion = \"\";\n String time = s.substring(s.length()-2,s.length());\n String hour = s.substring(0,2);\n if(time.equals(\"AM\")){\n if(Integer.parseInt(hour)==12){\n conversion = \"00\"+s.substring(2,s.length()-2);\n }\n else{\n conversion = s.substring(0,s.length()-2);\n }\n }else{\n if(Integer.parseInt(hour)==12){\n conversion = \"12\"+s.substring(2,s.length()-2);\n }\n else{\n conversion = (Integer.parseInt(hour)+12) + s.substring(2,s.length()-2);\n }\n }\n\n return conversion;\n }" ]
[ "0.6062215", "0.5757907", "0.5650088", "0.56342", "0.5612318", "0.5534802", "0.5514369", "0.54999125", "0.54575014", "0.5418409", "0.53453207", "0.5317381", "0.5267548", "0.52372146", "0.52290374", "0.5223551", "0.5222764", "0.52037525", "0.51422644", "0.5138856", "0.5134801", "0.5131094", "0.51167303", "0.5091547", "0.50785416", "0.50740224", "0.50597656", "0.5053476", "0.50403816", "0.50376695", "0.50327414", "0.5029865", "0.5026759", "0.5014798", "0.5013127", "0.5007", "0.4987761", "0.49755284", "0.49711666", "0.49708158", "0.49644783", "0.4963879", "0.4956689", "0.49551174", "0.49491656", "0.49424362", "0.49338216", "0.49336258", "0.49334544", "0.4932143", "0.49201697", "0.49169058", "0.4910481", "0.49099883", "0.49089855", "0.4895841", "0.48828724", "0.48817465", "0.48678306", "0.48661184", "0.48625815", "0.48625815", "0.48573583", "0.48542225", "0.48542225", "0.4848036", "0.4847936", "0.4847801", "0.48445264", "0.4840737", "0.4832537", "0.4827017", "0.48255298", "0.48166528", "0.48092362", "0.48054674", "0.48054048", "0.4803214", "0.48011628", "0.48011628", "0.4801041", "0.47965086", "0.4794425", "0.47936088", "0.47874814", "0.47786936", "0.4776175", "0.47741762", "0.47727406", "0.47716084", "0.4763258", "0.4761597", "0.47592047", "0.47544056", "0.4754148", "0.47494572", "0.47493473", "0.47484523", "0.47471705", "0.4743195", "0.4737098" ]
0.0
-1
/ 610: / 611:
public String getTipoAnexoSRI() /* 612: */ { /* 613:676 */ this.tipoAnexoSRI = ParametrosSistema.getTipoAnexoSRI(AppUtil.getOrganizacion().getId()); /* 614:677 */ return this.tipoAnexoSRI; /* 615: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"_\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test\n\tpublic void testIPV6WithPortAndUserinfo() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://brett@[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(\"brett\", uri.getUserinfo());\n\t}", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "@Test\n void testParseTestcaseFrom50Specification(){\n String testcase = \"\\r\\n\" +\n \"/ISk5\\\\2MT382-1000\\r\\n\" +\n \"\\r\\n\" +\n \"1-3:0.2.8(50)\\r\\n\" +\n \"0-0:1.0.0(101209113020W)\\r\\n\" +\n \"0-0:96.1.1(4B384547303034303436333935353037)\\r\\n\" +\n \"1-0:1.8.1(123456.789*kWh)\\r\\n\" +\n \"1-0:1.8.2(123456.789*kWh)\\r\\n\" +\n \"1-0:2.8.1(123456.789*kWh)\\r\\n\" +\n \"1-0:2.8.2(123456.789*kWh)\\r\\n\" +\n \"0-0:96.14.0(0002)\\r\\n\" +\n \"1-0:1.7.0(01.193*kW)\\r\\n\" +\n \"1-0:2.7.0(00.000*kW)\\r\\n\" +\n \"0-0:96.7.21(00004)\\r\\n\" +\n \"0-0:96.7.9(00002)\\r\\n\" +\n \"1-0:99.97.0(2)(0-0:96.7.19)(101208152415W)(0000000240*s)(101208151004W)(0000000301*s)\\r\\n\" +\n \"1-0:32.32.0(00002)\\r\\n\" +\n \"1-0:52.32.0(00001)\\r\\n\" +\n \"1-0:72.32.0(00000)\\r\\n\" +\n \"1-0:32.36.0(00000)\\r\\n\" +\n \"1-0:52.36.0(00003)\\r\\n\" +\n \"1-0:72.36.0(00000)\\r\\n\" +\n \"0-0:96.13.0(303132333435363738393A3B3C3D3E3F303132333435363738393A3B3C3D3E3F30313233343536373839\" +\n \"3A3B3C3D3E3F303132333435363738393A3B3C3D3E3F303132333435363738393A3B3C3D3E3F)\\r\\n\" +\n \"1-0:32.7.0(220.1*V)\\r\\n\" +\n \"1-0:52.7.0(220.2*V)\\r\\n\" +\n \"1-0:72.7.0(220.3*V)\\r\\n\" +\n \"1-0:31.7.0(001*A)\\r\\n\" +\n \"1-0:51.7.0(002*A)\\r\\n\" +\n \"1-0:71.7.0(003*A)\\r\\n\" +\n \"1-0:21.7.0(01.111*kW)\\r\\n\" +\n \"1-0:41.7.0(02.222*kW)\\r\\n\" +\n \"1-0:61.7.0(03.333*kW)\\r\\n\" +\n \"1-0:22.7.0(04.444*kW)\\r\\n\" +\n \"1-0:42.7.0(05.555*kW)\\r\\n\" +\n \"1-0:62.7.0(06.666*kW)\\r\\n\" +\n \"0-1:24.1.0(003)\\r\\n\" +\n \"0-1:96.1.0(3232323241424344313233343536373839)\\r\\n\" +\n \"0-1:24.2.1(101209112500W)(12785.123*m3)\\r\\n\" +\n \"!EF2F\\r\\n\" +\n \"\\r\\n\";\n DSMRTelegram dsmrTelegram = ParseDsmrTelegram.parse(testcase);\n\n // CHECKSTYLE.OFF: ParenPad\n assertEquals(\"/ISk5\\\\2MT382-1000\", dsmrTelegram.getRawIdent());\n assertEquals(\"ISK\", dsmrTelegram.getEquipmentBrandTag());\n assertEquals(\"MT382-1000\", dsmrTelegram.getIdent());\n\n assertEquals(\"5.0\", dsmrTelegram.getP1Version());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:30:20+01:00\"), dsmrTelegram.getTimestamp());\n\n assertEquals(\"K8EG004046395507\", dsmrTelegram.getEquipmentId());\n assertEquals(\"0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?\", dsmrTelegram.getMessage());\n\n assertEquals( 2, dsmrTelegram.getElectricityTariffIndicator());\n assertEquals( 123456.789, dsmrTelegram.getElectricityReceivedLowTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReceivedNormalTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReturnedLowTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReturnedNormalTariff(), 0.001);\n assertEquals( 1.193, dsmrTelegram.getElectricityPowerReceived(), 0.001);\n assertEquals( 0.0, dsmrTelegram.getElectricityPowerReturned(), 0.001);\n assertEquals( 4, dsmrTelegram.getPowerFailures());\n assertEquals( 2, dsmrTelegram.getLongPowerFailures());\n\n assertEquals(2, dsmrTelegram.getPowerFailureEventLogSize());\n\n List<PowerFailureEvent> powerFailureEventLog = dsmrTelegram.getPowerFailureEventLog();\n assertEquals(2, powerFailureEventLog.size());\n assertPowerFailureEvent(powerFailureEventLog.get(0), \"2010-12-08T15:20:15+01:00\", \"2010-12-08T15:24:15+01:00\", \"PT4M\");\n assertPowerFailureEvent(powerFailureEventLog.get(1), \"2010-12-08T15:05:03+01:00\", \"2010-12-08T15:10:04+01:00\", \"PT5M1S\");\n\n assertEquals( 2, dsmrTelegram.getVoltageSagsPhaseL1());\n assertEquals( 1, dsmrTelegram.getVoltageSagsPhaseL2());\n assertEquals( 0, dsmrTelegram.getVoltageSagsPhaseL3());\n assertEquals( 0, dsmrTelegram.getVoltageSwellsPhaseL1());\n assertEquals( 3, dsmrTelegram.getVoltageSwellsPhaseL2());\n assertEquals( 0, dsmrTelegram.getVoltageSwellsPhaseL3());\n assertEquals( 220.1, dsmrTelegram.getVoltageL1(), 0.001);\n assertEquals( 220.2, dsmrTelegram.getVoltageL2(), 0.001);\n assertEquals( 220.3, dsmrTelegram.getVoltageL3(), 0.001);\n assertEquals( 1, dsmrTelegram.getCurrentL1(), 0.001);\n assertEquals( 2, dsmrTelegram.getCurrentL2(), 0.001);\n assertEquals( 3, dsmrTelegram.getCurrentL3(), 0.001);\n assertEquals( 1.111, dsmrTelegram.getPowerReceivedL1(), 0.001);\n assertEquals( 2.222, dsmrTelegram.getPowerReceivedL2(), 0.001);\n assertEquals( 3.333, dsmrTelegram.getPowerReceivedL3(), 0.001);\n assertEquals( 4.444, dsmrTelegram.getPowerReturnedL1(), 0.001);\n assertEquals( 5.555, dsmrTelegram.getPowerReturnedL2(), 0.001);\n assertEquals( 6.666, dsmrTelegram.getPowerReturnedL3(), 0.001);\n assertEquals( 1, dsmrTelegram.getMBusEvents().size());\n\n assertEquals( 3, dsmrTelegram.getMBusEvents().get(1).getDeviceType());\n assertEquals(\"2222ABCD123456789\", dsmrTelegram.getMBusEvents().get(1).getEquipmentId());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:25+01:00\"), dsmrTelegram.getMBusEvents().get(1).getTimestamp());\n assertEquals( 12785.123, dsmrTelegram.getMBusEvents().get(1).getValue(), 0.001);\n assertEquals( \"m3\", dsmrTelegram.getMBusEvents().get(1).getUnit());\n\n assertEquals(\"2222ABCD123456789\", dsmrTelegram.getGasEquipmentId());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:25+01:00\"), dsmrTelegram.getGasTimestamp());\n assertEquals(12785.123, dsmrTelegram.getGasM3(), 0.001);\n\n assertEquals(\"EF2F\", dsmrTelegram.getCrc());\n\n // The CRC of this testcase is invalid.\n // Or better: I have not been able to copy it from the documentation and\n // recreate the \"original\" record for which the provided CRC was calculated.\n // assertTrue(dsmrTelegram.isValidCRC());\n }", "java.lang.String getS6();", "@Test\n\tpublic void test6()\n\t{\n\t\tassertEquals(\n\t\t\t\"$1: {<web> page}\\n\" +\n\t\t\t\"$2: (webpage|$1)\\n\" +\n\t\t\t\"$webpage: {<spacex> $2}\",\n\t\t\texplodeRulesAndCreateString(\"webpage: spacex (webpage|(web page))\")\n\t\t);\n\t}", "private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }", "@Test\n public void t10() {\n try {\n sampleRule = \"&8=\\\"FIX.4.2Aqua\\\";&9000[0]->&9001=\\\"D\\\"\";\n rules = new InfixActions(sampleRule);\n result = rules.transformFIXMsg(TestCustomDictionary.customMsg42, \"FIX.4.2Aqua\"); // System.out.println(result);\n resultStore = StaticTestingUtils.parseMessage(result);\n String r = resultStore.get(\"9001\").get(0);\n Assert.assertEquals(r, \"D\");\n r = resultStore.get(\"8\").get(0);\n Assert.assertEquals(r, \"FIX.4.2Aqua\");\n System.out.println(StaticTestingUtils.rs(result));\n sampleRule = \"&8=\\\"FIX.4.2\\\"\";\n rules = new InfixActions(sampleRule);\n result = rules.transformFIXMsg(result, \"FIX.4.2Aqua\");\n resultStore = StaticTestingUtils.parseMessage(result);\n r = resultStore.get(\"8\").get(0);\n Assert.assertEquals(r, \"FIX.4.2\");\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail();\n }\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateNewsBulletin(11, 13, \"E{Iw-^%H:1$e/\", \"LW)W-|=b,lie*CW\");\n assertEquals(\"MsgId=11 :: MsgType=13 :: Origin=LW)W-|=b,lie*CW :: Message=E{Iw-^%H:1$e/\", string0);\n }", "@Override\n\tpublic void challenge6() {\n\n\t}", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "void mo1507n();", "public void mo6081a() {\n }", "public void testYourFifthPartition() {\n\tSystem.out.print(\"\\nTesting Fifth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:1/a?key=value\", true); // domain + port + path + query\n executeTestPrintResult(\"http://abc.com/a?key=value\", true); // domain + path + query\n executeTestPrintResult(\"http://abc.com:1/a\", true); // domain + port + path\n executeTestPrintResult(\"http://abc.com:1?key=value\", true); // domain + port + query\n\n executeTestPrintResult(\"http://abc.com/a/b:80\", false); // domain + path + port\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c\", false); // domain + query + path\n executeTestPrintResult(\"http://abc.com?key=value:80\", false); // domain + query + port\n executeTestPrintResult(\"http://abc.com:1?key=value/a/b/c\", false); // domain + port + query + path\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c:80\", false); // domain + query + path + port\n executeTestPrintResult(\"http://abc.com?key=value:80/a/b/c\", false); // domain + query + port + path\n executeTestPrintResult(\"http://abc.com/a/b/c:80?key=value\", false); // domain + path + port + query\n executeTestPrintResult(\"http://abc.com/a/b/c?key=value:80\", false); // domain + path + query + port\n\t \n }", "public void mo21877s() {\n }", "private void check6(){\n \n if (errorCode == 0){\n \n int firstSecond = Integer.parseInt(number.substring(0,2));\n int seventhEight = Integer.parseInt(number.substring(6,8));\n \n if (firstSecond + seventhEight != 100){\n valid = false;\n errorCode = 6;\n }\n }\n\t}", "@Test(timeout = 4000)\n public void test136() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n stringReader0.read();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\":\", token0.toString());\n }", "C1458cs mo7613iS();", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "@Test(timeout = 4000)\n public void test013() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.getPreviousToken();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(18, token0.getTokenType());\n }", "@Test\n\tpublic void test7()\n\t{\n\t\tassertEquals(\n\t\t\t\"$1: {<web> page}\\n\" +\n\t\t\t\"$2: (webpage|$1)\\n\" +\n\t\t\t\"$webpage: {<spacex> $2}\\n\" +\n\t\t\t\"$webpage: {<slashdot>}\",\n\t\t\texplodeRulesAndCreateString(\"webpage:\\n\\tspacex (webpage|(web page))\\n\\tslashdot\")\n\t\t);\n\t}", "public void testYourSecondPartition() {\n\tSystem.out.print(\"\\nTesting Second Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:65535\", true); // max allowed port number\n executeTestPrintResult(\"http://abc.com:0\", true); // min allowed port number\n executeTestPrintResult(\"http://abc.com:1\", true); // 1 digit port number \n executeTestPrintResult(\"http://abc.com:99\", true); // 2 digit port number \n executeTestPrintResult(\"http://abc.com:999\", true); // 3 digit port number \n executeTestPrintResult(\"http://abc.com:1000\", true); // 4 digit port number \n executeTestPrintResult(\"http://abc.com:65536\", false); // port number too high \n executeTestPrintResult(\"http://abc.com:-1\", false); // negative port\n executeTestPrintResult(\"http://abc.com:a\", false); // letter in port\n executeTestPrintResult(\"http://abc.com:\", false); // empty port \n executeTestPrintResult(\":123\", false); // no domain \n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }", "public void mo21867i() {\n mo21877s();\n }", "private void kk12() {\n\n\t}", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tString firstline = scanner.nextLine();\r\n\t\tString[] strings = firstline.split(\" \");\r\n\t\tMap<String, Integer> pNs = new HashMap<String, Integer>();\r\n\t\tMap<String, Integer> mNs = new HashMap<String, Integer>();\r\n\t\tMap<String, Integer> nNs = new HashMap<String, Integer>();\r\n\t\t\r\n\t\tfor(int i=0;i<3;i++)\r\n\t\t{\r\n\t\t\tfor(int index=0;index<Integer.parseInt(strings[i]);index++)\r\n\t\t\t{\r\n\t\t\t\tString[] scan = scanner.nextLine().split(\" \");\r\n\t\t\t\tif (i==0) {\r\n\t\t\t\t\tif(Integer.parseInt(scan[1]) >= 200)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpNs.put(scan[0], Integer.parseInt(scan[1]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if(i==1) {\r\n\t\t\t\t\tif (pNs.containsKey(scan[0])) {\r\n\t\t\t\t\t\tmNs.put(scan[0], Integer.parseInt(scan[1]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if(i==2) {\r\n\t\t\t\t\tif (pNs.containsKey(scan[0])) {\r\n\t\t\t\t\t\tnNs.put(scan[0], Integer.parseInt(scan[1]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tMap<String, Integer> endNs = new HashMap<>();\r\n\t\tfor(String name:pNs.keySet())\r\n\t\t{\r\n\t\t\tint ms,ns,ends;\r\n\t\t\tif (mNs.containsKey(name)) {\r\n\t\t\t\tms=mNs.get(name);\r\n\t\t\t}else {\r\n\t\t\t\tms = -1;\r\n\t\t\t\tmNs.put(name, ms);\r\n\t\t\t}\r\n\t\t\tif (nNs.containsKey(name)) {\r\n\t\t\t\tns=nNs.get(name);\r\n\t\t\t}else {\r\n\t\t\t\tns = -1;\r\n\t\t\t\tnNs.put(name, ns);\r\n\t\t\t}\r\n\t\t\tif (ms > ns) {\r\n\t\t\t\tends = (int) Math.round(ms*0.4+ns*0.6);\r\n\t\t\t}else {\r\n\t\t\t\tends = ns;\r\n\t\t\t}\r\n\t\t\tif (ends > 59) {\r\n\t\t\t\tendNs.put(name, ends);\r\n\t\t\t}\r\n\t\t}\r\n\t\tList<Map.Entry<String,Integer>> list = new ArrayList<Map.Entry<String,Integer>>(endNs.entrySet());\r\n\t\tCollections.sort(list,new Comparator<Map.Entry<String,Integer>>() {\r\n\t\t public int compare(Entry<String,Integer> o1,Entry<String,Integer> o2) {\r\n\t\t if(o1.getValue().equals(o2.getValue())){\r\n\t\t return o1.getKey().compareTo(o2.getKey());\r\n\t\t }else{\r\n\t\t return -(o1.getValue().compareTo(o2.getValue()));\r\n\t\t }\r\n\t\t }\r\n\t\t });\r\n\t\tfor(int i=0;i<list.size();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(list.get(i).getKey()+\" \"+pNs.get(list.get(i).getKey())+\" \"+mNs.get(list.get(i).getKey())+\" \"+nNs.get(list.get(i).getKey())+\" \"+list.get(i).getValue());\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n\tpublic void testIPV6WithInterface() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[fe80::212:79ff:fe89:c900%5]\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[fe80::212:79ff:fe89:c900%5]\", uri.getHost());\n\t\tAssert.assertEquals(-1, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "@Override\n\tpublic void challenge10() {\n\n\t}", "String canonHr(String s) {\n List<String> l = StringUtil.breakAt(s, \":\");\n if (l.size() == 2) {\n return l.get(0) + \":\" + l.get(1).toUpperCase();\n }\n return s.toUpperCase();\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "public int mo36g() {\n return 8;\n }", "private static boolean m55560tZ(int i) {\n return i == 7;\n }", "private final void step6()\n\t { j = k;\n\t if (b[k] == 'e')\n\t { int a = m();\n\t if (a > 1 || a == 1 && !cvc(k-1)) k--;\n\t }\n\t if (b[k] == 'l' && doublec(k) && m() > 1) k--;\n\t }", "public static void main2(String args[]) {\n String s1 = \"2009-03-10T16:08:55.184 -0600 [ 16621850][ 162233] INFO - thredds.server.opendap.NcDODSServlet - Remote host: 128.117.140.71 - Request: \\\"GET /thredds/dodsC/model/NCEP/NAM/CONUS_80km/NAM_CONUS_80km_20090309_0000.grib1.dods?Geopotential_height%5B7:1:7%5D%5B0:10:10%5D%5B0:1:64%5D%5B0:1:92%5D HTTP/1.1\\\"\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s1, p1);\r\n\r\n // 1 2 3 4 5 6 7 8 9\r\n String s2 = \"2009-03-10T16:08:54.617 -0600 [ 16621283][ 162230] INFO - thredds.server.opendap.NcDODSServlet - Request Completed - 200 - -1 - 47\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s2, p2);\r\n\r\n// Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n Pattern p3 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - (.*)\");\r\n\r\n show(s1, p3);\r\n show(s2, p3);\r\n\r\n }", "public void mo21783H() {\n }", "@Test(timeout = 4000)\n public void test165() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.colon();\n assertEquals(18, token0.getTokenType());\n }", "@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }", "public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}", "@Override\n\tpublic void challenge11() {\n\n\t}", "public static void main(String[] args) {\n\t\tString s = \"12:45:54PM\";\r\n\t\tString temp=\":\";\r\n\t\tString Result=\"\";\r\n\t\t\r\n\t\tif(s.charAt(8)=='P' || s.charAt(8)=='p')\r\n\t\t {\r\n\t\t\tString s1[] = s.split(\":\");\r\n\t int Hour = Integer.parseInt(s1[0]);\r\n\t String Actual_Hour = \"\";\r\n\t if(Hour == 12)\r\n\t {\r\n\t \tActual_Hour = \"12\";\r\n\t }\r\n\t else\r\n\t {\r\n\t \tint data = 12 + Hour;\r\n\t \tActual_Hour = String.valueOf(data);\r\n\t }\r\n\t \r\n\t \r\n\t Result = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2);\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t \tString s1[] = s.split(\":\");\r\n\t\t \tint Hour = Integer.parseInt(s1[0]);\r\n\t\t String Actual_Hour = \"\";\r\n\t\t if(Hour == 12)\r\n\t\t {\r\n\t\t \tActual_Hour = \"00\";\r\n\t\t \tResult = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2); \r\n\t\t }\r\n\t\t else {\r\n\t\t \tString s2[] = s.split(\"AM\");\r\n\t\t\t for(int i=0; i<s2.length; i++)\r\n\t\t\t {\r\n\t\t\t \tResult = s2[i];\r\n\t\t\t }\t\r\n\t\t }\r\n\t\t \t\r\n\t\t }\r\n\t\t\r\n\t\t\t\tSystem.out.println(Result);\r\n}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private int m106810b(String str) {\n for (int i = 0; i < this.f86083b.size(); i++) {\n C23360e eVar = (C23360e) this.f86083b.get(i);\n if ((eVar instanceof StoryFeedItemViewModel) && str.equals(((StoryFeedItemViewModel) eVar).mo84780g())) {\n return i;\n }\n }\n return -1;\n }", "private static int getNodeTime(String node) {\n int offSet = 4;\n return (int) node.toCharArray()[0] - offSet;\n }", "public int mo4308c(int r6, int r7) {\n /*\n r5 = this;\n int r0 = r5.mo4307b(r6)\n r1 = 0\n if (r0 != r7) goto L_0x0008\n return r1\n L_0x0008:\n boolean r2 = r5.f3130b\n if (r2 == 0) goto L_0x0026\n android.util.SparseIntArray r2 = r5.f3129a\n int r2 = r2.size()\n if (r2 <= 0) goto L_0x0026\n int r2 = r5.mo4311a(r6)\n if (r2 < 0) goto L_0x0026\n android.util.SparseIntArray r3 = r5.f3129a\n int r3 = r3.get(r2)\n int r4 = r5.mo4307b(r2)\n int r3 = r3 + r4\n goto L_0x0036\n L_0x0026:\n r2 = 0\n r3 = 0\n L_0x0028:\n if (r2 >= r6) goto L_0x0039\n int r4 = r5.mo4307b(r2)\n int r3 = r3 + r4\n if (r3 != r7) goto L_0x0033\n r3 = 0\n goto L_0x0036\n L_0x0033:\n if (r3 <= r7) goto L_0x0036\n r3 = r4\n L_0x0036:\n int r2 = r2 + 1\n goto L_0x0028\n L_0x0039:\n int r0 = r0 + r3\n if (r0 > r7) goto L_0x003d\n return r3\n L_0x003d:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.recyclerview.widget.GridLayoutManager.C0781c.mo4308c(int, int):int\");\n }", "@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }", "public static void incorrect6() {\r\n\r\n System.out.println(\" *---*\");\r\n System.out.println(\" | |\");\r\n System.out.println(\" 0 |\");\r\n System.out.println(\" /|\\\\ | Incorrect - 6\");\r\n System.out.println(\" / \\\\ |\");\r\n System.out.println(\" |\");\r\n System.out.println(\"==========\");\r\n }", "public interface Stalk57 extends Stalk {\n /*\n 57 S0 DD Sat Info: S number of sats, DD horiz. dillution of position, if S=1 -> DD=0x94\n Corresponding NMEA sentences: GGA, GSA\n */\n public Integer getSats();\n public Integer getHDOP();\n}", "void nhap(String tenHinh) {\n this.tenHinh = tenHinh;\n }", "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "private String processBytes(String bytes){\n Pattern p = Pattern.compile(\"170-180\");\r\n Matcher m = p.matcher(bytes);\r\n //find two bounds\r\n int posi[] = new int[2];\r\n for(int i=0;i<2;i++){\r\n if(m.find()) posi[i] = m.start();\r\n }\r\n //Cut string\r\n return bytes.substring(posi[0], posi[1]);\r\n }", "public int mo36g() {\n return 4;\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "public void mo55254a() {\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n String string0 = SQLUtil.normalize(\"aT:7W`oI)N(jLl^oF<HQ\", false);\n assertEquals(\"aT : 7W ` oI) N (jLl ^ oF < HQ\", string0);\n }", "public String designPN(String nr)\r\n {\r\n String newStr=\"(\";\r\n if(nr.length()!=10){return null;}\r\n else\r\n {\r\n newStr=newStr+nr.substring(0,4)+\")-\";\r\n // System.out.println(\"phase 1 \"+ newStr);\r\n newStr=newStr+nr.substring(4,7)+\"-\";\r\n // System.out.println(\"phase 2 \"+ newStr);\r\n newStr=newStr+nr.substring(7,10);\r\n // System.out.println(\"phase 3 \"+ newStr);\r\n }\r\n return newStr;\r\n\r\n }", "public static com.jcraft.jsch.KeyPair j6(com.jcraft.jsch.JSch r19, byte[] r20, byte[] r21) {\n /*\n r2 = 8;\n r12 = new byte[r2];\n r11 = 1;\n r2 = 0;\n r2 = (byte[]) r2;\n r3 = 0;\n r3 = (byte[]) r3;\n r8 = 0;\n r7 = 0;\n r9 = \"\";\n r6 = 0;\n if (r21 != 0) goto L_0x0089;\n L_0x0013:\n if (r20 == 0) goto L_0x0089;\n L_0x0015:\n r0 = r20;\n r4 = r0.length;\n r5 = 11;\n if (r4 <= r5) goto L_0x0089;\n L_0x001c:\n r4 = 0;\n r4 = r20[r4];\n if (r4 != 0) goto L_0x0089;\n L_0x0021:\n r4 = 1;\n r4 = r20[r4];\n if (r4 != 0) goto L_0x0089;\n L_0x0026:\n r4 = 2;\n r4 = r20[r4];\n if (r4 != 0) goto L_0x0089;\n L_0x002b:\n r4 = 3;\n r4 = r20[r4];\n r5 = 7;\n if (r4 != r5) goto L_0x0089;\n L_0x0031:\n r2 = new com.jcraft.jsch.Buffer;\n r0 = r20;\n r2.<init>(r0);\n r0 = r20;\n r3 = r0.length;\n r2.DW(r3);\n r3 = new java.lang.String;\n r4 = r2.tp();\n r3.<init>(r4);\n r2.J0();\n r4 = \"ssh-rsa\";\n r4 = r3.equals(r4);\n if (r4 == 0) goto L_0x005a;\n L_0x0053:\n r0 = r19;\n r2 = com.jcraft.jsch.KeyPairRSA.j6(r0, r2);\n L_0x0059:\n return r2;\n L_0x005a:\n r4 = \"ssh-dss\";\n r3 = r3.equals(r4);\n if (r3 == 0) goto L_0x006a;\n L_0x0063:\n r0 = r19;\n r2 = com.jcraft.jsch.KeyPairDSA.j6(r0, r2);\n goto L_0x0059;\n L_0x006a:\n r2 = new com.jcraft.jsch.JSchException;\n r3 = new java.lang.StringBuilder;\n r4 = \"privatekey: invalid key \";\n r3.<init>(r4);\n r4 = new java.lang.String;\n r5 = 4;\n r6 = 7;\n r0 = r20;\n r4.<init>(r0, r5, r6);\n r3 = r3.append(r4);\n r3 = r3.toString();\n r2.<init>(r3);\n throw r2;\n L_0x0089:\n if (r20 == 0) goto L_0x0093;\n L_0x008b:\n r4 = j6(r19, r20);\t Catch:{ Exception -> 0x00bf }\n if (r4 == 0) goto L_0x0093;\n L_0x0091:\n r2 = r4;\n goto L_0x0059;\n L_0x0093:\n if (r20 == 0) goto L_0x00c7;\n L_0x0095:\n r0 = r20;\n r4 = r0.length;\t Catch:{ Exception -> 0x00bf }\n r5 = r4;\n L_0x0099:\n r10 = 0;\n L_0x009a:\n if (r10 < r5) goto L_0x00ca;\n L_0x009c:\n r13 = r6;\n r14 = r12;\n r6 = r7;\n r7 = r8;\n r8 = r11;\n L_0x00a1:\n if (r10 < r5) goto L_0x00fd;\n L_0x00a3:\n if (r20 == 0) goto L_0x04be;\n L_0x00a5:\n if (r7 != 0) goto L_0x0476;\n L_0x00a7:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"invalid privatekey: \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x00bf:\n r2 = move-exception;\n r3 = r2 instanceof com.jcraft.jsch.JSchException;\n if (r3 == 0) goto L_0x06e4;\n L_0x00c4:\n r2 = (com.jcraft.jsch.JSchException) r2;\n throw r2;\n L_0x00c7:\n r4 = 0;\n r5 = r4;\n goto L_0x0099;\n L_0x00ca:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r13 = 45;\n if (r4 != r13) goto L_0x00fa;\n L_0x00d0:\n r4 = r10 + 4;\n if (r4 >= r5) goto L_0x00fa;\n L_0x00d4:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r13 = 45;\n if (r4 != r13) goto L_0x00fa;\n L_0x00dc:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r13 = 45;\n if (r4 != r13) goto L_0x00fa;\n L_0x00e4:\n r4 = r10 + 3;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r13 = 45;\n if (r4 != r13) goto L_0x00fa;\n L_0x00ec:\n r4 = r10 + 4;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r13 = 45;\n if (r4 != r13) goto L_0x00fa;\n L_0x00f4:\n r13 = r6;\n r14 = r12;\n r6 = r7;\n r7 = r8;\n r8 = r11;\n goto L_0x00a1;\n L_0x00fa:\n r10 = r10 + 1;\n goto L_0x009a;\n L_0x00fd:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 66;\n if (r4 != r11) goto L_0x0231;\n L_0x0103:\n r4 = r10 + 3;\n if (r4 >= r5) goto L_0x0231;\n L_0x0107:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 69;\n if (r4 != r11) goto L_0x0231;\n L_0x010f:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 71;\n if (r4 != r11) goto L_0x0231;\n L_0x0117:\n r4 = r10 + 3;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 73;\n if (r4 != r11) goto L_0x0231;\n L_0x011f:\n r4 = r10 + 6;\n r7 = r4 + 2;\n if (r7 < r5) goto L_0x013d;\n L_0x0125:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"invalid privatekey: \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x013d:\n r7 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r10 = 68;\n if (r7 != r10) goto L_0x0158;\n L_0x0143:\n r7 = r4 + 1;\n r7 = r20[r7];\t Catch:{ Exception -> 0x00bf }\n r10 = 83;\n if (r7 != r10) goto L_0x0158;\n L_0x014b:\n r7 = r4 + 2;\n r7 = r20[r7];\t Catch:{ Exception -> 0x00bf }\n r10 = 65;\n if (r7 != r10) goto L_0x0158;\n L_0x0153:\n r7 = 1;\n L_0x0154:\n r10 = r4 + 3;\n goto L_0x00a1;\n L_0x0158:\n r7 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r10 = 82;\n if (r7 != r10) goto L_0x0170;\n L_0x015e:\n r7 = r4 + 1;\n r7 = r20[r7];\t Catch:{ Exception -> 0x00bf }\n r10 = 83;\n if (r7 != r10) goto L_0x0170;\n L_0x0166:\n r7 = r4 + 2;\n r7 = r20[r7];\t Catch:{ Exception -> 0x00bf }\n r10 = 65;\n if (r7 != r10) goto L_0x0170;\n L_0x016e:\n r7 = 2;\n goto L_0x0154;\n L_0x0170:\n r6 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r7 = 83;\n if (r6 != r7) goto L_0x0189;\n L_0x0176:\n r6 = r4 + 1;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 83;\n if (r6 != r7) goto L_0x0189;\n L_0x017e:\n r6 = r4 + 2;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 72;\n if (r6 != r7) goto L_0x0189;\n L_0x0186:\n r7 = 3;\n r6 = 1;\n goto L_0x0154;\n L_0x0189:\n r6 = r4 + 6;\n if (r6 >= r5) goto L_0x01c9;\n L_0x018d:\n r6 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r7 = 80;\n if (r6 != r7) goto L_0x01c9;\n L_0x0193:\n r6 = r4 + 1;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 82;\n if (r6 != r7) goto L_0x01c9;\n L_0x019b:\n r6 = r4 + 2;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 73;\n if (r6 != r7) goto L_0x01c9;\n L_0x01a3:\n r6 = r4 + 3;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 86;\n if (r6 != r7) goto L_0x01c9;\n L_0x01ab:\n r6 = r4 + 4;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 65;\n if (r6 != r7) goto L_0x01c9;\n L_0x01b3:\n r6 = r4 + 5;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 84;\n if (r6 != r7) goto L_0x01c9;\n L_0x01bb:\n r6 = r4 + 6;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 69;\n if (r6 != r7) goto L_0x01c9;\n L_0x01c3:\n r7 = 3;\n r6 = 3;\n r8 = 0;\n r4 = r4 + 3;\n goto L_0x0154;\n L_0x01c9:\n r6 = r4 + 8;\n if (r6 >= r5) goto L_0x0219;\n L_0x01cd:\n r6 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r7 = 69;\n if (r6 != r7) goto L_0x0219;\n L_0x01d3:\n r6 = r4 + 1;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 78;\n if (r6 != r7) goto L_0x0219;\n L_0x01db:\n r6 = r4 + 2;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 67;\n if (r6 != r7) goto L_0x0219;\n L_0x01e3:\n r6 = r4 + 3;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 82;\n if (r6 != r7) goto L_0x0219;\n L_0x01eb:\n r6 = r4 + 4;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 89;\n if (r6 != r7) goto L_0x0219;\n L_0x01f3:\n r6 = r4 + 5;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 80;\n if (r6 != r7) goto L_0x0219;\n L_0x01fb:\n r6 = r4 + 6;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 84;\n if (r6 != r7) goto L_0x0219;\n L_0x0203:\n r6 = r4 + 7;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 69;\n if (r6 != r7) goto L_0x0219;\n L_0x020b:\n r6 = r4 + 8;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 68;\n if (r6 != r7) goto L_0x0219;\n L_0x0213:\n r7 = 3;\n r6 = 3;\n r4 = r4 + 5;\n goto L_0x0154;\n L_0x0219:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"invalid privatekey: \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x0231:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 65;\n if (r4 != r11) goto L_0x02b5;\n L_0x0237:\n r4 = r10 + 7;\n if (r4 >= r5) goto L_0x02b5;\n L_0x023b:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 69;\n if (r4 != r11) goto L_0x02b5;\n L_0x0243:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 83;\n if (r4 != r11) goto L_0x02b5;\n L_0x024b:\n r4 = r10 + 3;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 45;\n if (r4 != r11) goto L_0x02b5;\n L_0x0253:\n r4 = r10 + 4;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 50;\n if (r4 != r11) goto L_0x02b5;\n L_0x025b:\n r4 = r10 + 5;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 53;\n if (r4 != r11) goto L_0x02b5;\n L_0x0263:\n r4 = r10 + 6;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 54;\n if (r4 != r11) goto L_0x02b5;\n L_0x026b:\n r4 = r10 + 7;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 45;\n if (r4 != r11) goto L_0x02b5;\n L_0x0273:\n r10 = r10 + 8;\n r4 = \"aes256-cbc\";\n r4 = com.jcraft.jsch.JSch.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = com.jcraft.jsch.Session.VH(r4);\t Catch:{ Exception -> 0x00bf }\n if (r4 == 0) goto L_0x029d;\n L_0x0282:\n r4 = \"aes256-cbc\";\n r4 = com.jcraft.jsch.JSch.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = java.lang.Class.forName(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = r4.newInstance();\t Catch:{ Exception -> 0x00bf }\n r4 = (com.jcraft.jsch.Cipher) r4;\t Catch:{ Exception -> 0x00bf }\n r11 = r4.j6();\t Catch:{ Exception -> 0x00bf }\n r11 = new byte[r11];\t Catch:{ Exception -> 0x00bf }\n r13 = r4;\n r14 = r11;\n goto L_0x00a1;\n L_0x029d:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"privatekey: aes256-cbc is not available \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x02b5:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 65;\n if (r4 != r11) goto L_0x0339;\n L_0x02bb:\n r4 = r10 + 7;\n if (r4 >= r5) goto L_0x0339;\n L_0x02bf:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 69;\n if (r4 != r11) goto L_0x0339;\n L_0x02c7:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 83;\n if (r4 != r11) goto L_0x0339;\n L_0x02cf:\n r4 = r10 + 3;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 45;\n if (r4 != r11) goto L_0x0339;\n L_0x02d7:\n r4 = r10 + 4;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 49;\n if (r4 != r11) goto L_0x0339;\n L_0x02df:\n r4 = r10 + 5;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 57;\n if (r4 != r11) goto L_0x0339;\n L_0x02e7:\n r4 = r10 + 6;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 50;\n if (r4 != r11) goto L_0x0339;\n L_0x02ef:\n r4 = r10 + 7;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 45;\n if (r4 != r11) goto L_0x0339;\n L_0x02f7:\n r10 = r10 + 8;\n r4 = \"aes192-cbc\";\n r4 = com.jcraft.jsch.JSch.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = com.jcraft.jsch.Session.VH(r4);\t Catch:{ Exception -> 0x00bf }\n if (r4 == 0) goto L_0x0321;\n L_0x0306:\n r4 = \"aes192-cbc\";\n r4 = com.jcraft.jsch.JSch.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = java.lang.Class.forName(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = r4.newInstance();\t Catch:{ Exception -> 0x00bf }\n r4 = (com.jcraft.jsch.Cipher) r4;\t Catch:{ Exception -> 0x00bf }\n r11 = r4.j6();\t Catch:{ Exception -> 0x00bf }\n r11 = new byte[r11];\t Catch:{ Exception -> 0x00bf }\n r13 = r4;\n r14 = r11;\n goto L_0x00a1;\n L_0x0321:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"privatekey: aes192-cbc is not available \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x0339:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 65;\n if (r4 != r11) goto L_0x03bd;\n L_0x033f:\n r4 = r10 + 7;\n if (r4 >= r5) goto L_0x03bd;\n L_0x0343:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 69;\n if (r4 != r11) goto L_0x03bd;\n L_0x034b:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 83;\n if (r4 != r11) goto L_0x03bd;\n L_0x0353:\n r4 = r10 + 3;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 45;\n if (r4 != r11) goto L_0x03bd;\n L_0x035b:\n r4 = r10 + 4;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 49;\n if (r4 != r11) goto L_0x03bd;\n L_0x0363:\n r4 = r10 + 5;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 50;\n if (r4 != r11) goto L_0x03bd;\n L_0x036b:\n r4 = r10 + 6;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 56;\n if (r4 != r11) goto L_0x03bd;\n L_0x0373:\n r4 = r10 + 7;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 45;\n if (r4 != r11) goto L_0x03bd;\n L_0x037b:\n r10 = r10 + 8;\n r4 = \"aes128-cbc\";\n r4 = com.jcraft.jsch.JSch.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = com.jcraft.jsch.Session.VH(r4);\t Catch:{ Exception -> 0x00bf }\n if (r4 == 0) goto L_0x03a5;\n L_0x038a:\n r4 = \"aes128-cbc\";\n r4 = com.jcraft.jsch.JSch.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = java.lang.Class.forName(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = r4.newInstance();\t Catch:{ Exception -> 0x00bf }\n r4 = (com.jcraft.jsch.Cipher) r4;\t Catch:{ Exception -> 0x00bf }\n r11 = r4.j6();\t Catch:{ Exception -> 0x00bf }\n r11 = new byte[r11];\t Catch:{ Exception -> 0x00bf }\n r13 = r4;\n r14 = r11;\n goto L_0x00a1;\n L_0x03a5:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"privatekey: aes128-cbc is not available \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x03bd:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 67;\n if (r4 != r11) goto L_0x0402;\n L_0x03c3:\n r4 = r10 + 3;\n if (r4 >= r5) goto L_0x0402;\n L_0x03c7:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 66;\n if (r4 != r11) goto L_0x0402;\n L_0x03cf:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 67;\n if (r4 != r11) goto L_0x0402;\n L_0x03d7:\n r4 = r10 + 3;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 44;\n if (r4 != r11) goto L_0x0402;\n L_0x03df:\n r10 = r10 + 4;\n r4 = 0;\n L_0x03e2:\n r11 = r14.length;\t Catch:{ Exception -> 0x00bf }\n if (r4 >= r11) goto L_0x00a1;\n L_0x03e5:\n r11 = r10 + 1;\n r10 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r10 = j6(r10);\t Catch:{ Exception -> 0x00bf }\n r10 = r10 << 4;\n r12 = r10 & 240;\n r10 = r11 + 1;\n r11 = r20[r11];\t Catch:{ Exception -> 0x00bf }\n r11 = j6(r11);\t Catch:{ Exception -> 0x00bf }\n r11 = r11 & 15;\n r11 = r11 + r12;\n r11 = (byte) r11;\t Catch:{ Exception -> 0x00bf }\n r14[r4] = r11;\t Catch:{ Exception -> 0x00bf }\n r4 = r4 + 1;\n goto L_0x03e2;\n L_0x0402:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 13;\n if (r4 != r11) goto L_0x041b;\n L_0x0408:\n r4 = r10 + 1;\n r0 = r20;\n r11 = r0.length;\t Catch:{ Exception -> 0x00bf }\n if (r4 >= r11) goto L_0x041b;\n L_0x040f:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 10;\n if (r4 != r11) goto L_0x041b;\n L_0x0417:\n r10 = r10 + 1;\n goto L_0x00a1;\n L_0x041b:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 10;\n if (r4 != r11) goto L_0x0472;\n L_0x0421:\n r4 = r10 + 1;\n r0 = r20;\n r11 = r0.length;\t Catch:{ Exception -> 0x00bf }\n if (r4 >= r11) goto L_0x0472;\n L_0x0428:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 10;\n if (r4 != r11) goto L_0x0434;\n L_0x0430:\n r10 = r10 + 2;\n goto L_0x00a3;\n L_0x0434:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 13;\n if (r4 != r11) goto L_0x044f;\n L_0x043c:\n r4 = r10 + 2;\n r0 = r20;\n r11 = r0.length;\t Catch:{ Exception -> 0x00bf }\n if (r4 >= r11) goto L_0x044f;\n L_0x0443:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 10;\n if (r4 != r11) goto L_0x044f;\n L_0x044b:\n r10 = r10 + 3;\n goto L_0x00a3;\n L_0x044f:\n r4 = 0;\n r11 = r10 + 1;\n L_0x0452:\n r0 = r20;\n r12 = r0.length;\t Catch:{ Exception -> 0x00bf }\n if (r11 < r12) goto L_0x0461;\n L_0x0457:\n if (r4 != 0) goto L_0x0472;\n L_0x0459:\n r10 = r10 + 1;\n r4 = 3;\n if (r6 == r4) goto L_0x00a3;\n L_0x045e:\n r8 = 0;\n goto L_0x00a3;\n L_0x0461:\n r12 = r20[r11];\t Catch:{ Exception -> 0x00bf }\n r15 = 10;\n if (r12 == r15) goto L_0x0457;\n L_0x0467:\n r12 = r20[r11];\t Catch:{ Exception -> 0x00bf }\n r15 = 58;\n if (r12 != r15) goto L_0x046f;\n L_0x046d:\n r4 = 1;\n goto L_0x0457;\n L_0x046f:\n r11 = r11 + 1;\n goto L_0x0452;\n L_0x0472:\n r10 = r10 + 1;\n goto L_0x00a1;\n L_0x0476:\n r4 = r10;\n L_0x0477:\n if (r4 < r5) goto L_0x0498;\n L_0x0479:\n r5 = r5 - r4;\n if (r5 == 0) goto L_0x0480;\n L_0x047c:\n r5 = r4 - r10;\n if (r5 != 0) goto L_0x04a1;\n L_0x0480:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"invalid privatekey: \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x0498:\n r11 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r12 = 45;\n if (r11 == r12) goto L_0x0479;\n L_0x049e:\n r4 = r4 + 1;\n goto L_0x0477;\n L_0x04a1:\n r4 = r4 - r10;\n r12 = new byte[r4];\t Catch:{ Exception -> 0x00bf }\n r4 = 0;\n r5 = r12.length;\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n java.lang.System.arraycopy(r0, r10, r12, r4, r5);\t Catch:{ Exception -> 0x00bf }\n r15 = 0;\n r5 = 0;\n r4 = r12.length;\t Catch:{ Exception -> 0x00bf }\n r11 = r5;\n L_0x04af:\n if (r11 < r4) goto L_0x0524;\n L_0x04b1:\n r4 = r11 - r15;\n if (r4 <= 0) goto L_0x04bb;\n L_0x04b5:\n r2 = r11 - r15;\n r2 = com.jcraft.jsch.Util.j6(r12, r15, r2);\t Catch:{ Exception -> 0x00bf }\n L_0x04bb:\n com.jcraft.jsch.Util.Hw(r12);\t Catch:{ Exception -> 0x00bf }\n L_0x04be:\n if (r2 == 0) goto L_0x074c;\n L_0x04c0:\n r4 = r2.length;\t Catch:{ Exception -> 0x00bf }\n r5 = 4;\n if (r4 <= r5) goto L_0x074c;\n L_0x04c4:\n r4 = 0;\n r4 = r2[r4];\t Catch:{ Exception -> 0x00bf }\n r5 = 63;\n if (r4 != r5) goto L_0x074c;\n L_0x04cb:\n r4 = 1;\n r4 = r2[r4];\t Catch:{ Exception -> 0x00bf }\n r5 = 111; // 0x6f float:1.56E-43 double:5.5E-322;\n if (r4 != r5) goto L_0x074c;\n L_0x04d2:\n r4 = 2;\n r4 = r2[r4];\t Catch:{ Exception -> 0x00bf }\n r5 = -7;\n if (r4 != r5) goto L_0x074c;\n L_0x04d8:\n r4 = 3;\n r4 = r2[r4];\t Catch:{ Exception -> 0x00bf }\n r5 = -21;\n if (r4 != r5) goto L_0x074c;\n L_0x04df:\n r5 = new com.jcraft.jsch.Buffer;\t Catch:{ Exception -> 0x00bf }\n r5.<init>(r2);\t Catch:{ Exception -> 0x00bf }\n r5.Hw();\t Catch:{ Exception -> 0x00bf }\n r5.Hw();\t Catch:{ Exception -> 0x00bf }\n r5.tp();\t Catch:{ Exception -> 0x00bf }\n r4 = r5.tp();\t Catch:{ Exception -> 0x00bf }\n r4 = com.jcraft.jsch.Util.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r10 = \"3des-cbc\";\n r10 = r4.equals(r10);\t Catch:{ Exception -> 0x00bf }\n if (r10 == 0) goto L_0x055e;\n L_0x04fe:\n r5.Hw();\t Catch:{ Exception -> 0x00bf }\n r2 = r2.length;\t Catch:{ Exception -> 0x00bf }\n r3 = r5.DW();\t Catch:{ Exception -> 0x00bf }\n r2 = r2 - r3;\n r2 = new byte[r2];\t Catch:{ Exception -> 0x00bf }\n r5.Hw(r2);\t Catch:{ Exception -> 0x00bf }\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"unknown privatekey format: \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x0524:\n r5 = r12[r11];\t Catch:{ Exception -> 0x00bf }\n r10 = 10;\n if (r5 != r10) goto L_0x0553;\n L_0x052a:\n r5 = r11 + -1;\n r5 = r12[r5];\t Catch:{ Exception -> 0x00bf }\n r10 = 13;\n if (r5 != r10) goto L_0x054e;\n L_0x0532:\n r5 = 1;\n r10 = r5;\n L_0x0534:\n r16 = r11 + 1;\n if (r10 == 0) goto L_0x0551;\n L_0x0538:\n r5 = 1;\n L_0x0539:\n r5 = r11 - r5;\n r17 = r11 + 1;\n r17 = r4 - r17;\n r0 = r16;\n r1 = r17;\n java.lang.System.arraycopy(r12, r0, r12, r5, r1);\t Catch:{ Exception -> 0x00bf }\n if (r10 == 0) goto L_0x054a;\n L_0x0548:\n r4 = r4 + -1;\n L_0x054a:\n r4 = r4 + -1;\n goto L_0x04af;\n L_0x054e:\n r5 = 0;\n r10 = r5;\n goto L_0x0534;\n L_0x0551:\n r5 = 0;\n goto L_0x0539;\n L_0x0553:\n r5 = r12[r11];\t Catch:{ Exception -> 0x00bf }\n r10 = 45;\n if (r5 == r10) goto L_0x04b1;\n L_0x0559:\n r5 = r11 + 1;\n r11 = r5;\n goto L_0x04af;\n L_0x055e:\n r10 = \"none\";\n r4 = r4.equals(r10);\t Catch:{ Exception -> 0x00bf }\n if (r4 == 0) goto L_0x074c;\n L_0x0567:\n r5.Hw();\t Catch:{ Exception -> 0x00bf }\n r5.Hw();\t Catch:{ Exception -> 0x00bf }\n r4 = 0;\n r2 = r2.length;\t Catch:{ Exception -> 0x00bf }\n r8 = r5.DW();\t Catch:{ Exception -> 0x00bf }\n r2 = r2 - r8;\n r2 = new byte[r2];\t Catch:{ Exception -> 0x00bf }\n r5.Hw(r2);\t Catch:{ Exception -> 0x00bf }\n r11 = r2;\n r12 = r4;\n L_0x057b:\n if (r21 == 0) goto L_0x0748;\n L_0x057d:\n r0 = r21;\n r8 = r0.length;\t Catch:{ Exception -> 0x06df }\n r0 = r21;\n r2 = r0.length;\t Catch:{ Exception -> 0x06df }\n r4 = 4;\n if (r2 <= r4) goto L_0x0657;\n L_0x0586:\n r2 = 0;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 45;\n if (r2 != r4) goto L_0x0657;\n L_0x058d:\n r2 = 1;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 45;\n if (r2 != r4) goto L_0x0657;\n L_0x0594:\n r2 = 2;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 45;\n if (r2 != r4) goto L_0x0657;\n L_0x059b:\n r2 = 3;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 45;\n if (r2 != r4) goto L_0x0657;\n L_0x05a2:\n r2 = 1;\n r5 = 0;\n L_0x05a4:\n r5 = r5 + 1;\n r0 = r21;\n r4 = r0.length;\t Catch:{ Exception -> 0x06df }\n if (r4 <= r5) goto L_0x05b1;\n L_0x05ab:\n r4 = r21[r5];\t Catch:{ Exception -> 0x06df }\n r10 = 10;\n if (r4 != r10) goto L_0x05a4;\n L_0x05b1:\n r0 = r21;\n r4 = r0.length;\t Catch:{ Exception -> 0x06df }\n if (r4 > r5) goto L_0x05b7;\n L_0x05b6:\n r2 = 0;\n L_0x05b7:\n if (r2 != 0) goto L_0x0600;\n L_0x05b9:\n r0 = r21;\n r4 = r0.length;\t Catch:{ Exception -> 0x06df }\n if (r4 > r5) goto L_0x05bf;\n L_0x05be:\n r2 = 0;\n L_0x05bf:\n r4 = r5;\n L_0x05c0:\n if (r2 == 0) goto L_0x05c4;\n L_0x05c2:\n if (r4 < r8) goto L_0x062b;\n L_0x05c4:\n if (r2 == 0) goto L_0x0748;\n L_0x05c6:\n r2 = r4 - r5;\n r0 = r21;\n r3 = com.jcraft.jsch.Util.j6(r0, r5, r2);\t Catch:{ Exception -> 0x06df }\n if (r20 == 0) goto L_0x05d3;\n L_0x05d0:\n r2 = 3;\n if (r7 != r2) goto L_0x0748;\n L_0x05d3:\n r2 = 8;\n r2 = r3[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 100;\n if (r2 != r4) goto L_0x064b;\n L_0x05db:\n r7 = 1;\n r4 = r3;\n r3 = r9;\n L_0x05de:\n r2 = 0;\n r5 = 1;\n if (r7 != r5) goto L_0x06fc;\n L_0x05e2:\n r2 = new com.jcraft.jsch.KeyPairDSA;\n r0 = r19;\n r2.<init>(r0);\n L_0x05e9:\n if (r2 == 0) goto L_0x0059;\n L_0x05eb:\n r2.v5 = r12;\n r2.J0 = r4;\n r2.j6 = r6;\n r2.DW = r3;\n r2.gn = r13;\n if (r12 == 0) goto L_0x0714;\n L_0x05f7:\n r3 = 1;\n r2.v5 = r3;\n r2.we = r14;\n r2.Zo = r11;\n goto L_0x0059;\n L_0x0600:\n r4 = r21[r5];\t Catch:{ Exception -> 0x06df }\n r10 = 10;\n if (r4 != r10) goto L_0x0628;\n L_0x0606:\n r4 = 0;\n r10 = r5 + 1;\n L_0x0609:\n r0 = r21;\n r15 = r0.length;\t Catch:{ Exception -> 0x06df }\n if (r10 < r15) goto L_0x0613;\n L_0x060e:\n if (r4 != 0) goto L_0x0628;\n L_0x0610:\n r5 = r5 + 1;\n goto L_0x05b9;\n L_0x0613:\n r15 = r21[r10];\t Catch:{ Exception -> 0x06df }\n r16 = 10;\n r0 = r16;\n if (r15 == r0) goto L_0x060e;\n L_0x061b:\n r15 = r21[r10];\t Catch:{ Exception -> 0x06df }\n r16 = 58;\n r0 = r16;\n if (r15 != r0) goto L_0x0625;\n L_0x0623:\n r4 = 1;\n goto L_0x060e;\n L_0x0625:\n r10 = r10 + 1;\n goto L_0x0609;\n L_0x0628:\n r5 = r5 + 1;\n goto L_0x05b7;\n L_0x062b:\n r10 = r21[r4];\t Catch:{ Exception -> 0x06df }\n r15 = 10;\n if (r10 != r15) goto L_0x0641;\n L_0x0631:\n r10 = r4 + 1;\n r15 = r8 - r4;\n r15 = r15 + -1;\n r0 = r21;\n r1 = r21;\n java.lang.System.arraycopy(r0, r10, r1, r4, r15);\t Catch:{ Exception -> 0x06df }\n r8 = r8 + -1;\n goto L_0x05c0;\n L_0x0641:\n r10 = r21[r4];\t Catch:{ Exception -> 0x06df }\n r15 = 45;\n if (r10 == r15) goto L_0x05c4;\n L_0x0647:\n r4 = r4 + 1;\n goto L_0x05c0;\n L_0x064b:\n r2 = 8;\n r2 = r3[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 114; // 0x72 float:1.6E-43 double:5.63E-322;\n if (r2 != r4) goto L_0x0748;\n L_0x0653:\n r7 = 2;\n r4 = r3;\n r3 = r9;\n goto L_0x05de;\n L_0x0657:\n r2 = 0;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 115; // 0x73 float:1.61E-43 double:5.7E-322;\n if (r2 != r4) goto L_0x0748;\n L_0x065e:\n r2 = 1;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 115; // 0x73 float:1.61E-43 double:5.7E-322;\n if (r2 != r4) goto L_0x0748;\n L_0x0665:\n r2 = 2;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 104; // 0x68 float:1.46E-43 double:5.14E-322;\n if (r2 != r4) goto L_0x0748;\n L_0x066c:\n r2 = 3;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 45;\n if (r2 != r4) goto L_0x0748;\n L_0x0673:\n if (r20 != 0) goto L_0x0745;\n L_0x0675:\n r0 = r21;\n r2 = r0.length;\t Catch:{ Exception -> 0x06df }\n r4 = 7;\n if (r2 <= r4) goto L_0x0745;\n L_0x067b:\n r2 = 4;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 100;\n if (r2 != r4) goto L_0x06bb;\n L_0x0682:\n r2 = 1;\n L_0x0683:\n r4 = 0;\n L_0x0684:\n if (r4 < r8) goto L_0x06c4;\n L_0x0686:\n r5 = r4 + 1;\n if (r5 >= r8) goto L_0x0742;\n L_0x068a:\n r4 = r5;\n L_0x068b:\n if (r4 < r8) goto L_0x06cd;\n L_0x068d:\n r7 = r4 - r5;\n r0 = r21;\n r3 = com.jcraft.jsch.Util.j6(r0, r5, r7);\t Catch:{ Exception -> 0x0737 }\n L_0x0695:\n r7 = r4 + 1;\n if (r4 >= r8) goto L_0x073a;\n L_0x0699:\n r4 = r7;\n L_0x069a:\n if (r4 < r8) goto L_0x06d6;\n L_0x069c:\n if (r4 <= 0) goto L_0x073f;\n L_0x069e:\n r5 = r4 + -1;\n r5 = r21[r5];\t Catch:{ Exception -> 0x0737 }\n r8 = 13;\n if (r5 != r8) goto L_0x073f;\n L_0x06a6:\n r4 = r4 + -1;\n r5 = r4;\n L_0x06a9:\n if (r7 >= r5) goto L_0x073a;\n L_0x06ab:\n r4 = new java.lang.String;\t Catch:{ Exception -> 0x0737 }\n r5 = r5 - r7;\n r0 = r21;\n r4.<init>(r0, r7, r5);\t Catch:{ Exception -> 0x0737 }\n r7 = r2;\n r18 = r4;\n r4 = r3;\n r3 = r18;\n goto L_0x05de;\n L_0x06bb:\n r2 = 4;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 114; // 0x72 float:1.6E-43 double:5.63E-322;\n if (r2 != r4) goto L_0x0745;\n L_0x06c2:\n r2 = 2;\n goto L_0x0683;\n L_0x06c4:\n r5 = r21[r4];\t Catch:{ Exception -> 0x0737 }\n r7 = 32;\n if (r5 == r7) goto L_0x0686;\n L_0x06ca:\n r4 = r4 + 1;\n goto L_0x0684;\n L_0x06cd:\n r7 = r21[r4];\t Catch:{ Exception -> 0x0737 }\n r10 = 32;\n if (r7 == r10) goto L_0x068d;\n L_0x06d3:\n r4 = r4 + 1;\n goto L_0x068b;\n L_0x06d6:\n r5 = r21[r4];\t Catch:{ Exception -> 0x0737 }\n r10 = 10;\n if (r5 == r10) goto L_0x069c;\n L_0x06dc:\n r4 = r4 + 1;\n goto L_0x069a;\n L_0x06df:\n r2 = move-exception;\n L_0x06e0:\n r4 = r3;\n r3 = r9;\n goto L_0x05de;\n L_0x06e4:\n r3 = r2 instanceof java.lang.Throwable;\n if (r3 == 0) goto L_0x06f2;\n L_0x06e8:\n r3 = new com.jcraft.jsch.JSchException;\n r4 = r2.toString();\n r3.<init>(r4, r2);\n throw r3;\n L_0x06f2:\n r3 = new com.jcraft.jsch.JSchException;\n r2 = r2.toString();\n r3.<init>(r2);\n throw r3;\n L_0x06fc:\n r5 = 2;\n if (r7 != r5) goto L_0x0708;\n L_0x06ff:\n r2 = new com.jcraft.jsch.KeyPairRSA;\n r0 = r19;\n r2.<init>(r0);\n goto L_0x05e9;\n L_0x0708:\n r5 = 3;\n if (r6 != r5) goto L_0x05e9;\n L_0x070b:\n r2 = new com.jcraft.jsch.KeyPairPKCS8;\n r0 = r19;\n r2.<init>(r0);\n goto L_0x05e9;\n L_0x0714:\n r3 = r2.DW(r11);\n if (r3 == 0) goto L_0x071f;\n L_0x071a:\n r3 = 0;\n r2.v5 = r3;\n goto L_0x0059;\n L_0x071f:\n r2 = new com.jcraft.jsch.JSchException;\n r3 = new java.lang.StringBuilder;\n r4 = \"invalid privatekey: \";\n r3.<init>(r4);\n r0 = r20;\n r3 = r3.append(r0);\n r3 = r3.toString();\n r2.<init>(r3);\n throw r2;\n L_0x0737:\n r4 = move-exception;\n r7 = r2;\n goto L_0x06e0;\n L_0x073a:\n r7 = r2;\n r4 = r3;\n r3 = r9;\n goto L_0x05de;\n L_0x073f:\n r5 = r4;\n goto L_0x06a9;\n L_0x0742:\n r4 = r5;\n goto L_0x0695;\n L_0x0745:\n r2 = r7;\n goto L_0x0683;\n L_0x0748:\n r4 = r3;\n r3 = r9;\n goto L_0x05de;\n L_0x074c:\n r11 = r2;\n r12 = r8;\n goto L_0x057b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.jcraft.jsch.KeyPair.j6(com.jcraft.jsch.JSch, byte[], byte[]):com.jcraft.jsch.KeyPair\");\n }", "private static String m11g() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n stringBuilder.append(\"_ve\");\n stringBuilder.append(\"rs\");\n stringBuilder.append(\"i\");\n stringBuilder.append(\"on\");\n return stringBuilder.toString();\n }", "public static void pattern6(int input){\n\t\tint counter=1;\n\t\tfor(int i=1;i<=input;i++){\n\t\t\tfor(int j=counter;j<=(i*(i+1)/2);j++){\n\t\t\t\tSystem.out.print(counter++ + \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Override\n\tpublic void challenge9() {\n\n\t}", "public void mo12628c() {\n }", "int nbColonnes();", "public static String getParsedColonKey(String input) {\t\n\t\tif (input == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn input.split(\":\")[0];\n\t}", "public int method_2436() {\r\n return 16;\r\n }", "public static void main(String[] args) {\n\r\n for (int x = 1; x < 10; x++) {// x=1\r\n\r\n for (int h = 1; h < 10; h++) { // h=1+1+1...8+1\r\n\r\n System.out.println(x + \"*\" + h \"=\" +x*h);// 1-2-3....8-9\r\n\r\n if(h==2){\r\n break;\r\n }\r\n }\r\n\r\n if(x==4){\r\n continue;\r\n }\r\n\r\n }\r\n\r\n }", "private static void m7412c(C2063i c2063i) throws ParserException {\n int a = c2063i.m7399a(6) + 1;\n for (int i = 0; i < a; i++) {\n int a2 = c2063i.m7399a(16);\n int a3;\n switch (a2) {\n case 0:\n c2063i.m7402b(8);\n c2063i.m7402b(16);\n c2063i.m7402b(16);\n c2063i.m7402b(6);\n c2063i.m7402b(8);\n a3 = c2063i.m7399a(4) + 1;\n for (a2 = 0; a2 < a3; a2++) {\n c2063i.m7402b(8);\n }\n break;\n case 1:\n int a4;\n a3 = c2063i.m7399a(5);\n int[] iArr = new int[a3];\n int i2 = -1;\n for (a2 = 0; a2 < a3; a2++) {\n iArr[a2] = c2063i.m7399a(4);\n if (iArr[a2] > i2) {\n i2 = iArr[a2];\n }\n }\n int[] iArr2 = new int[(i2 + 1)];\n for (i2 = 0; i2 < iArr2.length; i2++) {\n iArr2[i2] = c2063i.m7399a(3) + 1;\n a4 = c2063i.m7399a(2);\n if (a4 > 0) {\n c2063i.m7402b(8);\n }\n for (int i3 = 0; i3 < (1 << a4); i3++) {\n c2063i.m7402b(8);\n }\n }\n c2063i.m7402b(2);\n int a5 = c2063i.m7399a(4);\n i2 = 0;\n a4 = 0;\n for (int i4 = 0; i4 < a3; i4++) {\n i2 += iArr2[iArr[i4]];\n while (a4 < i2) {\n c2063i.m7402b(a5);\n a4++;\n }\n }\n break;\n default:\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"floor type greater than 1 not decodable: \");\n stringBuilder.append(a2);\n throw new ParserException(stringBuilder.toString());\n }\n }\n }", "@Test public void testPublic8() {\n Graph<Integer> graph= TestGraphs.testGraph4();\n String[] results= {\"1 4\", \"2 4\", \"3 4\", \"0 4\", \"\"};\n Integer i;\n\n for (i= 0; i <= 4; i++)\n assertEquals(results[i],\n TestGraphs.collToString(graph.getNeighbors(i)));\n }", "private static boolean m55561ua(int i) {\n return i == 6;\n }", "private static void test02() {\n\t ListNode n1 = new ListNode(1);\n\t ListNode n2 = new ListNode(2);\n\t ListNode n3 = new ListNode(3);\n\t ListNode n4 = new ListNode(4);\n\t ListNode n5 = new ListNode(5);\n\t ListNode n6 = new ListNode(6);\n\n\t n1.next = n2;\n\t n2.next = n3;\n\t n3.next = n4;\n\t n4.next = n5;\n\t n5.next = n6;\n\t n6.next = n3;\n\n\t System.out.println(meetingNode(n1));\n\t }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n String string0 = SQLUtil.normalize(\"alter sessionv)y/b{p(k{:tw\", false);\n assertEquals(\"alter sessionv) y / b { p (k { : tw\", string0);\n }", "protected void mo6255a() {\n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "private String \\u02ca\\u0971() {\n int n2;\n LinkedHashMap linkedHashMap;\n int n3;\n Map<String, String> map;\n try {\n map = this.\\u02ca\\u0971;\n linkedHashMap = new LinkedHashMap();\n n2 = 0;\n }\n catch (Exception exception) {\n o.\\u02ce(exception);\n return \"\";\n }\n do {\n n3 = 0;\n if (n2 >= 8) break;\n StringBuilder stringBuilder = new StringBuilder(\"moatClientLevel\");\n stringBuilder.append(n2);\n String string = stringBuilder.toString();\n if (map.containsKey((Object)string)) {\n linkedHashMap.put((Object)string, map.get((Object)string));\n }\n ++n2;\n } while (true);\n do {\n if (n3 < 8) {\n StringBuilder stringBuilder = new StringBuilder(\"moatClientSlicer\");\n stringBuilder.append(n3);\n String string = stringBuilder.toString();\n if (map.containsKey((Object)string)) {\n linkedHashMap.put((Object)string, map.get((Object)string));\n }\n } else {\n Iterator iterator = map.keySet().iterator();\n do {\n if (!iterator.hasNext()) {\n String string = new JSONObject((Map)linkedHashMap).toString();\n StringBuilder stringBuilder = new StringBuilder(\"Parsed ad ids = \");\n stringBuilder.append(string);\n a.\\u02cf(3, \"NativeDisplayTracker\", this, stringBuilder.toString());\n StringBuilder stringBuilder2 = new StringBuilder(\"{\\\"adIds\\\":\");\n stringBuilder2.append(string);\n stringBuilder2.append(\", \\\"adKey\\\":\\\"\");\n stringBuilder2.append(this.\\u02cb);\n stringBuilder2.append(\"\\\", \\\"adSize\\\":\");\n stringBuilder2.append(this.\\u141d());\n stringBuilder2.append(\"}\");\n return stringBuilder2.toString();\n }\n String string = (String)iterator.next();\n if (linkedHashMap.containsKey((Object)string)) continue;\n linkedHashMap.put((Object)string, (Object)((String)map.get((Object)string)));\n } while (true);\n }\n ++n3;\n } while (true);\n }", "public void m6607X() {\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"is_rename\", \"0\");\n C1390G.m6779b(\"A107|1|3|10\", hashMap);\n HashMap hashMap2 = new HashMap();\n hashMap2.put(\"mark_num\", String.valueOf(this.f5418ga));\n C1390G.m6779b(\"A107|1|3|10\", hashMap2);\n HashMap hashMap3 = new HashMap();\n hashMap3.put(\"rec_time\", String.valueOf(this.f5420ha));\n C1390G.m6779b(\"A107|1|3|10\", hashMap3);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"A107|1|3|10Vcode error:\" + e);\n }\n }", "@Test\n public void allSpareAndLast_2_Expected_111(){\n String input = \"1/1/1/1/1/1/1/1/1/1/2\";\n assertEquals(game.scoreOfGame(input),111);\n }", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n StringReader stringReader0 = new StringReader(\"ri/eKZUUk8oH\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 66, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(\"ri\", token0.toString());\n }", "private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }", "private void m26172a(int i, String str, int i2, int i3, int i4, int i5, int i6) {\n this.f19156a = i;\n this.f19157b = str;\n this.f19158c = i2;\n this.f19159d = i3;\n this.f19160e = i4;\n this.f19161f = i5;\n this.f19162g = i6;\n }", "public static void ninethProgram() {\n\t\tfor(int i=1;i<=4;i++) {\n\t\t\tfor(int j=4-1;j>=i;j--) {\n\t\t\t\tSystem.out.print(\" \");\t\n\t\t\t}for(int k=1;k<=4;k++) {\n\t\t\t\tSystem.out.print(\"*\");\t\t\n\t\t\t}System.out.println();\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test069() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+%WC\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.BeginToken();\n javaCharStream0.GetSuffix(416);\n assertEquals(1, javaCharStream0.getBeginColumn());\n }", "private String m1032a(String str, int i) {\n String[] split = this.f682B.split(\"\\\\*\")[i].split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n if (str.equals(\"lac\")) {\n return split[0];\n }\n if (str.equals(\"cellid\")) {\n return split[1];\n }\n if (str.equals(\"signal\")) {\n return split[2];\n }\n return null;\n }", "@Override\n\tpublic void challenge7() {\n\n\t}", "public void mo21794S() {\n }", "public void mo9233aH() {\n }", "void mo1506m();", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "@Test(timeout = 4000)\n public void test139() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(18, token0.getTokenType());\n assertEquals(\":\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"E\", token1.getTokenText());\n }", "private static void test03() {\n\t ListNode n1 = new ListNode(1);\n\t ListNode n2 = new ListNode(2);\n\t ListNode n3 = new ListNode(3);\n\t ListNode n4 = new ListNode(4);\n\t ListNode n5 = new ListNode(5);\n\t ListNode n6 = new ListNode(6);\n\n\t n1.next = n2;\n\t n2.next = n3;\n\t n3.next = n4;\n\t n4.next = n5;\n\t n5.next = n6;\n\t n6.next = n6;\n\n\t System.out.println(meetingNode(n1));\n\t }", "public int verifierHoraire(String chaine){\r\n\t\t//System.out.println(\"chaine : \"+chaine);\r\n\t\tString tabHoraire[] = chaine.split(\":\");\r\n\t\t\r\n\t\tif((Integer.parseInt(tabHoraire[0]) < AUTO_ECOLE_OUVERTURE ) || (Integer.parseInt(tabHoraire[0])> AUTO_ECOLE_FERMETURE)){\r\n\t\t\treturn -6;\r\n\t\t}\r\n\t\tif((Integer.parseInt(tabHoraire[1]) < 0 ) || (Integer.parseInt(tabHoraire[1]) >= 60 )){\r\n\t\t\treturn -7;\r\n\t\t}\r\n\t\t\r\n\t\t return 0;\r\n\t}", "public static void main (String[] args)\r\n\t{\r\n\t\tSystem.out.println(\"5814\");\r\n\t}", "public static int m8668h() {\n return 8;\n }", "int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}" ]
[ "0.5287649", "0.52071095", "0.508233", "0.5048573", "0.5033815", "0.5032105", "0.49689874", "0.49644807", "0.4950193", "0.49452803", "0.49269843", "0.49152866", "0.48842186", "0.48828962", "0.4881454", "0.4877241", "0.48701236", "0.48485944", "0.4848012", "0.48402792", "0.48287404", "0.48272133", "0.48263565", "0.48168764", "0.48127028", "0.48002324", "0.47885558", "0.47841617", "0.47797862", "0.47737107", "0.47719398", "0.47683057", "0.4763465", "0.4763162", "0.47480524", "0.47458258", "0.47339457", "0.473379", "0.4708087", "0.46970543", "0.46939805", "0.4692389", "0.46889398", "0.46828082", "0.468162", "0.468162", "0.468162", "0.468162", "0.468162", "0.468162", "0.468162", "0.46803164", "0.46772015", "0.46723327", "0.46633503", "0.46613306", "0.4657295", "0.46556652", "0.4653932", "0.46492895", "0.46478757", "0.46452183", "0.46449813", "0.4641812", "0.46392956", "0.46365032", "0.46346247", "0.4632224", "0.46316415", "0.46289727", "0.46276608", "0.46250778", "0.46202746", "0.46192774", "0.4615403", "0.4614144", "0.46138468", "0.46099326", "0.46060213", "0.4598713", "0.4597466", "0.45939597", "0.4590212", "0.45898116", "0.45869377", "0.45855266", "0.45846385", "0.45839158", "0.45828548", "0.45738626", "0.45722234", "0.4571798", "0.45686686", "0.45663688", "0.4557746", "0.45569155", "0.45548308", "0.4549541", "0.4549413", "0.45475522", "0.45473436" ]
0.0
-1
/ 616: / 617:
public void setTipoAnexoSRI(String tipoAnexoSRI) /* 618: */ { /* 619:687 */ this.tipoAnexoSRI = tipoAnexoSRI; /* 620: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int method_2436() {\r\n return 16;\r\n }", "private void m50366E() {\n }", "public void method_4270() {}", "public void mo21877s() {\n }", "private void m50367F() {\n }", "public void mo12628c() {\n }", "C1458cs mo7613iS();", "public void mo21794S() {\n }", "public void mo21879u() {\n }", "public void mo21783H() {\n }", "public void skystonePos6() {\n }", "protected void mo6255a() {\n }", "abstract String mo1748c();", "public void mo38117a() {\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public void mo21782G() {\n }", "public void mo6081a() {\n }", "void mo1507n();", "Info mo7564ix();", "@Override\n\tpublic void challenge17() {\n\n\t}", "public void mo21779D() {\n }", "protected String[] mo1613b() {\r\n return f4638d;\r\n }", "private void kk12() {\n\n\t}", "public int method_6437() {\r\n return this.field_6227;\r\n }", "public void mo21878t() {\n }", "public void mo3749d() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "void m1864a() {\r\n }", "public void mo55254a() {\n }", "public void mo21867i() {\n mo21877s();\n }", "public void mo56167c() {\n }", "public abstract String mo13682d();", "public int mo36g() {\n return 8;\n }", "public void mo9233aH() {\n }", "public void mo3376r() {\n }", "public abstract int mo9754s();", "public int mo36g() {\n return 4;\n }", "public void mo21785J() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void challenge6() {\n\n\t}", "public void mo21792Q() {\n }", "public void mo21787L() {\n }", "public void mo21786K() {\n }", "public void mo23813b() {\n }", "public void mo12930a() {\n }", "public void mo21795T() {\n }", "public abstract String mo9751p();", "public void m23075a() {\n }", "public void mo21780E() {\n }", "public void mo21781F() {\n }", "public void mo44053a() {\n }", "protected String mo1606d() {\n return null;\n }", "static void feladat6() {\n\t}", "public void mo4359a() {\n }", "public void mo2470d() {\n }", "void mo57277b();", "void mo21072c();", "public void mo21880v() {\n }", "void mo57278c();", "public abstract long mo13681c();", "public void mo21825b() {\n }", "void mo21076g();", "void mo17013d();", "public void mo21784I() {\n }", "private void level7() {\n }", "public void mo2471e() {\n }", "@Override\n\tpublic void challenge16() {\n\n\t}", "C7562b<C10403b, C10328a> mo25041a();", "void mo21073d();", "public static void listing5_16() {\n }", "private void level6() {\n }", "public final void mo51373a() {\n }", "public void mo5248a() {\n }", "abstract C0451h mo1607e();", "public void skystonePos4() {\n }", "public void mo21788M() {\n }", "public void mo21793R() {\n }", "void mo1506m();", "public void mo9848a() {\n }", "public abstract void mo56925d();", "public int mo36g() {\n return 2;\n }", "public abstract long mo9229aD();", "public void mo2740a() {\n }", "public abstract void mo2624j();", "public void mo21791P() {\n }", "@Override\n\tpublic void challenge14() {\n\n\t}", "static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }", "void mo56163g();", "C2451d mo3408a(C2457e c2457e);", "java.lang.String getS6();", "public void mo97906c() {\n }", "public void mo97908d() {\n }", "public void mo1405e() {\n }", "public abstract String mo118046b();", "void mo72114c();" ]
[ "0.6345957", "0.6165129", "0.61581653", "0.60754186", "0.5985463", "0.5967565", "0.5963764", "0.5957686", "0.5930093", "0.59210247", "0.590919", "0.5906707", "0.5905549", "0.5896367", "0.58959794", "0.5889816", "0.5862296", "0.5853227", "0.58504236", "0.5830655", "0.58214885", "0.5820437", "0.58082086", "0.58041865", "0.5791088", "0.57857263", "0.5769653", "0.5769653", "0.5769653", "0.5769653", "0.5769653", "0.5769653", "0.5769653", "0.5739286", "0.57188547", "0.5716211", "0.57130283", "0.57026106", "0.5692404", "0.5677613", "0.56736046", "0.56681377", "0.5665473", "0.5664229", "0.5663976", "0.56587744", "0.56579334", "0.5655237", "0.5648226", "0.5639297", "0.56337684", "0.56324506", "0.56262445", "0.56245625", "0.5620783", "0.5608617", "0.56062704", "0.5605796", "0.55893415", "0.55855286", "0.5579358", "0.5568026", "0.5564962", "0.55644155", "0.5560151", "0.5558467", "0.555473", "0.55541617", "0.5549291", "0.554039", "0.5539943", "0.5539785", "0.5537058", "0.55353016", "0.55328804", "0.5532357", "0.5528087", "0.5527044", "0.55268526", "0.55257756", "0.5523615", "0.55234045", "0.55208683", "0.5520326", "0.55200666", "0.5518231", "0.55141383", "0.5513501", "0.5509548", "0.5508094", "0.55077356", "0.5501651", "0.54959553", "0.54907995", "0.5481952", "0.5480694", "0.5476422", "0.5473657", "0.54608274", "0.54596215", "0.5456222" ]
0.0
-1
/ 621: / 622:
public boolean isCorrigeDatosRetencion() /* 623: */ { /* 624:696 */ return this.corrigeDatosRetencion; /* 625: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "String canonHr(String s) {\n List<String> l = StringUtil.breakAt(s, \":\");\n if (l.size() == 2) {\n return l.get(0) + \":\" + l.get(1).toUpperCase();\n }\n return s.toUpperCase();\n }", "@Test\n\tpublic void testIPV6WithPortAndUserinfo() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://brett@[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(\"brett\", uri.getUserinfo());\n\t}", "private static String formatTime(String time) {\n\t\treturn String.format(\"%s:%s\", time.substring(0, 2), time.substring(2));\n\t}", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "public static void main(String[] args) {\n\t\tString s = \"12:45:54PM\";\r\n\t\tString temp=\":\";\r\n\t\tString Result=\"\";\r\n\t\t\r\n\t\tif(s.charAt(8)=='P' || s.charAt(8)=='p')\r\n\t\t {\r\n\t\t\tString s1[] = s.split(\":\");\r\n\t int Hour = Integer.parseInt(s1[0]);\r\n\t String Actual_Hour = \"\";\r\n\t if(Hour == 12)\r\n\t {\r\n\t \tActual_Hour = \"12\";\r\n\t }\r\n\t else\r\n\t {\r\n\t \tint data = 12 + Hour;\r\n\t \tActual_Hour = String.valueOf(data);\r\n\t }\r\n\t \r\n\t \r\n\t Result = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2);\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t \tString s1[] = s.split(\":\");\r\n\t\t \tint Hour = Integer.parseInt(s1[0]);\r\n\t\t String Actual_Hour = \"\";\r\n\t\t if(Hour == 12)\r\n\t\t {\r\n\t\t \tActual_Hour = \"00\";\r\n\t\t \tResult = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2); \r\n\t\t }\r\n\t\t else {\r\n\t\t \tString s2[] = s.split(\"AM\");\r\n\t\t\t for(int i=0; i<s2.length; i++)\r\n\t\t\t {\r\n\t\t\t \tResult = s2[i];\r\n\t\t\t }\t\r\n\t\t }\r\n\t\t \t\r\n\t\t }\r\n\t\t\r\n\t\t\t\tSystem.out.println(Result);\r\n}", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}", "private static int getNodeTime(String node) {\n int offSet = 4;\n return (int) node.toCharArray()[0] - offSet;\n }", "private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }", "@Test\n\tpublic void testIPV6WithInterface() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[fe80::212:79ff:fe89:c900%5]\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[fe80::212:79ff:fe89:c900%5]\", uri.getHost());\n\t\tAssert.assertEquals(-1, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "public static String m18367b(int i, int i2) {\n if (i >= 0 && i2 > 0) {\n return i + Constants.ACCEPT_TIME_SEPARATOR_SERVER + i2;\n } else if (i > 0) {\n return i + Constants.ACCEPT_TIME_SEPARATOR_SERVER;\n } else if (i >= 0 || i2 <= 0) {\n return null;\n } else {\n return Constants.ACCEPT_TIME_SEPARATOR_SERVER + i2;\n }\n }", "public static void main2(String args[]) {\n String s1 = \"2009-03-10T16:08:55.184 -0600 [ 16621850][ 162233] INFO - thredds.server.opendap.NcDODSServlet - Remote host: 128.117.140.71 - Request: \\\"GET /thredds/dodsC/model/NCEP/NAM/CONUS_80km/NAM_CONUS_80km_20090309_0000.grib1.dods?Geopotential_height%5B7:1:7%5D%5B0:10:10%5D%5B0:1:64%5D%5B0:1:92%5D HTTP/1.1\\\"\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s1, p1);\r\n\r\n // 1 2 3 4 5 6 7 8 9\r\n String s2 = \"2009-03-10T16:08:54.617 -0600 [ 16621283][ 162230] INFO - thredds.server.opendap.NcDODSServlet - Request Completed - 200 - -1 - 47\";\r\n // 1 2 3 4 5 6 7 8 9\r\n Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n\r\n show(s2, p2);\r\n\r\n// Pattern p2 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Request Completed - (\\\\d+) - (.*) - (.*)\");\r\n// Pattern p1 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - Remote host: ([^-]+) - Request: \\\"(\\\\w+) (.*) (.*)\");\r\n Pattern p3 = Pattern.compile(\"^(\\\\d+-\\\\d+-\\\\d+T\\\\d+:\\\\d+:\\\\d+\\\\.\\\\d+ -\\\\d+) \\\\[(.*)]\\\\[(.*)] (\\\\w+)[\\\\s]+- ([^-]+) - (.*)\");\r\n\r\n show(s1, p3);\r\n show(s2, p3);\r\n\r\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateNewsBulletin(11, 13, \"E{Iw-^%H:1$e/\", \"LW)W-|=b,lie*CW\");\n assertEquals(\"MsgId=11 :: MsgType=13 :: Origin=LW)W-|=b,lie*CW :: Message=E{Iw-^%H:1$e/\", string0);\n }", "private void check6(){\n \n if (errorCode == 0){\n \n int firstSecond = Integer.parseInt(number.substring(0,2));\n int seventhEight = Integer.parseInt(number.substring(6,8));\n \n if (firstSecond + seventhEight != 100){\n valid = false;\n errorCode = 6;\n }\n }\n\t}", "public static String getParsedColonKey(String input) {\t\n\t\tif (input == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn input.split(\":\")[0];\n\t}", "public static long TimeInformationToSeconds(String info){\n\t\tif(info.indexOf(':') > 0){\n\t\t\tString[] data = info.split(\":\");\n\t\t\tlong hours = Long.parseLong(data[0]);\n\t\t\tlong minutes = Long.parseLong(data[1]);\n\t\t\tlong seconds = Long.parseLong(data[2].split(\"[.]\")[0]);\n\t\t\tlong milliseconds = Long.parseLong(data[2].split(\"[.]\")[1]);\n\t\t\treturn (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t\t}else{\n\t\t\n\t\t/*\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(0, info.indexOf(\"day\")));\n\t\tSystem.out.println(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tSystem.out.println(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tSystem.out.println(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tSystem.out.println(info.substring(info.indexOf('.')));\n/*\t\tlong days = Long.parseLong(info.substring(0, info.indexOf(\"day\")));\n\t\tlong hours = Long.parseLong(info.substring(info.indexOf(\" \"), info.indexOf(\":\")));\n\t\tlong minutes = Long.parseLong(info.substring(info.indexOf(':'), info.lastIndexOf(':')));\n\t\tlong seconds = Long.parseLong(info.substring(info.lastIndexOf(':'), info.indexOf('.')));\n\t\tlong milliseconds = Long.parseLong(info.substring(info.indexOf('.')));\n\t*/\t\n\t\t}\n\t\treturn 1;//(days * 86400000) + (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + milliseconds;\n\t}", "public abstract void correctlyParsedUtterance(long ms);", "private String parseStringtoInt(String welcome,Student s1){\n\n String time = TimeUitl.getTime(s1);\n\n String slogan = welcome + time;\n\n return slogan;\n }", "private static String normalizeWWN(String unpaddedWWN) {\n String wwn = StringUtils.leftPad(unpaddedWWN, 16, '0');\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < wwn.length(); i += 2) {\n String slice = StringUtils.substring(wwn, i, i + 2);\n if (sb.length() > 0) {\n sb.append(':');\n }\n sb.append(slice);\n }\n return sb.toString();\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "private String m1032a(String str, int i) {\n String[] split = this.f682B.split(\"\\\\*\")[i].split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n if (str.equals(\"lac\")) {\n return split[0];\n }\n if (str.equals(\"cellid\")) {\n return split[1];\n }\n if (str.equals(\"signal\")) {\n return split[2];\n }\n return null;\n }", "private BNGLError parseError(String s)\n\t{\n\t\ts = s.substring(s.indexOf(\" \")).trim();\n\t\t\n\t\t// get the line number\n\t\tint line = Integer.parseInt(s.substring(0, s.indexOf(\":\")));\n\t\t\n\t\t// chomp \"12:2 \"\n\t\ts = s.substring(s.indexOf(\" \")).trim();\n\t\t\n\t\treturn new BNGLError(m_file, line , s);\n\t}", "public static double getAttHour(String time1, String time2)\r\n/* 178: */ throws ParseException\r\n/* 179: */ {\r\n/* 180:258 */ double hour = 0.0D;\r\n/* 181:259 */ DateFormat fulDate = new SimpleDateFormat(\"HH:mm\");\r\n/* 182:260 */ long t12 = fulDate.parse(\"12:00\").getTime();\r\n/* 183:261 */ long t13 = fulDate.parse(\"13:00\").getTime();\r\n/* 184:262 */ long t1 = fulDate.parse(time1).getTime();\r\n/* 185:263 */ long PERHOUR = 3600000L;\r\n/* 186:264 */ if (time2 == null)\r\n/* 187: */ {\r\n/* 188:265 */ if (t12 - t1 > 0L) {\r\n/* 189:266 */ hour = (t12 - t1) / PERHOUR;\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192: */ else\r\n/* 193: */ {\r\n/* 194:269 */ long t2 = fulDate.parse(time2).getTime();\r\n/* 195:270 */ if ((t1 <= t12) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 196:271 */ hour = (t12 - t1) / PERHOUR;\r\n/* 197:272 */ } else if ((t1 <= t12) && (t2 >= t13)) {\r\n/* 198:273 */ hour = (t2 - t1) / PERHOUR - 1.0D;\r\n/* 199:274 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 200:275 */ hour = 0.0D;\r\n/* 201:276 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t13)) {\r\n/* 202:277 */ hour = (t2 - t13) / PERHOUR;\r\n/* 203: */ } else {\r\n/* 204:279 */ hour = (t2 - t1) / PERHOUR;\r\n/* 205: */ }\r\n/* 206: */ }\r\n/* 207:282 */ DecimalFormat df = new DecimalFormat(\"#.0\");\r\n/* 208:283 */ return Double.parseDouble(df.format(hour));\r\n/* 209: */ }", "static String m60358a(String str, String str2) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 3 + String.valueOf(str2).length());\n sb.append(str);\n sb.append(\"|S|\");\n sb.append(str2);\n return sb.toString();\n }", "public abstract void incorrectlyParsedUtterance(long ms);", "private String parseGroupNameD2K(String line) {\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tsb.append(tokens[0] + \".\");\n\t\tsb.append(tokens[1].replace(';', '_'));\n\t\ttry{\n\t\t\tsb.append(tokens[4].replace('#', '.'));\n\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t// do nothing\n\t\t}\n\t\treturn sb.toString();\n\t}", "private static int computeTime(String time) {\n\t\tint ret = 0;\n\t\tint multiply = 1;\n\t\tint decimals = 1;\n\t\tfor (int i = time.length() - 1; i >= 0; --i) {\n\t\t\tif (time.charAt(i) == ':') {\n\t\t\t\tmultiply *= 60;\n\t\t\t\tdecimals = 1;\n\t\t\t} else {\n\t\t\t\tret += (time.charAt(i) - '0') * multiply * decimals;\n\t\t\t\tdecimals *= 10;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "static String timeConversion(String s) {\n if(s.indexOf('P') >= 0 && s.substring(0, 2).equals(\"12\")){\n }\n else if(s.indexOf('P') >= 0){\n Integer n = Integer.parseInt(s.substring(0, 2));\n s = removeHour(s);\n n += 12;\n String hour = Integer.toString(n);\n s = hour + s;\n }\n else if (s.indexOf('A') >= 0 && s.substring(0, 2).equals(\"12\")){\n s = \"00\" + s.substring(2);\n }\n return removeHourFormat(s);\n }", "private static boolean validate(String line){\n\t\tString[] lineArray = line.split(\" \");\n\t\t\n\t\tif(lineArray.length != 3) return false; //skip lines in incorrect format\n\t\t\n\t\t//http://stackoverflow.com/questions/25873636/regex-pattern-for-exactly-hhmmss-time-string\n\t\tif(!lineArray[0].matches(\"(?:[01]\\\\d|2[0123]):(?:[012345]\\\\d):(?:[012345]\\\\d)\")) return false;\n\n\t\tif(!lineArray[2].equals(\"Start\") && !lineArray[2].equals(\"End\")) return false;\n\t\t\n\t\treturn true;\n\t}", "java.lang.String getS6();", "private int[] parseHours(String str) {\n try {\n return enumerate(str, 0, 23);\n } catch (IllegalArgumentException e) {\n throw new IllegalArgumentException(\"Error parsing hours: \" + e.getMessage());\n }\n }", "public static void main(String[] args) {\n\t\tString n = \"수 10:00~18:30/목,토 09:00~13:00\";\n\t\t\n\t\tSystem.out.println(isTimePatternIn(n));\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn ip + \" \"+ times;\n\t}", "private static String m21400e() {\n try {\n return new BufferedReader(new FileReader(new File(\"/sys/class/net/wlan0/address\"))).readLine();\n } catch (Throwable th) {\n C5205o.m21464a(th);\n return \"02:00:00:00:00:00\";\n }\n }", "static String timeConversion(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2, 4);\n\n String newHours;\n if (ampm.equals(\"AM\")) {\n newHours = hours.equals(\"12\") ? \"00\" : hours;\n\n } else {\n newHours = hours.equals(\"12\") ? hours : String.valueOf(Integer.parseInt(hours) + 12);\n }\n\n return newHours + \":\" + minutes + \":\" + seconds;\n\n }", "protected String mo3406c() {\n return \"Minute\";\n }", "public static boolean isWellFormedIPv6Reference(String address) {\n \n int addrLength = address.length();\n int index = 1;\n int end = addrLength-1;\n \n // Check if string is a potential match for IPv6reference.\n if (!(addrLength > 2 && address.charAt(0) == '[' \n && address.charAt(end) == ']')) {\n return false;\n }\n \n // Counter for the number of 16-bit sections read in the address.\n int [] counter = new int[1];\n \n // Scan hex sequence before possible '::' or IPv4 address.\n index = scanHexSequence(address, index, end, counter);\n if (index == -1) {\n return false;\n }\n // Address must contain 128-bits of information.\n else if (index == end) {\n return (counter[0] == 8);\n }\n \n if (index+1 < end && address.charAt(index) == ':') {\n if (address.charAt(index+1) == ':') {\n // '::' represents at least one 16-bit group of zeros.\n if (++counter[0] > 8) {\n return false;\n }\n index += 2;\n // Trailing zeros will fill out the rest of the address.\n if (index == end) {\n return true;\n }\n }\n // If the second character wasn't ':', in order to be valid,\n // the remainder of the string must match IPv4Address, \n // and we must have read exactly 6 16-bit groups.\n else {\n return (counter[0] == 6) && \n isWellFormedIPv4Address(address.substring(index+1, end));\n }\n }\n else {\n return false;\n }\n \n // 3. Scan hex sequence after '::'.\n int prevCount = counter[0];\n index = scanHexSequence(address, index, end, counter);\n \n // We've either reached the end of the string, the address ends in\n // an IPv4 address, or it is invalid. scanHexSequence has already \n // made sure that we have the right number of bits. \n return (index == end) || \n (index != -1 && isWellFormedIPv4Address(\n address.substring((counter[0] > prevCount) ? index+1 : index, end)));\n }", "private static String m60359b(String str, String str2, String str3) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 4 + String.valueOf(str2).length() + String.valueOf(str3).length());\n sb.append(str);\n sb.append(\"|T|\");\n sb.append(str2);\n sb.append(\"|\");\n sb.append(str3);\n return sb.toString();\n }", "private static int getHours(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(0)) * 10) + Character.getNumericValue(time.charAt(1));\n\t}", "public static void main(String[] args)\r\n/* 219: */ throws ParseException\r\n/* 220: */ {\r\n/* 221:299 */ log.debug(Double.valueOf(getAttHour(\"14:15\", \"18:00\")));\r\n/* 222: */ }", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "private static String applyRFC2732(String hostname) {\n if (hostname.indexOf(\":\") != -1) {\n // Assuming an IPv6 literal because of the ':'\n return \"[\" + hostname + \"]\";\n }\n return hostname;\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }", "private static String checkFormat(String date){\r\n\t\tif(date.length()==0) return \"\";\r\n\t\tint dateChars=0,timeChars=0;\r\n\t\tchar currenChar;\r\n\t\t\r\n\t\t//check if the first and the last character of the string is a number, it must always be\r\n\t\tif(!Character.isDigit(date.charAt(0))) return \"\";\r\n\t\tif(!Character.isDigit(date.charAt((date.length()-1)))) return \"\";\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<date.length()-1;i++){\r\n\t\t\tcurrenChar=date.charAt(i);\r\n\t\t\t\r\n\t\t\t//check if every character is / or : or number\t\t\r\n\t\t\tif(!(Character.isDigit(currenChar) || currenChar==':' || currenChar=='/')) return \"\";\r\n\t\t\t//check if there is a number between // or ::, if not it returns false\r\n\t\t\tif((currenChar==':' || currenChar=='/') && (date.charAt(i+1)==':' || date.charAt(i+1)=='/')) return \"\";\r\n\t\t\t\r\n\t\t\t//count the / and :\r\n\t\t\tif(currenChar==':') timeChars++; \r\n\t\t\telse if(currenChar=='/') dateChars++;\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with one :\r\n\t\tif(timeChars==1 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[2];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with two :\r\n\t\telse if(timeChars==2 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[1];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is a date with two /\r\n\t\telse if(dateChars==2 && timeChars==0){\r\n\t\t\t//check if one of the numbers have the right amount of digits\r\n\t\t\tString[] numbers= splitWords(date.replaceAll(\"/\", \" \"));\r\n\t\t\tif(numbers[0].length()>2) return \"\";\r\n\t\t\tif(numbers[1].length()>2) return \"\";\r\n\t\t\tif(numbers[2].length()>4) return \"\";\r\n\t\t\t\r\n\t\t\treturn formats[0];\r\n\t\t}\r\n\t\t\r\n\t\telse return \"\";\t\t\r\n\t}", "public static String[] validateHours(String hours) {\n\tString[] hourString=new String[2];\r\n\tStringTokenizer st=new StringTokenizer(hours,\"-\");\r\n\ttry{\r\n\t\thourString[0]=st.nextToken();\r\n\t\thourString[1]=st.nextToken();\r\n\t}\r\n\tcatch(Exception e){\r\n\t\tSystem.out.println(\"Hours are not proper:\");\r\n\t\thourString[0]=null;\r\n\t\treturn hourString;\r\n\t}\r\n\tboolean validHour=validInteger(hourString[0]);\r\n\tif(!validHour || hourString[0].length()!=4){\r\n\t\tSystem.out.println(\"Invalid Start Time\");\r\n\t\thourString[0]=null;\r\n\t\treturn hourString;\r\n\t}\r\n\tvalidHour=validInteger(hourString[1]);\r\n\tif(!validHour || hourString[1].length()!=4){\r\n\t\tSystem.out.println(\"Invalid End Time Time\");\r\n\t\thourString[0]=null;\r\n\t\treturn hourString;\r\n\t}\r\n\tString time=hourString[0].substring(0, 2)+\":\"+hourString[0].substring(2, 4);\r\n\thourString[0]=time;\r\n\tSystem.out.println(\"Start Time : \"+time);\r\n\ttime=null;\r\n\ttime=hourString[1].substring(0, 2)+\":\"+hourString[1].substring(2, 4);\r\n\thourString[1]=time;\r\n\treturn hourString;\r\n}", "public static void main(String[] args) {\n\t\tScanner scn = new Scanner(System.in);\n\t\t// input in form of hh:mm:ss(AM/PM)\n\t\t// don't use any bracket in input\n\t\tString s = scn.nextLine();\n\t\tint hour = s.charAt(0) - '0';\n\t\thour = hour * 10 + s.charAt(1) - '0';\n\t\t// System.out.println(hour);\n\t\tString rv = new String();\n\t\tif (s.charAt(s.length() - 2) == 'A') {\n\t\t\tif (hour == 12) {\n\t\t\t\trv = s.substring(0, s.length() - 2);\n\t\t\t\trv = rv.substring(2, rv.length());\n\t\t\t\tint newh = 0;\n\t\t\t\trv = newh + rv;\n\t\t\t\trv = 0 + rv;\n\n\t\t\t} else {\n\t\t\t\trv = s.substring(0, s.length() - 2);\n\t\t\t}\n\n\t\t} else {\n\t\t\tif (hour == 12) {\n\t\t\t\trv = s.substring(0, s.length() - 2);\n\t\t\t} else {\n\t\t\t\trv = s.substring(0, s.length() - 2);\n\t\t\t\trv = rv.substring(2, rv.length());\n\t\t\t\tint newhour = hour + 12;\n\t\t\t\trv = newhour + rv;\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(rv);\n\n\t}", "static String timeConversion(String s) {\n String[] sTime = s.split(\":\");\n\n int x = 0;\n\n // if PM and hours >12, add additional 12 to hours\n // for AM and hour = 12, set hour to 00\n if(sTime[sTime.length - 1].contains(\"PM\") && !sTime[0].equals(\"12\"))\n x = 12;\n\n String val1 = \"\";\n if(x == 12)\n val1 = (Integer.parseInt(sTime[0]) + x) + \"\";\n else {\n if(sTime[0].equals(\"12\") && sTime[sTime.length - 1].contains(\"AM\"))\n val1 = \"00\";\n else\n val1 = sTime[0];\n }\n\n // merge the string and return the result\n String result = val1 + \":\" + sTime[1] + \":\" + sTime[2].substring(0,2);\n return result;\n }", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString readLine = reader.readLine();\n\t\treader.close();\n\t\tString[] split = readLine.split(\" \");\n\t\tint num=Integer.valueOf(split[1])-Integer.valueOf(split[0]);\n\t\tint rs=(int)Math.rint((double)num/100.0);\n\t\tint s=rs%60;\n\t\tint m=(rs/60)%60;\n\t\tint h=rs/3600;\n\t\tSystem.out.println((h<10?(\"0\"+h):h)+\":\"+(m<10?(\"0\"+m):m)+\":\"+(s<10?(\"0\"+s):s));\n\t}", "static String timeCount_1(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n \n timeHH += hh;\n timeMI += mi;\n timeSS += ss;\n \n }\n else{\n continue;\n }\n }\n \n timeMI += timeSS / 60;\n timeSS %= 60;\n \n timeHH += timeMI / 60;\n timeMI %= 60; \n\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n \n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n //String result = timeHH + \":\" + timeMI + \":\" + timeSS;\n \n return result;\n }", "public final void mRULE_TWENTYFOURHRSTIME() throws RecognitionException {\n try {\n int _type = RULE_TWENTYFOURHRSTIME;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:16737:24: ( '0' .. '2' '0' .. '9' ':' '0' .. '5' '0' .. '9' ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )? )\n // InternalDSL.g:16737:26: '0' .. '2' '0' .. '9' ':' '0' .. '5' '0' .. '9' ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )?\n {\n matchRange('0','2'); \n matchRange('0','9'); \n match(':'); \n matchRange('0','5'); \n matchRange('0','9'); \n // InternalDSL.g:16737:66: ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )?\n int alt28=2;\n int LA28_0 = input.LA(1);\n\n if ( (LA28_0==':') ) {\n alt28=1;\n }\n switch (alt28) {\n case 1 :\n // InternalDSL.g:16737:67: ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )?\n {\n match(':'); \n matchRange('0','6'); \n matchRange('0','9'); \n // InternalDSL.g:16737:89: ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )?\n int alt27=2;\n int LA27_0 = input.LA(1);\n\n if ( (LA27_0=='.') ) {\n alt27=1;\n }\n switch (alt27) {\n case 1 :\n // InternalDSL.g:16737:90: '.' '0' .. '9' '0' .. '9' '0' .. '9'\n {\n match('.'); \n matchRange('0','9'); \n matchRange('0','9'); \n matchRange('0','9'); \n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "private String processBytes(String bytes){\n Pattern p = Pattern.compile(\"170-180\");\r\n Matcher m = p.matcher(bytes);\r\n //find two bounds\r\n int posi[] = new int[2];\r\n for(int i=0;i<2;i++){\r\n if(m.find()) posi[i] = m.start();\r\n }\r\n //Cut string\r\n return bytes.substring(posi[0], posi[1]);\r\n }", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "public int verifierHoraire(String chaine){\r\n\t\t//System.out.println(\"chaine : \"+chaine);\r\n\t\tString tabHoraire[] = chaine.split(\":\");\r\n\t\t\r\n\t\tif((Integer.parseInt(tabHoraire[0]) < AUTO_ECOLE_OUVERTURE ) || (Integer.parseInt(tabHoraire[0])> AUTO_ECOLE_FERMETURE)){\r\n\t\t\treturn -6;\r\n\t\t}\r\n\t\tif((Integer.parseInt(tabHoraire[1]) < 0 ) || (Integer.parseInt(tabHoraire[1]) >= 60 )){\r\n\t\t\treturn -7;\r\n\t\t}\r\n\t\t\r\n\t\t return 0;\r\n\t}", "private static void checkFormat(String str) {\n if (str.length() != 8)\n throw new IllegalArgumentException(\"length has too be 8\");\n try {\n Integer.parseInt(str.substring(0,2)); //Hours\n Integer.parseInt(str.substring(3,5)); //Minutes\n } catch (NumberFormatException e) {\n throw new IllegalArgumentException(\"These numbers are wrong\");\n }\n if (str.charAt(2) != ':') {\n throw new IllegalArgumentException(\"requires colon between times\");\n }\n if (str.charAt(5) != ' ') {\n throw new IllegalArgumentException(\"requires space between time and period\");\n }\n String mStr = str.substring(6);\n if (!mStr.equals(\"PM\") && !mStr.equals(\"AM\")) {\n throw new IllegalArgumentException(\"Must be AM or PM\");\n }\n }", "@Test\n\tpublic void testIPV4WithPortAndUserInfo() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://brett@192.168.91.1:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"192.168.91.1\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(\"brett\", uri.getUserinfo());\n\t}", "@Test\n public void fixedTests() {\n assertEquals(69978 , Day02.parseInt(\"sixty nine thousand nine hundred seventy eight\"));\n }", "@Test(timeout = 4000)\n public void test55() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateAccountTime(\"yTci@Ca5ai_xH#X\");\n assertEquals(\"updateAccountTime: yTci@Ca5ai_xH#X\", string0);\n }", "private String normalizeDiseaseId(String diseaseId) {\n String[] tokens = diseaseId.split(\":\");\n if (\"ORPHANET\".equals(tokens[0])) {\n diseaseId = \"ORPHA:\" + tokens[1];\n }\n return diseaseId;\n }", "public String Formatting(){\n\t\t\t return String.format(\"%03d-%02d-%04d\", getFirstSSN(),getSecondSSN(),getThirdSSN());\n\t\t }", "public static byte[] parseIPv6Literal(String s) {\n s = s != null ? s.trim() : \"\";\n if (s.length() > 0 && s.charAt(0) == '[' && s.charAt(s.length() - 1) == ']') {\n s = s.substring(1, s.length() - 1).trim();\n }\n int x = s.lastIndexOf(':');\n int y = s.indexOf('.');\n // Contains a dot! Look for IPv4 literal suffix.\n if (x >= 0 && y > x) {\n byte[] ip4Suffix = parseIPv4Literal(s.substring(x + 1));\n if (ip4Suffix == null) {\n return null;\n }\n s = s.substring(0, x) + \":\" + ip4ToHex(ip4Suffix);\n }\n\n // Check that we only have a single occurence of \"::\".\n x = s.indexOf(\"::\");\n if (x >= 0 && s.indexOf(\"::\", x + 1) >= 0) {\n return null;\n }\n\n // This array helps us expand the \"::\" into the zeroes it represents.\n String[] raw = new String[]{\"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\"};\n if (s.indexOf(\"::\") >= 0) {\n String[] split = s.split(\"::\", -1);\n String[] prefix = splitOnColon(split[0]);\n String[] suffix = splitOnColon(split[1]);\n\n // Make sure the \"::\" zero-expander has some room to expand!\n if (prefix.length + suffix.length > 7) {\n return null;\n }\n for (int i = 0; i < prefix.length; i++) {\n raw[i] = prependZeroes(prefix[i]);\n }\n int startPos = raw.length - suffix.length;\n for (int i = 0; i < suffix.length; i++) {\n raw[startPos + i] = prependZeroes(suffix[i]);\n }\n } else {\n // Okay, whew, no \"::\" zero-expander, but we still have to make sure\n // each element contains 4 hex characters.\n raw = splitOnColon(s);\n if (raw.length != 8) {\n return null;\n }\n for (int i = 0; i < raw.length; i++) {\n raw[i] = prependZeroes(raw[i]);\n }\n }\n\n byte[] ip6 = new byte[16];\n int i = 0;\n for (String tok : raw) {\n if (tok.length() > 4) {\n return null;\n }\n String prefix = tok.substring(0, 2);\n String suffix = tok.substring(2, 4);\n try {\n ip6[i++] = (byte) Integer.parseInt(prefix, 16);\n ip6[i++] = (byte) Integer.parseInt(suffix, 16);\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip6;\n }", "static String timeConversion(String s) {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tboolean isAm = s.contains(\"AM\");\n\t\t\n\t\ts = s.replace(\"AM\", \"\");\n\t\ts = s.replace(\"PM\", \"\");\n\t\t\n\t\tString str[] = s.split(\":\");\n\t\tint time = Integer.parseInt(str[0]);\n\t\t\n\t\t\n\t\tif(time < 12 && !isAm) {\n\t\t\ttime = time + 12;\n\t\t\tsb.append(time).append(\":\");\n\t\t}else if(time == 12 && isAm) {\n\t\t\tsb.append(\"00:\");\n\t\t}else {\n\t\t\tif (time < 10) sb.append(\"0\").append(time).append(\":\");\n\t\t\telse sb.append(time).append(\":\");\n\t\t}\n\n\t\tsb.append(str[1]).append(\":\").append(str[2]);\n\t\treturn sb.toString();\n\t}", "private Descriptor parseRootDescriptorLine(String line) {\n\t\tString [] tokens = line.split(\"\\\\s+\");\n\t\tif (tokens.length == 5){\n\t\t\tline = tokens[0] + \" \" + tokens[1] + \" \" + tokens[2] + \" \" + tokens[3] + \" 0_0:0_0 0.0\";\n\t\t} else {\n\t\t\tline = line + \" 0_0:0_0 0.0\";\n\t\t}\n\t\treturn this.parseDescriptorLine(line);\n\t}", "public static String getParsedColonValue(String input){\n\t\tif (input == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn input.split(\":\")[1];\n\t}", "private static int stringToHour(String stringDay) {\r\n\t\tswitch (stringDay) {\r\n\t\tcase \"6am\":\r\n\t\t\treturn 0;\r\n\t\tcase \"7am\":\r\n\t\t\treturn 1;\r\n\t\tcase \"8am\":\r\n\t\t\treturn 2;\r\n\t\tcase \"9am\":\r\n\t\t\treturn 3;\r\n\t\tcase \"10am\":\r\n\t\t\treturn 4;\r\n\t\tcase \"11am\":\r\n\t\t\treturn 5;\r\n\t\tcase \"12pm\":\r\n\t\t\treturn 6;\r\n\t\tcase \"1pm\":\r\n\t\t\treturn 7;\r\n\t\tcase \"2pm\":\r\n\t\t\treturn 8;\r\n\t\tcase \"3pm\":\r\n\t\t\treturn 9;\r\n\t\tcase \"4pm\":\r\n\t\t\treturn 10;\r\n\t\tcase \"5pm\":\r\n\t\t\treturn 11;\r\n\t\tcase \"6pm\":\r\n\t\t\treturn 12;\r\n\t\tcase \"7pm\":\r\n\t\t\treturn 13;\r\n\t\tcase \"8pm\":\r\n\t\t\treturn 14;\r\n\t\tdefault:\r\n\t\t\treturn -1;\r\n\t\t}// end switch\r\n\t}", "private static int getSatFromLine(String line) {\n\t\treturn Integer.parseInt(line.split(\" \")[0]);\n\t}", "public String parseUser(String userLine) {\n final int START_OF_USER_NAME = 6;\n \t\tString userName = userLine.substring(\n START_OF_USER_NAME, userLine.indexOf(\"Date: \") - 1).trim();\n \n \t\treturn userName;\n \t}", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "private static int parseInt(String sn) {\n\t\treturn Integer.parseInt(sn.substring(2), 16);\n\t}", "private void deliver(String mb) {\n\t\t\tString[] sourceIdAndMsgAndTime = mb.split(\" \", 3);\n\t\t\tSystem.out.println(\"Received \"+ sourceIdAndMsgAndTime[1] + \" from process \"+ sourceIdAndMsgAndTime[0] +\", system time is ­­­­­­­­­­­­­\" + sourceIdAndMsgAndTime[2]);\n\t\t\t\n\t\t}", "public void testYourSecondPartition() {\n\tSystem.out.print(\"\\nTesting Second Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:65535\", true); // max allowed port number\n executeTestPrintResult(\"http://abc.com:0\", true); // min allowed port number\n executeTestPrintResult(\"http://abc.com:1\", true); // 1 digit port number \n executeTestPrintResult(\"http://abc.com:99\", true); // 2 digit port number \n executeTestPrintResult(\"http://abc.com:999\", true); // 3 digit port number \n executeTestPrintResult(\"http://abc.com:1000\", true); // 4 digit port number \n executeTestPrintResult(\"http://abc.com:65536\", false); // port number too high \n executeTestPrintResult(\"http://abc.com:-1\", false); // negative port\n executeTestPrintResult(\"http://abc.com:a\", false); // letter in port\n executeTestPrintResult(\"http://abc.com:\", false); // empty port \n executeTestPrintResult(\":123\", false); // no domain \n }", "String getMacAddress() {\n return String.format(\"%s:%s:%s:%s:%s:%s\", macAddress.substring(0, 2), macAddress.substring(2, 4),\n macAddress.substring(4, 6), macAddress.substring(6, 8), macAddress.substring(8, 10), macAddress.substring(10, 12));\n }", "private int compareTimes(String time1, String time2) {\n \n String[] timeOneSplit = time1.trim().split(\":\");\n String[] timeTwoSplit = time2.trim().split(\":\");\n \n \n if (timeOneSplit.length == 2 && timeTwoSplit.length == 2) {\n \n String[] minutesAmPmSplitOne = new String[2];\n minutesAmPmSplitOne[1] = timeOneSplit[1].trim().substring(0, timeOneSplit[1].length() - 2);\n minutesAmPmSplitOne[1] = timeOneSplit[1].trim().substring(timeOneSplit[1].length() - 2, timeOneSplit[1].length());\n\n String[] minutesAmPmSplitTwo = new String[2];\n minutesAmPmSplitTwo[1] = timeTwoSplit[1].trim().substring(0, timeTwoSplit[1].length() - 2);\n minutesAmPmSplitTwo[1] = timeTwoSplit[1].trim().substring(timeTwoSplit[1].length() - 2, timeTwoSplit[1].length());\n \n int hourOne = Integer.parseInt(timeOneSplit[0]);\n int hourTwo = Integer.parseInt(timeTwoSplit[0]);\n \n //increment hours depending on am or pm\n if (minutesAmPmSplitOne[1].trim().equalsIgnoreCase(\"pm\")) {\n hourOne += 12;\n }\n if (minutesAmPmSplitTwo[1].trim().equalsIgnoreCase(\"pm\")) {\n hourTwo += 12;\n }\n \n if (hourOne < hourTwo) {\n \n return -1;\n }\n else if (hourOne > hourTwo) {\n \n return 1;\n }\n else {\n \n int minutesOne = Integer.parseInt(minutesAmPmSplitOne[0]);\n int minutesTwo = Integer.parseInt(minutesAmPmSplitTwo[0]);\n \n if (minutesOne < minutesTwo) {\n \n return -1;\n }\n else if (minutesOne > minutesTwo) {\n \n return 1;\n }\n else {\n \n return 0;\n }\n }\n }\n //time1 exists, time 2 doesn't, time 1 comes first!\n else if (timeOneSplit.length == 2 && timeTwoSplit.length != 2) {\n return -1;\n }\n else {\n return 1;\n }\n }", "@Test\n void testParseTestcaseFrom50Specification(){\n String testcase = \"\\r\\n\" +\n \"/ISk5\\\\2MT382-1000\\r\\n\" +\n \"\\r\\n\" +\n \"1-3:0.2.8(50)\\r\\n\" +\n \"0-0:1.0.0(101209113020W)\\r\\n\" +\n \"0-0:96.1.1(4B384547303034303436333935353037)\\r\\n\" +\n \"1-0:1.8.1(123456.789*kWh)\\r\\n\" +\n \"1-0:1.8.2(123456.789*kWh)\\r\\n\" +\n \"1-0:2.8.1(123456.789*kWh)\\r\\n\" +\n \"1-0:2.8.2(123456.789*kWh)\\r\\n\" +\n \"0-0:96.14.0(0002)\\r\\n\" +\n \"1-0:1.7.0(01.193*kW)\\r\\n\" +\n \"1-0:2.7.0(00.000*kW)\\r\\n\" +\n \"0-0:96.7.21(00004)\\r\\n\" +\n \"0-0:96.7.9(00002)\\r\\n\" +\n \"1-0:99.97.0(2)(0-0:96.7.19)(101208152415W)(0000000240*s)(101208151004W)(0000000301*s)\\r\\n\" +\n \"1-0:32.32.0(00002)\\r\\n\" +\n \"1-0:52.32.0(00001)\\r\\n\" +\n \"1-0:72.32.0(00000)\\r\\n\" +\n \"1-0:32.36.0(00000)\\r\\n\" +\n \"1-0:52.36.0(00003)\\r\\n\" +\n \"1-0:72.36.0(00000)\\r\\n\" +\n \"0-0:96.13.0(303132333435363738393A3B3C3D3E3F303132333435363738393A3B3C3D3E3F30313233343536373839\" +\n \"3A3B3C3D3E3F303132333435363738393A3B3C3D3E3F303132333435363738393A3B3C3D3E3F)\\r\\n\" +\n \"1-0:32.7.0(220.1*V)\\r\\n\" +\n \"1-0:52.7.0(220.2*V)\\r\\n\" +\n \"1-0:72.7.0(220.3*V)\\r\\n\" +\n \"1-0:31.7.0(001*A)\\r\\n\" +\n \"1-0:51.7.0(002*A)\\r\\n\" +\n \"1-0:71.7.0(003*A)\\r\\n\" +\n \"1-0:21.7.0(01.111*kW)\\r\\n\" +\n \"1-0:41.7.0(02.222*kW)\\r\\n\" +\n \"1-0:61.7.0(03.333*kW)\\r\\n\" +\n \"1-0:22.7.0(04.444*kW)\\r\\n\" +\n \"1-0:42.7.0(05.555*kW)\\r\\n\" +\n \"1-0:62.7.0(06.666*kW)\\r\\n\" +\n \"0-1:24.1.0(003)\\r\\n\" +\n \"0-1:96.1.0(3232323241424344313233343536373839)\\r\\n\" +\n \"0-1:24.2.1(101209112500W)(12785.123*m3)\\r\\n\" +\n \"!EF2F\\r\\n\" +\n \"\\r\\n\";\n DSMRTelegram dsmrTelegram = ParseDsmrTelegram.parse(testcase);\n\n // CHECKSTYLE.OFF: ParenPad\n assertEquals(\"/ISk5\\\\2MT382-1000\", dsmrTelegram.getRawIdent());\n assertEquals(\"ISK\", dsmrTelegram.getEquipmentBrandTag());\n assertEquals(\"MT382-1000\", dsmrTelegram.getIdent());\n\n assertEquals(\"5.0\", dsmrTelegram.getP1Version());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:30:20+01:00\"), dsmrTelegram.getTimestamp());\n\n assertEquals(\"K8EG004046395507\", dsmrTelegram.getEquipmentId());\n assertEquals(\"0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?0123456789:;<=>?\", dsmrTelegram.getMessage());\n\n assertEquals( 2, dsmrTelegram.getElectricityTariffIndicator());\n assertEquals( 123456.789, dsmrTelegram.getElectricityReceivedLowTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReceivedNormalTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReturnedLowTariff(), 0.001);\n assertEquals( 123456.789, dsmrTelegram.getElectricityReturnedNormalTariff(), 0.001);\n assertEquals( 1.193, dsmrTelegram.getElectricityPowerReceived(), 0.001);\n assertEquals( 0.0, dsmrTelegram.getElectricityPowerReturned(), 0.001);\n assertEquals( 4, dsmrTelegram.getPowerFailures());\n assertEquals( 2, dsmrTelegram.getLongPowerFailures());\n\n assertEquals(2, dsmrTelegram.getPowerFailureEventLogSize());\n\n List<PowerFailureEvent> powerFailureEventLog = dsmrTelegram.getPowerFailureEventLog();\n assertEquals(2, powerFailureEventLog.size());\n assertPowerFailureEvent(powerFailureEventLog.get(0), \"2010-12-08T15:20:15+01:00\", \"2010-12-08T15:24:15+01:00\", \"PT4M\");\n assertPowerFailureEvent(powerFailureEventLog.get(1), \"2010-12-08T15:05:03+01:00\", \"2010-12-08T15:10:04+01:00\", \"PT5M1S\");\n\n assertEquals( 2, dsmrTelegram.getVoltageSagsPhaseL1());\n assertEquals( 1, dsmrTelegram.getVoltageSagsPhaseL2());\n assertEquals( 0, dsmrTelegram.getVoltageSagsPhaseL3());\n assertEquals( 0, dsmrTelegram.getVoltageSwellsPhaseL1());\n assertEquals( 3, dsmrTelegram.getVoltageSwellsPhaseL2());\n assertEquals( 0, dsmrTelegram.getVoltageSwellsPhaseL3());\n assertEquals( 220.1, dsmrTelegram.getVoltageL1(), 0.001);\n assertEquals( 220.2, dsmrTelegram.getVoltageL2(), 0.001);\n assertEquals( 220.3, dsmrTelegram.getVoltageL3(), 0.001);\n assertEquals( 1, dsmrTelegram.getCurrentL1(), 0.001);\n assertEquals( 2, dsmrTelegram.getCurrentL2(), 0.001);\n assertEquals( 3, dsmrTelegram.getCurrentL3(), 0.001);\n assertEquals( 1.111, dsmrTelegram.getPowerReceivedL1(), 0.001);\n assertEquals( 2.222, dsmrTelegram.getPowerReceivedL2(), 0.001);\n assertEquals( 3.333, dsmrTelegram.getPowerReceivedL3(), 0.001);\n assertEquals( 4.444, dsmrTelegram.getPowerReturnedL1(), 0.001);\n assertEquals( 5.555, dsmrTelegram.getPowerReturnedL2(), 0.001);\n assertEquals( 6.666, dsmrTelegram.getPowerReturnedL3(), 0.001);\n assertEquals( 1, dsmrTelegram.getMBusEvents().size());\n\n assertEquals( 3, dsmrTelegram.getMBusEvents().get(1).getDeviceType());\n assertEquals(\"2222ABCD123456789\", dsmrTelegram.getMBusEvents().get(1).getEquipmentId());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:25+01:00\"), dsmrTelegram.getMBusEvents().get(1).getTimestamp());\n assertEquals( 12785.123, dsmrTelegram.getMBusEvents().get(1).getValue(), 0.001);\n assertEquals( \"m3\", dsmrTelegram.getMBusEvents().get(1).getUnit());\n\n assertEquals(\"2222ABCD123456789\", dsmrTelegram.getGasEquipmentId());\n assertEquals(ZonedDateTime.parse(\"2010-12-09T11:25+01:00\"), dsmrTelegram.getGasTimestamp());\n assertEquals(12785.123, dsmrTelegram.getGasM3(), 0.001);\n\n assertEquals(\"EF2F\", dsmrTelegram.getCrc());\n\n // The CRC of this testcase is invalid.\n // Or better: I have not been able to copy it from the documentation and\n // recreate the \"original\" record for which the provided CRC was calculated.\n // assertTrue(dsmrTelegram.isValidCRC());\n }", "static int getHour(byte[] bytes) {\n if (HOUR_POS < bytes.length * 8) {\n return readBits(bytes, HOUR_POS, HOUR_BITS);\n }\n return 0;\n }", "public final void mRULE_TWELVEHRSTIME() throws RecognitionException {\n try {\n int _type = RULE_TWELVEHRSTIME;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalDSL.g:16739:20: ( '0' .. '1' '0' .. '9' ':' '0' .. '5' '0' .. '9' ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )? ( 'am' | 'pm' ) )\n // InternalDSL.g:16739:22: '0' .. '1' '0' .. '9' ':' '0' .. '5' '0' .. '9' ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )? ( 'am' | 'pm' )\n {\n matchRange('0','1'); \n matchRange('0','9'); \n match(':'); \n matchRange('0','5'); \n matchRange('0','9'); \n // InternalDSL.g:16739:62: ( ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )? )?\n int alt30=2;\n int LA30_0 = input.LA(1);\n\n if ( (LA30_0==':') ) {\n alt30=1;\n }\n switch (alt30) {\n case 1 :\n // InternalDSL.g:16739:63: ':' '0' .. '6' '0' .. '9' ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )?\n {\n match(':'); \n matchRange('0','6'); \n matchRange('0','9'); \n // InternalDSL.g:16739:85: ( '.' '0' .. '9' '0' .. '9' '0' .. '9' )?\n int alt29=2;\n int LA29_0 = input.LA(1);\n\n if ( (LA29_0=='.') ) {\n alt29=1;\n }\n switch (alt29) {\n case 1 :\n // InternalDSL.g:16739:86: '.' '0' .. '9' '0' .. '9' '0' .. '9'\n {\n match('.'); \n matchRange('0','9'); \n matchRange('0','9'); \n matchRange('0','9'); \n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n // InternalDSL.g:16739:121: ( 'am' | 'pm' )\n int alt31=2;\n int LA31_0 = input.LA(1);\n\n if ( (LA31_0=='a') ) {\n alt31=1;\n }\n else if ( (LA31_0=='p') ) {\n alt31=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 31, 0, input);\n\n throw nvae;\n }\n switch (alt31) {\n case 1 :\n // InternalDSL.g:16739:122: 'am'\n {\n match(\"am\"); \n\n\n }\n break;\n case 2 :\n // InternalDSL.g:16739:127: 'pm'\n {\n match(\"pm\"); \n\n\n }\n break;\n\n }\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "private void normalGmtStringToMinutes() {\n int i = Integer.parseInt(gmtString.substring(4, 6));\n offsetMinutes = i * 60;\n i = Integer.parseInt(gmtString.substring(7));\n offsetMinutes += i;\n if (gmtString.charAt(3) == MINUS) {\n offsetMinutes *= -1;\n }\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "@Test(timeout = 4000)\n public void test136() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n stringReader0.read();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\":\", token0.toString());\n }", "public int method_2436() {\r\n return 16;\r\n }", "private static String m12563a(String str, String str2) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 3 + String.valueOf(str2).length());\n sb.append(str);\n sb.append(\"|S|\");\n sb.append(str2);\n return sb.toString();\n }", "@Test(timeout = 4000)\n public void test44() throws Throwable {\n String string0 = EWrapperMsgGenerator.accountDownloadEnd(\"6FL]:1rO^5$2j=[!jjK\");\n assertEquals(\"accountDownloadEnd: 6FL]:1rO^5$2j=[!jjK\", string0);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"_\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }", "static String timeCount_2(List<String> Arr){\n int timeHH = 0;\n int timeMI = 0;\n int timeSS = 0;\n \n int timeSum_second = 0;\n \n String r_hh = \"\";\n String r_mi = \"\";\n String r_ss = \"\";\n\n for(int i = 0; i < Arr.size(); i++ ){\n \n if (Pattern.matches(\"\\\\d{2}:\\\\d{2}:\\\\d{2}\", Arr.get(i))){\n \n String[] s = Arr.get(i).split(\":\");\n int hh = Integer.parseInt(s[0]);\n int mi = Integer.parseInt(s[1]);\n int ss = Integer.parseInt(s[2]);\n\n timeSum_second += hh*60*60 + mi*60 + ss;\n \n }\n else{\n continue;\n }\n }\n \n timeHH = timeSum_second/60/60;\n timeMI = (timeSum_second%(60*60))/60;\n timeSS = timeSum_second%60;\n \n if (timeHH < 10){\n r_hh = \"0\" + timeHH;\n }\n else{\n r_hh = Integer.toString(timeHH);\n }\n \n if (timeMI < 10){\n r_mi = \"0\" + timeMI;\n }\n else{\n r_mi = Integer.toString(timeMI);\n }\n \n if (timeSS < 10){\n r_ss = \"0\" + timeSS;\n }\n else{\n r_ss = Integer.toString(timeSS);\n }\n \n String result = r_hh + \":\" + r_mi + \":\" + r_ss;\n \n return result;\n }", "private static int m14203b(String str, String str2) {\n String str3 = \"1970/01/01 00:00:00\";\n if (str == null) {\n str = str3;\n }\n if (str2 == null) {\n str2 = str3;\n }\n String str4 = \"[:/\\\\s]\";\n String[] split = str.split(str4);\n String[] split2 = str2.split(str4);\n int max = Math.max(split.length, split2.length);\n int i = 0;\n while (i < max) {\n int parseInt = i < split.length ? Integer.parseInt(split[i]) : 0;\n int parseInt2 = i < split2.length ? Integer.parseInt(split2[i]) : 0;\n if (parseInt < parseInt2) {\n return -1;\n }\n if (parseInt > parseInt2) {\n return 1;\n }\n i++;\n }\n return 0;\n }", "private final void m134908d(String str) {\n if (!TextUtils.isEmpty(str)) {\n String str2 = C6969H.m41409d(\"G738BDC12AA7FAF3BE7039107E4B48CDA6C8ED71FAD7F\") + str + '/';\n VideoXOnlineLog.f101073b.mo121420a(C6969H.m41409d(\"G6887D15AAA23AE3BA61A9F58FBE6838D2998C8\"), str2);\n MQTTClient a = MQTTClientManager.m55413a(C6969H.m41409d(\"G4DA6F33B8A1C9F16C522B96DDCD1\"));\n if (a != null) {\n ProtoAdapter<EventMessage> gVar = EventMessage.f96677a;\n C32569u.m150513a((Object) gVar, C6969H.m41409d(\"G4C95D014AB1DAE3AF50F974DBCC4E7F659B7F028\"));\n f97550g = a.mo57249a(str2, new MQTTWirePbConverter(gVar));\n MQTTTopic<EventMessage> oVar = f97550g;\n if (oVar == null) {\n C32569u.m150511a();\n }\n oVar.mo57278a((MQTTTopicListener<EventMessage>) f97552i, true);\n MQTTTopic<EventMessage> oVar2 = f97550g;\n if (oVar2 == null) {\n C32569u.m150511a();\n }\n oVar2.mo57274a(MQTTQosLevel.LEVEL_1, true);\n }\n }\n }", "private String extractHourMinute(String dateTime)\n {\n String[] aux = dateTime.split(\"T\");\n String[] auxTime = aux[1].split(\":\");\n\n return auxTime[0] + \":\" + auxTime[1];\n }", "public static String convert_minutes_to_hours(String minutess) {\n int hours = Integer.parseInt(minutess) / 60; //since both are ints, you get an int\n int minutes = Integer.parseInt(minutess) % 60;\n System.out.printf(\"%d:%02d\", hours, minutes);\n return hours + \":\" + minutes;\n }", "private static String timeLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, TIME_STR, TIME);\n }", "private Integer timeStringToInt(String time) {\n\t\t\n\t\tif(time.equals(\"TBA\")) {\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\tString[] t = time.split(\":\");\n\t\tInteger hours = Integer.parseInt(t[0]) * 100;\n\t\tInteger minutes = Integer.parseInt(t[1]);\n\t\treturn hours + minutes;\n\t}", "public String morningMeeting(){\n return \"accountants have meetings beginning at 9:15 AM and run until 8:45 AM\";\n }", "@Test\n\tpublic void test() throws InterruptedException {\n\t\tString firstTime = Time.main();\n\t\tString[] splitFirst = firstTime.split(\":\");\n\t\tThread.sleep(5000);\n\t\tString secondTime = Time.main();\n\t\tString[] splitSecond = secondTime.split(\":\");\n\t\t\n\t\t\n\t\tif(Integer.parseInt(splitFirst[2])>=55) //if first time was >= 55 seconds\n\t\t{\n\t\t\tassertEquals(Integer.parseInt(splitSecond[2]),(Integer.parseInt(splitFirst[2])+5)%60); //seconds should increase by 5 mod 60\n\n\t\t\tif(Integer.parseInt(splitFirst[1])==59) //if first time was 59 minutes\n\t\t\t{ \n\t\t\t\tassertTrue(splitFirst[1].equals(\"00\")); //reset to zero minutes\n\t\t\t\t\n\t\t\t\tif(Integer.parseInt(splitFirst[0])==23) //if first time was 23 hours\n\t\t\t\t\tassertTrue(splitFirst[0].equals(\"00\")); //reset to zero hours\n\t\t\t\telse //if first time is not 23 hours\n\t\t\t\t\tassertEquals(Integer.parseInt(splitFirst[0])+1, Integer.parseInt(splitSecond[0])); //hours should increase by 1\n\t\t\t}\n\t\t\telse //if first time was not 59 minutes\n\t\t\t{\n\t\t\t\tassertEquals(Integer.parseInt(splitFirst[1])+1, Integer.parseInt(splitSecond[1])); //minutes should increase by 1\n\t\t\t\tassertTrue(splitFirst[0].equals(splitSecond[0])); //hours should not change\n\t\t\t}\n\t\t}\n\t\telse //if first time was <= 55 seconds\n\t\t{\n\t\t\tassertEquals(Integer.parseInt(splitSecond[2]),(Integer.parseInt(splitFirst[2])+5)); //seconds should increase by 5\n\t\t\tassertTrue(splitFirst[1].equals(splitSecond[1])); //minutes should not change\n\t\t\tassertTrue(splitFirst[0].equals(splitSecond[0])); //hours should not change\n\t\t\t\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tString firstline = scanner.nextLine();\r\n\t\tString[] strings = firstline.split(\" \");\r\n\t\tMap<String, Integer> pNs = new HashMap<String, Integer>();\r\n\t\tMap<String, Integer> mNs = new HashMap<String, Integer>();\r\n\t\tMap<String, Integer> nNs = new HashMap<String, Integer>();\r\n\t\t\r\n\t\tfor(int i=0;i<3;i++)\r\n\t\t{\r\n\t\t\tfor(int index=0;index<Integer.parseInt(strings[i]);index++)\r\n\t\t\t{\r\n\t\t\t\tString[] scan = scanner.nextLine().split(\" \");\r\n\t\t\t\tif (i==0) {\r\n\t\t\t\t\tif(Integer.parseInt(scan[1]) >= 200)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpNs.put(scan[0], Integer.parseInt(scan[1]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if(i==1) {\r\n\t\t\t\t\tif (pNs.containsKey(scan[0])) {\r\n\t\t\t\t\t\tmNs.put(scan[0], Integer.parseInt(scan[1]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if(i==2) {\r\n\t\t\t\t\tif (pNs.containsKey(scan[0])) {\r\n\t\t\t\t\t\tnNs.put(scan[0], Integer.parseInt(scan[1]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tMap<String, Integer> endNs = new HashMap<>();\r\n\t\tfor(String name:pNs.keySet())\r\n\t\t{\r\n\t\t\tint ms,ns,ends;\r\n\t\t\tif (mNs.containsKey(name)) {\r\n\t\t\t\tms=mNs.get(name);\r\n\t\t\t}else {\r\n\t\t\t\tms = -1;\r\n\t\t\t\tmNs.put(name, ms);\r\n\t\t\t}\r\n\t\t\tif (nNs.containsKey(name)) {\r\n\t\t\t\tns=nNs.get(name);\r\n\t\t\t}else {\r\n\t\t\t\tns = -1;\r\n\t\t\t\tnNs.put(name, ns);\r\n\t\t\t}\r\n\t\t\tif (ms > ns) {\r\n\t\t\t\tends = (int) Math.round(ms*0.4+ns*0.6);\r\n\t\t\t}else {\r\n\t\t\t\tends = ns;\r\n\t\t\t}\r\n\t\t\tif (ends > 59) {\r\n\t\t\t\tendNs.put(name, ends);\r\n\t\t\t}\r\n\t\t}\r\n\t\tList<Map.Entry<String,Integer>> list = new ArrayList<Map.Entry<String,Integer>>(endNs.entrySet());\r\n\t\tCollections.sort(list,new Comparator<Map.Entry<String,Integer>>() {\r\n\t\t public int compare(Entry<String,Integer> o1,Entry<String,Integer> o2) {\r\n\t\t if(o1.getValue().equals(o2.getValue())){\r\n\t\t return o1.getKey().compareTo(o2.getKey());\r\n\t\t }else{\r\n\t\t return -(o1.getValue().compareTo(o2.getValue()));\r\n\t\t }\r\n\t\t }\r\n\t\t });\r\n\t\tfor(int i=0;i<list.size();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(list.get(i).getKey()+\" \"+pNs.get(list.get(i).getKey())+\" \"+mNs.get(list.get(i).getKey())+\" \"+nNs.get(list.get(i).getKey())+\" \"+list.get(i).getValue());\r\n\t\t}\r\n\t\t\r\n\t}", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "public abstract void partiallyParsedUtterance(long ms);", "void mo34677H(String str, int i, int i2);", "private void m26172a(int i, String str, int i2, int i3, int i4, int i5, int i6) {\n this.f19156a = i;\n this.f19157b = str;\n this.f19158c = i2;\n this.f19159d = i3;\n this.f19160e = i4;\n this.f19161f = i5;\n this.f19162g = i6;\n }", "void mo11024a(int i, int i2, String str);" ]
[ "0.552854", "0.550263", "0.54325694", "0.5303627", "0.529666", "0.5240103", "0.52012384", "0.519996", "0.51630014", "0.5136912", "0.50896055", "0.5052937", "0.49618188", "0.49577814", "0.49461347", "0.4913777", "0.4901837", "0.4885027", "0.48848706", "0.48768494", "0.48768207", "0.48764554", "0.4869789", "0.48400784", "0.48262674", "0.48258305", "0.48143622", "0.48135692", "0.4797548", "0.47914872", "0.47829393", "0.47811005", "0.47764125", "0.4776076", "0.47674718", "0.47619098", "0.47590378", "0.4743456", "0.47408724", "0.47356802", "0.4731769", "0.47284946", "0.47249496", "0.47175625", "0.47145963", "0.47109622", "0.47010088", "0.46970126", "0.469424", "0.46822855", "0.467775", "0.46702832", "0.46643794", "0.46607676", "0.46603647", "0.4659982", "0.46593577", "0.46362618", "0.4634197", "0.46325412", "0.46298277", "0.4623862", "0.46198687", "0.46159175", "0.46075135", "0.45987266", "0.4596839", "0.45924306", "0.45916954", "0.4586986", "0.45814127", "0.45794886", "0.45790422", "0.45781094", "0.4576861", "0.45726264", "0.45667538", "0.45652014", "0.45625398", "0.455887", "0.4557148", "0.4553835", "0.45483318", "0.45428732", "0.45393246", "0.45392373", "0.45321745", "0.45319644", "0.45291746", "0.4521964", "0.45196643", "0.45119876", "0.45096633", "0.45087644", "0.45000383", "0.4498687", "0.44956458", "0.44926107", "0.44915903", "0.44903445", "0.44902858" ]
0.0
-1
/ 626: / 627:
public void setCorrigeDatosRetencion(boolean corrigeDatosRetencion) /* 628: */ { /* 629:706 */ this.corrigeDatosRetencion = corrigeDatosRetencion; /* 630: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo12628c() {\n }", "public void method_4270() {}", "public void mo21783H() {\n }", "private void m50366E() {\n }", "public void mo21877s() {\n }", "public final void mo7596sH(String str) {\n }", "public int method_2436() {\r\n return 16;\r\n }", "public void mo9233aH() {\n }", "public void mo21794S() {\n }", "C1458cs mo7613iS();", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public int mo36g() {\n return 8;\n }", "public void mo21786K() {\n }", "static zzco m26829a() {\n return new zzco(\"While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.\");\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "private void kk12() {\n\n\t}", "public void mo3946e() {\n m25427g();\n }", "public int mo36g() {\n return 4;\n }", "private void m91737K() {\n String str = this.f73944a;\n boolean z = true;\n if (this.f73953m != 1) {\n z = false;\n }\n C28141am.m92411a(new C28311ag(str, z), new C28312ah(this.f73949f.hashCode()), this.f73944a);\n }", "private void m50367F() {\n }", "public void mo21782G() {\n }", "static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }", "@Override\n\tpublic void challenge6() {\n\n\t}", "public void mo21879u() {\n }", "public void mo21867i() {\n mo21877s();\n }", "public void mo2740a() {\n }", "public void mo21878t() {\n }", "public abstract void mo2624j();", "public static ald m2623b() {\n return zzffc;\n }", "public int method_6437() {\r\n return this.field_6227;\r\n }", "C2841w mo7234g();", "private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }", "public void mo21779D() {\n }", "public void mo3749d() {\n }", "abstract String mo1748c();", "public void mo6081a() {\n }", "public int mo36g() {\n return 2;\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void challenge17() {\n\n\t}", "public void mo21785J() {\n }", "public void mo23813b() {\n }", "public void mo21780E() {\n }", "static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public void mo21787L() {\n }", "public void mo21788M() {\n }", "public void mo2471e() {\n }", "@Test(timeout = 4000)\n public void test136() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n stringReader0.read();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\":\", token0.toString());\n }", "static void m14933d(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "String mo20731c();", "public void mo2470d() {\n }", "public void mo21789N() {\n }", "java.lang.String getS6();", "private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }", "public void mo3812h() {\n for (int i = 0; i < 6; i++) {\n this.f1426A[i].mo3751a().mo3882c();\n }\n }", "public final byte mo27873c() {\n return 6;\n }", "@Override\n\tpublic void challenge7() {\n\n\t}", "public void mo21795T() {\n }", "public void mo56167c() {\n }", "protected void mo6255a() {\n }", "String m6857a() {\n return this.f5237h;\n }", "@Override\n\tpublic void challenge9() {\n\n\t}", "public void mo21792Q() {\n }", "public void mo21797V() {\n this.f24532d.mo21926U();\n }", "static void m14936e(String str, String str2, Throwable th) {\n if (m14929b() >= C3205z0.INFO.mo12550d()) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"CleverTap:\");\n sb.append(str);\n sb.toString();\n }\n }", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n String string0 = SQLUtil.normalize(\"aT:7W`oI)N(jLl^oF<HQ\", false);\n assertEquals(\"aT : 7W ` oI) N (jLl ^ oF < HQ\", string0);\n }", "public void mo3376r() {\n }", "private final void step6()\n\t { j = k;\n\t if (b[k] == 'e')\n\t { int a = m();\n\t if (a > 1 || a == 1 && !cvc(k-1)) k--;\n\t }\n\t if (b[k] == 'l' && doublec(k) && m() > 1) k--;\n\t }", "private void m27468d() {\n switch (this.f25258E) {\n case 1:\n this.f25270Q = this.f25294i.left;\n break;\n case 2:\n this.f25270Q = this.f25294i.right;\n break;\n default:\n this.f25270Q = this.f25268O;\n break;\n }\n this.f25271R = (int) (((float) this.f25269P) - ((this.f25288c.ascent() + this.f25288c.descent()) / 2.0f));\n }", "public final void mo37836u_() {\n }", "protected String[] mo1613b() {\r\n return f4638d;\r\n }", "C5727e mo33224a();", "public final void mo66559hj() {\n int hl = m72695hl() | m72696hm();\n m72697hn();\n if (hl != 0) {\n m72694hk();\n notifyChanged();\n }\n }", "public void mo2476b() {\n Collections.reverse(mo2625k());\n }", "C2451d mo3408a(C2457e c2457e);", "public void mo8738a() {\n }", "void m63698a() {\n m63702c();\n m63701b();\n }", "public void mo5248a() {\n }", "public static asw m47155c() {\n return zzfkz;\n }", "public void mo44053a() {\n }", "public String method_2836() {\n return this.field_1648;\n }", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public void mo21781F() {\n }", "public void m23075a() {\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n String string0 = SQLUtil.normalize(\"alter sessionv)y/b{p(k{:tw\", false);\n assertEquals(\"alter sessionv) y / b { p (k { : tw\", string0);\n }", "public void mo12930a() {\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateNewsBulletin(11, 13, \"E{Iw-^%H:1$e/\", \"LW)W-|=b,lie*CW\");\n assertEquals(\"MsgId=11 :: MsgType=13 :: Origin=LW)W-|=b,lie*CW :: Message=E{Iw-^%H:1$e/\", string0);\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "public final void mo12688e_() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private static void m752a(int i, String str, Throwable th) {\n if (th != null) {\n str = str + '\\n' + Log.getStackTraceString(th);\n }\n if (f754b) {\n C0543b.m611a(i, \"KONG\", str);\n } else {\n Log.println(i, \"KONG\", str);\n }\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String string0 = SQLUtil.normalize(\";AS5U5EP/!f\", true);\n assertEquals(\"; AS5U5EP / ! f\", string0);\n \n System.setCurrentTimeMillis((-1L));\n System.setCurrentTimeMillis((-1L));\n String[] stringArray0 = new String[6];\n stringArray0[0] = \":curCharPos=\";\n stringArray0[1] = \":curCharPos=\";\n stringArray0[2] = \"; AS5U5EP / ! f\";\n stringArray0[3] = \":curCharPos=\";\n stringArray0[4] = \":curCharPos=\";\n stringArray0[5] = \":curCharPos=\";\n DBPrimaryKeyConstraint dBPrimaryKeyConstraint0 = new DBPrimaryKeyConstraint(defaultDBTable0, \":curCharPos=\", true, stringArray0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n String string1 = SQLUtil.constraintSpec(dBPrimaryKeyConstraint0, nameSpec0);\n assertEquals(\"CONSTRAINT :curCharPos= PRIMARY KEY (:curCharPos=, :curCharPos=, ; AS5U5EP / ! f, :curCharPos=, :curCharPos=, :curCharPos=)\", string1);\n }", "public void mo1976s() throws cf {\r\n }", "private byte m1653f() {\n char charAt;\n int i = this.f2519d;\n do {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n charAt = charSequence.charAt(i3);\n this.f2520e = charAt;\n if (charAt == '&') {\n return 12;\n }\n } while (charAt != ';');\n this.f2519d = i;\n this.f2520e = ';';\n return 13;\n }" ]
[ "0.58452827", "0.5735234", "0.56551355", "0.56440604", "0.5597858", "0.55953187", "0.55796564", "0.55251586", "0.55176795", "0.55073124", "0.5490402", "0.54859626", "0.54798496", "0.5477758", "0.5477372", "0.5475658", "0.5461474", "0.54562575", "0.5444845", "0.54243475", "0.54135317", "0.54101753", "0.53968257", "0.53954345", "0.5379272", "0.53712666", "0.5361889", "0.535687", "0.53545445", "0.53455216", "0.5338558", "0.533754", "0.53257513", "0.5318006", "0.5316806", "0.5303834", "0.5303138", "0.52997416", "0.5295338", "0.52922547", "0.5280386", "0.5278735", "0.5267143", "0.526241", "0.5257569", "0.52532244", "0.5234431", "0.5233642", "0.523153", "0.5231188", "0.5229801", "0.5229634", "0.52202815", "0.52136266", "0.521323", "0.5209661", "0.5200096", "0.5195927", "0.5194676", "0.5194393", "0.5185347", "0.5180626", "0.5178639", "0.51725405", "0.51704985", "0.5169855", "0.5169646", "0.5165193", "0.51633006", "0.51628965", "0.51547647", "0.51532876", "0.51505697", "0.5150427", "0.5148524", "0.51437575", "0.5142213", "0.5137836", "0.51335496", "0.5132316", "0.5131498", "0.51296824", "0.5125989", "0.5125072", "0.5122216", "0.5120287", "0.51195973", "0.511874", "0.5118", "0.51170325", "0.5116492", "0.5116492", "0.5116492", "0.5116492", "0.5116492", "0.5116492", "0.5116492", "0.5113586", "0.51134145", "0.511106", "0.51087344" ]
0.0
-1
/ 631: / 632:
public String getMensaje() /* 633: */ { /* 634:710 */ return this.mensaje; /* 635: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "public int mo36g() {\n return 4;\n }", "public int mo36g() {\n return 8;\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "long getUnknown72();", "String mo10312id();", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "public abstract long mo9743h();", "public int method_2436() {\r\n return 16;\r\n }", "public int mo36g() {\n return 2;\n }", "public abstract Integer mo36210m();", "String mo20731c();", "public final int mo34006h() {\n return this.f7230j;\n }", "void mo1507n();", "public final int mo34012n() {\n return this.f7223c;\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }", "public int arn() {\n return 383;\n }", "public long mo9743h() {\n return mo9773w();\n }", "public int mo3361f() {\n return 1;\n }", "public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}", "public void mo21867i() {\n mo21877s();\n }", "public long mo9743h() {\n return mo9784w();\n }", "static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "private void m50366E() {\n }", "public static int m8655e() {\n return 8;\n }", "public static int m22583h(long j) {\n return 8;\n }", "public abstract long mo9229aD();", "C5727e mo33224a();", "public String mo21866i(String str) {\n if (str == null) {\n return null;\n }\n String h = mo21862h(str);\n m36426j(h);\n return h;\n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "static com.tencent.mm.plugin.appbrand.jsapi.b.a.a nI(java.lang.String r4) {\n /*\n r0 = 0;\n r1 = r4.length();\n r2 = 5;\n r1 = java.lang.Math.min(r1, r2);\n r1 = java.lang.Math.max(r0, r1);\n r1 = r4.substring(r0, r1);\n r2 = r1.toLowerCase();\n r1 = -1;\n r3 = r2.hashCode();\n switch(r3) {\n case 99228: goto L_0x003a;\n case 3704893: goto L_0x0025;\n case 104080000: goto L_0x002f;\n default: goto L_0x001e;\n };\n L_0x001e:\n r0 = r1;\n L_0x001f:\n switch(r0) {\n case 0: goto L_0x0045;\n case 1: goto L_0x0048;\n case 2: goto L_0x004b;\n default: goto L_0x0022;\n };\n L_0x0022:\n r0 = MONTH;\n L_0x0024:\n return r0;\n L_0x0025:\n r3 = \"year\";\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x001e;\n L_0x002e:\n goto L_0x001f;\n L_0x002f:\n r0 = \"month\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0038:\n r0 = 1;\n goto L_0x001f;\n L_0x003a:\n r0 = \"day\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0043:\n r0 = 2;\n goto L_0x001f;\n L_0x0045:\n r0 = YEAR;\n goto L_0x0024;\n L_0x0048:\n r0 = MONTH;\n goto L_0x0024;\n L_0x004b:\n r0 = DAY;\n goto L_0x0024;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.jsapi.b.a.a.nI(java.lang.String):com.tencent.mm.plugin.appbrand.jsapi.b.a$a\");\n }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "public void mo21877s() {\n }", "public static void m22735h() {\n if (f20301b.mo18963a()) {\n f20301b.mo18962a(C7268n.m22763a().mo18998b());\n }\n }", "static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }", "public int method_6437() {\r\n return this.field_6227;\r\n }", "public final void mo61102n() {\n int i = this.f110627N % this.f110626M;\n if (i <= this.f110626M / 2) {\n mo5521a(-i, 0);\n } else {\n mo5521a(this.f110626M - i, 0);\n }\n }", "public final int mo21872n() {\n return this.f24538j;\n }", "public abstract long mo24412e();", "public abstract long mo13681c();", "String mo30285c(long j);", "private void m3935R() {\n int i;\n int i2;\n if (mo4322L() == 1) {\n i2 = mo4758r() - mo4756p();\n i = mo4754o();\n } else {\n i2 = mo4741h() - mo4752n();\n i = mo4757q();\n }\n m3945n(i2 - i);\n }", "public long mo9743h() {\n return mo9760w();\n }", "public abstract long mo9755t();", "public static int m8668h() {\n return 8;\n }", "public void mo9233aH() {\n }", "private int m10257E() throws cf {\r\n int i = 0;\r\n int i2;\r\n if (this.g.mo1996h() >= 5) {\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n i2 = 0;\r\n int i3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n i3 |= (b & 127) << i2;\r\n if ((b & 128) != 128) {\r\n this.g.mo1993a(i + 1);\r\n return i3;\r\n }\r\n i2 += 7;\r\n i++;\r\n }\r\n } else {\r\n i2 = 0;\r\n while (true) {\r\n byte u = mo1978u();\r\n i2 |= (u & 127) << i;\r\n if ((u & 128) != 128) {\r\n return i2;\r\n }\r\n i += 7;\r\n }\r\n }\r\n }", "public String mo38889c() {\n String trim = this.f30736g0.getText().toString().trim();\n return trim.length() == 5 ? trim.substring(3, 5) : \"\";\n }", "public static C7260i m22723a() {\n return f20300a;\n }", "private int m150332e(long j) {\n return m150326a(this.f111579b, j);\n }", "public int mo9749n() {\n return C3656k.m8448e(mo9774x());\n }", "C32446a mo21077h() throws Exception;", "public int mo9749n() {\n return C3656k.m8448e(mo9761x());\n }", "public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }", "private final long m719n() {\n return m702b(this.f533r.f621k);\n }", "private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }", "public void mo12628c() {\n }", "private static C10387b m26008a(String str) {\n String str2;\n int i;\n if (str == null) {\n return null;\n }\n int indexOf = str.indexOf(44);\n if (indexOf >= 0) {\n str2 = str.substring(0, indexOf);\n i = indexOf + 1;\n } else {\n str2 = \"\";\n i = 0;\n }\n int indexOf2 = str.indexOf(47, i);\n String str3 = \"LogSamplerImpl\";\n if (indexOf2 <= 0) {\n String str4 = \"Failed to parse the rule: \";\n String valueOf = String.valueOf(str);\n Log.e(str3, valueOf.length() != 0 ? str4.concat(valueOf) : new String(str4));\n return null;\n }\n try {\n long parseLong = Long.parseLong(str.substring(i, indexOf2));\n long parseLong2 = Long.parseLong(str.substring(indexOf2 + 1));\n if (parseLong < 0 || parseLong2 < 0) {\n StringBuilder sb = new StringBuilder(72);\n sb.append(\"negative values not supported: \");\n sb.append(parseLong);\n sb.append(Constants.URL_PATH_DELIMITER);\n sb.append(parseLong2);\n Log.e(str3, sb.toString());\n return null;\n }\n C10388a h = C10387b.m26478h();\n h.mo28112a(str2);\n h.mo28111a(parseLong);\n h.mo28113b(parseLong2);\n return (C10387b) h.mo27817c();\n } catch (NumberFormatException e) {\n String str5 = \"parseLong() failed while parsing: \";\n String valueOf2 = String.valueOf(str);\n Log.e(str3, valueOf2.length() != 0 ? str5.concat(valueOf2) : new String(str5), e);\n return null;\n }\n }", "public void mo6081a() {\n }", "C2451d mo3408a(C2457e c2457e);", "public abstract Integer mo36212o();", "private static String m14296fm(String str) {\n return toHexString(m14295fl(str), \"\");\n }", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public int mo3360e() {\n return 0;\n }", "private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }", "void m63698a() {\n m63702c();\n m63701b();\n }", "void mo304a(C0366h c0366h);", "public static String m13823m() {\n return f12476h;\n }", "public int mo4452e() {\n /*\n r7 = this;\n int r0 = r7.f2518c\n r7.f2519d = r0\n r0 = 0\n r1 = 0\n r2 = 0\n L_0x0007:\n int r3 = r7.f2519d\n if (r3 <= 0) goto L_0x003b\n byte r3 = r7.mo4449a()\n r4 = -1\n if (r3 == 0) goto L_0x0034\n r5 = 1\n if (r3 == r5) goto L_0x002e\n r6 = 2\n if (r3 == r6) goto L_0x002e\n r6 = 9\n if (r3 == r6) goto L_0x0007\n switch(r3) {\n case 14: goto L_0x0028;\n case 15: goto L_0x0028;\n case 16: goto L_0x0025;\n case 17: goto L_0x0025;\n case 18: goto L_0x0022;\n default: goto L_0x001f;\n }\n L_0x001f:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0022:\n int r1 = r1 + 1\n goto L_0x0007\n L_0x0025:\n if (r2 != r1) goto L_0x002b\n return r5\n L_0x0028:\n if (r2 != r1) goto L_0x002b\n return r4\n L_0x002b:\n int r1 = r1 + -1\n goto L_0x0007\n L_0x002e:\n if (r1 != 0) goto L_0x0031\n return r5\n L_0x0031:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0034:\n if (r1 != 0) goto L_0x0037\n return r4\n L_0x0037:\n if (r2 != 0) goto L_0x0007\n L_0x0039:\n r2 = r1\n goto L_0x0007\n L_0x003b:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.text.BidiFormatter.C0510a.mo4452e():int\");\n }", "public int mo9754s() {\n return mo9774x();\n }", "public int mo23322t() {\n return ((Integer) this.f13965a.mo23249a(C7196pb.f13717Kc)).intValue();\n }", "private static int m24353e(int i) {\n return i - (i >> 2);\n }", "private void m50367F() {\n }", "public void mo21783H() {\n }", "private static int m31087b(zzss zzss) {\n int a = zzss.mo32193a(4);\n if (a == 15) {\n return zzss.mo32193a(24);\n }\n zzsk.m31080a(a < 13);\n return f29311b[a];\n }", "public int mo3356c() {\n return 0;\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateNewsBulletin(11, 13, \"E{Iw-^%H:1$e/\", \"LW)W-|=b,lie*CW\");\n assertEquals(\"MsgId=11 :: MsgType=13 :: Origin=LW)W-|=b,lie*CW :: Message=E{Iw-^%H:1$e/\", string0);\n }", "private C1201f m6938h() {\n C1219t b = C1217q.m6361a().m6364b();\n return b != null ? b.f3525f : null;\n }", "protected void mo6255a() {\n }", "public int mo12192d() {\n return this.f10959n;\n }", "public abstract int mo9754s();", "public void mo1531a() {\n }", "public int mo1534c() {\n return 2;\n }", "public void mo3376r() {\n }", "public int mo15797hn() {\n return this.f3883JI;\n }", "public int mo11550h() {\n int i = 0;\n for (C4929d f : this.f11878e) {\n i += f.mo11569f().mo11550h();\n }\n return i + 2 + 2;\n }", "public abstract long mo24410c();", "public final int mo6465d() {\n return 19729000;\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "C1458cs mo7613iS();", "public int mo4322L() {\n return this.f3138s;\n }", "@Test(timeout = 4000)\n public void test136() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n stringReader0.read();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\":\", token0.toString());\n }" ]
[ "0.6018847", "0.5755401", "0.5709786", "0.5663664", "0.56359345", "0.55189276", "0.55152166", "0.5514035", "0.5505732", "0.54971707", "0.5481077", "0.5476693", "0.5468829", "0.54662377", "0.5451949", "0.5405056", "0.5394635", "0.53794974", "0.5355009", "0.5322162", "0.53174794", "0.5313368", "0.5308494", "0.52894956", "0.5280661", "0.5271477", "0.5270407", "0.52681476", "0.5265184", "0.526474", "0.5256144", "0.5249258", "0.5248378", "0.5248341", "0.52469003", "0.52457505", "0.5243594", "0.52419156", "0.52362406", "0.5231845", "0.522688", "0.5224173", "0.52177495", "0.5216981", "0.52150154", "0.5210114", "0.52029574", "0.5202094", "0.5199537", "0.519489", "0.5194041", "0.51938367", "0.5191619", "0.5172157", "0.51703054", "0.516641", "0.51645035", "0.5160593", "0.51591825", "0.5157307", "0.5157056", "0.51552254", "0.515479", "0.51516396", "0.514485", "0.5143197", "0.5142293", "0.51418185", "0.5137444", "0.51360905", "0.51347214", "0.5131036", "0.5126326", "0.5124521", "0.51215", "0.512113", "0.5117753", "0.51156896", "0.5113588", "0.51078236", "0.51056534", "0.5103875", "0.5100879", "0.5100713", "0.5097299", "0.50952065", "0.5094148", "0.5092889", "0.5091044", "0.50889146", "0.5087973", "0.50860727", "0.50860727", "0.50860727", "0.50860727", "0.50860727", "0.50860727", "0.50860727", "0.5085028", "0.50841546", "0.5082743" ]
0.0
-1
/ 636: / 637:
public void setMensaje(String mensaje) /* 638: */ { /* 639:714 */ this.mensaje = mensaje; /* 640: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int mo36g() {\n return 4;\n }", "public int mo36g() {\n return 8;\n }", "public int mo36g() {\n return 2;\n }", "private C1201f m6938h() {\n C1219t b = C1217q.m6361a().m6364b();\n return b != null ? b.f3525f : null;\n }", "public int method_2436() {\r\n return 16;\r\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}", "public long mo9743h() {\n return mo9773w();\n }", "public int mo3836t() {\n return this.f1467ap;\n }", "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "public static String m13823m() {\n return f12476h;\n }", "public abstract long mo9743h();", "public long mo9743h() {\n return mo9760w();\n }", "public long mo9743h() {\n return mo9784w();\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "private void m6556g() {\n m6561c();\n m6557h();\n m6558i();\n }", "private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "private void m91737K() {\n String str = this.f73944a;\n boolean z = true;\n if (this.f73953m != 1) {\n z = false;\n }\n C28141am.m92411a(new C28311ag(str, z), new C28312ah(this.f73949f.hashCode()), this.f73944a);\n }", "long getUnknown72();", "public final int mo34006h() {\n return this.f7230j;\n }", "public int mo9749n() {\n return C3656k.m8448e(mo9774x());\n }", "public final void mo66559hj() {\n int hl = m72695hl() | m72696hm();\n m72697hn();\n if (hl != 0) {\n m72694hk();\n notifyChanged();\n }\n }", "void m63698a() {\n m63702c();\n m63701b();\n }", "public final int mo6465d() {\n return 19729000;\n }", "public static String generate6CharacterTagCode() {\n\t\tString longTime = String.valueOf(Calendar.getInstance().getTimeInMillis());\n\t\tint len = longTime.length();\n\n\t\treturn longTime.substring(len - 6);\n\t}", "String mo10312id();", "public abstract Integer mo36210m();", "java.lang.String getS6();", "public int mo9749n() {\n return C3656k.m8448e(mo9761x());\n }", "public final byte mo27873c() {\n return 6;\n }", "public int m9737f() {\r\n return this.f6260b;\r\n }", "public final int mo9382ZU() {\n return 470;\n }", "public static void m22735h() {\n if (f20301b.mo18963a()) {\n f20301b.mo18962a(C7268n.m22763a().mo18998b());\n }\n }", "public static int m8668h() {\n return 8;\n }", "public final int mo2206a() {\n int a = C0455e.m1393a();\n new StringBuilder(f773z[12]).append(a);\n ac.m1576a();\n return a;\n }", "public final int mo21872n() {\n return this.f24538j;\n }", "public static String m114840g() {\n String str;\n if (!C7163a.m22363a() || !f93231M.mo93305a(Property.UseEffectCam)) {\n str = \"142710f02c3a11e8b42429f14557854a\";\n } else {\n str = \"68d32050064f11e891efe7cc07299bc5\";\n }\n if (!str.equals(\"142710f02c3a11e8b42429f14557854a\")) {\n return str;\n }\n if (!C7163a.m22363a() || !f93231M.mo93305a(Property.UsePlanQi)) {\n return \"142710f02c3a11e8b42429f14557854a\";\n }\n return \"9f623eb0ee4911e98a27811dc5ef9137\";\n }", "public java.lang.CharSequence getVar36() {\n return var36;\n }", "public abstract C3635j mo9738d();", "public void mo3812h() {\n for (int i = 0; i < 6; i++) {\n this.f1426A[i].mo3751a().mo3882c();\n }\n }", "public int m2706g() {\n return ((Integer) this.f2439a.m2666a(ea.bs)).intValue();\n }", "public java.lang.CharSequence getVar36() {\n return var36;\n }", "public void mo21867i() {\n mo21877s();\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "public C3646a<C3762c, C3762c> mo23036a() {\n return new C3650d(this.f12723a);\n }", "public long Time33Hash(String key) {\n\t\tlong hash = 0;\n\t\tchar[] cArr = key.toCharArray();\n\n\t\tfor (int i = 0; i < cArr.length; ++i) {\n\t\t\thash = (hash * 33) + cArr[i];\n\t\t}\n\n\t\treturn hash;\n\t}", "public String m3256j() {\n String string = getString();\n return this.f1938d >= 0 ? string.substring(0, this.f1937c) + string.substring(this.f1937c + this.f1938d, string.length()) : string.substring(0, this.f1937c);\n }", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "String m6857a() {\n return this.f5237h;\n }", "public static int m8636a(String str) {\n int i;\n try {\n i = C3700r1.m8884a((CharSequence) str);\n } catch (C3703c unused) {\n i = str.getBytes(C3594b0.f8972a).length;\n }\n return m8656e(i);\n }", "public final void mo37836u_() {\n }", "public static int m8638a(C3635j jVar) {\n return m8656e(jVar.size());\n }", "public static long m56088h() {\n return ((Long) C16942h.f47391L.mo44132a()).longValue();\n }", "private C2101h m7462e() {\n int i = this.f5790b.f5938a.f5889a;\n if (this.f5790b.f5952o != null) {\n return this.f5790b.f5952o;\n }\n return this.f5791c.m7469a(i);\n }", "public abstract long mo9748m();", "public String m3147h() {\n return this.f2416j;\n }", "public final long mo23972d() {\n return C9612c.m28452c();\n }", "public static int m8655e() {\n return 8;\n }", "public final long m63856a() {\n return this.f54276a;\n }", "private byte m1656i() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 < this.f2518c) {\n CharSequence charSequence = this.f2516a;\n this.f2519d = i2 + 1;\n char charAt2 = charSequence.charAt(i2);\n this.f2520e = charAt2;\n if (charAt2 == '>') {\n return 12;\n }\n if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i3 = this.f2519d;\n if (i3 >= this.f2518c) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n this.f2519d = i3 + 1;\n charAt = charSequence2.charAt(i3);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n } else {\n this.f2519d = i;\n this.f2520e = '<';\n return 13;\n }\n }\n }", "public static void main(String[] args) {\n\t\tint num=(int) (Math.random()*36 ) ;\r\n\t\tSystem.out.println( Math.random());WW\r\n\t\tSystem.out.println(num);\r\n\t}", "public String toString()\r\n/* 438: */ {\r\n/* 439:522 */ return \"Luffa-\" + (getDigestLength() << 3);\r\n/* 440: */ }", "public final String mo1686e() {\n return this.f1356h;\n }", "public static int m22583h(long j) {\n return 8;\n }", "public abstract long mo9755t();", "public int mo9749n() {\n return C3656k.m8448e(mo9785x());\n }", "public String mo63639a() {\n return this.f40949a;\n }", "private byte m1655h() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n char charAt2 = charSequence.charAt(i3);\n this.f2520e = charAt2;\n if (charAt2 == '<') {\n return 12;\n }\n if (charAt2 == '>') {\n break;\n } else if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i4 = this.f2519d;\n if (i4 <= 0) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n int i5 = i4 - 1;\n this.f2519d = i5;\n charAt = charSequence2.charAt(i5);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n }\n this.f2519d = i;\n this.f2520e = '>';\n return 13;\n }", "public long mo9750o() {\n return C3656k.m8444a(mo9786y());\n }", "private static int m4924a(Context context, float f) {\n return C1326f.m5657a(context, f);\n }", "public static C7260i m22723a() {\n return f20300a;\n }", "public int mo38492a() {\n return this.f27233b;\n }", "private void m145775e() {\n long j;\n String str;\n int i;\n if (!this.f119477j.mo115499a()) {\n if (this.f119484q != null) {\n str = \"PRAGMA cipher_page_size\";\n if (this.f119485r == null || this.f119485r.pageSize <= 0) {\n i = SQLiteGlobal.f119529a;\n } else {\n i = this.f119485r.pageSize;\n }\n j = (long) i;\n } else {\n str = \"PRAGMA page_size\";\n j = (long) SQLiteGlobal.f119529a;\n }\n if (mo115435b(str, null, null) != j) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(\"=\");\n sb.append(j);\n mo115433a(sb.toString(), null, null);\n }\n }\n }", "public void mo55562a() {\n new C3547h(this, System.currentTimeMillis(), new C3623h()).mo55437a();\n C3754u5.m1743f().mo55859a();\n }", "public abstract long mo24412e();", "anx j6(asg r27, long r28) {\n /*\n r26 = this;\n r0 = r27;\n r8 = r0.j6;\t Catch:{ DataFormatException -> 0x01db }\n r12 = 0;\n r4 = 0;\n r4 = (byte[]) r4;\t Catch:{ DataFormatException -> 0x01db }\n r23 = -1;\n r22 = 0;\n r13 = r12;\n r6 = r28;\n L_0x000f:\n r9 = 0;\n r10 = 20;\n r5 = r26;\n r11 = r27;\n r5.j6(r6, r8, r9, r10, r11);\t Catch:{ DataFormatException -> 0x004d }\n r5 = 0;\n r5 = r8[r5];\t Catch:{ DataFormatException -> 0x004d }\n r12 = r5 & 255;\n r5 = r12 >> 4;\n r9 = r5 & 7;\n r5 = r12 & 15;\n r10 = (long) r5;\t Catch:{ DataFormatException -> 0x004d }\n r5 = 4;\n r14 = 1;\n r24 = r5;\n r5 = r12;\n r12 = r24;\n L_0x002c:\n r5 = r5 & 128;\n if (r5 != 0) goto L_0x0072;\n L_0x0030:\n switch(r9) {\n case 1: goto L_0x0087;\n case 2: goto L_0x0087;\n case 3: goto L_0x0087;\n case 4: goto L_0x0087;\n case 5: goto L_0x0033;\n case 6: goto L_0x00c5;\n case 7: goto L_0x011d;\n default: goto L_0x0033;\n };\t Catch:{ DataFormatException -> 0x004d }\n L_0x0033:\n r4 = new java.io.IOException;\t Catch:{ DataFormatException -> 0x004d }\n r5 = org.eclipse.jgit.JGitText.j6();\t Catch:{ DataFormatException -> 0x004d }\n r5 = r5.unknownObjectType;\t Catch:{ DataFormatException -> 0x004d }\n r8 = 1;\n r8 = new java.lang.Object[r8];\t Catch:{ DataFormatException -> 0x004d }\n r10 = 0;\n r9 = java.lang.Integer.valueOf(r9);\t Catch:{ DataFormatException -> 0x004d }\n r8[r10] = r9;\t Catch:{ DataFormatException -> 0x004d }\n r5 = java.text.MessageFormat.format(r5, r8);\t Catch:{ DataFormatException -> 0x004d }\n r4.<init>(r5);\t Catch:{ DataFormatException -> 0x004d }\n throw r4;\t Catch:{ DataFormatException -> 0x004d }\n L_0x004d:\n r4 = move-exception;\n L_0x004e:\n r5 = new ala;\n r8 = org.eclipse.jgit.JGitText.j6();\n r8 = r8.objectAtHasBadZlibStream;\n r9 = 2;\n r9 = new java.lang.Object[r9];\n r10 = 0;\n r6 = java.lang.Long.valueOf(r6);\n r9[r10] = r6;\n r6 = 1;\n r7 = r26.j6();\n r9[r6] = r7;\n r6 = java.text.MessageFormat.format(r8, r9);\n r5.<init>(r6);\n r5.initCause(r4);\n throw r5;\n L_0x0072:\n r5 = r14 + 1;\n r14 = r8[r14];\t Catch:{ DataFormatException -> 0x004d }\n r0 = r14 & 255;\n r16 = r0;\n r14 = r16 & 127;\n r14 = r14 << r12;\n r14 = (long) r14;\t Catch:{ DataFormatException -> 0x004d }\n r14 = r14 + r10;\n r10 = r12 + 7;\n r12 = r10;\n r10 = r14;\n r14 = r5;\n r5 = r16;\n goto L_0x002c;\n L_0x0087:\n r5 = r27.VH();\t Catch:{ DataFormatException -> 0x004d }\n r0 = (long) r5;\t Catch:{ DataFormatException -> 0x004d }\n r16 = r0;\n r5 = (r10 > r16 ? 1 : (r10 == r16 ? 0 : -1));\n if (r5 >= 0) goto L_0x009d;\n L_0x0092:\n r4 = (long) r14;\t Catch:{ DataFormatException -> 0x004d }\n r4 = r4 + r6;\n r8 = (int) r10;\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r1 = r27;\n r4 = r0.j6(r4, r8, r1);\t Catch:{ DataFormatException -> 0x004d }\n L_0x009d:\n if (r13 == 0) goto L_0x00ae;\n L_0x009f:\n r10 = r22;\n r8 = r4;\n r4 = r13;\n L_0x00a3:\n if (r8 != 0) goto L_0x01e0;\n L_0x00a5:\n r0 = r26;\n r1 = r27;\n r8 = r4.j6(r0, r1);\t Catch:{ DataFormatException -> 0x004d }\n L_0x00ad:\n return r8;\n L_0x00ae:\n if (r4 == 0) goto L_0x00b6;\n L_0x00b0:\n r8 = new anx$a;\t Catch:{ DataFormatException -> 0x004d }\n r8.<init>(r9, r4);\t Catch:{ DataFormatException -> 0x004d }\n goto L_0x00ad;\n L_0x00b6:\n r8 = new arg;\t Catch:{ DataFormatException -> 0x004d }\n r0 = r27;\n r0 = r0.DW;\t Catch:{ DataFormatException -> 0x004d }\n r16 = r0;\n r12 = r6;\n r15 = r26;\n r8.<init>(r9, r10, r12, r14, r15, r16);\t Catch:{ DataFormatException -> 0x004d }\n goto L_0x00ad;\n L_0x00c5:\n r17 = r14 + 1;\n r5 = r8[r14];\t Catch:{ DataFormatException -> 0x004d }\n r5 = r5 & 255;\n r9 = r5 & 127;\n r14 = (long) r9;\t Catch:{ DataFormatException -> 0x004d }\n L_0x00ce:\n r5 = r5 & 128;\n if (r5 != 0) goto L_0x00eb;\n L_0x00d2:\n r18 = r6 - r14;\n r12 = new aro$a;\t Catch:{ DataFormatException -> 0x004d }\n r0 = (int) r10;\t Catch:{ DataFormatException -> 0x004d }\n r16 = r0;\n r14 = r6;\n r12.<init>(r13, r14, r16, r17, r18);\t Catch:{ DataFormatException -> 0x004d }\n r5 = r12.FH;\t Catch:{ DataFormatException -> 0x004d }\n r14 = (long) r5;\t Catch:{ DataFormatException -> 0x004d }\n r5 = (r10 > r14 ? 1 : (r10 == r14 ? 0 : -1));\n if (r5 == 0) goto L_0x0102;\n L_0x00e4:\n r10 = r22;\n r9 = r23;\n r8 = r4;\n r4 = r12;\n goto L_0x00a3;\n L_0x00eb:\n r18 = 1;\n r14 = r14 + r18;\n r5 = r17 + 1;\n r9 = r8[r17];\t Catch:{ DataFormatException -> 0x004d }\n r9 = r9 & 255;\n r12 = 7;\n r14 = r14 << r12;\n r12 = r9 & 127;\n r0 = (long) r12;\t Catch:{ DataFormatException -> 0x004d }\n r16 = r0;\n r14 = r14 + r16;\n r17 = r5;\n r5 = r9;\n goto L_0x00ce;\n L_0x0102:\n r5 = r27.Hw();\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r1 = r18;\n r5 = r5.j6(r0, r1);\t Catch:{ DataFormatException -> 0x004d }\n if (r5 == 0) goto L_0x0118;\n L_0x0110:\n r9 = r5.DW;\t Catch:{ DataFormatException -> 0x004d }\n r4 = r5.j6;\t Catch:{ DataFormatException -> 0x004d }\n r10 = 1;\n r8 = r4;\n r4 = r12;\n goto L_0x00a3;\n L_0x0118:\n r13 = r12;\n r6 = r18;\n goto L_0x000f;\n L_0x011d:\n r0 = (long) r14;\t Catch:{ DataFormatException -> 0x004d }\n r16 = r0;\n r16 = r16 + r6;\n r19 = 0;\n r20 = 20;\n r15 = r26;\n r18 = r8;\n r21 = r27;\n r15.j6(r16, r18, r19, r20, r21);\t Catch:{ DataFormatException -> 0x004d }\n r5 = ans.j6(r8);\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r18 = r0.j6(r5);\t Catch:{ DataFormatException -> 0x004d }\n r12 = new aro$a;\t Catch:{ DataFormatException -> 0x004d }\n r0 = (int) r10;\t Catch:{ DataFormatException -> 0x004d }\n r16 = r0;\n r17 = r14 + 20;\n r14 = r6;\n r12.<init>(r13, r14, r16, r17, r18);\t Catch:{ DataFormatException -> 0x004d }\n r5 = r12.FH;\t Catch:{ DataFormatException -> 0x004d }\n r14 = (long) r5;\t Catch:{ DataFormatException -> 0x004d }\n r5 = (r10 > r14 ? 1 : (r10 == r14 ? 0 : -1));\n if (r5 == 0) goto L_0x0153;\n L_0x014b:\n r10 = r22;\n r9 = r23;\n r8 = r4;\n r4 = r12;\n goto L_0x00a3;\n L_0x0153:\n r5 = r27.Hw();\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r1 = r18;\n r5 = r5.j6(r0, r1);\t Catch:{ DataFormatException -> 0x004d }\n if (r5 == 0) goto L_0x016a;\n L_0x0161:\n r9 = r5.DW;\t Catch:{ DataFormatException -> 0x004d }\n r4 = r5.j6;\t Catch:{ DataFormatException -> 0x004d }\n r10 = 1;\n r8 = r4;\n r4 = r12;\n goto L_0x00a3;\n L_0x016a:\n r13 = r12;\n r6 = r18;\n goto L_0x000f;\n L_0x016f:\n r10 = r4;\n r11 = r8;\n r28 = r6;\n r8 = r5;\n L_0x0174:\n if (r10 == 0) goto L_0x0196;\n L_0x0176:\n r4 = 0;\n L_0x0177:\n r6 = r11.DW;\t Catch:{ DataFormatException -> 0x01db }\n r5 = r11.Hw;\t Catch:{ DataFormatException -> 0x004d }\n r12 = (long) r5;\t Catch:{ DataFormatException -> 0x004d }\n r12 = r12 + r6;\n r5 = r11.FH;\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r1 = r27;\n r10 = r0.j6(r12, r5, r1);\t Catch:{ DataFormatException -> 0x004d }\n if (r10 != 0) goto L_0x01a7;\n L_0x0189:\n r4 = 0;\n r4 = (byte[]) r4;\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r1 = r27;\n r8 = r11.j6(r0, r1);\t Catch:{ DataFormatException -> 0x004d }\n goto L_0x00ad;\n L_0x0196:\n r4 = r11.j6;\t Catch:{ DataFormatException -> 0x01db }\n if (r4 != 0) goto L_0x01a5;\n L_0x019a:\n r4 = r27.Hw();\t Catch:{ DataFormatException -> 0x01db }\n r6 = r11.v5;\t Catch:{ DataFormatException -> 0x01db }\n r5 = r26;\n r4.j6(r5, r6, r8, r9);\t Catch:{ DataFormatException -> 0x01db }\n L_0x01a5:\n r4 = r10;\n goto L_0x0177;\n L_0x01a7:\n r12 = asj.j6(r10);\t Catch:{ DataFormatException -> 0x004d }\n r14 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n r5 = (r14 > r12 ? 1 : (r14 == r12 ? 0 : -1));\n if (r5 > 0) goto L_0x01bc;\n L_0x01b2:\n r0 = r26;\n r1 = r27;\n r8 = r11.j6(r0, r1);\t Catch:{ DataFormatException -> 0x004d }\n goto L_0x00ad;\n L_0x01bc:\n r5 = (int) r12;\n r5 = new byte[r5];\t Catch:{ OutOfMemoryError -> 0x01cd }\n asj.j6(r8, r10, r5);\t Catch:{ DataFormatException -> 0x004d }\n r8 = r11.j6;\t Catch:{ DataFormatException -> 0x004d }\n if (r8 != 0) goto L_0x016f;\n L_0x01c6:\n r8 = new anx$a;\t Catch:{ DataFormatException -> 0x004d }\n r8.<init>(r9, r5);\t Catch:{ DataFormatException -> 0x004d }\n goto L_0x00ad;\n L_0x01cd:\n r4 = move-exception;\n r4 = 0;\n r4 = (byte[]) r4;\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r1 = r27;\n r8 = r11.j6(r0, r1);\t Catch:{ DataFormatException -> 0x004d }\n goto L_0x00ad;\n L_0x01db:\n r4 = move-exception;\n r6 = r28;\n goto L_0x004e;\n L_0x01e0:\n r11 = r4;\n r28 = r6;\n goto L_0x0174;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: aro.j6(asg, long):anx\");\n }", "@Test(timeout = 4000)\n public void test136() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n stringReader0.read();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\":\", token0.toString());\n }", "public void mo9233aH() {\n }", "public static int m92213a(Time time) {\n return Arrays.hashCode(new Object[]{time.mo58724c(), time.mo58725d(), time.mo58727f()});\n }", "public final void mo7596sH(String str) {\n }", "@Override\n\tpublic void challenge6() {\n\n\t}", "public static String m21387a(Context context) {\n String str = \"wns_ab\";\n try {\n if (TextUtils.isEmpty(f16890a)) {\n f16890a = Secure.getString(context.getContentResolver(), \"android_id\");\n }\n if (TextUtils.isEmpty(f16890a)) {\n f16890a = C5206p.m21472b(context, str);\n if (TextUtils.isEmpty(f16890a)) {\n f16890a = UUID.randomUUID().toString().replace(\"-\", \"\");\n C5206p.m21471a(context, str, f16890a);\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return f16890a;\n }", "public void mo15790b() {\n long a = C4472i3.m15480a();\n String str = f11337e;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Messaging session stopped. Adding new messaging session timestamp: \");\n sb.append(a);\n C1557c.m7458a(str, sb.toString());\n this.f11338a.edit().putLong(\"messaging_session_timestamp\", a).apply();\n this.f11341d = false;\n }", "public void mo3946e() {\n m25427g();\n }", "public abstract long mo9229aD();", "public String m3257k() {\n String string = getString();\n return this.f1938d >= 0 ? string.substring(this.f1937c, this.f1937c + this.f1938d) : string;\n }", "public long mo9746k() {\n return mo9775y();\n }", "public final int mo23967c() {\n return C9612c.m28448a();\n }", "public long mo9750o() {\n return C3656k.m8444a(mo9775y());\n }", "public int mo9742g() {\n return mo9783v();\n }", "private final void step6()\n\t { j = k;\n\t if (b[k] == 'e')\n\t { int a = m();\n\t if (a > 1 || a == 1 && !cvc(k-1)) k--;\n\t }\n\t if (b[k] == 'l' && doublec(k) && m() > 1) k--;\n\t }", "static C7396f m22227a() {\n return C7444g.f16350k0;\n }", "public static C6836f m21266a() {\n return f19462a;\n }", "public static C2457h m9031a() {\n return f6748a;\n }", "C1458cs mo7613iS();", "public final String mo27137e() {\n return this.f19367h;\n }", "private static boolean m55561ua(int i) {\n return i == 6;\n }", "private static long m26011b(Context context) {\n if (f26945h == null) {\n long j = 0;\n if (context == null) {\n return 0;\n }\n if (m26010a(context)) {\n j = C10310f5.m26109a(context.getContentResolver(), \"android_id\", 0);\n }\n f26945h = Long.valueOf(j);\n }\n return f26945h.longValue();\n }", "public static asw m47155c() {\n return zzfkz;\n }" ]
[ "0.6433805", "0.6410801", "0.60625434", "0.598963", "0.5885069", "0.5784108", "0.5712066", "0.56523687", "0.5641288", "0.5639368", "0.5617008", "0.5607149", "0.55989873", "0.5594218", "0.55846125", "0.5528975", "0.5525517", "0.5484456", "0.54840845", "0.54597527", "0.5444652", "0.54353946", "0.54345864", "0.54083157", "0.54012334", "0.5391985", "0.53809345", "0.53690434", "0.53678644", "0.53573275", "0.53554636", "0.53255635", "0.5323201", "0.5309024", "0.530826", "0.5297816", "0.52837735", "0.5274383", "0.5273747", "0.52618754", "0.5249421", "0.52483416", "0.5246029", "0.5238306", "0.5237693", "0.52205825", "0.5219336", "0.5213329", "0.51956564", "0.5192466", "0.5191235", "0.5181927", "0.5172211", "0.5168961", "0.51674336", "0.5159018", "0.5156749", "0.5150369", "0.5150198", "0.51463264", "0.51448196", "0.51388973", "0.5132023", "0.5126464", "0.5120942", "0.51191026", "0.51188195", "0.5101663", "0.5085586", "0.5082894", "0.50810176", "0.5072518", "0.50718087", "0.5070567", "0.506754", "0.5065559", "0.5059626", "0.5059306", "0.5059205", "0.50585675", "0.5058495", "0.5058034", "0.5048531", "0.5048292", "0.5042402", "0.504108", "0.5037838", "0.5034102", "0.50312024", "0.5028553", "0.50285006", "0.5022472", "0.50171083", "0.5013296", "0.50099057", "0.5005975", "0.5005267", "0.50044304", "0.5000379", "0.49994797", "0.49958745" ]
0.0
-1
/ 641: / 642:
public DataTable getDtDetalleIVAFacturaProveedorSRI() /* 643: */ { /* 644:718 */ return this.dtDetalleIVAFacturaProveedorSRI; /* 645: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo25957a(long j, long j2);", "void mo64942a(String str, long j, long j2);", "public void mo9256h(int i, int i2) {\n }", "private int mediePixeli(int pixel1, int pixel2) {\n\t return (int) (((((pixel1) ^ (pixel2)) & 0xfffefefeL) >> 1) + ((pixel1) & (pixel2)));\n\t }", "public void method_2191(class_689 var1, byte var2) {\r\n class_1657 var10000 = this.method_2256();\r\n class_283 var10002 = new class_283;\r\n var10002.method_1635(var1, var2);\r\n var10000.method_9120(var1, var10002);\r\n }", "public void method_237(int var1, byte[] var2) {\n boolean var11 = field_759;\n int[] var3 = this.spritePixels[var1] = new int[10200];\n this.field_736[var1] = 255;\n this.field_737[var1] = 40;\n this.field_738[var1] = 0;\n this.field_739[var1] = 0;\n this.spriteWidthFull[var1] = 255;\n this.field_741[var1] = 40;\n this.field_742[var1] = false;\n int var4 = 0;\n int var5 = 1;\n int var6 = 0;\n int var7;\n int var8;\n if(var11 || var6 < 255) {\n do {\n var7 = var2[var5++] & 255;\n var8 = 0;\n if(var11) {\n var3[var6++] = var4;\n ++var8;\n }\n\n while(var8 < var7) {\n var3[var6++] = var4;\n ++var8;\n }\n\n var4 = 16777215 - var4;\n } while(var6 < 255);\n }\n\n var7 = 1;\n if(var11 || var7 < 40) {\n do {\n var8 = 0;\n if(!var11 && var8 >= 255) {\n ++var7;\n } else {\n do {\n int var9 = var2[var5++] & 255;\n int var10 = 0;\n if(var11) {\n var3[var6] = var3[var6 - 255];\n ++var6;\n ++var8;\n ++var10;\n }\n\n while(var10 < var9) {\n var3[var6] = var3[var6 - 255];\n ++var6;\n ++var8;\n ++var10;\n }\n\n if(var8 < 255) {\n var3[var6] = 16777215 - var3[var6 - 255];\n ++var6;\n ++var8;\n }\n } while(var8 < 255);\n\n ++var7;\n }\n } while(var7 < 40);\n\n }\n }", "void mo54410a(int i, int i2, long j);", "public void mo9255g(int i, int i2) {\n }", "public void mo9257i(int i, int i2) {\n }", "void mo34676dd(int i, int i2);", "void m15861b(int i, int i2);", "public void mo9223a(long j, int i, int i2) {\n }", "void mo34684de(int i, int i2);", "public int method_271(String var1, int var2) {\n boolean var6 = field_759;\n int var3 = 0;\n byte[] var4 = field_748[var2];\n int var5 = 0;\n if(!var6 && var5 >= var1.length()) {\n return var3;\n } else {\n do {\n label42: {\n if(var1.charAt(var5) == 64 && var5 + 4 < var1.length() && var1.charAt(var5 + 4) == 64) {\n var5 += 4;\n if(!var6) {\n break label42;\n }\n }\n\n if(var1.charAt(var5) == 126 && var5 + 4 < var1.length() && var1.charAt(var5 + 4) == 126) {\n var5 += 4;\n if(!var6) {\n break label42;\n }\n }\n\n var3 += var4[field_749[var1.charAt(var5)] + 7];\n }\n\n ++var5;\n } while(var5 < var1.length());\n\n return var3;\n }\n }", "void mo7444g(int i, int i2);", "void mo7308d(int i, int i2);", "public void mo5369d(int i, int i2) {\n }", "public static void main(String[] args) {\n byte b1=125;\n System.out.println(b1);\n byte b2=(byte)129;\n System.out.println(b2);\t\t\n\t}", "void m15859a(int i, int i2);", "private void method_262(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14, int var15, int var16, int var17) {\n boolean var33 = field_759;\n int var21 = var13 >> 16 & 255;\n int var22 = var13 >> 8 & 255;\n int var23 = var13 & 255;\n int var24 = var14 >> 16 & 255;\n int var25 = var14 >> 8 & 255;\n int var26 = var14 & 255;\n\n try {\n int var27 = var5;\n int var28 = -var9;\n if(var33 || var28 < 0) {\n do {\n int var29 = (var6 >> 16) * var12;\n int var30 = var15 >> 16;\n int var31 = var8;\n int var32;\n if(var30 < this.field_745) {\n var32 = this.field_745 - var30;\n var31 = var8 - var32;\n var30 = this.field_745;\n var5 += var10 * var32;\n }\n\n if(var30 + var31 >= this.field_746) {\n var32 = var30 + var31 - this.field_746;\n var31 -= var32;\n }\n\n var17 = 1 - var17;\n if(var17 != 0) {\n var32 = var30;\n if(var33 || var30 < var30 + var31) {\n do {\n var4 = var2[(var5 >> 16) + var29] & 255;\n if(var4 != 0) {\n label69: {\n var4 = var3[var4];\n int var18 = var4 >> 16 & 255;\n int var19 = var4 >> 8 & 255;\n int var20 = var4 & 255;\n if(var18 == var19 && var19 == var20) {\n var1[var32 + var7] = (var18 * var21 >> 8 << 16) + (var19 * var22 >> 8 << 8) + (var20 * var23 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n if(var18 == 255 && var19 == var20) {\n var1[var32 + var7] = (var18 * var24 >> 8 << 16) + (var19 * var25 >> 8 << 8) + (var20 * var26 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n var1[var32 + var7] = var4;\n }\n }\n\n var5 += var10;\n ++var32;\n } while(var32 < var30 + var31);\n }\n }\n\n var6 += var11;\n var5 = var27;\n var7 += this.field_723;\n var15 += var16;\n ++var28;\n } while(var28 < 0);\n\n }\n } catch (Exception var34) {\n System.out.println(\"error in transparent sprite plot routine\"); // authentic System.out.println\n }\n }", "void mo7304b(int i, int i2);", "private static void create(int num1, int num2) {\n\t\tlong result = (~(~0<<num1)) << num2;\n\t\tSystem.out.println(result);\n\t}", "void mo7445h(int i, int i2);", "public HASH512 getHash2(){return hash2;}", "void mo63039b(int i, int i2);", "public void mo5356b(int i, int i2) {\n }", "public void mo9253f(int i, int i2) {\n }", "void procedure()\n {\n try\n {\n fkey=new FileInputStream(file2);\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n keybuf= new byte[16];\n try\n {\n fkey.read(keybuf);\n z= new int[52];\n j1=0;\n i1=0;\n for(i=0;i<52;i++)\n z[i]=0;\n while( i1<8)\n {\n if((j1+1)%2==0)\n {\n z[i1]|=keybuf[j1]; // dividing 64 bit cypher block into four 16 bit registers\n\t i1++;\n }\n else\n \t {\n\t z[i1]=keybuf[j1];\n\t z[i1]<<=8;\n }\n\t j1++;\n }\n i=0;\n\t for(j1=1;j1<=5;j1++)\n\t {\n\t i++;\n\t z[i+7]=((z[i]<<9)&0xfe00)|((z[i+1]>>7)&0x1ff);\n\t z[i+8]=((z[i+1]<<9)&0xfe00)|((z[i+2]>>7)&0x1ff);\n\t z[i+9]=((z[i+2]<<9)&0xfe00)|((z[i+3]>>7)&0x1ff);\n\t z[i+10]=((z[i+3]<<9)&0xfe00)|((z[i+4]>>7)&0x1ff);\n\t z[i+11]=((z[i+4]<<9)&0xfe00)|((z[i+5]>>7)&0x1ff);\n\t z[i+12]=((z[i+5]<<9)&0xfe00)|((z[i+6]>>7)&0x1ff);\n z[i+13]=((z[i+6]<<9)&0xfe00)|((z[i-1]>>7)&0x1ff);\n\t z[i+14]=((z[i-1]<<9)&0xfe00)|((z[i]>>7)&0x1ff);\n\t i=i+7;\n\t }\n i1=41;\n\t z[48]=((z[i1]<<9)&0xfe00)|((z[i1+1]>>7)&0x1ff);\n\t z[49]=((z[i1+1]<<9)&0xfe00)|((z[i1+2]>>7)&0x1ff);\n\t z[50]=((z[i1+2]<<9)&0xfe00)|((z[i1+3]>>7)&0x1ff);\n\t z[51]=((z[i1+3]<<9)&0xfe00)|((z[i1+4]>>7)&0x1ff);\n}\ncatch(Exception e)\n{\nSystem.out.println(e);\n}\n}", "void mo7443f(int i, int i2);", "int mo1684a(byte[] bArr, int i, int i2);", "private void method_261(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14, int var15, int var16) {\n boolean var29 = field_759;\n int var20 = var13 >> 16 & 255;\n int var21 = var13 >> 8 & 255;\n int var22 = var13 & 255;\n\n try {\n int var23 = var5;\n int var24 = -var9;\n if(var29 || var24 < 0) {\n do {\n int var25 = (var6 >> 16) * var12;\n int var26 = var14 >> 16;\n int var27 = var8;\n int var28;\n if(var26 < this.field_745) {\n var28 = this.field_745 - var26;\n var27 = var8 - var28;\n var26 = this.field_745;\n var5 += var10 * var28;\n }\n\n if(var26 + var27 >= this.field_746) {\n var28 = var26 + var27 - this.field_746;\n var27 -= var28;\n }\n\n var16 = 1 - var16;\n if(var16 != 0) {\n var28 = var26;\n if(var29 || var26 < var26 + var27) {\n do {\n var4 = var2[(var5 >> 16) + var25] & 255;\n if(var4 != 0) {\n label33: {\n var4 = var3[var4];\n int var17 = var4 >> 16 & 255;\n int var18 = var4 >> 8 & 255;\n int var19 = var4 & 255;\n if(var17 == var18 && var18 == var19) {\n var1[var28 + var7] = (var17 * var20 >> 8 << 16) + (var18 * var21 >> 8 << 8) + (var19 * var22 >> 8);\n if(!var29) {\n break label33;\n }\n }\n\n var1[var28 + var7] = var4;\n }\n }\n\n var5 += var10;\n ++var28;\n } while(var28 < var26 + var27);\n }\n }\n\n var6 += var11;\n var5 = var23;\n var7 += this.field_723;\n var14 += var15;\n ++var24;\n } while(var24 < 0);\n\n }\n } catch (Exception var30) {\n System.out.println(\"error in transparent sprite plot routine\"); // authentic System.out.println\n }\n }", "private static String m12563a(String str, String str2) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 3 + String.valueOf(str2).length());\n sb.append(str);\n sb.append(\"|S|\");\n sb.append(str2);\n return sb.toString();\n }", "public static void main(String[] args) throws UnsupportedEncodingException {\n var res2 = old.MD4.MD4.hash(\"The quick brown fox jumps over the lazy dogshdkasjhflksdjhflkasjhdflkjshdfkljasdhlfkjajhjhhldfkjashldf\".getBytes());\n// var res1 = cyph.digest(\"\".getBytes());\n\n System.out.println(encodeHexString(res2));\n// System.out.println(new BitUtils(res1).getNextLong(25) + \"\\n\");\n\n System.exit(0);\n\n var secPreimg8 = secondPreimage(\"test\", 8, 1000);\n System.out.println(\"Second preimage avg over 8 bits: \" + secPreimg8);\n dumpData(\"preimg.txt\", true, \"8 \" + secPreimg8 + \"\\n\");\n\n var secPreimg12 = secondPreimage(\"test\", 12, 1000);\n System.out.println(\"Second preimage avg over 12 bits: \" + secPreimg12);\n dumpData(\"preimg.txt\", false, \"12 \" + secPreimg12 + \"\\n\");\n\n var secPreimg16 = secondPreimage(\"test\", 16, 500);\n System.out.println(\"Second preimage avg over 16 bits: \" + secPreimg16);\n dumpData(\"preimg.txt\", false, \"16 \" + secPreimg16 + \"\\n\");\n\n var secPreimg20 = secondPreimage(\"test\", 20, 50);\n System.out.println(\"Second preimage avg over 20 bits: \" + secPreimg20);\n dumpData(\"preimg.txt\", false, \"20 \" + secPreimg20 + \"\\n\");\n\n var secPreimg24 = secondPreimage(\"test\", 24, 10);\n System.out.println(\"Second preimage avg over 24 bits: \" + secPreimg24);\n dumpData(\"preimg.txt\", false, \"24 \" + secPreimg24 + \"\\n\");\n\n var coll8 = collisions(8, 1000);\n System.out.println(\"\\nCollisions for 8 bits: \" + coll8);\n dumpData(\"coll.txt\", true, \"8 \" + coll8 + \"\\n\");\n\n var coll12 = collisions(12, 1000);\n System.out.println(\"Collisions for 12 bits: \" + coll12);\n dumpData(\"coll.txt\", false, \"12 \" + coll12 + \"\\n\");\n\n var coll16 = collisions(16, 1000);\n System.out.println(\"Collisions for 16 bits: \" + coll16);\n dumpData(\"coll.txt\", false, \"16 \" + coll16 + \"\\n\");\n\n var coll20 = collisions(20, 1000);\n System.out.println(\"Collisions for 20 bits: \" + coll20);\n dumpData(\"coll.txt\", false, \"20 \" + coll20 + \"\\n\");\n\n var coll24 = collisions(24, 1000);\n System.out.println(\"Collisions for 24 bits: \" + coll24);\n dumpData(\"coll.txt\", false, \"24 \" + coll24 + \"\\n\");\n }", "public arm a(int paramInt1, int paramInt2)\r\n/* 18: */ {\r\n/* 19:32 */ return this.b[(paramInt1 & 0xF | (paramInt2 & 0xF) << 4)];\r\n/* 20: */ }", "public final void mo37746fM(int i, int i2) {\n }", "public static void main(String[] args) {\n// String before1 = \"27e80000\";\n// String before1 = \"715b00000\";\n String before1 = \"715b00000\";\n\n long after1 = Long.parseLong(before1, 16);\n System.out.println(after1);\n\n// String before2 = \"28d80000\";\n// String before2 = \"7c0000000\";\n// String before2 = \"71db80000\";\n String before2 = \"720580000\";\n long after2 = Long.parseLong(before2, 16);\n System.out.println(after2);\n\n long size = (after2 - after1) / 1024 / 1024;\n System.out.println(\"Size: \" + size + \"M\");\n }", "public static int method_234(int var0, int var1, int var2) {\n return (var0 << 16) + (var1 << 8) + var2;\n }", "public long getSha2();", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "void mo7306c(int i, int i2);", "public void method_197(class_1549 var1, long var2) {}", "private void method_2242() {\r\n this.field_1824.method_6863(0);\r\n this.field_1824.method_6861(false);\r\n this.field_1824.method_6859(0);\r\n this.field_1824.method_6857(false);\r\n }", "boolean mo56158b(int i, int i2);", "public static java.lang.String m136432d(java.lang.String r2) {\n /*\n r0 = 0\n java.io.FileInputStream r1 = new java.io.FileInputStream // Catch:{ Exception -> 0x0033, all -> 0x002b }\n r1.<init>(r2) // Catch:{ Exception -> 0x0033, all -> 0x002b }\n int r2 = r1.read() // Catch:{ Exception -> 0x0029, all -> 0x0027 }\n int r2 = r2 << 8\n int r0 = r1.read() // Catch:{ Exception -> 0x0029, all -> 0x0027 }\n r2 = r2 ^ r0\n int r2 = r2 << 8\n int r0 = r1.read() // Catch:{ Exception -> 0x0029, all -> 0x0027 }\n r2 = r2 ^ r0\n int r2 = r2 << 8\n int r0 = r1.read() // Catch:{ Exception -> 0x0029, all -> 0x0027 }\n r2 = r2 ^ r0\n java.lang.String r2 = java.lang.Integer.toHexString(r2) // Catch:{ Exception -> 0x0029, all -> 0x0027 }\n r1.close() // Catch:{ IOException -> 0x0026 }\n L_0x0026:\n return r2\n L_0x0027:\n r2 = move-exception\n goto L_0x002d\n L_0x0029:\n r0 = r1\n goto L_0x0033\n L_0x002b:\n r2 = move-exception\n r1 = r0\n L_0x002d:\n if (r1 == 0) goto L_0x0032\n r1.close() // Catch:{ IOException -> 0x0032 }\n L_0x0032:\n throw r2\n L_0x0033:\n if (r0 == 0) goto L_0x0038\n r0.close() // Catch:{ IOException -> 0x0038 }\n L_0x0038:\n java.lang.String r2 = \"\"\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.utils.C42973bg.m136432d(java.lang.String):java.lang.String\");\n }", "public static void main(String[] args) {\n System.out.println(32>>2);// 0010 0000>>2= 0000 1000=8\n\n System.out.println(32/4);//32除以2的2次幂\n\n System.out.println(8<<2);// 0000 1000<<2=0010 0000=32\n System.out.println(8*4);//8 乘以2的2次幂\n\n System.out.println(2<<2);//2*2(2)=8\n\n System.out.println(-32>>>2);//32除以2的2次幂\n\n\n }", "private static String m2380a(byte[] bArr, byte[] bArr2) {\n byte[] bArr3 = new byte[(((bArr.length + 2) / 3) * 4)];\n int length = bArr.length - (bArr.length % 3);\n int i = 0;\n for (int i2 = 0; i2 < length; i2 += 3) {\n int i3 = i + 1;\n bArr3[i] = bArr2[(bArr[i2] & 255) >> 2];\n int i4 = i3 + 1;\n int i5 = i2 + 1;\n bArr3[i3] = bArr2[((bArr[i2] & 3) << 4) | ((bArr[i5] & 255) >> 4)];\n int i6 = i4 + 1;\n int i7 = i2 + 2;\n bArr3[i4] = bArr2[((bArr[i5] & 15) << 2) | ((bArr[i7] & 255) >> 6)];\n i = i6 + 1;\n bArr3[i6] = bArr2[bArr[i7] & 63];\n }\n switch (bArr.length % 3) {\n case 1:\n int i8 = i + 1;\n bArr3[i] = bArr2[(bArr[length] & 255) >> 2];\n int i9 = i8 + 1;\n bArr3[i8] = bArr2[(bArr[length] & 3) << 4];\n int i10 = i9 + 1;\n bArr3[i9] = 61;\n bArr3[i10] = 61;\n break;\n case 2:\n int i11 = i + 1;\n bArr3[i] = bArr2[(bArr[length] & 255) >> 2];\n int i12 = i11 + 1;\n int i13 = length + 1;\n bArr3[i11] = bArr2[((bArr[length] & 3) << 4) | ((bArr[i13] & 255) >> 4)];\n int i14 = i12 + 1;\n bArr3[i12] = bArr2[(bArr[i13] & 15) << 2];\n bArr3[i14] = 61;\n break;\n }\n try {\n return new String(bArr3, \"US-ASCII\");\n } catch (UnsupportedEncodingException e) {\n throw new AssertionError(e);\n }\n }", "public void mo115203b(int i, int i2) {\n }", "public abstract long mo20901UQ();", "public abstract void mo13593a(byte[] bArr, int i, int i2);", "public abstract void mo9816d(int i, int i2);", "void mo1329d(String str, String str2);", "public final byte[] mo5961g(String str, String str2) {\n try {\n if (!TextUtils.isEmpty(str)) {\n if (!TextUtils.isEmpty(str2)) {\n byte[] bArr = new byte[16];\n new SecureRandom().nextBytes(bArr);\n Cipher instance = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n instance.init(1, new SecretKeySpec(Base64.decode(str2, 2), \"AES\"), new IvParameterSpec(bArr));\n return m5292a(bArr, instance.doFinal(str.getBytes(C2793C.UTF8_NAME)));\n }\n }\n return null;\n } catch (Throwable unused) {\n return null;\n }\n }", "public abstract void mo4380b(byte[] bArr, int i, int i2);", "static String m60358a(String str, String str2) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 3 + String.valueOf(str2).length());\n sb.append(str);\n sb.append(\"|S|\");\n sb.append(str2);\n return sb.toString();\n }", "void mo63037a(int i, int i2);", "public HASH256 getHash1(){return hash1;}", "private static byte[] m34877a(byte[] bArr, int i, int i2, byte[] bArr2, int i3) {\n int i4 = 0;\n int i5 = (i2 > 0 ? (bArr[i] << 24) >>> 8 : 0) | (i2 > 1 ? (bArr[i + 1] << 24) >>> 16 : 0);\n if (i2 > 2) {\n i4 = (bArr[i + 2] << 24) >>> 24;\n }\n int i6 = i5 | i4;\n if (i2 == 1) {\n byte[] bArr3 = f27334a;\n bArr2[i3] = bArr3[i6 >>> 18];\n bArr2[i3 + 1] = bArr3[(i6 >>> 12) & 63];\n int i7 = i3 + 3;\n bArr2[i3 + 2] = 61;\n bArr2[i7] = 61;\n return bArr2;\n } else if (i2 == 2) {\n byte[] bArr4 = f27334a;\n bArr2[i3] = bArr4[i6 >>> 18];\n bArr2[i3 + 1] = bArr4[(i6 >>> 12) & 63];\n bArr2[i3 + 2] = bArr4[(i6 >>> 6) & 63];\n bArr2[i3 + 3] = 61;\n return bArr2;\n } else if (i2 != 3) {\n return bArr2;\n } else {\n byte[] bArr5 = f27334a;\n bArr2[i3] = bArr5[i6 >>> 18];\n bArr2[i3 + 1] = bArr5[(i6 >>> 12) & 63];\n bArr2[i3 + 2] = bArr5[(i6 >>> 6) & 63];\n bArr2[i3 + 3] = bArr5[i6 & 63];\n return bArr2;\n }\n }", "void mo17011b(int i, int i2);", "int pack(int b2, int s1, int b0)\n {\n return (b2 << 24) | (s1 << 8) | b0;\n }", "abstract void mo4384c(byte[] bArr, int i, int i2);", "byte[] mo38566a();", "private static String m12564b(String str, String str2, String str3) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 4 + String.valueOf(str2).length() + String.valueOf(str3).length());\n sb.append(str);\n sb.append(\"|T|\");\n sb.append(str2);\n sb.append(\"|\");\n sb.append(str3);\n return sb.toString();\n }", "public void putLongInMemory(long number1, long number2){\n\t\tif (number1 % 8L != 0L){\n\t\t\tSystem.out.println(\"Wrong number for access in memory\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\ttry{\n\t\t\tint i = (int)(number2 & 0xFFFFFFFF); //bitwise AND to get the integer\n\t\t\tint j = (int)(number2 >> 32 & 0xFFFFFFFF); //shift 32 bits to right and AND bitwise to get the second integer\n\t\t\t//put the numbers in memory big endian\n\t\t\tmemory[((int)number1 / 4)] = i;\n\t\t\tmemory[(((int)number1 + 4) / 4)] = j;\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private boolean method_261(int var1, int var2) {\n method_265(var1);\n return this.method_263(var2 + var1 * 8);\n }", "void mo8445a(int i, String str, int i2, byte[] bArr);", "public static void main(String[] args) {\n\t\tSystem.out.println(new NO_190().reverseBits(43261596));\r\n\t\tSystem.out.println(new NO_190().reverseBits2(43261596));\r\n\t\t\r\n//\t\tSystem.out.println(1 << 31);\r\n\t}", "void mo16690b(T t, T t2);", "public abstract void mo4381c(int i, int i2);", "private int hash2(T key) { //first two char length\r\n\r\n if(key.toString().length() ==1){ //in the case that the key is only one char long\r\n return key.toString().charAt(0)%newTable.length;\r\n }\r\n return (26 * key.toString().charAt(0)+key.toString().charAt(1))% newTable.length;\r\n\r\n }", "void mo54407a(int i, int i2);", "public abstract long mo9746k();", "private int m14712a(int i, int i2, int i3) {\n int i4 = 0;\n int i5 = 0;\n int i6 = 0;\n int i7 = 0;\n int i8 = 0;\n for (int i9 = i; i9 < this.f10966u + i; i9++) {\n byte[] bArr = this.f10957l;\n if (i9 >= bArr.length || i9 >= i2) {\n break;\n }\n int i10 = this.f10946a[bArr[i9] & 255];\n if (i10 != 0) {\n i4 += (i10 >> 24) & 255;\n i5 += (i10 >> 16) & 255;\n i6 += (i10 >> 8) & 255;\n i7 += i10 & 255;\n i8++;\n }\n }\n int i11 = i + i3;\n for (int i12 = i11; i12 < this.f10966u + i11; i12++) {\n byte[] bArr2 = this.f10957l;\n if (i12 >= bArr2.length || i12 >= i2) {\n break;\n }\n int i13 = this.f10946a[bArr2[i12] & 255];\n if (i13 != 0) {\n i4 += (i13 >> 24) & 255;\n i5 += (i13 >> 16) & 255;\n i6 += (i13 >> 8) & 255;\n i7 += i13 & 255;\n i8++;\n }\n }\n if (i8 == 0) {\n return 0;\n }\n return ((i4 / i8) << 24) | ((i5 / i8) << 16) | ((i6 / i8) << 8) | (i7 / i8);\n }", "int mo5867a(String str, long j);", "void mo56156a(int i, int i2);", "private void m9223id(int i, int i2) {\n this.AAJ.writeByte((i2 << 5) | i);\n }", "int mo9690a(int i, int i2);", "C3197iu mo30281b(long j);", "public static String m18352a(int i, int i2) {\n String b = m18367b(i, i2);\n if (b == null) {\n return null;\n }\n return \"bytes=\" + b;\n }", "void mo1334i(String str, String str2);", "void mo7438a(int i, int i2);", "private static byte[] m5292a(byte[] bArr, byte[] bArr2) {\n int i = 0;\n byte[] bArr3 = new byte[(bArr2.length + 16)];\n while (i < bArr3.length) {\n bArr3[i] = i < 16 ? bArr[i] : bArr2[i - 16];\n i++;\n }\n return bArr3;\n }", "int mo23347d(String str, String str2);", "private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }", "public static void main(String[] args) {\n\t\tint num4=0B11111111111111111111111111111011;\r\n\t\tbyte num1=0B00000101;\r\n\t\tint num2=0B1111111111111011;\r\n\t\tSystem.out.println(num4);\r\n\t\tSystem.out.println((short)num2);\r\n\t}", "public static void main(String[] args) {\n\t\tint a = 103217;\n\t\tSystem.out.println(AssortedMethods.toFullBinaryString(a));\n\t\tint b = 13;\n\t\tSystem.out.println(AssortedMethods.toFullBinaryString(b));\t\t\n\t\tint c = updateBits(a, b, 4, 12);\n\t\tSystem.out.println(AssortedMethods.toFullBinaryString(c));\n\t\t\t\n\t}", "private static int combine(char[] paramArrayOfChar, int paramInt1, int paramInt2, int[] paramArrayOfInt)\n/* */ {\n/* 1243 */ if (paramArrayOfInt.length < 2) {\n/* 1244 */ throw new IllegalArgumentException();\n/* */ }\n/* */ int i;\n/* */ for (;;)\n/* */ {\n/* 1249 */ i = paramArrayOfChar[(paramInt1++)];\n/* 1250 */ if (i >= paramInt2) {\n/* */ break;\n/* */ }\n/* 1253 */ paramInt1 += ((paramArrayOfChar[paramInt1] & 0x8000) != 0 ? 2 : 1);\n/* */ }\n/* */ \n/* */ \n/* 1257 */ if ((i & 0x7FFF) == paramInt2)\n/* */ {\n/* 1259 */ int j = paramArrayOfChar[paramInt1];\n/* */ \n/* */ \n/* 1262 */ i = (int)(0xFFFFFFFF & (j & 0x2000) + 1);\n/* */ \n/* */ \n/* */ int k;\n/* */ \n/* 1267 */ if ((j & 0x8000) != 0) {\n/* 1268 */ if ((j & 0x4000) != 0)\n/* */ {\n/* 1270 */ j = (int)(0xFFFFFFFF & (j & 0x3FF | 0xD800));\n/* 1271 */ k = paramArrayOfChar[(paramInt1 + 1)];\n/* */ }\n/* */ else {\n/* 1274 */ j = paramArrayOfChar[(paramInt1 + 1)];\n/* 1275 */ k = 0;\n/* */ }\n/* */ }\n/* */ else {\n/* 1279 */ j &= 0x1FFF;\n/* 1280 */ k = 0;\n/* */ }\n/* 1282 */ paramArrayOfInt[0] = j;\n/* 1283 */ paramArrayOfInt[1] = k;\n/* 1284 */ return i;\n/* */ }\n/* */ \n/* 1287 */ return 0;\n/* */ }", "void m63698a() {\n m63702c();\n m63701b();\n }", "public boolean mo59194a(long j, long j2) {\n return false;\n }", "public final void mo4383c(long j) {\n try {\n byte[] bArr = this.f20653b;\n int i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) j);\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 8));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 16));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 24));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 32));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 40));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 48));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 56));\n } catch (long j2) {\n throw new zzc(String.format(\"Pos: %d, limit: %d, len: %d\", new Object[]{Integer.valueOf(this.f20656e), Integer.valueOf(this.f20655d), Integer.valueOf(1)}), j2);\n }\n }", "public final void mo9216d(String str, String str2, int i, int i2) {\n }", "private ByteBuffer passTwo() {\r\n\t\t// int hiAddress = ((((instructionCounter.getCurrentLocation() - 1) / SIXTEEN) + 2) * SIXTEEN) - 1;\r\n\t\tint hiAddress = (instructionCounter.getCurrentLocation() - 1) | 0X0F;\r\n\t\tByteBuffer memoryImage = ByteBuffer.allocate(hiAddress + 1);\r\n\r\n\t\tint lowestLocationSet = instructionCounter.getLowestLocationSet();\r\n\t\tinstructionCounter.reset(lowestLocationSet);\r\n\t\tinstructionCounter.setCurrentLocation(lowestLocationSet);\r\n\t\tint currentLocation;\r\n\t\tString instructionImage;\r\n\t\tSourceLineParts sourceLineParts;\r\n\r\n\t\twhile (!allLineParts.isEmpty()) {\r\n\t\t\tinstructionImage = EMPTY_STRING;\r\n\r\n\t\t\tcurrentLocation = instructionCounter.getCurrentLocation();\r\n\t\t\tsourceLineParts = allLineParts.poll();\r\n\r\n\t\t\tif (sourceLineParts.hasInstruction()) {\r\n\t\t\t\tinstructionImage = setMemoryBytesForInstruction(sourceLineParts);\r\n\t\t\t} else if (sourceLineParts.hasDirective()) {\r\n\t\t\t\tinstructionImage = setMemoryBytesForDirective(sourceLineParts);\r\n\t\t\t} // if\r\n\t\t\tmakeListing(currentLocation, instructionImage, sourceLineParts);\r\n\t\t\tif (!instructionImage.equals(EMPTY_STRING)) {\r\n\t\t\t\tbuildMemoryImage(currentLocation, instructionImage, memoryImage);\r\n\t\t\t} // if\r\n\t\t} // while\r\n\r\n\t\ttpListing.setCaretPosition(0);\r\n\t\tmakeXrefListing();\r\n\t\t// makeMemoryFile(memoryImage);\r\n\t\treturn memoryImage;\r\n\t}", "Info mo7564ix();", "public abstract long mo9748m();", "public int mo12721a(int i, int i2) {\n int i3;\n int i4 = i & 3158064;\n if (i4 == 0) {\n return i;\n }\n int i5 = i & (~i4);\n if (i2 == 0) {\n i3 = i4 >> 2;\n } else {\n int i6 = i4 >> 1;\n i5 |= -3158065 & i6;\n i3 = (i6 & 3158064) >> 2;\n }\n return i5 | i3;\n }", "@Test\n\tpublic void testReverseBits1() {\n\t sut.reverseBits(65536);\n\t\t// ASSERT.that(sut.addBinary(i1, i2)).is(o);\n\t}", "protected void setP1P2(byte[] p1p2) {\n\tsetP1(p1p2[0]);\n\tsetP2(p1p2[1]);\n }", "public int getBlockTextureFromSideAndMetadata(int par1, int par2)\n {\n par2 &= 3;\n return par2 == 1 ? 63 : (par2 == 2 ? 79 : (par2 == 3 ? 30 : super.getBlockTextureFromSideAndMetadata(par1, par2)));\n }", "public abstract long mo24409b();", "public int hash2(int h, int m) {\r\n//\t\tint m = this.capability>>1 + 1;\r\n\t\treturn 1+(h%(m-1));\r\n\t}", "public void m21278OooO00o(int i, int i2) {\n int i3 = i >>> 5;\n int i4 = i & 31;\n int i5 = 32 - i4;\n int i6 = i - i2;\n int i7 = i6 >>> 5;\n int i8 = 32 - (i6 & 31);\n int i9 = ((i << 1) - 2) >>> 5;\n while (i9 > i3) {\n int[] iArr = this.f22759OooO00o;\n long j = 4294967295L & ((long) iArr[i9]);\n int i10 = i9 - i3;\n int i11 = i10 - 1;\n iArr[i11] = iArr[i11] ^ ((int) (j << i5));\n iArr[i10] = (int) (((long) iArr[i10]) ^ (j >>> (32 - i5)));\n int i12 = i9 - i7;\n int i13 = i12 - 1;\n iArr[i13] = iArr[i13] ^ ((int) (j << i8));\n iArr[i12] = (int) ((j >>> (32 - i8)) ^ ((long) iArr[i12]));\n iArr[i9] = 0;\n i9--;\n i3 = i3;\n }\n int[] iArr2 = this.f22759OooO00o;\n long j2 = (4294967295 << i4) & ((long) iArr2[i3]) & 4294967295L;\n iArr2[0] = (int) (((long) iArr2[0]) ^ (j2 >>> (32 - i5)));\n int i14 = i3 - i7;\n int i15 = i14 - 1;\n if (i15 >= 0) {\n iArr2[i15] = iArr2[i15] ^ ((int) (j2 << i8));\n }\n int[] iArr3 = this.f22759OooO00o;\n iArr3[i14] = (int) ((j2 >>> (32 - i8)) ^ ((long) iArr3[i14]));\n iArr3[i3] = iArr3[i3] & OooO0OO[i4];\n this.f22760OooO0O0 = ((i - 1) >>> 5) + 1;\n this.f22758OooO00o = i;\n }", "private static int m150326a(long j, long j2) {\n return UnsignedUtils.m150379a(j, j2);\n }" ]
[ "0.63330984", "0.6040165", "0.6019875", "0.6010313", "0.583077", "0.5773191", "0.57361263", "0.57345814", "0.57340497", "0.57268435", "0.5702502", "0.56762886", "0.56343067", "0.56328124", "0.56164616", "0.56151766", "0.5602784", "0.5602251", "0.55922186", "0.55772483", "0.55744356", "0.55658925", "0.55384076", "0.55303663", "0.5515439", "0.549512", "0.5494887", "0.5488942", "0.5480689", "0.546765", "0.546284", "0.5459232", "0.5454099", "0.5452955", "0.5450173", "0.5435752", "0.54296255", "0.54133976", "0.5413363", "0.5403162", "0.5401227", "0.5393685", "0.5390277", "0.53816605", "0.5380874", "0.5380091", "0.5371869", "0.53666943", "0.53641415", "0.5362699", "0.5361857", "0.53611803", "0.535805", "0.53579223", "0.53515637", "0.5337422", "0.5334239", "0.5332269", "0.5330625", "0.5326305", "0.5321739", "0.5318314", "0.5313593", "0.5312003", "0.5299276", "0.52986884", "0.5296012", "0.5293104", "0.5284517", "0.528048", "0.5278261", "0.52747446", "0.5273593", "0.52705294", "0.5266836", "0.5259987", "0.52542204", "0.52462316", "0.5241284", "0.52406585", "0.5234901", "0.5233519", "0.5233144", "0.5232308", "0.5227712", "0.5226035", "0.52248514", "0.5219509", "0.5219374", "0.52191097", "0.52083224", "0.52065814", "0.52058744", "0.5201496", "0.52004784", "0.5198877", "0.5197347", "0.5195644", "0.519373", "0.51930344", "0.5189055" ]
0.0
-1
/ 646: / 647:
public void setDtDetalleIVAFacturaProveedorSRI(DataTable dtDetalleIVAFacturaProveedorSRI) /* 648: */ { /* 649:722 */ this.dtDetalleIVAFacturaProveedorSRI = dtDetalleIVAFacturaProveedorSRI; /* 650: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Info mo7564ix();", "long getUnknown72();", "private static byte[] getEightBits(byte[] bits56) {\n byte[] bits64 = new byte[8];\n System.arraycopy(bits56, 0, bits64, 0, 7);\n bits64[7] = (byte) (((bits56[0] & 1) << 1) | ((bits56[1] & 1) << 2) | ((bits56[2] & 1) << 3)\n | ((bits56[3] & 1) << 4) | ((bits56[4] & 1) << 5) | ((bits56[5] & 1) << 6)\n | ((bits56[6] & 1) << 7));\n return bits64;\n }", "boolean multipleOf64(int num)\n {\n return (num & 0b111111) == 0;\n }", "private void m6556g() {\n m6561c();\n m6557h();\n m6558i();\n }", "public abstract long mo9743h();", "public abstract long mo20901UQ();", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "byte[] mo38566a();", "private void m145775e() {\n long j;\n String str;\n int i;\n if (!this.f119477j.mo115499a()) {\n if (this.f119484q != null) {\n str = \"PRAGMA cipher_page_size\";\n if (this.f119485r == null || this.f119485r.pageSize <= 0) {\n i = SQLiteGlobal.f119529a;\n } else {\n i = this.f119485r.pageSize;\n }\n j = (long) i;\n } else {\n str = \"PRAGMA page_size\";\n j = (long) SQLiteGlobal.f119529a;\n }\n if (mo115435b(str, null, null) != j) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(\"=\");\n sb.append(j);\n mo115433a(sb.toString(), null, null);\n }\n }\n }", "int getHighBitLength();", "private long m674a(byte[] bArr) {\n return ((((long) bArr[7]) & 255) << 56) | ((((long) bArr[6]) & 255) << 48) | ((((long) bArr[5]) & 255) << 40) | ((((long) bArr[4]) & 255) << 32) | ((((long) bArr[3]) & 255) << 24) | ((((long) bArr[2]) & 255) << 16) | ((((long) bArr[1]) & 255) << 8) | (255 & ((long) bArr[0]));\n }", "public abstract long mo9746k();", "public abstract long mo13681c();", "private static byte[] m24635a(Context context, String str) {\n String f = C6014b.m23956f();\n String string = Secure.getString(context.getContentResolver(), \"android_id\");\n String substring = str.substring(0, Math.min(8, str.length() - 1));\n StringBuilder sb = new StringBuilder();\n sb.append(substring);\n sb.append(f.substring(0, Math.min(8, f.length() - 1)));\n String sb2 = sb.toString();\n StringBuilder sb3 = new StringBuilder();\n sb3.append(sb2);\n sb3.append(string.substring(0, Math.min(8, string.length() - 1)));\n String sb4 = sb3.toString();\n if (sb4.length() != 24) {\n StringBuilder sb5 = new StringBuilder();\n sb5.append(sb4);\n sb5.append(str.substring(8, 24 - sb4.length()));\n sb4 = sb5.toString();\n }\n return sb4.getBytes();\n }", "public static int m8655e() {\n return 8;\n }", "private void m145780j() {\n String str;\n if (!this.f119477j.mo115499a() && !this.f119478k) {\n if ((this.f119477j.f119578d & 536870912) != 0) {\n str = \"WAL\";\n } else {\n str = \"PERSIST\";\n }\n m145773d(str);\n }\n }", "private static int readEscapedHexString(java.lang.String r6, int r7, int r8, java.lang.StringBuilder r9) {\n /*\n int r0 = r8 - r7\n java.nio.ByteBuffer r0 = java.nio.ByteBuffer.allocate(r0)\n L_0x0006:\n if (r7 > r8) goto L_0x00f6\n int r1 = r7 + 1\n char r7 = r6.charAt(r7)\n r2 = 2\n r3 = 0\n r4 = 1\n switch(r7) {\n case 48: goto L_0x0068;\n case 49: goto L_0x0065;\n case 50: goto L_0x0062;\n case 51: goto L_0x005f;\n case 52: goto L_0x005c;\n case 53: goto L_0x0059;\n case 54: goto L_0x0056;\n case 55: goto L_0x0053;\n case 56: goto L_0x0050;\n case 57: goto L_0x004d;\n default: goto L_0x0014;\n }\n L_0x0014:\n switch(r7) {\n case 65: goto L_0x004a;\n case 66: goto L_0x0047;\n case 67: goto L_0x0044;\n case 68: goto L_0x0041;\n case 69: goto L_0x003e;\n case 70: goto L_0x003b;\n default: goto L_0x0017;\n }\n L_0x0017:\n switch(r7) {\n case 97: goto L_0x004a;\n case 98: goto L_0x0047;\n case 99: goto L_0x0044;\n case 100: goto L_0x0041;\n case 101: goto L_0x003e;\n case 102: goto L_0x003b;\n default: goto L_0x001a;\n }\n L_0x001a:\n com.unboundid.ldap.sdk.LDAPException r7 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r8 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r9 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_INVALID_HEX_CHAR\n java.lang.Object[] r0 = new java.lang.Object[r2]\n int r1 = r1 - r4\n char r6 = r6.charAt(r1)\n java.lang.Character r6 = java.lang.Character.valueOf(r6)\n r0[r3] = r6\n java.lang.Integer r6 = java.lang.Integer.valueOf(r1)\n r0[r4] = r6\n java.lang.String r6 = r9.get(r0)\n r7.<init>((com.unboundid.ldap.sdk.ResultCode) r8, (java.lang.String) r6)\n throw r7\n L_0x003b:\n r7 = -16\n goto L_0x0069\n L_0x003e:\n r7 = -32\n goto L_0x0069\n L_0x0041:\n r7 = -48\n goto L_0x0069\n L_0x0044:\n r7 = -64\n goto L_0x0069\n L_0x0047:\n r7 = -80\n goto L_0x0069\n L_0x004a:\n r7 = -96\n goto L_0x0069\n L_0x004d:\n r7 = -112(0xffffffffffffff90, float:NaN)\n goto L_0x0069\n L_0x0050:\n r7 = -128(0xffffffffffffff80, float:NaN)\n goto L_0x0069\n L_0x0053:\n r7 = 112(0x70, float:1.57E-43)\n goto L_0x0069\n L_0x0056:\n r7 = 96\n goto L_0x0069\n L_0x0059:\n r7 = 80\n goto L_0x0069\n L_0x005c:\n r7 = 64\n goto L_0x0069\n L_0x005f:\n r7 = 48\n goto L_0x0069\n L_0x0062:\n r7 = 32\n goto L_0x0069\n L_0x0065:\n r7 = 16\n goto L_0x0069\n L_0x0068:\n r7 = 0\n L_0x0069:\n if (r1 > r8) goto L_0x00db\n int r5 = r1 + 1\n char r1 = r6.charAt(r1)\n switch(r1) {\n case 48: goto L_0x00c8;\n case 49: goto L_0x00c5;\n case 50: goto L_0x00c2;\n case 51: goto L_0x00bf;\n case 52: goto L_0x00bc;\n case 53: goto L_0x00b9;\n case 54: goto L_0x00b6;\n case 55: goto L_0x00b3;\n case 56: goto L_0x00b0;\n case 57: goto L_0x00ad;\n default: goto L_0x0074;\n }\n L_0x0074:\n switch(r1) {\n case 65: goto L_0x00aa;\n case 66: goto L_0x00a7;\n case 67: goto L_0x00a4;\n case 68: goto L_0x00a1;\n case 69: goto L_0x009e;\n case 70: goto L_0x009b;\n default: goto L_0x0077;\n }\n L_0x0077:\n switch(r1) {\n case 97: goto L_0x00aa;\n case 98: goto L_0x00a7;\n case 99: goto L_0x00a4;\n case 100: goto L_0x00a1;\n case 101: goto L_0x009e;\n case 102: goto L_0x009b;\n default: goto L_0x007a;\n }\n L_0x007a:\n com.unboundid.ldap.sdk.LDAPException r7 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r8 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r9 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_INVALID_HEX_CHAR\n java.lang.Object[] r0 = new java.lang.Object[r2]\n int r5 = r5 - r4\n char r6 = r6.charAt(r5)\n java.lang.Character r6 = java.lang.Character.valueOf(r6)\n r0[r3] = r6\n java.lang.Integer r6 = java.lang.Integer.valueOf(r5)\n r0[r4] = r6\n java.lang.String r6 = r9.get(r0)\n r7.<init>((com.unboundid.ldap.sdk.ResultCode) r8, (java.lang.String) r6)\n throw r7\n L_0x009b:\n r7 = r7 | 15\n goto L_0x00c7\n L_0x009e:\n r7 = r7 | 14\n goto L_0x00c7\n L_0x00a1:\n r7 = r7 | 13\n goto L_0x00c7\n L_0x00a4:\n r7 = r7 | 12\n goto L_0x00c7\n L_0x00a7:\n r7 = r7 | 11\n goto L_0x00c7\n L_0x00aa:\n r7 = r7 | 10\n goto L_0x00c7\n L_0x00ad:\n r7 = r7 | 9\n goto L_0x00c7\n L_0x00b0:\n r7 = r7 | 8\n goto L_0x00c7\n L_0x00b3:\n r7 = r7 | 7\n goto L_0x00c7\n L_0x00b6:\n r7 = r7 | 6\n goto L_0x00c7\n L_0x00b9:\n r7 = r7 | 5\n goto L_0x00c7\n L_0x00bc:\n r7 = r7 | 4\n goto L_0x00c7\n L_0x00bf:\n r7 = r7 | 3\n goto L_0x00c7\n L_0x00c2:\n r7 = r7 | 2\n goto L_0x00c7\n L_0x00c5:\n r7 = r7 | 1\n L_0x00c7:\n byte r7 = (byte) r7\n L_0x00c8:\n r0.put(r7)\n if (r5 > r8) goto L_0x00d9\n char r7 = r6.charAt(r5)\n r1 = 92\n if (r7 != r1) goto L_0x00d9\n int r7 = r5 + 1\n goto L_0x0006\n L_0x00d9:\n r7 = r5\n goto L_0x00f6\n L_0x00db:\n com.unboundid.ldap.sdk.LDAPException r7 = new com.unboundid.ldap.sdk.LDAPException\n com.unboundid.ldap.sdk.ResultCode r8 = com.unboundid.ldap.sdk.ResultCode.FILTER_ERROR\n com.unboundid.ldap.sdk.LDAPMessages r9 = com.unboundid.ldap.sdk.LDAPMessages.ERR_FILTER_INVALID_ESCAPED_END_CHAR\n java.lang.Object[] r0 = new java.lang.Object[r4]\n int r1 = r1 - r4\n char r6 = r6.charAt(r1)\n java.lang.Character r6 = java.lang.Character.valueOf(r6)\n r0[r3] = r6\n java.lang.String r6 = r9.get(r0)\n r7.<init>((com.unboundid.ldap.sdk.ResultCode) r8, (java.lang.String) r6)\n throw r7\n L_0x00f6:\n r0.flip()\n int r6 = r0.limit()\n byte[] r6 = new byte[r6]\n r0.get(r6)\n java.lang.String r6 = com.unboundid.util.StaticUtils.toUTF8String(r6)\n r9.append(r6)\n return r7\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.ldap.sdk.Filter.readEscapedHexString(java.lang.String, int, int, java.lang.StringBuilder):int\");\n }", "public final byte mo27873c() {\n return 6;\n }", "public String toString()\r\n/* 438: */ {\r\n/* 439:522 */ return \"Luffa-\" + (getDigestLength() << 3);\r\n/* 440: */ }", "void mo33731Pw();", "public abstract long mo24409b();", "public abstract long mo9229aD();", "int getLowBitLength();", "long readS64BE(String name)\n throws IOException, EOFException;", "public long mo9776z() {\n long j = 0;\n for (int i = 0; i < 64; i += 7) {\n byte u = mo9771u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) == 0) {\n return j;\n }\n }\n throw C3606c0.m8178e();\n }", "private byte m687e(byte b) {\n return f509f[b];\n }", "public static int m69981b() {\n return f60677a;\n }", "public abstract long mo9748m();", "public static String getMobileAdminPasswordMD5(){\n\t\treturn \"e3e6c68051fdfdf177c8933bfd76de48\";\n\t}", "public static void main(String[] args) {\n\t\tint a = 103217;\n\t\tSystem.out.println(AssortedMethods.toFullBinaryString(a));\n\t\tint b = 13;\n\t\tSystem.out.println(AssortedMethods.toFullBinaryString(b));\t\t\n\t\tint c = updateBits(a, b, 4, 12);\n\t\tSystem.out.println(AssortedMethods.toFullBinaryString(c));\n\t\t\t\n\t}", "int mo5867a(String str, long j);", "protected void mo6255a() {\n }", "void m63698a() {\n m63702c();\n m63701b();\n }", "public interface C0764b {\n}", "public static void main(String[] args) throws IOException {\r\n\t long a = 1182312000;\r\n\t System.out.println((a<<1) + 57596000);\r\n\t System.out.println(Long.MAX_VALUE);\r\n }", "public int method_2436() {\r\n return 16;\r\n }", "long getAlgIdExt();", "public final int mo6465d() {\n return 19729000;\n }", "public static int m8664g() {\n return 4;\n }", "int getPasswordHashLength();", "public static int size_moteId() {\n return (16 / 8);\n }", "public static int sizeBits_moteId() {\n return 16;\n }", "static int size_of_shld(String passed){\n\t\treturn 3;\n\t}", "int mo44965b();", "public abstract long mo24412e();", "public abstract long mo13679a();", "public long mo9786y() {\n long j;\n long j2;\n long j3;\n byte b;\n long j4 = this.f9091i;\n if (this.f9090h != j4) {\n long j5 = j4 + 1;\n byte a = C3691q1.m8803a(j4);\n if (a >= 0) {\n this.f9091i = j5;\n return (long) a;\n } else if (this.f9090h - j5 >= 9) {\n long j6 = j5 + 1;\n byte a2 = a ^ (C3691q1.m8803a(j5) << 7);\n if (a2 < 0) {\n b = a2 ^ Byte.MIN_VALUE;\n } else {\n long j7 = j6 + 1;\n byte a3 = a2 ^ (C3691q1.m8803a(j6) << 14);\n if (a3 >= 0) {\n j = (long) (a3 ^ 16256);\n } else {\n j6 = j7 + 1;\n byte a4 = a3 ^ (C3691q1.m8803a(j7) << 21);\n if (a4 < 0) {\n b = a4 ^ -2080896;\n } else {\n j7 = j6 + 1;\n long a5 = ((long) a4) ^ (((long) C3691q1.m8803a(j6)) << 28);\n if (a5 >= 0) {\n j3 = 266354560;\n } else {\n long j8 = j7 + 1;\n long a6 = a5 ^ (((long) C3691q1.m8803a(j7)) << 35);\n if (a6 < 0) {\n j2 = -34093383808L;\n } else {\n j7 = j8 + 1;\n a5 = a6 ^ (((long) C3691q1.m8803a(j8)) << 42);\n if (a5 >= 0) {\n j3 = 4363953127296L;\n } else {\n j8 = j7 + 1;\n a6 = a5 ^ (((long) C3691q1.m8803a(j7)) << 49);\n if (a6 < 0) {\n j2 = -558586000294016L;\n } else {\n j7 = j8 + 1;\n j = (a6 ^ (((long) C3691q1.m8803a(j8)) << 56)) ^ 71499008037633920L;\n if (j < 0) {\n long j9 = 1 + j7;\n if (((long) C3691q1.m8803a(j7)) >= 0) {\n j6 = j9;\n this.f9091i = j6;\n return j;\n }\n }\n }\n }\n }\n j = a6 ^ j2;\n j6 = j8;\n this.f9091i = j6;\n return j;\n }\n j = a5 ^ j3;\n }\n }\n j6 = j7;\n this.f9091i = j6;\n return j;\n }\n j = (long) b;\n this.f9091i = j6;\n return j;\n }\n }\n return mo9787z();\n }", "public static void main(String[] args) throws UnsupportedEncodingException {\n var res2 = old.MD4.MD4.hash(\"The quick brown fox jumps over the lazy dogshdkasjhflksdjhflkasjhdflkjshdfkljasdhlfkjajhjhhldfkjashldf\".getBytes());\n// var res1 = cyph.digest(\"\".getBytes());\n\n System.out.println(encodeHexString(res2));\n// System.out.println(new BitUtils(res1).getNextLong(25) + \"\\n\");\n\n System.exit(0);\n\n var secPreimg8 = secondPreimage(\"test\", 8, 1000);\n System.out.println(\"Second preimage avg over 8 bits: \" + secPreimg8);\n dumpData(\"preimg.txt\", true, \"8 \" + secPreimg8 + \"\\n\");\n\n var secPreimg12 = secondPreimage(\"test\", 12, 1000);\n System.out.println(\"Second preimage avg over 12 bits: \" + secPreimg12);\n dumpData(\"preimg.txt\", false, \"12 \" + secPreimg12 + \"\\n\");\n\n var secPreimg16 = secondPreimage(\"test\", 16, 500);\n System.out.println(\"Second preimage avg over 16 bits: \" + secPreimg16);\n dumpData(\"preimg.txt\", false, \"16 \" + secPreimg16 + \"\\n\");\n\n var secPreimg20 = secondPreimage(\"test\", 20, 50);\n System.out.println(\"Second preimage avg over 20 bits: \" + secPreimg20);\n dumpData(\"preimg.txt\", false, \"20 \" + secPreimg20 + \"\\n\");\n\n var secPreimg24 = secondPreimage(\"test\", 24, 10);\n System.out.println(\"Second preimage avg over 24 bits: \" + secPreimg24);\n dumpData(\"preimg.txt\", false, \"24 \" + secPreimg24 + \"\\n\");\n\n var coll8 = collisions(8, 1000);\n System.out.println(\"\\nCollisions for 8 bits: \" + coll8);\n dumpData(\"coll.txt\", true, \"8 \" + coll8 + \"\\n\");\n\n var coll12 = collisions(12, 1000);\n System.out.println(\"Collisions for 12 bits: \" + coll12);\n dumpData(\"coll.txt\", false, \"12 \" + coll12 + \"\\n\");\n\n var coll16 = collisions(16, 1000);\n System.out.println(\"Collisions for 16 bits: \" + coll16);\n dumpData(\"coll.txt\", false, \"16 \" + coll16 + \"\\n\");\n\n var coll20 = collisions(20, 1000);\n System.out.println(\"Collisions for 20 bits: \" + coll20);\n dumpData(\"coll.txt\", false, \"20 \" + coll20 + \"\\n\");\n\n var coll24 = collisions(24, 1000);\n System.out.println(\"Collisions for 24 bits: \" + coll24);\n dumpData(\"coll.txt\", false, \"24 \" + coll24 + \"\\n\");\n }", "long readS64LE(String name)\n throws IOException, EOFException;", "public static void main(String[] args) {\n\t\tint a=0x10017FDC;\n\t\ta=a>>13;\n\t\tSystem.out.println(a);\n\t\tint b=0x0800B;\n\t\tSystem.out.println(b);\n\t}", "static long m5599a(String str) {\n String[] split = str.split(\"\\\\:\");\n byte[] bArr = new byte[6];\n int i = 0;\n while (i < 6) {\n try {\n bArr[i] = (byte) Integer.parseInt(split[i], 16);\n i++;\n } catch (NumberFormatException unused) {\n return 0;\n }\n }\n return ((((long) bArr[0]) & 255) << 40) | ((((long) bArr[3]) & 255) << 16) | (((long) bArr[5]) & 255) | ((((long) bArr[4]) & 255) << 8) | ((((long) bArr[2]) & 255) << 24) | ((((long) bArr[1]) & 255) << 32);\n }", "int getClientHashLength();", "static void shld_to_mem(String passed){\n\t\tint memo_address = hexa_to_deci(passed.substring(5));\n\t\tmemory.put(memo_address, registers.get('L'));\n\t\tmemo_address++;\n\t\tmemory.put(memo_address, registers.get('H'));\n\t}", "private void m686d(int i) {\n m678b((byte) i);\n }", "private boolean m76078a(String str) {\n return str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FBF2CF403DF52FAECCBC22497D008B223\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FBF2CF403DF52FAECCBC22497D008B223\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FBF2CF403DF52FAECCBC22497D008B223\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FBF2CF403DF52FAECCBC22497D008B223\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA2AE5018546E6AAD7D27B8E9A0AAD39BD28E517\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA2AE5018546E6AAD7D27B8E9A0AAD39BD28E517\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FBF2CF403DF58E0ECD5D66A9A\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FBF2CF403DF58E0ECD5D66A9A\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA2AE5018546E6AAC2C77986D416E025BF24D91D9F5DE0E6C68A688DD108B039AF\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA2AE5018546E6AAC2C77986D416E025BF24D91D9F5DE0E6C68A688DD108B039AF\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA39F618994DE5AACBD26593EA19BA3EBF2CF441815DF7F6D7DE668DEA0EA620AE\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA39F618994DE5AACBD26593EA19BA3EBF2CF441815DF7F6D7DE668DEA0EA620AE\")) || str.contains(C6969H.m41409d(\"G738BDC12AA6AE466F51B9245FBF1FCD16C86D118BE33A0\")) || str.contains(Uri.encode(C6969H.m41409d(\"G738BDC12AA6AE466F51B9245FBF1FCD16C86D118BE33A0\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA39F618994DE5AACBD26593EA19BA3EBF2CF441815DF7F6D7DE668D\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA39F618994DE5AACBD26593EA19BA3EBF2CF441815DF7F6D7DE668D\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466E340C110ABABC0D92690D111F031AC3BE30B9D4DFCF18CD36C97D413B37EAF26B906994CF7F1CCC73497C70FBA\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466E340C110ABABC0D92690D111F031AC3BE30B9D4DFCF18CD36C97D413B37EAF26B906994CF7F1CCC73497C70FBA\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F10F8006F1E8D3D67A90C515AD24E52AE903DF5AF7F6CCC27B80D009F038BF24EA419347FCF1D1D66A979B12AB3DA7\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F10F8006F1E8D3D67A90C515AD24E52AE903DF5AF7F6CCC27B80D009F038BF24EA419347FCF1D1D66A979B12AB3DA7\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466EB1DDE52E8FD9A996A8D9A12AB3DA766E90F855CFAAAD3C56697DA19B03CF967EE1A9D44\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466EB1DDE52E8FD9A996A8D9A12AB3DA766E90F855CFAAAD3C56697DA19B03CF967EE1A9D44\"))) || str.contains(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA27F2078358F3E88CC26781D915BC3B\")) || str.contains(Uri.encode(C6969H.m41409d(\"G6197C10AAC6AE466F1198706E8EDCADF7CCDD615B27FAA27F2078358F3E88CC26781D915BC3B\")));\n }", "static int getHash(long key) {\n int hash = (int) ((key >>> 32) ^ key);\n // a supplemental secondary hash function\n // to protect against hash codes that don't differ much\n hash = ((hash >>> 16) ^ hash) * 0x45d9f3b;\n hash = ((hash >>> 16) ^ hash) * 0x45d9f3b;\n hash = (hash >>> 16) ^ hash;\n return hash;\n }", "private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }", "public abstract long mo9755t();", "static int hash(long sum) {\n return (int) (sum) >>> 7;\n }", "int mo27483b();", "public static int m8641b() {\n return 1;\n }", "void procedure()\n {\n try\n {\n fkey=new FileInputStream(file2);\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n keybuf= new byte[16];\n try\n {\n fkey.read(keybuf);\n z= new int[52];\n j1=0;\n i1=0;\n for(i=0;i<52;i++)\n z[i]=0;\n while( i1<8)\n {\n if((j1+1)%2==0)\n {\n z[i1]|=keybuf[j1]; // dividing 64 bit cypher block into four 16 bit registers\n\t i1++;\n }\n else\n \t {\n\t z[i1]=keybuf[j1];\n\t z[i1]<<=8;\n }\n\t j1++;\n }\n i=0;\n\t for(j1=1;j1<=5;j1++)\n\t {\n\t i++;\n\t z[i+7]=((z[i]<<9)&0xfe00)|((z[i+1]>>7)&0x1ff);\n\t z[i+8]=((z[i+1]<<9)&0xfe00)|((z[i+2]>>7)&0x1ff);\n\t z[i+9]=((z[i+2]<<9)&0xfe00)|((z[i+3]>>7)&0x1ff);\n\t z[i+10]=((z[i+3]<<9)&0xfe00)|((z[i+4]>>7)&0x1ff);\n\t z[i+11]=((z[i+4]<<9)&0xfe00)|((z[i+5]>>7)&0x1ff);\n\t z[i+12]=((z[i+5]<<9)&0xfe00)|((z[i+6]>>7)&0x1ff);\n z[i+13]=((z[i+6]<<9)&0xfe00)|((z[i-1]>>7)&0x1ff);\n\t z[i+14]=((z[i-1]<<9)&0xfe00)|((z[i]>>7)&0x1ff);\n\t i=i+7;\n\t }\n i1=41;\n\t z[48]=((z[i1]<<9)&0xfe00)|((z[i1+1]>>7)&0x1ff);\n\t z[49]=((z[i1+1]<<9)&0xfe00)|((z[i1+2]>>7)&0x1ff);\n\t z[50]=((z[i1+2]<<9)&0xfe00)|((z[i1+3]>>7)&0x1ff);\n\t z[51]=((z[i1+3]<<9)&0xfe00)|((z[i1+4]>>7)&0x1ff);\n}\ncatch(Exception e)\n{\nSystem.out.println(e);\n}\n}", "private void method_262(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14, int var15, int var16, int var17) {\n boolean var33 = field_759;\n int var21 = var13 >> 16 & 255;\n int var22 = var13 >> 8 & 255;\n int var23 = var13 & 255;\n int var24 = var14 >> 16 & 255;\n int var25 = var14 >> 8 & 255;\n int var26 = var14 & 255;\n\n try {\n int var27 = var5;\n int var28 = -var9;\n if(var33 || var28 < 0) {\n do {\n int var29 = (var6 >> 16) * var12;\n int var30 = var15 >> 16;\n int var31 = var8;\n int var32;\n if(var30 < this.field_745) {\n var32 = this.field_745 - var30;\n var31 = var8 - var32;\n var30 = this.field_745;\n var5 += var10 * var32;\n }\n\n if(var30 + var31 >= this.field_746) {\n var32 = var30 + var31 - this.field_746;\n var31 -= var32;\n }\n\n var17 = 1 - var17;\n if(var17 != 0) {\n var32 = var30;\n if(var33 || var30 < var30 + var31) {\n do {\n var4 = var2[(var5 >> 16) + var29] & 255;\n if(var4 != 0) {\n label69: {\n var4 = var3[var4];\n int var18 = var4 >> 16 & 255;\n int var19 = var4 >> 8 & 255;\n int var20 = var4 & 255;\n if(var18 == var19 && var19 == var20) {\n var1[var32 + var7] = (var18 * var21 >> 8 << 16) + (var19 * var22 >> 8 << 8) + (var20 * var23 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n if(var18 == 255 && var19 == var20) {\n var1[var32 + var7] = (var18 * var24 >> 8 << 16) + (var19 * var25 >> 8 << 8) + (var20 * var26 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n var1[var32 + var7] = var4;\n }\n }\n\n var5 += var10;\n ++var32;\n } while(var32 < var30 + var31);\n }\n }\n\n var6 += var11;\n var5 = var27;\n var7 += this.field_723;\n var15 += var16;\n ++var28;\n } while(var28 < 0);\n\n }\n } catch (Exception var34) {\n System.out.println(\"error in transparent sprite plot routine\"); // authentic System.out.println\n }\n }", "public abstract int read_ulong();", "public static int m8668h() {\n return 8;\n }", "private void m76768f() {\n m76770h();\n m76769g();\n }", "public int mo36g() {\n return 8;\n }", "public long mo9763z() {\n long j = 0;\n for (int i = 0; i < 64; i += 7) {\n byte u = mo9758u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) == 0) {\n return j;\n }\n }\n throw C3606c0.m8178e();\n }", "anx j6(asg r27, long r28) {\n /*\n r26 = this;\n r0 = r27;\n r8 = r0.j6;\t Catch:{ DataFormatException -> 0x01db }\n r12 = 0;\n r4 = 0;\n r4 = (byte[]) r4;\t Catch:{ DataFormatException -> 0x01db }\n r23 = -1;\n r22 = 0;\n r13 = r12;\n r6 = r28;\n L_0x000f:\n r9 = 0;\n r10 = 20;\n r5 = r26;\n r11 = r27;\n r5.j6(r6, r8, r9, r10, r11);\t Catch:{ DataFormatException -> 0x004d }\n r5 = 0;\n r5 = r8[r5];\t Catch:{ DataFormatException -> 0x004d }\n r12 = r5 & 255;\n r5 = r12 >> 4;\n r9 = r5 & 7;\n r5 = r12 & 15;\n r10 = (long) r5;\t Catch:{ DataFormatException -> 0x004d }\n r5 = 4;\n r14 = 1;\n r24 = r5;\n r5 = r12;\n r12 = r24;\n L_0x002c:\n r5 = r5 & 128;\n if (r5 != 0) goto L_0x0072;\n L_0x0030:\n switch(r9) {\n case 1: goto L_0x0087;\n case 2: goto L_0x0087;\n case 3: goto L_0x0087;\n case 4: goto L_0x0087;\n case 5: goto L_0x0033;\n case 6: goto L_0x00c5;\n case 7: goto L_0x011d;\n default: goto L_0x0033;\n };\t Catch:{ DataFormatException -> 0x004d }\n L_0x0033:\n r4 = new java.io.IOException;\t Catch:{ DataFormatException -> 0x004d }\n r5 = org.eclipse.jgit.JGitText.j6();\t Catch:{ DataFormatException -> 0x004d }\n r5 = r5.unknownObjectType;\t Catch:{ DataFormatException -> 0x004d }\n r8 = 1;\n r8 = new java.lang.Object[r8];\t Catch:{ DataFormatException -> 0x004d }\n r10 = 0;\n r9 = java.lang.Integer.valueOf(r9);\t Catch:{ DataFormatException -> 0x004d }\n r8[r10] = r9;\t Catch:{ DataFormatException -> 0x004d }\n r5 = java.text.MessageFormat.format(r5, r8);\t Catch:{ DataFormatException -> 0x004d }\n r4.<init>(r5);\t Catch:{ DataFormatException -> 0x004d }\n throw r4;\t Catch:{ DataFormatException -> 0x004d }\n L_0x004d:\n r4 = move-exception;\n L_0x004e:\n r5 = new ala;\n r8 = org.eclipse.jgit.JGitText.j6();\n r8 = r8.objectAtHasBadZlibStream;\n r9 = 2;\n r9 = new java.lang.Object[r9];\n r10 = 0;\n r6 = java.lang.Long.valueOf(r6);\n r9[r10] = r6;\n r6 = 1;\n r7 = r26.j6();\n r9[r6] = r7;\n r6 = java.text.MessageFormat.format(r8, r9);\n r5.<init>(r6);\n r5.initCause(r4);\n throw r5;\n L_0x0072:\n r5 = r14 + 1;\n r14 = r8[r14];\t Catch:{ DataFormatException -> 0x004d }\n r0 = r14 & 255;\n r16 = r0;\n r14 = r16 & 127;\n r14 = r14 << r12;\n r14 = (long) r14;\t Catch:{ DataFormatException -> 0x004d }\n r14 = r14 + r10;\n r10 = r12 + 7;\n r12 = r10;\n r10 = r14;\n r14 = r5;\n r5 = r16;\n goto L_0x002c;\n L_0x0087:\n r5 = r27.VH();\t Catch:{ DataFormatException -> 0x004d }\n r0 = (long) r5;\t Catch:{ DataFormatException -> 0x004d }\n r16 = r0;\n r5 = (r10 > r16 ? 1 : (r10 == r16 ? 0 : -1));\n if (r5 >= 0) goto L_0x009d;\n L_0x0092:\n r4 = (long) r14;\t Catch:{ DataFormatException -> 0x004d }\n r4 = r4 + r6;\n r8 = (int) r10;\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r1 = r27;\n r4 = r0.j6(r4, r8, r1);\t Catch:{ DataFormatException -> 0x004d }\n L_0x009d:\n if (r13 == 0) goto L_0x00ae;\n L_0x009f:\n r10 = r22;\n r8 = r4;\n r4 = r13;\n L_0x00a3:\n if (r8 != 0) goto L_0x01e0;\n L_0x00a5:\n r0 = r26;\n r1 = r27;\n r8 = r4.j6(r0, r1);\t Catch:{ DataFormatException -> 0x004d }\n L_0x00ad:\n return r8;\n L_0x00ae:\n if (r4 == 0) goto L_0x00b6;\n L_0x00b0:\n r8 = new anx$a;\t Catch:{ DataFormatException -> 0x004d }\n r8.<init>(r9, r4);\t Catch:{ DataFormatException -> 0x004d }\n goto L_0x00ad;\n L_0x00b6:\n r8 = new arg;\t Catch:{ DataFormatException -> 0x004d }\n r0 = r27;\n r0 = r0.DW;\t Catch:{ DataFormatException -> 0x004d }\n r16 = r0;\n r12 = r6;\n r15 = r26;\n r8.<init>(r9, r10, r12, r14, r15, r16);\t Catch:{ DataFormatException -> 0x004d }\n goto L_0x00ad;\n L_0x00c5:\n r17 = r14 + 1;\n r5 = r8[r14];\t Catch:{ DataFormatException -> 0x004d }\n r5 = r5 & 255;\n r9 = r5 & 127;\n r14 = (long) r9;\t Catch:{ DataFormatException -> 0x004d }\n L_0x00ce:\n r5 = r5 & 128;\n if (r5 != 0) goto L_0x00eb;\n L_0x00d2:\n r18 = r6 - r14;\n r12 = new aro$a;\t Catch:{ DataFormatException -> 0x004d }\n r0 = (int) r10;\t Catch:{ DataFormatException -> 0x004d }\n r16 = r0;\n r14 = r6;\n r12.<init>(r13, r14, r16, r17, r18);\t Catch:{ DataFormatException -> 0x004d }\n r5 = r12.FH;\t Catch:{ DataFormatException -> 0x004d }\n r14 = (long) r5;\t Catch:{ DataFormatException -> 0x004d }\n r5 = (r10 > r14 ? 1 : (r10 == r14 ? 0 : -1));\n if (r5 == 0) goto L_0x0102;\n L_0x00e4:\n r10 = r22;\n r9 = r23;\n r8 = r4;\n r4 = r12;\n goto L_0x00a3;\n L_0x00eb:\n r18 = 1;\n r14 = r14 + r18;\n r5 = r17 + 1;\n r9 = r8[r17];\t Catch:{ DataFormatException -> 0x004d }\n r9 = r9 & 255;\n r12 = 7;\n r14 = r14 << r12;\n r12 = r9 & 127;\n r0 = (long) r12;\t Catch:{ DataFormatException -> 0x004d }\n r16 = r0;\n r14 = r14 + r16;\n r17 = r5;\n r5 = r9;\n goto L_0x00ce;\n L_0x0102:\n r5 = r27.Hw();\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r1 = r18;\n r5 = r5.j6(r0, r1);\t Catch:{ DataFormatException -> 0x004d }\n if (r5 == 0) goto L_0x0118;\n L_0x0110:\n r9 = r5.DW;\t Catch:{ DataFormatException -> 0x004d }\n r4 = r5.j6;\t Catch:{ DataFormatException -> 0x004d }\n r10 = 1;\n r8 = r4;\n r4 = r12;\n goto L_0x00a3;\n L_0x0118:\n r13 = r12;\n r6 = r18;\n goto L_0x000f;\n L_0x011d:\n r0 = (long) r14;\t Catch:{ DataFormatException -> 0x004d }\n r16 = r0;\n r16 = r16 + r6;\n r19 = 0;\n r20 = 20;\n r15 = r26;\n r18 = r8;\n r21 = r27;\n r15.j6(r16, r18, r19, r20, r21);\t Catch:{ DataFormatException -> 0x004d }\n r5 = ans.j6(r8);\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r18 = r0.j6(r5);\t Catch:{ DataFormatException -> 0x004d }\n r12 = new aro$a;\t Catch:{ DataFormatException -> 0x004d }\n r0 = (int) r10;\t Catch:{ DataFormatException -> 0x004d }\n r16 = r0;\n r17 = r14 + 20;\n r14 = r6;\n r12.<init>(r13, r14, r16, r17, r18);\t Catch:{ DataFormatException -> 0x004d }\n r5 = r12.FH;\t Catch:{ DataFormatException -> 0x004d }\n r14 = (long) r5;\t Catch:{ DataFormatException -> 0x004d }\n r5 = (r10 > r14 ? 1 : (r10 == r14 ? 0 : -1));\n if (r5 == 0) goto L_0x0153;\n L_0x014b:\n r10 = r22;\n r9 = r23;\n r8 = r4;\n r4 = r12;\n goto L_0x00a3;\n L_0x0153:\n r5 = r27.Hw();\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r1 = r18;\n r5 = r5.j6(r0, r1);\t Catch:{ DataFormatException -> 0x004d }\n if (r5 == 0) goto L_0x016a;\n L_0x0161:\n r9 = r5.DW;\t Catch:{ DataFormatException -> 0x004d }\n r4 = r5.j6;\t Catch:{ DataFormatException -> 0x004d }\n r10 = 1;\n r8 = r4;\n r4 = r12;\n goto L_0x00a3;\n L_0x016a:\n r13 = r12;\n r6 = r18;\n goto L_0x000f;\n L_0x016f:\n r10 = r4;\n r11 = r8;\n r28 = r6;\n r8 = r5;\n L_0x0174:\n if (r10 == 0) goto L_0x0196;\n L_0x0176:\n r4 = 0;\n L_0x0177:\n r6 = r11.DW;\t Catch:{ DataFormatException -> 0x01db }\n r5 = r11.Hw;\t Catch:{ DataFormatException -> 0x004d }\n r12 = (long) r5;\t Catch:{ DataFormatException -> 0x004d }\n r12 = r12 + r6;\n r5 = r11.FH;\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r1 = r27;\n r10 = r0.j6(r12, r5, r1);\t Catch:{ DataFormatException -> 0x004d }\n if (r10 != 0) goto L_0x01a7;\n L_0x0189:\n r4 = 0;\n r4 = (byte[]) r4;\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r1 = r27;\n r8 = r11.j6(r0, r1);\t Catch:{ DataFormatException -> 0x004d }\n goto L_0x00ad;\n L_0x0196:\n r4 = r11.j6;\t Catch:{ DataFormatException -> 0x01db }\n if (r4 != 0) goto L_0x01a5;\n L_0x019a:\n r4 = r27.Hw();\t Catch:{ DataFormatException -> 0x01db }\n r6 = r11.v5;\t Catch:{ DataFormatException -> 0x01db }\n r5 = r26;\n r4.j6(r5, r6, r8, r9);\t Catch:{ DataFormatException -> 0x01db }\n L_0x01a5:\n r4 = r10;\n goto L_0x0177;\n L_0x01a7:\n r12 = asj.j6(r10);\t Catch:{ DataFormatException -> 0x004d }\n r14 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n r5 = (r14 > r12 ? 1 : (r14 == r12 ? 0 : -1));\n if (r5 > 0) goto L_0x01bc;\n L_0x01b2:\n r0 = r26;\n r1 = r27;\n r8 = r11.j6(r0, r1);\t Catch:{ DataFormatException -> 0x004d }\n goto L_0x00ad;\n L_0x01bc:\n r5 = (int) r12;\n r5 = new byte[r5];\t Catch:{ OutOfMemoryError -> 0x01cd }\n asj.j6(r8, r10, r5);\t Catch:{ DataFormatException -> 0x004d }\n r8 = r11.j6;\t Catch:{ DataFormatException -> 0x004d }\n if (r8 != 0) goto L_0x016f;\n L_0x01c6:\n r8 = new anx$a;\t Catch:{ DataFormatException -> 0x004d }\n r8.<init>(r9, r5);\t Catch:{ DataFormatException -> 0x004d }\n goto L_0x00ad;\n L_0x01cd:\n r4 = move-exception;\n r4 = 0;\n r4 = (byte[]) r4;\t Catch:{ DataFormatException -> 0x004d }\n r0 = r26;\n r1 = r27;\n r8 = r11.j6(r0, r1);\t Catch:{ DataFormatException -> 0x004d }\n goto L_0x00ad;\n L_0x01db:\n r4 = move-exception;\n r6 = r28;\n goto L_0x004e;\n L_0x01e0:\n r11 = r4;\n r28 = r6;\n goto L_0x0174;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: aro.j6(asg, long):anx\");\n }", "public static void main(String[] args) {\n// String before1 = \"27e80000\";\n// String before1 = \"715b00000\";\n String before1 = \"715b00000\";\n\n long after1 = Long.parseLong(before1, 16);\n System.out.println(after1);\n\n// String before2 = \"28d80000\";\n// String before2 = \"7c0000000\";\n// String before2 = \"71db80000\";\n String before2 = \"720580000\";\n long after2 = Long.parseLong(before2, 16);\n System.out.println(after2);\n\n long size = (after2 - after1) / 1024 / 1024;\n System.out.println(\"Size: \" + size + \"M\");\n }", "public Long privateMemorySize64() {\n return this.privateMemorySize64;\n }", "public static void main(String[] args) {\n\t\t\n\t\tbyte a = 20;\n\t\tint b = a >> 8;\n\n\t\tSystem.out.println(b == 0);\n\t\t\n\t\tlong c = 131060;\n\n\t\tSystem.out.println(c >= 1 << 17);\n\t\t\n\n\t}", "long readS64BE()\n throws IOException, EOFException;", "private byte[] RIPEMD160(byte[] tobeHashed){\r\n\tRIPEMD160Digest digester = new RIPEMD160Digest();\r\n\tbyte[] retValue=new byte[digester.getDigestSize()]; \r\n\tdigester.update(tobeHashed, 0, tobeHashed.length); \r\n\tdigester.doFinal(retValue, 0);\t \r\n\tbyte[] version = new byte[]{0x00};\r\n\treturn concateByteArray(version,retValue);\t\r\n}", "public abstract long mo24410c();", "void m8368b();", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"/\\fë%mwH]s,\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1436 = (new String((char[])var4)).intern();\r\n String var2 = field_1436;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 240;\r\n break;\r\n case 2:\r\n var10009 = 4;\r\n break;\r\n case 3:\r\n var10009 = 165;\r\n break;\r\n case 4:\r\n var10009 = 237;\r\n break;\r\n case 5:\r\n var10009 = 247;\r\n break;\r\n default:\r\n var10009 = 200;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "protected void m6156b(android.content.Context r7) {\n /*\n r6 = this;\n r0 = 1;\n r1 = m6150c();\t Catch:{ ms -> 0x00a1, IOException -> 0x0090 }\n r6.m6138a(r0, r1);\t Catch:{ ms -> 0x00a1, IOException -> 0x0090 }\n L_0x0008:\n r0 = 2;\n r1 = m6143a();\t Catch:{ ms -> 0x009e, IOException -> 0x0090 }\n r6.m6138a(r0, r1);\t Catch:{ ms -> 0x009e, IOException -> 0x0090 }\n L_0x0010:\n r0 = m6147b();\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r0 = r0.longValue();\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r2 = 25;\n r6.m6137a(r2, r0);\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r2 = f7155q;\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r4 = 0;\n r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r2 == 0) goto L_0x0034;\n L_0x0025:\n r2 = 17;\n r4 = f7155q;\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r0 = r0 - r4;\n r6.m6137a(r2, r0);\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r0 = 23;\n r2 = f7155q;\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n r6.m6137a(r0, r2);\t Catch:{ ms -> 0x009c, IOException -> 0x0090 }\n L_0x0034:\n r1 = m6153e(r7);\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r2 = 31;\n r0 = 0;\n r0 = r1.get(r0);\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r0 = (java.lang.Long) r0;\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r4 = r0.longValue();\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r6.m6137a(r2, r4);\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r2 = 32;\n r0 = 1;\n r0 = r1.get(r0);\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r0 = (java.lang.Long) r0;\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r0 = r0.longValue();\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n r6.m6137a(r2, r0);\t Catch:{ ms -> 0x009a, IOException -> 0x0090 }\n L_0x0058:\n r0 = 33;\n r1 = m6151d();\t Catch:{ ms -> 0x0098, IOException -> 0x0090 }\n r2 = r1.longValue();\t Catch:{ ms -> 0x0098, IOException -> 0x0090 }\n r6.m6137a(r0, r2);\t Catch:{ ms -> 0x0098, IOException -> 0x0090 }\n L_0x0065:\n r0 = 27;\n r1 = r6.c;\t Catch:{ ms -> 0x0096, IOException -> 0x0090 }\n r1 = m6144a(r7, r1);\t Catch:{ ms -> 0x0096, IOException -> 0x0090 }\n r6.m6138a(r0, r1);\t Catch:{ ms -> 0x0096, IOException -> 0x0090 }\n L_0x0070:\n r0 = 29;\n r1 = r6.c;\t Catch:{ ms -> 0x0094, IOException -> 0x0090 }\n r1 = m6148b(r7, r1);\t Catch:{ ms -> 0x0094, IOException -> 0x0090 }\n r6.m6138a(r0, r1);\t Catch:{ ms -> 0x0094, IOException -> 0x0090 }\n L_0x007b:\n r0 = m6154f(r7);\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n r1 = 5;\n r2 = 0;\n r2 = r0[r2];\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n r2 = (long) r2;\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n r6.m6137a(r1, r2);\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n r1 = 6;\n r2 = 1;\n r0 = r0[r2];\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n r2 = (long) r0;\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n r6.m6137a(r1, r2);\t Catch:{ ms -> 0x0092, IOException -> 0x0090 }\n L_0x008f:\n return;\n L_0x0090:\n r0 = move-exception;\n goto L_0x008f;\n L_0x0092:\n r0 = move-exception;\n goto L_0x008f;\n L_0x0094:\n r0 = move-exception;\n goto L_0x007b;\n L_0x0096:\n r0 = move-exception;\n goto L_0x0070;\n L_0x0098:\n r0 = move-exception;\n goto L_0x0065;\n L_0x009a:\n r0 = move-exception;\n goto L_0x0058;\n L_0x009c:\n r0 = move-exception;\n goto L_0x0034;\n L_0x009e:\n r0 = move-exception;\n goto L_0x0010;\n L_0x00a1:\n r0 = move-exception;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mr.b(android.content.Context):void\");\n }", "public static void main(String[] args) {\n\t\tbyte c = 20; //0x14\r\n\t\tbyte d = -8; //0xf8\r\n\t\t\r\n\t\tSystem.out.println(\"[시프트 연산 결과]\");\r\n\t\tSystem.out.println(c<<2);//c값을 2비트 왼쪽 시프트\r\n\t\tSystem.out.println(c>>2);//c값을 2비트 오른쪽 시프트, 왼쪽에 최상위 비트 0삽입(양수)\r\n\t\tSystem.out.println(d>>2);//d값을 2비트 오른쪽 시프트, 왼쪽에 최상위 비트 1삽입(음수)\r\n\r\n\t\r\n\t\tSystem.out.printf(\"%04x\\n\", d);//shift이전의 값 00 f \t 8\r\n\t\t\t\t\t\t\t\t\t //\t\t\t \t1111 1000 ->(00삽입)0011 1110(삭제00\r\n\t\t\r\n\t\tSystem.out.printf(\"%x\\n\", (byte)(d>>>2));\r\n\t\t\r\n\t\tSystem.out.printf(\"%x\\n\", (int)d);//fffffff8\r\n\t\tSystem.out.printf(\"%x\\n\", (d>>>2));\r\n\t\tSystem.out.printf(\"%x\\n\", (d>>>2));//d를 2비트 오른쪽 시프트, 왼쪽에 무조건 0이 삽입됨\r\n\t\t// 3 f f f f f f e (int타입으로 변환됨)\r\n\t\t//0011 1111 1111 1111 1111 1111 1111 1110\r\n\t\t//1111\t1111 1111 1111 1111 1111 1111 1000((int)d)\r\n\t\t//0011\t1111 1111 1111 1111 1111 1111 1110(d>>>2)\r\n\t}", "public static boolean m29695e() {\n if (!f27244b) {\n return false;\n }\n try {\n return is64Bit();\n } catch (Throwable unused) {\n return false;\n }\n }", "public static com.jcraft.jsch.KeyPair j6(com.jcraft.jsch.JSch r19, byte[] r20, byte[] r21) {\n /*\n r2 = 8;\n r12 = new byte[r2];\n r11 = 1;\n r2 = 0;\n r2 = (byte[]) r2;\n r3 = 0;\n r3 = (byte[]) r3;\n r8 = 0;\n r7 = 0;\n r9 = \"\";\n r6 = 0;\n if (r21 != 0) goto L_0x0089;\n L_0x0013:\n if (r20 == 0) goto L_0x0089;\n L_0x0015:\n r0 = r20;\n r4 = r0.length;\n r5 = 11;\n if (r4 <= r5) goto L_0x0089;\n L_0x001c:\n r4 = 0;\n r4 = r20[r4];\n if (r4 != 0) goto L_0x0089;\n L_0x0021:\n r4 = 1;\n r4 = r20[r4];\n if (r4 != 0) goto L_0x0089;\n L_0x0026:\n r4 = 2;\n r4 = r20[r4];\n if (r4 != 0) goto L_0x0089;\n L_0x002b:\n r4 = 3;\n r4 = r20[r4];\n r5 = 7;\n if (r4 != r5) goto L_0x0089;\n L_0x0031:\n r2 = new com.jcraft.jsch.Buffer;\n r0 = r20;\n r2.<init>(r0);\n r0 = r20;\n r3 = r0.length;\n r2.DW(r3);\n r3 = new java.lang.String;\n r4 = r2.tp();\n r3.<init>(r4);\n r2.J0();\n r4 = \"ssh-rsa\";\n r4 = r3.equals(r4);\n if (r4 == 0) goto L_0x005a;\n L_0x0053:\n r0 = r19;\n r2 = com.jcraft.jsch.KeyPairRSA.j6(r0, r2);\n L_0x0059:\n return r2;\n L_0x005a:\n r4 = \"ssh-dss\";\n r3 = r3.equals(r4);\n if (r3 == 0) goto L_0x006a;\n L_0x0063:\n r0 = r19;\n r2 = com.jcraft.jsch.KeyPairDSA.j6(r0, r2);\n goto L_0x0059;\n L_0x006a:\n r2 = new com.jcraft.jsch.JSchException;\n r3 = new java.lang.StringBuilder;\n r4 = \"privatekey: invalid key \";\n r3.<init>(r4);\n r4 = new java.lang.String;\n r5 = 4;\n r6 = 7;\n r0 = r20;\n r4.<init>(r0, r5, r6);\n r3 = r3.append(r4);\n r3 = r3.toString();\n r2.<init>(r3);\n throw r2;\n L_0x0089:\n if (r20 == 0) goto L_0x0093;\n L_0x008b:\n r4 = j6(r19, r20);\t Catch:{ Exception -> 0x00bf }\n if (r4 == 0) goto L_0x0093;\n L_0x0091:\n r2 = r4;\n goto L_0x0059;\n L_0x0093:\n if (r20 == 0) goto L_0x00c7;\n L_0x0095:\n r0 = r20;\n r4 = r0.length;\t Catch:{ Exception -> 0x00bf }\n r5 = r4;\n L_0x0099:\n r10 = 0;\n L_0x009a:\n if (r10 < r5) goto L_0x00ca;\n L_0x009c:\n r13 = r6;\n r14 = r12;\n r6 = r7;\n r7 = r8;\n r8 = r11;\n L_0x00a1:\n if (r10 < r5) goto L_0x00fd;\n L_0x00a3:\n if (r20 == 0) goto L_0x04be;\n L_0x00a5:\n if (r7 != 0) goto L_0x0476;\n L_0x00a7:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"invalid privatekey: \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x00bf:\n r2 = move-exception;\n r3 = r2 instanceof com.jcraft.jsch.JSchException;\n if (r3 == 0) goto L_0x06e4;\n L_0x00c4:\n r2 = (com.jcraft.jsch.JSchException) r2;\n throw r2;\n L_0x00c7:\n r4 = 0;\n r5 = r4;\n goto L_0x0099;\n L_0x00ca:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r13 = 45;\n if (r4 != r13) goto L_0x00fa;\n L_0x00d0:\n r4 = r10 + 4;\n if (r4 >= r5) goto L_0x00fa;\n L_0x00d4:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r13 = 45;\n if (r4 != r13) goto L_0x00fa;\n L_0x00dc:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r13 = 45;\n if (r4 != r13) goto L_0x00fa;\n L_0x00e4:\n r4 = r10 + 3;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r13 = 45;\n if (r4 != r13) goto L_0x00fa;\n L_0x00ec:\n r4 = r10 + 4;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r13 = 45;\n if (r4 != r13) goto L_0x00fa;\n L_0x00f4:\n r13 = r6;\n r14 = r12;\n r6 = r7;\n r7 = r8;\n r8 = r11;\n goto L_0x00a1;\n L_0x00fa:\n r10 = r10 + 1;\n goto L_0x009a;\n L_0x00fd:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 66;\n if (r4 != r11) goto L_0x0231;\n L_0x0103:\n r4 = r10 + 3;\n if (r4 >= r5) goto L_0x0231;\n L_0x0107:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 69;\n if (r4 != r11) goto L_0x0231;\n L_0x010f:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 71;\n if (r4 != r11) goto L_0x0231;\n L_0x0117:\n r4 = r10 + 3;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 73;\n if (r4 != r11) goto L_0x0231;\n L_0x011f:\n r4 = r10 + 6;\n r7 = r4 + 2;\n if (r7 < r5) goto L_0x013d;\n L_0x0125:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"invalid privatekey: \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x013d:\n r7 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r10 = 68;\n if (r7 != r10) goto L_0x0158;\n L_0x0143:\n r7 = r4 + 1;\n r7 = r20[r7];\t Catch:{ Exception -> 0x00bf }\n r10 = 83;\n if (r7 != r10) goto L_0x0158;\n L_0x014b:\n r7 = r4 + 2;\n r7 = r20[r7];\t Catch:{ Exception -> 0x00bf }\n r10 = 65;\n if (r7 != r10) goto L_0x0158;\n L_0x0153:\n r7 = 1;\n L_0x0154:\n r10 = r4 + 3;\n goto L_0x00a1;\n L_0x0158:\n r7 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r10 = 82;\n if (r7 != r10) goto L_0x0170;\n L_0x015e:\n r7 = r4 + 1;\n r7 = r20[r7];\t Catch:{ Exception -> 0x00bf }\n r10 = 83;\n if (r7 != r10) goto L_0x0170;\n L_0x0166:\n r7 = r4 + 2;\n r7 = r20[r7];\t Catch:{ Exception -> 0x00bf }\n r10 = 65;\n if (r7 != r10) goto L_0x0170;\n L_0x016e:\n r7 = 2;\n goto L_0x0154;\n L_0x0170:\n r6 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r7 = 83;\n if (r6 != r7) goto L_0x0189;\n L_0x0176:\n r6 = r4 + 1;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 83;\n if (r6 != r7) goto L_0x0189;\n L_0x017e:\n r6 = r4 + 2;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 72;\n if (r6 != r7) goto L_0x0189;\n L_0x0186:\n r7 = 3;\n r6 = 1;\n goto L_0x0154;\n L_0x0189:\n r6 = r4 + 6;\n if (r6 >= r5) goto L_0x01c9;\n L_0x018d:\n r6 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r7 = 80;\n if (r6 != r7) goto L_0x01c9;\n L_0x0193:\n r6 = r4 + 1;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 82;\n if (r6 != r7) goto L_0x01c9;\n L_0x019b:\n r6 = r4 + 2;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 73;\n if (r6 != r7) goto L_0x01c9;\n L_0x01a3:\n r6 = r4 + 3;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 86;\n if (r6 != r7) goto L_0x01c9;\n L_0x01ab:\n r6 = r4 + 4;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 65;\n if (r6 != r7) goto L_0x01c9;\n L_0x01b3:\n r6 = r4 + 5;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 84;\n if (r6 != r7) goto L_0x01c9;\n L_0x01bb:\n r6 = r4 + 6;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 69;\n if (r6 != r7) goto L_0x01c9;\n L_0x01c3:\n r7 = 3;\n r6 = 3;\n r8 = 0;\n r4 = r4 + 3;\n goto L_0x0154;\n L_0x01c9:\n r6 = r4 + 8;\n if (r6 >= r5) goto L_0x0219;\n L_0x01cd:\n r6 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r7 = 69;\n if (r6 != r7) goto L_0x0219;\n L_0x01d3:\n r6 = r4 + 1;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 78;\n if (r6 != r7) goto L_0x0219;\n L_0x01db:\n r6 = r4 + 2;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 67;\n if (r6 != r7) goto L_0x0219;\n L_0x01e3:\n r6 = r4 + 3;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 82;\n if (r6 != r7) goto L_0x0219;\n L_0x01eb:\n r6 = r4 + 4;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 89;\n if (r6 != r7) goto L_0x0219;\n L_0x01f3:\n r6 = r4 + 5;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 80;\n if (r6 != r7) goto L_0x0219;\n L_0x01fb:\n r6 = r4 + 6;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 84;\n if (r6 != r7) goto L_0x0219;\n L_0x0203:\n r6 = r4 + 7;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 69;\n if (r6 != r7) goto L_0x0219;\n L_0x020b:\n r6 = r4 + 8;\n r6 = r20[r6];\t Catch:{ Exception -> 0x00bf }\n r7 = 68;\n if (r6 != r7) goto L_0x0219;\n L_0x0213:\n r7 = 3;\n r6 = 3;\n r4 = r4 + 5;\n goto L_0x0154;\n L_0x0219:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"invalid privatekey: \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x0231:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 65;\n if (r4 != r11) goto L_0x02b5;\n L_0x0237:\n r4 = r10 + 7;\n if (r4 >= r5) goto L_0x02b5;\n L_0x023b:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 69;\n if (r4 != r11) goto L_0x02b5;\n L_0x0243:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 83;\n if (r4 != r11) goto L_0x02b5;\n L_0x024b:\n r4 = r10 + 3;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 45;\n if (r4 != r11) goto L_0x02b5;\n L_0x0253:\n r4 = r10 + 4;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 50;\n if (r4 != r11) goto L_0x02b5;\n L_0x025b:\n r4 = r10 + 5;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 53;\n if (r4 != r11) goto L_0x02b5;\n L_0x0263:\n r4 = r10 + 6;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 54;\n if (r4 != r11) goto L_0x02b5;\n L_0x026b:\n r4 = r10 + 7;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 45;\n if (r4 != r11) goto L_0x02b5;\n L_0x0273:\n r10 = r10 + 8;\n r4 = \"aes256-cbc\";\n r4 = com.jcraft.jsch.JSch.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = com.jcraft.jsch.Session.VH(r4);\t Catch:{ Exception -> 0x00bf }\n if (r4 == 0) goto L_0x029d;\n L_0x0282:\n r4 = \"aes256-cbc\";\n r4 = com.jcraft.jsch.JSch.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = java.lang.Class.forName(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = r4.newInstance();\t Catch:{ Exception -> 0x00bf }\n r4 = (com.jcraft.jsch.Cipher) r4;\t Catch:{ Exception -> 0x00bf }\n r11 = r4.j6();\t Catch:{ Exception -> 0x00bf }\n r11 = new byte[r11];\t Catch:{ Exception -> 0x00bf }\n r13 = r4;\n r14 = r11;\n goto L_0x00a1;\n L_0x029d:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"privatekey: aes256-cbc is not available \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x02b5:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 65;\n if (r4 != r11) goto L_0x0339;\n L_0x02bb:\n r4 = r10 + 7;\n if (r4 >= r5) goto L_0x0339;\n L_0x02bf:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 69;\n if (r4 != r11) goto L_0x0339;\n L_0x02c7:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 83;\n if (r4 != r11) goto L_0x0339;\n L_0x02cf:\n r4 = r10 + 3;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 45;\n if (r4 != r11) goto L_0x0339;\n L_0x02d7:\n r4 = r10 + 4;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 49;\n if (r4 != r11) goto L_0x0339;\n L_0x02df:\n r4 = r10 + 5;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 57;\n if (r4 != r11) goto L_0x0339;\n L_0x02e7:\n r4 = r10 + 6;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 50;\n if (r4 != r11) goto L_0x0339;\n L_0x02ef:\n r4 = r10 + 7;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 45;\n if (r4 != r11) goto L_0x0339;\n L_0x02f7:\n r10 = r10 + 8;\n r4 = \"aes192-cbc\";\n r4 = com.jcraft.jsch.JSch.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = com.jcraft.jsch.Session.VH(r4);\t Catch:{ Exception -> 0x00bf }\n if (r4 == 0) goto L_0x0321;\n L_0x0306:\n r4 = \"aes192-cbc\";\n r4 = com.jcraft.jsch.JSch.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = java.lang.Class.forName(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = r4.newInstance();\t Catch:{ Exception -> 0x00bf }\n r4 = (com.jcraft.jsch.Cipher) r4;\t Catch:{ Exception -> 0x00bf }\n r11 = r4.j6();\t Catch:{ Exception -> 0x00bf }\n r11 = new byte[r11];\t Catch:{ Exception -> 0x00bf }\n r13 = r4;\n r14 = r11;\n goto L_0x00a1;\n L_0x0321:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"privatekey: aes192-cbc is not available \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x0339:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 65;\n if (r4 != r11) goto L_0x03bd;\n L_0x033f:\n r4 = r10 + 7;\n if (r4 >= r5) goto L_0x03bd;\n L_0x0343:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 69;\n if (r4 != r11) goto L_0x03bd;\n L_0x034b:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 83;\n if (r4 != r11) goto L_0x03bd;\n L_0x0353:\n r4 = r10 + 3;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 45;\n if (r4 != r11) goto L_0x03bd;\n L_0x035b:\n r4 = r10 + 4;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 49;\n if (r4 != r11) goto L_0x03bd;\n L_0x0363:\n r4 = r10 + 5;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 50;\n if (r4 != r11) goto L_0x03bd;\n L_0x036b:\n r4 = r10 + 6;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 56;\n if (r4 != r11) goto L_0x03bd;\n L_0x0373:\n r4 = r10 + 7;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 45;\n if (r4 != r11) goto L_0x03bd;\n L_0x037b:\n r10 = r10 + 8;\n r4 = \"aes128-cbc\";\n r4 = com.jcraft.jsch.JSch.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = com.jcraft.jsch.Session.VH(r4);\t Catch:{ Exception -> 0x00bf }\n if (r4 == 0) goto L_0x03a5;\n L_0x038a:\n r4 = \"aes128-cbc\";\n r4 = com.jcraft.jsch.JSch.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = java.lang.Class.forName(r4);\t Catch:{ Exception -> 0x00bf }\n r4 = r4.newInstance();\t Catch:{ Exception -> 0x00bf }\n r4 = (com.jcraft.jsch.Cipher) r4;\t Catch:{ Exception -> 0x00bf }\n r11 = r4.j6();\t Catch:{ Exception -> 0x00bf }\n r11 = new byte[r11];\t Catch:{ Exception -> 0x00bf }\n r13 = r4;\n r14 = r11;\n goto L_0x00a1;\n L_0x03a5:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"privatekey: aes128-cbc is not available \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x03bd:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 67;\n if (r4 != r11) goto L_0x0402;\n L_0x03c3:\n r4 = r10 + 3;\n if (r4 >= r5) goto L_0x0402;\n L_0x03c7:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 66;\n if (r4 != r11) goto L_0x0402;\n L_0x03cf:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 67;\n if (r4 != r11) goto L_0x0402;\n L_0x03d7:\n r4 = r10 + 3;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 44;\n if (r4 != r11) goto L_0x0402;\n L_0x03df:\n r10 = r10 + 4;\n r4 = 0;\n L_0x03e2:\n r11 = r14.length;\t Catch:{ Exception -> 0x00bf }\n if (r4 >= r11) goto L_0x00a1;\n L_0x03e5:\n r11 = r10 + 1;\n r10 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r10 = j6(r10);\t Catch:{ Exception -> 0x00bf }\n r10 = r10 << 4;\n r12 = r10 & 240;\n r10 = r11 + 1;\n r11 = r20[r11];\t Catch:{ Exception -> 0x00bf }\n r11 = j6(r11);\t Catch:{ Exception -> 0x00bf }\n r11 = r11 & 15;\n r11 = r11 + r12;\n r11 = (byte) r11;\t Catch:{ Exception -> 0x00bf }\n r14[r4] = r11;\t Catch:{ Exception -> 0x00bf }\n r4 = r4 + 1;\n goto L_0x03e2;\n L_0x0402:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 13;\n if (r4 != r11) goto L_0x041b;\n L_0x0408:\n r4 = r10 + 1;\n r0 = r20;\n r11 = r0.length;\t Catch:{ Exception -> 0x00bf }\n if (r4 >= r11) goto L_0x041b;\n L_0x040f:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 10;\n if (r4 != r11) goto L_0x041b;\n L_0x0417:\n r10 = r10 + 1;\n goto L_0x00a1;\n L_0x041b:\n r4 = r20[r10];\t Catch:{ Exception -> 0x00bf }\n r11 = 10;\n if (r4 != r11) goto L_0x0472;\n L_0x0421:\n r4 = r10 + 1;\n r0 = r20;\n r11 = r0.length;\t Catch:{ Exception -> 0x00bf }\n if (r4 >= r11) goto L_0x0472;\n L_0x0428:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 10;\n if (r4 != r11) goto L_0x0434;\n L_0x0430:\n r10 = r10 + 2;\n goto L_0x00a3;\n L_0x0434:\n r4 = r10 + 1;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 13;\n if (r4 != r11) goto L_0x044f;\n L_0x043c:\n r4 = r10 + 2;\n r0 = r20;\n r11 = r0.length;\t Catch:{ Exception -> 0x00bf }\n if (r4 >= r11) goto L_0x044f;\n L_0x0443:\n r4 = r10 + 2;\n r4 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r11 = 10;\n if (r4 != r11) goto L_0x044f;\n L_0x044b:\n r10 = r10 + 3;\n goto L_0x00a3;\n L_0x044f:\n r4 = 0;\n r11 = r10 + 1;\n L_0x0452:\n r0 = r20;\n r12 = r0.length;\t Catch:{ Exception -> 0x00bf }\n if (r11 < r12) goto L_0x0461;\n L_0x0457:\n if (r4 != 0) goto L_0x0472;\n L_0x0459:\n r10 = r10 + 1;\n r4 = 3;\n if (r6 == r4) goto L_0x00a3;\n L_0x045e:\n r8 = 0;\n goto L_0x00a3;\n L_0x0461:\n r12 = r20[r11];\t Catch:{ Exception -> 0x00bf }\n r15 = 10;\n if (r12 == r15) goto L_0x0457;\n L_0x0467:\n r12 = r20[r11];\t Catch:{ Exception -> 0x00bf }\n r15 = 58;\n if (r12 != r15) goto L_0x046f;\n L_0x046d:\n r4 = 1;\n goto L_0x0457;\n L_0x046f:\n r11 = r11 + 1;\n goto L_0x0452;\n L_0x0472:\n r10 = r10 + 1;\n goto L_0x00a1;\n L_0x0476:\n r4 = r10;\n L_0x0477:\n if (r4 < r5) goto L_0x0498;\n L_0x0479:\n r5 = r5 - r4;\n if (r5 == 0) goto L_0x0480;\n L_0x047c:\n r5 = r4 - r10;\n if (r5 != 0) goto L_0x04a1;\n L_0x0480:\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"invalid privatekey: \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x0498:\n r11 = r20[r4];\t Catch:{ Exception -> 0x00bf }\n r12 = 45;\n if (r11 == r12) goto L_0x0479;\n L_0x049e:\n r4 = r4 + 1;\n goto L_0x0477;\n L_0x04a1:\n r4 = r4 - r10;\n r12 = new byte[r4];\t Catch:{ Exception -> 0x00bf }\n r4 = 0;\n r5 = r12.length;\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n java.lang.System.arraycopy(r0, r10, r12, r4, r5);\t Catch:{ Exception -> 0x00bf }\n r15 = 0;\n r5 = 0;\n r4 = r12.length;\t Catch:{ Exception -> 0x00bf }\n r11 = r5;\n L_0x04af:\n if (r11 < r4) goto L_0x0524;\n L_0x04b1:\n r4 = r11 - r15;\n if (r4 <= 0) goto L_0x04bb;\n L_0x04b5:\n r2 = r11 - r15;\n r2 = com.jcraft.jsch.Util.j6(r12, r15, r2);\t Catch:{ Exception -> 0x00bf }\n L_0x04bb:\n com.jcraft.jsch.Util.Hw(r12);\t Catch:{ Exception -> 0x00bf }\n L_0x04be:\n if (r2 == 0) goto L_0x074c;\n L_0x04c0:\n r4 = r2.length;\t Catch:{ Exception -> 0x00bf }\n r5 = 4;\n if (r4 <= r5) goto L_0x074c;\n L_0x04c4:\n r4 = 0;\n r4 = r2[r4];\t Catch:{ Exception -> 0x00bf }\n r5 = 63;\n if (r4 != r5) goto L_0x074c;\n L_0x04cb:\n r4 = 1;\n r4 = r2[r4];\t Catch:{ Exception -> 0x00bf }\n r5 = 111; // 0x6f float:1.56E-43 double:5.5E-322;\n if (r4 != r5) goto L_0x074c;\n L_0x04d2:\n r4 = 2;\n r4 = r2[r4];\t Catch:{ Exception -> 0x00bf }\n r5 = -7;\n if (r4 != r5) goto L_0x074c;\n L_0x04d8:\n r4 = 3;\n r4 = r2[r4];\t Catch:{ Exception -> 0x00bf }\n r5 = -21;\n if (r4 != r5) goto L_0x074c;\n L_0x04df:\n r5 = new com.jcraft.jsch.Buffer;\t Catch:{ Exception -> 0x00bf }\n r5.<init>(r2);\t Catch:{ Exception -> 0x00bf }\n r5.Hw();\t Catch:{ Exception -> 0x00bf }\n r5.Hw();\t Catch:{ Exception -> 0x00bf }\n r5.tp();\t Catch:{ Exception -> 0x00bf }\n r4 = r5.tp();\t Catch:{ Exception -> 0x00bf }\n r4 = com.jcraft.jsch.Util.DW(r4);\t Catch:{ Exception -> 0x00bf }\n r10 = \"3des-cbc\";\n r10 = r4.equals(r10);\t Catch:{ Exception -> 0x00bf }\n if (r10 == 0) goto L_0x055e;\n L_0x04fe:\n r5.Hw();\t Catch:{ Exception -> 0x00bf }\n r2 = r2.length;\t Catch:{ Exception -> 0x00bf }\n r3 = r5.DW();\t Catch:{ Exception -> 0x00bf }\n r2 = r2 - r3;\n r2 = new byte[r2];\t Catch:{ Exception -> 0x00bf }\n r5.Hw(r2);\t Catch:{ Exception -> 0x00bf }\n r2 = new com.jcraft.jsch.JSchException;\t Catch:{ Exception -> 0x00bf }\n r3 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00bf }\n r4 = \"unknown privatekey format: \";\n r3.<init>(r4);\t Catch:{ Exception -> 0x00bf }\n r0 = r20;\n r3 = r3.append(r0);\t Catch:{ Exception -> 0x00bf }\n r3 = r3.toString();\t Catch:{ Exception -> 0x00bf }\n r2.<init>(r3);\t Catch:{ Exception -> 0x00bf }\n throw r2;\t Catch:{ Exception -> 0x00bf }\n L_0x0524:\n r5 = r12[r11];\t Catch:{ Exception -> 0x00bf }\n r10 = 10;\n if (r5 != r10) goto L_0x0553;\n L_0x052a:\n r5 = r11 + -1;\n r5 = r12[r5];\t Catch:{ Exception -> 0x00bf }\n r10 = 13;\n if (r5 != r10) goto L_0x054e;\n L_0x0532:\n r5 = 1;\n r10 = r5;\n L_0x0534:\n r16 = r11 + 1;\n if (r10 == 0) goto L_0x0551;\n L_0x0538:\n r5 = 1;\n L_0x0539:\n r5 = r11 - r5;\n r17 = r11 + 1;\n r17 = r4 - r17;\n r0 = r16;\n r1 = r17;\n java.lang.System.arraycopy(r12, r0, r12, r5, r1);\t Catch:{ Exception -> 0x00bf }\n if (r10 == 0) goto L_0x054a;\n L_0x0548:\n r4 = r4 + -1;\n L_0x054a:\n r4 = r4 + -1;\n goto L_0x04af;\n L_0x054e:\n r5 = 0;\n r10 = r5;\n goto L_0x0534;\n L_0x0551:\n r5 = 0;\n goto L_0x0539;\n L_0x0553:\n r5 = r12[r11];\t Catch:{ Exception -> 0x00bf }\n r10 = 45;\n if (r5 == r10) goto L_0x04b1;\n L_0x0559:\n r5 = r11 + 1;\n r11 = r5;\n goto L_0x04af;\n L_0x055e:\n r10 = \"none\";\n r4 = r4.equals(r10);\t Catch:{ Exception -> 0x00bf }\n if (r4 == 0) goto L_0x074c;\n L_0x0567:\n r5.Hw();\t Catch:{ Exception -> 0x00bf }\n r5.Hw();\t Catch:{ Exception -> 0x00bf }\n r4 = 0;\n r2 = r2.length;\t Catch:{ Exception -> 0x00bf }\n r8 = r5.DW();\t Catch:{ Exception -> 0x00bf }\n r2 = r2 - r8;\n r2 = new byte[r2];\t Catch:{ Exception -> 0x00bf }\n r5.Hw(r2);\t Catch:{ Exception -> 0x00bf }\n r11 = r2;\n r12 = r4;\n L_0x057b:\n if (r21 == 0) goto L_0x0748;\n L_0x057d:\n r0 = r21;\n r8 = r0.length;\t Catch:{ Exception -> 0x06df }\n r0 = r21;\n r2 = r0.length;\t Catch:{ Exception -> 0x06df }\n r4 = 4;\n if (r2 <= r4) goto L_0x0657;\n L_0x0586:\n r2 = 0;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 45;\n if (r2 != r4) goto L_0x0657;\n L_0x058d:\n r2 = 1;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 45;\n if (r2 != r4) goto L_0x0657;\n L_0x0594:\n r2 = 2;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 45;\n if (r2 != r4) goto L_0x0657;\n L_0x059b:\n r2 = 3;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 45;\n if (r2 != r4) goto L_0x0657;\n L_0x05a2:\n r2 = 1;\n r5 = 0;\n L_0x05a4:\n r5 = r5 + 1;\n r0 = r21;\n r4 = r0.length;\t Catch:{ Exception -> 0x06df }\n if (r4 <= r5) goto L_0x05b1;\n L_0x05ab:\n r4 = r21[r5];\t Catch:{ Exception -> 0x06df }\n r10 = 10;\n if (r4 != r10) goto L_0x05a4;\n L_0x05b1:\n r0 = r21;\n r4 = r0.length;\t Catch:{ Exception -> 0x06df }\n if (r4 > r5) goto L_0x05b7;\n L_0x05b6:\n r2 = 0;\n L_0x05b7:\n if (r2 != 0) goto L_0x0600;\n L_0x05b9:\n r0 = r21;\n r4 = r0.length;\t Catch:{ Exception -> 0x06df }\n if (r4 > r5) goto L_0x05bf;\n L_0x05be:\n r2 = 0;\n L_0x05bf:\n r4 = r5;\n L_0x05c0:\n if (r2 == 0) goto L_0x05c4;\n L_0x05c2:\n if (r4 < r8) goto L_0x062b;\n L_0x05c4:\n if (r2 == 0) goto L_0x0748;\n L_0x05c6:\n r2 = r4 - r5;\n r0 = r21;\n r3 = com.jcraft.jsch.Util.j6(r0, r5, r2);\t Catch:{ Exception -> 0x06df }\n if (r20 == 0) goto L_0x05d3;\n L_0x05d0:\n r2 = 3;\n if (r7 != r2) goto L_0x0748;\n L_0x05d3:\n r2 = 8;\n r2 = r3[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 100;\n if (r2 != r4) goto L_0x064b;\n L_0x05db:\n r7 = 1;\n r4 = r3;\n r3 = r9;\n L_0x05de:\n r2 = 0;\n r5 = 1;\n if (r7 != r5) goto L_0x06fc;\n L_0x05e2:\n r2 = new com.jcraft.jsch.KeyPairDSA;\n r0 = r19;\n r2.<init>(r0);\n L_0x05e9:\n if (r2 == 0) goto L_0x0059;\n L_0x05eb:\n r2.v5 = r12;\n r2.J0 = r4;\n r2.j6 = r6;\n r2.DW = r3;\n r2.gn = r13;\n if (r12 == 0) goto L_0x0714;\n L_0x05f7:\n r3 = 1;\n r2.v5 = r3;\n r2.we = r14;\n r2.Zo = r11;\n goto L_0x0059;\n L_0x0600:\n r4 = r21[r5];\t Catch:{ Exception -> 0x06df }\n r10 = 10;\n if (r4 != r10) goto L_0x0628;\n L_0x0606:\n r4 = 0;\n r10 = r5 + 1;\n L_0x0609:\n r0 = r21;\n r15 = r0.length;\t Catch:{ Exception -> 0x06df }\n if (r10 < r15) goto L_0x0613;\n L_0x060e:\n if (r4 != 0) goto L_0x0628;\n L_0x0610:\n r5 = r5 + 1;\n goto L_0x05b9;\n L_0x0613:\n r15 = r21[r10];\t Catch:{ Exception -> 0x06df }\n r16 = 10;\n r0 = r16;\n if (r15 == r0) goto L_0x060e;\n L_0x061b:\n r15 = r21[r10];\t Catch:{ Exception -> 0x06df }\n r16 = 58;\n r0 = r16;\n if (r15 != r0) goto L_0x0625;\n L_0x0623:\n r4 = 1;\n goto L_0x060e;\n L_0x0625:\n r10 = r10 + 1;\n goto L_0x0609;\n L_0x0628:\n r5 = r5 + 1;\n goto L_0x05b7;\n L_0x062b:\n r10 = r21[r4];\t Catch:{ Exception -> 0x06df }\n r15 = 10;\n if (r10 != r15) goto L_0x0641;\n L_0x0631:\n r10 = r4 + 1;\n r15 = r8 - r4;\n r15 = r15 + -1;\n r0 = r21;\n r1 = r21;\n java.lang.System.arraycopy(r0, r10, r1, r4, r15);\t Catch:{ Exception -> 0x06df }\n r8 = r8 + -1;\n goto L_0x05c0;\n L_0x0641:\n r10 = r21[r4];\t Catch:{ Exception -> 0x06df }\n r15 = 45;\n if (r10 == r15) goto L_0x05c4;\n L_0x0647:\n r4 = r4 + 1;\n goto L_0x05c0;\n L_0x064b:\n r2 = 8;\n r2 = r3[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 114; // 0x72 float:1.6E-43 double:5.63E-322;\n if (r2 != r4) goto L_0x0748;\n L_0x0653:\n r7 = 2;\n r4 = r3;\n r3 = r9;\n goto L_0x05de;\n L_0x0657:\n r2 = 0;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 115; // 0x73 float:1.61E-43 double:5.7E-322;\n if (r2 != r4) goto L_0x0748;\n L_0x065e:\n r2 = 1;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 115; // 0x73 float:1.61E-43 double:5.7E-322;\n if (r2 != r4) goto L_0x0748;\n L_0x0665:\n r2 = 2;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 104; // 0x68 float:1.46E-43 double:5.14E-322;\n if (r2 != r4) goto L_0x0748;\n L_0x066c:\n r2 = 3;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 45;\n if (r2 != r4) goto L_0x0748;\n L_0x0673:\n if (r20 != 0) goto L_0x0745;\n L_0x0675:\n r0 = r21;\n r2 = r0.length;\t Catch:{ Exception -> 0x06df }\n r4 = 7;\n if (r2 <= r4) goto L_0x0745;\n L_0x067b:\n r2 = 4;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 100;\n if (r2 != r4) goto L_0x06bb;\n L_0x0682:\n r2 = 1;\n L_0x0683:\n r4 = 0;\n L_0x0684:\n if (r4 < r8) goto L_0x06c4;\n L_0x0686:\n r5 = r4 + 1;\n if (r5 >= r8) goto L_0x0742;\n L_0x068a:\n r4 = r5;\n L_0x068b:\n if (r4 < r8) goto L_0x06cd;\n L_0x068d:\n r7 = r4 - r5;\n r0 = r21;\n r3 = com.jcraft.jsch.Util.j6(r0, r5, r7);\t Catch:{ Exception -> 0x0737 }\n L_0x0695:\n r7 = r4 + 1;\n if (r4 >= r8) goto L_0x073a;\n L_0x0699:\n r4 = r7;\n L_0x069a:\n if (r4 < r8) goto L_0x06d6;\n L_0x069c:\n if (r4 <= 0) goto L_0x073f;\n L_0x069e:\n r5 = r4 + -1;\n r5 = r21[r5];\t Catch:{ Exception -> 0x0737 }\n r8 = 13;\n if (r5 != r8) goto L_0x073f;\n L_0x06a6:\n r4 = r4 + -1;\n r5 = r4;\n L_0x06a9:\n if (r7 >= r5) goto L_0x073a;\n L_0x06ab:\n r4 = new java.lang.String;\t Catch:{ Exception -> 0x0737 }\n r5 = r5 - r7;\n r0 = r21;\n r4.<init>(r0, r7, r5);\t Catch:{ Exception -> 0x0737 }\n r7 = r2;\n r18 = r4;\n r4 = r3;\n r3 = r18;\n goto L_0x05de;\n L_0x06bb:\n r2 = 4;\n r2 = r21[r2];\t Catch:{ Exception -> 0x06df }\n r4 = 114; // 0x72 float:1.6E-43 double:5.63E-322;\n if (r2 != r4) goto L_0x0745;\n L_0x06c2:\n r2 = 2;\n goto L_0x0683;\n L_0x06c4:\n r5 = r21[r4];\t Catch:{ Exception -> 0x0737 }\n r7 = 32;\n if (r5 == r7) goto L_0x0686;\n L_0x06ca:\n r4 = r4 + 1;\n goto L_0x0684;\n L_0x06cd:\n r7 = r21[r4];\t Catch:{ Exception -> 0x0737 }\n r10 = 32;\n if (r7 == r10) goto L_0x068d;\n L_0x06d3:\n r4 = r4 + 1;\n goto L_0x068b;\n L_0x06d6:\n r5 = r21[r4];\t Catch:{ Exception -> 0x0737 }\n r10 = 10;\n if (r5 == r10) goto L_0x069c;\n L_0x06dc:\n r4 = r4 + 1;\n goto L_0x069a;\n L_0x06df:\n r2 = move-exception;\n L_0x06e0:\n r4 = r3;\n r3 = r9;\n goto L_0x05de;\n L_0x06e4:\n r3 = r2 instanceof java.lang.Throwable;\n if (r3 == 0) goto L_0x06f2;\n L_0x06e8:\n r3 = new com.jcraft.jsch.JSchException;\n r4 = r2.toString();\n r3.<init>(r4, r2);\n throw r3;\n L_0x06f2:\n r3 = new com.jcraft.jsch.JSchException;\n r2 = r2.toString();\n r3.<init>(r2);\n throw r3;\n L_0x06fc:\n r5 = 2;\n if (r7 != r5) goto L_0x0708;\n L_0x06ff:\n r2 = new com.jcraft.jsch.KeyPairRSA;\n r0 = r19;\n r2.<init>(r0);\n goto L_0x05e9;\n L_0x0708:\n r5 = 3;\n if (r6 != r5) goto L_0x05e9;\n L_0x070b:\n r2 = new com.jcraft.jsch.KeyPairPKCS8;\n r0 = r19;\n r2.<init>(r0);\n goto L_0x05e9;\n L_0x0714:\n r3 = r2.DW(r11);\n if (r3 == 0) goto L_0x071f;\n L_0x071a:\n r3 = 0;\n r2.v5 = r3;\n goto L_0x0059;\n L_0x071f:\n r2 = new com.jcraft.jsch.JSchException;\n r3 = new java.lang.StringBuilder;\n r4 = \"invalid privatekey: \";\n r3.<init>(r4);\n r0 = r20;\n r3 = r3.append(r0);\n r3 = r3.toString();\n r2.<init>(r3);\n throw r2;\n L_0x0737:\n r4 = move-exception;\n r7 = r2;\n goto L_0x06e0;\n L_0x073a:\n r7 = r2;\n r4 = r3;\n r3 = r9;\n goto L_0x05de;\n L_0x073f:\n r5 = r4;\n goto L_0x06a9;\n L_0x0742:\n r4 = r5;\n goto L_0x0695;\n L_0x0745:\n r2 = r7;\n goto L_0x0683;\n L_0x0748:\n r4 = r3;\n r3 = r9;\n goto L_0x05de;\n L_0x074c:\n r11 = r2;\n r12 = r8;\n goto L_0x057b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.jcraft.jsch.KeyPair.j6(com.jcraft.jsch.JSch, byte[], byte[]):com.jcraft.jsch.KeyPair\");\n }", "public static void main(String[] args) {\n System.out.print(isPowerOfFour(64));\n }", "protected void m6157c(android.content.Context r7) {\n /*\n r6 = this;\n r0 = 2;\n r1 = m6143a();\t Catch:{ ms -> 0x0065, IOException -> 0x005d }\n r6.m6138a(r0, r1);\t Catch:{ ms -> 0x0065, IOException -> 0x005d }\n L_0x0008:\n r0 = 1;\n r1 = m6150c();\t Catch:{ ms -> 0x0063, IOException -> 0x005d }\n r6.m6138a(r0, r1);\t Catch:{ ms -> 0x0063, IOException -> 0x005d }\n L_0x0010:\n r0 = 25;\n r1 = m6147b();\t Catch:{ ms -> 0x0061, IOException -> 0x005d }\n r2 = r1.longValue();\t Catch:{ ms -> 0x0061, IOException -> 0x005d }\n r6.m6137a(r0, r2);\t Catch:{ ms -> 0x0061, IOException -> 0x005d }\n L_0x001d:\n r0 = r6.a;\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r1 = r6.b;\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r1 = m6145a(r0, r1);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r2 = 14;\n r0 = 0;\n r0 = r1.get(r0);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r0 = (java.lang.Long) r0;\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r4 = r0.longValue();\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r6.m6137a(r2, r4);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r2 = 15;\n r0 = 1;\n r0 = r1.get(r0);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r0 = (java.lang.Long) r0;\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r4 = r0.longValue();\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r6.m6137a(r2, r4);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r0 = r1.size();\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r2 = 3;\n if (r0 < r2) goto L_0x005c;\n L_0x004c:\n r2 = 16;\n r0 = 2;\n r0 = r1.get(r0);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r0 = (java.lang.Long) r0;\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r0 = r0.longValue();\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n r6.m6137a(r2, r0);\t Catch:{ ms -> 0x005f, IOException -> 0x005d }\n L_0x005c:\n return;\n L_0x005d:\n r0 = move-exception;\n goto L_0x005c;\n L_0x005f:\n r0 = move-exception;\n goto L_0x005c;\n L_0x0061:\n r0 = move-exception;\n goto L_0x001d;\n L_0x0063:\n r0 = move-exception;\n goto L_0x0010;\n L_0x0065:\n r0 = move-exception;\n goto L_0x0008;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.mr.c(android.content.Context):void\");\n }", "public long mo9743h() {\n return mo9784w();\n }", "private byte m684d(byte b) {\n byte b2 = (byte) (b & TType.f577m);\n switch (b2) {\n case 0:\n return 0;\n case 1:\n case 2:\n return 2;\n case 3:\n return 3;\n case 4:\n return 6;\n case 5:\n return 8;\n case 6:\n return 10;\n case TApplicationException.f455h:\n return 4;\n case 8:\n return 11;\n case 9:\n return TType.f577m;\n case 10:\n return TType.f576l;\n case ReportPolicy.QUASI_REALTIME_POLICY /*{ENCODED_INT: 11}*/:\n return TType.f575k;\n case 12:\n return 12;\n default:\n throw new TProtocolException(\"don't know what type: \" + ((int) b2));\n }\n }", "private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }", "private static String m33067a(String str, long j, int i, String str2, String str3, int i2, int i3, int i4) {\n AppMethodBeat.m2504i(135624);\n C30065b c30065b = new C30065b();\n c30065b.field_fileFullPath = str;\n c30065b.field_appId = str2;\n c30065b.field_sdkVer = (long) i;\n c30065b.field_mediaSvrId = str3;\n c30065b.field_totalLen = (long) i2;\n c30065b.field_status = 101;\n c30065b.field_isUpload = false;\n c30065b.field_createTime = C5046bo.anU();\n c30065b.field_lastModifyTime = C5046bo.anT();\n c30065b.field_msgInfoId = j;\n c30065b.field_netTimes = 0;\n c30065b.field_type = (long) i3;\n C4990ab.m7417i(\"MicroMsg.AppMsgLogic\", \"summerbig initDownloadAttach ret[%b], rowid[%d], field_totalLen[%d], type[%d], isLargeFile[%d], destFile[%s], stack[%s]\", Boolean.valueOf(C34832a.aUq().mo10101b((C4925c) c30065b)), Long.valueOf(c30065b.xDa), Long.valueOf(c30065b.field_totalLen), Long.valueOf(c30065b.field_type), Integer.valueOf(i4), str, C5046bo.dpG());\n AppMethodBeat.m2505o(135624);\n return str3;\n }", "public static int offsetBits_sum_e() {\n return 104;\n }", "private String computeDigest(boolean paramBoolean, String paramString1, char[] paramArrayOfchar, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7) throws NoSuchAlgorithmException {\n/* 470 */ String str1, str3, str5, str2 = this.params.getAlgorithm();\n/* 471 */ boolean bool = str2.equalsIgnoreCase(\"MD5-sess\");\n/* */ \n/* 473 */ MessageDigest messageDigest = MessageDigest.getInstance(bool ? \"MD5\" : str2);\n/* */ \n/* 475 */ if (bool) {\n/* 476 */ if ((str1 = this.params.getCachedHA1()) == null) {\n/* 477 */ str3 = paramString1 + \":\" + paramString2 + \":\";\n/* 478 */ String str7 = encode(str3, paramArrayOfchar, messageDigest);\n/* 479 */ String str6 = str7 + \":\" + paramString5 + \":\" + paramString6;\n/* 480 */ str1 = encode(str6, (char[])null, messageDigest);\n/* 481 */ this.params.setCachedHA1(str1);\n/* */ } \n/* */ } else {\n/* 484 */ String str = paramString1 + \":\" + paramString2 + \":\";\n/* 485 */ str1 = encode(str, paramArrayOfchar, messageDigest);\n/* */ } \n/* */ \n/* */ \n/* 489 */ if (paramBoolean) {\n/* 490 */ str3 = paramString3 + \":\" + paramString4;\n/* */ } else {\n/* 492 */ str3 = \":\" + paramString4;\n/* */ } \n/* 494 */ String str4 = encode(str3, (char[])null, messageDigest);\n/* */ \n/* */ \n/* 497 */ if (this.params.authQop()) {\n/* 498 */ str5 = str1 + \":\" + paramString5 + \":\" + paramString7 + \":\" + paramString6 + \":auth:\" + str4;\n/* */ }\n/* */ else {\n/* */ \n/* 502 */ str5 = str1 + \":\" + paramString5 + \":\" + str4;\n/* */ } \n/* */ \n/* */ \n/* 506 */ return encode(str5, (char[])null, messageDigest);\n/* */ }", "static C7396f m22227a() {\n return C7444g.f16350k0;\n }", "public static long FNVhash64(long val) {\n // from http://en.wikipedia.org/wiki/Fowler_Noll_Vo_hash\n long hashval = FNV_offset_basis_64;\n\n for (int i = ZERO_UNDEF; i < 8; i++) {\n long octet = val & 0x00ff;\n val = val >> 8;\n\n hashval = hashval ^ octet;\n hashval = hashval * FNV_prime_64;\n // hashval = hashval ^ octet;\n }\n return Math.abs(hashval);\n }", "private static byte[] m34877a(byte[] bArr, int i, int i2, byte[] bArr2, int i3) {\n int i4 = 0;\n int i5 = (i2 > 0 ? (bArr[i] << 24) >>> 8 : 0) | (i2 > 1 ? (bArr[i + 1] << 24) >>> 16 : 0);\n if (i2 > 2) {\n i4 = (bArr[i + 2] << 24) >>> 24;\n }\n int i6 = i5 | i4;\n if (i2 == 1) {\n byte[] bArr3 = f27334a;\n bArr2[i3] = bArr3[i6 >>> 18];\n bArr2[i3 + 1] = bArr3[(i6 >>> 12) & 63];\n int i7 = i3 + 3;\n bArr2[i3 + 2] = 61;\n bArr2[i7] = 61;\n return bArr2;\n } else if (i2 == 2) {\n byte[] bArr4 = f27334a;\n bArr2[i3] = bArr4[i6 >>> 18];\n bArr2[i3 + 1] = bArr4[(i6 >>> 12) & 63];\n bArr2[i3 + 2] = bArr4[(i6 >>> 6) & 63];\n bArr2[i3 + 3] = 61;\n return bArr2;\n } else if (i2 != 3) {\n return bArr2;\n } else {\n byte[] bArr5 = f27334a;\n bArr2[i3] = bArr5[i6 >>> 18];\n bArr2[i3 + 1] = bArr5[(i6 >>> 12) & 63];\n bArr2[i3 + 2] = bArr5[(i6 >>> 6) & 63];\n bArr2[i3 + 3] = bArr5[i6 & 63];\n return bArr2;\n }\n }", "public long mo9787z() {\n long j = 0;\n for (int i = 0; i < 64; i += 7) {\n byte u = mo9782u();\n j |= ((long) (u & Byte.MAX_VALUE)) << i;\n if ((u & 128) == 0) {\n return j;\n }\n }\n throw C3606c0.m8178e();\n }", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "public long mo9743h() {\n return mo9773w();\n }", "private static int getBytes(long r23) {\n /*\n java.lang.ThreadLocal<byte[]> r0 = TEMP_NUMBER_BUFFER\n java.lang.Object r0 = r0.get()\n byte[] r0 = (byte[]) r0\n r1 = 20\n if (r0 != 0) goto L_0x0013\n byte[] r0 = new byte[r1]\n java.lang.ThreadLocal<byte[]> r2 = TEMP_NUMBER_BUFFER\n r2.set(r0)\n L_0x0013:\n r2 = -9223372036854775808\n r4 = 54\n r5 = 57\n r6 = 45\n r7 = 53\n r8 = 56\n r9 = 55\n r10 = 51\n r11 = 50\n r12 = 0\n r13 = 48\n r14 = 1\n int r15 = (r23 > r2 ? 1 : (r23 == r2 ? 0 : -1))\n if (r15 != 0) goto L_0x0076\n r0[r12] = r6\n r0[r14] = r5\n r2 = 2\n r0[r2] = r11\n r2 = 3\n r0[r2] = r11\n r2 = 4\n r0[r2] = r10\n r2 = 5\n r0[r2] = r10\n r2 = 6\n r0[r2] = r9\n r2 = 7\n r0[r2] = r11\n r2 = 8\n r0[r2] = r13\n r2 = 9\n r0[r2] = r10\n r2 = 10\n r0[r2] = r4\n r2 = 11\n r0[r2] = r8\n r2 = 12\n r0[r2] = r7\n r2 = 13\n r3 = 52\n r0[r2] = r3\n r2 = 14\n r0[r2] = r9\n r2 = 15\n r0[r2] = r9\n r2 = 16\n r0[r2] = r7\n r2 = 17\n r0[r2] = r8\n r2 = 18\n r0[r2] = r13\n r2 = 19\n r0[r2] = r8\n return r1\n L_0x0076:\n r1 = 0\n int r3 = (r23 > r1 ? 1 : (r23 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x007f\n r0[r12] = r13\n return r14\n L_0x007f:\n if (r3 >= 0) goto L_0x0088\n r0[r12] = r6\n long r15 = java.lang.Math.abs(r23)\n goto L_0x008b\n L_0x0088:\n r14 = 0\n r15 = r23\n L_0x008b:\n r17 = 9\n r19 = 10\n r21 = 1\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0099\n r17 = r21\n goto L_0x017e\n L_0x0099:\n r17 = 99\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00a3\n r17 = r19\n goto L_0x017e\n L_0x00a3:\n r17 = 999(0x3e7, double:4.936E-321)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ad\n r17 = 100\n goto L_0x017e\n L_0x00ad:\n r17 = 9999(0x270f, double:4.94E-320)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00b7\n r17 = 1000(0x3e8, double:4.94E-321)\n goto L_0x017e\n L_0x00b7:\n r17 = 99999(0x1869f, double:4.9406E-319)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00c2\n r17 = 10000(0x2710, double:4.9407E-320)\n goto L_0x017e\n L_0x00c2:\n r17 = 999999(0xf423f, double:4.94065E-318)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00ce\n r17 = 100000(0x186a0, double:4.94066E-319)\n goto L_0x017e\n L_0x00ce:\n r17 = 9999999(0x98967f, double:4.940656E-317)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00da\n r17 = 1000000(0xf4240, double:4.940656E-318)\n goto L_0x017e\n L_0x00da:\n r17 = 99999999(0x5f5e0ff, double:4.9406564E-316)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00e6\n r17 = 10000000(0x989680, double:4.9406565E-317)\n goto L_0x017e\n L_0x00e6:\n r17 = 999999999(0x3b9ac9ff, double:4.940656453E-315)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x00f2\n r17 = 100000000(0x5f5e100, double:4.94065646E-316)\n goto L_0x017e\n L_0x00f2:\n r17 = 9999999999(0x2540be3ff, double:4.940656458E-314)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0100\n r17 = 1000000000(0x3b9aca00, double:4.94065646E-315)\n goto L_0x017e\n L_0x0100:\n r17 = 99999999999(0x174876e7ff, double:4.94065645836E-313)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0110\n r17 = 10000000000(0x2540be400, double:4.9406564584E-314)\n goto L_0x017e\n L_0x0110:\n r17 = 999999999999(0xe8d4a50fff, double:4.940656458408E-312)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x011f\n r17 = 100000000000(0x174876e800, double:4.9406564584E-313)\n goto L_0x017e\n L_0x011f:\n r17 = 9999999999999(0x9184e729fff, double:4.940656458412E-311)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x012e\n r17 = 1000000000000(0xe8d4a51000, double:4.94065645841E-312)\n goto L_0x017e\n L_0x012e:\n r17 = 99999999999999(0x5af3107a3fff, double:4.9406564584124E-310)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x013d\n r17 = 10000000000000(0x9184e72a000, double:4.9406564584125E-311)\n goto L_0x017e\n L_0x013d:\n r17 = 999999999999999(0x38d7ea4c67fff, double:4.94065645841246E-309)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x014c\n r17 = 100000000000000(0x5af3107a4000, double:4.94065645841247E-310)\n goto L_0x017e\n L_0x014c:\n r17 = 9999999999999999(0x2386f26fc0ffff, double:5.431165199810527E-308)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x015b\n r17 = 1000000000000000(0x38d7ea4c68000, double:4.940656458412465E-309)\n goto L_0x017e\n L_0x015b:\n r17 = 99999999999999999(0x16345785d89ffff, double:5.620395787888204E-302)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x016a\n r17 = 10000000000000000(0x2386f26fc10000, double:5.431165199810528E-308)\n goto L_0x017e\n L_0x016a:\n r17 = 999999999999999999(0xde0b6b3a763ffff, double:7.832953389245684E-242)\n int r3 = (r15 > r17 ? 1 : (r15 == r17 ? 0 : -1))\n if (r3 > 0) goto L_0x0179\n r17 = 100000000000000000(0x16345785d8a0000, double:5.620395787888205E-302)\n goto L_0x017e\n L_0x0179:\n r17 = 1000000000000000000(0xde0b6b3a7640000, double:7.832953389245686E-242)\n L_0x017e:\n long r1 = r15 / r17\n int r3 = (int) r1\n switch(r3) {\n case 0: goto L_0x01b6;\n case 1: goto L_0x01af;\n case 2: goto L_0x01aa;\n case 3: goto L_0x01a5;\n case 4: goto L_0x019e;\n case 5: goto L_0x0199;\n case 6: goto L_0x0194;\n case 7: goto L_0x018f;\n case 8: goto L_0x018a;\n case 9: goto L_0x0185;\n default: goto L_0x0184;\n }\n L_0x0184:\n goto L_0x01bb\n L_0x0185:\n int r3 = r14 + 1\n r0[r14] = r5\n goto L_0x01ba\n L_0x018a:\n int r3 = r14 + 1\n r0[r14] = r8\n goto L_0x01ba\n L_0x018f:\n int r3 = r14 + 1\n r0[r14] = r9\n goto L_0x01ba\n L_0x0194:\n int r3 = r14 + 1\n r0[r14] = r4\n goto L_0x01ba\n L_0x0199:\n int r3 = r14 + 1\n r0[r14] = r7\n goto L_0x01ba\n L_0x019e:\n int r3 = r14 + 1\n r6 = 52\n r0[r14] = r6\n goto L_0x01ba\n L_0x01a5:\n int r3 = r14 + 1\n r0[r14] = r10\n goto L_0x01ba\n L_0x01aa:\n int r3 = r14 + 1\n r0[r14] = r11\n goto L_0x01ba\n L_0x01af:\n int r3 = r14 + 1\n r6 = 49\n r0[r14] = r6\n goto L_0x01ba\n L_0x01b6:\n int r3 = r14 + 1\n r0[r14] = r13\n L_0x01ba:\n r14 = r3\n L_0x01bb:\n int r3 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r3 != 0) goto L_0x01c0\n goto L_0x01d8\n L_0x01c0:\n java.lang.Long.signum(r17)\n long r1 = r1 * r17\n long r15 = r15 - r1\n r1 = 0\n int r3 = (r15 > r1 ? 1 : (r15 == r1 ? 0 : -1))\n if (r3 != 0) goto L_0x01d9\n L_0x01cc:\n int r1 = (r17 > r21 ? 1 : (r17 == r21 ? 0 : -1))\n if (r1 <= 0) goto L_0x01d8\n int r1 = r14 + 1\n r0[r14] = r13\n long r17 = r17 / r19\n r14 = r1\n goto L_0x01cc\n L_0x01d8:\n return r14\n L_0x01d9:\n long r17 = r17 / r19\n goto L_0x017e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.unboundid.util.ByteStringBuffer.getBytes(long):int\");\n }", "private static long find_fast(long u)\n {\n long a, b, r;\n long maxUInt = 4294967295L;\n\n u += 0xe91aaa35;\n u = maxUInt % u;\n u ^= u >> 16;\n u = maxUInt % u;\n u += u << 8;\n u = maxUInt % u;\n u ^= u >> 4;\n u = maxUInt % u;\n b = (u >> 8) & 0x1ff;\n b = maxUInt % b;\n a = (u + (u << 2)) >> 19;\n a = maxUInt % a;\n r = a ^ hash_adjust[(int)b];\n r = maxUInt % r;\n return r;\n }", "public abstract byte[] mo32305a(String str);", "private long m682c(long j) {\n return (j >> 63) ^ (j << 1);\n }" ]
[ "0.6335663", "0.569103", "0.5666162", "0.5642868", "0.56162655", "0.5581695", "0.55421484", "0.55318475", "0.5523116", "0.5517161", "0.5496091", "0.54746485", "0.538856", "0.5353623", "0.5343157", "0.53180826", "0.5296594", "0.52763236", "0.52664244", "0.52575046", "0.525201", "0.5243028", "0.52295464", "0.5217252", "0.518886", "0.5172966", "0.51714605", "0.51663834", "0.5165604", "0.51579064", "0.5157851", "0.51559657", "0.51430744", "0.5129663", "0.51219237", "0.51145554", "0.51139843", "0.510637", "0.5103002", "0.50793654", "0.5073267", "0.50694364", "0.5066496", "0.5061951", "0.5061037", "0.50586545", "0.5057772", "0.5057764", "0.50574076", "0.5053678", "0.50468266", "0.5045909", "0.5043732", "0.5038715", "0.5035078", "0.5033439", "0.50298756", "0.5025221", "0.5018562", "0.5015711", "0.49998137", "0.49974945", "0.49884015", "0.49754056", "0.49602893", "0.49547046", "0.49538416", "0.49519664", "0.4948471", "0.494843", "0.49455872", "0.4944765", "0.49412364", "0.49377772", "0.49370205", "0.49339074", "0.4931071", "0.49285075", "0.49252892", "0.49172068", "0.49169055", "0.49163973", "0.49141186", "0.49129912", "0.49052855", "0.49033293", "0.49032095", "0.49025157", "0.49023867", "0.49005347", "0.48983985", "0.48982742", "0.48979905", "0.48958173", "0.48936236", "0.4888117", "0.48877338", "0.4886106", "0.48839408", "0.48796928", "0.4876241" ]
0.0
-1
/ 651: / 652:
public void btnActualizarSecuencia() /* 653: */ { /* 654:727 */ AutorizacionDocumentoSRI autorizacionDocumentoSRI = null; /* 655:728 */ PuntoDeVenta puntoDeVenta = AppUtil.getPuntoDeVenta(); /* 656: */ try /* 657: */ { /* 658:731 */ if (puntoDeVenta != null) { /* 659:732 */ autorizacionDocumentoSRI = this.servicioDocumento.cargarDocumentoConAutorizacion(getFacturaProveedorSRI().getDocumento(), puntoDeVenta, this.facturaProveedorSRI /* 660:733 */ .getFechaEmisionRetencion()); /* 661: */ } /* 662:735 */ String numero = this.servicioSecuencia.obtenerSecuencia(getFacturaProveedorSRI().getDocumento().getSecuencia(), this.facturaProveedorSRI /* 663:736 */ .getFechaEmisionRetencion()); /* 664: */ /* 665:738 */ this.facturaProveedorSRI.setNumeroRetencion(numero); /* 666:739 */ this.facturaProveedorSRI.setAutorizacionRetencion(autorizacionDocumentoSRI.getAutorizacion()); /* 667: */ } /* 668: */ catch (ExcepcionAS2 e) /* 669: */ { /* 670:741 */ addErrorMessage(getLanguageController().getMensaje(e.getCodigoExcepcion()) + e.getMessage()); /* 671: */ } /* 672: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }", "@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private void deliver(String mb) {\n\t\t\tString[] sourceIdAndMsgAndTime = mb.split(\" \", 3);\n\t\t\tSystem.out.println(\"Received \"+ sourceIdAndMsgAndTime[1] + \" from process \"+ sourceIdAndMsgAndTime[0] +\", system time is ­­­­­­­­­­­­­\" + sourceIdAndMsgAndTime[2]);\n\t\t\t\n\t\t}", "public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}", "public void mo55254a() {\n }", "public void mo6081a() {\n }", "public void mo21867i() {\n mo21877s();\n }", "public void mo21783H() {\n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }", "public int mo11550h() {\n int i = 0;\n for (C4929d f : this.f11878e) {\n i += f.mo11569f().mo11550h();\n }\n return i + 2 + 2;\n }", "private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }", "public void mo21877s() {\n }", "public static int m8651d() {\n return 4;\n }", "@Test\n\tpublic void testIPV6WithPortAndUserinfo() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://brett@[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(\"brett\", uri.getUserinfo());\n\t}", "private static boolean m55561ua(int i) {\n return i == 6;\n }", "private String m81849m() {\n String str;\n if (this.f58083o) {\n str = UrlUtil.m84496b(UrlUtil.m84494a(this.f58071c, C6969H.m41409d(\"G738BEA0FAD3C\")));\n } else {\n str = this.f58070b;\n }\n if (!TextUtils.isEmpty(str)) {\n this.f58072d = Uri.parse(str);\n }\n return str;\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "private void m81852p() {\n String c = m81844c(C6969H.m41409d(\"G738BEA12B634AE16E80F8677F0E4D1\"));\n if (!TextUtils.isEmpty(c)) {\n if (C6969H.m41409d(\"G6F82D909BA\").equals(c)) {\n this.f58078j = false;\n } else if (C6969H.m41409d(\"G7D91C01F\").equals(c)) {\n this.f58078j = true;\n }\n }\n }", "protected void mo6255a() {\n }", "private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "private final void m134908d(String str) {\n if (!TextUtils.isEmpty(str)) {\n String str2 = C6969H.m41409d(\"G738BDC12AA7FAF3BE7039107E4B48CDA6C8ED71FAD7F\") + str + '/';\n VideoXOnlineLog.f101073b.mo121420a(C6969H.m41409d(\"G6887D15AAA23AE3BA61A9F58FBE6838D2998C8\"), str2);\n MQTTClient a = MQTTClientManager.m55413a(C6969H.m41409d(\"G4DA6F33B8A1C9F16C522B96DDCD1\"));\n if (a != null) {\n ProtoAdapter<EventMessage> gVar = EventMessage.f96677a;\n C32569u.m150513a((Object) gVar, C6969H.m41409d(\"G4C95D014AB1DAE3AF50F974DBCC4E7F659B7F028\"));\n f97550g = a.mo57249a(str2, new MQTTWirePbConverter(gVar));\n MQTTTopic<EventMessage> oVar = f97550g;\n if (oVar == null) {\n C32569u.m150511a();\n }\n oVar.mo57278a((MQTTTopicListener<EventMessage>) f97552i, true);\n MQTTTopic<EventMessage> oVar2 = f97550g;\n if (oVar2 == null) {\n C32569u.m150511a();\n }\n oVar2.mo57274a(MQTTQosLevel.LEVEL_1, true);\n }\n }\n }", "String m6857a() {\n return this.f5237h;\n }", "public final int mo50059a() {\n return 2;\n }", "@Test\n\tpublic void testIPV6WithPort() throws MalformedURIException {\n\t\tURI uri = new URI(\"ssh://[2001:db8:5:1300:212:79ff:fe89:c900]:22\");\n\t\tAssert.assertEquals(\"ssh\", uri.getScheme());\n\t\tAssert.assertEquals(\"[2001:db8:5:1300:212:79ff:fe89:c900]\", uri.getHost());\n\t\tAssert.assertEquals(22, uri.getPort());\n\t\tAssert.assertEquals(null, uri.getUserinfo());\n\t}", "private String parseGroupNameD2K(String line) {\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tsb.append(tokens[0] + \".\");\n\t\tsb.append(tokens[1].replace(';', '_'));\n\t\ttry{\n\t\t\tsb.append(tokens[4].replace('#', '.'));\n\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t// do nothing\n\t\t}\n\t\treturn sb.toString();\n\t}", "C1458cs mo7613iS();", "public void mo21794S() {\n }", "private byte m1655h() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n char charAt2 = charSequence.charAt(i3);\n this.f2520e = charAt2;\n if (charAt2 == '<') {\n return 12;\n }\n if (charAt2 == '>') {\n break;\n } else if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i4 = this.f2519d;\n if (i4 <= 0) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n int i5 = i4 - 1;\n this.f2519d = i5;\n charAt = charSequence2.charAt(i5);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n }\n this.f2519d = i;\n this.f2520e = '>';\n return 13;\n }", "public abstract void correctlyParsedUtterance(long ms);", "private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }", "public final String[] mo24226W(C7620bi c7620bi) {\n int i = 1;\n AppMethodBeat.m2504i(113302);\n String[] strArr = new String[2];\n String str = c7620bi.field_content;\n if (C5046bo.isNullOrNil(str)) {\n strArr[0] = \"\";\n strArr[1] = \"\";\n AppMethodBeat.m2505o(113302);\n return strArr;\n }\n int i2;\n String str2;\n if (c7620bi.field_isSend == 0) {\n i2 = 1;\n } else {\n i2 = 0;\n }\n if (C1855t.m3896kH(c7620bi.field_talker) && i2 != 0) {\n i2 = C1829bf.m3761ox(str);\n if (i2 != -1) {\n str = str.substring(i2 + 1).trim();\n }\n }\n C5136b Ro = ((C6982j) C1720g.m3528K(C6982j.class)).bOr().mo15261Ro(str);\n if (Ro.dua()) {\n str = Ro.label;\n str2 = Ro.eUu;\n strArr[0] = str;\n strArr[1] = str2;\n } else {\n strArr[0] = Ro.label;\n strArr[1] = \"\";\n }\n if (C5046bo.isNullOrNil(strArr[0]) && C5046bo.isNullOrNil(strArr[1])) {\n C4990ab.m7416i(\"MicroMsg.LocationServer\", \"pull from sever\");\n long j = c7620bi.field_msgId;\n if (!(this.nJC == null || this.nJC.contains(Long.valueOf(j)))) {\n str2 = c7620bi.field_content;\n if (c7620bi.field_isSend != 0) {\n i = 0;\n }\n if (C1855t.m3896kH(c7620bi.field_talker) && i != 0) {\n i = C1829bf.m3761ox(str2);\n if (i != -1) {\n str2 = str2.substring(i + 1).trim();\n }\n }\n Ro = C5136b.apD(str2);\n this.nJC.add(Long.valueOf(j));\n C18657c.agw().mo33924a(Ro.nJu, Ro.nJv, this.nJD, Long.valueOf(c7620bi.field_msgId));\n }\n }\n AppMethodBeat.m2505o(113302);\n return strArr;\n }", "public int mo36g() {\n return 4;\n }", "public void mo9233aH() {\n }", "public void method_1453(class_112 var1) {\r\n int var3 = var1.method_518();\r\n String[] var2 = class_752.method_4253();\r\n this.field_1677 = Maps.newHashMap();\r\n int var4 = 0;\r\n\r\n while(var4 < var3) {\r\n class_1601 var5 = class_1698.method_9394(var1.method_524(32767));\r\n int var6 = var1.method_518();\r\n if(var2 != null) {\r\n if(var5 != null) {\r\n this.field_1677.put(var5, Integer.valueOf(var6));\r\n }\r\n\r\n ++var4;\r\n }\r\n\r\n if(var2 == null) {\r\n break;\r\n }\r\n }\r\n\r\n }", "private final void m134909e(String str) {\n if (!TextUtils.isEmpty(str)) {\n String str2 = C6969H.m41409d(\"G738BDC12AA7FAF3BE7039107E4B48CC36186D40EBA22E4\") + str + '/';\n VideoXOnlineLog.f101073b.mo121420a(C6969H.m41409d(\"G6887D15ABC3FA624E900D05CFDF5CAD429D99501A2\"), str2);\n MQTTClient a = MQTTClientManager.m55413a(C6969H.m41409d(\"G4DA6F33B8A1C9F16C522B96DDCD1\"));\n if (a != null) {\n ProtoAdapter<EventMessage> gVar = EventMessage.f96677a;\n C32569u.m150513a((Object) gVar, C6969H.m41409d(\"G4C95D014AB1DAE3AF50F974DBCC4E7F659B7F028\"));\n f97551h = a.mo57249a(str2, new MQTTWirePbConverter(gVar));\n MQTTTopic<EventMessage> oVar = f97551h;\n if (oVar == null) {\n C32569u.m150511a();\n }\n oVar.mo57278a((MQTTTopicListener<EventMessage>) f97552i, true);\n MQTTTopic<EventMessage> oVar2 = f97551h;\n if (oVar2 == null) {\n C32569u.m150511a();\n }\n oVar2.mo57274a(MQTTQosLevel.LEVEL_1, true);\n }\n }\n }", "public void testYourFifthPartition() {\n\tSystem.out.print(\"\\nTesting Fifth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:1/a?key=value\", true); // domain + port + path + query\n executeTestPrintResult(\"http://abc.com/a?key=value\", true); // domain + path + query\n executeTestPrintResult(\"http://abc.com:1/a\", true); // domain + port + path\n executeTestPrintResult(\"http://abc.com:1?key=value\", true); // domain + port + query\n\n executeTestPrintResult(\"http://abc.com/a/b:80\", false); // domain + path + port\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c\", false); // domain + query + path\n executeTestPrintResult(\"http://abc.com?key=value:80\", false); // domain + query + port\n executeTestPrintResult(\"http://abc.com:1?key=value/a/b/c\", false); // domain + port + query + path\n executeTestPrintResult(\"http://abc.com?key=value/a/b/c:80\", false); // domain + query + path + port\n executeTestPrintResult(\"http://abc.com?key=value:80/a/b/c\", false); // domain + query + port + path\n executeTestPrintResult(\"http://abc.com/a/b/c:80?key=value\", false); // domain + path + port + query\n executeTestPrintResult(\"http://abc.com/a/b/c?key=value:80\", false); // domain + path + query + port\n\t \n }", "void mo1507n();", "public static void m1551s(String str) {\n if (m1550n(3)) {\n Log.d(AdRequest.LOGTAG, str);\n }\n }", "public int mo4451d() {\n this.f2519d = 0;\n int i = 0;\n int i2 = 0;\n int i3 = 0;\n while (this.f2519d < this.f2518c && i == 0) {\n byte b = mo4450b();\n if (b != 0) {\n if (b == 1 || b == 2) {\n if (i3 == 0) {\n return 1;\n }\n } else if (b != 9) {\n switch (b) {\n case 14:\n case 15:\n i3++;\n i2 = -1;\n continue;\n case 16:\n case 17:\n i3++;\n i2 = 1;\n continue;\n case 18:\n i3--;\n i2 = 0;\n continue;\n }\n }\n } else if (i3 == 0) {\n return -1;\n }\n i = i3;\n }\n if (i == 0) {\n return 0;\n }\n if (i2 != 0) {\n return i2;\n }\n while (this.f2519d > 0) {\n switch (mo4449a()) {\n case 14:\n case 15:\n if (i == i3) {\n return -1;\n }\n break;\n case 16:\n case 17:\n if (i == i3) {\n return 1;\n }\n break;\n case 18:\n i3++;\n continue;\n }\n i3--;\n }\n return 0;\n }", "private String m1032a(String str, int i) {\n String[] split = this.f682B.split(\"\\\\*\")[i].split(MiPushClient.ACCEPT_TIME_SEPARATOR);\n if (str.equals(\"lac\")) {\n return split[0];\n }\n if (str.equals(\"cellid\")) {\n return split[1];\n }\n if (str.equals(\"signal\")) {\n return split[2];\n }\n return null;\n }", "public static void m22735h() {\n if (f20301b.mo18963a()) {\n f20301b.mo18962a(C7268n.m22763a().mo18998b());\n }\n }", "Info mo7564ix();", "private static String m72668a(Map<String, String> map) {\n String str = \"msgId\";\n try {\n StringBuilder sb = new StringBuilder();\n sb.append(System.currentTimeMillis());\n sb.append(\"__xxx__\");\n sb.append(AppLog.getServerDeviceId());\n map.put(str, sb.toString());\n return f58217a.mo58025a(f58218b, map);\n } catch (Exception unused) {\n return \"\";\n }\n }", "public void mo3749d() {\n }", "public interface Stalk57 extends Stalk {\n /*\n 57 S0 DD Sat Info: S number of sats, DD horiz. dillution of position, if S=1 -> DD=0x94\n Corresponding NMEA sentences: GGA, GSA\n */\n public Integer getSats();\n public Integer getHDOP();\n}", "String mo10312id();", "private C2101h m7462e() {\n int i = this.f5790b.f5938a.f5889a;\n if (this.f5790b.f5952o != null) {\n return this.f5790b.f5952o;\n }\n return this.f5791c.m7469a(i);\n }", "private void m9222a(C5915m c5915m) {\n int i = 0;\n switch (c5915m.dRL()) {\n case 0:\n C31085l.m50143a(this.AAJ, 0, (long) c5915m.readByte());\n return;\n case 2:\n C31085l.m50143a(this.AAJ, 2, (long) c5915m.readShort());\n return;\n case 3:\n C31085l.m50144b(this.AAJ, 3, (long) c5915m.readChar());\n return;\n case 4:\n C31085l.m50143a(this.AAJ, 4, (long) c5915m.readInt());\n return;\n case 6:\n C31085l.m50143a(this.AAJ, 6, c5915m.readLong());\n return;\n case 16:\n C31085l.m50145c(this.AAJ, 16, ((long) Float.floatToIntBits(c5915m.readFloat())) << 32);\n return;\n case 17:\n C31085l.m50145c(this.AAJ, 17, Double.doubleToLongBits(c5915m.readDouble()));\n return;\n case 23:\n C31085l.m50144b(this.AAJ, 23, (long) C5920a.this.mo12572RL(c5915m.dRP()));\n return;\n case 24:\n C31085l.m50144b(this.AAJ, 24, (long) C5920a.this.mo12573RM(c5915m.dRQ()));\n return;\n case 25:\n C31085l.m50144b(this.AAJ, 25, (long) C5920a.this.mo12575RO(c5915m.dRR()));\n return;\n case 26:\n C31085l.m50144b(this.AAJ, 26, (long) C5920a.this.mo12576RP(c5915m.dRT()));\n return;\n case 27:\n C31085l.m50144b(this.AAJ, 27, (long) C5920a.this.mo12575RO(c5915m.dRS()));\n return;\n case C31128d.MIC_BASE_CHANNELSHARPEN /*28*/:\n m9223id(28, 0);\n mo12590c(c5915m);\n return;\n case 29:\n m9223id(29, 0);\n mo12589b(c5915m);\n return;\n case 30:\n c5915m.dRU();\n m9223id(30, 0);\n return;\n case 31:\n if (c5915m.readBoolean()) {\n i = 1;\n }\n m9223id(31, i);\n return;\n default:\n throw new C36548j(\"Unexpected type: \" + Integer.toHexString(c5915m.dRL()));\n }\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }", "private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }", "private void m6556g() {\n m6561c();\n m6557h();\n m6558i();\n }", "private static String m21400e() {\n try {\n return new BufferedReader(new FileReader(new File(\"/sys/class/net/wlan0/address\"))).readLine();\n } catch (Throwable th) {\n C5205o.m21464a(th);\n return \"02:00:00:00:00:00\";\n }\n }", "public int mo36g() {\n return 8;\n }", "public void mo21782G() {\n }", "public final void mo61102n() {\n int i = this.f110627N % this.f110626M;\n if (i <= this.f110626M / 2) {\n mo5521a(-i, 0);\n } else {\n mo5521a(this.f110626M - i, 0);\n }\n }", "@Test(timeout = 4000)\n public void test48() throws Throwable {\n String string0 = EWrapperMsgGenerator.realtimeBar(1, 845L, 251L, (-2474L), 1521.6451568161, 845L, 0L, 1, 3197);\n assertEquals(\"id=1 time = 845 open=251.0 high=-2474.0 low=1521.6451568161 close=845.0 volume=0 count=3197 WAP=1.0\", string0);\n }", "private static void m7412c(C2063i c2063i) throws ParserException {\n int a = c2063i.m7399a(6) + 1;\n for (int i = 0; i < a; i++) {\n int a2 = c2063i.m7399a(16);\n int a3;\n switch (a2) {\n case 0:\n c2063i.m7402b(8);\n c2063i.m7402b(16);\n c2063i.m7402b(16);\n c2063i.m7402b(6);\n c2063i.m7402b(8);\n a3 = c2063i.m7399a(4) + 1;\n for (a2 = 0; a2 < a3; a2++) {\n c2063i.m7402b(8);\n }\n break;\n case 1:\n int a4;\n a3 = c2063i.m7399a(5);\n int[] iArr = new int[a3];\n int i2 = -1;\n for (a2 = 0; a2 < a3; a2++) {\n iArr[a2] = c2063i.m7399a(4);\n if (iArr[a2] > i2) {\n i2 = iArr[a2];\n }\n }\n int[] iArr2 = new int[(i2 + 1)];\n for (i2 = 0; i2 < iArr2.length; i2++) {\n iArr2[i2] = c2063i.m7399a(3) + 1;\n a4 = c2063i.m7399a(2);\n if (a4 > 0) {\n c2063i.m7402b(8);\n }\n for (int i3 = 0; i3 < (1 << a4); i3++) {\n c2063i.m7402b(8);\n }\n }\n c2063i.m7402b(2);\n int a5 = c2063i.m7399a(4);\n i2 = 0;\n a4 = 0;\n for (int i4 = 0; i4 < a3; i4++) {\n i2 += iArr2[iArr[i4]];\n while (a4 < i2) {\n c2063i.m7402b(a5);\n a4++;\n }\n }\n break;\n default:\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"floor type greater than 1 not decodable: \");\n stringBuilder.append(a2);\n throw new ParserException(stringBuilder.toString());\n }\n }\n }", "public abstract void incorrectlyParsedUtterance(long ms);", "public void mo44053a() {\n }", "private static C10387b m26008a(String str) {\n String str2;\n int i;\n if (str == null) {\n return null;\n }\n int indexOf = str.indexOf(44);\n if (indexOf >= 0) {\n str2 = str.substring(0, indexOf);\n i = indexOf + 1;\n } else {\n str2 = \"\";\n i = 0;\n }\n int indexOf2 = str.indexOf(47, i);\n String str3 = \"LogSamplerImpl\";\n if (indexOf2 <= 0) {\n String str4 = \"Failed to parse the rule: \";\n String valueOf = String.valueOf(str);\n Log.e(str3, valueOf.length() != 0 ? str4.concat(valueOf) : new String(str4));\n return null;\n }\n try {\n long parseLong = Long.parseLong(str.substring(i, indexOf2));\n long parseLong2 = Long.parseLong(str.substring(indexOf2 + 1));\n if (parseLong < 0 || parseLong2 < 0) {\n StringBuilder sb = new StringBuilder(72);\n sb.append(\"negative values not supported: \");\n sb.append(parseLong);\n sb.append(Constants.URL_PATH_DELIMITER);\n sb.append(parseLong2);\n Log.e(str3, sb.toString());\n return null;\n }\n C10388a h = C10387b.m26478h();\n h.mo28112a(str2);\n h.mo28111a(parseLong);\n h.mo28113b(parseLong2);\n return (C10387b) h.mo27817c();\n } catch (NumberFormatException e) {\n String str5 = \"parseLong() failed while parsing: \";\n String valueOf2 = String.valueOf(str);\n Log.e(str3, valueOf2.length() != 0 ? str5.concat(valueOf2) : new String(str5), e);\n return null;\n }\n }", "public void mo55562a() {\n new C3547h(this, System.currentTimeMillis(), new C3623h()).mo55437a();\n C3754u5.m1743f().mo55859a();\n }", "@Test\n\tpublic void testGenerateHopping() {\n\t\tString posStr = \"xxxxxBxWWxWxBBBBxxxxxxx\";\n\t\tMorrisBoard input = new MorrisBoard(posStr);\n\t\tList<MorrisBoard> output = MorrisBase.generateHopping(input);\n\t\tassertTrue(output.size() == 49);\n\t}", "private byte m1653f() {\n char charAt;\n int i = this.f2519d;\n do {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n charAt = charSequence.charAt(i3);\n this.f2520e = charAt;\n if (charAt == '&') {\n return 12;\n }\n } while (charAt != ';');\n this.f2519d = i;\n this.f2520e = ';';\n return 13;\n }", "public static int m112616c() {\n return C34943c.f91121q;\n }", "static long m5599a(String str) {\n String[] split = str.split(\"\\\\:\");\n byte[] bArr = new byte[6];\n int i = 0;\n while (i < 6) {\n try {\n bArr[i] = (byte) Integer.parseInt(split[i], 16);\n i++;\n } catch (NumberFormatException unused) {\n return 0;\n }\n }\n return ((((long) bArr[0]) & 255) << 40) | ((((long) bArr[3]) & 255) << 16) | (((long) bArr[5]) & 255) | ((((long) bArr[4]) & 255) << 8) | ((((long) bArr[2]) & 255) << 24) | ((((long) bArr[1]) & 255) << 32);\n }", "public abstract String mo9751p();", "public void mo55583c() {\n C3561h5.m954c().mo55465a().execute(new C3629m());\n }", "C4945r5 mo19056B();", "public void print1T0255(){\n StringBuilder out = new StringBuilder();\n for (int i = 1; i <= 255; i++){\n out.append( i + \" \");\n }\n System.out.println( out.toString());\n }", "public final byte mo27873c() {\n return 6;\n }", "public int mo4452e() {\n /*\n r7 = this;\n int r0 = r7.f2518c\n r7.f2519d = r0\n r0 = 0\n r1 = 0\n r2 = 0\n L_0x0007:\n int r3 = r7.f2519d\n if (r3 <= 0) goto L_0x003b\n byte r3 = r7.mo4449a()\n r4 = -1\n if (r3 == 0) goto L_0x0034\n r5 = 1\n if (r3 == r5) goto L_0x002e\n r6 = 2\n if (r3 == r6) goto L_0x002e\n r6 = 9\n if (r3 == r6) goto L_0x0007\n switch(r3) {\n case 14: goto L_0x0028;\n case 15: goto L_0x0028;\n case 16: goto L_0x0025;\n case 17: goto L_0x0025;\n case 18: goto L_0x0022;\n default: goto L_0x001f;\n }\n L_0x001f:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0022:\n int r1 = r1 + 1\n goto L_0x0007\n L_0x0025:\n if (r2 != r1) goto L_0x002b\n return r5\n L_0x0028:\n if (r2 != r1) goto L_0x002b\n return r4\n L_0x002b:\n int r1 = r1 + -1\n goto L_0x0007\n L_0x002e:\n if (r1 != 0) goto L_0x0031\n return r5\n L_0x0031:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0034:\n if (r1 != 0) goto L_0x0037\n return r4\n L_0x0037:\n if (r2 != 0) goto L_0x0007\n L_0x0039:\n r2 = r1\n goto L_0x0007\n L_0x003b:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.text.BidiFormatter.C0510a.mo4452e():int\");\n }", "protected String mo3406c() {\n return \"Minute\";\n }", "public void mo21788M() {\n }", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateNewsBulletin(11, 13, \"E{Iw-^%H:1$e/\", \"LW)W-|=b,lie*CW\");\n assertEquals(\"MsgId=11 :: MsgType=13 :: Origin=LW)W-|=b,lie*CW :: Message=E{Iw-^%H:1$e/\", string0);\n }", "public void mo55462a() {\n C3615m3.this.f1448g.mo55369a(this.f1459a);\n C3615m3.this.f1448g.mo55371a(C3552h2.m914h().mo55455c());\n }", "public void mo15790b() {\n long a = C4472i3.m15480a();\n String str = f11337e;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Messaging session stopped. Adding new messaging session timestamp: \");\n sb.append(a);\n C1557c.m7458a(str, sb.toString());\n this.f11338a.edit().putLong(\"messaging_session_timestamp\", a).apply();\n this.f11341d = false;\n }", "public final void mo66559hj() {\n int hl = m72695hl() | m72696hm();\n m72697hn();\n if (hl != 0) {\n m72694hk();\n notifyChanged();\n }\n }", "public final void mo7596sH(String str) {\n }", "@Test(timeout = 4000)\n public void test136() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n stringReader0.read();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\":\", token0.toString());\n }", "public String mo81386a() {\n String d = C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\");\n WebUtil.m68654a(d, C6969H.m41409d(\"G6691DC1DB63E9E3BEA54D0\") + this.f58070b);\n if (TextUtils.isEmpty(this.f58070b)) {\n return \"\";\n }\n this.f58071c = Uri.parse(this.f58070b);\n this.f58083o = m81839a(this.f58071c.getScheme());\n String m = m81849m();\n m81850n();\n m81852p();\n m81853q();\n m81854r();\n m81855s();\n m81856t();\n return m;\n }", "String m6946g() {\n return C1110i.m6017b(m6452q(), \"com.crashlytics.ApiEndpoint\");\n }", "public final void mo56353a(String str) {\n C7573i.m23587b(str, \"msg\");\n this.f56252a.mo38740a(str);\n }", "String canonHr(String s) {\n List<String> l = StringUtil.breakAt(s, \":\");\n if (l.size() == 2) {\n return l.get(0) + \":\" + l.get(1).toUpperCase();\n }\n return s.toUpperCase();\n }", "private static String m61436a(C18846s sVar, StringBuilder sb) {\n if (sVar.f50796f != null) {\n sb.ensureCapacity(sVar.f50796f.length() + 50);\n sb.append(sVar.f50796f);\n } else if (sVar.f50794d != null) {\n String uri = sVar.f50794d.toString();\n sb.ensureCapacity(uri.length() + 50);\n sb.append(uri);\n } else {\n sb.ensureCapacity(50);\n sb.append(sVar.f50795e);\n }\n sb.append(10);\n if (sVar.f50803m != 0.0f) {\n sb.append(\"rotation:\");\n sb.append(sVar.f50803m);\n if (sVar.f50806p) {\n sb.append('@');\n sb.append(sVar.f50804n);\n sb.append('x');\n sb.append(sVar.f50805o);\n }\n sb.append(10);\n }\n if (sVar.mo50072d()) {\n sb.append(\"resize:\");\n sb.append(sVar.f50798h);\n sb.append('x');\n sb.append(sVar.f50799i);\n sb.append(10);\n }\n if (sVar.f50800j) {\n sb.append(\"centerCrop\\n\");\n } else if (sVar.f50801k) {\n sb.append(\"centerInside\\n\");\n }\n if (sVar.f50797g != null) {\n int size = sVar.f50797g.size();\n for (int i = 0; i < size; i++) {\n sb.append(((C18802aa) sVar.f50797g.get(i)).mo50000a());\n sb.append(10);\n }\n }\n return sb.toString();\n }", "public void mo3376r() {\n }", "public void testYourSecondPartition() {\n\tSystem.out.print(\"\\nTesting Second Partition...\\n\");\n executeTestPrintResult(\"http://abc.com:65535\", true); // max allowed port number\n executeTestPrintResult(\"http://abc.com:0\", true); // min allowed port number\n executeTestPrintResult(\"http://abc.com:1\", true); // 1 digit port number \n executeTestPrintResult(\"http://abc.com:99\", true); // 2 digit port number \n executeTestPrintResult(\"http://abc.com:999\", true); // 3 digit port number \n executeTestPrintResult(\"http://abc.com:1000\", true); // 4 digit port number \n executeTestPrintResult(\"http://abc.com:65536\", false); // port number too high \n executeTestPrintResult(\"http://abc.com:-1\", false); // negative port\n executeTestPrintResult(\"http://abc.com:a\", false); // letter in port\n executeTestPrintResult(\"http://abc.com:\", false); // empty port \n executeTestPrintResult(\":123\", false); // no domain \n }", "public final int mo2206a() {\n int a = C0455e.m1393a();\n new StringBuilder(f773z[12]).append(a);\n ac.m1576a();\n return a;\n }", "public int mo36g() {\n return 2;\n }", "public int arn() {\n return 383;\n }" ]
[ "0.5671403", "0.5601668", "0.5331335", "0.52648604", "0.5230337", "0.51746917", "0.51746917", "0.51746917", "0.51746917", "0.51746917", "0.51746917", "0.51746917", "0.51657397", "0.513648", "0.51222634", "0.5112768", "0.51021695", "0.5098867", "0.5096371", "0.5092556", "0.5072665", "0.5054266", "0.50511956", "0.50511426", "0.5049889", "0.50365037", "0.50318325", "0.503001", "0.50281554", "0.501832", "0.49941364", "0.49894494", "0.49755153", "0.49727494", "0.49582916", "0.49457797", "0.49388435", "0.49349", "0.4926477", "0.49224803", "0.49194828", "0.49188194", "0.49140093", "0.49109218", "0.49020153", "0.48904362", "0.488826", "0.48635462", "0.48599333", "0.48552626", "0.48537818", "0.48489624", "0.48413104", "0.48412296", "0.48378918", "0.48293528", "0.4826356", "0.48219696", "0.48217955", "0.48198852", "0.48173007", "0.48166695", "0.4813857", "0.48123467", "0.4810141", "0.4809793", "0.4809589", "0.48076412", "0.48044074", "0.4803972", "0.48034284", "0.47946945", "0.47917184", "0.47859854", "0.4783362", "0.47821626", "0.47756684", "0.47743362", "0.4771931", "0.47715345", "0.47696906", "0.4767605", "0.47641227", "0.47541344", "0.4751102", "0.47465864", "0.4744768", "0.47416627", "0.47392505", "0.47375005", "0.4733262", "0.4732981", "0.4729569", "0.47224027", "0.4722227", "0.47214675", "0.4720582", "0.47205657", "0.4717382", "0.47128394", "0.47125286" ]
0.0
-1
/ 673: / 674:
public void cargarListaTipoComprobanteSRI() /* 675: */ { /* 676:746 */ this.listaTipoComprobanteSRI = this.servicioSRI.buscarPorTipoIdentificacion(this.facturaProveedorSRI.getTipoIdentificacion()); /* 677: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getUnknown72();", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "public void method_4270() {}", "private void m50366E() {\n }", "public void skystonePos6() {\n }", "public void mo21877s() {\n }", "public void mo21782G() {\n }", "public int method_6437() {\r\n return this.field_6227;\r\n }", "protected void mo6255a() {\n }", "public void mo21794S() {\n }", "Info mo7564ix();", "public void mo38117a() {\n }", "public void mo9233aH() {\n }", "public void mo3376r() {\n }", "public void mo21879u() {\n }", "public void mo21783H() {\n }", "public void mo21785J() {\n }", "public void mo21779D() {\n }", "public void mo21787L() {\n }", "public void mo3749d() {\n }", "public abstract long mo13681c();", "public void mo6081a() {\n }", "private void m50367F() {\n }", "public void mo12628c() {\n }", "void mo72114c();", "public int method_2436() {\r\n return 16;\r\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "public void mo21789N() {\n }", "public final byte mo27873c() {\n return 6;\n }", "public void mo44053a() {\n }", "public void mo56167c() {\n }", "public final void mo51373a() {\n }", "static void feladat6() {\n\t}", "public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }", "public void mo6944a() {\n }", "public void mo21781F() {\n }", "public void mo21878t() {\n }", "public void mo21792Q() {\n }", "void mo72113b();", "public void mo21780E() {\n }", "public void mo21867i() {\n mo21877s();\n }", "public abstract long mo9743h();", "public void mo21791P() {\n }", "public void mo37873b() {\n C13262e eVar = C13262e.this;\n eVar.f34192f.mo38031a(eVar);\n }", "public void mo21784I() {\n }", "public abstract String mo13682d();", "public void mo2471e() {\n }", "void mo21073d();", "public void skystonePos4() {\n }", "public static int m8655e() {\n return 8;\n }", "public void mo21793R() {\n }", "public void mo23813b() {\n }", "private void a(java.lang.String r6, java.lang.StringBuilder r7) {\n /*\n r5 = this;\n r0 = F;\n r1 = J;\n r2 = 35;\n r1 = r1[r2];\n r1 = r6.indexOf(r1);\n if (r1 <= 0) goto L_0x0057;\n L_0x000e:\n r2 = J;\n r3 = 38;\n r2 = r2[r3];\n r2 = r2.length();\n r2 = r2 + r1;\n r3 = r6.charAt(r2);\n r4 = 43;\n if (r3 != r4) goto L_0x0039;\n L_0x0021:\n r3 = 59;\n r3 = r6.indexOf(r3, r2);\n if (r3 <= 0) goto L_0x0032;\n L_0x0029:\n r3 = r6.substring(r2, r3);\t Catch:{ RuntimeException -> 0x0072 }\n r7.append(r3);\t Catch:{ RuntimeException -> 0x0072 }\n if (r0 == 0) goto L_0x0039;\n L_0x0032:\n r2 = r6.substring(r2);\t Catch:{ RuntimeException -> 0x0072 }\n r7.append(r2);\t Catch:{ RuntimeException -> 0x0072 }\n L_0x0039:\n r2 = J;\t Catch:{ RuntimeException -> 0x0074 }\n r3 = 37;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x0074 }\n r2 = r6.indexOf(r2);\t Catch:{ RuntimeException -> 0x0074 }\n r3 = J;\t Catch:{ RuntimeException -> 0x0074 }\n r4 = 36;\n r3 = r3[r4];\t Catch:{ RuntimeException -> 0x0074 }\n r3 = r3.length();\t Catch:{ RuntimeException -> 0x0074 }\n r2 = r2 + r3;\n r1 = r6.substring(r2, r1);\t Catch:{ RuntimeException -> 0x0074 }\n r7.append(r1);\t Catch:{ RuntimeException -> 0x0074 }\n if (r0 == 0) goto L_0x005e;\n L_0x0057:\n r0 = l(r6);\t Catch:{ RuntimeException -> 0x0074 }\n r7.append(r0);\t Catch:{ RuntimeException -> 0x0074 }\n L_0x005e:\n r0 = J;\n r1 = 39;\n r0 = r0[r1];\n r0 = r7.indexOf(r0);\n if (r0 <= 0) goto L_0x0071;\n L_0x006a:\n r1 = r7.length();\t Catch:{ RuntimeException -> 0x0076 }\n r7.delete(r0, r1);\t Catch:{ RuntimeException -> 0x0076 }\n L_0x0071:\n return;\n L_0x0072:\n r0 = move-exception;\n throw r0;\n L_0x0074:\n r0 = move-exception;\n throw r0;\n L_0x0076:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.lang.StringBuilder):void\");\n }", "void m63698a() {\n m63702c();\n m63701b();\n }", "void mo21076g();", "void mo21074e();", "public void m23075a() {\n }", "public void mo55254a() {\n }", "public abstract int mo9742g();", "public abstract int mo9754s();", "public void mo3370l() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public int mo9741f() {\n return mo9774x();\n }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "boolean hasUnknown73();", "public void mo21786K() {\n }", "void mo21072c();", "void m1864a() {\r\n }", "C1458cs mo7613iS();", "private C2101h m7462e() {\n int i = this.f5790b.f5938a.f5889a;\n if (this.f5790b.f5952o != null) {\n return this.f5790b.f5952o;\n }\n return this.f5791c.m7469a(i);\n }", "public abstract void mo6549b();", "public abstract void mo53562a(C18796a c18796a);", "public void mo8738a() {\n }", "public void mo21795T() {\n }", "public static String solution() {\r\n\t\treturn \"73162890\";\r\n\t}", "private void level7() {\n }", "public int mo9742g() {\n return mo9783v();\n }", "public void mo2740a() {\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "void mo3194r();", "static void feladat7() {\n\t}", "public int mo9742g() {\n return mo9772v();\n }", "public void mo9848a() {\n }", "void m8368b();", "public void mo12930a() {\n }", "public int mo36g() {\n return 4;\n }", "public abstract String mo9751p();", "void mo57277b();", "public int mo3361f() {\n return 1;\n }", "void mo56163g();", "public void mo3946e() {\n m25427g();\n }", "static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "@Override\n\tpublic void challenge6() {\n\n\t}", "public abstract int mo8526p();" ]
[ "0.62443024", "0.6220893", "0.62169695", "0.61749494", "0.6120871", "0.61065114", "0.60831404", "0.6073197", "0.600204", "0.5999412", "0.59980416", "0.59747475", "0.5950697", "0.59301656", "0.59272444", "0.5925242", "0.59090424", "0.58942264", "0.5886906", "0.5882789", "0.58671963", "0.5864726", "0.5855688", "0.5853861", "0.58316976", "0.5830197", "0.579977", "0.5795372", "0.5790104", "0.5786567", "0.5781369", "0.57806844", "0.577949", "0.5779185", "0.57777554", "0.5775893", "0.576911", "0.5767487", "0.5765023", "0.57611144", "0.5754304", "0.5752602", "0.5752049", "0.5745125", "0.57404256", "0.57399255", "0.57376033", "0.5727679", "0.57204837", "0.57145417", "0.57114", "0.5708881", "0.5706881", "0.5702939", "0.5701759", "0.5694585", "0.5692945", "0.5690563", "0.5690216", "0.5689813", "0.5686755", "0.5683982", "0.56678116", "0.56678116", "0.56678116", "0.56678116", "0.56678116", "0.56678116", "0.56678116", "0.56669366", "0.5666698", "0.56638", "0.56637317", "0.56628263", "0.5660196", "0.56547993", "0.56428665", "0.56377953", "0.5636427", "0.56260157", "0.5622252", "0.56199485", "0.56110346", "0.5608959", "0.5606707", "0.56022227", "0.56015724", "0.560104", "0.5599919", "0.55962694", "0.5596035", "0.5588991", "0.5587876", "0.5587578", "0.5586857", "0.5584903", "0.55798185", "0.55720127", "0.55670583", "0.5565914", "0.55583537" ]
0.0
-1
/ 678: / 679:
public void cargarListaCreditoTributarioSRI() /* 680: */ { /* 681:750 */ this.listaCreditoTributarioSRI = this.servicioCreditoTributario.buscarPorTipoComprobanteSRI(this.facturaProveedorSRI.getTipoComprobanteSRI(), this.facturaProveedorSRI /* 682:751 */ .getTipoIdentificacion()); /* 683: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public void mo21877s() {\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "public void method_4270() {}", "long getUnknown72();", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "public int arn() {\n return 383;\n }", "public int method_6437() {\r\n return this.field_6227;\r\n }", "public void mo21794S() {\n }", "public void mo21782G() {\n }", "public void mo21783H() {\n }", "public void mo9233aH() {\n }", "public void mo21867i() {\n mo21877s();\n }", "C1458cs mo7613iS();", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo21878t() {\n }", "private void m50366E() {\n }", "public void mo55254a() {\n }", "public static int m8655e() {\n return 8;\n }", "public void mo21789N() {\n }", "public void mo6081a() {\n }", "public void mo3376r() {\n }", "public static String solution() {\r\n\t\treturn \"73162890\";\r\n\t}", "public void mo21879u() {\n }", "void mo5875b(String str, long j);", "public int mo36g() {\n return 8;\n }", "public void mo21779D() {\n }", "public void mo21785J() {\n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public void mo21787L() {\n }", "public void mo21792Q() {\n }", "public void mo56167c() {\n }", "public int mo36g() {\n return 4;\n }", "public void mo38117a() {\n }", "C2451d mo3408a(C2457e c2457e);", "public int method_2436() {\r\n return 16;\r\n }", "public abstract int mo9754s();", "public void mo12628c() {\n }", "static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public void mo3749d() {\n }", "public final byte mo27873c() {\n return 6;\n }", "public void mo21791P() {\n }", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "public void mo21784I() {\n }", "String mo21078i();", "public abstract long mo9743h();", "public abstract int mo9749n();", "public void mo9848a() {\n }", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public void mo4683c() {\n mo4679a(3);\n }", "public abstract String mo9751p();", "public void mo21788M() {\n }", "@Override\n\tpublic void challenge6() {\n\n\t}", "public int mo9749n() {\n return C3656k.m8448e(mo9774x());\n }", "private void m50367F() {\n }", "public void mo21793R() {\n }", "interface C2578d {\n}", "public void mo21780E() {\n }", "public void mo6944a() {\n }", "public void mo21781F() {\n }", "public int mo36g() {\n return 2;\n }", "public int mo9754s() {\n return mo9774x();\n }", "public void mo21786K() {\n }", "public final void mo7596sH(String str) {\n }", "public void mo44053a() {\n }", "public void mo23813b() {\n }", "String mo10312id();", "public abstract String mo13682d();", "private void m91737K() {\n String str = this.f73944a;\n boolean z = true;\n if (this.f73953m != 1) {\n z = false;\n }\n C28141am.m92411a(new C28311ag(str, z), new C28312ah(this.f73949f.hashCode()), this.f73944a);\n }", "public abstract long mo13681c();", "public void mo8738a() {\n }", "@Override\n\tpublic void challenge7() {\n\n\t}", "void mo64942a(String str, long j, long j2);", "void mo1507n();", "int mo5867a(String str, long j);", "public String mo8976b() {\n return this.f7871c;\n }", "private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }", "public void m6607X() {\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"is_rename\", \"0\");\n C1390G.m6779b(\"A107|1|3|10\", hashMap);\n HashMap hashMap2 = new HashMap();\n hashMap2.put(\"mark_num\", String.valueOf(this.f5418ga));\n C1390G.m6779b(\"A107|1|3|10\", hashMap2);\n HashMap hashMap3 = new HashMap();\n hashMap3.put(\"rec_time\", String.valueOf(this.f5420ha));\n C1390G.m6779b(\"A107|1|3|10\", hashMap3);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"A107|1|3|10Vcode error:\" + e);\n }\n }", "C2841w mo7234g();", "public abstract int mo8526p();", "public String toString()\r\n/* 438: */ {\r\n/* 439:522 */ return \"Luffa-\" + (getDigestLength() << 3);\r\n/* 440: */ }", "public int getExtendedID()\r\n/* 50: */ {\r\n/* 51: 39 */ return 0;\r\n/* 52: */ }", "public long mo9743h() {\n return mo9773w();\n }", "void mo21076g();", "public void mo21795T() {\n }", "void mo57277b();", "private String m81849m() {\n String str;\n if (this.f58083o) {\n str = UrlUtil.m84496b(UrlUtil.m84494a(this.f58071c, C6969H.m41409d(\"G738BEA0FAD3C\")));\n } else {\n str = this.f58070b;\n }\n if (!TextUtils.isEmpty(str)) {\n this.f58072d = Uri.parse(str);\n }\n return str;\n }", "private static Set<String> m60274e(C15966s c15966s) {\n return C15925d.m60271c(c15966s.m60559g());\n }", "private void m81852p() {\n String c = m81844c(C6969H.m41409d(\"G738BEA12B634AE16E80F8677F0E4D1\"));\n if (!TextUtils.isEmpty(c)) {\n if (C6969H.m41409d(\"G6F82D909BA\").equals(c)) {\n this.f58078j = false;\n } else if (C6969H.m41409d(\"G7D91C01F\").equals(c)) {\n this.f58078j = true;\n }\n }\n }", "public void mo3946e() {\n m25427g();\n }", "public abstract int mo9753r();", "public int mo9749n() {\n return C3656k.m8448e(mo9761x());\n }", "private C2101h m7462e() {\n int i = this.f5790b.f5938a.f5889a;\n if (this.f5790b.f5952o != null) {\n return this.f5790b.f5952o;\n }\n return this.f5791c.m7469a(i);\n }" ]
[ "0.5802321", "0.57429683", "0.5707331", "0.566787", "0.5665567", "0.56359136", "0.55916697", "0.55489403", "0.55273145", "0.5526744", "0.55259216", "0.55052525", "0.5504325", "0.5490331", "0.54868466", "0.5441149", "0.5441149", "0.5441149", "0.5441149", "0.5441149", "0.5441149", "0.5441149", "0.5440052", "0.5435548", "0.54129094", "0.5411318", "0.5410911", "0.5400048", "0.53992987", "0.5392512", "0.539019", "0.53725755", "0.53515244", "0.53514224", "0.5344755", "0.5327587", "0.53259045", "0.5324182", "0.5324148", "0.53229576", "0.53223664", "0.5318714", "0.53127027", "0.5312603", "0.5308349", "0.5307327", "0.5304056", "0.5303272", "0.530104", "0.5290754", "0.5287366", "0.5286658", "0.5283501", "0.52821314", "0.5280229", "0.527699", "0.5268267", "0.52656937", "0.5259243", "0.5256453", "0.5241148", "0.5238527", "0.5233293", "0.52329785", "0.52289855", "0.5228276", "0.52261394", "0.5225849", "0.5223422", "0.52215743", "0.52202636", "0.52159774", "0.5214205", "0.52093464", "0.5207148", "0.51956403", "0.5195087", "0.51931334", "0.51856124", "0.51753664", "0.5174162", "0.51718557", "0.5166094", "0.51646495", "0.5162616", "0.51539063", "0.5153035", "0.51493824", "0.51447", "0.51441574", "0.51420957", "0.51318663", "0.5130332", "0.51293135", "0.5129118", "0.51217043", "0.51201963", "0.5118347", "0.5111123", "0.5110516", "0.5110166" ]
0.0
-1
/ 684: / 685:
public void actualizarPorTipoIdentificacion() /* 686: */ { /* 687:755 */ cargarListaTipoComprobanteSRI(); /* 688:756 */ cargarListaCreditoTributarioSRI(); /* 689: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "C1458cs mo7613iS();", "public void mo21783H() {\n }", "public void mo12628c() {\n }", "public static int m8655e() {\n return 8;\n }", "Info mo7564ix();", "public void mo21794S() {\n }", "private void m50366E() {\n }", "public void mo21877s() {\n }", "public void mo21782G() {\n }", "public void mo21867i() {\n mo21877s();\n }", "public void mo21784I() {\n }", "private void m50367F() {\n }", "public void method_4270() {}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo21785J() {\n }", "public void mo21779D() {\n }", "public void mo3376r() {\n }", "public void mo21786K() {\n }", "public void mo55254a() {\n }", "public void mo6081a() {\n }", "public void mo3749d() {\n }", "public void mo21789N() {\n }", "public static int m8651d() {\n return 4;\n }", "public void mo21879u() {\n }", "public int mo36g() {\n return 8;\n }", "public int arn() {\n return 383;\n }", "public void mo21878t() {\n }", "public int mo36g() {\n return 4;\n }", "public void mo21780E() {\n }", "C4945r5 mo19056B();", "void mo1507n();", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "public void mo21787L() {\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "public void mo2470d() {\n }", "long getUnknown72();", "C7562b<C10403b, C10328a> mo25041a();", "public void mo21788M() {\n }", "public final void mo92082N() {\n }", "public int mo9754s() {\n return mo9774x();\n }", "public void mo9848a() {\n }", "public int method_2436() {\r\n return 16;\r\n }", "C2451d mo3408a(C2457e c2457e);", "public void mo9233aH() {\n }", "protected void mo6255a() {\n }", "public void mo56167c() {\n }", "public final byte mo27873c() {\n return 6;\n }", "public void mo21795T() {\n }", "public void mo38117a() {\n }", "C4945r5 mo19057F();", "public int method_6437() {\r\n return this.field_6227;\r\n }", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "void mo21076g();", "public void mo21791P() {\n }", "public abstract int mo9754s();", "public void mo21793R() {\n }", "public void mo21792Q() {\n }", "public final void mo92084P() {\n }", "C2841w mo7234g();", "public void skystonePos6() {\n }", "public abstract int mo8526p();", "public void mo21880v() {\n }", "public void mo2471e() {\n }", "public void mo21825b() {\n }", "C3676k mo12649b();", "public void mo4359a() {\n }", "static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "void mo57278c();", "public int mo3384v() {\n return 0;\n }", "private void kk12() {\n\n\t}", "public void mo7623i() {\n int size = this.f4373c.size();\n for (int i = 0; i < size; i++) {\n this.f4374d.mo7441d(this.f4373c.get(i));\n }\n mo7636x(this.f4373c);\n this.f4378h = 0;\n }", "private void m27468d() {\n switch (this.f25258E) {\n case 1:\n this.f25270Q = this.f25294i.left;\n break;\n case 2:\n this.f25270Q = this.f25294i.right;\n break;\n default:\n this.f25270Q = this.f25268O;\n break;\n }\n this.f25271R = (int) (((float) this.f25269P) - ((this.f25288c.ascent() + this.f25288c.descent()) / 2.0f));\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo21890a() {\n mo21891a(this.f24566d);\n }", "public void mo23813b() {\n }", "private void m106723d() {\n if (this.f86018e != null) {\n this.f86018e.mo7085f();\n }\n C23487o.m77150b(this.f86017d, 8);\n }", "private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }", "void mo21072c();", "public void mo3946e() {\n m25427g();\n }", "public static int m22583h(long j) {\n return 8;\n }", "public final int mo6465d() {\n return 19729000;\n }", "public abstract long mo13681c();", "void mo88524c();", "public abstract Integer mo36210m();", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "C4865b mo6249a();", "public final void mo11687c() {\n }", "private int[] m7232h() {\n this.f5578C[0] = this.f5594p;\n this.f5578C[1] = this.f5599u - this.f5594p;\n return this.f5578C;\n }", "public static int m22584i(int i) {\n return 4;\n }", "public int mo9745j() {\n return mo9774x();\n }", "public int mo9749n() {\n return C3656k.m8448e(mo9774x());\n }", "C15430g mo56154a();" ]
[ "0.60008454", "0.58371353", "0.5799841", "0.57912797", "0.5784009", "0.57521063", "0.57506233", "0.57467866", "0.57340753", "0.56869996", "0.5681285", "0.5636177", "0.5624153", "0.5610416", "0.56031114", "0.56031114", "0.56031114", "0.56031114", "0.56031114", "0.56031114", "0.56031114", "0.5589194", "0.55870265", "0.55739856", "0.5566006", "0.5551396", "0.55463207", "0.55319124", "0.5530148", "0.55222875", "0.55059975", "0.55042726", "0.5486627", "0.54826415", "0.5477142", "0.54766214", "0.5473183", "0.54683185", "0.5456221", "0.54522455", "0.5448697", "0.54483557", "0.5446605", "0.54424053", "0.5426117", "0.5424266", "0.54240465", "0.54218006", "0.54210615", "0.5419288", "0.5416854", "0.5406306", "0.5390594", "0.5390126", "0.5383548", "0.5378094", "0.53704935", "0.53667283", "0.53646994", "0.53639036", "0.5363308", "0.53600687", "0.5355702", "0.5350142", "0.53498405", "0.53463084", "0.5341266", "0.53376174", "0.53282064", "0.5322165", "0.53207654", "0.53119856", "0.5302475", "0.5300976", "0.5299013", "0.52963835", "0.5292446", "0.5290994", "0.52806914", "0.5276518", "0.5274495", "0.5273602", "0.5272218", "0.52702177", "0.52660924", "0.52641916", "0.52618283", "0.5260106", "0.52597094", "0.52586734", "0.5256474", "0.5255637", "0.5254335", "0.5244959", "0.52425236", "0.5237971", "0.5234281", "0.5234216", "0.52338374", "0.52333874", "0.5231029" ]
0.0
-1
/ 690: / 691:
public boolean isEditaConceptoYBase() /* 692: */ { /* 693:761 */ return (this.facturaProveedorSRI.getMensajeSRI() != null) && (!this.facturaProveedorSRI.getMensajeSRI().toLowerCase().contains("guardado")) && (this.facturaProveedorSRI.isTraCorregirDatos()); /* 694: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "C1458cs mo7613iS();", "public void mo21794S() {\n }", "public void mo6081a() {\n }", "public void mo21877s() {\n }", "public void mo21783H() {\n }", "public void method_4270() {}", "public void mo12628c() {\n }", "public void mo9233aH() {\n }", "public void mo21782G() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "public void mo55254a() {\n }", "public void mo21789N() {\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "private void m50366E() {\n }", "public void mo21785J() {\n }", "public void mo21791P() {\n }", "public void mo21787L() {\n }", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "public void mo21793R() {\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "public final void mo92082N() {\n }", "public void mo3376r() {\n }", "C2451d mo3408a(C2457e c2457e);", "public void mo21786K() {\n }", "public void mo21879u() {\n }", "public void mo21867i() {\n mo21877s();\n }", "C15430g mo56154a();", "public final byte mo27873c() {\n return 6;\n }", "public void mo21788M() {\n }", "C4945r5 mo19056B();", "public void mo56167c() {\n }", "public void mo21878t() {\n }", "public void mo21779D() {\n }", "public void mo3749d() {\n }", "public void mo44053a() {\n }", "public void mo21784I() {\n }", "public void mo21890a() {\n mo21891a(this.f24566d);\n }", "public void mo38117a() {\n }", "public void mo9848a() {\n }", "public void mo21780E() {\n }", "public void mo21795T() {\n }", "public int mo36g() {\n return 4;\n }", "public int mo36g() {\n return 8;\n }", "C2841w mo7234g();", "private void m50367F() {\n }", "long getUnknown72();", "void mo3194r();", "C4865b mo6249a();", "protected void m10364g() {\n this.f9056t.mo4019a(this.f9052p.m15391H());\n this.f9055s.mo4019a(this.f9051o.m15391H());\n }", "public void mo12930a() {\n }", "C45321i mo90380a();", "Info mo7564ix();", "void mo1507n();", "public void mo21792Q() {\n }", "private void kk12() {\n\n\t}", "C1436ck mo7614jh();", "public void m6607X() {\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"is_rename\", \"0\");\n C1390G.m6779b(\"A107|1|3|10\", hashMap);\n HashMap hashMap2 = new HashMap();\n hashMap2.put(\"mark_num\", String.valueOf(this.f5418ga));\n C1390G.m6779b(\"A107|1|3|10\", hashMap2);\n HashMap hashMap3 = new HashMap();\n hashMap3.put(\"rec_time\", String.valueOf(this.f5420ha));\n C1390G.m6779b(\"A107|1|3|10\", hashMap3);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"A107|1|3|10Vcode error:\" + e);\n }\n }", "C4945r5 mo19057F();", "public abstract int mo9749n();", "void mo21072c();", "public void mo3370l() {\n }", "public abstract String mo9751p();", "void mo60893b();", "public void mo6944a() {\n }", "public int mo9749n() {\n return C3656k.m8448e(mo9774x());\n }", "public int arn() {\n return 383;\n }", "public abstract int mo9754s();", "public void mo4683c() {\n mo4679a(3);\n }", "@Override\n\tpublic void challenge9() {\n\n\t}", "String mo21078i();", "void mo21076g();", "public void mo2470d() {\n }", "public void mo9241ay() {\n }", "public abstract long mo13681c();", "public void mo23813b() {\n }", "public void mo115190b() {\n }", "protected void mo6255a() {\n }", "public void mo21781F() {\n }", "@Override\n\tpublic void challenge6() {\n\n\t}", "void mo57278c();", "public abstract long mo9229aD();", "private void m91737K() {\n String str = this.f73944a;\n boolean z = true;\n if (this.f73953m != 1) {\n z = false;\n }\n C28141am.m92411a(new C28311ag(str, z), new C28312ah(this.f73949f.hashCode()), this.f73944a);\n }", "C32446a mo21077h() throws Exception;", "public final void mo11687c() {\n }", "void mo304a(C0366h c0366h);", "C3676k mo12649b();", "public void mo8738a() {\n }", "private void m9222a(C5915m c5915m) {\n int i = 0;\n switch (c5915m.dRL()) {\n case 0:\n C31085l.m50143a(this.AAJ, 0, (long) c5915m.readByte());\n return;\n case 2:\n C31085l.m50143a(this.AAJ, 2, (long) c5915m.readShort());\n return;\n case 3:\n C31085l.m50144b(this.AAJ, 3, (long) c5915m.readChar());\n return;\n case 4:\n C31085l.m50143a(this.AAJ, 4, (long) c5915m.readInt());\n return;\n case 6:\n C31085l.m50143a(this.AAJ, 6, c5915m.readLong());\n return;\n case 16:\n C31085l.m50145c(this.AAJ, 16, ((long) Float.floatToIntBits(c5915m.readFloat())) << 32);\n return;\n case 17:\n C31085l.m50145c(this.AAJ, 17, Double.doubleToLongBits(c5915m.readDouble()));\n return;\n case 23:\n C31085l.m50144b(this.AAJ, 23, (long) C5920a.this.mo12572RL(c5915m.dRP()));\n return;\n case 24:\n C31085l.m50144b(this.AAJ, 24, (long) C5920a.this.mo12573RM(c5915m.dRQ()));\n return;\n case 25:\n C31085l.m50144b(this.AAJ, 25, (long) C5920a.this.mo12575RO(c5915m.dRR()));\n return;\n case 26:\n C31085l.m50144b(this.AAJ, 26, (long) C5920a.this.mo12576RP(c5915m.dRT()));\n return;\n case 27:\n C31085l.m50144b(this.AAJ, 27, (long) C5920a.this.mo12575RO(c5915m.dRS()));\n return;\n case C31128d.MIC_BASE_CHANNELSHARPEN /*28*/:\n m9223id(28, 0);\n mo12590c(c5915m);\n return;\n case 29:\n m9223id(29, 0);\n mo12589b(c5915m);\n return;\n case 30:\n c5915m.dRU();\n m9223id(30, 0);\n return;\n case 31:\n if (c5915m.readBoolean()) {\n i = 1;\n }\n m9223id(31, i);\n return;\n default:\n throw new C36548j(\"Unexpected type: \" + Integer.toHexString(c5915m.dRL()));\n }\n }", "void mo56163g();", "public int mo9749n() {\n return C3656k.m8448e(mo9761x());\n }", "public abstract long mo9743h();", "public void mo4359a() {\n }" ]
[ "0.6256658", "0.60451144", "0.6037952", "0.59346044", "0.593223", "0.58904636", "0.5881063", "0.5867026", "0.58631766", "0.58516777", "0.58515406", "0.5828882", "0.5828882", "0.5828882", "0.5828882", "0.5828882", "0.5828882", "0.5828882", "0.58202684", "0.5798909", "0.5761589", "0.575582", "0.57249814", "0.5715029", "0.5712165", "0.57108486", "0.57098824", "0.5709527", "0.5702636", "0.5701803", "0.57015026", "0.56871814", "0.5678535", "0.5671988", "0.56710285", "0.56691027", "0.56325316", "0.56211346", "0.56206095", "0.56191766", "0.56139624", "0.5613073", "0.5611952", "0.5603281", "0.56021315", "0.5600308", "0.5597166", "0.5586931", "0.5578248", "0.55780745", "0.55747694", "0.55741215", "0.5569261", "0.5566326", "0.5563751", "0.55630153", "0.55597645", "0.55548203", "0.5535707", "0.55308735", "0.5527652", "0.55270076", "0.5527005", "0.55245703", "0.5520603", "0.55200505", "0.5519393", "0.5516194", "0.55158347", "0.5512964", "0.5510364", "0.55070573", "0.5503622", "0.5502482", "0.5500523", "0.54960734", "0.5495836", "0.5488845", "0.5486846", "0.5482065", "0.54810447", "0.5478024", "0.54763234", "0.5475316", "0.547528", "0.54748034", "0.547143", "0.54696983", "0.54684293", "0.54640615", "0.5459937", "0.54555196", "0.5455077", "0.545402", "0.5451962", "0.5449809", "0.5442336", "0.54345703", "0.5434434", "0.54332995", "0.54303753" ]
0.0
-1
/ 695: / 696:
public Boolean getIndicadorFactura() /* 697: */ { /* 698:765 */ return this.indicadorFactura; /* 699: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "C1458cs mo7613iS();", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "public void mo21794S() {\n }", "public void method_4270() {}", "public int mo36g() {\n return 4;\n }", "public void mo21877s() {\n }", "public int mo36g() {\n return 8;\n }", "public void mo21783H() {\n }", "private void m50366E() {\n }", "public void mo12628c() {\n }", "public void mo21795T() {\n }", "public void mo21782G() {\n }", "public void mo21867i() {\n mo21877s();\n }", "public abstract long mo9755t();", "private void m50367F() {\n }", "public void mo21786K() {\n }", "public void mo9848a() {\n }", "Info mo7564ix();", "public int method_2436() {\r\n return 16;\r\n }", "public int mo36g() {\n return 2;\n }", "public final void mo7596sH(String str) {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private int m10257E() throws cf {\r\n int i = 0;\r\n int i2;\r\n if (this.g.mo1996h() >= 5) {\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n i2 = 0;\r\n int i3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n i3 |= (b & 127) << i2;\r\n if ((b & 128) != 128) {\r\n this.g.mo1993a(i + 1);\r\n return i3;\r\n }\r\n i2 += 7;\r\n i++;\r\n }\r\n } else {\r\n i2 = 0;\r\n while (true) {\r\n byte u = mo1978u();\r\n i2 |= (u & 127) << i;\r\n if ((u & 128) != 128) {\r\n return i2;\r\n }\r\n i += 7;\r\n }\r\n }\r\n }", "public void mo9233aH() {\n }", "public final int mo6465d() {\n return 19729000;\n }", "public final int mo50059a() {\n return 2;\n }", "C4945r5 mo19056B();", "public void mo3749d() {\n }", "long getUnknown72();", "public void mo21789N() {\n }", "public void mo55254a() {\n }", "public void mo21878t() {\n }", "public abstract long mo9229aD();", "public int method_6437() {\r\n return this.field_6227;\r\n }", "public void mo21785J() {\n }", "public void mo21879u() {\n }", "public abstract int mo9754s();", "protected void mo6255a() {\n }", "public void mo21787L() {\n }", "public void mo21793R() {\n }", "public abstract long mo9748m();", "public void func_70295_k_() {}", "public int arn() {\n return 383;\n }", "public void mo38117a() {\n }", "public void mo3376r() {\n }", "public void mo21779D() {\n }", "public abstract long mo13681c();", "private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }", "public abstract long mo9743h();", "C4945r5 mo19057F();", "public void mo6081a() {\n }", "private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }", "public void mo21784I() {\n }", "public void mo21792Q() {\n }", "void mo57278c();", "public abstract long mo24410c();", "public abstract long mo9746k();", "void mo3194r();", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "public abstract int mo9749n();", "public void method_266(String var1, int var2, int var3, int var4, int var5, int var6) {\n boolean var12 = field_759;\n\n try {\n int var7 = 0;\n byte[] var8 = field_748[var4];\n int var9 = 0;\n int var10 = 0;\n int var11 = 0;\n if(var12 || var11 < var1.length()) {\n do {\n label70: {\n if(var1.charAt(var11) == 64 && var11 + 4 < var1.length() && var1.charAt(var11 + 4) == 64) {\n var11 += 4;\n if(!var12) {\n break label70;\n }\n }\n\n if(var1.charAt(var11) == 126 && var11 + 4 < var1.length() && var1.charAt(var11 + 4) == 126) {\n var11 += 4;\n if(!var12) {\n break label70;\n }\n }\n\n var7 += var8[field_749[var1.charAt(var11)] + 7];\n }\n\n if(var1.charAt(var11) == 32) {\n var10 = var11;\n }\n\n if(var1.charAt(var11) == 37) {\n var10 = var11;\n var7 = 1000;\n }\n\n if(var7 > var6) {\n if(var10 <= var9) {\n var10 = var11;\n }\n\n this.drawstringCenter(var1.substring(var9, var10), var2, var3, var4, var5);\n var7 = 0;\n var9 = var11 = var10 + 1;\n var3 += this.method_270(var4);\n }\n\n ++var11;\n } while(var11 < var1.length());\n }\n\n if(var7 > 0) {\n this.drawstringCenter(var1.substring(var9), var2, var3, var4, var5);\n return;\n }\n } catch (Exception var13) {\n System.out.println(\"centrepara: \" + var13); // authentic System.out.println\n var13.printStackTrace();\n }\n\n }", "public void mo21788M() {\n }", "public void mo21780E() {\n }", "abstract String mo1748c();", "public static int m8655e() {\n return 8;\n }", "C7562b<C10403b, C10328a> mo25041a();", "public int m7468c() {\n if (!this.f5790b.f5950m) {\n return 0;\n }\n C2302k c2302k;\n int i;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k = this.f5790b.f5954q;\n i = e.f5936d;\n } else {\n byte[] bArr = e.f5937e;\n this.f5798j.m8383a(bArr, bArr.length);\n c2302k = this.f5798j;\n i = bArr.length;\n }\n boolean z = this.f5790b.f5951n[this.f5793e];\n this.f5797i.f6929a[0] = (byte) ((z ? ProfileEditingConfig.DEFAULT_MAX_LENGTH : 0) | i);\n this.f5797i.m8388c(0);\n this.f5789a.sampleData(this.f5797i, 1);\n this.f5789a.sampleData(c2302k, i);\n if (!z) {\n return i + 1;\n }\n C2302k c2302k2 = this.f5790b.f5954q;\n int h = c2302k2.m8396h();\n c2302k2.m8390d(-2);\n h = (h * 6) + 2;\n this.f5789a.sampleData(c2302k2, h);\n return (i + 1) + h;\n }", "void mo304a(C0366h c0366h);", "public int mo9754s() {\n return mo9774x();\n }", "private static int getPrevCC(PrevArgs paramPrevArgs)\n/* */ {\n/* 574 */ return (int)(0xFF & getPrevNorm32(paramPrevArgs, 768, 65280) >> 8);\n/* */ }", "public void mo56167c() {\n }", "private void kk12() {\n\n\t}", "public int mo9232aG() {\n return 0;\n }", "public abstract int mo8526p();", "private void method_268(int var1, int var2, int var3, int var4, byte[] var5) {\n int var6 = var2 + var5[var1 + 5];\n int var7 = var3 - var5[var1 + 6];\n int var8 = var5[var1 + 3];\n int var9 = var5[var1 + 4];\n int var10 = var5[var1] * 16384 + var5[var1 + 1] * 128 + var5[var1 + 2];\n int var11 = var6 + var7 * this.field_723;\n int var12 = this.field_723 - var8;\n int var13 = 0;\n int var14;\n if(var7 < this.field_743) {\n var14 = this.field_743 - var7;\n var9 -= var14;\n var7 = this.field_743;\n var10 += var14 * var8;\n var11 += var14 * this.field_723;\n }\n\n if(var7 + var9 >= this.field_744) {\n var9 -= var7 + var9 - this.field_744 + 1;\n }\n\n if(var6 < this.field_745) {\n var14 = this.field_745 - var6;\n var8 -= var14;\n var6 = this.field_745;\n var10 += var14;\n var11 += var14;\n var13 += var14;\n var12 += var14;\n }\n\n if(var6 + var8 >= this.field_746) {\n var14 = var6 + var8 - this.field_746 + 1;\n var8 -= var14;\n var13 += var14;\n var12 += var14;\n }\n\n if(var8 > 0 && var9 > 0) {\n this.method_269(this.pixels, var5, var4, var10, var11, var8, var9, var12, var13);\n }\n\n }", "public final byte mo27873c() {\n return 6;\n }", "public int mo9749n() {\n return C3656k.m8448e(mo9774x());\n }", "public abstract Integer mo36210m();", "public void mo21791P() {\n }", "public void mo21890a() {\n mo21891a(this.f24566d);\n }", "public int method_2495(ahl var1, int var2, int var3, int var4) {\r\n int var6 = 0;\r\n String[] var10000 = class_752.method_4253();\r\n int var7 = 0;\r\n String[] var5 = var10000;\r\n int var8 = 0;\r\n int var9 = -1;\r\n\r\n int var12;\r\n while(true) {\r\n if(var9 <= 1) {\r\n var12 = -1;\r\n if(var5 == null) {\r\n break;\r\n }\r\n\r\n int var10 = -1;\r\n\r\n while(true) {\r\n if(var10 <= 1) {\r\n int var11 = var1.method_35(var2 + var10, var4 + var9).method_5715(var2 + var10, var3, var4 + var9);\r\n var6 += (var11 & 16711680) >> 16;\r\n var7 += (var11 & '\\uff00') >> 8;\r\n var8 += var11 & 255;\r\n ++var10;\r\n if(var5 == null) {\r\n break;\r\n }\r\n\r\n if(var5 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n ++var9;\r\n break;\r\n }\r\n\r\n if(var5 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n var12 = (var6 / 9 & 255) << 16 | (var7 / 9 & 255) << 8 | var8 / 9 & 255;\r\n break;\r\n }\r\n\r\n return var12;\r\n }", "private int[] m7232h() {\n this.f5578C[0] = this.f5594p;\n this.f5578C[1] = this.f5599u - this.f5594p;\n return this.f5578C;\n }", "private void m91737K() {\n String str = this.f73944a;\n boolean z = true;\n if (this.f73953m != 1) {\n z = false;\n }\n C28141am.m92411a(new C28311ag(str, z), new C28312ah(this.f73949f.hashCode()), this.f73944a);\n }", "void mo21072c();", "public void mo4359a() {\n }", "void mo21076g();", "public void mo44053a() {\n }", "public long mo9743h() {\n return mo9773w();\n }", "private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }", "C3676k mo12649b();", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "@Override\n\tpublic void challenge6() {\n\n\t}", "public String toString()\r\n/* 438: */ {\r\n/* 439:522 */ return \"Luffa-\" + (getDigestLength() << 3);\r\n/* 440: */ }", "public void mo3946e() {\n m25427g();\n }", "C4865b mo6249a();" ]
[ "0.59576005", "0.59513825", "0.5886781", "0.5851744", "0.5822941", "0.58111465", "0.5796647", "0.5736612", "0.57324904", "0.5722379", "0.57066333", "0.57013535", "0.5656643", "0.5641349", "0.5635835", "0.56352913", "0.56264436", "0.5624927", "0.5609148", "0.560614", "0.55769116", "0.5573779", "0.5573779", "0.5573779", "0.5573779", "0.5573779", "0.5573779", "0.5573779", "0.55723697", "0.5560187", "0.5554135", "0.55515754", "0.5546762", "0.55412394", "0.5533138", "0.5531883", "0.5531766", "0.5531078", "0.5524335", "0.5520308", "0.5510632", "0.5497012", "0.5487721", "0.54830194", "0.54825", "0.5481119", "0.5478293", "0.5462669", "0.54593414", "0.54516035", "0.54505587", "0.54496294", "0.54438555", "0.5439235", "0.5436996", "0.5435501", "0.5433035", "0.5427342", "0.5422324", "0.5415974", "0.5415807", "0.54154575", "0.54123896", "0.54116064", "0.54068387", "0.5406653", "0.54042274", "0.5403174", "0.5401538", "0.53999054", "0.5394294", "0.53935355", "0.53896683", "0.53862005", "0.53855544", "0.5381641", "0.53804404", "0.53798354", "0.53783154", "0.5376951", "0.53762215", "0.5369068", "0.53689164", "0.5367584", "0.53632593", "0.53620106", "0.5353188", "0.53514206", "0.5347755", "0.5345702", "0.5344648", "0.53432953", "0.5334183", "0.53328526", "0.5326005", "0.5322084", "0.5319602", "0.5312787", "0.53091705", "0.53081393", "0.53019536" ]
0.0
-1
/ 700: / 701:
public void setIndicadorFactura(Boolean indicadorFactura) /* 702: */ { /* 703:769 */ this.indicadorFactura = indicadorFactura; /* 704: */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo1507n();", "private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }", "private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }", "private final long m719n() {\n return m702b(this.f533r.f621k);\n }", "public void mo21783H() {\n }", "public void m6607X() {\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"is_rename\", \"0\");\n C1390G.m6779b(\"A107|1|3|10\", hashMap);\n HashMap hashMap2 = new HashMap();\n hashMap2.put(\"mark_num\", String.valueOf(this.f5418ga));\n C1390G.m6779b(\"A107|1|3|10\", hashMap2);\n HashMap hashMap3 = new HashMap();\n hashMap3.put(\"rec_time\", String.valueOf(this.f5420ha));\n C1390G.m6779b(\"A107|1|3|10\", hashMap3);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"A107|1|3|10Vcode error:\" + e);\n }\n }", "public int mo80c() {\n return 7;\n }", "void mo1501h();", "public int mo36g() {\n return 8;\n }", "private final void m713h() {\n if (this.f533r.f615e != 1) {\n m690a(4);\n }\n m699a(false, false, true, false, true);\n }", "public final int mo50059a() {\n return 2;\n }", "public short mo5075h() {\n return this.f3707a;\n }", "public int mo36g() {\n return 4;\n }", "public void mo2470d() {\n }", "public abstract int mo123249h();", "bdm mo1784a(akh akh);", "private int m519d(C0082e eVar) {\n int c = C0069c.m383c(eVar.mo67c(C0071a.DAY_OF_WEEK) - this.f279b.mo283a().mo236a(), 7) + 1;\n long c2 = m517c(eVar, c);\n if (c2 == 0) {\n return ((int) m517c(C0018g.m125a(eVar).mo98b(eVar).mo27c(1, C0072b.WEEKS), c)) + 1;\n }\n if (c2 >= 53) {\n int b = m514b(m511a(eVar.mo67c(C0071a.DAY_OF_YEAR), c), (C0128k.m770a((long) eVar.mo67c(C0071a.YEAR)) ? 366 : 365) + this.f279b.mo284b());\n if (c2 >= ((long) b)) {\n return (int) (c2 - ((long) (b - 1)));\n }\n }\n return (int) c2;\n }", "public final void mo66559hj() {\n int hl = m72695hl() | m72696hm();\n m72697hn();\n if (hl != 0) {\n m72694hk();\n notifyChanged();\n }\n }", "long getUnknown72();", "void mo304a(C0366h c0366h);", "public int mo36g() {\n return 2;\n }", "public static int m8668h() {\n return 8;\n }", "private int m10257E() throws cf {\r\n int i = 0;\r\n int i2;\r\n if (this.g.mo1996h() >= 5) {\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n i2 = 0;\r\n int i3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n i3 |= (b & 127) << i2;\r\n if ((b & 128) != 128) {\r\n this.g.mo1993a(i + 1);\r\n return i3;\r\n }\r\n i2 += 7;\r\n i++;\r\n }\r\n } else {\r\n i2 = 0;\r\n while (true) {\r\n byte u = mo1978u();\r\n i2 |= (u & 127) << i;\r\n if ((u & 128) != 128) {\r\n return i2;\r\n }\r\n i += 7;\r\n }\r\n }\r\n }", "public void mo6081a() {\n }", "abstract C0451h mo1607e();", "Period mo20733e();", "private void level7() {\n }", "public long mo9743h() {\n return mo9760w();\n }", "public abstract Integer mo36210m();", "public final int mo34006h() {\n return this.f7230j;\n }", "public void mo21867i() {\n mo21877s();\n }", "private int h1(int p){\n\t\t return p % table.length;\n\t}", "private static final void m705b(akx akx) {\n if (akx.mo356d() == 2) {\n akx.mo364l();\n }\n }", "@Override\n\tpublic void girth() {\n\t\tSystem.out.println(this.name+\"的周长:\"+ (land1+land2+land3));\n\t}", "private final void m711f() {\n /*\n r25 = this;\n r6 = r25\n long r7 = android.os.SystemClock.uptimeMillis()\n awv r0 = r6.f534s\n r11 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n r14 = 1\n r15 = 0\n if (r0 != 0) goto L_0x0013\n goto L_0x0224\n L_0x0013:\n int r1 = r6.f511B\n if (r1 > 0) goto L_0x0221\n akn r0 = r6.f531p\n long r1 = r6.f513D\n r0.mo453a(r1)\n akn r0 = r6.f531p\n akl r1 = r0.f603f\n if (r1 != 0) goto L_0x0025\n goto L_0x0041\n L_0x0025:\n akm r2 = r1.f582f\n boolean r2 = r2.f597g\n if (r2 != 0) goto L_0x00e4\n boolean r1 = r1.mo441b()\n if (r1 == 0) goto L_0x00e4\n akl r1 = r0.f603f\n akm r1 = r1.f582f\n long r1 = r1.f595e\n int r3 = (r1 > r11 ? 1 : (r1 == r11 ? 0 : -1))\n if (r3 == 0) goto L_0x00e4\n int r0 = r0.f604g\n r1 = 100\n if (r0 >= r1) goto L_0x00e4\n L_0x0041:\n akn r0 = r6.f531p\n long r1 = r6.f513D\n akp r3 = r6.f533r\n akl r4 = r0.f603f\n if (r4 == 0) goto L_0x0050\n akm r0 = r0.mo449a(r4, r1)\n goto L_0x005a\n L_0x0050:\n awt r1 = r3.f612b\n long r4 = r3.f614d\n long r2 = r3.f613c\n akm r0 = r0.mo451a(r1, r2)\n L_0x005a:\n if (r0 == 0) goto L_0x00c8\n akn r1 = r6.f531p\n aky[] r2 = r6.f519d\n bgq r3 = r6.f520e\n akk r4 = r6.f522g\n ajd r4 = (p000.ajd) r4\n bhz r4 = r4.f433a\n awv r5 = r6.f534s\n bgr r13 = r6.f521f\n akl r9 = r1.f603f\n if (r9 == 0) goto L_0x007e\n long r11 = r9.f586j\n akm r9 = r9.f582f\n long r9 = r9.f595e\n long r11 = r11 + r9\n long r9 = r0.f592b\n long r9 = r11 - r9\n r18 = r9\n goto L_0x0086\n L_0x007e:\n awt r9 = r0.f591a\n boolean r9 = r9.mo1504a()\n r18 = 0\n L_0x0086:\n akl r9 = new akl\n r16 = r9\n r17 = r2\n r20 = r3\n r21 = r4\n r22 = r5\n r23 = r0\n r24 = r13\n r16.<init>(r17, r18, r20, r21, r22, r23, r24)\n akl r2 = r1.f603f\n if (r2 == 0) goto L_0x00a1\n r2.mo439a(r9)\n goto L_0x00a5\n L_0x00a1:\n r1.f601d = r9\n r1.f602e = r9\n L_0x00a5:\n r2 = 0\n r1.f605h = r2\n r1.f603f = r9\n int r2 = r1.f604g\n int r2 = r2 + r14\n r1.f604g = r2\n aws r1 = r9.f577a\n long r2 = r0.f592b\n r1.mo1483a(r6, r2)\n akn r0 = r6.f531p\n akl r0 = r0.f601d\n if (r0 != r9) goto L_0x00c3\n long r0 = r9.mo434a()\n r6.m691a(r0)\n L_0x00c3:\n r6.m706b(r15)\n goto L_0x00e4\n L_0x00c8:\n akn r0 = r6.f531p\n akl r0 = r0.f603f\n if (r0 == 0) goto L_0x00df\n akx[] r0 = r6.f535t\n int r1 = r0.length\n r2 = 0\n L_0x00d2:\n if (r2 >= r1) goto L_0x00df\n r3 = r0[r2]\n boolean r3 = r3.mo359g()\n if (r3 == 0) goto L_0x00e4\n int r2 = r2 + 1\n goto L_0x00d2\n L_0x00df:\n awv r0 = r6.f534s\n r0.mo1494d()\n L_0x00e4:\n boolean r0 = r6.f539x\n if (r0 == 0) goto L_0x00f2\n boolean r0 = r25.m717l()\n r6.f539x = r0\n r25.m718m()\n goto L_0x00f5\n L_0x00f2:\n r25.m716k()\n L_0x00f5:\n akn r0 = r6.f531p\n akl r0 = r0.f602e\n if (r0 == 0) goto L_0x01ba\n akl r1 = r0.f583g\n if (r1 != 0) goto L_0x012b\n akm r1 = r0.f582f\n boolean r1 = r1.f597g\n if (r1 != 0) goto L_0x0107\n goto L_0x01ba\n L_0x0107:\n r1 = 0\n L_0x0109:\n akx[] r2 = r6.f518c\n int r3 = r2.length\n if (r1 >= r3) goto L_0x0129\n r2 = r2[r1]\n axx[] r3 = r0.f579c\n r3 = r3[r1]\n if (r3 != 0) goto L_0x0117\n goto L_0x0126\n L_0x0117:\n axx r4 = r2.mo358f()\n if (r4 != r3) goto L_0x0126\n boolean r3 = r2.mo359g()\n if (r3 == 0) goto L_0x0126\n r2.mo361i()\n L_0x0126:\n int r1 = r1 + 1\n goto L_0x0109\n L_0x0129:\n goto L_0x01ba\n L_0x012b:\n boolean r1 = r25.m714i()\n if (r1 == 0) goto L_0x01ba\n akl r1 = r0.f583g\n boolean r1 = r1.f580d\n if (r1 == 0) goto L_0x01ba\n bgr r0 = r0.f585i\n akn r1 = r6.f531p\n akl r2 = r1.f602e\n if (r2 == 0) goto L_0x0147\n akl r2 = r2.f583g\n if (r2 == 0) goto L_0x0145\n r2 = 1\n goto L_0x0148\n L_0x0145:\n L_0x0147:\n r2 = 0\n L_0x0148:\n p000.bks.m3512b(r2)\n akl r2 = r1.f602e\n akl r2 = r2.f583g\n r1.f602e = r2\n akl r1 = r1.f602e\n bgr r2 = r1.f585i\n aws r3 = r1.f577a\n long r3 = r3.mo1486c()\n r9 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n int r5 = (r3 > r9 ? 1 : (r3 == r9 ? 0 : -1))\n if (r5 == 0) goto L_0x016a\n r25.m715j()\n r0 = 0\n goto L_0x01bb\n L_0x016a:\n r3 = 0\n L_0x016b:\n akx[] r4 = r6.f518c\n int r5 = r4.length\n if (r3 >= r5) goto L_0x01b9\n r4 = r4[r3]\n boolean r5 = r0.mo1867a(r3)\n if (r5 != 0) goto L_0x0179\n goto L_0x01b6\n L_0x0179:\n boolean r5 = r4.mo362j()\n if (r5 != 0) goto L_0x01b6\n bgm r5 = r2.f3835c\n bgl r5 = r5.mo1861a(r3)\n boolean r9 = r2.mo1867a(r3)\n aky[] r10 = r6.f519d\n r10 = r10[r3]\n int r10 = r10.mo344a()\n akz[] r11 = r0.f3834b\n r11 = r11[r3]\n akz[] r12 = r2.f3834b\n r12 = r12[r3]\n if (r9 == 0) goto L_0x01b3\n boolean r9 = r12.equals(r11)\n if (r9 == 0) goto L_0x01b3\n r9 = 6\n if (r10 != r9) goto L_0x01a5\n goto L_0x01b3\n L_0x01a5:\n akh[] r5 = m701a(r5)\n axx[] r9 = r1.f579c\n r9 = r9[r3]\n long r10 = r1.f586j\n r4.mo353a(r5, r9, r10)\n goto L_0x01b6\n L_0x01b3:\n r4.mo361i()\n L_0x01b6:\n int r3 = r3 + 1\n goto L_0x016b\n L_0x01b9:\n L_0x01ba:\n r0 = 0\n L_0x01bb:\n boolean r1 = r6.f537v\n if (r1 == 0) goto L_0x0224\n akn r1 = r6.f531p\n akl r2 = r1.f601d\n if (r2 == 0) goto L_0x0224\n akl r3 = r2.f583g\n if (r3 == 0) goto L_0x0224\n akl r1 = r1.f602e\n if (r2 == r1) goto L_0x01ce\n goto L_0x01d4\n L_0x01ce:\n boolean r1 = r25.m714i()\n if (r1 == 0) goto L_0x0224\n L_0x01d4:\n long r1 = r6.f513D\n long r3 = r3.mo434a()\n int r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r5 < 0) goto L_0x0224\n if (r0 != 0) goto L_0x01e1\n goto L_0x01e4\n L_0x01e1:\n r25.m703b()\n L_0x01e4:\n akn r0 = r6.f531p\n akl r9 = r0.f601d\n akl r0 = r0.f602e\n if (r9 == r0) goto L_0x01ed\n goto L_0x01f0\n L_0x01ed:\n r25.m715j()\n L_0x01f0:\n akn r0 = r6.f531p\n akl r0 = r0.mo448a()\n r6.m693a(r9)\n akm r0 = r0.f582f\n awt r1 = r0.f591a\n long r2 = r0.f592b\n r4 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n r0 = r25\n akp r0 = r0.m686a(r1, r2, r4)\n r6.f533r = r0\n akm r0 = r9.f582f\n boolean r0 = r0.f596f\n if (r0 != 0) goto L_0x0214\n r0 = 3\n goto L_0x0216\n L_0x0214:\n r0 = 0\n L_0x0216:\n akc r1 = r6.f529n\n r1.mo409b(r0)\n r25.m710e()\n r0 = 1\n goto L_0x01bb\n L_0x0221:\n r0.mo1494d()\n L_0x0224:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r14) goto L_0x022c\n goto L_0x03b3\n L_0x022c:\n r1 = 4\n if (r0 == r1) goto L_0x03b3\n akn r0 = r6.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x03ad\n java.lang.String r4 = \"doSomeWork\"\n p000.blk.m3619a(r4)\n r25.m710e()\n boolean r4 = r0.f580d\n r9 = 1000(0x3e8, double:4.94E-321)\n if (r4 == 0) goto L_0x02b5\n long r4 = android.os.SystemClock.elapsedRealtime()\n long r4 = r4 * r9\n aws r11 = r0.f577a\n akp r12 = r6.f533r\n long r12 = r12.f623m\n long r14 = r6.f527l\n long r12 = r12 - r14\n r11.mo1489d(r12)\n r11 = 0\n r12 = 1\n r14 = 1\n L_0x0258:\n akx[] r13 = r6.f518c\n int r15 = r13.length\n if (r11 >= r15) goto L_0x02b2\n r13 = r13[r11]\n int r15 = r13.mo356d()\n if (r15 == 0) goto L_0x02ad\n long r2 = r6.f513D\n r13.mo484a(r2, r4)\n if (r12 == 0) goto L_0x0275\n boolean r2 = r13.mo486w()\n if (r2 == 0) goto L_0x0274\n r12 = 1\n goto L_0x0276\n L_0x0274:\n L_0x0275:\n r12 = 0\n L_0x0276:\n axx[] r2 = r0.f579c\n r2 = r2[r11]\n axx r3 = r13.mo358f()\n if (r2 != r3) goto L_0x028c\n akl r15 = r0.f583g\n if (r15 == 0) goto L_0x028c\n boolean r15 = r13.mo359g()\n if (r15 == 0) goto L_0x028c\n r15 = 1\n goto L_0x028d\n L_0x028c:\n r15 = 0\n L_0x028d:\n if (r2 == r3) goto L_0x0291\n L_0x028f:\n r2 = 1\n goto L_0x02a0\n L_0x0291:\n if (r15 != 0) goto L_0x028f\n boolean r2 = r13.mo485v()\n if (r2 != 0) goto L_0x028f\n boolean r2 = r13.mo486w()\n if (r2 != 0) goto L_0x028f\n r2 = 0\n L_0x02a0:\n if (r14 != 0) goto L_0x02a4\n L_0x02a2:\n r14 = 0\n goto L_0x02a7\n L_0x02a4:\n if (r2 == 0) goto L_0x02a2\n r14 = 1\n L_0x02a7:\n if (r2 != 0) goto L_0x02ad\n r13.mo363k()\n goto L_0x02ae\n L_0x02ad:\n L_0x02ae:\n int r11 = r11 + 1\n goto L_0x0258\n L_0x02b2:\n r16 = r12\n goto L_0x02be\n L_0x02b5:\n aws r2 = r0.f577a\n r2.mo1482a()\n r14 = 1\n r16 = 1\n L_0x02be:\n akm r2 = r0.f582f\n long r2 = r2.f595e\n r4 = 2\n if (r16 != 0) goto L_0x02c6\n goto L_0x02e9\n L_0x02c6:\n boolean r5 = r0.f580d\n if (r5 == 0) goto L_0x02e9\n r11 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n int r5 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r5 == 0) goto L_0x02db\n akp r5 = r6.f533r\n long r11 = r5.f623m\n int r5 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r5 > 0) goto L_0x02e9\n L_0x02db:\n akm r0 = r0.f582f\n boolean r0 = r0.f597g\n if (r0 == 0) goto L_0x02e9\n r6.m690a(r1)\n r25.m709d()\n goto L_0x036b\n L_0x02e9:\n akp r0 = r6.f533r\n int r2 = r0.f615e\n if (r2 == r4) goto L_0x02f0\n goto L_0x034c\n L_0x02f0:\n akx[] r2 = r6.f535t\n int r2 = r2.length\n if (r2 != 0) goto L_0x02fc\n boolean r0 = r25.m712g()\n if (r0 == 0) goto L_0x034c\n goto L_0x033f\n L_0x02fc:\n if (r14 == 0) goto L_0x034c\n boolean r0 = r0.f617g\n if (r0 == 0) goto L_0x033f\n akn r0 = r6.f531p\n akl r0 = r0.f603f\n boolean r2 = r0.mo441b()\n if (r2 != 0) goto L_0x030d\n L_0x030c:\n goto L_0x0314\n L_0x030d:\n akm r0 = r0.f582f\n boolean r0 = r0.f597g\n if (r0 != 0) goto L_0x033f\n goto L_0x030c\n L_0x0314:\n akk r0 = r6.f522g\n long r2 = r25.m719n()\n ajf r5 = r6.f528m\n akq r5 = r5.mo376Q()\n float r5 = r5.f625b\n boolean r11 = r6.f538w\n long r2 = p000.blm.m3661b(r2, r5)\n if (r11 == 0) goto L_0x032f\n ajd r0 = (p000.ajd) r0\n long r11 = r0.f438f\n goto L_0x0333\n L_0x032f:\n ajd r0 = (p000.ajd) r0\n long r11 = r0.f437e\n L_0x0333:\n r15 = 0\n int r0 = (r11 > r15 ? 1 : (r11 == r15 ? 0 : -1))\n if (r0 <= 0) goto L_0x033f\n int r0 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r0 >= 0) goto L_0x033f\n goto L_0x034c\n L_0x033f:\n r0 = 3\n r6.m690a(r0)\n boolean r0 = r6.f537v\n if (r0 == 0) goto L_0x036b\n r25.m707c()\n goto L_0x036b\n L_0x034c:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n r2 = 3\n if (r0 != r2) goto L_0x036b\n akx[] r0 = r6.f535t\n int r0 = r0.length\n if (r0 != 0) goto L_0x035f\n boolean r0 = r25.m712g()\n if (r0 != 0) goto L_0x036b\n goto L_0x0361\n L_0x035f:\n if (r14 != 0) goto L_0x036b\n L_0x0361:\n boolean r0 = r6.f537v\n r6.f538w = r0\n r6.m690a(r4)\n r25.m709d()\n L_0x036b:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r4) goto L_0x037f\n akx[] r0 = r6.f535t\n int r2 = r0.length\n r3 = 0\n L_0x0375:\n if (r3 >= r2) goto L_0x037f\n r5 = r0[r3]\n r5.mo363k()\n int r3 = r3 + 1\n goto L_0x0375\n L_0x037f:\n boolean r0 = r6.f537v\n if (r0 != 0) goto L_0x0384\n goto L_0x038b\n L_0x0384:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n r2 = 3\n if (r0 == r2) goto L_0x0391\n L_0x038b:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r4) goto L_0x0392\n L_0x0391:\n goto L_0x03a4\n L_0x0392:\n akx[] r2 = r6.f535t\n int r2 = r2.length\n if (r2 != 0) goto L_0x0398\n goto L_0x039e\n L_0x0398:\n if (r0 == r1) goto L_0x039e\n r6.m692a(r7, r9)\n goto L_0x03a9\n L_0x039e:\n bkp r0 = r6.f516a\n r0.mo2044a()\n goto L_0x03a9\n L_0x03a4:\n r0 = 10\n r6.m692a(r7, r0)\n L_0x03a9:\n p000.blk.m3618a()\n return\n L_0x03ad:\n r0 = 10\n r6.m692a(r7, r0)\n return\n L_0x03b3:\n bkp r0 = r6.f516a\n r0.mo2044a()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m711f():void\");\n }", "public void mo21877s() {\n }", "public final void mo7596sH(String str) {\n }", "Info mo7564ix();", "public void uneHeureDePlus() {\n\t\tthis.h = h+1 > 23 ? 0 : h+1 ;\n\t}", "public void mo1542h() {\n if (this.f4002h != null) {\n this.f4002h.mo1526d();\n }\n this.f4000f.mo1526d();\n m5005j();\n }", "private void m145780j() {\n String str;\n if (!this.f119477j.mo115499a() && !this.f119478k) {\n if ((this.f119477j.f119578d & 536870912) != 0) {\n str = \"WAL\";\n } else {\n str = \"PERSIST\";\n }\n m145773d(str);\n }\n }", "C1458cs mo7613iS();", "public void mo3370l() {\n }", "public abstract String mo9751p();", "void mo1506m();", "@Test(timeout = 4000)\n public void test50() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickEFP((-2147), 10, 10, \".^|7={wR>bl,rlfYN\", 10, 484, \".^|7={wR>bl,rlfYN\", 484, 484);\n assertEquals(\"id=-2147 bidOptComp: basisPoints = 10.0/.^|7={wR>bl,rlfYN impliedFuture = 10.0 holdDays = 484 futureExpiry = .^|7={wR>bl,rlfYN dividendImpact = 484.0 dividends to expiry = 484.0\", string0);\n }", "private int m672E() {\n int i = 0;\n if (this.f552g.mo501h() >= 5) {\n byte[] f = this.f552g.mo499f();\n int g = this.f552g.mo500g();\n int i2 = 0;\n int i3 = 0;\n while (true) {\n byte b = f[g + i];\n i2 |= (b & Byte.MAX_VALUE) << i3;\n if ((b & 128) != 128) {\n this.f552g.mo495a(i + 1);\n return i2;\n }\n i3 += 7;\n i++;\n }\n } else {\n int i4 = 0;\n while (true) {\n byte u = mo470u();\n i |= (u & Byte.MAX_VALUE) << i4;\n if ((u & 128) != 128) {\n return i;\n }\n i4 += 7;\n }\n }\n }", "public static int m22583h(long j) {\n return 8;\n }", "public long mo9743h() {\n return mo9773w();\n }", "public abstract int mo9749n();", "void nhap(String tenHinh) {\n this.tenHinh = tenHinh;\n }", "public void mo3749d() {\n }", "public void mo9233aH() {\n }", "public int method_2436() {\r\n return 16;\r\n }", "public void mo21794S() {\n }", "private static akh[] m701a(bgl bgl) {\n int f = bgl != null ? bgl.mo1835f() : 0;\n akh[] akhArr = new akh[f];\n for (int i = 0; i < f; i++) {\n akhArr[i] = bgl.mo1828a(i);\n }\n return akhArr;\n }", "public void mo3812h() {\n for (int i = 0; i < 6; i++) {\n this.f1426A[i].mo3751a().mo3882c();\n }\n }", "@Test\n\tpublic void test70000() {\n\n\tdouble tax = Main.calcTax(70_000.);\n\tassertEquals(900., tax, .01);\n\n\t}", "public static String m72637a(User user) {\n int i;\n if (user != null) {\n i = user.getFollowerCount();\n } else {\n i = 0;\n }\n if (i < 1000) {\n return \"below_1000\";\n }\n return \"above_1000\";\n }", "private int[] m7232h() {\n this.f5578C[0] = this.f5594p;\n this.f5578C[1] = this.f5599u - this.f5594p;\n return this.f5578C;\n }", "private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }", "public long mo9743h() {\n return mo9784w();\n }", "public int mo11550h() {\n int i = 0;\n for (C4929d f : this.f11878e) {\n i += f.mo11569f().mo11550h();\n }\n return i + 2 + 2;\n }", "private void m50367F() {\n }", "private void m6601R() {\n if (AppFeature.f5609e) {\n this.f5399S.mo6174f(\"0\");\n }\n this.f5399S.mo6172e(\"1\");\n }", "private static int[] m10288a(C9383t tVar) {\n int intValue = ((Integer) LiveSettingKeys.STREAM_DEFINITION_LEVEL.mo10240a()).intValue();\n if (intValue > 0 && intValue <= f8023g.length) {\n return f8023g[intValue - 1];\n }\n return new int[]{tVar.mo23063c(), tVar.mo23064d(), tVar.mo23065e(), tVar.f25784h};\n }", "void mo1763h(int i);", "public abstract int mo9754s();", "@Override\n\tpublic int horsePower() {\n\t\treturn 336;\n\t}", "public void mo21782G() {\n }", "public abstract long mo9743h();", "private void m50366E() {\n }", "@Test\r\n\tvoid lowDiffLowPlus8TimesHigh()\r\n\t{\r\n\t\tSystem.out.println(\"NOW TESTING LOWDIFSTRING LOWPLUS8TIMESHIGH\");\r\n\t\tint k = 42;\r\n\t\tDomino d1 = new DominoLowDifferenceStringImpl_Khan(k);\r\n\t\tint assertHigh = d1.getHighPipCount();\r\n\t\tint assertLow = d1.getLowPipCount();\r\n\t\tassertEquals(assertHigh, 5);\r\n\t\tassertEquals(assertLow, 2);\r\n\t\t\r\n\t\tk = 34;\r\n\t\tDomino d2 = new DominoLowDifferenceStringImpl_Khan(k);\r\n\t\tassertHigh = d2.getHighPipCount();\r\n\t\tassertLow = d2.getLowPipCount();\r\n\t\tassertEquals(assertHigh, 4);\r\n\t\tassertEquals(assertLow, 2);\r\n\t\tSystem.out.println(\"TEST SUCCESFULLY COMPLETED\");\r\n\t}", "C32446a mo21077h() throws Exception;", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tString firstline = scanner.nextLine();\r\n\t\tString[] strings = firstline.split(\" \");\r\n\t\tMap<String, Integer> pNs = new HashMap<String, Integer>();\r\n\t\tMap<String, Integer> mNs = new HashMap<String, Integer>();\r\n\t\tMap<String, Integer> nNs = new HashMap<String, Integer>();\r\n\t\t\r\n\t\tfor(int i=0;i<3;i++)\r\n\t\t{\r\n\t\t\tfor(int index=0;index<Integer.parseInt(strings[i]);index++)\r\n\t\t\t{\r\n\t\t\t\tString[] scan = scanner.nextLine().split(\" \");\r\n\t\t\t\tif (i==0) {\r\n\t\t\t\t\tif(Integer.parseInt(scan[1]) >= 200)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tpNs.put(scan[0], Integer.parseInt(scan[1]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if(i==1) {\r\n\t\t\t\t\tif (pNs.containsKey(scan[0])) {\r\n\t\t\t\t\t\tmNs.put(scan[0], Integer.parseInt(scan[1]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}else if(i==2) {\r\n\t\t\t\t\tif (pNs.containsKey(scan[0])) {\r\n\t\t\t\t\t\tnNs.put(scan[0], Integer.parseInt(scan[1]));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tMap<String, Integer> endNs = new HashMap<>();\r\n\t\tfor(String name:pNs.keySet())\r\n\t\t{\r\n\t\t\tint ms,ns,ends;\r\n\t\t\tif (mNs.containsKey(name)) {\r\n\t\t\t\tms=mNs.get(name);\r\n\t\t\t}else {\r\n\t\t\t\tms = -1;\r\n\t\t\t\tmNs.put(name, ms);\r\n\t\t\t}\r\n\t\t\tif (nNs.containsKey(name)) {\r\n\t\t\t\tns=nNs.get(name);\r\n\t\t\t}else {\r\n\t\t\t\tns = -1;\r\n\t\t\t\tnNs.put(name, ns);\r\n\t\t\t}\r\n\t\t\tif (ms > ns) {\r\n\t\t\t\tends = (int) Math.round(ms*0.4+ns*0.6);\r\n\t\t\t}else {\r\n\t\t\t\tends = ns;\r\n\t\t\t}\r\n\t\t\tif (ends > 59) {\r\n\t\t\t\tendNs.put(name, ends);\r\n\t\t\t}\r\n\t\t}\r\n\t\tList<Map.Entry<String,Integer>> list = new ArrayList<Map.Entry<String,Integer>>(endNs.entrySet());\r\n\t\tCollections.sort(list,new Comparator<Map.Entry<String,Integer>>() {\r\n\t\t public int compare(Entry<String,Integer> o1,Entry<String,Integer> o2) {\r\n\t\t if(o1.getValue().equals(o2.getValue())){\r\n\t\t return o1.getKey().compareTo(o2.getKey());\r\n\t\t }else{\r\n\t\t return -(o1.getValue().compareTo(o2.getValue()));\r\n\t\t }\r\n\t\t }\r\n\t\t });\r\n\t\tfor(int i=0;i<list.size();i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(list.get(i).getKey()+\" \"+pNs.get(list.get(i).getKey())+\" \"+mNs.get(list.get(i).getKey())+\" \"+nNs.get(list.get(i).getKey())+\" \"+list.get(i).getValue());\r\n\t\t}\r\n\t\t\r\n\t}", "public void mo21788M() {\n }", "public int mo7211g() {\n return this.f2975f.mo7335f();\n }", "public String mo15787hm() {\n return this.f3880Mw.mo15796hm();\n }", "@Override\n\tpublic int getH() {\n\t\treturn 100;\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "void mo21070b();", "void mo33732Px();", "static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }", "public int mo9754s() {\n return mo9774x();\n }", "public void mo21780E() {\n }", "int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }", "public int mo3360e() {\n return 0;\n }", "private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }", "private C0100n m523f(C0082e eVar) {\n int c = C0069c.m383c(eVar.mo67c(C0071a.DAY_OF_WEEK) - this.f279b.mo283a().mo236a(), 7) + 1;\n long c2 = m517c(eVar, c);\n if (c2 == 0) {\n return m523f(C0018g.m125a(eVar).mo98b(eVar).mo27c(2, C0072b.WEEKS));\n }\n int b = m514b(m511a(eVar.mo67c(C0071a.DAY_OF_YEAR), c), (C0128k.m770a((long) eVar.mo67c(C0071a.YEAR)) ? 366 : 365) + this.f279b.mo284b());\n if (c2 >= ((long) b)) {\n return m523f(C0018g.m125a(eVar).mo98b(eVar).mo30d(2, C0072b.WEEKS));\n }\n return C0100n.m491a(1, (long) (b - 1));\n }", "private static double m1936a(double d) {\n if (d > 6.26d) {\n return 100.0d;\n }\n if (d < 0.01d) {\n return 0.0d;\n }\n return ((d - 0.01d) * 100.0d) / 6.25d;\n }", "Bundle mo7259g();", "public int mo7209e() {\n return this.f2975f.mo7333d();\n }", "public int m2706g() {\n return ((Integer) this.f2439a.m2666a(ea.bs)).intValue();\n }", "public void mo55254a() {\n }", "private String m7d() {\n return \"\";\n }" ]
[ "0.56403464", "0.5623485", "0.5592279", "0.55750835", "0.555373", "0.5549817", "0.54596895", "0.53988326", "0.539292", "0.53840035", "0.5357582", "0.5348908", "0.5331739", "0.5296043", "0.52534324", "0.5250049", "0.52266073", "0.521997", "0.520919", "0.5205524", "0.51963884", "0.5189942", "0.51820576", "0.5169007", "0.5165384", "0.51635236", "0.5158876", "0.51557285", "0.5152768", "0.51407975", "0.513891", "0.5135616", "0.5133837", "0.5127533", "0.5127175", "0.5124773", "0.5121089", "0.5112479", "0.511179", "0.50988775", "0.5098793", "0.50916004", "0.5089081", "0.508666", "0.5083998", "0.50718015", "0.5063191", "0.5060455", "0.50533724", "0.5043787", "0.5041281", "0.50357527", "0.5032972", "0.5032864", "0.5031006", "0.5030357", "0.50233996", "0.50187254", "0.5017264", "0.5015867", "0.5014742", "0.50144166", "0.5011987", "0.5002012", "0.4995633", "0.49935645", "0.49885342", "0.4988457", "0.49864092", "0.49854603", "0.49848944", "0.49814603", "0.49784634", "0.49729276", "0.49724454", "0.49696422", "0.49691668", "0.49690753", "0.4967857", "0.49677595", "0.49677595", "0.49677595", "0.49677595", "0.49677595", "0.49677595", "0.49677595", "0.49665144", "0.4964004", "0.49639964", "0.4963678", "0.49585238", "0.4950084", "0.49465522", "0.49409068", "0.4938478", "0.49372068", "0.4928764", "0.49281156", "0.49259362", "0.4922664", "0.4922635" ]
0.0
-1
Gets the user option number
public int getOption() { return option; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int getUserOption()\n {\n\t// Reads the users input.\n\tBufferedReader optionReader = new BufferedReader(new InputStreamReader(System.in));\n\n\ttry\n\t {\n\t\treturn(Integer.parseInt(optionReader.readLine()));\n\t }\n\tcatch(Exception ex)\n\t {\n\t\treturn(-1);\n\t }\n }", "private static int getUserOption () {\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint input;\n\t\t\n\t\tdo {\n\t\t\tlistMainMenuOptions();\n\n\t\t\ttry {\n\t\t\t\tinput = Integer.parseInt(myReader.readLine());\n\n\t\t\t\tif ((input < 1) || (input>9)) {\n\t\t\t\t\tSystem.out.println(\"Please type in a number between 1-9 according to your choice\");\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid. Please enter a number from 1-9 according to your choice\");\n\t\t\t\tinput = 0;\n\t\t\t}\n\t\t\t\n\t\t}while ((input < 1) || (input>9));\n\n\t\treturn input;\n\t\t\n\t}", "public static int getUserOption(){\n\n String numberAsString;\n int userOption;\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n\n listMenuOptions();\n numberAsString = scanner.nextLine();\n userOption = Integer.parseInt(numberAsString); // Convert string to a integer\n while ( ( userOption < 0 )|| (userOption > 4 ) ) { // check if input is valid\n System.out.println(\"You did not enter a valid option. Try again.\");\n listMenuOptions();\n numberAsString = scanner.nextLine();\n userOption = Integer.parseInt(numberAsString); // Convert string to a integer\n }\n return userOption;\n }", "public static int getMenu() {\n\t\tSystem.out.println(\"Choose Options from menu:\");\n\t\tint option = scanner.nextInt();\n\n\t\treturn option;\n\t}", "private static int getUserChoice() {\n System.out.println(\"Please choose your operation: \");\n return intScanner.nextInt();\n }", "public int getIntValue(String opt) {\n return Integer.parseInt((String)m_commandLine.getValue(opt));\n }", "public static int getUserChoice(){\r\n return Input.getInt(\"Enter 1 to add a song, 2 to display all songs, or 3 to quit the program: \");\r\n }", "int getOptLevelValue();", "public static int getMenuChoice() {\n String line;\n int option = -1;\n\n System.out.print(\">\");\n if (Menus.reader.hasNext()) {\n line = Menus.reader.nextLine().strip();\n\n try {\n option = Integer.parseInt(line);\n } catch (NumberFormatException e) {\n option = -1;\n }\n }\n\n return option;\n }", "public static int getOption() {\n\t\t\n\t\tSystem.out.println(\"*** Temperature Conversion ***\");\n\t\tSystem.out.println(\"1. Celsius to Farhenheit\");\n\t\tSystem.out.println(\"2. Farhenheit to Celsius\");\n\t\tSystem.out.println(\"Enter conversion option\");\n\t\tint optionValue = sc.nextInt();\n\t\treturn optionValue;\n\t}", "public int getIntOption(String name) {\n return options.getIntOption(name);\n }", "public int getSelectNum() {\n\t\treturn comboBox.getItemAt(comboBox.getSelectedIndex()).intValue();\n\t}", "String getOption();", "public static int getMenuOption() {\n Scanner input = new Scanner(System.in);\n\n menuOption = input.next().toLowerCase().charAt(0);\n\n while (menuOption != 'a' && menuOption != 'r' && menuOption != 'f' && menuOption != 'i' && menuOption != 'n' && menuOption != 'q') {\n System.out.print(\"Enter a valid choice: \");\n menuOption = input.next().toLowerCase().charAt(0);\n }\n\n if (menuOption == 'a') {\n return 1;\n } else if (menuOption == 'r') {\n return 2;\n } else if (menuOption == 'f') {\n return 3;\n } else if (menuOption == 'i') {\n return 4;\n } else if (menuOption == 'n') {\n return 5;\n } else {\n return 6;\n }\n }", "public static int getMenuOption() {\n\t Scanner input = new Scanner(System.in);\t// Create a Scanner object\r\n\t \r\n\t boolean invalid = true; \r\n\t int choice = 0;\r\n\t while(invalid){\r\n\t System.out.println(\"Menu\\n1. Add\\n2. Subtract\\n3. Multiply\\n4. Divide\\n5. Clear\\n6. Quit\"); // Prints out menu of options\r\n\t System.out.print(\"What would you like to do? \");\r\n\t choice = input.nextInt();\r\n\t invalid = (choice >= 1 && choice <=6) ? false : true; // checks if choice is valid\r\n\t if (invalid){\r\n\t System.out.println(\"I'm sorry, \" + choice + \" wasn't one of the options\\n\");\r\n\t }\r\n\r\n\t }\r\n\t return choice;\r\n\t }", "public int getOfYourChoiceInput() {\n return ofYourChoiceInput;\n }", "private int getOptionFromPane(final JOptionPane optionPane)\n {\n int result = JOptionPane.YES_OPTION;\n if (!JOptionPane.UNINITIALIZED_VALUE.equals(optionPane.getValue()))\n {\n result = (Integer) optionPane.getValue();\n }\n return result;\n }", "public static int inputOptions() {\n\t\tSystem.out.println(PROMPT);\n\t\tint responseNum = -1;\n\t\tin = new Scanner(System.in);\n\t\t// Ensure that response is 0 or 1\n\t\twhile (in.hasNext()) {\n\t\t\tString rawResponse = in.nextLine();\n\t\t\tString response = rawResponse.trim();\n\t\t\tresponseNum = Integer.parseInt(response);\n\t\t\tif (responseNum == 0 || responseNum == 1) {\n\t\t\t\treturn responseNum;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(INVALID_ENTRY_MSG);\n\t\t\t}\n\t\t}\n\t\treturn responseNum;\n\t}", "public char getOption() {\r\n\t\treturn scanner.nextLine().charAt(0);\r\n\t}", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "public String getUserNum() {\n return userNum;\n }", "int getUnapprovedUserNumber();", "public String getSelectedNumber() {\n\t\treturn uNumber;\n\t}", "public long getOptionId() {\n return optionId;\n }", "private int pickIdNumber(String type) {\n\t\tint xGetNum = -1;\n\t\ttry {\n\t\t\tSystem.out.println(\"\\nEnter the number 0 if the \" + type + \" is NOT on the list. \");\n\t\t\tSystem.out.print(\"Enter the \" + type + \"'s ID# : \");\n\t\t\txGetNum = Integer.parseInt(scanner.nextLine());\n\t\t\t//return xGetNum;\n\t\t\t}\n\t\t\tcatch(NumberFormatException e) {\n\t\t\t\tSystem.out.println(\"\\n\\t*****\\tSelection must be a number\\t*****\");\n\t\t\t}\t\t\n\t\treturn xGetNum;\t\t\n\t}", "public java.lang.String getChoice_num() {\n return choice_num;\n }", "public java.lang.String getOption_id() {\n return option_id;\n }", "public String getOption()\r\n {\r\n return ((COSString)option.getObject( 0 ) ).getString();\r\n }", "public int getOptions() {\n\t\treturn this.options;\n\t}", "public static int getUserInput(){\r\n String input;\r\n Integer selection;\r\n while(true){\r\n try {\r\n input = JOptionPane.showInputDialog(null, \"Please enter the desired side size or press cancel for default size,\\n\"\r\n + \"you should enter a valid integer between 3 and 100.\");\r\n if (input == null) {\r\n selection = DEFAULT_SIZE;\r\n }\r\n else {\r\n selection = Integer.parseInt(input);\r\n if (selection > UPPER_BOUND) selection = UPPER_BOUND;\r\n else if (selection < LOWER_BOUND) selection = LOWER_BOUND;\r\n }\r\n break;\r\n }\r\n catch (NumberFormatException e){\r\n continue;\r\n }\r\n }\r\n return selection;\r\n \r\n }", "public String getNumUserid() {\n return numUserid;\n }", "public int displayMenuAndGetUserSelection(){\n view.promptInt(\"1. Create a Character\");\n view.promptInt(\"2. Update a Character\");\n view.promptInt(\"3. Display all Characters\");\n view.promptInt(\"4. Search for a Character\");\n view.promptInt(\"5. Delete a Character\");\n view.promptInt(\"6. Exit\");\n return view.promptInt(\"Select from one of the above choices\");\n }", "int getTelecommutePreferenceValue();", "public int getMyPlayerNumber() {\n if (gameStatus == null || userId == null) return -1;\n if (userId.equals(gameStatus.getPlayerOne())) return 1;\n if (userId.equals(gameStatus.getPlayerTwo())) return 2;\n return -2;\n }", "public Integer ValidateOption(String option){\n try {\n return Integer.parseInt(option.trim());\n }\n catch (NumberFormatException ex){\n return -1;\n }\n }", "public int getOfYourChoiceOutput() {\n return ofYourChoiceOutput;\n }", "public int openStartUpMenu()\n {\n int option;\n startMenu.drawMainMenu();\n option = input.getIntInput();\n return option;\n }", "public static int Menu(){\n \n String StrOp=JOptionPane.showInputDialog(null, \"Ingrese una opcion:\\n\"+\"0.- Salir\\n\"+\n \"1-Calificacion de notas\\n\"+\n \"2-Promedio de la clase\");\n return(Integer.parseInt(StrOp));\n }", "public static int selectMenuOption(String... options) {\n\n for (int i = 0; i < options.length; ++i) {\n c.writer().printf(\"%d. %s%n\", i + 1, options[i]);\n }\n \n for (;;) {\n final int choice;\n\n try {\n choice = Integer.parseInt(\n c.readLine(\"\\nSelect an option and press Enter: \\n\"\n + \">>\"));\n\n if (choice > 0 && choice < options.length + 1) {\n return choice;\n } else {\n c.printf(\"Your choice is not available! choose another.%n\");\n }\n } catch (NumberFormatException e) {\n c.printf(\n \"Enter a number that corresponds with a menu choice!%n\");\n }\n }\n }", "public int getNumAttemptsOfGeneOption() {\n return m_NumAttemptsOfGene;\n }", "public String getOptionId()\n\t{\n\t\treturn optionId;\n\t}", "public String getOptionId()\n\t{\n\t\treturn optionId;\n\t}", "public int getUser(String M)\t\n\t{\t//start of getUser method\n\t\t//userNum = Integer.parseInt(M);\n\t\tuserNum = Integer.parseInt(M);\n\t\treturn userNum;\n\t}", "public int getChoice() {\n\t\treturn choice;\n\t}", "private int getMenuSelection() {\n return view.printMenuAndGetSelection();\n }", "private static int getCombo() {\n return generator.nextInt(COMBOS) + 1;\n }", "public int getPrepayment_option() {\n return prepayment_option;\n }", "public int getGuess() {\n\t\tif (accusation) {\n\t\t\tJOptionPane.showMessageDialog(parent, panel, \"Make an accusation:\", JOptionPane.PLAIN_MESSAGE);\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(parent, panel, \"Make a suggestion:\", JOptionPane.PLAIN_MESSAGE);\n\t\t}\n\t\treturn CluedoUI.asInt(characters.getSelectedItem().toString()) \n\t\t\t\t+ CluedoUI.asInt(weapons.getSelectedItem().toString())\n\t\t\t\t + CluedoUI.asInt(rooms.getSelectedItem().toString());\n\t}", "private byte getGSCIndex() {\n\t\tString gscType = cbGSC.getText();\n\n\t\t//Check with optionA\n\t\tfor (byte i = 0; i < 3; i++) {\n\t\t\tif (optionA[i].equals(gscType))\n\t\t\t\treturn i;\n\t\t}\n\n\t\treturn 0;\n\t}", "private int mainMenu(){\n System.out.println(\" \");\n System.out.println(\"Select an option:\");\n System.out.println(\"1 - See all transactions\");\n System.out.println(\"2 - See all transactions for a particular company\");\n System.out.println(\"3 - Detailed information about a company\");\n System.out.println(\"0 - Exit.\");\n\n return getUserOption();\n }", "private int correctOption(final String options, final int lastOption) {\n\n// Take int value by user thorough command line\n int option;\n\n// Count the iterations of while loop and show the options again to the user if user has chosen wrong option.\n int loop = 0;\n\n while (true) {\n\n System.out.println(options);\n option = scanner.nextInt();\n\n// If the input is in between the range specified, just break the loop and return the value\n if (option <= lastOption && option > 0)\n break;\n\n// If the attempts exceed close the resources and return -1 value which will close the program\n if (loop >= 2) {\n option = -1;\n break;\n } else\n System.err.println(\"\\nPlease select correct option\");\n\n loop++;\n }\n return option;\n }", "public void getOption(View view) {\n Spinner spinner = (Spinner) findViewById(R.id.country_spinner);\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);\n if (spinner != null) {\n user_choice = String.valueOf(spinner.getSelectedItem());\n }\n Set<String> selections = settings.getStringSet(\"list_option_key\", null);\n if (selections != null) {\n if (selections.isEmpty()) {\n //User must select options for the graph to display.\n displayToast(\"No options selected, please try again.\");\n return;\n } else {\n //User has selected options we we get the country data associated with user options\n boolean use_local = settings.getBoolean(\"use_file_key\", true);\n processData(use_local, selections);\n }\n } else {\n //No options have been selected and this is the first time user is using the app so display message\n displayToast(\"No options selected, please try again.\");\n return;\n }\n }", "private static MenuOption getRequest() \n\t{\n\t\tint request = 5;\n\t\tSystem.out.printf(\n\t\t\t\t\"%n--[ Manage My Contacts ]--%n%n%s%n%s%n%s%n%s%n%s%n\",\n\t\t\t\t\"1. Add new contact\", \"2. Delete a contact\",\n\t\t\t\t\"3. View a contact\", \"4. Display all contacts\",\n\t\t\t\t\"5. Exit program\");\n\t\ttry \n\t\t{\n\t\t\tScanner input = new Scanner(System.in);\n\t\t\tdo \n\t\t\t{\n\t\t\t\tSystem.out.printf(\"%nSelection: \");\n\t\t\t\trequest = input.nextInt();\n\t\t\t} while ((request < 1) || (request > 5));\n\t\t} catch (NoSuchElementException e) \n\t\t{\n\t\t\tSystem.err.println(\"Invalid input. Closing\");\n\t\t}\n\t\treturn choices[request - 1];\n\t}", "private static int getIntFromUser(String prompt)\n\t {\n\t System.out.print(prompt); // Prompt user to enter input value\n\t return input.nextInt(); // Read and return user's response\n\t }", "public static String getNum() {\n\tString num;\n\tnum = gameNum.getText();\n\treturn num;\n\n }", "private byte getInsuranceType() {\n\t\tString insuranceType = cbInsurance.getText();\n\n\t\t//Check with optionA\n\t\tfor (byte i = 0; i < 3; i++) {\n\t\t\tif (optionA[i].equals(insuranceType))\n\t\t\t\treturn i;\n\t\t}\n\n\t\treturn 0;\n\t}", "public String Get_Option_User_Choice(String Op_Set_Name)\n {\n for(OptionSet i: opset) {\n if(Op_Set_Name.equalsIgnoreCase(i.getName()))\n return (i.User_Choice_Name()); \n } \n return null;\n }", "public String getUserno() {\r\n return userno;\r\n }", "int getOptionsCount();", "int getOptionsCount();", "int getOptionsCount();", "public String getUsernumber() {\n return usernumber;\n }", "public char getopt() {\n\tif (opt_count >= opts.size())\n\t return OPT_EOF;\n\treturn ((Character) (opts.elementAt(opt_count++))).charValue();\n }", "public int getMember(){\n String memberString = member.getSelectedItem().toString();\n int memberId = this.memberMap.get(memberString);\n \n System.out.println(\"getMember2: \"+ memberString +\",\"+ memberId);\n return memberId;\n }", "private int getSavedOption(){\n SharedPreferences preferences = getSharedPreferences(PREFERENCE_FILE_NAME, MODE_PRIVATE);\n\n return preferences.getInt(SAVED_WORKSPACE_POSITION_PREFERENCE_FIELD, -1);\n }", "public short getOptions()\n {\n return field_1_options;\n }", "public static void projectUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Deadline date\");\n System.out.println(\"2 - Payment toward the outstanding balance\");\n System.out.println(\"3 - Finalized project\");\n System.out.println(\"4 - Completed project\\n\");\n\n System.out.println(\"0 - To continue to the main menu\\n\");\n\n\n System.out.print(\"Enter the number of the option you pick: \");\n }", "public Integer getLastUpdUserId() {\n return (Integer) get(6);\n }", "String askingOrderNumber();", "private int getChoice() {\n\t\tif (vsComputer) {\n\t\t\twhile (true) {\n\t\t\t\tSystem.out.print(\"Enter choice: \");\n\t\t\t\tint ch;\n\t\t\t\ttry {\n\t\t\t\t\tch = sc.nextInt();\n\t\t\t\t} catch (InputMismatchException e) {\n\t\t\t\t\tSystem.out.println(\"Invalid Choice\\n\");\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tswitch (ch) {\n\t\t\t\t\tcase 1, 2, 3 -> {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\treturn ch-1;\n\t\t\t\t\t}\n\t\t\t\t\tdefault -> System.out.println(\"Invalid Choice\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn random.nextInt(3);\n\t\t}\n\t}", "public Integer getOptEvent() {\n\t\treturn optEvent;\n\t}", "private static int HQmenu() {\n\t\tlogger.info(\"Entering HQmenu method -->\");\n\t\tint choice = 0;\n\t\tboolean ok;\n\t\tdo {\n\t\t\tok = true;\n\t\t\tSystem.out.println(\"Money Service HQ\");\n\t\t\tSystem.out.println(\"----------------\");\n\t\t\tSystem.out.println(\"What would you like to do?\");\n\t\t\tSystem.out.println(\"1 - Register a new exchange office\");\n\t\t\tSystem.out.println(\"2 - Get statistics for registered offices\");\n\t\t\tSystem.out.println(\"0 - Exit the HQ application\");\n\n\t\t\tSystem.out.print(\"Enter your choice: \");\n\t\t\tString userChoice = CLIHelper.input.next();\n\n\t\t\ttry {\n\t\t\t\tchoice = Integer.parseInt(userChoice);\n\t\t\t}catch(NumberFormatException e) {\n\t\t\t\tlogger.log(Level.WARNING, \"choice: \" + choice + \" made exception! \" + e);\n\t\t\t\tSystem.out.format(\"Your choice %s is not accepted!\\n\", userChoice);\n\t\t\t\tok = false;\n\t\t\t}\n\t\t}while(!ok);\n\n\t\tlogger.info(\"Exiting HQmenu method <--\");\n\t\treturn choice;\n\t}", "private static int menu() {\r\n\t\tSystem.out.println(\"Elige opcion de jugada:\");\r\n\t\tSystem.out.println(\"1-Piedra\");\r\n\t\tSystem.out.println(\"2-Papel\");\r\n\t\tSystem.out.println(\"3-Tijera\");\r\n\t\tSystem.out.println(\"0-Salir\");\r\n\t\tSystem.out.print(\"Opcion: \");\r\n\t\treturn Teclado.leerInt();\r\n\t}", "private int parseNOptions(String line) {\n\n int nOptions = -1;\n\n try {\n if (\"\".equals(line.trim()) ||\n line.indexOf(\":\") == -1 ||\n \"\".equals(line.substring(line.indexOf(\":\") + 1).trim()))\n throw new AutoException(EnumAutomobileErrors.MISSING_NUMBER_OPTIONS);\n else\n try {\n nOptions = Integer.valueOf(line.substring(line.indexOf(\":\") + 1).trim());\n } catch (NumberFormatException ex) {\n throw new AutoException(EnumAutomobileErrors.WRONG_NUMBER_OPTIONS);\n }\n } catch (AutoException ex) {\n Object object = ex.fix();\n if (object != null)\n nOptions = (int) ex.fix();\n }\n\n return nOptions;\n\n }", "protected int getOptionNumber(FacesContext context, UIComponent component) {\r\n Iterator items = getSelectItems(context, component);\r\n int itemCount = 0;\r\n // count the children items\r\n while (items.hasNext()) {\r\n itemCount++;\r\n SelectItem item = (SelectItem) items.next();\r\n if (item instanceof SelectItemGroup) {\r\n int optionsLength = ((SelectItemGroup) item).getSelectItems().length;\r\n itemCount = itemCount + optionsLength;\r\n }\r\n }\r\n return itemCount;\r\n }", "public int getValue(){\n return selectedValue;\n }", "private int insertEditMenuAnswer()\n {\n boolean valid = false;\n String choice = \"\";\n Scanner content = new Scanner(System.in);\n \n while (!valid)\n {\n menu.editOptions();\n choice = content.nextLine().trim();\n valid = validation.integerValidation(choice, 1, 4);\n }\n \n int ans = Integer.parseInt(choice);\n \n return ans;\n }", "private int displayAppMenu() {\n\t\tint inputOption = -1;\n\t\tboolean isContinue = true;\n\t\tSystem.out.printf(\"Enter a selection from the following menu:\\r\\n\"\n\t\t\t\t+ \"1. Enter a new book\\r\\n\"\n\t\t\t\t+ \"2. Modify the book details. Enter the book isbn number\\r\\n\" \n\t\t\t\t+ \"3. Find a book by isbn number\\r\\n\"\n\t\t\t\t+ \"4. Display list of all books\\r\\n\\n\" \n\t\t\t\t+ \"5. Add a new user\\r\\n\" \n\t\t\t\t+ \"6. Modify user details\\r\\n\"\n\t\t\t\t+ \"7. Find a user by name\\r\\n\" \n\t\t\t\t+ \"8. Display all users\\r\\n\\n\"\n\t\t\t\t+ \"9. Add a loan. Link a user name to a book by isbn number\\r\\n\"\n\t\t\t\t+ \"10. Modify a loan. Loan is identified by isbn number\\r\\n\"\n\t\t\t\t+ \"11. Find a loan. Loan is identified by isbn number\\r\\n\" \n\t\t\t\t+ \"12. Display all loans\\r\\n\\n\"\n\t\t\t\t+ \"13. Delete a book\\r\\n\"\n\t\t\t\t+ \"14. Delete a user\\r\\n\" \n\t\t\t\t+ \"15. Delete a loan\\r\\n\\n\"\n\t\t\t\t+ \"0. Exit program\");\n\n\t\twhile (isContinue) {\n\t\t\tif (input.hasNextInt()) {\n\t\t\t\tinputOption = input.nextInt();\n\t\t\t\tisContinue = false;\n\n\t\t\t} else if (!input.hasNextInt()) {\n\n\t\t\t\tSystem.out.println(\"Please input a Integer\");\n\t\t\t\tinput.nextLine();\n\t\t\t}\n\t\t}\n\t\tinput.nextLine(); // clean up the input stream\n\t\treturn inputOption;\n\t}", "public int getUserNumber() throws AdminPersistenceException {\n return getCount(\"ST_User\", \"id\", \"accessLevel <> ?\", \"R\");\n }", "public Integer getUserFlags() {\r\n return userFlags;\r\n }", "public int getSelectionIndex () {\r\n\tcheckWidget();\r\n\tint [] args = {OS.Pt_ARG_PG_CURRENT_INDEX, 0, 0};\r\n\tOS.PtGetResources (handle, args.length / 3, args);\r\n\treturn args [1] == OS.Pt_PG_INVALID ? -1 : args [1];\r\n}", "public String getOptionText() {\n return option;\n }", "int getNumber(boolean playerA, String playerChoice) throws IOException;", "static int askProductType() {\n\n int choice; // initialize return variable\n\n choice = Validate.readInt(ASK_PRODUCT_TYPE, 2); // display options to user for products and store result if valid choice\n\n return choice; // return users choice\n }", "public static int promptForMenuSelection(String[] options, boolean withQuit) {\n int choice = -1, lowerBound = 1;\n if(withQuit){\n var arr = new String[options.length + 1];\n arr[0] = \"Quit\";\n System.arraycopy(options, 0, arr, 1, arr.length);\n options = arr;\n lowerBound = 0;\n }\n displayScreen(options);\n return promptForInt(\"Please Select a Menu Item\", lowerBound, options.length);\n }", "public int chooseFromReservationMenu() {\n\t\tfinal int NEW_RESERVATION =1;\t\t\t\t\t\t\t\t\t//option from the reservations sub menu\n\t\tfinal int VIEW_RESERVATION =2;\n\t\tfinal int CANCEL_RESERVATION =3;\n\n\t\tuserChoice = keyboard.nextInt();\n\n\t\tint scenario = 0; \n\t\tif (userChoice == NEW_RESERVATION)\n\t\t\tscenario = 1;\n\t\telse if(userChoice == VIEW_RESERVATION)\n\t\t\tscenario = 2;\n\t\telse if(userChoice == CANCEL_RESERVATION)\n\t\t\tscenario = 3;\n\t\telse\n\t\t\tscenario = 4;\n\n\t\treturn scenario;\t\t\t\t\t\t\t\t\t\t\t\t\t//int scenario returned is entered into a 'switch'\n\t}", "public String getVarimaxOption(){\n if(this. varimaxOption){\n return \"normal varimax option\";\n }\n else{\n return \"raw varimax option\";\n }\n }", "public int getCurrentOrTargetUserId() {\n int i;\n synchronized (this.mLock) {\n i = this.mTargetUserId != -10000 ? this.mTargetUserId : this.mCurrentUserId;\n }\n return i;\n }", "public int getPlayerAnswer()\r\n\t{\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter your answer (0-3): \");\r\n\t\treturn in.nextInt();\r\n\t}", "public static int userInput() {\n\n\t\tScanner myscanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter Number\");\n\t\tint userinput = 0;\n\n\t\t// validation to accept only numbers\n\t\ttry {\n\t\t\tuserinput = myscanner.nextInt();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Please enter only numbers\");\n\t\t}\n\n\t\treturn userinput;\n\n\t}", "private int insertNumberOption(ArrayList<Movie> result, String mode)\n {\n boolean valid = false;\n String answer = \"\";\n Scanner scanner = new Scanner(System.in);\n \n while (!valid)\n {\n System.out.print(\"\\t\\tPlease choose the movie you want to \"+ mode +\" by input the movies' number : \");\n answer = scanner.nextLine().trim();\n valid = validation.integerValidation(answer, 1, result.size());\n }\n \n int options = Integer.parseInt(answer);\n return options;\n }", "public int getUserIntInput(String question) {\r\n System.out.print(question);\r\n while (!scanner.hasNextInt()) {\r\n scanner.next();\r\n }\r\n int result = scanner.nextInt();\r\n return result;\r\n }", "public String getOptionSelection(){\r\n\t\treturn optionSelection;\r\n\t}", "public static int promptForMenuSelection(String prompt, String[] options, boolean withQuit) throws IOException {\r\n\r\n\t\tif (options == null || options.length == 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"Options cannot be empty\");\r\n\t\t}\r\n\r\n\t\tboolean isValid = false;\r\n\t\tint input = 0;\r\n\t\tint arrayLen = options.length;\r\n\r\n\t\twhile (!isValid) {\r\n\t\t\tif (prompt == null) {\r\n\t\t\t\tSystem.out.println(\"What would you like to do? [Please enter the number of the option]\");\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(prompt);\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < arrayLen; i++) {\r\n\t\t\t\tSystem.out.println(\"[\" + (i + 1) + \"] \" + options[i]);\r\n\t\t\t}\r\n\t\t\tif (withQuit) {\r\n\t\t\t\tSystem.out.println(\"[0] Quit\");\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tinput = Integer.parseInt(in.readLine());\r\n\t\t\t\tif ((input > arrayLen || input < 0)) {\r\n\t\t\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t\t\t}\r\n\t\t\t\tisValid = true;\r\n\t\t\t} catch (NumberFormatException ex) {\r\n\t\t\t\tSystem.out.println(\"That is not a valid number. Please try again.\");\r\n\t\t\t\tisValid = false;\r\n\t\t\t} catch (IndexOutOfBoundsException ex) {\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"\" + input + \" is not a valid option from all the available options. Please try again.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn input;\r\n\t}", "public int getCurrentChoice() {\n return currentChoice;\n }", "private static int getN ()\n\t{\n\t int inputInt = 1;\n\t BufferedReader in = new BufferedReader (new InputStreamReader (System.in));\n\t String inStr = new String();\n\n\t try\n\t {\n\t inStr = in.readLine ();\n\t inputInt = Integer.parseInt(inStr);\n\t }\n\t catch (IOException e)\n\t {\n\t System.out.println (\"Could not read input, choosing 1.\");\n\t }\n\t catch (NumberFormatException e)\n\t {\n\t System.out.println (\"Entry must be a number, choosing 1.\");\n\t }\n\n\t return (inputInt);\n\t}", "public int portNumb() {\r\n return Integer.parseInt(JOptionPane.showInputDialog(\r\n frame,\r\n \"Enter Port Number\",\r\n \"Port\",\r\n JOptionPane.QUESTION_MESSAGE));\r\n }" ]
[ "0.7900439", "0.7632099", "0.7578121", "0.68038535", "0.674726", "0.65652734", "0.65480566", "0.6542589", "0.64666605", "0.64394915", "0.6310304", "0.6269235", "0.62524295", "0.62000966", "0.6192328", "0.6151171", "0.60923606", "0.608961", "0.6065131", "0.6063896", "0.6063896", "0.6063896", "0.6063896", "0.60616606", "0.60536975", "0.6018573", "0.5958643", "0.5952277", "0.5900727", "0.58787304", "0.586914", "0.58428997", "0.58336294", "0.58054626", "0.57759774", "0.5773508", "0.576534", "0.5761547", "0.57550514", "0.5707008", "0.57030034", "0.56991583", "0.5698835", "0.5698835", "0.5696015", "0.5695992", "0.5691259", "0.5685918", "0.5679972", "0.56761056", "0.5665991", "0.5653459", "0.5650125", "0.5640846", "0.5625914", "0.5623425", "0.5608493", "0.5600378", "0.55986875", "0.55910456", "0.5577557", "0.5577557", "0.5577557", "0.55773544", "0.55757517", "0.55610424", "0.5551974", "0.55490845", "0.5529291", "0.55075073", "0.5502232", "0.5501575", "0.5501339", "0.5493848", "0.5486636", "0.54839563", "0.5477777", "0.5453955", "0.5453447", "0.54490286", "0.54329026", "0.5418629", "0.5413455", "0.5402838", "0.5394111", "0.5389359", "0.5387873", "0.53861445", "0.5377102", "0.53690505", "0.5368496", "0.53624815", "0.53622097", "0.53551286", "0.5346749", "0.5328131", "0.531552", "0.5314535", "0.53141165" ]
0.7133724
3
Gets the message for the user option
public String getMenuMessage() { return menuMessage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String checkMessage() {\n\t\tString userLatestStep = questionBot.get(owner.id());\n\n\t\t//se a amensagem comeca com '/', trata-se de um item de menu sendo acionado\n\t\tif(answerUser != null && answerUser.startsWith(\"/\"))\n\t\t\tuserLatestStep = answerUser;\n\n\t\t//busca no mapa de respostas as opcoes para o usuario\n\t\tObject options = response.get(userLatestStep);\n\n\t\t//obtem a mensagem a ser devolvida para o usuario\n\t\tString result = parseResult(options, answerUser);\n\n\t\t//mantem a ultima resposta do usuario\n\t\tuserLatestAnswer.put(owner.id(), answerUser);\n\n\t\treturn result;\n\t}", "java.lang.String getUserMessage();", "public String getUserSelection(String msg, String... options) {\n if (options==null || options.length==0){\n throw new NullPointerException(\"You must supply at least one option!\");\n }\n msg = msg.replace(\"\\n\", \"<BR>\");\n for(int i = 0; i < options.length; i++){\n options[i] = options[i].replace(\"\\n\", \"<BR>\");\n }\n return boardController.getUserSelection(msg, options).toString();\n }", "private String getMessage() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\r\n\t\t\r\n\t\tboolean addSign = prefs.getBoolean(\"addsign\", true);\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\tdefMessage = \"I am busy right now and will call you latter.\";\r\n\t\t\r\n\t\tfinalMessage = prefs.getString(\"message\", defMessage);\r\n\t\tif(finalMessage.equals(\"\"))\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t}\r\n\t\t\r\n\t\tif(addSign)\r\n\t\t\tfinalMessage += \"\\nSent using Calls and SMS Blocker for android.\\nDownload from: https://play.google.com/store/apps/details?id=com.atiffarrukh.callandsmsblocker\";\r\n\t\treturn finalMessage;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate String flowMultiple(Object options) {\n\t\t((JSONArray) options).forEach(item -> {\n\t\t\tif (((JSONObject) item).containsKey(answerUser.toUpperCase())) {\n\t\t\t\tquestionBot.put(owner.id(), ((JSONObject) item).get(answerUser.toUpperCase()).toString());\n\t\t\t}\n\t\t});\n\t\treturn buildMessage(questionBot.get(owner.id()));\n\t}", "public String getMsg(){\n return messageLabel.getText();\n }", "public String SelectOption(String option) {\n int intOption = ValidateOption(option);\n String optionOutput = \"\";\n switch (intOption) {\n case 0:\n return QuitAppMessage;\n case 1:\n optionOutput = CheckoutOutputMessage;\n break;\n case 2:\n optionOutput = CheckoutMovieOutputMessage;\n break;\n case 3:\n optionOutput = ReturnOutputMessage;\n break;\n default:\n return InvalidOptionMessage;\n }\n\n return optionOutput;\n\n }", "public String getUser() {\n\n return (String) comboCreateBox.getSelectedItem();\n }", "java.lang.String getTheMessage();", "public static String getMessageText(Window w) {\n\t\tComponent c = findComponentByName(w, OptionDialog.MESSAGE_COMPONENT_NAME);\n\t\tif (c instanceof JLabel) {\n\t\t\treturn ((JLabel) c).getText();\n\t\t}\n\t\telse if (c instanceof MultiLineLabel) {\n\t\t\treturn ((MultiLineLabel) c).getLabel();\n\t\t}\n\t\treturn null;\n\t}", "public String getMessageText();", "private static String getUserText()\n {\n\t// Reads the users input.\n\tBufferedReader optionReader = new BufferedReader(new InputStreamReader(System.in));\n\n\ttry\n\t {\n\t\treturn(optionReader.readLine());\n\t }\n\tcatch(Exception ex)\n\t {\n\t\treturn(null);\n\t }\n }", "java.lang.String getMsg();", "public String getHelpMessage() {\n\t\tString message = MessageManager.getDefaultMessages().getString(\"help.\" + getCommand());\n\t\tif (message == null || message.equals(\"\")) {\n\t\t\tmessage = getHelp();\n\t\t\tMessageManager.getDefaultMessages().set(\"help.\" + getCommand(), getHelp());\n\n\t\t\tFile f = MessageManager.getFile();\n\t\t\ttry {\n\t\t\t\tMessageManager.getDefaultMessages().save(f);\n\t\t\t} catch (IOException ex) {\n\t\t\t\tBukkit.getLogger().log(Level.SEVERE, \"Could not save config to \" + f, ex);\n\t\t\t}\n\t\t}\n\t\treturn message;\n\t}", "public Optional<String> getMessage() {\n return _message;\n }", "public String getOptionText() {\n return option;\n }", "public String selectMessage() {\r\n\r\n\t\tswitch (choice) {\r\n\t\tcase 1: {\r\n\t\t\treturn \"Stimat(a) \" + invoice.getClient().getName() + \" \" + invoice.getClient().getSurname()\r\n\t\t\t\t\t+ \"\\nFactura dvs. la \" + invoice.getSupplier().getFirmName() + \" a fost emisa.\" + \"\\nAveti de plata \"\r\n\t\t\t\t\t+ invoice.getTotalValue() + \" RON, pana in data de \" + new SimpleDateFormat(\"dd.MM.yyyy\").format(invoice.getMaturityDate()) + \"\\n\\nVa multumim !\";\r\n\t\t}\r\n\t\tcase 2: {\r\n\t\t\treturn \"Stimat(a) \" + invoice.getClient().getName() + \" \" + invoice.getClient().getSurname()\r\n\t\t\t\t\t+ \"\\nFactura dvs. la \" + invoice.getSupplier().getFirmName() + \" a fost emisa.\"\r\n\t\t\t\t\t+ \"\\nFactura a fost platita. S-au extras \" + invoice.getTotalValue() + \" RON din contul dvs.\"\r\n\t\t\t\t\t+ \"\\n\\nVa multumim !\";\r\n\t\t}\r\n\t\tcase 3: {\r\n\t\t\treturn \"Stimat(a) \" + invoice.getClient().getName() + \" \" + invoice.getClient().getSurname()\r\n\t\t\t\t\t+ \"\\nAveti de plata 3 facturi restante la\" + invoice.getSupplier().getFirmName()\r\n\t\t\t\t\t+ \"\\nFurnizorul a oprit furnizarea de servicii pana platiti una dintre cele 3 facturi restante\\n\\nVa multumim !\";\r\n\t\t}\r\n\t\tcase 4: {\r\n\t\t\treturn \"Stimat(a) \" + invoice.getClient().getName() + \" \" + invoice.getClient().getSurname()\r\n\t\t\t\t\t+ \"\\nFactura dvs. din data de \"+new SimpleDateFormat(\"dd.MM.yyyy\").format(invoice.getReleaseDate())+\" a fost platita. S-au extras \" + invoice.getTotalValue() + \" RON din contul dvs.\"\r\n\t\t\t\t\t+ \"\\n\\nVa multumim !\";\r\n\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String getMessage(){\n return(message);\n }", "String getMessage();", "String getMessage();", "String getMessage();", "public java.lang.String getUserMessage() {\n java.lang.Object ref = userMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n userMessage_ = s;\n }\n return s;\n }\n }", "private static String getUser(String message) { return message.split(\"!\")[0].substring(1); }", "public String getMessage()\n\t{\n\t\treturn messageArea.getText();\n\t}", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "public String getMessage() {\n return super.getString(Constants.Properties.MESSAGE);\n }", "public java.lang.String getUserMessage() {\n java.lang.Object ref = userMessage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n userMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String choosenMenu() {\n String value = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"menu_id\");\n menu_id = Integer.parseInt(value);\n String user = FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();\n if (user == null) {\n return \"choosenMenu\";\n } else {\n return \"chooseMenuUser\";\n }\n }", "public String getMessage(){\n return saisieMessage.getText();\n }", "public String getPersonalMessage()\n \t{\n \t\treturn personalMessage;\n \t}", "public String getMessage(){\n\t\treturn this.message;\n\t}", "public String getMessage(){\r\n\t\treturn message;\r\n\t}", "public static String[] getMessages() {\n\n String[] messages = new String[values().length];\n\n for (DefaultsOptions option : values()) {\n messages[option.getOption() - 1] = option.getMenuMessage();\n }\n\n return messages;\n }", "public String getMessage() {\n \t\treturn message;\n \t}", "@Override\r\n\tpublic String getMessage() {\n\t\treturn this.message;\r\n\t}", "public String getMessage()\r\n {\r\n return myMessage;\r\n }", "public String getOption()\r\n {\r\n return ((COSString)option.getObject( 0 ) ).getString();\r\n }", "public String getMessage(){\r\n return message;\r\n }", "public String getMessage(){\r\n return message;\r\n }", "public String getMessageText() {\r\n\t\treturn txtAreaWriteMessage.getText();\r\n\t}", "String getConfirmationMessage();", "public java.lang.String getMESSAGE() {\n return MESSAGE;\n }", "String getOption();", "public String getMessage() {\r\n\treturn messageSB.toString();\r\n }", "private String getMessage(){\n\t\t\treturn textArea.getText();\n\t}", "public String getMessage() { return message; }", "public String getMessage()\n {\n return fMessage;\n }", "public String getMessage()\n\t{\n\t\treturn msg;\n\t}", "public String getMessage(){\n return this.message;\n }", "public String getInvalidTouAgreeMessage() {\n if (invalidTermsAgreement) {\n if (isLearnSphere) {\n return LS_ACCEPT_TERMS_MSG;\n } else {\n return ACCEPT_TERMS_MSG;\n }\n }\n return \"\";\n }", "protected String getTo()\n {\n Object[] msgOptions =\n {\n \"Standard\", \"Broadcast\"\n };\n\n int n = JOptionPane.showOptionDialog(null,\n \"What message type are you sending?\",\n \"Send Message\",\n JOptionPane.DEFAULT_OPTION,\n JOptionPane.INFORMATION_MESSAGE, null,\n msgOptions, msgOptions[0]);\n\n String handle = \"\";\n\n if (n == 0)\n {\n List<String> contacts = new ArrayList();\n agent.getContacts().forEach((c) ->\n {\n contacts.add(c);\n });\n\n while (handle.isEmpty())\n {\n handle = JOptionPane.showInputDialog(null, \"Current Contacts\\n\" + contacts + \"\\n\\nWho would you like to message?\", \"Send Message\");\n if (handle == null)\n {\n setVisible(false);\n //Doesn't error now, but immediately exiting program isn't useful\n System.exit(0);\n }\n if (!handle.matches(\"^[^\\\\d\\\\s]+$\"))\n {\n handle = \"\";\n }\n }\n }\n else\n {\n handle = \"all\";\n }\n\n return handle;\n }", "public String getMessage(){\n return message;\n }", "public String getValue() {\n\t\treturn this.msg;\n\t}", "public String getMessage()\r\n\t{\r\n\t\treturn message;\r\n\t}", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }", "public String getMessage()\n\t{\n\t\treturn message;\n\t}", "public String getMessage()\r\n {\r\n return message;\r\n }", "public String getMessage()\r\n {\r\n return message;\r\n }", "@Override\n public void messagePrompt(String message) {\n JOptionPane.showMessageDialog(lobbyWindowFrame,message+\" is choosing the gods\");\n }", "@Override\n\tpublic String getMessage() {\n\t\treturn message;\n\t}", "@Override\n\tpublic String getMessage() {\n\t\treturn message;\n\t}", "public String getMessage()\n\t{\n\t\treturn this.message;\n\t}", "public String getMessage() {\n\t\treturn msg;\n\t}", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public void Joptionpane_message(String message) {\n JOptionPane.showMessageDialog(this, message);\n\n }", "public String getMessage() {\n\t\treturn message;\n\t\t\n\t}", "public String getMessage() {\r\n\t\treturn this.message;\r\n\t}", "public String getMessage() {\n return message == null ? new StringBuilder().append(\"??\").append(key).append(\"??\").toString() : message;\n }", "public String getMessage() {\r\n return message;\r\n }", "public String getMessage() {\r\n return message;\r\n }", "public String getMessage() {\n\t\treturn this.message;\n\t}", "public String getMessage() {\n\t\treturn this.message;\n\t}", "public String getMessage()\n\t\t{\n\t\t\treturn message;\n\t\t}", "public String getMessage () {\n return message;\n }", "protected String getFromUser(String message) {\n\t\ttry {\n\t\t\twhile (true) {\n\t\t\t\tBufferedReader userReader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\tSystem.out.print(message);\n\t\t\t\tString fromUser = userReader.readLine().toLowerCase();\n\t\t\t\tif (fromUser.trim().length() > 0){\n\t\t\t\t\treturn fromUser;\t\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Sorry empty strings are not valid input\");\n\t\t\t\t\tSystem.out.print(\"Please try again: \");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "String getMessage() {\n return null;\n }", "public String creerMessage(){\n return profile.getMessage();\n }", "public String getMessage() {\r\n\t\treturn message;\r\n\t}" ]
[ "0.68752223", "0.68160826", "0.64213246", "0.63243127", "0.6251472", "0.61908025", "0.61817735", "0.61229426", "0.61170775", "0.6073022", "0.6065997", "0.6011042", "0.6006651", "0.60059065", "0.59475744", "0.5939791", "0.59284854", "0.5921016", "0.5919201", "0.5919201", "0.5919201", "0.59122694", "0.5903011", "0.58725363", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.58697575", "0.5864689", "0.58597136", "0.5829832", "0.5824277", "0.5819844", "0.5819718", "0.5810667", "0.58008397", "0.5787274", "0.5774564", "0.5772299", "0.5768892", "0.57634103", "0.57634103", "0.5761354", "0.57481605", "0.5742074", "0.574091", "0.5718542", "0.5714628", "0.571177", "0.5710406", "0.56982", "0.56926316", "0.5691145", "0.5688599", "0.56884515", "0.56859064", "0.5685388", "0.5684935", "0.5672476", "0.5665839", "0.5665839", "0.56612444", "0.56595373", "0.56595373", "0.5639155", "0.5634761", "0.56265306", "0.56265306", "0.56265306", "0.56265306", "0.56265306", "0.56265306", "0.56265306", "0.5623167", "0.56135684", "0.56134224", "0.5608122", "0.5605759", "0.5605759", "0.5600976", "0.5600976", "0.56002456", "0.5600061", "0.55992615", "0.55908304", "0.55904937", "0.5588374" ]
0.60864925
9
Gets the messages for the options the user can perform
public static String[] getMessages() { String[] messages = new String[values().length]; for (DefaultsOptions option : values()) { messages[option.getOption() - 1] = option.getMenuMessage(); } return messages; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n\tprivate String flowMultiple(Object options) {\n\t\t((JSONArray) options).forEach(item -> {\n\t\t\tif (((JSONObject) item).containsKey(answerUser.toUpperCase())) {\n\t\t\t\tquestionBot.put(owner.id(), ((JSONObject) item).get(answerUser.toUpperCase()).toString());\n\t\t\t}\n\t\t});\n\t\treturn buildMessage(questionBot.get(owner.id()));\n\t}", "@Override\n public String[] getMenuOptions() {\n String[] options = {\"Change your username\", \"Change your password\", \"Change your email\"};\n return options;\n }", "public String[] getHelpMessages()\r\n {\r\n return helpMessage;\r\n }", "public abstract String[] getOptions();", "public String checkMessage() {\n\t\tString userLatestStep = questionBot.get(owner.id());\n\n\t\t//se a amensagem comeca com '/', trata-se de um item de menu sendo acionado\n\t\tif(answerUser != null && answerUser.startsWith(\"/\"))\n\t\t\tuserLatestStep = answerUser;\n\n\t\t//busca no mapa de respostas as opcoes para o usuario\n\t\tObject options = response.get(userLatestStep);\n\n\t\t//obtem a mensagem a ser devolvida para o usuario\n\t\tString result = parseResult(options, answerUser);\n\n\t\t//mantem a ultima resposta do usuario\n\t\tuserLatestAnswer.put(owner.id(), answerUser);\n\n\t\treturn result;\n\t}", "public static void listMenuOptions(){\n\n System.out.println(\"Please choose an option:\");\n System.out.println(\"(1) Add a task.\");\n System.out.println(\"(2) Remove a task.\");\n System.out.println(\"(3) Update a task.\");\n System.out.println(\"(4) List all tasks.\");\n System.out.println(\"(0) Exit\");\n }", "public HTTPRequestResponse[] getSelectedMessages() {\r\n if(selectedMessages == null){\r\n return new HTTPRequestResponse[]{};\r\n }\r\n return selectedMessages;\r\n }", "public String getOptions() {\n return this.options;\n }", "public List<String> getErrorMessages();", "public List<String> getMessages() {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n logger.debug(\"Getting All Messages -> \"+messages);\n return messages;\n }", "private String getOptionStrings(int choice) {\n //these are the common ones, maybe the only ones\n switch (choice) {\n case 0: return \"\";\n case 1: return \"Shoot Laser gun.\";\n case 2: return \"Shoot Missile gun.\";\n case 3: return \"Wait a turn\";\n\n case 4: return \"Shoot at Pilot, Gun L, or Gun M?\";\n case 5: return \"Shoot at Shield, or Engine?\";\n case 6: return \"Shoot at random?\";\n\n case 7: return \"Shoot at Pilot?\";\n case 8: return \"Shoot at Gun L?\";\n case 9: return \"Shoot at Gun M?\";\n\n case 10: return \"Shoot at Shield?\";\n case 11: return \"Shoot at Engine?\";\n case 12: return \"Shoot at Random?\";\n\n case 100: return \"Enter any number to continue\";\n }\n //if value given is not found above\n return \"Error\";\n }", "public String[] getMessages()\n\t{\n\t\treturn messages;\n\t}", "public ArrayList<String> getMessages() {return messages;}", "public String selectMessage() {\r\n\r\n\t\tswitch (choice) {\r\n\t\tcase 1: {\r\n\t\t\treturn \"Stimat(a) \" + invoice.getClient().getName() + \" \" + invoice.getClient().getSurname()\r\n\t\t\t\t\t+ \"\\nFactura dvs. la \" + invoice.getSupplier().getFirmName() + \" a fost emisa.\" + \"\\nAveti de plata \"\r\n\t\t\t\t\t+ invoice.getTotalValue() + \" RON, pana in data de \" + new SimpleDateFormat(\"dd.MM.yyyy\").format(invoice.getMaturityDate()) + \"\\n\\nVa multumim !\";\r\n\t\t}\r\n\t\tcase 2: {\r\n\t\t\treturn \"Stimat(a) \" + invoice.getClient().getName() + \" \" + invoice.getClient().getSurname()\r\n\t\t\t\t\t+ \"\\nFactura dvs. la \" + invoice.getSupplier().getFirmName() + \" a fost emisa.\"\r\n\t\t\t\t\t+ \"\\nFactura a fost platita. S-au extras \" + invoice.getTotalValue() + \" RON din contul dvs.\"\r\n\t\t\t\t\t+ \"\\n\\nVa multumim !\";\r\n\t\t}\r\n\t\tcase 3: {\r\n\t\t\treturn \"Stimat(a) \" + invoice.getClient().getName() + \" \" + invoice.getClient().getSurname()\r\n\t\t\t\t\t+ \"\\nAveti de plata 3 facturi restante la\" + invoice.getSupplier().getFirmName()\r\n\t\t\t\t\t+ \"\\nFurnizorul a oprit furnizarea de servicii pana platiti una dintre cele 3 facturi restante\\n\\nVa multumim !\";\r\n\t\t}\r\n\t\tcase 4: {\r\n\t\t\treturn \"Stimat(a) \" + invoice.getClient().getName() + \" \" + invoice.getClient().getSurname()\r\n\t\t\t\t\t+ \"\\nFactura dvs. din data de \"+new SimpleDateFormat(\"dd.MM.yyyy\").format(invoice.getReleaseDate())+\" a fost platita. S-au extras \" + invoice.getTotalValue() + \" RON din contul dvs.\"\r\n\t\t\t\t\t+ \"\\n\\nVa multumim !\";\r\n\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public List<String> getOptionsNames();", "public String getMessages() {\n\t\treturn message;\n\t}", "public String[] getClientsToMessage() {\r\n\t\treturn clientList.getSelectedValuesList().toArray(new String[clientList.getSelectedValuesList().size()]);\r\n\t}", "private void printOptionsMessage() {\n System.out.println(\"\\n\");\n System.out.print(\"Visible arrays: \");\n if (showArray == true) {\n System.out.println(\"On\");\n } else {\n System.out.println(\"Off\");\n }\n\n System.out.println(\"Selected Algorithms: \");\n if (selected[0] == true) {\n System.out.print(\" MergeSort\");\n }\n if (selected[1] == true) {\n System.out.print(\" QuickSort\");\n }\n if (selected[2] == true) {\n System.out.print(\" HeapSort\");\n }\n\n System.out.println();\n }", "public String getMessageText();", "public Set<String> getErrorMessages() {\n HashSet<String> result = new HashSet<String>();\n switch (argumentPresence) {\n case MANDATORY:\n if (!argument.hasValue()) {\n result.add(messageArgMissing);\n } else {\n result.addAll(argument.getErrorMessages());\n }\n break;\n case OPTIONAL:\n if (argument.hasValue()) {\n result.addAll(argument.getErrorMessages());\n }\n break;\n }\n return result;\n }", "public String getUserSelection(String msg, String... options) {\n if (options==null || options.length==0){\n throw new NullPointerException(\"You must supply at least one option!\");\n }\n msg = msg.replace(\"\\n\", \"<BR>\");\n for(int i = 0; i < options.length; i++){\n options[i] = options[i].replace(\"\\n\", \"<BR>\");\n }\n return boardController.getUserSelection(msg, options).toString();\n }", "public final String getCustomMessages() {\n\t\treturn customMessages;\n\t}", "protected static ResourceBundle getMessages() {\n return _messages;\n }", "public List<String> getMessages() {\n return messages;\n }", "@objid (\"f29e2e4a-e5e9-43fa-b193-525c198df148\")\n EList<Message> getUsage();", "public String[] getTextOptions() {\n\t\treturn textOptions;\n\t}", "public String produceHelpMessage() {\n\t\t// first calculate how much space is necessary for the options\n\t\tint maxlen = 0;\n\t\tfor (OptionContainer oc : options) {\n\t\t\tfinal String shorta = oc.getShort();\n\t\t\tfinal String longa = oc.getLong();\n\t\t\tint len = 0;\n\t\t\tif (shorta != null)\n\t\t\t\tlen += shorta.length() + 1 + 1;\n\t\t\tif (longa != null)\n\t\t\t\tlen += longa.length() + 1 + (longa.charAt(0) == 'X' ? 0 : 1) + 1;\n\t\t\t// yes, we don't care about branch mispredictions here ;)\n\t\t\tif (maxlen < len)\n\t\t\t\tmaxlen = len;\n\t\t}\n\n\t\t// get the individual strings\n\t\tfinal StringBuilder ret = new StringBuilder();\n\t\tfor (OptionContainer oc : options) {\n\t\t\tret.append(produceHelpMessage(oc, maxlen));\n\t\t}\n\n\t\treturn ret.toString();\n\t}", "public String getTextMessagesForVehicleAndCurrentDriver();", "public String[] getOptions(){\n\n String[] options = new String[5];\n int current = 0;\n\n options[current++] = \"-G\"; options[current++] = \"\" + m_NumAttemptsOfGene;\n options[current++] = \"-I\"; options[current++] = \"\" + m_NumFoldersMI;\n\n while (current < options.length) {\n options[current++] = \"\";\n }\n return options;\n }", "public String[][] getOptions() {\r\n return options;\r\n }", "public List<Mensaje> getCurrentMessages() {\n\t\tif (currentContact != null && currentUser != null)\n\t\t\ttry {\n\t\t\t\tcurrentContact = contactDAO.getContact(currentContact.getId());\n\t\t\t\treturn currentContact.getMessages();\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\t// Can't stop the view's access while switching users,\n\t\t\t\t// App will just try again after loading.\n\t\t\t\treturn null;\n\t\t\t}\n\t\treturn null;\n\t}", "private Object displayOptionsPanel(String message, Object[] possibleValues) {\n return JOptionPane.showInputDialog(\n mainPanel, // parentComponent\n message, // message\n \"\", // title\n JOptionPane.QUESTION_MESSAGE, // messageType\n null, // icon\n possibleValues, // selectionValues\n possibleValues[0] // initialSelectionValue\n );\n }", "@Override\n\tpublic List<Map> getOptions(DataMsgBus arg0) {\n\t\tHttpSession session=SessUtil.getRequest().getSession();\n\t\tMap userInfo=(Map) session.getAttribute(\"USERINFO\");\n\t\tMap m=new HashMap();\n\t\tm.put(\"ssdwid\", userInfo.get(\"unit_id\"));\n\t\tm.put(\"user_id\", userInfo.get(\"user_id\"));\n\t\tm.put(\"dict_type\", \"常用意见\");\n\t\treturn getDictService().queryDictByType(m);\n\t}", "@Override\n\tabstract protected List<String> getOptionsList();", "public String getMenuMessage() {\n return menuMessage;\n }", "private String optionsManager() {\n\t\tSystem.out.print(\"\\nEntrez votre choix SVP: \");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString option = \"\";\n\t\toption = scan.nextLine();\n\t\t\n\t\tString etatDeHotel = this.isOuvert()? \"L'Hôtel est ouvert ! \" : \"L'Hôtel n'est pas ouvert ! \";\t\t\n\t\tString doitEtreAfficher = option.equalsIgnoreCase(\"A\")? \"\\n\"+etatDeHotel+\"\\n\" \n\t\t\t\t: option.equalsIgnoreCase(\"B\")? \"\\nLe nombre de chambres réservées est: \"+ this.chambresNonVides().size()+\"\\n\"\n\t\t\t\t: option.equalsIgnoreCase(\"C\") ? \"\\nLe nombre de chambres vides est: \"+ this.chambresVides().size()+\"\\n\"\n\t\t\t\t: option.equalsIgnoreCase(\"D\")? \"\\nLe nombre de la première chambre vide est : \"+this.chambresVides().get(0).getId()+\"\\n\"\n\t\t\t\t: option.equalsIgnoreCase(\"E\")? \"\\nLe nombre de la dernière chambre vide est : \"+this.chambresVides().get(this.chambresVides().size()-1).getId()+\"\\n\"\n\t\t\t\t: option.equalsIgnoreCase(\"H\")? \"\\n-La commande Q ou Quit sont pour arrêtrer le programe.\\n-Il faut choisir un letter pour les options.\\n-La commande O pour afficher toutes les options possibles! \"\n\t\t\t\t: option.equalsIgnoreCase(\"n\")? \"----------------------------------\\nVous avez été dirigé vers le menu principale\"\n\t\t\t\t: option.equalsIgnoreCase(\"m\")? \"\\n-----------\\nMerci\\n----------------\\n\"\n\t\t\t\t: option.equalsIgnoreCase(\"q\")? \"q\"\n\t\t\t\t: option.equalsIgnoreCase(\"quit\")? \"q\"\n\t\t\t\t: option.equalsIgnoreCase(\"o\")? \"o\"\n\t\t\t\t: option.equalsIgnoreCase(\"f\")? \"f\"\n\t\t\t\t: option.equalsIgnoreCase(\"g\")? \"g\"\n\t\t\t\t:\"x\";\n\t\treturn doitEtreAfficher;\n\t}", "@NonNull\n\t\tMap<String, String> getOptions();", "public go.micro.runtime.RuntimeOuterClass.ListOptions getOptions() {\n if (optionsBuilder_ == null) {\n return options_ == null ? go.micro.runtime.RuntimeOuterClass.ListOptions.getDefaultInstance() : options_;\n } else {\n return optionsBuilder_.getMessage();\n }\n }", "public static void listMainMenuOptions(){\n\t\tSystem.out.println(\"\\nWelcome to Vet Clinic Program. Please choose an option from the list below.\\n\");\n\t\tSystem.out.println(\"1: List all staff.\");\n\t\tSystem.out.println(\"2: List staff by category.\");\n\t\tSystem.out.println(\"3: List admin Staff performing a task.\");\n\t\tSystem.out.println(\"4: Search for a specific member of staff by name.\");\n\t\tSystem.out.println(\"5: List all animals.\");\n\t\tSystem.out.println(\"6: List animals by type.\");\n\t\tSystem.out.println(\"7: Search for a specific animal by name.\");\n\t\tSystem.out.println(\"8: See the Queue to the Veterinary\");\n\t\tSystem.out.println(\"9: Exit\");\n\t}", "public java.util.List<KeyValuePair> getInfoList() {\n if (infoBuilder_ == null) {\n return java.util.Collections.unmodifiableList(info_);\n } else {\n return infoBuilder_.getMessageList();\n }\n }", "public static void options(){\n System.out.println(\"Choose from the following options \");\n System.out.println(\"0 Print the options again\");\n System.out.println(\"1 Create Student Records\");\n System.out.println(\"2 Create Teacher Records\");\n System.out.println(\"3 Edit the Records\");\n System.out.println(\"4 Get the Record Count\");\n System.out.println(\"5 Exit\");\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }", "public Enumeration listOptions(){\n\n Vector newVector = new Vector(2);\n\n newVector.addElement(new Option(\n\t\t\t\t \"\\tNumber of attempts of generalisation.\\n\",\n\t\t\t\t \"G\", \n\t\t\t\t 1, \n\t\t\t\t \"-G <value>\"));\n newVector.addElement(new Option(\n\t\t\t\t \"\\tNumber of folder for computing the mutual information.\\n\",\n\t\t\t\t \"I\", \n\t\t\t\t 1, \n\t\t\t\t \"-I <value>\"));\n\n return newVector.elements();\n }", "java.util.List<Res.Msg>\n getMsgList();", "public interface Message {\n public OptionsImpl getConfirm();\n\n public List<SystemImpl> getAddressees();\n\n}", "public String getOptionsAsString() {\n\t\tStringBuilder buf = new StringBuilder();\n\t\tfor (int i = 0; i <propertyKeys.size(); i++) {\n\t\t\tString key = propertyKeys.get(i);\n\t\t\tif (!runtimeKeys.get(i))\n buf.append(key + \" : \" + getOption(key)).append(\"\\r\\n\");\n\t\t}\n\t\tfor (int i = 0; i <propertyKeys.size(); i++) {\n\t\t\tString key = propertyKeys.get(i);\n\t\t\tif (runtimeKeys.get(i))\n buf.append(\"* \" + key + \" : \" + getOption(key)).append(\"\\r\\n\");\n\t\t}\n\t\treturn buf.toString();\n\t}", "public Machinetta.RAPInterface.InputMessages.InputMessage[] getMessages() {\n Debugger.debug(3,\"Unimplemented getMessages() being called ... \");\n return null;\n }", "public List<String> getErrorMessages() {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n logger.debug(\"Getting All Error Messages -> \"+errMessages);\n return errMessages;\n }", "@ZAttr(id=772)\n public String[] getAdminConsoleLoginMessage() {\n return getMultiAttr(Provisioning.A_zimbraAdminConsoleLoginMessage);\n }", "public ImmutableList<String> getInfoMessages() {\n return Lists.immutable.ofAll(infoMessages);\n }", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }", "public Collection<String> getOptions() {\n return options==null? Collections.emptyList() : Arrays.asList(options);\n }", "private void deliverOptions()\n {\n int counter = 0;\n for(Option choice : options){\n counter++;\n System.out.println(\"#\" + counter + \" \" + choice.getText());\n }\n }", "@RequestMapping(value=\"admin/messages\", method=RequestMethod.GET)\n public String showUserRequestedMessages(Model model){\n \n return \"admin/specialrequestmessages\";\n }", "final protected Messages getMessages() {\r\n return messages;\r\n }", "public void getMessages(){\n if(GUI.getInstance().getBusiness().getCurrentChat() != null) {\n Set<? extends IMessageIn> response = GUI.getInstance().getBusiness().getCurrentChat().getMessages();\n if(response != null){\n messages.addAll(response);\n }\n }\n }", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "public String getMessage();", "@Override\r\n\tpublic String[] getNPCMessages() {\n\t\treturn null;\r\n\t}", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "java.lang.String getMessage();", "String getMessage();", "String getMessage();", "String getMessage();", "public java.util.List<if4031.common.Message.Builder> \n getMessagesBuilderList() {\n return getMessagesFieldBuilder().getBuilderList();\n }", "public void setErrorMessages(){\n // if mood state in myself tab is chosen\n if(selectedMyMoodState != null && !selectedMyMoodState.isEmpty()){\n ((TextView)myEmotionalStateSpinner.getSelectedView()).setError(\"More than one option is chosen\");\n }\n // if mood state in following tab is chosen\n if(selectedFoMoodState != null && !selectedFoMoodState.isEmpty()){\n ((TextView)foEmotionalStateSpinner.getSelectedView()).setError(\"More than one option is chosen\");\n }\n // if most recent week in myself tab is chosen\n if (myMostRecentWeekCheckbox.isChecked()){\n myMostRecentWeekCheckbox.setError(\"More than one option is chosen\");\n }\n // if most recent week in foloowing tab is chosen\n if (foMostRecentWeekCheckbox.isChecked()){\n foMostRecentWeekCheckbox.setError(\"More than one option is chosen\");\n }\n // if display all in myself tab is chosen\n if (myDisplayAllCheckbox.isChecked()){\n myDisplayAllCheckbox.setError(\"More than one option is chosen\");\n }\n // if display all in following tab is chosen\n if (foDisplayAllCheckbox.isChecked()){\n foDisplayAllCheckbox.setError(\"More than one option is chosen\");\n }\n // if reason in myself tab is chosen\n if(enteredMyReason != null && !enteredMyReason.isEmpty()){\n myReasonEditText.setError(\"More than one option is chosen\");\n }\n // if reason in following tab is chosen\n if(enteredFoReason != null && !enteredFoReason.isEmpty()){\n foReasonEditText.setError(\"More than one option is chosen\");\n }\n }", "public static Map<Long,Message> getMessages(){\r\n\t\treturn messages;\r\n\t\t\r\n\t}", "private static void viewOptions() {\n\t\tlog.info(\"Enter 0 to Exit.\");\n\t\tlog.info(\"Enter 1 to Login.\");\n\t}", "public java.util.List<io.dstore.engine.Message.Builder> \n getMessageBuilderList() {\n return getMessageFieldBuilder().getBuilderList();\n }", "public java.util.List<io.dstore.engine.Message.Builder> \n getMessageBuilderList() {\n return getMessageFieldBuilder().getBuilderList();\n }", "public java.util.List<io.dstore.engine.Message.Builder> \n getMessageBuilderList() {\n return getMessageFieldBuilder().getBuilderList();\n }", "public java.util.List<io.dstore.engine.Message.Builder> \n getMessageBuilderList() {\n return getMessageFieldBuilder().getBuilderList();\n }", "public java.util.List<io.dstore.engine.Message.Builder> \n getMessageBuilderList() {\n return getMessageFieldBuilder().getBuilderList();\n }", "public String[] getOptions() {\n\t\tString[] EvaluatorOptions = new String[0];\n\t\tString[] SearchOptions = new String[0];\n\t\tint current = 0;\n\n//\t\tif (m_ASEvaluator instanceof OptionHandler) {\n//\t\t\tEvaluatorOptions = ((OptionHandler) m_ASEvaluator).getOptions();\n//\t\t}\n//\n//\t\tif (m_ASSearch instanceof OptionHandler) {\n//\t\t\tSearchOptions = ((OptionHandler) m_ASSearch).getOptions();\n//\t\t}\n\n\t\tString[] setOptions = new String[10];\n//\t\tsetOptions[current++] = \"-E\";\n//\t\tsetOptions[current++] = getEvaluator().getClass().getName() + \" \"\n//\t\t\t\t+ Utils.joinOptions(EvaluatorOptions);\n//\n//\t\tsetOptions[current++] = \"-S\";\n//\t\tsetOptions[current++] = getSearch().getClass().getName() + \" \"\n//\t\t\t\t+ Utils.joinOptions(SearchOptions);\n//\t\t\n\t\t setOptions[current++] = \"-k\";\n\t\t setOptions[current++] = \"\" + getK();\n\t\t setOptions[current++] = \"-p\";\n\t\t setOptions[current++] = \"\" + getminF_Correlation();\n\n\t\twhile (current < setOptions.length) {\n\t\t\tsetOptions[current++] = \"\";\n\t\t}\n\n\t\treturn setOptions;\n\t}", "String getOptionsOrThrow(\n String key);", "String getOptionsOrThrow(\n String key);" ]
[ "0.64639264", "0.629742", "0.62694144", "0.6036709", "0.5915713", "0.591192", "0.582643", "0.5820759", "0.5795412", "0.5751124", "0.5733393", "0.572133", "0.57187855", "0.5703085", "0.5701386", "0.5691146", "0.56832236", "0.56820834", "0.5679407", "0.56778985", "0.56734043", "0.5667031", "0.56635165", "0.56608", "0.5652131", "0.56169623", "0.56110954", "0.5600528", "0.5577238", "0.55740744", "0.5561708", "0.55509394", "0.55385363", "0.55146295", "0.5498729", "0.54931474", "0.546528", "0.54478383", "0.5435103", "0.5407734", "0.540075", "0.5393649", "0.5393649", "0.5393649", "0.5393649", "0.5393649", "0.53915465", "0.53710884", "0.5370884", "0.5357274", "0.5356571", "0.535282", "0.5348101", "0.5327901", "0.5320192", "0.5318282", "0.5316695", "0.5306563", "0.52923775", "0.52874523", "0.52793676", "0.52793676", "0.52793676", "0.52793676", "0.52793676", "0.52793676", "0.52793676", "0.52727664", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.52719915", "0.5268956", "0.5268956", "0.5268956", "0.52618945", "0.5259322", "0.5253123", "0.52514476", "0.52441394", "0.52441394", "0.52441394", "0.52441394", "0.52441394", "0.52431846", "0.5242932", "0.5242932" ]
0.76326144
0
GpsUtil observe onActivityResult() // get Util activityResultObserver
private IActivityResultObserver init(Context application){ gpsUtil = new GpsUtil(application); return gpsUtil.getObserver(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IntentResultListener {\n void gotIntentResult(int requestCode, int resultCode, Intent resultData);\n}", "@Override\n public void OnActivityResultReceived(int requestCode, int resultCode, Intent data) {\n\n }", "@SuppressWarnings({\"unchecked\", \"deprecation\", \"all\"})\npublic static interface OnActivityResultListener {\n\n/**\n * See Activity's onActivityResult.\n *\n * @return Whether the request code was handled (in which case\n * subsequent listeners will not be called.\n */\n\npublic boolean onActivityResult(int requestCode, int resultCode, android.content.Intent data);\n}", "@Override\n\tpublic void resultActivityCall(int requestCode, int resultCode, Intent data) {\n\n\t}", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 100) {\n if (resultCode != RESULT_OK)\n Toast.makeText(getContext(), \"GPS est déactivé\", Toast.LENGTH_LONG).show();\n else {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n setupmap();\n MapForm.setMyLocationEnabled(true);\n }\n }\n }\n }", "void onTaskResult(TaskInfo mTaskInfo);", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n\n\t\tsuper.onActivityResult(requestCode, resultCode, intent);\n\t\t// Choose what to do based on the request code\n\t\tswitch (requestCode) {\n\t\tcase LocationUtils.REQUEST_ACCOUNT_PICKER:\n\t if (intent != null && intent.getExtras() != null) {\n\n\t \t LocationUtils.accountName = intent.getExtras().getString(AccountManager.KEY_ACCOUNT_NAME);\n\t if (LocationUtils.accountName != null) {\n\t \t LocationUtils.credential.setSelectedAccountName(LocationUtils.accountName);\n\t \t \n\t \t AnyTaxi.Builder endpointBuilder = new AnyTaxi.Builder(\n\t AndroidHttp.newCompatibleTransport(),\n\t new JacksonFactory(),\n\t LocationUtils.credential);\n\t \t LocationUtils.endpoint = CloudEndpointUtils.updateBuilder(endpointBuilder).build();\n\t }\n\t }\n\t\t\tAsyncTask<Void, Void, Driver> task = new EndpointsTask(this, \n\t\t\t\t\tLocationUtils.endpoint, \"ywangbc@gmail.com\");\n\t\t\ttask.execute();\n\t\t\tbreak;\n\n\t\t\t// If the request code matches the code sent in onConnectionFailed\n\t\tcase LocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST :\n\n\t\t\tswitch (resultCode) {\n\t\t\t// If Google Play services resolved the problem\n\t\t\tcase Activity.RESULT_OK:\n\n\t\t\t\t// Log the result\n\t\t\t\tLog.d(LocationUtils.APPTAG, getString(R.string.resolved));\n\n\t\t\t\t// Display the result\n\t\t\t\tmConnectionState.setText(R.string.connected);\n\t\t\t\tmConnectionStatus.setText(R.string.resolved);\n\t\t\t\tbreak;\n\n\t\t\t\t// If any other result was returned by Google Play services\n\t\t\tdefault:\n\t\t\t\t// Log the result\n\t\t\t\tLog.d(LocationUtils.APPTAG, getString(R.string.no_resolution));\n\n\t\t\t\t// Display the result\n\t\t\t\tmConnectionState.setText(R.string.disconnected);\n\t\t\t\tmConnectionStatus.setText(R.string.no_resolution);\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// If any other request code was received\n\t\tdefault:\n\t\t\t// Report that this Activity received an unknown requestCode\n\t\t\tLog.d(LocationUtils.APPTAG,\n\t\t\t\t\tgetString(R.string.unknown_activity_request_code, requestCode));\n\n\t\t\tbreak;\n\t\t}\n\t}", "private void handleActionGetLocation(final ResultReceiver res) {\n //Bundle up and send the data returned by the gps sensor.\n mGPSSensor = new LocationSensor(this);\n mGPSSensor.getCurrentLocation(new AndroidSensorCallback() {\n @Override\n public void onSensorCallback(Location location) {\n if (location == null) {\n return;\n }\n\n Bundle b = new Bundle();\n b.putDouble(\"lat\", location.getLatitude());\n b.putDouble(\"lng\", location.getLongitude());\n b.putDouble(\"alt\", location.getAltitude());\n res.send(0, b);\n return;\n }\n });\n }", "@Override\n protected void onActivityResult(final int requestCode, final int resultCode, final Intent data)\n {\n super.onActivityResult(requestCode, resultCode, data);\n callbackManager.onActivityResult(requestCode, resultCode, data);\n }", "@Override\r\n public void onGpsStatusChanged(int event) {\n\r\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n if (locationMangaer.isProviderEnabled(LocationManager.GPS_PROVIDER))\n {\n Intent IntEmergencia = new Intent(MainActivity.this, MapActivity_Pedido.class);\n startActivity(IntEmergencia);\n MainActivity.this.finish();\n }\n\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n// switch (resultCode) { //resultCode为回传的标记,我在第二个Activity中回传的是RESULT_OK\n// case Activity.RESULT_OK:\n// Bundle b=intent.getExtras(); //data为第二个Activity中回传的Intent\n// barCode = b.getString(\"code\");//str即为回传的值\n// mCallbackContext.success(barCode);\n// break;\n// default:\n// break;\n// }\n }", "public void onSuccess(GGeocodeResult result);", "@Override\n synchronized public void onTaskCompletionResult() {\n if (DataContainer.getInstance().pullValueBoolean(DataKeys.PLAY_REFERRER_FETCHED, context) && DataContainer.getInstance().pullValueBoolean(DataKeys.GOOGLE_AAID_FETCHED, context)) {\n deviceInformationUtils.prepareInformations();\n deviceInformationUtils.debugData();\n long lastLaunch = pullValueLong(ITrackingConstants.CONF_LAST_LAUNCH_INTERNAL, context);\n trackLaunchHandler(lastLaunch);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 1 && resultCode == RESULT_OK) {\n fade(rlMap);\n Map<String, Object> params = User.getToken(this);\n WebBridge.send(\"webservices.php?task=getStatusMap\", params, \"Cargando\", this, this);\n } else if (requestCode == 1 && resultCode != RESULT_OK) {\n clickBack(null);\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\n if (result != null) {\n if (result.getContents() == null) {\n Toast.makeText(this, \"Result Not Found\", Toast.LENGTH_LONG).show();\n } else {\n partNumber = result.getContents();\n new BackgroundTaskScanQrCode().execute();\n }\n } else {\n super.onActivityResult(requestCode, resultCode, data);\n }\n }", "@Override\n protected void onReceiveResult(int resultCode, Bundle resultData)\n {\n if (resultCode == Constants.SUCCESS_RESULT) {\n //showToast(getString(R.string.address_found));\n }\n\n }", "private void getLocation(LocationListener listener){\n FusedLocationProviderClient fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n try {\n if (locationPermissionGranted){\n Task<Location> locationResult = fusedLocationClient.getLastLocation();\n locationResult.addOnCompleteListener(this, task -> {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n listener.onSuccess(task.getResult());\n } else {\n Toast.makeText(this, task.getException().getMessage(), Toast.LENGTH_LONG).show();\n }\n progressBar.setVisibility(View.GONE);\n });\n }\n } catch (SecurityException e){\n Log.e(\"Exception: %s\", e.getMessage(), e);\n }\n }", "@Override\r\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n\t\t// TODO - fill in here\r\n\r\n\r\n\r\n\t}", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tXSDK.getInstance().onActivityResult(requestCode, resultCode, data);\r\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t}", "public interface GGeocodeAdvancedResultListener\r\n{\r\n\t/**\r\n\t * Called when the geocode operation is successful, returns a set of \"matching\" results\r\n\t * @param result\r\n\t */\r\n\tpublic void onSuccess(GGeocodeResult result);\r\n\t\r\n\t/**\r\n\t * Called when the geocode operation fails\r\n\t *\r\n\t */\r\n\tpublic void onFail(int statusCode, String address);\r\n}", "@Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n Log.d(TAG, \"onLocationResult: \");\n if (locationResult != null) {\n Log.d(TAG, \"onLocationResult: loaction!==null\");\n myLocation = locationResult.getLastLocation();\n showMarker();//de show hinh len\n }\n }", "private void inputLocation() {\n// boolean googleMapExist= (ConnectionResult.SUCCESS==GooglePlayServicesUtil.isGooglePlayServicesAvailable(mContext));\n//\n// if(googleMapExist) {\n// org.wowtalk.Log.w(\"google map exist\");\n// Intent mapIntent = new Intent(mContext, PickLocActivity.class);\n// mapIntent.putExtra(\"auto_loc\", true);\n// mContext.startActivityForResult(mapIntent, REQ_INPUT_LOC);\n// } else {\n //org.wowtalk.Log.w(\"google map not exist\");\n Intent mapIntent = new Intent(mContext, PickLocActivityWithAMap.class);\n mapIntent.putExtra(\"auto_loc\", true);\n mContext.startActivityForResult(mapIntent, REQ_INPUT_LOC);\n //}\n }", "@Override\n public void onFailure(@NonNull Exception e) {//requye\n if (e instanceof ResolvableApiException) {//chua bat\n ResolvableApiException resolvableApiException = (ResolvableApiException) e;//bat man hinh hien thi bat gps\n ((MainActivity) context).requestOpenGps(resolvableApiException);\n }\n }", "@Override\n public void onSuccess(Void aVoid) {\n Log.i(\"MainActivity\", \"requestLocationUpdatesWithCallback onSuccess\");\n }", "@Override\n public void handleResult(Intent data) {\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (currentSession != null) {\n currentSession.onActivityResult(this, requestCode, resultCode, data);\n }\n }", "public void onLocationChanged(Location location) {\n sendResult(location);\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 1) {\n if(resultCode == RESULT_OK) {\n location = data.getStringExtra(\"EXTRA_PLACE_NAME\");\n place_id = data.getStringExtra(\"EXTRA_PLACE_ID\");\n //lat = data.getDoubleExtra(\"EXTRA_PLACE_LAT\", 0);\n //lng = data.getDoubleExtra(\"EXTRA_PLACE_LNG\", 0);\n\n ViewLocation.setText(location);\n\n }\n }\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == PLACE_PICKER_REQUEST) {\n if (resultCode == RESULT_OK) {\n Place place = PlacePicker.getPlace(this, data);\n\n String toastName = String.format(\"Place: %s\", place.getName());//get place name\n String toastAddress = String.format(\"Address: %s\", place.getAddress());//get place address\n LatLng location = place.getLatLng();//get place LatLng\n double lat = location.latitude;\n double lng = location.longitude;\n //PICTURE YET TO COME\n //DESTINATION YET TO COME\n }\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n if (displayGpsStatus()) {\n\n Log.v(TAG, \"onClick\");\n\n\n locationListener = new MyLocationListener();\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED ) {\n locationMangaer.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n\n }\n else{\n Toast.makeText(this,\"Kindly Provide Location Acces\",Toast.LENGTH_SHORT).show();\n }\n\n Log.v(TAG,latitudeUsers +\" , \"+longitudeUsers);\n\n } else {\n Toast.makeText(this,\"GPS not available!!\",Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode,resultCode,data);\n\n if (requestCode == RES_CODE_SIGN_IN) {\n GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);\n signInResultHandler(result);\n }\n }", "private void fetchLastLocation() {\n Task<Location> task = fusedLocationProviderClient.getLastLocation();\n Toast.makeText(MapActivity.this,\"fetchLastLocation method 2\",Toast.LENGTH_SHORT).show();\n task.addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n currentLoc = location;\n preLati = currentLoc.getLatitude();\n preLogi = currentLoc.getLongitude();\n\n\n SupportMapFragment supportMapFragment = (SupportMapFragment) getSupportFragmentManager().\n findFragmentById(R.id.map);\n\n supportMapFragment.getMapAsync(MapActivity.this);//should this activity class implement\n // OnMapReadyCsllback interface and should\n // implement all method\n // i think getMapAsync call the onMapReady\n\n }\n });\n task.addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Failed with\"+e.toString(),Toast.LENGTH_SHORT).show();\n Log.e(TAG, \"onFailure: \"+e.toString() );\n }\n });\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == RC_SIGN_IN) {\n // The Task returned from this call is always completed, no need to attach\n // a listener.\n Task<GoogleSignInAccount> task = GoogleSignIn.getSignedInAccountFromIntent(data);\n handleSignInResult(task);\n } else {\n callbackManager.onActivityResult(requestCode, resultCode, data);\n }\n\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n double latitude = intent.getDoubleExtra(\"Lat\",0);\n double longitude = intent.getDoubleExtra(\"Lon\",0);\n mService.onGPSReceived(latitude,longitude);\n\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 1) {\n // Make sure the request was successful\n if (resultCode == Activity.RESULT_OK) {\n setConditionLocation();\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == RINGTONE_PICKER_REQUEST_CODE && resultCode == Activity.RESULT_OK ){\n mAlarmRingtone = data.getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI);\n setRingtoneName();\n }\n if (requestCode == MAP_REQUEST_CODE) {\n if (data != null && data.hasExtra(Constants.EXTRA_ALARM_DESTINATION)) {\n // get coordinates (from intent)\n mMapDestination = data.getParcelableExtra(Constants.EXTRA_ALARM_DESTINATION);\n }\n }\n updateMapImage(false);\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n requestActualizarUbicacion(location.getLatitude(),location.getLongitude());\n\n }else{\n Toast.makeText(getActivity(), \"No fue posible obtener la ubicacion!\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n uiHelper.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n public void onLocationResult(LocationResult locationResult) {\n Location location = locationResult.getLastLocation();\n if (location != null) {\n onLocationChanged(location);\n }\n }", "@Override\n public void onComplete(@NonNull Task<Location> task) {\n Log.i(\"profilesActivity\", \"lastLocation: success\");\n\n if (task.isSuccessful()) {\n // Logic to handle location object\n Geocoder geocoder = new Geocoder(Profile_User.this, Locale.getDefault());\n List<Address> addresses = null;\n location = task.getResult();\n if (location == null) {\n Log.i(\"profilesActivity\", \"location null\");\n\n } else {\n Log.i(\"profilesActivity\", \"location not null\");\n try {\n addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n String city = addresses.get(0).getLocality();\n current_location.setText(city);\n } catch (IOException e) {\n //e.printStackTrace();\n current_location.setText(\"erreur\");\n }\n }\n } else {\n Log.i(\"profilesActivity\", \"fused provider cant get location\");\n\n }\n\n }", "@Override\n public void onSuccess(Map<String, Object> retData) {\n startActivity(intent_main);\n }", "private void getDeviceLocation(){\n\n Log.d(TAG, \"getDeviceLocation: getting device current location\");\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n try{\n if(mLocationPermissionGaranted){\n\n final Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(task -> {\n if(task.isSuccessful()){\n Log.d(TAG, \"onComplete: found location!\");\n Location currentLocation = (Location) task.getResult();\n System.out.println(currentLocation);\n if (currentLocation !=null) {\n if (numDispositivo==1) {\n disp_Lat1 = Double.toString(currentLocation.getLatitude());\n disp_Long1 = Double.toString(currentLocation.getLongitude());\n }\n if (numDispositivo==2) {\n disp_Lat2 = Double.toString(currentLocation.getLatitude());\n disp_Long2 = Double.toString(currentLocation.getLongitude());\n }\n }\n System.out.println(disp_Lat1+\"-\"+disp_Long1);\n System.out.println(disp_Lat2+\"-\"+disp_Long2);\n Guardar();\n\n }else{\n Log.d(TAG, \"onComplete: current location is null\");\n Toast.makeText(FormularioCurso.this, \"unable to get current location\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }catch (SecurityException e){\n Log.e(TAG, \"getDeviceLocation: SecurityException: \" + e.getMessage() );\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n switch (requestCode){\n case PERMISSION_FINE_LOCATION:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED){\n updateGPS();\n }else{\n Toast.makeText(this, \"This app requires permission.\", Toast.LENGTH_SHORT).show();\n finish();\n }\n break;\n }\n }", "@Override\r\n\t\tprotected void onPostExecute(Object result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tif (result != null && (Boolean) result) {\r\n\t\t\t\tIntent intent = new Intent();\r\n\t\t\t\tBundle bundle = new Bundle();\r\n\t\t\t\tbundle.putString(MainActivity.TAG, \"1000\");\r\n\t\t\t\tintent.putExtras(bundle);\r\n\t\t\t\tintent.setAction(ReciverContents.PaySuccess);\r\n\t\t\t\tactivcty.sendBroadcast(intent);\r\n\t\t\t}\r\n\r\n\t\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (!mHelper.handleActivityResult(requestCode, resultCode, data)) {\n // not handled, so handle it ourselves (here's where you'd\n // perform any handling of activity results not related to in-app\n // billing...\n super.onActivityResult(requestCode, resultCode, data);\n }\n else {\n// System.out.println(\"onActivityResult handled by IABUtil.\");\n }\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(resultCode==RESULT_OK&&requestCode==ACTIVITY_DOS){\n\n String nom=data.getExtras().getString(\"nombreIntent\");\n String loc=data.getExtras().getString(\"localidadIntent\");\n String pro=data.getExtras().getString(\"provinciaIntent\");\n boolean bueno = data.getExtras().getBoolean(\"eleccionIntent\");\n if(bueno==true) {\n notificationExtendida(nom, \"De \" + loc + \", (\"+pro+\")\",nom,loc,pro,1);\n }else{\n msg1.setText(nom);\n msg2.setText(loc);\n msg3.setText(pro);\n }\n }\n else{\n Toast.makeText(getApplicationContext(),\"ERROR EN LA APLICACION\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(resultCode!= Activity.RESULT_OK){\n return;\n }\n\n }", "private void handleSignInResult(GoogleSignInResult result) {\n Log.v(\"SIGNIN STATUS\", \"SIGNIN RESULT: \" + result.getStatus().getStatusMessage());\n Log.v(\"SIGNIN STATUS\", \"SIGNIN CODE: \" + result.getStatus().getStatusCode());\n if (result.isSuccess()) {\n // Signed in successfully\n GoogleSignInAccount acct = result.getSignInAccount();\n IlliniBusApplication myApplication = (IlliniBusApplication) getApplication();\n myApplication.signIn(acct);\n Intent intent = new Intent(StartActivity.this, MainActivity.class);\n startActivity(intent);\n } else {\n Toast.makeText(getApplicationContext(), \"Failed to Login!\",\n Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n super.onActivityResult(requestCode, resultCode, data);\n\n if (resultCode == Activity.RESULT_OK) {\n\n if (requestCode == REQUEST_CAMERA) {\n\n onCaptureImageResult(data);\n\n }\n\n }\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n // Provide results based on location picked in placepicker.\n if (requestCode == PLACE_PICKER_REQUEST) {\n if (resultCode == RESULT_OK) {\n Place place = PlacePicker.getPlace(data, this);\n String toastPlaceNameMsg = String.format(\"Place selected: %s\", place.getName());\n Toast.makeText(this, toastPlaceNameMsg, Toast.LENGTH_LONG).show();\n\n /*String toastCoordinateNameMsg = String.format(\"Coordinates selected: %s\", place.getLatLng());\n Toast.makeText(this, toastCoordinateNameMsg, Toast.LENGTH_LONG).show();*/\n\n // Store information based on place picked.\n mPlaceSelected = (String) place.getName();\n mSelectedLat = place.getLatLng().latitude;\n mSelectedLng = place.getLatLng().longitude;\n mCoordinates = place.getLatLng();\n\n // Update TextView showing location\n locationChosen.setText(mPlaceSelected);\n\n // Store Coordinates in a bundle so other fragments can use if necessary.\n coordinatesBundle = new Bundle();\n coordinatesBundle.putParcelable(CoordinatesKey, mCoordinates);\n rad = 50000;\n }\n }\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == PLACE_PICKER_REQUEST) {\n if (resultCode == RESULT_OK) {\n place = PlacePicker.getPlace(this, data);\n locationEditText.setText(place.getLatLng().toString());\n\n //Toast shown to user to let them know the location has been set.\n Toast.makeText(PictureActivity.this, R.string.location_toast,\n Toast.LENGTH_SHORT).show();\n\n }\n }\n }", "@Override\n public void onClick(View view) {\n locationChecker.checkBeforeAsking(new PermissionChecker.CheckPermissionListener() {\n @Override\n public void onPermissionDenied() {\n Navigator.fromAnyActivityToLocationPickerActivity(NewPubActivity.this, null, null);\n }\n\n @Override\n public void onPermissionGranted() {\n\n gm.requestLastLocation(new GeoManager.GeoDirectLocationListener() {\n @Override\n public void onLocationError(Throwable error) {\n Navigator.fromAnyActivityToLocationPickerActivity(NewPubActivity.this, null, null);\n }\n\n @Override\n public void onLocationSuccess(double latitude, double longitude) {\n Navigator.fromAnyActivityToLocationPickerActivity(NewPubActivity.this, latitude, longitude);\n }\n });\n }\n });\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\t}", "interface OnResultListener {\n void onFinished();\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n // Result returned from launching the Intent from GoogleSignInClient.getSignInIntent(...);\n if (requestCode == RC_SIGN_IN) {\n // The Task returned from this call is always completed, no need to attach\n // a listener.\n Task<GoogleSignInAccount> task = GoogleSignIn.getSignedInAccountFromIntent(data);\n handleSignInResult(task);\n\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\n\t\tif (requestCode == 1) { // startActivityForResult回傳值\n\t\t\tif (resultCode == RESULT_OK) {\n\t\t\t\tString contents = data.getStringExtra(\"SCAN_RESULT\"); // 取得QR\n\t\t\t\t// Code內容\n\t\t\t\t// 以下開始處理資料\n\t\t\t\tgetPlaceUrl(contents.split(\" \")[0], contents.split(\" \")[1]);\n\t\t\t} else if (resultCode == RESULT_CANCELED) {\n\t\t\t\t// Handle cancel\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n longitude = location.getLongitude();\n latitude = location.getLatitude();\n\n //tv_lat.setText(String.valueOf(location.getLatitude()));\n //tv_long.setText(String.valueOf(location.getLongitude()));\n } else {\n finish();\n //tv_lat.setText(\"Latitude not available\");\n //tv_long.setText(\"Longitude not available\");\n }\n }", "public boolean handleActivityResult (int requestCode, int resultCode, Intent data) {\n boolean result = false;\n if (Activity.RESULT_OK != resultCode || null == mResultHandler) {\n return result;\n }\n\n Log.i(\"InputBoardManager#handleActivityResult, \"\n + \"mMediaInputHelper is null(\" + (null == mMediaInputHelper));\n switch (requestCode) {\n case REQ_INPUT_LOC:\n final double lat = data.getExtras().getDouble(\"target_lat\");\n final double lon = data.getExtras().getDouble(\"target_lon\");\n mResultHandler.onLocationInputted(lat, lon, null);\n result = true;\n break;\n case REQ_INPUT_VIDEO:\n if (null != mMediaInputHelper) {\n String[] videoPath = new String[2];\n try {\n mMediaInputHelper.handleVideoResult(\n mContext,\n data,\n PHOTO_SEND_WIDTH, PHOTO_SEND_HEIGHT,\n PHOTO_THUMBNAIL_WIDTH, PHOTO_THUMBNAIL_HEIGHT,\n videoPath);\n mResultHandler.onVideoInputted(videoPath[0], videoPath[1]);\n result = true;\n }\n catch (Exception e) {\n e.printStackTrace();\n Toast.makeText(mContext, e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }\n break;\n case REQ_INPUT_PHOTO:\n \tif(data != null){\n \tUri mImageCaptureUri = data.getData();\n// \tif( Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){\n// \t\tFile f = MediaInputHelper.makeOutputMediaFile(MediaInputHelper.MEDIA_TYPE_IMAGE, \".jpg\");\n// \t\toutputUri = Uri.fromFile(f);\n// \t}\n// \tLog.i(\"--mImageCaptureUri--\" + mImageCaptureUri);\n// \tdoCrop(mImageCaptureUri,outputUri);\t\n \t outputfilename = Database.makeLocalFilePath(UUID.randomUUID().toString(), \"jpg\");\n \t mContext.startActivityForResult(new Intent().setData(mImageCaptureUri).setClass(mContext, ImagePreviewActivity.class).putExtra(ImagePreviewActivity.OUTPUTPATH, outputfilename), REQ_INPUT_DOODLE);\n \t}else{\n if (null != mMediaInputHelper) {\n String[] photoPath = new String[2];\n if (mMediaInputHelper.handleImageResult(\n mContext,\n data,\n PHOTO_SEND_WIDTH, PHOTO_SEND_HEIGHT,\n PHOTO_THUMBNAIL_WIDTH, PHOTO_THUMBNAIL_HEIGHT,\n photoPath)) {\n outputfilename = Database.makeLocalFilePath(UUID.randomUUID().toString(), \"jpg\");\n mContext.startActivityForResult(\n new Intent(mContext, BitmapPreviewActivity.class)\n .putExtra(BitmapPreviewActivity.EXTRA_MAX_WIDTH, PHOTO_SEND_WIDTH)\n .putExtra(BitmapPreviewActivity.EXTRA_MAX_HEIGHT, PHOTO_SEND_HEIGHT)\n .putExtra(BitmapPreviewActivity.EXTRA_BACKGROUND_FILENAME, photoPath[0])\n .putExtra(BitmapPreviewActivity.EXTRA_OUTPUT_FILENAME, outputfilename),\n REQ_INPUT_DOODLE\n );\n }\n }\n \t}\n\n result = true; \n break;\n case REQ_INPUT_CROP:\n if (null != mMediaInputHelper) {\n \t//Log.i(\"--after crop data --\" + data.getData());\n \t//针对部分4.4机型返回的intent(data)为空,重新传进之前的Uri\n \tif(data.getData() == null){\n \t\tdata = new Intent();\n \t\tdata.setData( outputUri);\n \t}\n String[] photoPath = new String[2];\n boolean istrue =mMediaInputHelper.handleImageResult(\n mContext,\n data,\n PHOTO_SEND_WIDTH, PHOTO_SEND_HEIGHT,\n PHOTO_THUMBNAIL_WIDTH, PHOTO_THUMBNAIL_HEIGHT,\n photoPath);\n if (istrue) {\n outputfilename = Database.makeLocalFilePath(UUID.randomUUID().toString(), \"jpg\");\n mContext.startActivityForResult(\n new Intent(mContext, BitmapPreviewActivity.class)\n .putExtra(BitmapPreviewActivity.EXTRA_MAX_WIDTH, PHOTO_SEND_WIDTH)\n .putExtra(BitmapPreviewActivity.EXTRA_MAX_HEIGHT, PHOTO_SEND_HEIGHT)\n .putExtra(BitmapPreviewActivity.EXTRA_BACKGROUND_FILENAME, photoPath[0])\n .putExtra(BitmapPreviewActivity.EXTRA_OUTPUT_FILENAME, outputfilename),\n REQ_INPUT_DOODLE\n );\n }\n }\n result = true;\n break;\n case REQ_INPUT_DOODLE: {\n String[] photoPath = new String[2];\n photoPath[0] = outputfilename;\n\n // generate thumbnail\n File f = MediaInputHelper.makeOutputMediaFile(MediaInputHelper.MEDIA_TYPE_THUMNAIL, \".jpg\");\n if (f != null) {\n photoPath[1] = f.getAbsolutePath();\n Bitmap thumbnail = BmpUtils.decodeFile(photoPath[0],\n PHOTO_THUMBNAIL_WIDTH, PHOTO_THUMBNAIL_HEIGHT);\n Log.i(\"--photo[0]--\" + photoPath[0]);\n Log.i(\"--photo[1]--\" + photoPath[1]);\n try {\n FileOutputStream fos = new FileOutputStream(photoPath[1]);\n thumbnail.compress(Bitmap.CompressFormat.JPEG, 90, fos);\n fos.close();\n } catch (java.io.IOException e) {\n e.printStackTrace();\n }\n }\n\n mResultHandler.onPhotoInputted(photoPath[0], photoPath[1]);\n result = true;\n break;\n }\n case REQ_INPUT_PHOTO_FOR_DOODLE:\n \tif(data != null){\n \t\tUri mImageCaptureUri2 = data.getData();\n// \t\tif( Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){\n// \t\tFile f = MediaInputHelper.makeOutputMediaFile(MediaInputHelper.MEDIA_TYPE_IMAGE, \".jpg\");\n// \t\toutputUri2 = Uri.fromFile(f);\n// \t}\n// \t\tdoCrop_doodle(mImageCaptureUri2,outputUri2);\n \t\t outputfilename = Database.makeLocalFilePath(UUID.randomUUID().toString(), \"jpg\");\n \t mContext.startActivityForResult(new Intent().setData(mImageCaptureUri2)\n \t\t\t .setClass(mContext, ImagePreviewActivity.class)\n \t\t\t .putExtra(ImagePreviewActivity.OUTPUTPATH, outputfilename)\n \t\t\t .putExtra(ImagePreviewActivity.ISDOODLE, true), REQ_INPUT_PHOTO_FOR_DOODLE_CROP);\n \t}else {\n if (null != mMediaInputHelper) {\n \tLog.i(\"--mLastImageUri\" + mMediaInputHelper.getLastImageUri());\n \tFile f = MediaInputHelper.makeOutputMediaFile(MediaInputHelper.MEDIA_TYPE_IMAGE, \".jpg\");\n \t\toutputUri2 = Uri.fromFile(f);\n \tdoCrop_doodle(mMediaInputHelper.getLastImageUri(), outputUri2);\n// String[] photoPath = new String[2];\n// if (mMediaInputHelper.handleImageResult(\n// mContext,\n// data,\n// PHOTO_SEND_WIDTH, PHOTO_SEND_HEIGHT,\n// PHOTO_THUMBNAIL_WIDTH, PHOTO_THUMBNAIL_HEIGHT,\n// photoPath)) {\n// outputfilename = Database.makeLocalFilePath(UUID.randomUUID().toString(), \"jpg\");\n// mContext.startActivityForResult(\n// new Intent(mContext, DoodleActivity.class)\n// .putExtra(DoodleActivity.EXTRA_MAX_WIDTH, PHOTO_SEND_WIDTH)\n// .putExtra(DoodleActivity.EXTRA_MAX_HEIGHT, PHOTO_SEND_HEIGHT)\n// .putExtra(DoodleActivity.EXTRA_BACKGROUND_FILENAME, photoPath[0])\n// .putExtra(DoodleActivity.EXTRA_OUTPUT_FILENAME, outputfilename),\n// REQ_INPUT_DOODLE\n// );\n// }\n }\n \t}\n \t\n result = true;\n break;\n case REQ_INPUT_PHOTO_FOR_DOODLE_CROP:\n if (null != mMediaInputHelper) {\n \tLog.i(\"--after crop data --\" + data.getData());\n \t//针对部分4.4机型返回的intent(data)为空,重新传进之前的Uri\n \tif(data.getData() == null){\n \t\tdata = new Intent();\n \t\tdata.setData( outputUri2);\n \t}\n String[] photoPath = new String[2];\n if (mMediaInputHelper.handleImageResult(\n mContext,\n data,\n PHOTO_SEND_WIDTH, PHOTO_SEND_HEIGHT,\n PHOTO_THUMBNAIL_WIDTH, PHOTO_THUMBNAIL_HEIGHT,\n photoPath)) {\n outputfilename = Database.makeLocalFilePath(UUID.randomUUID().toString(), \"jpg\");\n mContext.startActivityForResult(\n new Intent(mContext, DoodleActivity.class)\n .putExtra(DoodleActivity.EXTRA_MAX_WIDTH, PHOTO_SEND_WIDTH)\n .putExtra(DoodleActivity.EXTRA_MAX_HEIGHT, PHOTO_SEND_HEIGHT)\n .putExtra(DoodleActivity.EXTRA_BACKGROUND_FILENAME, photoPath[0])\n .putExtra(DoodleActivity.EXTRA_OUTPUT_FILENAME, outputfilename),\n REQ_INPUT_DOODLE\n );\n }\n }\n \tresult = true;\n break;\n default:\n break;\n }\n\n Log.i(\"InputBoardManager#handleActivityResult, handle result is \" + result);\n return result;\n }", "@Override\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n // Display the address string or an error message sent from the intent service.\n //.getString(Constants.ADDRESS_RESULT_KEY);\n // Address current_location = getIntent().getExtras().getParcelable(Constants.ADDRESS_RESULT_KEY);\n mAddress = resultData;\n updateUI();\n }", "@Override\n\tpublic void receiveSessionInfo(Camera camera, int resultCode) {\n\t\t\n\t}", "private void notifyTaskCompletion(BackgroundTaskResult result)\n {\n //Use the activity reference to update the UI only\n //if it is available.\n if (null != activity) {\n BaseController controller = getController();\n if (controller != null && controller instanceof BackgroundTaskListener) {\n ((BackgroundTaskListener)controller).onBackgroundTaskCompleted(result);\n }\n updateOnActivityAttach = false;\n }\n else {\n updateOnActivityAttach = true;\n }\n }", "@Override\n\t protected void onReceiveResult(int resultCode, Bundle resultData) {\n\t if (receiver != null) { // The app is running\n\t receiver.onReceiveResult(resultCode, resultData);\n\t } else {\n\t \t // You might implement a persistent notification here\n\t }\n\t }", "public interface GpsBandCallBack extends ISyncDataCallback {\n\n public void onGetGpsInfo(GpsSummaryInfo info);\n public void onEphemerisProgressQurey(int progress, String file_name);\n public void onEphemerisProgressReset();\n public void onEphemerisUpdateSuccess();\n public void onCrcCheckResult(int status);\n// public String getEphemerisFilePath();\n\n\n}", "public interface GoogleMapHelperListener {\n public void onGettingMyLocation();\n}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tmediaManager.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\tif (mPlugin != null) {\r\n//\t\t\tmPlugin.Iona\r\n\t\t}\r\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == LocationPickerActivity.LOCATION_RESULT) {\n // Make sure the request was successful\n if (resultCode == RESULT_OK) {\n double lat = data.getDoubleExtra(\"lat\", 0.0);\n double lng = data.getDoubleExtra(\"lng\", 0.0);\n location = new LatLng(lat, lng);\n locationButton.setText(\"(\" + lat + \", \" + lng + \")\");\n }\n } else if (requestCode == REQUEST_TAKE_PHOTO && resultCode == RESULT_OK) {\n // Bundle extras = data.getExtras();\n // Bitmap imageBitmap = (Bitmap) extras.get(\"data\");\n // imageView.setImageBitmap(imageBitmap);\n galleryAddPic(); // add the current photo to the media gallery\n setPic(); // set the image view to show a scaled version of the image\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,@NonNull int[] grantResults) {\n if (requestCode != PermissionUtils.REQUEST_CODE) {\n return;\n }\n if (PermissionUtils.isPermissionGranted(new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION}, grantResults)) {\n //If you have permission, go to the code to get the location value\n initGoogleMapLocation();\n } else {\n Toast.makeText(this, \"Stop apps without permission to use location information\", Toast.LENGTH_SHORT).show();\n //finish();\n }\n }", "public boolean onActivityResult (int requestCode, int resultCode, Intent data) {\n\t\t\n\t\treturn true;\n\t\t\n\t}", "@Override\n public void onSuccess(Location location) {\n Log.d(TAG, \"onSuccess: Location : \" + location);\n if (location != null) {\n Toast.makeText(MainActivity.this, \"Location : \" + location, Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tSystem.out.println(\"On activity result start\");\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tSystem.out.println(\"on activity result\");\n\t\tif (Manager.iab != null) {\n\t\t\t((IABManagerAndroid) Manager.iab).handleActivityResult(requestCode, resultCode, data);\n\t\t}\n\t\tif (Manager.fb != null) {\n\t\t\t((SocialMediaFacebook) Manager.fb).onActivityResult(requestCode, resultCode, data);\n\t\t}\n\t}", "void onScanResult(final IScanResult result);", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n switch (requestCode) {\n case 0:\n try {\n if (resultCode == Activity.RESULT_OK) {\n String scanResult = data.getStringExtra(Constants.SCAN_RESULT);\n // set scanner result to text view on main screen\n TextView textView = (TextView) findViewById(R.id.scanResult);\n textView.setText(scanResult);\n\n Log.v(TAG, \"Bar Code ==: \" + scanResult);\n\n //new KiiPushBroadcastReceiver().sendGroupNotification(Constants.GROUPID, Constants.TOPICNAME, scanResult);\n //send scan result to server\n AsyncTaskSendData asyncTaskToSendData = new AsyncTaskSendData(getApplicationContext());\n asyncTaskToSendData.execute(scanResult);\n\n try{\n Thread.sleep(1000);\n }catch(InterruptedException e) {\n Log.e(TAG, \"thread sleep: \" + e.getMessage());\n }\n\n exitScanner2();\n\n break;\n } else if (resultCode == Activity.RESULT_CANCELED && data != null) {\n String error = data.getStringExtra(Constants.ERROR_INFO);\n if (!TextUtils.isEmpty(error)) {\n // Toast.makeText(this, error, Toast.LENGTH_SHORT).show();\n Log.e(TAG, \"Bar Code\" +\n \" error ==: \" + error);\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n break;\n }\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n currentLocation = new float[]{(float)location.getLatitude(),(float)location.getLongitude()};\n\n Task<String> timeTask = getExtraTime(p.latOfPerson,p.lonOfPerson);\n if(timeTask!=null){\n timeTask.addOnCompleteListener(new OnCompleteListener<String>() {\n @Override\n public void onComplete(@NonNull Task<String> task) {\n if(task.isSuccessful()){\n String[] s = task.getResult().split(\",\");\n extraTime.setText(\"\"+((-Integer.parseInt(s[1])+Integer.parseInt(s[0])+Integer.parseInt(s[3]))/60)+\" Minutes Extra\");\n }\n }\n });\n }\n }\n }", "@Override\n protected void onActivityResult(\n int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch(requestCode) {\n case REQUEST_GOOGLE_PLAY_SERVICES:\n if (resultCode != RESULT_OK) {\n mOutputText.setText(\n \"This app requires Google Play Services. Please install \" +\n \"Google Play Services on your device and relaunch this app.\");\n } else {\n getResultsFromApi();\n }\n break;\n case REQUEST_ACCOUNT_PICKER:\n if (resultCode == RESULT_OK && data != null &&\n data.getExtras() != null) {\n String accountName =\n data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME);\n if (accountName != null) {\n\n\n userId = accountName;\n //save User Email Id\n SharedPreferences mPrefs = getSharedPreferences(\"label\", 0);SharedPreferences.Editor mEditor = mPrefs.edit();mEditor.putString(\"UserId\", userId).apply();\n\n SharedPreferences settings =\n getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(PREF_ACCOUNT_NAME, accountName);\n editor.apply();\n mCredential.setSelectedAccountName(accountName);\n getResultsFromApi();\n }\n }\n break;\n case REQUEST_AUTHORIZATION:\n if (resultCode == RESULT_OK) {\n getResultsFromApi();\n }\n break;\n }\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n this.mCallBackManager.onActivityResult(requestCode, resultCode, data);\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n\n // Show a toast message if an address was found.\n if (resultCode == Constants.SUCCESS_RESULT) {\n\n final String address = resultData.getString(Constants.ADDRESS_RESULT_DATA_KEY);\n new AlertDialog.Builder(MainActivity.this)\n .setTitle(getString(R.string.dialog_title))\n .setMessage(String.format(getString(R.string.dialog_text), address))\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n\n setActionBarTitle(address);\n\n restoreSharedPrefs();\n\n mCurrentDistanceToLocation = (int) mLastKnownLocation.distanceTo(mDestinationLocation);\n\n mSharedPrefsEdit.putInt(Constants.KEY_LATEST_DISTANCE, mCurrentDistanceToLocation);\n mSharedPrefsEdit.putString(Constants.KEY_DESTINATION_LAT, String.valueOf(mClickedLat));\n mSharedPrefsEdit.putString(Constants.KEY_DESTINATION_LON, String.valueOf(mClickedLon));\n\n showProgressMessage(mCurrentDistanceToLocation);\n\n startService(new Intent(MainActivity.this, LocationUpdatesService.class));\n\n mSharedPrefsEdit.apply();\n\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if(mMap != null)\n mMap.clear();\n\n mSharedPrefsEdit.putInt(Constants.KEY_LATEST_DISTANCE, 0);\n mSharedPrefsEdit.putString(Constants.KEY_DESTINATION_LAT, \"0.0\");\n mSharedPrefsEdit.putString(Constants.KEY_DESTINATION_LON, \"0.0\");\n mSharedPrefsEdit.apply();\n\n stopService(new Intent(MainActivity.this, LocationUpdatesService.class));\n\n }\n })\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }\n }", "@Override\n public void handleResult(GeofenceInfoObject result) {\n super.handleResult(result);\n\n /*This is a call from the VolleyRequester, so this check prevents the app from\n crashing if the user leaves the tab while the app is trying\n to get quests from the server\n */\n if(this.isResumed()) {\n MainActivity mainActivity = (MainActivity) getActivity();\n if(mainActivity != null) {\n final Button btnRequestInfo = (Button) view.findViewById(R.id.btn_request_info);\n final TextView txtRequestGeofences = (TextView) view.findViewById(txt_try_getting_geofences);\n if(result == null){\n if(currentGeofences != null){\n if(currentGeofences.size() != 0){\n //If the result is null and it shouldn't be, displays error and allows user to request\n //information again\n btnRequestInfo.setVisibility(View.VISIBLE);\n txtRequestGeofences.setText(getResources().getString(R.string.no_info_retrieved));\n txtRequestGeofences.setVisibility(View.VISIBLE);\n btnRequestInfo.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n txtRequestGeofences.setText(getResources().getString(R.string.retrieving_info));\n btnRequestInfo.setVisibility(View.GONE);\n handleGeofenceChange(currentGeofences);\n }\n });\n }\n }\n }\n\n if (result != null) {\n try {\n Log.i(logMessages.GEOFENCE_MONITORING, \"handleResult: result length is: \" + result.getContent().size());\n Log.i(logMessages.GEOFENCE_MONITORING, \"handleResult: result is: \" + result.getContent().toString());\n\n btnRequestInfo.setVisibility(View.GONE);\n txtRequestGeofences.setVisibility(View.GONE);\n if(debugMode) {\n displayGeofenceInfo();\n }\n addMarker(result.getContent());\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\n if (result != null) {\n if (result.getContents() == null) {\n Log.d(\"MainActivity\", \"Cancelled scan\");\n makeToast(this, \"Cancelado\");\n } else {\n Log.d(\"MainActivity\", \"Scanned\");\n makeToast(this, \"Contactando con Salesforce, ISBN: \" + result.getContents());\n scanResult = result.getContents();\n\n if (scanResult != null) {\n try {\n getProducto(scanResult);\n } catch (Exception e) {\n Log.e(\"RequestError\", e.toString());\n makeToast(this, \"Ha ocurrido un error, intente nuevamente...\");\n } finally {\n sfResult = null;\n }\n }\n }\n } else {\n Log.d(\"MainActivity\", \"Weird\");\n // This is important, otherwise the result will not be passed to the fragment\n super.onActivityResult(requestCode, resultCode, data);\n }\n }", "public interface BillingResult {\n void OnActivityResult(String purchaseData);\n}", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n\n //check password and username before proceeding to login page\n Intent intent = new Intent(MainActivity.this, LoginSuccessActivity.class);\n intent.putExtra(\"USERNAME\", inputUsername);\n intent.putExtra(\"PASSWORD\", inputPassword);\n startTrackerService();\n startActivityForResult(intent, 1);\n } else {\n // password does not match email\n Toast.makeText(MainActivity.this, \"Invalid Password\", Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\n public void handleResult(Result result) {\n Log.w(\"handleResult\", result.getText());\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Scan result\");\n builder.setMessage(result.getText());\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n\n\n //Resume scanning\n //mScannerView.resumeCameraPreview(this);\n }", "@Override\n\t\t\tprotected void onPostExecute(String result) {\n\t\t\t\tif (result.startsWith(\"2#\")) {\n\t\t\t\t\t// 清空签单号的SharedPreferences\n\t\t\t\t\tSharedPreferences shapredP=getSharedPreferences(\"mybill\", 0);\n\t\t\t\t\tSystem.err.println(\"情况本地存储-------------\");\n\t\t\t\t\tshapredP.edit().clear();\n\t\t\t\t\tshapredP.edit().commit();\n\t\t\t\t\tif (new FileUtil().getFilesList() != null) {\n\t\t\t\t\t\tPictureToBye.deletePhotos();// 清空Pad上的图片\n\t\t\t\t\t}\n\t\t\t\t\tSharedPreferences sp=getSharedPreferences(\"GpsInfo\",MODE_WORLD_READABLE);\n\t\t\t\t\tString gpsInfo= sp.getString(\"gps\",\"1\" );\n\t\t\t\t\tif(gpsInfo.equals(\"1\")){\n\t\t\t\t\t\tSystem.out.println(\"发送装车车次关闭gps-----------------sendBroadcast\");\n\t\t\t\t\t\tsendBroadcast(new Intent(\"GPS_LOCK_OFF\"));\n\t\t\t\t\t\tSystem.out.println(\"开启gps\");\n\t\t\t\t\t\tsendBroadcast(new Intent(\"GPS_LOCK_ON\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tToast.makeText(Sign_ConfirmActivity.this, \"发送gps失败!\", 1).show();\n\t\t\t\t\t}\n\t\t\t\t\tSign_ConfirmActivity.this.finish();\n\t\t\t\t}\n\t\t\t\tif (result.startsWith(\"0#\")) {\n\t\t\t\t\tStringUtil.showMessage(\"网络上传超时!\",\n\t\t\t\t\t\t\tSign_ConfirmActivity.this);\n\t\t\t\t}\n\t\t\t\tif (result.startsWith(\"3#\")) {\n\t\t\t\t\tStringUtil.showMessage(\"没有网络!\", Sign_ConfirmActivity.this);\n\t\t\t\t}\n\t\t\t\tif (result.startsWith(\"4#\")) {\n\t\t\t\t\tStringUtil.showMessage(\"你上传的图片尺寸太大!\",\n\t\t\t\t\t\t\tSign_ConfirmActivity.this);\n\t\t\t\t}\n\t\t\t\tsuper.onPostExecute(result);\n\t\t\t}", "@Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(!task.isSuccessful())\r\n {\r\n Toast.makeText(MainActivity.this,\"Some Error Occured,Please try again later\",Toast.LENGTH_LONG).show();\r\n }\r\n if(task.isSuccessful())\r\n {\r\n Toast.makeText(MainActivity.this,\"Regristration Successful\",Toast.LENGTH_LONG).show();\r\n }\r\n }", "@Override\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n switch (resultCode) {\n case 1:\n Log.d(TAG,\"yay running\");\n break;\n case 0:\n Log.d(TAG,\"yay finish\");\n break;\n case -1:\n Log.d(TAG,\"yay error\");\n break;\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == RC_SIGN_IN) {\n GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);\n\n System.out.println(\"result status code\" + result.getStatus());\n if (result.isSuccess()) {\n onSucessGoogleLogin(result);\n\n } else {\n // Google Sign In failed, update UI appropriately\n Utility.logData(\"Login unsuccessful\");\n Utility.showShortToast(\"Login unsuccessful\");\n }\n\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_BATTERY_OPTIMIZATIONS) {\n String res = \"Activity Results: requestCode = \" + String.valueOf(requestCode) + \" resultCode = \"\n + String.valueOf(resultCode);\n PluginResult resultado = new PluginResult(PluginResult.Status.OK, res);\n resultado.setKeepCallback(true);\n PUBLIC_CALLBACKS.sendPluginResult(resultado);\n }\n\n // Handle other results if exists.\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n switch (requestCode) {\n case Constants.CONNECTION_FAILURE_RESOLUTION_REQUEST :\n switch (resultCode) {\n // If Google Play services resolved the problem\n case Activity.RESULT_OK:\n mInProgress = false;\n beginAddGeofences(mGeoIds);\n break;\n }\n }\n }", "public interface OnResultBackListener {\n //网络请求成功\n void onSuccess();\n //网络请求失败\n void onFail();\n}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n // Result returned from launching the Intent from GoogleSignInApi.getSignInIntent(...);\n if (requestCode == RC_SIGN_IN) {\n Task<GoogleSignInAccount> task = GoogleSignIn.getSignedInAccountFromIntent(data);\n try {\n // Google Sign In was successful, authenticate with Firebase\n GoogleSignInAccount account = task.getResult(ApiException.class);\n firebaseAuthWithGoogle(account);\n\n } catch (ApiException e) {\n // Google Sign In failed, update UI appropriately\n Log.w(TAG, \"Google sign in failed\", e);\n // [START_EXCLUDE]\n updateUI(null);\n // [END_EXCLUDE]\n }\n }else {\n mCallbackManager.onActivityResult(requestCode, resultCode, data);\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n Log.d(\"TAG\", \"onActivityResult: \");\n if(requestCode==REQUEST_CHECK_SETTINGS && resultCode== Activity.RESULT_OK)\n getCurrentLocation();\n if(requestCode==REQUEST_CHECK_SETTINGS && resultCode==Activity.RESULT_CANCELED)\n Toast.makeText(getContext(), \"Please enable Location settings...!!!\", Toast.LENGTH_SHORT).show();\n }", "private void reqquestGps() {\n builder = new LocationSettingsRequest.Builder();//mang di request\n builder.addLocationRequest(locationRequest);\n SettingsClient settingsClient = LocationServices.getSettingsClient(context);//dang tao 1 requet vao may va lasy ra thong so\n\n Task<LocationSettingsResponse> task = settingsClient.checkLocationSettings(builder.build());//day la lenh cua thu vien\n\n task.addOnFailureListener(new OnFailureListener() {//lang nghe su kien bi fai kho k lay dc gps,boi nnhieu nhie nghuyen nhan 1 co the la chua bat,\n @Override\n public void onFailure(@NonNull Exception e) {//requye\n if (e instanceof ResolvableApiException) {//chua bat\n ResolvableApiException resolvableApiException = (ResolvableApiException) e;//bat man hinh hien thi bat gps\n ((MainActivity) context).requestOpenGps(resolvableApiException);\n }\n }\n });\n }", "@Override\n public void onRequestPermissionsResult (int requestCode, String[] permissions,\n int[] grantResults) {\n int index = 0;\n Map<String, Integer> PermissionsMap = new HashMap<String, Integer>();\n for (String permission : permissions){\n PermissionsMap.put(permission, grantResults[index]);\n index++;\n }\n\n if((PermissionsMap.get(Manifest.permission.ACCESS_FINE_LOCATION) != 0)\n || PermissionsMap.get(Manifest.permission.ACCESS_COARSE_LOCATION) != 0){\n Toast.makeText((AppCompatActivity)getActivity(), \"Location permission is a must\", Toast.LENGTH_SHORT).show();\n// finish();\n }\n else\n {\n// this.ble.initializeBle((AppCompatActivity)getActivity());\n }\n }", "public interface IMapPresenterActivityCallback {\n\n public static enum LocationType{\n currentLocation,\n searchedLocation\n }\n\n /**\n * Notify the presenter that activity is ready\n * */\n void onActivityReady();\n\n\n /**\n * Notify the presenter about new coordinates that were received*/\n\n void onNewLocationRecieved(LocationWrapper locationWrapper, LocationType type);\n}", "private void updateGPS(){\n fusedLocationProviderClient =\n\n //---------------------------------------------------------------------------------------------\n\n\n //get permission from the user to track GPS\n if(ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n //user provided the permission\n //if a location is found than the SuccessListener will create an other trigger to an other anonymous function it´s called\n fusedLocationProviderClient.getLastLocation().addOnSuccessListener(this, new OnSuccessListener<Location>(){\n @Override\n public void onSuccess(Location location) {\n //Update the UI\n updateUIValues(location);\n }\n });\n }\n else{\n //user permission not granted yet\n //checking valid OS\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){\n requestPermissions(new String[] {Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_FINE_LOCATION);\n }\n }\n\n }", "public void locationOnClick(View view)\n {\n PlacePicker.IntentBuilder locationBuilder = new PlacePicker.IntentBuilder();\n try{\n startActivityForResult(locationBuilder.build(PictureActivity.this), PLACE_PICKER_REQUEST);\n }catch(Exception e){\n Log.e(\"com.zenk\", \"Error with location service\" + e.toString());\n place = null;\n }\n }", "@Override\n protected void onReceiveResult(int resultCode, Bundle resultData) {\n mAddressOutput = resultData.getString(Constants.RESULT_DATA_KEY);\n Log.d(TAG, \"Address: \" + mAddressOutput);\n\n // show a toast message is address is found\n if(resultCode == Constants.SUCCESS_RESULT) {\n Toast.makeText(MapsActivity.this, R.string.address_found, Toast.LENGTH_LONG).show();\n }\n }" ]
[ "0.6759597", "0.66950125", "0.65784854", "0.6466335", "0.64398646", "0.63968056", "0.62855434", "0.6259298", "0.6201275", "0.61904466", "0.6176795", "0.6171637", "0.6092104", "0.6086962", "0.60289645", "0.6027573", "0.6018374", "0.5965321", "0.59469813", "0.5928936", "0.59209013", "0.5916959", "0.5901872", "0.5877595", "0.58695984", "0.5854047", "0.5853269", "0.5842141", "0.5828666", "0.5817789", "0.581383", "0.58129716", "0.58046734", "0.5788949", "0.57707405", "0.5766587", "0.57609385", "0.57608783", "0.572505", "0.5722251", "0.5706434", "0.5703704", "0.5674069", "0.5668124", "0.56589866", "0.5654304", "0.5652818", "0.56520057", "0.5649098", "0.5644816", "0.5641624", "0.5638758", "0.5636803", "0.5636349", "0.5635108", "0.5618744", "0.5607003", "0.5606804", "0.56041074", "0.5593659", "0.55917066", "0.5588196", "0.5587287", "0.55848074", "0.557751", "0.5576562", "0.55703837", "0.5561963", "0.5552264", "0.55522287", "0.554901", "0.5548097", "0.5546557", "0.5546274", "0.554454", "0.55403805", "0.55395466", "0.5538247", "0.5536618", "0.55349416", "0.55307674", "0.5530263", "0.55266404", "0.55244774", "0.55204576", "0.55127066", "0.55093044", "0.5506152", "0.5505265", "0.55041015", "0.5501153", "0.55008376", "0.5500781", "0.5500289", "0.5499387", "0.5494995", "0.54900604", "0.54882777", "0.54859304", "0.5483234" ]
0.6556293
3
UtilBtn observe Activity/Fragment lifecycle //
@Override public void onStart() { Log.e(TAG, "detect the lifecycleowner--- started"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initCallBack() {\n saveTodoButton.setOnClickListener(this);\n }", "@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void staticByViewListener() {\n\t\t\n\t}", "void enablButtonListener();", "public void initializeButtons(){\n logOutButton = findViewById(R.id.bLogOut);\n logOutButton.setOnClickListener(v -> {\n displayViewModel.signOut();\n Toast.makeText(this, R.string.signed_out, LENGTH_SHORT).show();\n Intent intent = new Intent(this, LoginXActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n finish();\n });\n unPairButton = findViewById(R.id.bUnpair);\n unPairButton.setOnClickListener(view -> {\n displayViewModel.setInterval(Constants.SOS_INTERVAL);\n displayViewModel.unPair();\n logOutButton.callOnClick();\n });\n\n }", "private void setupUpdateButton() {\n\n /* Get the button */\n Button updateButton = this.getStatusUpdateButton();\n\n /* Setup listener */\n View.OnClickListener updateButtonClicked = new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n statusUpdater.updateStatus();\n }\n };\n\n /* Set listener to button */\n updateButton.setOnClickListener(updateButtonClicked);\n }", "@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t\tfbcl=(fragmentBtnClickListener) activity;\r\n\t}", "@Override\n protected void onAfterSetContentView() {\n super.onAfterSetContentView();\n View.OnClickListener onClickListener = new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n switch (v.getId()) {\n case R.id.btn_scan:\n btnSignalScan();\n break;\n default:\n break;\n }\n }\n };\n btn_scan.setOnClickListener(onClickListener);\n }", "private void initListener() {\n\t\tbtnCancel.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinish();\n\n\t\t\t}\n\t\t});\n\t}", "void configureButtonListener();", "@OnClick(R2.id.first_module_button)\n public void testBtn() {\n if (!flag) {\n loadingDialogFragment = new BottomDialogFragment();\n loadingDialogFragment.show(getSupportFragmentManager(), \"tag\");\n } else {\n loadingDialogFragment.dismiss();\n }\n flag = !flag;\n\n }", "private void initializeButton()\n {\n //back by Broadcast\n FloatingActionButton backByBroadcast = findViewById(R.id.back);\n backByBroadcast.setOnClickListener(this);\n //delete all the data in ContentProvider\n FloatingActionButton deleteData =findViewById(R.id.Delete_data);\n deleteData.setOnClickListener(this);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setRetainInstance(true);\n uiHelper = new UiLifecycleHelper(getActivity(), callback);\n uiHelper.onCreate(savedInstanceState);\n }", "private void registerListeners() {\r\n View.OnClickListener clickListener = new ButtonListener();\r\n btnStart.setOnClickListener(clickListener);\r\n btnStop.setOnClickListener(clickListener);\r\n }", "public static interface TaskButtonListener {\n /**\n * A task button was clicked\n * @param view The view of the button\n */\n public void onTaskButtonClick(View view);\n }", "private void initListeners() {\n appCompatButtonLogout.setOnClickListener(this);\n appCompatButtonDelete.setOnClickListener(this);\n }", "@Override\n public void onResume() {\n view.get().onDataUpdated(state);\n view.get().activateButton();\n\n }", "private void listener(View v) {\n\t\t\tswitch (v.getId()) {\n\t\t\t// 返回\n\t\t\tcase R.id.image_more_subscribe_return:\n\t\t\t\tfinish();\n\n\t\t\t\tbreak;\n\t\t\t// 保存\n\t\t\tcase R.id.txt_more_subscribe_submit:\n\t\t\t\tstartIntent();\n\t\t\t\tfinish();\n\t\t\t\tbreak;\n\t\t\t// 职位订阅 开关\n\t\t\tcase R.id.tb_sets_subscribe_open:\n\t\t\t\tif (status == 1) {\n\t\t\t\t\tsetPushClose();\n\t\t\t\t\ttb_sets_subscribe_open\n\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.ic_button_cloes);\n\t\t\t\t\tstatus = 0;\n\t\t\t\t} else if (status == 0) {\n\t\t\t\t\ttb_sets_subscribe_open\n\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.ic_button_open);\n\t\t\t\t\tsetPushOpen();\n\t\t\t\t\tstatus = 1;\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t// 职位类别\n\t\t\tcase R.id.set_job_relativelayout:\n\t\t\t\tMobclickAgent.onEvent(context,\"position_subscriber_sets_classify\");\n\t\t\t\tIntent classIntent = new Intent(context,PositionClassActivityss.class);\n\t\t\t\tclassIntent.putExtra(\"posi_code\", posi_code);\n\t\t\t\tclassIntent.putExtra(\"posi_value\", posi_value);\n\t\t\t\tclassIntent.putExtra(\"request\", 5);\n\t\t\t\tstartActivityForResult(classIntent, REQUESTCODE_POSITIONCLASS);\n\t\t\t\t((Activity) context).overridePendingTransition(anim.slide_in_right,anim.slide_out_left);\n\t\t\t\tbreak;\n\t\t\t// 工作地点\n\t\t\tcase R.id.set_place_relativelayout:\n\t\t\t\tMobclickAgent.onEvent(context, \"position_subscriber_sets_area\");\n\t\t\t\tIntent addressIntent = new Intent(context, AddressActivitys.class);\n\t\t\t\taddressIntent.putExtra(\"areaCode\", address_code);\n\t\t\t\tstartActivityForResult(addressIntent, REQUESTCODE_ADDRESS);\n\t\t\t\t((Activity) context).overridePendingTransition(anim.slide_in_right,anim.slide_out_left);\n\t\t\t\tbreak;\n\t\t\t// 薪资待遇\n\t\t\tcase R.id.set_salary_relativelayout:\n\t\t\t\tMobclickAgent.onEvent(context,\"position_subscriber_sets_salary\");\n\t\t\t\tIntent intent_SalaryActivity = new Intent(context,SalaryActivity.class);\n\t\t\t\tintent_SalaryActivity.putExtra(\"request\", 3);\n\t\t\t\tstartActivityForResult(intent_SalaryActivity, 3);\n\t\t\t\toverridePendingTransition(anim.slide_in_right,anim.slide_out_left);\n\t\t\t\tbreak;\n\t\t\t// 食宿情况\n\t\t\tcase R.id.set_room_relativelayout:\n\t\t\t\tMobclickAgent.onEvent(context,\n\t\t\t\t\t\t\"position_subscriber_sets_room_board\");\n\t\t\t\tIntent intent_RoonActivity = new Intent(context,\n\t\t\t\t\t\tRoonActivity.class);\n\t\t\t\tintent_RoonActivity.putExtra(\"request\", 4);\n\t\t\t\tstartActivityForResult(intent_RoonActivity, 4);\n\t\t\t\toverridePendingTransition(anim.slide_in_right,anim.slide_out_left);\n\t\t\t\tbreak;\n\t\t\t// ְ职位性质\n\t\t\tcase R.id.set_jodnature_relativelayout:\n\t\t\t\tMobclickAgent.onEvent(context,\n\t\t\t\t\t\t\"position_subscriber_sets_work_mode\");\n\t\t\t\tIntent intent_JobNatureActivity = new Intent(context,\n\t\t\t\t\t\tJobNatureActivity.class);\n\t\t\t\tintent_JobNatureActivity.putExtra(\"request\", 5);\n\t\t\t\tstartActivityForResult(intent_JobNatureActivity, 5);\n\t\t\t\toverridePendingTransition(anim.slide_in_right,anim.slide_out_left);\n\t\t\t\tbreak;\n\t\t\t// 推送频率\n\t\t\tcase R.id.set_push_relativelayout:\n\t\t\t\tMobclickAgent.onEvent(context,\n\t\t\t\t\t\t\"position_subscriber_sets_push_frequency\");\n\t\t\t\tIntent intent_PushFrequencyActivity = new Intent(context,\n\t\t\t\t\t\tPushFrequencyActivity.class);\n\t\t\t\tintent_PushFrequencyActivity.putExtra(\"request\", 6);\n\t\t\t\tstartActivityForResult(intent_PushFrequencyActivity, 6);\n\t\t\t\toverridePendingTransition(anim.slide_in_right,anim.slide_out_left);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "private void setButtonOnClickListeners() {\n aboutUsButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n goToFragment(v, new AboutUsFragment());\n }\n });\n\n contactUsButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n goToFragment(v, new ContactUsFragment());\n }\n });\n\n upcomingEventsButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n goToFragment(v, new UpcomingEventsFragment());\n }\n });\n\n makeADonationButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n goToFragment(v, new MakeADonationFragment());\n }\n });\n }", "public interface UpdateAddAccountFragmentButtonListener {\r\n\t/**\r\n\t * Update Listener.\r\n\t * @param mAddAccountFragmentButtonListener Button Listener Interface for AddAccountFragment\r\n\t */\r\n void updateAddAccountFragmentButtonListener(AddAccountFragmentButtonListener mAddAccountFragmentButtonListener);\r\n}", "@SuppressWarnings(\"UnusedParameters\")\n private void initInstances(View rootView, Bundle savedInstanceState) {\n toolbar = (Toolbar)rootView.findViewById(R.id.toolbar);\n ((AppCompatActivity)getActivity()).setSupportActionBar(toolbar);\n // set up button\n setHasOptionsMenu(true);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setHomeButtonEnabled(true);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"Chat\");\n\n btnCall = (ImageButton)rootView.findViewById(R.id.btnCall);\n btnCall.setOnClickListener(ImageButtonClick);\n }", "public MyButtonListener(){\n super();\n }", "protected void onViewReady(Bundle savedInstanceState, Intent intent) {\n }", "private void announcementBtnListener() {\n announcementBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new AnnouncementsScreen(game));\n }\n });\n }", "@Override\n public void onClick(View view) {\n if(isPressed) {\n\n mProgressBar.setVisibility(View.VISIBLE);\n\n // Get current user info from back4app\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"UserStatus\");\n query.whereEqualTo(\"userId\", currentUser.getObjectId());\n query.getFirstInBackground(new GetCallback<ParseObject>() {\n public void done(ParseObject object, ParseException e) {\n if (object == null) {\n Toast.makeText(getActivity(), \"Error getting user data from the backend!\", Toast.LENGTH_SHORT).show();\n mProgressBar.setVisibility(View.INVISIBLE);\n\n } else {\n userCurrentSteps = object.getInt(\"currentSteps\");\n userCurrentEarning = object.getDouble(\"currentEarning\");\n\n numSteps = userCurrentSteps;\n stepPrice = userCurrentEarning;\n\n sensorManager.registerListener(MainFragment.this, accel, SensorManager.SENSOR_DELAY_FASTEST);\n\n mBtnStart.setImageResource(R.drawable.ic_man_standing);\n mBtnLabel.setText(\"ايقاف\");\n mProgressBar.setVisibility(View.INVISIBLE);\n }\n }\n });\n }\n\n // when user click the btn again\n else{\n mBtnStart.setImageResource(R.drawable.ic_man_walking);\n mBtnLabel.setText(\"استمرار\");\n sensorManager.unregisterListener(MainFragment.this);\n }\n\n isPressed = !isPressed;\n }", "public void addListenerOnButton() {\n\n\t\t//koppel de button code aan een widget en voeg een onclicklistener toe\n\t\tsettings = (Button) findViewById(R.id.settings);\n\n\t\tsettings.setOnClickListener(new OnClickListener() {\n\t\t\t//koppel de button aan een nieuw xml scherm wat opent\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tIntent myIntent = new Intent(view.getContext(), Settings.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}\n\n\t\t});\n\n\t\tsearch = (Button) findViewById(R.id.search);\n\n\t\tsearch.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tIntent myIntent = new Intent(view.getContext(), Search.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}\n\t\t});\n\t\tterug = (Button) findViewById(R.id.terug);\n\n\t\tterug.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tsetResult(RESULT_OK, intent);\n\t\t\t\tfinish();\n\t\t\t}\n\n\t\t});\n\n\n\t}", "public void listenButtons() {\n\n playGameButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.PLAY_GAME;\n startActivity();\n }\n });\n\n freePlayButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mActivities = MyActivities.FREE_PLAY;\n startActivity();\n }\n });\n\n informationIcon.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mActivities = MyActivities.POP_UP;\n startActivity();\n }\n });\n }", "@SuppressWarnings(\"UnusedParameters\")\n private void initInstances(View rootView, Bundle savedInstanceState) {\n if (isFirstTime()) {\n mBind.topLayout.setVisibility(View.INVISIBLE);\n }\n mBind.btnConfirm.setOnClickListener(this);\n mBind.btnSearchMap.setOnClickListener(this);\n mBind.imageBtnHomeUp.setOnClickListener(this);\n mBind.btnGetCurrent.setOnClickListener(this);\n\n mRegistrationBroadcastReceiver = new BroadcastReceiver() {\n public String jid;\n public String did;\n public String status;\n public JSONObject data;\n public String payload;\n public String title;\n public String message;\n\n @Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(Config.PUSH_NOTIFICATION)) {\n try {\n title = intent.getStringExtra(\"title\"); //check\n message = intent.getStringExtra(\"message\");//check\n payload = intent.getStringExtra(\"payload\");//check\n data = new JSONObject(payload);//check\n status = data.getString(\"status\");//check\n if (status.equals(\"end_job\")){\n did = data.getString(\"did\");\n jid = data.getString(\"jid\");\n }\n } catch (JSONException e) {\n Log.e(TAG, \"Json Exception: \" + e.getMessage());\n } catch (Exception e) {\n Log.e(TAG, \"Exception: \" + e.getMessage());\n }\n\n //Handle Code Here!!\n if (!status.equals(\"end_job\")) {\n new ShowDialogStatusJob(getContext(), title, message);\n } else {\n new ShowDialogReviewDriver(getContext(), did, jid);\n }\n }\n\n }\n };\n\n SupportMapFragment mapFragment = (SupportMapFragment) getChildFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n }", "public interface IMainView {\n void registeButtonClicked();\n void destroyButtonClicked();\n void updateClientStatus(boolean registered, String registrationId);\n void showProgress();\n void hideProgress();\n void showToast(String msg);\n}", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(), \"Not Ready Yet :(\", Toast.LENGTH_SHORT).show();\n }", "private void initUI() {\n\t\tmBtnVoidImage = (Button)findViewById(R.id.btn_tutorial_void);\n\t\tmBtnVoidImage.setText(R.string.capture_check_void);\n\t\tmBtnVoidImage.setOnClickListener(this);\n\t}", "public void btn_geri2(View v) {\n }", "@Override\n public void registerBtnClick(View view) {\n isRegisteredOnGCM(2);\n//\t\t\tfinish();\n }", "@Override\r\n\tpublic void initListener(Bundle savedInstanceState) {\n\r\n\t}", "private void setButtonListener(Button button){\n \tfinal Context ctx = this.getActivity();\n \tfinal String tag = button.getText().toString();\n \t// button on click listers\n \t\tbutton.setOnClickListener(new OnClickListener() {\n \t\t\t@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tIntent intent = new Intent(ctx, Questions_Tab_Activity.class);\n \t\t\t\tintent.putExtra(\"tagPressed\", tag);\n \t\t\t\tintent.putExtra(\"UserID\", userId);\n// \t\t\t\tif(multiTag)\n \t\t\t\t\tintent.putExtra(\"typeSearch\", 3);\n// \t\t\t\telse\n// \t\t\t\t\tintent.putExtra(\"typeSearch\", 1);\n \t\t\t\tstartActivity(intent);\n \t\t\t\t\n \t\t\t}\n \t\t});\n }", "void onTriggerDetailsFragmentInteraction(Button button);", "private void initListeners() {\n appCompatButtonLogin.setOnClickListener(this);\n }", "public void onTaskButtonClick(View view);", "public interface VuActivityMain extends Vu.ActivityVu {\n void showBtn(String st);\n\n void showBtn2(String st);\n}", "public void onButtonClick(View v) {\n\n if (mBound) {\n // Call a method from the LocalService.\n // However, if this call were something that might hang, then this request should\n // occur in a separate thread to avoid slowing down the activity performance.\n //mService.RequestMechanic();\n //Toast.makeText(this, \"check log: \" + num, Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n osmanycaptbtn=view.findViewById(R.id.osmanycaptbtn);\n osmanycaptbtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //Intent intent=new Intent(getActivity(),MainActivity.class);\n //startActivity(intent);\n Toast.makeText(getActivity(),\"bal\",Toast.LENGTH_SHORT).show();\n Intent intent=new Intent(getActivity(),osmanyhallcapt.class);\n startActivity(intent);\n }\n });\n\n }", "public abstract void initUiAndListener();", "private void setUpButton() {\n // Find view\n Button button = (Button) findViewById(R.id.this_weekend_dialog_match_button);\n // Set click mListener\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mListener.onMatchMadeDialogSeen();\n dismiss();\n }\n });\n }", "public void onButtonPressed(Uri uri) {\n// if (mListener != null) {\n// mListener.onClassFragmentInteraction(\"\");\n// }\n }", "public interface AddAccountFragmentButtonListener {\r\n\t/**\r\n\t * Submit Account info to presenter.\r\n\t * @param accountName account name (unique)\r\n\t * @param accountDescription account description\r\n\t * @param currency currency (ex> Locale.US)\r\n\t */\r\n void submit(String accountName, String accountDescription, String currency);\r\n /**\r\n * Cancel adding account.\r\n */\r\n void cancel();\r\n}", "private void setupBtnListeners() {\n findViewById(R.id.btnAddValue).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n buttonAddValues();\n updateUI();\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n\n //Button to open blood pressure chart sets opens blood pressure chart activity\n findViewById(R.id.btnOpenBPChart).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent bpChart = new Intent(WeightActivity.this, BPChartActivity.class);\n startActivity(bpChart.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION));\n mSettingsOrBPChartOpened = true;\n }\n });\n\n //Clicking date button opens date picker and closes keyboard\n findViewById(R.id.tvDate).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showDatePickerDialog();\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n }", "@Override\n\tprotected void InitButtonListener() {\n\t\timgbtnOK.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tClickOK();\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}\n\t\t});\n\t\timgbtnPlus.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tClickPlus();\n\t\t\t\tCursurIndex = 2;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}\n\t\t});\n\t\timgbtnMinus.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tClickMinus();\n\t\t\t\tCursurIndex = 1;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}\n\t\t});\n\t}", "private void setupActivityState()\n {\n SyncDataService.startActionFetchAll(getApplicationContext());\n\n hideFAB();\n this.tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n public void onTabReselected(TabLayout.Tab paramTab) {\n }\n\n public void onTabSelected(TabLayout.Tab paramTab) {\n viewPager.setCurrentItem(paramTab.getPosition());\n switch (paramTab.getPosition()) {\n default:\n return;\n case 0:\n hideFAB();\n return;\n case 1:\n setFloatingActionButtonForClients();\n return;\n case 2:\n setFloatingActionButtonForProducts();\n return;\n }\n\n }\n\n public void onTabUnselected(TabLayout.Tab paramTab) {\n }\n });\n }", "private void callEventListener(){\n //Listener for Button add service\n btn_Appointment.setOnClickListener(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialogCreateAppointment();\n }\n }\n );\n\n }", "@Override\n public void created(Bundle savedInstance) {\n activity = getActivity();\n //final File methodTracingFile = new File(activity.getExternalFilesDir(\"Caches\"), \"AppStart.trace\");\n //Log.d(TAG, \"methodTracingPath=\" + methodTracingFile.getPath());\n //Debug.startMethodTracing(methodTracingFile.getPath());\n PlayerApp.getRefWatcher(activity).watch(this);\n attachView = this.view;\n\n mMovieFragModel = new MovieFragModel();\n initListener();\n pagerHeader = (ViewPager) getActivity().findViewById(R.id.frag_pagerHeader);\n\n homepage_recommendview_title = (TextView) getActivity().findViewById(R.id.homepage_recommendview_title);\n ci = (CircleIndicator) getActivity().findViewById(R.id.frag_ci);\n initMovieView();\n\n\n\n }", "public void events(View v){\n }", "@Override\n public void onClick(View v) {\n if (arg0 == 0) {//清理缓存\n final String filePath = Environment.getExternalStorageDirectory().getPath()+\"/video\";\n DataCleanManager.cleanApplicationData(Setinfo_Activity.this, filePath);\n try {\n //获取缓存大小\n notifyDataSetChanged();\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n } else if (arg0 == 1) {//检查新版本\n presenter.getVersionInfo();\n } else if (arg0 == 2) { // 帮助与反馈\n Intent feedBackIntent = new Intent(Setinfo_Activity.this, FeedbackActivity.class);\n ScreenManager.getScreenManager().startPage(Setinfo_Activity.this, feedBackIntent, true);\n }else if(arg0 == 3){//关于我们\n\t\t\t\t\t\tIntent intent3 = new Intent(Setinfo_Activity.this,AboutMy_Activity.class);\n\t\t\t\t\t\tScreenManager.getScreenManager().startPage(Setinfo_Activity.this, intent3, true);\n\t\t\t\t\t}\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n btnStart.setOnAction((event) -> {\n\thandleBtnStart(event);\n });\n btnStop.setOnAction((event) -> {\n\thandleBtnStop(event);\n });\n }", "private void addEvents() {\n toolbar.setNavigationOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (getFragmentManager().getBackStackEntryCount() > 0) {\n getFragmentManager().popBackStack();\n }\n }\n });\n }", "public void buttonChangeStatus(ActionEvent actionEvent) {\n }", "public interface FragmentLifecycle {\n\n void onPauseFragment();\n void onResumeFragment();\n}", "protected void initEvent() {\n\t\tbase_ib.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tmainActivity.getSlidingMenu().toggle();\n\n\t\t\t}\n\t\t});\n\t}", "private void InitListener() {\n\t\tsubbtn.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tString oldpwdtxt = oldpwd.getText().toString();\r\n\t\t\t\tString newpwdettxt = newpwdet.getText().toString();\r\n\t\t\t\tString pwdconfirmettxt = pwdconfirmet.getText().toString();\r\n\t\t\t\tif (TextUtils.isEmpty(oldpwdtxt)) {\r\n\t\t\t\t\tShowMsg(\"请输入原密码\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (TextUtils.isEmpty(newpwdettxt)) {\r\n\t\t\t\t\tShowMsg(\"请输入新密码\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (TextUtils.isEmpty(pwdconfirmettxt)) {\r\n\t\t\t\t\tShowMsg(\"请再次输入新密码\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!newpwdettxt.equals(pwdconfirmettxt)) {\r\n\t\t\t\t\tShowMsg(\"两次输入密码不一致\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tmodifyPwd(oldpwdtxt, newpwdettxt, oldpwdtxt);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View vr= inflater.inflate(R.layout.fragment_fragment__my_notifications, container, false);\n // bttn=(Button)vr.findViewById(R.id.bttn);\n return vr;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_init, container, false);\n\n bt_connect = (Button) view.findViewById(R.id.server_Connect);\n bt_connect.setOnClickListener(new Button.OnClickListener() {\n public void onClick(View v) {\n // connect server\n connector.execute(\"get\",Consts.SERVER_IP);\n Toast.makeText(getContext(),\"connect Server is successed\",Toast.LENGTH_SHORT);\n }\n });\n\n bt_start = (Button) view.findViewById(R.id.moudle_start);\n bt_start.setOnClickListener(this);\n\n bt_stop = (Button) view.findViewById(R.id.moudle_stop);\n bt_stop.setOnClickListener(this);\n\n return view;\n }", "protected void setReserveBtnListener()\n {\n final FloatingActionButton reserveBtn = (FloatingActionButton) findViewById(R.id.reserveBtn);\n reserveBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(reservationEndsOn==null)\n {\n showToastMessage(getResources().getString(R.string.reserveErrorMessage));\n return;\n }\n else\n {\n\n String username = getSharedPreferences(\"appUserPrefs\",MODE_PRIVATE).getString(\"username\",\"\");\n //The user is player\n if(!username.equals(\"\"))\n {\n promoCode=null;\n showPromoCodeDialog(username);\n\n }\n else {\n username = getSharedPreferences(\"venAdminPrefs\",MODE_PRIVATE).getString(\"username\",\"\");\n Reservation myReservation = new Reservation(username,reservationStartsOn,reservationEndsOn,pitch.getVenueID(),pitch.getPitchName());\n connectionManager.reserveByAdmin(myReservation, instance);\n\n }\n }\n }\n });\n\n\n }", "public interface RegisterFragmentListener {\n public void registerFragmentBtnAceptarClicked(String sUser, String sPass);\n public void registerFragmentBtnCancelarClciked();\n}", "public void afterClickHistory(View view) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmButtonListener.onButtonListener();\n\t\t\t}", "@Override\r\n\tprotected void initViewListener() {\n\t\tsuper.initViewListener();\r\n\t\ttitleBarBack.setOnClickListener(this);\r\n\t\tchongzhi.setOnClickListener(this);\r\n\t\thuankuan.setOnClickListener(this);\r\n\t}", "private void setOnClickListeners() {\n progressBar = (ProgressBar) findViewById(R.id.progressBar);\n progressBar.setMax(100);\n progressBar.setIndeterminate(false);\n\n }", "@Override\n\tprotected void InitButtonListener() {\n\t\timgbtnOK.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tCursurIndex = 5;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickOK();\n\t\t\t}\n\t\t});\n\t\timgbtnCancel.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tCursurIndex = 4;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t\tClickCancel();\n\t\t\t}\n\t\t});\n\t\tseekbarLevel.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tBrightnessManualLevel = seekBar.getProgress();\n\t\t\t\tCAN1Comm.Set_BacklightIlluminationLevel_719_PGN61184_109(BrightnessManualLevel + 1);\n\t\t\t\tCAN1Comm.TxCANToMCU(109);\n\t\t\t\tCAN1Comm.TxCMDToMCU(CAN1Comm.CMD_LCD, BrightnessManualLevel + 1);\n\t\t\t\t\n\t\t\t\tParentActivity.BrihgtnessCurrent = BrightnessManualLevel;\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tpublic void staticByActivityListener() {\n\t\tsb.setOnSeekBarChangeListener(this);\n\t}", "public void buttonOnClick(View v) {\n\n }", "void onActivityReady();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_detail);\n\n btnPrev = findViewById(R.id.prev);\n btnNext = findViewById(R.id.next);\n\n\n /*seting btn prev di awal dengan visible agar btn prev menghilang/disable*/\n btnPrev.setVisibility(View.GONE);\n\n /*sekarang pasang adapter ke viewpager*/\n setupViewPager();\n\n /*buat metode page change*/\n pageChange();\n\n int page = getIntent().getIntExtra(\"page\",0);\n while(page > 0){\n next(null);\n page--;\n }\n }", "@Override\n public void onClick(View v) {\n myCallback.buttonClicked();\n Log.d(TAG, \"onClick: \");\n }", "private void initListener() {\n\t\tbtn_next.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(cb_show.isChecked()){\r\n\t\t\t\t\tSharepreferenceUtil.write(JshWdjLdssIntroduceActivity.this, SharepreferenceUtil.fileName, \"ldss_show\", false);\r\n\t\t\t\t\tOpenActivityFinsh(JshWdjLdssSetActivity.class);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSharepreferenceUtil.write(JshWdjLdssIntroduceActivity.this, SharepreferenceUtil.fileName, \"ldss_show\", true);\r\n\t\t\t\t\tOpenActivity(JshWdjLdssSetActivity.class);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public interface OnClickCallBack\n{\n public void onUIupdate();\n}", "@Override\r\n protected void setListener() {\n logout.setOnClickListener(this);\r\n update.setOnClickListener(this);\r\n cleanCache.setOnClickListener(this);\r\n pushSwitch.setOnCheckedChangeListener(this);\r\n feedback.setOnClickListener(this);\r\n }", "public void addListenerOnButton() {\n\n\t\telectionSpinner = (Spinner) findViewById(R.id.electionSpinner);\n\t\tvoterSpinner = (Spinner) findViewById(R.id.voterSpinner);\n\t\t\n\t\tbtnConfig = (Button) findViewById(R.id.btnConfig);\n\t\tbtnConfig.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\"OnClickListener : \" + \n\t\t\t\t\t\t\"\\nElectionSpinner 1 : \" + String.valueOf(electionSpinner.getSelectedItem()) +\n\t\t\t\t\t\t\"\\nVoterSpinner 2 : \" + String.valueOf(voterSpinner.getSelectedItem()),\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t}\n\n\t\t});\n\n\t}", "public void activar(){\n\n }", "void setupBtnBack() {\n Intent intent = getIntent();\n Bundle bundle = intent.getExtras();\n String str = bundle.getString(\"str\");\n\n ToastTip(str);\n\n Button btn_back = (Button)findViewById(R.id.btn_btn_back);\n\n btn_back.setOnClickListener(back_listener);\n }", "@Override\n public void onBoomButtonClick(int index) {\n fragment = null;\n fragmentClass = TvShowFragment.class;\n ((AppCompatActivity)getActivity()).getSupportActionBar().setTitle(\"TV Show\");\n ((AppCompatActivity)getActivity()).getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color.parseColor(\"#660099\")));\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getActivity().getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(Color.parseColor(\"#660099\"));\n }\n mNavigationView = (NavigationView)getActivity().findViewById(R.id.nvView);\n Menu nv = mNavigationView.getMenu();\n MenuItem item = nv.findItem(R.id.nav_horloge_atomique_fragment);\n item.setChecked(true);\n try {\n fragment = (Fragment) fragmentClass.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n // Insert the fragment by replacing any existing fragment\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();\n }", "public interface BaseLifecycleObserver extends LifecycleObserver {\n @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)\n void onCrete();\n\n/* @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)\n void onResume();\n\n @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)\n void onPause();\n\n @OnLifecycleEvent(Lifecycle.Event.ON_STOP)\n void onStop();*/\n\n @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)\n void onDestroy();\n}", "public interface ViewObserver {\n\n /**\n * Called when menu item is clicked.\n *\n */\n void onMenuItemClicked();\n\n /**\n * Called when navigation item is clicked.\n *\n */\n void onNavigationItemClicked(Element element);\n\n /**\n * Called when dialog navigation item is clicked.\n *\n */\n void onDialogNavigationItemClicked(Element element);\n }", "private void initButtons() {\n findViewById(R.id.home_profileBtn).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent profile = new Intent(HomeView.this, ProfileView.class);\n profile.putExtra(\"profile\", user);\n startActivity(profile);\n }\n });\n\n findViewById(R.id.home_FindMatchBtn).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent match = new Intent(HomeView.this, MatchView.class);\n match.putExtra(\"profile\", user);\n match.putExtra(\"matches\", toBeMatched);\n startActivity(match);\n }\n });\n\n findViewById(R.id.sign_out_button).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n signOut();\n Intent main = new Intent(HomeView.this, MainActivity.class);\n startActivity(main);\n }\n });\n }", "LogOutButtonListener(Application app) {\n application= app;\n \n }", "private void setFloatingButtonListener() {\n floatingActionButton.setOnClickListener(v -> {\n if (actualFragment instanceof MyPetsFragment) {\n hideShareAppButton();\n addPet();\n } else if (actualFragment instanceof CommunityFragment){\n createGroupDialog();\n } else if (actualFragment instanceof InfoGroupFragment){\n if (InfoGroupFragment.getGroup().isUserSubscriber(user)) {\n createForumDialog();\n } else {\n Toast toast = Toast.makeText(this, getString(R.string.should_be_subscribed), Toast.LENGTH_LONG);\n toast.show();\n }\n }\n\n });\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState)\n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\t\tmainBtn=(Button)findViewById(R.id.mainBtn);\n\t\tmainBtn.setOnClickListener(listener);\n\t}", "@Override\n public void onDetach() {\n // Avoid leaking,\n mLoginFinishBtnClickListener = null;\n super.onDetach();\n }", "public void setupUI() {\n users = (Button) findViewById(R.id.btnUtilisateur);\n services = (Button) findViewById(R.id.btnServices);\n }", "public void buttonShowComplete(ActionEvent actionEvent) {\n }", "private void addListener() {\n ActionListener actionGravar = new GravarUsuario();\n JButton bt;\n bt = getPanelBotoes().getBtCadastrar();\n bt.addActionListener(actionGravar);\n bt = getPanelBotoes().getBtAtualizar();\n bt.setVisible(false);\n }", "public interface IMainScreenPresenter {\n\n\n /**\n * Intercepts the onCreate callback in the Fragment/Activity lifecycle.\n */\n public void onCreate();\n\n /**\n * Intercepts the onResume callback in the Fragment/Activity lifecycle.\n */\n public void onResume();\n\n /**\n * Intercepts the onPause callback in the Fragment/Activity lifecycle.\n */\n public void onPause();\n\n /**\n * Intercepts the onStop callback in the Fragment/Activity lifecycle.\n */\n public void onStop();\n\n /**\n * Called when the button A is pressed.\n */\n public void onButtonAPressed();\n\n /**\n * Called when the button B is pressed.\n */\n public void onButtonBPressed();\n\n}", "public void updateButtonVisibility() {\n mLocationBarMediator.updateButtonVisibility();\n }", "@Override\n\tprotected void onPause() {\n\n\t\tactivityVisible = false;\n\n\t\tif (TestHarnessUtils.isTestHarness()) {\n\t\t\tLocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver(testHarnessUIController);\n\t\t}\n\t\tsuper.onPause();\n\t}", "@AfterViews\n void init() {\n questionList = utils.getQuestions(this);\n answerButtonList = new ArrayList<>();\n answerButtonList.add(btAnswer1);\n answerButtonList.add(btAnswer2);\n answerButtonList.add(btAnswer3);\n answerButtonList.add(btAnswer4);\n\n\n llBody.post(new Runnable() {\n @Override\n public void run() {\n// animateRevealShow(ivScene);\n callNextQuestion();\n }\n });\n\n }", "public interface BottomBarButtonClickState {\n public void FindStationButton();\n public void LiveStation();\n public void ResturentButton();\n public void MyProfileButton();\n public void SettingButton();\n}", "public interface Presenter {\n void onCreate();\n\n void onStop();\n}", "protected abstract void onMainContainerReady(@Nullable Bundle savedInstanceState);", "private void initializeListeners() {\n llBack.setOnClickListener(this);\n btnChange.setOnClickListener(this);\n btnNext.setOnClickListener(this);\n }", "@Override\n\tpublic void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\n\t\tinitBar();\n\t\tmSettingManagerItem.setOnClickListener(this);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tools, container, false);\n\n btn_Metronom = (Button) view.findViewById(R.id.btnToolsMetronome);\n\n btn_Metronom.setOnClickListener(this);\n\n return view;\n\n }", "@Override\n\tpublic void initViews() {\n\t\tmClick=(Button) findViewById(R.id.bt_click);\n\t}", "private void createEvents() {\n\t\tbtnRetour.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tDashboard_Preteur dashboard_Preteur = new Dashboard_Preteur(currentPreteur);\r\n\t\t\t\tdashboard_Preteur.setVisible(true);\r\n\t\t\t\tdashboard_Preteur.setResizable(false);\r\n\t\t\t}\r\n\t\t});\r\n\t}" ]
[ "0.5939729", "0.582514", "0.5800397", "0.5788952", "0.57725304", "0.57532877", "0.57276314", "0.5673627", "0.56642234", "0.5653961", "0.56451243", "0.5598863", "0.5592846", "0.55898273", "0.55732", "0.5560674", "0.5533543", "0.55077815", "0.5497796", "0.5484341", "0.5478906", "0.5464886", "0.5436671", "0.5421985", "0.54018176", "0.53950584", "0.5386732", "0.5375169", "0.5365532", "0.5364875", "0.53633285", "0.5358449", "0.535369", "0.5339794", "0.5332553", "0.53322244", "0.53298366", "0.5314326", "0.5306598", "0.53033644", "0.5301465", "0.52998364", "0.5289453", "0.52871937", "0.5285209", "0.5280018", "0.52725106", "0.5269387", "0.52667004", "0.5250273", "0.5250176", "0.5248481", "0.5234146", "0.5229488", "0.5190672", "0.5188003", "0.5186022", "0.5182991", "0.51743335", "0.51731545", "0.51730925", "0.51730025", "0.51729214", "0.5167589", "0.5161043", "0.5159874", "0.5140435", "0.5132993", "0.51317775", "0.5131426", "0.51244277", "0.51210815", "0.51202667", "0.5118512", "0.51168245", "0.510077", "0.5093063", "0.50924456", "0.50871557", "0.50858027", "0.5085537", "0.5083908", "0.50811464", "0.50782025", "0.5073988", "0.50699383", "0.506427", "0.5061801", "0.50592315", "0.5055281", "0.5049712", "0.5047794", "0.5047482", "0.50421613", "0.5041508", "0.50413257", "0.5036014", "0.5029681", "0.50203604", "0.50198925", "0.5019569" ]
0.0
-1
lista de entitys del proyecto
public List<Class<?>> getEntities(){ List<Class<?>> result = new ArrayList<Class<?>>(); // result.add(Equipo.class); result.add(Formacion.class); result.add(FormacionStrategy.class); result.add(Habilidad.class); result.add(Jugador.class); result.add(Tecnico.class); result.add(Titular.class); // result.add(PartidoSimple.class); // result.add(PartidoDeCopa.class); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Producto> traerTodos () {\n \n return jpaProducto.findProductoEntities();\n \n \n \n }", "List<ParqueaderoEntidad> listar();", "public List<EspecieEntity> encontrarTodos(){\r\n Query todos =em.createQuery(\"select p from EspecieEntity p\");\r\n return todos.getResultList();\r\n }", "public List<Tipousr> findAllTipos(){\n\t\t List<Tipousr> listado;\n\t\t Query q;\n\t\t em.getTransaction().begin();\n\t\t q=em.createQuery(\"SELECT u FROM Tipousr u ORDER BY u.idTipousr\");\n\t\t listado= q.getResultList();\n\t\t em.getTransaction().commit();\n\t\t return listado;\n\t\t \n\t\t}", "List<Videogioco> findAllVideogioco();", "public List<PokemonEntity> findAll() {\n LOGGER.log(Level.INFO, \"Consultando todas los trayectos\");\n // Se crea un query para buscar todas las ciudades en la base de datos.\n TypedQuery query = em.createQuery(\"select u from PokemonEntity u\", PokemonEntity.class);\n // Note que en el query se hace uso del método getResultList() que obtiene una lista de ciudades.\n return query.getResultList();\n}", "private void listarEntidades() {\r\n\t\tsetListEntidades(new ArrayList<EntidadDTO>());\r\n\t\tgetListEntidades().addAll(entidadController.encontrarTodos());\r\n\t\tif (!getListEntidades().isEmpty()) {\r\n\t\t\tfor (EntidadDTO entidadDTO : getListEntidades()) {\r\n\t\t\t\t// Conversión de decimales.\r\n\t\t\t\tDouble porcentaje = entidadDTO.getPorcentajeValorAsegurable() * 100;\r\n\t\t\t\tdouble por = Math.round(porcentaje * Math.pow(10, 2)) / Math.pow(10, 2);\r\n\t\t\t\tentidadDTO.setPorcentajeValorAsegurable(por);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public List<ConsejoEntity> findAll() {\r\n Query q = em.createQuery(\"select u from ConsejoEntity u\");\r\n return q.getResultList();\r\n }", "List<Especialidad> getEspecialidades();", "public List<AlojamientoEntity> findAll() {\n LOGGER.log(Level.INFO, \"Consultando todos los alojamientos\");\n TypedQuery q = em.createQuery(\"select u from AlojamientoEntity u\", AlojamientoEntity.class);\n return q.getResultList();\n }", "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }", "public List<Ejemplar> getAll();", "public List<ViajeroEntity> findAll() {\n LOGGER.log(Level.INFO, \"Consultando todos\");\n TypedQuery<ViajeroEntity> query = em.createQuery(\"select u from ViajeroEntity u\", ViajeroEntity.class);\n return query.getResultList();\n }", "public List<ProLogo> findAllLogo(){\n \tString consulta=\"SELECT p FROM ProLogo p\";\n \tQuery q=em.createQuery(consulta, ProLogo.class);\n \treturn q.getResultList();\n }", "@Override\n\tpublic List<Proyecto> listarProyectos() {\n\t\treturn proyectoRepo.findAll();\n\t}", "@Override\n public List<Paciente> listar(){\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n List<Paciente> listaPaciente = em.createQuery(\"SELECT pac FROM Paciente pac\").getResultList(); \n em.close();\n factory.close();\n return (listaPaciente);\n }", "List<Horario_Disponible> findAll();", "public List<ProveedorEntity> getProveedores(){\n List<ProveedorEntity>proveedores = proveedorPersistence.findAll();\n return proveedores;\n }", "public List<Produto> listar() {\n return manager.createQuery(\"select distinct (p) from Produto p\", Produto.class).getResultList();\n }", "public List<CompradorEntity> findAll() {\r\n TypedQuery<CompradorEntity> query = em.createQuery(\"select u from CompradorEntity u\", CompradorEntity.class);\r\n return query.getResultList();\r\n }", "public List<Tblproductos> getAll(){\n String hql = \"Select tp from Tblproductos tp\";\n try{\n em = getEntityManager();\n Query q = em.createQuery(hql);\n List<Tblproductos> listProductos = q.getResultList();\n return listProductos; \n }catch(Exception e){\n e.printStackTrace();\n }\n return null;\n }", "public static List<Comentario> listar()\n {\n Session sessionRecheio;\n sessionRecheio = HibernateUtil.getSession();\n Transaction tr = sessionRecheio.beginTransaction();\n String hql = \"from Comentario u\";\n List<Comentario> lista = (List)sessionRecheio.createQuery(hql).list();\n tr.commit();\n return lista;\n }", "public void llenarListas(PaseoEntity entity) {\r\n ofertas = new ArrayList<OfertaDTO>();\r\n List<OfertaEntity> ofertasEntities = entity.getOfertas();\r\n if (ofertasEntities == null) {\r\n return;\r\n }\r\n for (OfertaEntity of : ofertasEntities) {\r\n ofertas.add(new OfertaDTO(of));\r\n }\r\n fotos = new ArrayList<FotoDTO>();\r\n if (entity.getOfertas() == null || entity.getOfertas().isEmpty() || entity.getOfertas().get(0) == null) {\r\n return;\r\n }\r\n if (entity.getOfertas().get(0).getVisitas() == null || entity.getOfertas().get(0).getVisitas().isEmpty()) {\r\n\r\n return;\r\n }\r\n List<FotoEntity> lista = entity.getOfertas().get(0).getVisitas().get(0).getFotos();\r\n if (lista != null) {\r\n\r\n for (FotoEntity fotoEntity : lista) {\r\n fotos.add(new FotoDTO(fotoEntity));\r\n }\r\n }\r\n }", "public List<FacturaEntity> getFacturas() {\n LOGGER.info(\"Inicia proceso de consultar todos los facturas\");\n List<FacturaEntity> factura = facturaPersistence.findAll();\n LOGGER.info(\"Termina proceso de consultar todos los facturas\");\n return factura;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Profilo> getAll() {\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Creo la query usando il linguaggio HQL (Hibernate Query Language)\r\n\t\tQuery query = session.createQuery(\"FROM Vocelicenza\");\r\n\t\t\t\r\n\t\t//Restituisco la lista di Profili\r\n\t\treturn query.list();\r\n\t}", "List<ItemPedido> findAll();", "private List<Produto> retornaProduto (Long cod){\n \n Query q = entityManager.createNamedQuery(\"Produto.findByCodigo\");\n q.setParameter(\"codigo\", cod);\n List <Produto> p = q.getResultList();\n return p; \n}", "@Override\n\tpublic List<CiclosCarreras> listar() {\n\t\treturn repoCiclos.findAll();\n\t}", "@Override\n\tpublic List<Produto> listar(Produto entidade) {\n\t\treturn null;\n\t}", "List<Consulta> findAll();", "@Override\r\n public List<Assunto> buscarTodas() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"FROM Assunto As a\");\r\n return query.getResultList();\r\n }", "public List<PedidoMaterialModel> findAll(){\n \n List<PedidoMaterialModel> pedidosM = new ArrayList<>();\n \n return pedidosM = pedidoMaterialConverter.entitiesToModels(pedidoMaterialRepository.findAll());\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ComPermiso> escuelas() {\n\t\t\r\n\t\treturn em.createQuery(\"select c.dependencia.id,c.dependencia.nombre from ComPermiso c \").getResultList();\r\n\t}", "public List listar() {\n Query query = Database.manager.createNamedQuery(\"StatussistemaDTO.findAll\");\n query.setHint(QueryHints.MAINTAIN_CACHE, HintValues.FALSE);// evita consulta em cache\n List lista = query.getResultList();\n return lista;\n }", "@Override\n public List<Caja> buscarMovimientos(){\n List<Caja> listaCaja= cajaRepository.findAll();\n\n return listaCaja;\n\n }", "public List<Empleado> getAll();", "public List<LugarEntity> findall(){\n Query q = em.createQuery(\"SELECT p FROM LugarEntity p\");\n return q.getResultList();\n }", "public List<Articulos> listarArticulos(){\n\t\treturn iArticulos.findAll();\n\t}", "private void getDepartamentos() {\n try{\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"ServiceQualificationPU\");\n EntityManager em = emf.createEntityManager();\n\n\n String jpql =\"SELECT d FROM Departamento d \"\n + \"WHERE d.estado = 'a'\";\n\n Query query = em.createQuery(jpql);\n List<Departamento> listDepartamentos = query.getResultList();\n ArrayList<Departamento> arrayListDepartamentos = new ArrayList<>();\n for(Departamento d: listDepartamentos){\n arrayListDepartamentos.add(d);\n }\n this.Listdepartamentos = arrayListDepartamentos;\n em.close();\n emf.close();\n }\n catch(Exception e){\n System.out.println(\"ERROR: \"+e);\n this.Error = \"ERROR: \"+e;\n }\n }", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "public List<Producto> verProductos(){\n SessionFactory sf = NewHibernateUtil.getSessionFactory();\n Session session = sf.openSession();\n // El siguiente objeto de query se puede hacer de dos formas una delgando a hql (lenguaje de consulta) que es el\n //lenguaje propio de hibernate o ejecutar ancestarmente la colsulta con sql\n Query query = session.createQuery(\"from Producto\");\n // En la consulta hql para saber que consulta agregar se procede a añadirla dandole click izquierdo sobre\n // hibernate.cfg.xml y aquí añadir la correspondiente consulta haciendo referencia a los POJOS\n List<Producto> lista = query.list();\n session.close();\n return lista;\n }", "public abstract List<TipoActividad> getTiposActividad() throws PersistenceException, ClassNotFoundException;", "public List<PrioritaetEntity> findAll() throws Exception;", "public List<Servicio> findAll();", "public List<Product> findAll();", "public List<SiteNoticia> listarPorData() {\n List<SiteNoticia> result = new ArrayList<SiteNoticia>();\n EntityManager em1 = getEM();\n em1.getTransaction().begin();\n CriteriaBuilder builder = em1.getCriteriaBuilder();\n CriteriaQuery query = builder.createQuery(SiteNoticia.class);\n //EntityType type = em1.getMetamodel().entity(SiteNoticia.class);\n Root root = query.from(SiteNoticia.class);\n query.orderBy(builder.desc(root.get(\"hora2\")));\n result = em1.createQuery(query).getResultList();\n em1.close();\n return result;\n }", "private void getinterrogantes(){\n try{\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"ServiceQualificationPU\");\n EntityManager em = emf.createEntityManager();\n\n String jpql = \"SELECT i FROM Interrogante i \"\n + \"WHERE i.estado='a' \";\n\n Query query = em.createQuery(jpql);\n List<Interrogante> listInterrogantes = query.getResultList();\n\n ArrayList<ListQuestion> arrayListQuestions = new ArrayList<>();\n for (Interrogante i : listInterrogantes){\n ListQuestion lq = new ListQuestion();\n lq.setIdinterrogante(i.getIdinterrogante());\n lq.setQuestion(i.getDescripcion());\n lq.setListParametros(getParametros(i.getIdinterrogante()));\n arrayListQuestions.add(lq);\n }\n\n this.ListQuestions = arrayListQuestions;\n em.close();\n emf.close();\n }catch(Exception e){\n System.out.println(\"ERROR: \"+e);\n this.Error = \"ERROR: \"+e;\n } \n \n }", "@Override\n public List<Produto> filtrarProdutos() {\n\n Query query = em.createQuery(\"SELECT p FROM Produto p ORDER BY p.id DESC\");\n\n// query.setFirstResult(pageRequest.getPageNumber() * pageRequest.getPageSize());\n// query.setMaxResults(pageRequest.getPageSize());\n return query.getResultList();\n }", "java.util.List<AuditoriaUsuario> findAll();", "public static void main(String[] args) {\n EntityManager gerenciador = JPAUtil.getGerenciador();\r\n\r\n //Criando a consulta ao BD\r\n TypedQuery<FilmeAtor> consulta = gerenciador.createQuery(\r\n \"SELECT new dados.dto.FilmeAtor(f, a) FROM Filme f JOIN f.atores a where f.nome = 'Les' OR a.nome = 'Les'\",\r\n FilmeAtor.class);\r\n\r\n System.out.println(\"Realizando a consulta\");\r\n List<FilmeAtor> lista = consulta.getResultList();\r\n System.out.println(\"Teste\");\r\n \r\n \r\n /*System.out.println(\"Tamanho da lista\");\r\n System.out.println(lista.size());\r\n \r\n \r\n for(Filme f : lista){\r\n System.out.println(f.getNome());\r\n System.out.println(f.getId());\r\n System.out.println(f.getAtores().size());\r\n }*/\r\n \r\n }", "List<Product> findAll();", "List<Product> findAll();", "@GetMapping(\"/getPersonas\")\n public List<PersonaEntity> listarPersonas(){\n return personaEntities;\n }", "public List<Persona> todasLasPersonas(){\n\n Iterable<Persona> ite=repo.findAll();\n Iterator<Persona> it=ite.iterator();\n List<Persona> actualList = new ArrayList<Persona>();\n while (it.hasNext()) {\n actualList.add(it.next());\n }\n\n return actualList;\n }", "List<Entidade> listarTodos();", "public static List<Enseignant> getAll() {\n\n // Creation de l'entity manager\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n // Recherche\n @SuppressWarnings(\"unchecked\")\n List<Enseignant> list = em.createQuery(\"SELECT e FROM Enseignant e\").getResultList();\n\n return list;\n }", "@Override\r\n\tpublic List<Producto> getAll() throws Exception {\n\t\treturn productRepository.buscar();\r\n\t}", "public void getEntities() {\n\t\t\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\tEntityA entityA = exampleDao.getOne(1);\r\n\t\tEntityB entityB3 = entityBDao.getOne(3);\r\n\t \tEntityB entityB2 = entityBDao.getOne(2);\r\n\t \tEntityB entityB1 = entityBDao.getOne(1);\r\n\r\n\t \t\r\n\r\n\t\tentityA.setEntityBList(Arrays.asList(entityB2,entityB3,entityB1));\r\n\r\n\t}", "@Override\n\tpublic List<Comprobante> findAll() throws Exception {\n\t\treturn comproRepository.findAll();\n\t}", "public List<Proveedores> listProveedores() {\r\n\t\tString sql = \"select p from Proveedores p\";\r\n\t\tTypedQuery<Proveedores> query = em.createQuery(sql, Proveedores.class);\r\n\t\tSystem.out.println(\"2\");\r\n\t\tList<Proveedores> lpersonas = query.getResultList();\r\n\t\treturn lpersonas;\r\n\t}", "List<WebCrawlerData> retrieveAllEntity();", "public void listNens() {\n\t\t\tEntityManager em = emf.createEntityManager();\n\t\t\tem.getTransaction().begin();\n\t\t\tList<Nen> result = em.createQuery(\"from nen\", Nen.class)\n\t\t\t\t\t.getResultList();\n\t\t\tfor (Nen a : result) {\n\t\t\t\tSystem.out.println(a.toString());\n\t\t\t}\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\t\n\t\t}", "public List<TodoItemEntity> findAll(){\n return todoItemRepository.findAll();\n }", "@SuppressWarnings(\"unchecked\")\t\r\n\t@Override\r\n\tpublic List<Distrito> listar() {\n\t\tList<Distrito> lista = new ArrayList<Distrito>();\r\n\t\tQuery q = em.createQuery(\"select m from Distrito m\");\r\n\t\tlista = (List<Distrito>) q.getResultList();\r\n\t\treturn lista;\r\n\t}", "public void populateListaObjetos() {\n listaObjetos.clear();\n Session session = HibernateUtil.getSessionFactory().openSession();\n try {\n String tipo = null;\n if (selectedTipo.equals(\"submenu\")) {\n tipo = \"menu\";\n } else if (selectedTipo.equals(\"accion\")) {\n tipo = \"submenu\";\n }\n\n Criteria cObjetos = session.createCriteria(Tblobjeto.class);\n cObjetos.add(Restrictions.eq(\"tipoObjeto\", tipo));\n Iterator iteObjetos = cObjetos.list().iterator();\n while (iteObjetos.hasNext()) {\n Tblobjeto o = (Tblobjeto) iteObjetos.next();\n listaObjetos.add(new SelectItem(new Short(o.getIdObjeto()).toString(), o.getNombreObjeto(), \"\"));\n }\n } catch (HibernateException e) {\n //logger.throwing(getClass().getName(), \"populateListaObjetos\", e);\n } finally {\n session.close();\n }\n }", "public List<Usuario> listarUsuario() {\n \n List<Usuario> lista = usuarioDAO.findAll();\n return lista;\n \n \n\n }", "public List<CategoriaUsuario> findall(){\n return categoriaUsuarioRepository.findAll();\n }", "List<CapituloDTO> findAll();", "List<Administrativo> findAll();", "public List<BlogEntity> findAll() {\r\n LOGGER.log(Level.INFO, \"Consultando todas los Blog\");\r\n // Se crea un query para buscar todas las grupoDeIntereses en la base de datos.\r\n TypedQuery query = em.createQuery(\"select u from Blog u\", BlogEntity.class);\r\n // Se hace uso del método getResultList() que obtiene una lista de grupoDeIntereses.\r\n return query.getResultList();\r\n }", "public List<ParamIntervento> getAll()\n {\n\t System.out.println(\"chiamo getAll: \");\n System.out.flush();\n CriteriaQuery<ParamIntervento> criteria = this.entityManager.getCriteriaBuilder().createQuery(ParamIntervento.class);\n return this.entityManager.createQuery(criteria.select(criteria.from(ParamIntervento.class))).getResultList();\n }", "List<Usuario> findAll();", "@Override\n public List<Promocion> findAll() {\n return promocionRepository.findAll();\n }", "@Override\n public List<DetalleVenta> all() {\n return detalleVentaJpaRepository.findAll();\n }", "List<NegozioDTO> findAll();", "@Override\n public List<ModeloCuestionario> findAll() {\n List<ModeloCuestionario> listadoModelos = (List<ModeloCuestionario>) modeloCuestionarioRepository.findAll();\n Collections.sort(listadoModelos, (o1, o2) -> o1.getDescripcion().compareTo(o2.getDescripcion()));\n \n return listadoModelos;\n \n }", "public static List<Groupe> getAll() {\n\n // Creation de l'entity manager\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n // Recherche\n @SuppressWarnings(\"unchecked\")\n List<Groupe> list = em.createQuery(\"SELECT e FROM Groupe e\").getResultList();\n\n return list;\n }", "public List<Entity> getAll() {\n return entities;\n }", "List<AdvertBundleEntity> findAllRequiredNewProforma();", "@TransactionAttribute(TransactionAttributeType.SUPPORTS)\r\n\t\tpublic List<DatosGrlsProyectoDO> getAllAll() throws ConectelException {\r\n\t\t\tTypedQuery<DatosGrlsProyectoDO> query = entityManager.createNamedQuery(\r\n\t\t\t\t\t\"DatosGrlsProyectoDO.findAllAll\", DatosGrlsProyectoDO.class);\r\n\t\t\tList<DatosGrlsProyectoDO> dataProjectList;\r\n\t\t\ttry {\r\n\t\t\t\tdataProjectList = query.getResultList();\r\n\t\t\t} catch(NoResultException e) {\r\n\t\t\t\tthrow new ConectelException(\"No existen Datos Generales registrados.\");\r\n\t\t\t}\r\n\t\t\treturn dataProjectList;\r\n\t\t}", "@Override\n\tpublic List<Paciente> listar() {\n\t\treturn dao.findAll();\n\t}", "List<Persona> obtenerTodasLasPersona();", "List<T> getAll() throws PersistException;", "public List<ReservaEntity> getReservas() {\n LOGGER.log(Level.INFO, \"Inicia proceso de consultar todas las reservas\");\n // Note que, por medio de la inyección de dependencias se llama al método \"findAll()\" que se encuentra en la persistencia.\n List<ReservaEntity> reservas = persistence.findAllReservas();\n LOGGER.log(Level.INFO, \"Termina proceso de consultar todas las reservas\");\n return reservas;\n }", "@Override\r\n\tpublic List<Fournisseur> getListFournisseur() {\n\t\treturn this.sessionFactory.getCurrentSession().createQuery(\"from fournisseur\").list();\r\n\t}", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "@Override\r\n\tpublic List<Famille> listCompetences() {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\t//on crée une requête\r\n \t\tQuery req=session.createQuery(\"select C from FamilleComp C\");\r\n \t\tList<Famille> famillecomp=req.list();\r\n session.getTransaction().commit();\r\n \t\treturn famillecomp;\r\n\t\t\r\n\t}", "public void buscarEntidad(){\r\n\t\tlistaEstructuraDetalle.clear();\r\n\t\tPersona persona = null;\r\n\t\tList<EstructuraDetalle> lstEstructuraDetalle = null;\r\n\t\ttry {\r\n\t\t\tstrFiltroTextoPersona = strFiltroTextoPersona.trim();\r\n\t\t\tif(intTipoPersonaC.equals(Constante.PARAM_T_TIPOPERSONA_JURIDICA)){\r\n\t\t\t\tif (intPersonaRolC.equals(Constante.PARAM_T_TIPOROL_ENTIDAD)) {\r\n\t\t\t\t\tlstEstructuraDetalle = estructuraFacade.getListaEstructuraDetalleIngresos(SESION_IDSUCURSAL,SESION_IDSUBSUCURSAL);\r\n\t\t\t\t\tif (lstEstructuraDetalle!=null && !lstEstructuraDetalle.isEmpty()) {\r\n\t\t\t\t\t\tfor (EstructuraDetalle estructuraDetalle : lstEstructuraDetalle) {\r\n\t\t\t\t\t\t\tpersona = personaFacade.getPersonaPorPK(estructuraDetalle.getEstructura().getJuridica().getIntIdPersona());\r\n\t\t\t\t\t\t\tif (persona.getStrRuc().trim().equals(\"strFiltroTextoPersona\")) {\r\n\t\t\t\t\t\t\t\testructuraDetalle.getEstructura().getJuridica().setPersona(persona);\r\n\t\t\t\t\t\t\t\tlistaEstructuraDetalle.add(estructuraDetalle);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(e.getMessage(), e);\r\n\t\t}\r\n\t}", "public List<Usuario> findAllUsuarios(){\n\t\t\t List<Usuario> listado;\n\t\t\t Query q;\n\t\t\t em.getTransaction().begin();\n\t\t\t q=em.createQuery(\"SELECT u FROM Usuario u ORDER BY u.idUsr\");\n\t\t\t listado= q.getResultList();\n\t\t\t em.getTransaction().commit();\n\t\t\t return listado;\n\t\t\t \n\t\t\t}", "public abstract List<Subproducto> listarSubproducto(EntityManager sesion, Subproducto subproducto);", "List<IViewEntity> getEntities();", "public void consultarEditorialesDAO() {\n Collection<Editorial> editoriales = em.createQuery(\"SELECT e\"\n + \" FROM Editorial e\").getResultList();\n\n //Iteramos entre autores\n for (Editorial e : editoriales) {\n\n System.out.println(e.getNombre());\n\n }\n\n }", "public java.util.List<PlanoSaude> findAll();", "public List<FacturaCabecera> list(){ \n\t\t\treturn em.createQuery(\"SELECT c from FacturaCabecera c\", FacturaCabecera.class).getResultList();\n\t\t}", "@SuppressWarnings(\"unchecked\")\r\n public List<DomainObject> getList() {\r\n Session session = getSession();\r\n try {\r\n session.flush();\r\n return session.createQuery(\"from \" + getPersistentClass().getName()).list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getList() Method:\" + e, e);\r\n throw e;\r\n }\r\n }", "public List<Soldados> conectar(){\n EntityManagerFactory conexion = Persistence.createEntityManagerFactory(\"ABP_Servicio_MilitarPU\");\n //creamos una instancia de la clase controller\n SoldadosJpaController tablasoldado = new SoldadosJpaController(conexion);\n //creamos una lista de soldados\n List<Soldados> listasoldado = tablasoldado.findSoldadosEntities();\n \n return listasoldado;\n }", "public List<Usuario> findAllUsuarios ();", "@Override\r\n\tpublic List<Evento> listar() {\n\t\treturn repository.findAll();\r\n\t}", "public List<Professor> findAll();", "public List<Produto> buscarProdutos(){\n return new ArrayList<>();\n }" ]
[ "0.7598865", "0.74680626", "0.7315668", "0.7023542", "0.69943947", "0.69793963", "0.6972069", "0.69506687", "0.69039017", "0.68807036", "0.687216", "0.685986", "0.6854398", "0.68424296", "0.6820405", "0.68128455", "0.6801164", "0.6795896", "0.6777026", "0.67730194", "0.6770645", "0.6764774", "0.67540956", "0.6751682", "0.67512774", "0.6743455", "0.6735028", "0.6729324", "0.6718137", "0.670368", "0.6697837", "0.66870266", "0.66868764", "0.6685731", "0.6682492", "0.6676972", "0.6671934", "0.666443", "0.6651025", "0.66485906", "0.66470134", "0.6644648", "0.664373", "0.6642445", "0.6638496", "0.6638429", "0.6634225", "0.66312706", "0.66300833", "0.66254103", "0.66223574", "0.66223574", "0.66021496", "0.6598498", "0.6598245", "0.6594042", "0.6593922", "0.6586196", "0.65847677", "0.6574792", "0.65555334", "0.6543523", "0.6525193", "0.6522937", "0.6508456", "0.6506619", "0.6498179", "0.6497253", "0.6490524", "0.6484362", "0.6482613", "0.6477366", "0.64671975", "0.64663893", "0.646635", "0.6463659", "0.64615595", "0.64554465", "0.64494145", "0.6447066", "0.64465725", "0.6441285", "0.643707", "0.6430568", "0.6428788", "0.64253336", "0.64216524", "0.6415645", "0.6414064", "0.6413086", "0.64109236", "0.6410754", "0.6409243", "0.6406914", "0.6406214", "0.6405822", "0.63980275", "0.6395258", "0.6391724", "0.63774157" ]
0.6461547
77
Determine whether the portlet has expects a CAS proxy ticket as one of the user attributes.
public boolean isCasProxyTicketRequested( PortletRequest request, PortletWindow plutoPortletWindow) throws PortletContainerException { // get the list of requested user attributes final HttpServletRequest httpServletRequest = this.portalRequestUtils.getPortletHttpRequest(request); final IPortletWindow portletWindow = this.portletWindowRegistry.convertPortletWindow( httpServletRequest, plutoPortletWindow); final IPortletEntity portletEntity = portletWindow.getPortletEntity(); final IPortletDefinition portletDefinition = portletEntity.getPortletDefinition(); final PortletApplicationDefinition portletApplicationDescriptor = this.portletDefinitionRegistry.getParentPortletApplicationDescriptor( portletDefinition.getPortletDefinitionId()); // check to see if the proxy ticket key is one of the requested user attributes List<? extends UserAttribute> requestedUserAttributes = portletApplicationDescriptor.getUserAttributes(); for (final UserAttribute userAttributeDD : requestedUserAttributes) { final String attributeName = userAttributeDD.getName(); if (attributeName.equals(this.proxyTicketKey)) return true; } // if the proxy ticket key wasn't found in the list of requested attributes return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSetRequesting_user() {\n return this.requesting_user != null;\n }", "private String getAuthenticatedUser(HttpServletRequest request) throws ServletException, EappException {\n ProxyTicketValidator pv = new ProxyTicketValidator();\n pv.setCasValidateUrl(casValidate);\n pv.setServiceTicket(request.getParameter(\"ticket\"));\n pv.setService(getService(request));\n pv.setRenew(casRenew);\n if (casProxyCallbackUrl != null) {\n pv.setProxyCallbackUrl(casProxyCallbackUrl);\n }\n \n if (!pv.isAuthenticationSuccesful()) {\n try {\n pv.validate();\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n throw new EappException(\"Unable to validate ProxyTicketValidator [\" + pv + \"]\");\n }\n }\n \n if (!pv.isAuthenticationSuccesful()) {\n \tthrow new EappException(\"Unable to validate ProxyTicketValidator [\" + pv + \"]\");\n }\n \n \n if (pv.getUser() == null \n \t\t|| pv.getProxyList() == null \n \t\t|| (casRenew && !pv.getProxyList().isEmpty())) {\n \tthrow new EappException(\"Validation of [\" + pv + \"] did not result in an internally consistent CASReceipt.\");\n }\n \n if (!pv.getProxyList().isEmpty()) {\n // ticket was proxied\n if (authorizedProxies.isEmpty()) {\n throw new ServletException(\"this page does not accept proxied tickets\");\n }\n \n String proxy = (String)pv.getProxyList().get(0);\n if (!authorizedProxies.contains(proxy)) {\n \tthrow new ServletException(\"unauthorized top-level proxy: '\" + pv.getProxyList().get(0) + \"'\");\n }\n }\n \n return pv.getUser();\n }", "public boolean isTicketable();", "private boolean verifyParameters(HttpServletRequest req, User loggedUser){\r\n\t\ttry{\r\n\t\t\tString requestedUserParam = queryStringMap.get(\"user\");\r\n\t\t\tif( requestedUserParam==null ){ return false; }\r\n\t\t\trequestedUserId = Long.parseLong( requestedUserParam );\r\n\t\t\trequestedUser = BeanUserView.getUserByIdStatic( requestedUserId );\r\n\t\t\tif( requestedUser==null ){ return false; }\r\n\t\t\telse{\r\n\t\t\t\tif( requestedUser.getRemoved() ){ return false; }\r\n\t\t\t\telse{ return true; }\r\n\t\t\t}\r\n\t\t} catch( NumberFormatException nfe ){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "boolean hasObjUser();", "public boolean isSetUser() {\n return this.user != null;\n }", "public boolean isSetUser() {\n return this.user != null;\n }", "private String getProxyTicket(PortletRequest request) {\n\n final HttpServletRequest httpServletRequest =\n this.portalRequestUtils.getPortletHttpRequest(request);\n\n // try to determine the URL for our portlet\n String targetService = null;\n try {\n URL url = null;\n\n // if the server port is 80 or 443, don't include it in the URL\n int port = request.getServerPort();\n if (port == 80 || port == 443)\n url =\n new URL(\n request.getScheme(),\n request.getServerName(),\n request.getContextPath());\n else\n url =\n new URL(\n request.getScheme(),\n request.getServerName(),\n request.getServerPort(),\n request.getContextPath());\n targetService = url.toString();\n\n } catch (MalformedURLException e) {\n log.error(\"Failed to create a URL for the target portlet\", e);\n e.printStackTrace();\n return null;\n }\n\n // get the CasSecurityContext\n final IUserInstance userInstance = userInstanceManager.getUserInstance(httpServletRequest);\n final IPerson person = userInstance.getPerson();\n final ISecurityContext context = person.getSecurityContext();\n if (context == null) {\n log.error(\"no security context, no proxy ticket passed to the portlet\");\n return null;\n }\n ISecurityContext casContext = getCasContext(context);\n if (casContext == null) {\n log.debug(\"no CAS security context, no proxy ticket passed to the portlet\");\n return null;\n }\n if (!casContext.isAuthenticated()) {\n log.debug(\"no CAS authentication, no proxy ticket passed to the portlet\");\n return null;\n }\n\n // get a proxy ticket for our portlet from the CasSecurityContext\n String proxyTicket = null;\n try {\n proxyTicket = ((ICasSecurityContext) casContext).getCasServiceToken(targetService);\n log.debug(\"Put proxy ticket in userinfo: \" + proxyTicket);\n } catch (CasProxyTicketAcquisitionException e) {\n log.error(\"no proxy ticket passed to the portlet: \" + e);\n }\n\n return proxyTicket;\n }", "private boolean isContactableUser() {\r\n\r\n return (friendFeed == null || friendFeed.getContact() == null) ? false\r\n : friendFeed.getContact().isContactable();\r\n }", "private boolean isUserExplicitlyLoggedIn() {\n // User is explicitly logged in, if his securityStatus is more than or equal to security status login.\n String securityStatusPropertyName = getStorePropertyManager().getSecurityStatusPropertyName();\n int securityStatus = ((Integer) getProfile().getPropertyValue(securityStatusPropertyName)).intValue();\n return securityStatus >= getStorePropertyManager().getSecurityStatusLogin();\n }", "final public boolean requiresAuthentication()\r\n {\r\n return requires_AUT;\r\n }", "public boolean isSetUserInfo() {\n return this.userInfo != null;\n }", "public boolean isProxyEnvironment() {\n return \"proxy\".equals(activeProfile);\n }", "public boolean isSetCompanyUserNamePartical() {\n return this.companyUserNamePartical != null;\n }", "public boolean isSetBase()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(BASE$18) != null;\r\n }\r\n }", "public boolean isVtkUser( ) {\n\t\treturn chomboSolverSpec != null;\n\t}", "boolean hasCertificate();", "public boolean hasReqRemoteAddr() {\n return fieldSetFlags()[3];\n }", "public boolean isSetProtocol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(PROTOCOL$0) != null;\n }\n }", "public boolean hasUserID() {\n return fieldSetFlags()[2];\n }", "public boolean hasObjUser() {\n return objUser_ != null;\n }", "boolean hasPrincipal();", "private boolean checkUserData() {\n UserAccount userAccount = new UserAccount(this);\n customer = userAccount.getCustomer();\n return customer != null;\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "public boolean isSetUserName() {\r\n return this.userName != null;\r\n }", "private boolean isPassThruRequest(String userAgent){\n //TODO we can make this more generic, but there are no plans to support anything\n //other than CFME at this time.\n if (userAgent == null){\n return false;\n }\n return userAgent.contains(Constants.CFME_USER_AGENT_BASE) ? true : false;\n }", "public boolean isSetOverrideLoginUserName() {\n return this.overrideLoginUserName != null;\n }", "public boolean isFromAuthoritative()\n {\n if ((this.flag & 0x0400) == 0)\n {\n // not from a authoritative server\n return false;\n }\n\n else return true;\n }", "public boolean isSetUserName() {\n return this.userName != null;\n }", "public boolean isSetUserName() {\n return this.userName != null;\n }", "public boolean isSetTicketValue() {\n return this.ticketValue != null;\n }", "public boolean isProxyEnabled() {\n\t\treturn checkBoxProxyEnabled.isSelected();\n\t}", "@Override\n public boolean shouldApply(HttpServletRequest httpServletRequest) {\n boolean shouldApply = false;\n\n if (jwtProperties != null) {\n String serializedJWT = getJWTFromCookie(httpServletRequest);\n shouldApply = (serializedJWT != null && isAuthenticationRequired(serializedJWT));\n }\n\n return shouldApply;\n }", "@Override\n public boolean isDirty() {\n\n boolean dirty = false ;\n String tmp = null ;\n\n if( this.useProxy != super.useProxyCB.isSelected() ) {\n dirty = true ;\n }\n if( !dirty ) {\n tmp = super.proxyHostTF.getText() ;\n dirty = !UIHelper.isEqual( this.proxyHost, tmp ) ;\n }\n if( !dirty ) {\n tmp = super.proxyPortTF.getText() ;\n dirty = !UIHelper.isEqual( String.valueOf( this.proxyPort ), tmp ) ;\n }\n if( !dirty ) {\n if( this.useAuth != super.useProxyAuthCB.isSelected() ) {\n dirty = true ;\n }\n }\n if( !dirty ) {\n tmp = super.userIdTF.getText() ;\n dirty = !UIHelper.isEqual( this.userName, tmp ) ;\n }\n if( !dirty ) {\n tmp = new String( super.passwordTF.getPassword() ) ;\n dirty = !UIHelper.isEqual( String.valueOf( this.password ), tmp ) ;\n }\n\n return dirty ;\n }", "boolean hasCustomerUserAccess();", "public boolean isDefined(){\n\t\treturn this.useProxy;\n\t}", "public Integer getIsCert() {\n\t\treturn isCert;\n\t}", "boolean hasConnProps();", "public boolean hasObjUser() {\n return instance.hasObjUser();\n }", "boolean hasCertificates();", "boolean hasCertificates();", "public boolean isArtifactoryProxyBypassed() {\n return artifactoryProxyBypassed;\n }", "@Test\n public void conditionalOTPUserAttributeForce() {\n Map<String, String> config = new HashMap<>();\n config.put(OTP_CONTROL_USER_ATTRIBUTE, \"userSkipAttribute\");\n config.put(DEFAULT_OTP_OUTCOME, SKIP);\n\n setConditionalOTPForm(config);\n\n //add force user attribute to user\n testUser.singleAttribute(\"userSkipAttribute\", \"force\");\n testRealmResource().users().get(testUser.getId()).update(testUser);\n\n //test OTP is required\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n assertTrue(loginConfigTotpPage.isCurrent());\n\n configureOTP();\n driver.navigate().to(oauth.getLoginFormUrl());\n testRealmLoginPage.form().login(testUser);\n\n //verify that the page is login page, not totp setup\n assertCurrentUrlStartsWith(testLoginOneTimeCodePage);\n }", "public boolean isNexusProxyBypassed() {\n return nexusProxyBypass;\n }", "public boolean isSetAutoForwardToEmailAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AUTOFORWARDTOEMAILADDRESS$10) != 0;\n }\n }", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "boolean hasUserID();", "public boolean isSetUserid() {\n return this.userid != null;\n }", "public boolean isSetUserIp() {\n return this.userIp != null;\n }", "public boolean isSetUserIp() {\n return this.userIp != null;\n }", "boolean isProxyTargetAware() {\n\t\treturn this.proxyTargetAware;\n\t}", "public boolean hasCredentials(){\r\n return state;\r\n }", "public boolean hasCertificate() {\n return certificateBuilder_ != null || certificate_ != null;\n }", "public boolean isAuthRequired() {\n return !AfUtil.anyEmpty(_username);\n }", "public boolean getNeedClientAuth()\n {\n return needClientAuth;\n }", "public boolean isSetTickets() {\n return this.tickets != null;\n }", "public boolean isSetContructionType()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(CONTRUCTIONTYPE$24) != null;\r\n }\r\n }", "protected boolean isPilot() {\n\t\tif (request.getSession().getAttribute(\"type\") == null)\n\t\t\treturn false;\n\t\treturn request.getSession().getAttribute(\"type\").equals(\"pilot\");\n\t}", "public boolean isSetCusPerBase() {\n return this.cusPerBase != null;\n }", "boolean hasLoginRequest();", "protected boolean mustTunnel (RequestHandler rh) {\n\tString auth = request.getHeader (\"Authorization\");\n\tif (auth != null) {\n\t if (auth.startsWith (\"NTLM\") || auth.startsWith (\"Negotiate\"))\n\t\treturn true;\n\t}\n\treturn false;\n }", "public boolean isHonorSystemProxy() {\n return honorSystemProxy;\n }", "boolean isResolveByProxy();", "protected boolean isDiffUser() {\r\n\t\tString profileIdVap = \"\";\r\n\r\n\t\t// Retrieve current user and its profile ID from session\r\n\t\tUser currentUser = SessionUtils.getCurrentUser(request.getSession());\r\n\t\tif (currentUser.getProperty(AuthenticationConsts.PROPERTY_PROFILE_ID) != null) {\r\n\t\t\tprofileIdVap = (String)currentUser.getProperty(AuthenticationConsts.PROPERTY_PROFILE_ID);\r\n\r\n\t\t}\r\n\t\t// If profile ID is different, return true\r\n\t\tif (!profileIdVap.equals(userProfile.get(AuthenticationConsts.KEY_PROFILE_ID))) {\r\n\t\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\t\tLOG.debug(String.format(\"profile_id_vap: %s; profileid: %s; userId: %s\",\r\n\t\t\t\t\t\t profileIdVap,\r\n\t\t\t\t\t\t userProfile.get(AuthenticationConsts.KEY_PROFILE_ID),\r\n\t\t\t\t\t\t userProfile.get(AuthenticationConsts.KEY_USER_NAME)));\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tif (LOG.willLogAtLevel(LogConfiguration.DEBUG)) {\r\n\t\t\tLOG.debug(String.format(\"same user in session, profileid: %s; userid: %s\",\r\n\t\t\t\t\t\tprofileIdVap,\r\n\t\t\t\t\t\tuserProfile.get(AuthenticationConsts.KEY_USER_NAME)));\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "boolean CheckIfRealPerson(Customer customer);", "private static Boolean isUserACollaborator(User checkedUser, Tasky_Collaborator__c[] collaborators) {\n for (Integer i = 0; i < collaborators.size(); i++) {\n if (checkedUser.Id == collaborators[i].User__c) {\n return true;\n }\n }\n return false;\n }", "@java.lang.Override\n public boolean hasPrincipal() {\n return principal_ != null;\n }", "public boolean getWantClientAuth()\n {\n return wantClientAuth;\n }", "protected boolean checkUserNameAssertionEnabled() {\n return APIUtil.checkUserNameAssertionEnabled();\n }", "public boolean hasUserSettings() {\r\n return processModel.getUserInfos() != null;\r\n }", "protected boolean supportsSecMecUSRSSBPWD()\n {\n return\n (\n ( clientType == DNC_CLIENT ) &&\n ( greaterThanOrEqualTo( 10, 2, 0 ) )\n );\n }", "public Object getProxyUser() {\n return this.proxyUser;\n }", "protected boolean isXARequester()\n {\n return (getManagerLevel(CodePoint.XAMGR) >= 7);\n \n }", "public boolean isSetClient_ip() {\n return this.client_ip != null;\n }", "java.lang.Boolean hasUploadDownloadConfig(java.lang.String userName) throws com.ctb.exception.CTBBusinessException;", "public Long getIsHaveContactPoint() {\n return isHaveContactPoint;\n }", "public boolean hasCertificate() {\n return certificate_ != null;\n }", "public boolean shouldConfirmCredentials(int userId) {\n synchronized (this.mLock) {\n boolean z = false;\n if (this.mStartedUsers.get(userId) == null) {\n return false;\n }\n }\n }", "@Override\r\n\tpublic boolean hasCredential(String[] roles) {\n\t\treturn false;\r\n\t}", "public boolean isSetLoginPass() {\n return this.loginPass != null;\n }", "public boolean isSetIsauthenticated() {\n return __isset_bit_vector.get(__ISAUTHENTICATED_ISSET_ID);\n }" ]
[ "0.57626975", "0.56931394", "0.5652444", "0.5488317", "0.5461338", "0.5427123", "0.5427123", "0.53929865", "0.5385874", "0.5369599", "0.5365647", "0.5355852", "0.5289752", "0.52469975", "0.52320313", "0.5228245", "0.521915", "0.5212922", "0.52025294", "0.5202409", "0.520028", "0.51965314", "0.5184204", "0.5169962", "0.5169962", "0.5169962", "0.5169962", "0.5169962", "0.51468575", "0.51420474", "0.5138491", "0.512797", "0.512797", "0.51163113", "0.51082665", "0.5106279", "0.51034117", "0.5098826", "0.5094039", "0.5092609", "0.50912833", "0.508563", "0.50834996", "0.50834996", "0.5077655", "0.50634843", "0.5057769", "0.5056086", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5043136", "0.5038314", "0.50327027", "0.50327027", "0.50322676", "0.50292474", "0.5025915", "0.50099087", "0.5006295", "0.4996827", "0.49916407", "0.49868926", "0.49816772", "0.4976212", "0.49673775", "0.49603805", "0.49562886", "0.49534747", "0.4949361", "0.49393457", "0.49376914", "0.49321237", "0.492318", "0.49189308", "0.49185625", "0.49158722", "0.49076417", "0.48973396", "0.489635", "0.4891012", "0.48877463", "0.48863855", "0.4882963", "0.4877792", "0.48698372" ]
0.7295942
0
Attempt to get a proxy ticket for the current portlet.
private String getProxyTicket(PortletRequest request) { final HttpServletRequest httpServletRequest = this.portalRequestUtils.getPortletHttpRequest(request); // try to determine the URL for our portlet String targetService = null; try { URL url = null; // if the server port is 80 or 443, don't include it in the URL int port = request.getServerPort(); if (port == 80 || port == 443) url = new URL( request.getScheme(), request.getServerName(), request.getContextPath()); else url = new URL( request.getScheme(), request.getServerName(), request.getServerPort(), request.getContextPath()); targetService = url.toString(); } catch (MalformedURLException e) { log.error("Failed to create a URL for the target portlet", e); e.printStackTrace(); return null; } // get the CasSecurityContext final IUserInstance userInstance = userInstanceManager.getUserInstance(httpServletRequest); final IPerson person = userInstance.getPerson(); final ISecurityContext context = person.getSecurityContext(); if (context == null) { log.error("no security context, no proxy ticket passed to the portlet"); return null; } ISecurityContext casContext = getCasContext(context); if (casContext == null) { log.debug("no CAS security context, no proxy ticket passed to the portlet"); return null; } if (!casContext.isAuthenticated()) { log.debug("no CAS authentication, no proxy ticket passed to the portlet"); return null; } // get a proxy ticket for our portlet from the CasSecurityContext String proxyTicket = null; try { proxyTicket = ((ICasSecurityContext) casContext).getCasServiceToken(targetService); log.debug("Put proxy ticket in userinfo: " + proxyTicket); } catch (CasProxyTicketAcquisitionException e) { log.error("no proxy ticket passed to the portlet: " + e); } return proxyTicket; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getProxyTicket(String pgtIou, String target)\n throws IOException {\n synchronized(ProxyTicketReceptor.class) {\n // ensure state is sensible\n if (casProxyUrl == null || pgtMap == null)\n throw new IllegalStateException(\n \"getProxyTicket() only works after servlet has been initialized\");\n }\n\n // retrieve PGT\n String pgtId = null;\n synchronized(pgtMap) {\n CacheEntry cacheEntry = pgtMap.get(pgtIou);\n pgtId = cacheEntry == null ? null : cacheEntry.pgt;\n }\n if (pgtId == null)\n return null;\n\n // retrieve an XML response from CAS's \"Proxy\" actuator\n String url = casProxyUrl + \"?pgt=\" + pgtId + \"&targetService=\" + target;\n log.info(\"Retrieving Proxy Ticket from: \" + url);\n String response = SecureURL.retrieve(url);\n\n // parse this response (use a lightweight approach for now)\n if (response.indexOf(\"<cas:proxySuccess>\") != -1\n && response.indexOf(\"<cas:proxyTicket>\") != -1) {\n int startIndex = response.indexOf(\"<cas:proxyTicket>\")\n + \"<cas:proxyTicket>\".length();\n int endIndex = response.indexOf(\"</cas:proxyTicket>\");\n return response.substring(startIndex, endIndex);\n } else {\n // generic failure\n return null;\n }\n }", "private NodeMgrService.Proxy getProxy(int node) { \n Object obj = ServiceManager.proxyFor(node);\n if (! (obj instanceof NodeMgrService.Proxy)) {\n if (node == ServiceManager.LOCAL_NODE) {\n throw new InternalException(\"cannot fetch NodeManager Proxy\" +\n \" for local node\");\n } else {\n logger.warning(\"cannot retrieve proxy for node \" + node);\n }\n }\n return (NodeMgrService.Proxy) obj;\n }", "private HttpProxyCacheServer getProxy() {\n\n return proxy == null ? (proxy = newProxy()) : proxy;\n }", "Proxy getProxy();", "public JDispatcherService getClientProxy() {\n\t\t try {\r\n\t\t\t Bundle bundle = Platform.getBundle(\"au.edu.unimelb.plantcell.io.ws.multialign\");\r\n\t\t\t URL u = FileLocator.find(bundle, new Path(\"META-INF/wsdl/tcoffee.wsdl\"), null);\r\n\t\t\t \r\n\t\t\t // must not call default constructor for local WSDL... so...\r\n\t\t\t JDispatcherService_Service cli = new JDispatcherService_Service(u,\r\n\t\t\t\t\t new QName(\"http://soap.jdispatcher.ebi.ac.uk\", \"JDispatcherService\"));\r\n\t\t\t return cli.getJDispatcherServiceHttpPort();\r\n\t\t } catch (Exception e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t Logger.getAnonymousLogger().warning(\"Unable to get TCoffee proxy: \"+e.getMessage());\r\n\t\t\t return null;\r\n\t\t }\r\n\t}", "public static Proxy getProxy() {\r\n\t\tif (_proxy == null) {//no need to synchronized\r\n\t\t\ttry {\r\n\t\t\t\tClasses.forNameByThread(\"org.zkoss.zk.ui.sys.PageRenderer\");\r\n\t\t\t\t_proxy = newProxy5();\r\n\t\t\t} catch (ClassNotFoundException ex) {\r\n\t\t\t\t_proxy = newProxy3();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn _proxy;\r\n\t}", "public java.lang.String getProxyRealm()\r\n {\r\n return proxyRealm;\r\n }", "private String getAuthenticatedUser(HttpServletRequest request) throws ServletException, EappException {\n ProxyTicketValidator pv = new ProxyTicketValidator();\n pv.setCasValidateUrl(casValidate);\n pv.setServiceTicket(request.getParameter(\"ticket\"));\n pv.setService(getService(request));\n pv.setRenew(casRenew);\n if (casProxyCallbackUrl != null) {\n pv.setProxyCallbackUrl(casProxyCallbackUrl);\n }\n \n if (!pv.isAuthenticationSuccesful()) {\n try {\n pv.validate();\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n throw new EappException(\"Unable to validate ProxyTicketValidator [\" + pv + \"]\");\n }\n }\n \n if (!pv.isAuthenticationSuccesful()) {\n \tthrow new EappException(\"Unable to validate ProxyTicketValidator [\" + pv + \"]\");\n }\n \n \n if (pv.getUser() == null \n \t\t|| pv.getProxyList() == null \n \t\t|| (casRenew && !pv.getProxyList().isEmpty())) {\n \tthrow new EappException(\"Validation of [\" + pv + \"] did not result in an internally consistent CASReceipt.\");\n }\n \n if (!pv.getProxyList().isEmpty()) {\n // ticket was proxied\n if (authorizedProxies.isEmpty()) {\n throw new ServletException(\"this page does not accept proxied tickets\");\n }\n \n String proxy = (String)pv.getProxyList().get(0);\n if (!authorizedProxies.contains(proxy)) {\n \tthrow new ServletException(\"unauthorized top-level proxy: '\" + pv.getProxyList().get(0) + \"'\");\n }\n }\n \n return pv.getUser();\n }", "private ProxyBean getFactoryProxyBean(Object orig) {\n final Class<?> type = orig.getClass();\n if (isUnproxyable(type))\n return null;\n\n // we don't lock here; ok if two proxies get generated for same type\n ProxyBean proxy = (ProxyBean) _proxies.get(type);\n if (proxy == null) {\n ClassLoader l = GeneratedClasses.getMostDerivedLoader(type, ProxyBean.class);\n Class<?> pcls = loadBuildTimeProxy(type, l);\n if (pcls == null) {\n pcls = generateAndLoadProxyBean(type, true, l);\n }\n if (pcls != null)\n proxy = (ProxyBean) instantiateProxy(pcls, findCopyConstructor(type), new Object[] { orig });\n if (proxy == null) {\n _unproxyable.add(type.getName());\n } else {\n _proxies.put(type, proxy);\n }\n }\n return proxy;\n }", "public Proxy getProxy() {\n return proxy;\n }", "public void initProxy() {\n\n System.setProperty(\"http.proxyHost\", \"199.101.97.159\"); // set proxy server\n System.setProperty(\"http.proxyPort\", \"60099\"); // set proxy port\n //System.setProperty(\"http.proxyUser\", authUser);\n //System.setProperty(\"http.proxyPassword\", authPassword);\n Authenticator.setDefault(\n new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\n authUser, authPassword.toCharArray());\n }\n }\n );\n }", "public String getProxyAuthenticationRealm() {\n return this.proxyRealm;\n }", "@Override\n\tpublic Credential authenticateProxy(Proxy proxy, URL url,\n\t\t\tList<Challenge> challenges) throws IOException {\n\t\treturn null;\n\t}", "int getHttpProxyPort();", "public static Object getLiferayPortlet(PortletRequest portletRequest) {\n\n // Try to get the Liferay portlet object from a typical Liferay request attribute.\n Object portlet = portletRequest.getAttribute(LIFERAY_REQ_ATTR_RENDER_PORTLET);\n\n // If not found, then\n if (portlet == null) {\n\n // Try to get it using Java Reflection, assuming that the portlet request is an instance of Liferay's\n // RenderRequestImpl which has a getPortlet() method.\n try {\n Method method = portletRequest.getClass().getMethod(LIFERAY_METHOD_NAME_GET_PORTLET, (Class[]) null);\n\n if (method != null) {\n portlet = method.invoke(portletRequest, (Object[]) null);\n }\n } catch (Exception e) {\n // ignore\n }\n\n // Last chance -- it might be the case that the PortletRequest is being wrapped\n // by a JSF portlet bridge PortletRequest, and so try and get the wrapped Liferay\n // PortletRequest implementation instance from the javax.portlet.request attribute\n // and then try reflection again.\n if (portlet == null) {\n PortletRequest portletRequest2 = (PortletRequest) portletRequest.getAttribute(\n REQUEST_ATTR_PORTLET_REQUEST);\n\n if (portletRequest2 != null) {\n\n try {\n Method method = portletRequest2.getClass().getMethod(LIFERAY_METHOD_NAME_GET_PORTLET,\n (Class[]) null);\n\n if (method != null) {\n portlet = method.invoke(portletRequest2, (Object[]) null);\n }\n } catch (Exception e) {\n // ignore\n }\n }\n }\n }\n\n if (portlet == null) {\n\n // Note that the Liferay ActionRequestImpl does not have a getPortlet() method\n // so only report an error if this is a RenderRequest or a ResourceRequest.\n if (!(portletRequest instanceof ActionRequest)) {\n\n if (portletRequest.getClass().getName().indexOf(LIFERAY_PACKAGE_PREFIX) >= 0) {\n logger.log(Level.SEVERE, \"Could not retrieve Liferay portlet object\");\n }\n }\n }\n\n return portlet;\n }", "public String getProxyPort() {\n\t\treturn checkBoxProxyEnabled.isSelected() ? textFieldProxyPort.getText() : \"\";\n\t}", "public int getHttpProxyPort();", "public Long getProxyId() {\n return proxyId;\n }", "public ProxyInfo getInitialProxyInfo() {\n if (mIpConfiguration != null) {\n return mIpConfiguration.getHttpProxy();\n } else {\n return null;\n }\n }", "@Nullable\n public ProxyInfo getProxyInfo() {\n return mProxyInfo;\n }", "public interface ProxyConnector {\n\n /**\n * Comprueba que se cumplan los requisitos para la conexi&oacute;n con el servicio proxy.\n * @throws IOException Cuando ocurre alg&uacute;n error en la comprobaci&oacute;n.\n */\n void init() throws IOException;\n\n /**\n * Comprueba si el servicio configurado pertenece a un proxy compatible.\n * @return {@code true} si el proxy configurado es compatible, {@code false} en caso contrario.\n * @throws IOException Cuando se produce un error al conectarse al proxy.\n */\n boolean isCompatibleService() throws IOException;\n\n /**\n * Indica si el servicio de Portafirmas correspondiente a este conector requiere un proceso\n * de login previo.\n * @return {@code true} si el servicio requiere login, {@code false} en caso contrario.\n */\n boolean needLogin();\n\n /**\n * Solicita el acceso para el usuario.\n * @return Respuesta a la petici&oacute;n con el token de acceso.\n * @throws Exception Cuando ocurre un error en la comunicaci&oacute;n.\n */\n RequestResult loginRequest() throws Exception;\n\n /**\n * Envia el token de acceso firmado al servidor para validar el acceso del usuario.\n * @param pkcs1 Firma PKCS#1 del token de acceso.\n * @param cert Certificado usado para firmar.\n * @return @code true} si el acceso se completo correctamente, {@code false} en caso contrario.\n * @throws Exception Cuando ocurre un error en la comunicaci&oacute;n.\n */\n boolean tokenValidation(byte[] pkcs1, String cert) throws Exception;\n\n /**\n * Env&aacute;a una solicitud de cierre de sesi&oacute;n.\n * @throws Exception Cuando se produce un error en la comunicaci&oacute;n.\n */\n void logoutRequest() throws Exception;\n\n /**\n * Obtiene la peticiones de firma. Las peticiones devueltas deben cumplir\n * las siguientes condiciones:\n * <ul>\n * <li>Estar en el estado se&ntilde;alado (unresolved, signed o rejected).</li>\n * <li>Que todos los documentos que contiene se tengan que firmar con los\n * formatos de firma indicados (s&oacute;lo si se indica alguno)</li>\n * <li>Que las solicitudes cumplan con los filtros establecidos. Estos\n * filtros tendran la forma: key=value</li>\n * </ul>\n * @param signRequestState Estado de las peticiones que se desean obtener.\n * @param filters\n * Listado de filtros que deben cumplir las peticiones\n * recuperadas. Los filtros soportados son:\n * <ul>\n * <li><b>orderAscDesc:</b> con valor \"asc\" para que sea orden\n * ascendente en la consulta, en cualquier otro caso ser&aacute;\n * descendente</li>\n * <li><b>initDateFilter:</b> fecha de inicio de las peticiones</li>\n * <li><b>endDateFilter:</b> fecha de fin de las peticiones</li>\n * <li><b>orderAttribute:</b> par&aacute;metro para ordenar por\n * una columna de la petici&oacute;n</li>\n * <li><b>searchFilter:</b> busca la cadena introducida en\n * cualquier texto de la petici&oacute;n (asunto, referencia,\n * etc)</li>\n * <li><b>labelFilter:</b> texto con el nombre de una etiqueta.\n * Filtra las peticiones en base a esa etiqueta, ej: \"IMPORTANTE\"\n * </li>\n * <li><b>applicationFilter:</b> texto con el identificador de\n * una aplicaci&oacute;n. Filtra las peticiones en base a la\n * aplicaci&oacute;n, ej: \"SANCIONES\"</li>\n * </ul>\n * @param numPage N&uacute;mero de p&aacute;gina del listado.\n * @param pageSize N&uacute;mero de peticiones por p&aacute;gina.\n * @return Lista de peticiones de firma\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n PartialSignRequestsList getSignRequests(\n String signRequestState, String[] filters, int numPage, int pageSize)\n throws SAXException, IOException;\n\n /** Inicia la pre-firma remota de las peticiones.\n * @param request Petici&oacute;n de firma.\n * @return Prefirmas de las peticiones enviadas.\n * @throws IOException Si ocurre algun error durante el tratamiento de datos.\n * @throws CertificateEncodingException Si no se puede obtener la codificaci&oacute;n del certificado.\n * @throws SAXException Si ocurren errores analizando el XML de respuesta. */\n TriphaseRequest[] preSignRequests(SignRequest request) throws IOException,\n CertificateException,\n SAXException;\n\n /**\n * Inicia la post-firma remota de las peticiones.\n *\n * @param requests\n * Peticiones a post-firmar\n * @return Listado con el resultado de la operaci&oacute;n de firma de cada\n * petici&oacute;n.\n * @throws IOException\n * Si ocurre algun error durante el proceso\n * @throws CertificateEncodingException\n * Cuando el certificado est&aacute; mal codificado.\n * @throws SAXException\n * Si ocurren errores analizando el XML de respuesta\n */\n RequestResult postSignRequests(TriphaseRequest[] requests) throws IOException,\n CertificateEncodingException, SAXException;\n\n /**\n * Obtiene los datos de un documento.\n *\n * @param requestId\n * Identificador de la petici&oacute;n.\n * @return Datos del documento.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestDetail getRequestDetail(String requestId) throws SAXException, IOException;\n\n /**\n * Obtiene el listado de aplicaciones para las que hay peticiones de firma.\n * @return Configuracion de aplicaci&oacute;n.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n AppConfiguration getApplicationList()\n throws SAXException, IOException;\n\n /**\n * Rechaza las peticiones de firma indicadas.\n *\n * @param requestIds\n * Identificadores de las peticiones de firma que se quieren\n * rechazar.\n * @return Resultado de la operacion para cada una de las peticiones de\n * firma.\n * @throws SAXException\n * Si el XML obtenido del servidor no puede analizarse\n * @throws IOException\n * Si ocurre un error de entrada / salida\n */\n RequestResult[] rejectRequests(String[] requestIds,\n String reason) throws SAXException, IOException;\n\n /** Obtiene la previsualizaci&oacute;n de un documento.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewDocument(String documentId,\n String filename,\n String mimetype) throws IOException;\n\n /** Obtiene la previsualizaci&oacute;n de una firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewSign(String documentId,\n String filename) throws IOException;\n\n /** Obtiene la previsualizaci&oacute;n de un informe de firma.\n * @param documentId Identificador del documento.\n * @param filename Nombre del fichero.\n * @param mimetype MIME-Type del documento.\n * @return Datos del documento.\n * @throws IOException Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor. */\n DocumentData getPreviewReport(String documentId,\n String filename, String mimetype) throws IOException;\n\n /**\n * Aprueba peticiones de firma (les da el visto bueno).\n *\n * @param requestIds\n * Identificador de las peticiones.\n * @return Resultado de la operaci&oacute;n.\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n RequestResult[] approveRequests(String[] requestIds) throws SAXException, IOException;\n\n /**\n * Indica si el conector soporta las funciones de notificaci&oacute;n.\n * @return {@code true} si se soportan las notificaciones, {@code false} en caso contrario.\n */\n boolean isNotificationsSupported();\n\n /**\n * Da de alta en el sistema de notificaciones.\n * @param token\n * \t\t\tToken de registro en GCM.\n * @param device\n * \t\t\tIdentificador de dispositivo.\n * @param certB64\n * \t\t\tCertificado en base 64 del usuario.\n * @return Resultado del proceso de alta en el sistema de notificaciones.\n * \t\t\tIndica\n * @throws SAXException\n * Cuando se encuentra un XML mal formado.\n * @throws IOException\n * Cuando existe alg&uacute;n problema en la lectura/escritura\n * de XML o al recuperar la respuesta del servidor.\n */\n NotificationState signOnNotificationService(\n String token, String device, String certB64)\n throws SAXException, IOException;\n\n\n}", "@Override\n\tpublic LotteryTicket getLotteryTicket(int ticketId) {\n\t\tLotteryTicket ticket = null;\n\t\ttry {\n\t\t\tticket = lotteryTicketRepository.findByTicketIdAndIsCancelled(ticketId, false);\n\t\t} catch (Exception exception) {\n\t\t\tLOGGER.error(\"Something went wrong in getLotteryTicket\" + exception);\n\t\t\tthrow new InternalServerError(\"Something went wrong in getting the lottery ticket\");\n\t\t}\n\n\t\t// Check if ticket object is empty\n\t\tif (ticket == null) {\n\t\t\tthrow new InternalServerError(\"This ticket id does not exists\");\n\t\t}\n\n\t\t// Return ticket response\n\t\treturn ticket;\n\t}", "String getHttpProxyHost();", "public boolean isCasProxyTicketRequested(\n PortletRequest request, PortletWindow plutoPortletWindow)\n throws PortletContainerException {\n\n // get the list of requested user attributes\n final HttpServletRequest httpServletRequest =\n this.portalRequestUtils.getPortletHttpRequest(request);\n final IPortletWindow portletWindow =\n this.portletWindowRegistry.convertPortletWindow(\n httpServletRequest, plutoPortletWindow);\n final IPortletEntity portletEntity = portletWindow.getPortletEntity();\n final IPortletDefinition portletDefinition = portletEntity.getPortletDefinition();\n final PortletApplicationDefinition portletApplicationDescriptor =\n this.portletDefinitionRegistry.getParentPortletApplicationDescriptor(\n portletDefinition.getPortletDefinitionId());\n\n // check to see if the proxy ticket key is one of the requested user attributes\n List<? extends UserAttribute> requestedUserAttributes =\n portletApplicationDescriptor.getUserAttributes();\n for (final UserAttribute userAttributeDD : requestedUserAttributes) {\n final String attributeName = userAttributeDD.getName();\n if (attributeName.equals(this.proxyTicketKey)) return true;\n }\n\n // if the proxy ticket key wasn't found in the list of requested attributes\n return false;\n }", "private Object getProxy() throws ExportException{\n if (proxy == null){\n try {\n proxy = AccessController.doPrivileged(new PrivilegedExceptionAction<Object>(){\n\n @Override\n public Object run() throws ExportException {\n return exporter.export(RemoteListener.this);\n }\n\n }, context);\n } catch (PrivilegedActionException ex) {\n throw (ExportException) ex.getException();\n }\n }\n return proxy;\n }", "@Override\n\tpublic Booking_ticket getTicket(String ticketid) {\n\t\treturn null;\n\t}", "public String getProxyPort()\r\n {\r\n return proxyPort;\r\n }", "public java.lang.String getProxyHost()\r\n {\r\n return proxyHost;\r\n }", "public int getProxyPort() {\n return cfg.getProxyPort();\n }", "public Object getProxy() {\n\t\t\r\n\t\treturn getProxy(this.advised.getTargetClass().getClassLoader());\r\n\t}", "public String getHttpProxyHost();", "public int getProxyPort() {\n return proxyPort;\n }", "public int getProxyPort() {\n return proxyPort;\n }", "public Object getProxyUser() {\n return this.proxyUser;\n }", "public PortletSession getPortletSession() {\r\n\t\tif (_preq != null)\r\n\t\t\treturn _preq.getPortletSession();\r\n\t\telse\r\n\t\t\treturn null;\t\t\r\n\t}", "public org.light.portal.portlet.config.Portlet getPortlet(int index)\r\n throws java.lang.IndexOutOfBoundsException\r\n {\r\n //-- check bounds for index\r\n if ((index < 0) || (index >= _portletList.size())) {\r\n throw new IndexOutOfBoundsException(\"getPortlet: Index value '\"+index+\"' not in range [0..\"+(_portletList.size() - 1) + \"]\");\r\n }\r\n \r\n return (org.light.portal.portlet.config.Portlet) _portletList.elementAt(index);\r\n }", "@Override\n\tprotected TicketModel getTicketImpl(RepositoryModel repository, long ticketId) {\n\t\tJedis jedis = pool.getResource();\n\t\tif (jedis == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\ttry {\n\t\t\tList<Change> changes = getJournal(jedis, repository, ticketId);\n\t\t\tif (ArrayUtils.isEmpty(changes)) {\n\t\t\t\tlog.warn(\"Empty journal for {}:{}\", repository, ticketId);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tTicketModel ticket = TicketModel.buildTicket(changes);\n\t\t\tticket.project = repository.projectPath;\n\t\t\tticket.repository = repository.name;\n\t\t\tticket.number = ticketId;\n\t\t\tlog.debug(\"rebuilt ticket {} from Redis @ {}\", ticketId, getUrl());\n\t\t\treturn ticket;\n\t\t} catch (JedisException e) {\n\t\t\tlog.error(\"failed to retrieve ticket from Redis @ \" + getUrl(), e);\n\t\t\tpool.returnBrokenResource(jedis);\n\t\t\tjedis = null;\n\t\t} finally {\n\t\t\tif (jedis != null) {\n\t\t\t\tpool.returnResource(jedis);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public synchronized String getProxyID() {\n \n return this.id;\n }", "public Ticket getTicket() {\n return ticket;\n }", "public java.lang.String getProxyName()\r\n {\r\n return proxyName;\r\n }", "@Override\n public @NotNull Optional<ProxyInformation> getProxyInformation() {\n return Optional.empty();\n }", "public synchronized String getProxyPort() {\n \n return this.port;\n }", "public synchronized ServiceProxy lookup(String serviceId, String version, TransportType transport) {\n \tServiceProxy serviceProxy = lookup(null, version, serviceId, getOperation(), transport); \n \treturn serviceProxy;\n\t}", "public phonecallTicket getTicket(){\n return currentticket;\n }", "public Proxy getProxy(){\n mode = COMMAND_MODE;\n pack();\n show();\n return proxy;\n }", "public String getProxyHost() {\n return cfg.getProxyHost();\n }", "public String getProxyPort() {\n return proxyPort;\n }", "public String getProxyServer() {\n return proxyServer;\n }", "public MyProxyLogon() {\n super();\n host = System.getenv(\"MYPROXY_SERVER\");\n if (host == null) {\n host = \"myproxy.teragrid.org\";\n }\n String portString = System.getenv(\"MYPROXY_SERVER_PORT\");\n if (portString != null) {\n port = Integer.parseInt(portString);\n }\n username = System.getProperty(\"user.name\");\n }", "public String getProxyId() {\n\t\t\treturn proxy_Id;\n\t\t}", "public Credentials getCredentials(final AuthScheme scheme, final String host, final int port, final boolean proxy)\n throws CredentialsNotAvailableException {\n\n // It's the responsibility of the CredentialProvider to answer only once with a\n // given Credentials to avoid infinite loop if it is incorrect:\n // see http://issues.apache.org/bugzilla/show_bug.cgi?id=8140\n if (alreadyAnswered(scheme, host, port, proxy)) {\n LOG.debug(\"Already answered for \" + buildKey(scheme, host, port, proxy) + \", returning null\");\n return null;\n }\n\n final Map<AuthScopeProxy, Credentials> credentials;\n if (proxy) {\n credentials = proxyCredentials_;\n }\n else {\n credentials = credentials_;\n }\n\n for (final Map.Entry<AuthScopeProxy, Credentials> entry : credentials.entrySet()) {\n final AuthScope scope = entry.getKey().getAuthScope();\n final Credentials c = entry.getValue();\n if (matchScheme(scope, scheme) && matchHost(scope, host)\n && matchPort(scope, port) && matchRealm(scope, scheme)) {\n markAsAnswered(scheme, host, port, proxy);\n LOG.debug(\"Returning \" + c + \" for \" + buildKey(scheme, host, port, proxy));\n return c;\n }\n }\n\n LOG.debug(\"No credential found for \" + buildKey(scheme, host, port, proxy));\n return null;\n }", "public PortletContext getPortletContext ()\n {\n \treturn config.getPortletContext();\n }", "public String getTicket_url() {\r\n\t\treturn ticket_url;\r\n\t}", "public synchronized ServiceProxy lookup(String serviceId, String version) {\n \tServiceProxy serviceProxy = lookup(null, version, serviceId, getOperation(), (TransportType) null); \n \treturn serviceProxy;\n\t}", "public java.lang.Object getTicketID() {\n return ticketID;\n }", "public Ticket getCurrentTicket(){return this.currentTicket;}", "public final String getProxyHost() {\n return properties.get(PROXY_HOST_PROPERTY);\n }", "public final String getProxyHost() {\n return properties.get(PROXY_HOST_PROPERTY);\n }", "public String getProxyHost() {\n return proxyHost;\n }", "protected final ActionProxy getProxy(String action,String [] params){\n \tsetUpRequestTestParams(params);\n\t\tActionProxy actionProxy = getActionProxy(action);\n\t\tassertNotNull(\"Action proxy shouldn't be null\", actionProxy);\n\t\tactionProxy.setExecuteResult(false);\n\t\treturn actionProxy;\t \t\n }", "protected static String getProxyUsername() {\n if (\"?\".equals(proxyUsername)) {\n Console console = System.console();\n if (console != null) {\n proxyUsername = console.readLine(\"Proxy username:\");\n } else {\n throw new UnsupportedOperationException(\n \"Proxy username must be specified\");\n }\n }\n return proxyUsername;\n }", "public final String getProxyPort() {\n return properties.get(PROXY_PORT_PROPERTY);\n }", "public Proxy getProxy(Proxy p){\n if(p != null){\n doInit(p);\n }\n mode = COMMAND_MODE;\n pack();\n show();\n return proxy;\n }", "public Ticket getTicketById(int id) {\r\n\t\tfor (Iterator<Ticket> iter = ticketList.iterator(); iter.hasNext(); ) {\r\n\t\t\tTicket ticket = iter.next();\r\n\t\t\tif (ticket.getTicketId() == id) {\r\n\t\t\t\treturn ticket;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t\t\r\n\t}", "private void httpProxyConnect(String host, int port) throws IOException {\n // connect to the proxy\n // _proxyPort validated in superconstrutor, no need to set default here\n if (_fetchHeaderTimeout > 0) {\n _proxy = new Socket();\n _proxy.setSoTimeout(_fetchHeaderTimeout);\n _proxy.connect(new InetSocketAddress(_proxyHost, _proxyPort), _fetchHeaderTimeout);\n } else {\n _proxy = new Socket(_proxyHost, _proxyPort);\n }\n httpProxyConnect(_proxy, host, port);\n }", "public LoginInfoClientProxy(URL proxyURL) {\n this.proxyURL = proxyURL;\n }", "public interface IProxySettings\n{\n /**\n * @return The proxy type to be used. May not be <code>null</code>.\n */\n @Nonnull\n Proxy.Type getProxyType ();\n\n /**\n * @return The proxy host name of IP address. May be <code>null</code> if\n * proxy type is DIRECT.\n */\n @Nullable\n String getProxyHost ();\n\n /**\n * @return The proxy port for this HTTP proxy type. Should be &gt; 0. May be\n * &le; 0 if the proxy type is DIRECT.\n */\n int getProxyPort ();\n\n /**\n * @return The proxy user name. May be <code>null</code>.\n */\n @Nullable\n String getProxyUserName ();\n\n default boolean hasProxyUserName ()\n {\n return StringHelper.hasText (getProxyUserName ());\n }\n\n /**\n * @return The proxy password for the provided user. May be <code>null</code>.\n * Note: an empty password may be valid. Only <code>null</code>\n * indicates \"no password\".\n */\n @Nullable\n String getProxyPassword ();\n\n default boolean hasProxyPassword ()\n {\n return getProxyPassword () != null;\n }\n\n /**\n * Check if hostname and port match the ones from the provided\n * {@link InetSocketAddress}.\n *\n * @param aAddr\n * The address to compare with. May be <code>null</code>.\n * @return <code>true</code> if the unresolved hostname and the port match.\n */\n default boolean hasInetSocketAddress (@Nullable final InetSocketAddress aAddr)\n {\n return aAddr != null && EqualsHelper.equals (aAddr.getHostString (), getProxyHost ()) && getProxyPort () == aAddr.getPort ();\n }\n\n /**\n * Check if these settings have the provided socket address.\n *\n * @param aAddr\n * The socket address to compare to. May be <code>null</code>.\n * @return <code>true</code> if the proxy type is DIRECT and the address is\n * <code>null</code>, or if the object is of type\n * {@link InetSocketAddress} and the values match.\n * @see #hasInetSocketAddress(InetSocketAddress)\n */\n boolean hasSocketAddress (@Nullable SocketAddress aAddr);\n\n /**\n * @return A non-<code>null</code> {@link Proxy} instance. Only uses proxy\n * host and port.\n * @see #getProxyHost()\n * @see #getProxyPort()\n */\n @Nonnull\n default Proxy getAsProxy ()\n {\n return getAsProxy (true);\n }\n\n /**\n * @param bResolveHostname\n * <code>true</code> to resolve host names (needed in production) or\n * <code>false</code> to not resolve them (mainly for testing\n * purposes). This flag has no impact if the proxy type is DIRECT.\n * @return A non-<code>null</code> {@link Proxy} instance. Only uses proxy\n * host and port.\n * @see #getProxyHost()\n * @see #getProxyPort()\n */\n @Nonnull\n Proxy getAsProxy (boolean bResolveHostname);\n\n /**\n * @return The {@link PasswordAuthentication} instances matching the\n * credentials contained in this object or <code>null</code> if no\n * username is present.\n */\n @Nullable\n default PasswordAuthentication getAsPasswordAuthentication ()\n {\n // If no user name is set, no Authenticator needs to be created\n if (!hasProxyUserName ())\n return null;\n\n final String sProxyPassword = getProxyPassword ();\n // Constructor does not take null password!\n return new PasswordAuthentication (getProxyUserName (),\n sProxyPassword == null ? ArrayHelper.EMPTY_CHAR_ARRAY : sProxyPassword.toCharArray ());\n }\n}", "public int getTicketId() {\r\n return ticketId;\r\n }", "public boolean isProxyEnabled() {\n return isProxyEnabled;\n }", "public int getLuckyTicket() {\n return luckyTicket_;\n }", "public int getTicketId() {\n return ticketId;\n }", "protected static String getProxyPassphrase() {\n if (\"?\".equals(proxyPassphrase)) {\n Console console = System.console();\n if (console != null) {\n proxyPassphrase = new String(console.readPassword(\"Proxy password:\"));\n } else {\n throw new UnsupportedOperationException(\n \"Proxy password must be specified\");\n }\n }\n return proxyPassphrase;\n }", "private JiraManagementService getJiraManagementServicePort() throws JiraManagerException {\r\n try {\r\n return serviceClient.getJiraManagementServicePort();\r\n } catch (WebServiceException e) {\r\n Util.logError(log, e);\r\n throw new JiraManagerException(\"Unable to create JiraManagementService proxy.\", e);\r\n }\r\n }", "String getHttpProxyUsername();", "@Nonnull\n public Proxy.Type getProxyType() {\n return proxyType;\n }", "private static synchronized long nextProxyId() {\n return _proxyId++;\n }", "String getHttpProxyPassword();", "public int getticketId() {\n \treturn ticketId;\n }", "public int getLuckyTicket() {\n return luckyTicket_;\n }", "@GetMapping(value=\"/ticket/{ticketId}\")\n\tpublic Ticket getTicketById(@PathVariable(\"ticketId\") Integer ticketId){\n\t\treturn ticketBookingService.getTicket(ticketId);\n\t}", "public Ticket getTicket(String id);", "public UserTicket getUserTicket() {\n return FxJsfUtils.getRequest().getUserTicket();\n }", "public String getTicketId() {\n String ticketId = getParameter(CosmoDavConstants.PARAM_TICKET);\n if (ticketId == null) {\n ticketId = getHeader(CosmoDavConstants.HEADER_TICKET);\n }\n return ticketId;\n }", "public Tunnel getTunnel();", "public String getProxyPassword() {\n return proxyPassword;\n }", "@Bean(name=\"ticketService\")\n public TicketService getTicketService() {\n int rowNum = Integer.valueOf(env.getProperty(\"rowNum\"));\n int columnNum = Integer.valueOf(env.getProperty(\"columnNum\"));\n TicketService ticketService = new TicketServiceImpl(rowNum, columnNum);\n return ticketService;\n }", "public static ProxyInfo getProxyInfo( Settings settings )\n {\n ProxyInfo proxyInfo = null;\n if ( settings != null && settings.getActiveProxy() != null )\n {\n Proxy settingsProxy = settings.getActiveProxy();\n\n proxyInfo = new ProxyInfo();\n proxyInfo.setHost( settingsProxy.getHost() );\n proxyInfo.setType( settingsProxy.getProtocol() );\n proxyInfo.setPort( settingsProxy.getPort() );\n proxyInfo.setNonProxyHosts( settingsProxy.getNonProxyHosts() );\n proxyInfo.setUserName( settingsProxy.getUsername() );\n proxyInfo.setPassword( settingsProxy.getPassword() );\n }\n\n return proxyInfo;\n }", "public proxyt(int tpport) {\n\t\tproxyt.tpport = tpport;\n\t}", "public int openProxyService() {\n\t\treturn 0;\n\t}", "public void setProxyId(Long proxyId) {\n this.proxyId = proxyId;\n }", "public final GetHTTP setProxyPort(final String proxyPort) {\n properties.put(PROXY_PORT_PROPERTY, proxyPort);\n return this;\n }", "public void setHttpProxyPort(int port);", "public String getProxyPassword() {\n return cfg.getProxyPassword();\n }", "public synchronized String getProxyAddress() {\n \n return this.address;\n }", "public static void detectProxy() {\n ProxySearch pSearch = ProxySearch.getDefaultProxySearch();\n /* It's possible to configure components to scan. For example, according\n * to detected OS, we will change research parameters\n */\n final String osName = System.getProperty(\"os.name\").toLowerCase();\n System.out.println(osName);\n if (osName.startsWith(\"windows\")) {\n pSearch.addStrategy(ProxySearch.Strategy.IE);\n pSearch.addStrategy(ProxySearch.Strategy.WIN);\n /* -------------------------------------------- */\n pSearch.addStrategy(ProxySearch.Strategy.JAVA);\n pSearch.addStrategy(ProxySearch.Strategy.BROWSER);\n } else if (osName.startsWith(\"linux\")) {\n pSearch.addStrategy(ProxySearch.Strategy.GNOME);\n pSearch.addStrategy(ProxySearch.Strategy.KDE);\n pSearch.addStrategy(ProxySearch.Strategy.FIREFOX);\n } else {\n pSearch.addStrategy(ProxySearch.Strategy.OS_DEFAULT);\n }\n\n // For proxy-vole to be effective, it must be registered to the JVM\n ProxySelector.setDefault(pSearch.getProxySelector());\n }", "public ProxySelector proxySelector() {\n return proxySelector;\n }", "@Override\r\n public TicketDAO getTicketDAO() {\n return new MySQLTicketDAO();\r\n }", "private void createProxyConnection() throws ClusterDataAdminException {\n ClusterMBeanDataAccess clusterMBeanDataAccess = ClusterAdminComponentManager.getInstance().getClusterMBeanDataAccess();\n try{\n failureDetectorMBean= clusterMBeanDataAccess.locateFailureDetectorMBean();\n }\n catch(Exception e){\n throw new ClusterDataAdminException(\"Unable to locate failure detector MBean connection\",e,log);\n }\n }", "protected ConnectionProxy getConnectionProxy() throws ServiceException {\n ConnectionProxy connection;\n\n try {\n connection = ConnectionPool.getInstance().getConnection();\n } catch (ConnectionPoolException e) {\n throw new ServiceException(\"Exception while trying to get connection in service\", e);\n }\n\n return connection;\n }", "final boolean detectProxyServer()\r\n {\r\n DataInputStream dis=null;\r\n\tString url=\"\";\r\n\r\n\t// Allow for non-Demon Home page\r\n\tif(app.server==null)\r\n\t{\r\n\t if(app.indexName==null)\r\n\t url=\"http://www.\"+hostName+\"/index.html\";\r\n else url=\"http://www.\"+hostName+\"/\";\r\n\t}\r\n\telse\r\n\t{\r\n\t if(app.indexName==null)\r\n\t url=app.server+\"index.html\";\r\n\t else url=app.server+app.indexName; \t\r\n\t}\r\n\t//Attempt to connect to this url\r\n\ttry\r\n\t{\r\n\t URL doc=new URL(url);\r\n\t dis=new DataInputStream(doc.openStream());\r\n\t}\r\n\tcatch(Exception e)\r\n\t{\r\n\t // Unable to connect. This may be an incorrect applet parameter. Let's assume though it's a \r\n\t // proxy server that's stopping use using the hostname.\r\n\t return true;\r\n\t}\r\n\treturn false;\r\n }" ]
[ "0.6311657", "0.61978", "0.59408975", "0.58078355", "0.56660926", "0.5578685", "0.5439827", "0.53984666", "0.537443", "0.5334752", "0.52845216", "0.52123904", "0.5195794", "0.51857674", "0.51738685", "0.5172538", "0.517166", "0.5144776", "0.5139075", "0.5126262", "0.5113405", "0.5097775", "0.506569", "0.50378436", "0.50340647", "0.5033032", "0.5031637", "0.50288945", "0.5016041", "0.50143737", "0.500899", "0.4982033", "0.4982033", "0.49632558", "0.495358", "0.49423337", "0.49367437", "0.49329093", "0.49237755", "0.49013025", "0.48886392", "0.48844132", "0.48834193", "0.4870295", "0.48600462", "0.48459512", "0.48438552", "0.48428237", "0.48360407", "0.48310888", "0.48096934", "0.4809462", "0.48002365", "0.48000598", "0.47984952", "0.4796143", "0.47928253", "0.47928253", "0.47795743", "0.4768211", "0.4754814", "0.4732964", "0.47305256", "0.47182122", "0.4717387", "0.4716186", "0.47077805", "0.47059035", "0.4698525", "0.4691949", "0.46912426", "0.4685445", "0.4682393", "0.46745354", "0.46681148", "0.46643636", "0.4653316", "0.46453935", "0.4644678", "0.4637729", "0.463662", "0.46352518", "0.46282062", "0.46272793", "0.46139306", "0.46110716", "0.46103624", "0.4609073", "0.4608781", "0.4603165", "0.45979363", "0.45978695", "0.45936903", "0.45877525", "0.4584425", "0.4582313", "0.45786175", "0.4578031", "0.45767763", "0.45684433" ]
0.7668239
0
Looks for a security context
@SuppressWarnings("unchecked") private static ISecurityContext getCasContext(ISecurityContext context) { if (context instanceof ICasSecurityContext) { return context; } Enumeration contextEnum = context.getSubContexts(); while (contextEnum.hasMoreElements()) { ISecurityContext subContext = (ISecurityContext) contextEnum.nextElement(); if (subContext instanceof ICasSecurityContext) { return subContext; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SecurityContext getSecurityContext();", "public abstract I_Authenticate getSecurityCtx();", "static SecurityContext getSecurityContext() {\n if (System.getSecurityManager() != null) {\n return AccessController.doPrivileged(new PrivilegedAction<SecurityContext>() {\n public SecurityContext run() {\n return SecurityContextAssociation.getSecurityContext();\n }\n });\n } else {\n return SecurityContextAssociation.getSecurityContext();\n }\n }", "public interface SecurityContext {\n\n}", "public interface ISecurityContext\n{\n /**\n * Retrieves the Context String\n * @return String\n */\n public String getContextString();\n}", "@Path(\"app\")\n @GET\n @View(\"hello.jsp\")\n public void sayHello(@Context SecurityContext securityContext) {\n\n logger.info(\"AdminRole :: \" + securityContext.isUserInRole(\"AdminRole\"));\n logger.info(\"admin :: \" + securityContext.isUserInRole(\"admin\"));\n logger.info(\"INFO :: \" + securityContext.isSecure());\n\n }", "@Test\n public void testGetSecurityContext() {\n System.out.println(\"getSecurityContext\");\n SpineSecurityContext result = instance.getSecurityContext();\n assertNotNull(result);\n }", "public SecuritySource getSecuritySource() {\n return (SecuritySource) get(SECURITY_SOURCE_NAME);\n }", "public Security getSecurity()\n {\n return __m_Security;\n }", "public UserContext getUserContext();", "SecurityProfile securityProfile();", "boolean hasContext();", "boolean hasContext();", "@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n String authorizationHeader =\n requestContext.getHeaderString(HttpHeaders.AUTHORIZATION);\n\n // Validate the Authorization header\n if (!isTokenBasedAuthentication(authorizationHeader)) {\n abortWithUnauthorized(requestContext);\n return;\n }\n\n // Extract the token from the Authorization header\n String token = authorizationHeader\n .substring(AUTHENTICATION_SCHEME.length()).trim();\n\n try {\n // Check if the token is valid\n validateToken(token);\n\n //extract the data you need\n String username = Jwts.parser().setSigningKey(keyGenerator.getKey()).parseClaimsJws(token).getBody().getIssuer();\n if (username!=null) {\n final SecurityContext securityContext = requestContext.getSecurityContext();\n requestContext.setSecurityContext(new SecurityContext() {\n @Override\n public Principal getUserPrincipal() {\n return new Principal() {\n @Override\n public String getName() {\n return username;\n }\n };\n }\n @Override\n public boolean isUserInRole(String permission) {\n\n List<RoleEntity> roleEntities = userDao.getUserByUsername(username).getRoleEntityList();\n List<PermissionEntity> permissionEntities = new ArrayList<>();\n\n //creating the list containg all the permissionsAllowed\n for (RoleEntity r : roleEntities) {\n for (PermissionEntity p : r.getPermissionEntityList()) {\n if (!permissionEntities.contains(p)) {\n permissionEntities.add(p);\n }\n }\n\n }\n\n List<String> permissionStrings = new ArrayList<>();\n\n //getting all the types (description and id are not important)\n for (PermissionEntity p : permissionEntities) {\n permissionStrings.add(p.getType());\n }\n\n //returns true if the list contains the permission given as parameter\n for (String p : permissionStrings) {\n if (p.equals(permission)) {\n return true;\n }\n }\n return false;\n }\n @Override\n public boolean isSecure() {\n return true;\n }\n @Override\n public String getAuthenticationScheme() {\n return AUTHENTICATION_SCHEME;\n }\n });\n }\n //getting value from annotation\n Method resourceMethod = resourceInfo.getResourceMethod();\n Secured secured = resourceMethod.getAnnotation(Secured.class);\n if (secured != null){\n List<String> permissionStrings = new ArrayList<>();\n for (SecurityPermission s : secured.permissionsAllowed()) {\n permissionStrings.add(s.getText());\n }\n\n //performing authorization\n if (permissionStrings.size() > 0 && !isAuthenticated(requestContext)) {\n refuseRequest();\n }\n\n for (String role : permissionStrings) {\n if (requestContext.getSecurityContext().isUserInRole(role)) {\n return;\n }\n else {\n throw new AuthentificationException(ExceptionMessageCatalog.NOT_ALLOWED);\n }\n }\n\n refuseRequest();\n }\n } catch (AuthentificationException e) {\n abortWithUnauthorized(requestContext);\n }\n }", "CTX_Context getContext();", "private void processSecurity(SecurityContext securityContext, ServerRequest req, ServerResponse res) {\n SecurityTracing tracing = SecurityTracing.get();\n tracing.securityContext(securityContext);\n\n // extract headers\n extractQueryParams(securityContext, req);\n\n securityContext.endpointConfig(securityContext.endpointConfig()\n .derive()\n .configMap(configMap)\n .customObjects(customObjects.orElse(new ClassToInstanceStore<>()))\n .build());\n\n try {\n AtxResult atnResult = processAuthentication(res, securityContext, tracing.atnTracing());\n\n AtxResult atzResult;\n if (atnResult.proceed) {\n atzResult = processAuthorization(req, res, securityContext, tracing.atzTracing());\n } else {\n atzResult = AtxResult.STOP;\n }\n\n if (atzResult.proceed) {\n // authorization was OK, we can continue processing\n tracing.logProceed();\n tracing.finish();\n\n // propagate context information in call to next\n res.next();\n } else {\n tracing.logDeny();\n tracing.finish();\n }\n } catch (Exception e) {\n tracing.error(e);\n LOGGER.log(Level.SEVERE, \"Unexpected exception during security processing\", e);\n abortRequest(res, null, Http.Status.INTERNAL_SERVER_ERROR_500.code(), Map.of());\n }\n\n // auditing\n res.whenSent(() -> processAudit(req, res, securityContext));\n }", "private MMIContext findContext(final Session session) {\n final String sessionId = session.getSessionID();\n synchronized (contexts) {\n for (String contextId : contexts.keySet()) {\n final MMIContext context = contexts.get(contextId);\n final Session other = context.getSession();\n if (other != null) {\n final String otherSessionId = other.getSessionID();\n if (otherSessionId.equals(sessionId)) {\n return context;\n }\n }\n }\n }\n return null;\n }", "Context getContext();", "@Path(\"admin_area\")\n @GET\n @View(\"admin_page.jsp\")\n @RolesAllowed(\"admin\")\n public void sayRole(@Context SecurityContext securityContext) {\n\n logger.info(\"AdminRole :: \" + securityContext.isUserInRole(\"AdminRole\"));\n logger.info(\"admin :: \" + securityContext.isUserInRole(\"admin\"));\n logger.info(\"INFO :: \" + securityContext.isSecure());\n\n }", "SecurityScope createSecurityScope();", "private AuthenticationContext getAuthenticationContext(String sessionID) {\n AuthenticationContextCacheKey cacheKey = new AuthenticationContextCacheKey(sessionID);\n Object cacheEntryObj = AuthenticationContextCache.getInstance().getValueFromCache(cacheKey);\n return ((AuthenticationContextCacheEntry) cacheEntryObj).getContext();\n }", "public Boolean hasSecurity() {\n return this.hasSecurity;\n }", "public Integer getSecurity() {\n return security;\n }", "boolean isSecureAccess();", "public boolean isSecureServiceRequest(HttpServletRequest req) {\n String requestURI = req.getRequestURI();\n String serviceName = requestURI.substring(requestURI.lastIndexOf(\"/\") + 1);\n serviceName = requestURI.substring(requestURI.lastIndexOf(\"/\") + 1);\n TBXService service = null;\n try {\n service = serviceManager.getService(serviceName);\n if (service == null) {\n String errorMsg = \"Unknown service: \" + serviceName;\n logger.error(errorMsg);\n return false;\n }\n } catch (ToolboxException ex) {\n return false;\n }\n return service.isWSSecurity();\n }", "@Override\n public SecurityInfo getInfo() {\n return info;\n }", "public static String getContext(HttpServletRequest request) {\n\t\tString context = request.getParameter(CONTEXT_KEY);\n\t\tif (context == null && Server.getInstance().getAllKnownInternalContexts().size() == 1) {\n\t\t\tcontext = (String) Server.getInstance().getAllKnownInternalContexts().toArray()[0];//req.getContextPath();\n\t\t}\n\t\t// If no or invalid context, display a list of available WebApps\n\t\tif (context == null || Server.getInstance().getApplication(context) == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn context;\n\t\t}\n\t}", "void enableSecurity();", "public abstract boolean authenticate(ServiceSecurity serviceSecurity, SecurityContext securityContext);", "Optional<TXContext> findCurrent();", "public interface SecurityService\r\n{\r\n\t/**\r\n\t * This method return true if the given 'securityToken' is a valid token for the given security service. The security service can be any service\r\n\t * such as OAuth, LDAP, ActiveDirectory, OpenID etc. It is up to the implementor of this interface to interact with the appropriate security\r\n\t * service to determine if the given securityToken is valid. Reasons for a token to not be valid include but are not limited to, expired tokens, \r\n\t * incorrect tokens, not authenticated tokens etc.<br/>\r\n\t * This method will be used by the provider in a DIRECT environment to authenticate/validate a consumer.\r\n\t * \r\n\t * @param securityToken The token that shall be validated against a given security service such as LDAP, OAuth, Active Directory, etc.\r\n\t * @param requestMetadata Metadata that has been sourced from a request. The environmentID property is always null because the token is\r\n * not yet authenticated and therefore the environment is not yet determined. \r\n\t * \r\n\t * @return TRUE if the token is known and valid to the security server and not expired. If a token is expired then FALSE should be returned.\r\n\t */\r\n\tpublic boolean validate(String securityToken, RequestMetadata requestMetadata);\r\n\r\n\t/**\r\n\t * This method may contact the security server which can be an OAuth server, and LDAP server a Active Directory etc. In return it will provide \r\n\t * information that relate to the securityToken such as: <br/>\r\n\t * a) Information about the application and/or user of that securityToken (appUserInfo property populated in the TokenInfo) or<br/>\r\n\t * b) Information about the SIF environment or SIF session the securityToken relates to. This would be the case for already existing SIF\r\n\t * Environments.<br/>\r\n\t * Further an expire date might be set for the securityToken if the token has expired. If the securityToken does not expire then the \r\n\t * expire date is null in the returned TokenInfo object.<br/>\r\n * This method will be used by the provider in a DIRECT environment to get information about a consumer's security token.\r\n\t * \r\n\t * @param securityToken The security token for which the TokenInfo shall be returned.\r\n\t * @param requestMetadata Metadata that has been sourced from a request. The environmentID property is always null because the token is\r\n * not yet authenticated and therefore the environment is not yet determined. \r\n\t * \r\n\t * @return See Desc. It is expected that this method only returns either the environmentKey or the SIF environment ID or the SIF session token but\r\n\t * not all of these at the same time.\r\n\t */\r\n\tpublic TokenInfo getInfo(String securityToken, RequestMetadata requestMetadata);\r\n\t\r\n\t/**\r\n\t * This method may contact the security server which can be an OAuth server, and LDAP server a Active Directory etc. to generate a \r\n\t * security token based on the given 'coreInfo'. It is expected that any consumer or a provider in a BROKERED environment calls this \r\n\t * method to retrieve a security token which it will use as the authorisation token in all SIF requests to a provider or broker.\r\n\t * \r\n\t * @param coreInfo Information about the consumer/provider that might be used to generate a security token by the external security service.\r\n\t * In most cases it would at least need the application key.\r\n\t * @param password It is very likely that some sort of password will be required to generate a security token.\r\n\t * \r\n\t * @return A TokenInfo object which will have the 'token' property set (the security token). Optional the 'tokenExpiryDate' may be set\r\n\t * if the token has an expire date. If the 'tokenExpiryDate' is null it is assumed that the returned security token won't expire.\r\n\t * The returned token should only be a token without any authentication method as a prefix. For example the token may be\r\n\t * \"ZjI2NThiNTktNDM1Yi00YThkLTlmNzYtYzI0MDBiNjY1NWMxOlBhc3N3b3JkMQ\". It should not hold the authentication method such as 'Bearer'\r\n\t * (i.e. not look like this: \"Bearer ZjI2NThiNTktNDM1Yi00YThkLTlmNzYtYzI0MDBiNjY1NWMxOlBhc3N3b3JkMQ\"). The SIF3 Framework will\r\n\t * manage the authentication method.\r\n\t */\r\n\tpublic TokenInfo createToken(TokenCoreInfo coreInfo, String password);\r\n}", "@DOMSupport(DomLevel.ONE)\r\n @Property String getSecurity();", "private int isContextValid(AuthContext context){\n if(context.isValid())\n return context.getRole();\n\n try {\n List<Map<String,Object>> data = get(\"SELECT Accounts.ROLE_ID \" +\n \"FROM Accounts INNER JOIN Sessions ON Accounts.ID = Sessions.ID \" +\n \"WHERE (((Sessions.ID)= ? ) AND ((Sessions.SESSION_TOKEN)= ? ))\", context.id, context.sessionToken);\n int role = data.size() == 0 ? -1 : (Integer) data.get(0).get(\"ROLE_ID\");\n context.setRole(role);\n return role;\n } catch (SQLException e) {\n return -1;\n }\n }", "@Override\n public boolean containsContext(HttpServletRequest request) {\n return false;\n }", "@Override\n\t\tpublic SecurityDirector getSecurity() {\n\t\t\treturn null;\n\t\t}", "String getSecId();", "public abstract boolean checkRolesAllowed(ServiceSecurity serviceSecurity, SecurityContext securityContext);", "Context context();", "Context context();", "boolean hasSecId();", "public void setSecurityContext() {\n ctx = SecurityContextHolder.getContext();\n SecurityContextHolder.getContext();\n final Authentication authentication = ctx.getAuthentication();\n setName(authentication.getName()); //NOPMD\n }", "public static String getSrwContext() {\r\n if (srwContext == null) {\r\n srwContext = PropertiesProvider.getInstance().getProperty(\"srw.context\", \"/srw\");\r\n }\r\n return srwContext;\r\n }", "List<SecuritySchemeRef> securedBy();", "private PrivilegedLSAFactory retrieveLSAFactoryService(\n\t\t\tfinal BundleContext context) {\n\t\tlsaFactoryRef = context.getServiceReference(PrivilegedLSAFactory.class);\n\t\tif (lsaFactoryRef == null) {\n\t\t\tthrow new IllegalStateException(\"Cannot retrieve a reference to \"\n\t\t\t\t\t+ \"PrivilegedLSAFactory service.\");\n\t\t}\n\n\t\tif (lsaFactoryRef != null) {\n\t\t\tlog(\"LSA Factory ACQUIRED\");\n\t\t}\n\n\t\treturn context.getService(lsaFactoryRef);\n\t}", "public interface SipContext extends Context {\n\n\tpublic static final String APPLICATION_SIP_XML = \"WEB-INF/sip.xml\";\n\t\n\tpublic static final String LOAD_BALANCER = \"org.mobicents.servlet.sip.LoadBalancer\";\t\n\t\n\tString getApplicationName();\n\tString getApplicationNameHashed();\n\n\tboolean hasDistributableManager();\n\t\n\tvoid setApplicationName(String applicationName);\n\n\tString getDescription();\n\t\n\tvoid setDescription(String description);\n\t\n\tString getLargeIcon();\n\n\tvoid setLargeIcon(String largeIcon);\n\n\tSipListenersHolder getListeners();\n\n\tvoid setListeners(SipListenersHolder listeners);\n\n\tboolean isMainServlet();\n\t\n\tString getMainServlet();\n\n\tvoid setMainServlet(String mainServlet);\n\t\n\tvoid setServletHandler(String servletHandler);\n\tString getServletHandler();\n\n\tint getProxyTimeout();\n\t\n\tvoid setProxyTimeout(int proxyTimeout);\n\t\n\tint getSipApplicationSessionTimeout();\n\t\n\tvoid setSipApplicationSessionTimeout(int proxyTimeout);\n\n\tvoid addConstraint(org.apache.catalina.deploy.SecurityConstraint securityConstraint);\n\t\n\tvoid removeConstraint(org.apache.catalina.deploy.SecurityConstraint securityConstraint);\n\t\n\tString getSmallIcon();\n\n\tvoid setSmallIcon(String smallIcon);\n\n\tvoid addSipApplicationListener(String listener);\n\t\n\tvoid removeSipApplicationListener(String listener);\n\t\n\tString[] findSipApplicationListeners();\n\t\n\tMethod getSipApplicationKeyMethod();\n\t\n\tvoid setSipApplicationKeyMethod(Method sipApplicationKeyMethod);\n\t\n\tvoid setSipLoginConfig(SipLoginConfig config);\n\t\n\tSipLoginConfig getSipLoginConfig();\n\t\n\tvoid addSipServletMapping(SipServletMapping sipServletMapping);\n\t\n\tvoid removeSipServletMapping(SipServletMapping sipServletMapping);\n\t\n\tList<SipServletMapping> findSipServletMappings();\n\t\n\tSipServletMapping findSipServletMappings(SipServletRequest sipServletRequest);\n\t\n\tMap<String, Container> getChildrenMap();\n\tpublic Container findChildrenByName(String name);\t\n\tContainer findChildrenByClassName(String className);\n\t\n\tvoid addChild(SipServletImpl child);\n\t\n\tvoid removeChild(SipServletImpl child);\n\t\n\tSipManager getSipManager();\n\t\n\tSipApplicationDispatcher getSipApplicationDispatcher();\n\n//\tAnnotationProcessor getAnnotationProcessor();\n\t\n//\tInstanceManager getInstanceManager();\n\n\tSipInstanceManager getSipInstanceManager();\n\t\n\tString getEngineName();\n\n\tString getBasePath();\n\t\n\tboolean notifySipContextListeners(SipContextEvent event);\n\t\n//\tvoid enterSipApp(SipServletRequestImpl request, SipServletResponseImpl response);\n//\tvoid exitSipApp(SipServletRequestImpl request, SipServletResponseImpl response);\n\t\n\tvoid enterSipApp(MobicentsSipApplicationSession sipApplicationSession, MobicentsSipSession sipSession);\n\tvoid exitSipApp(MobicentsSipApplicationSession sipApplicationSession, MobicentsSipSession sipSession);\n\t\n//\tvoid enterSipAppHa(MobicentsSipApplicationSession sipApplicationSession, boolean startCacheActivity, boolean bindSessions);\n\tvoid enterSipAppHa(boolean startCacheActivity);\n//\tvoid enterSipAppHa(SipServletRequestImpl request, SipServletResponseImpl response, boolean startCacheActivity, boolean bindSessions);\n\tvoid exitSipAppHa(SipServletRequestImpl request, SipServletResponseImpl response);\n\t\n\tSipFactoryFacade getSipFactoryFacade();\n\t\n\tSipSessionsUtilImpl getSipSessionsUtil();\n\t\n\tTimerService getTimerService();\t\n\tProxyTimerService getProxyTimerService();\n\tSipApplicationSessionTimerService getSipApplicationSessionTimerService();\n\n\tvoid setConcurrencyControlMode(ConcurrencyControlMode mode);\n\tConcurrencyControlMode getConcurrencyControlMode();\n\n\tvoid setSipRubyController(SipRubyController rubyController);\n\tSipRubyController getSipRubyController();\n}", "public boolean canGetCurrent (CallContext context);", "public abstract boolean addRunAs(ServiceSecurity serviceSecurity, SecurityContext securityContext);", "boolean hasSecIdType();", "public Permissions[] getPermissionsNeeded(ContainerRequestContext context) throws Exception {\n Secured auth = resourceInfo.getResourceMethod().getAnnotation(Secured.class);\n\n // If there's no authentication required on method level, check class level.\n if (auth == null) {\n auth = resourceInfo.getResourceClass().getAnnotation(Secured.class);\n }\n\n // Else, there's no permission required, thus we chan continue;\n if (auth == null) {\n log.log(Level.INFO, \"AUTHENTICATION: Method: \" + context.getMethod() + \", no permission required\");\n return new Permissions[0];\n }\n\n return auth.value();\n }", "private TavernaSecurityContext getRunSecurityContext(String runName,\n\t\t\tboolean initialOnly) throws UnknownRunException, NotOwnerException,\n\t\t\tBadStateChangeException {\n\t\tTavernaRun run = support.getRun(runName);\n\t\tTavernaSecurityContext c = run.getSecurityContext();\n\t\tif (!c.getOwner().equals(support.getPrincipal()))\n\t\t\tthrow new NotOwnerException();\n\t\tif (initialOnly && run.getStatus() != Initialized)\n\t\t\tthrow new BadStateChangeException();\n\t\treturn c;\n\t}", "SecurityManager getSecurityManager();", "SecurityManager getSecurityManager();", "java.lang.String getContext();", "public wbemdisp.ISWbemSecurity getSecurity_ () throws java.io.IOException, com.linar.jintegra.AutomationException;", "@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }", "boolean isApplicable(SecurityMode securityMode);", "public Yng_Security findByName(String name) {\n\t\treturn securityDao.findByName(name);\r\n\t}", "WebDavResource getCurrentUserPrincipal(ServerInfo serverInfo, String serviceName) throws URISyntaxException, IOException, NotAuthorizedException {\n\t\tURI initialURL = getInitialContextURL(serverInfo, serviceName);\n\t\tif (initialURL != null) {\n\t\t\tLog.i(TAG, \"Looking up principal URL for service \" + serviceName + \"; initial context: \" + initialURL);\n\n\t\t\t// determine base URL (host name and initial context path)\n\t\t\tWebDavResource base = new WebDavResource(httpClient,\n\t\t\t\t\tinitialURL,\n\t\t\t\t\tserverInfo.getUserName(), serverInfo.getPassword(), serverInfo.isAuthPreemptive());\n\t\t\t\n\t\t\t// look for well-known service (RFC 5785)\n\t\t\ttry {\n\t\t\t\tWebDavResource wellKnown = new WebDavResource(base, \"/.well-known/\" + serviceName);\n\t\t\t\twellKnown.propfind(Mode.CURRENT_USER_PRINCIPAL);\n\t\t\t\tif (wellKnown.getCurrentUserPrincipal() != null) {\n\t\t\t\t\tURI principal = wellKnown.getCurrentUserPrincipal();\n\t\t\t\t\tLog.i(TAG, \"Principal URL found from Well-Known URI: \" + principal);\n\t\t\t\t\treturn new WebDavResource(wellKnown, principal);\n\t\t\t\t}\n\t\t\t} catch (NotAuthorizedException e) {\n\t\t\t\tLog.w(TAG, \"Not authorized for well-known \" + serviceName + \" service detection\", e);\n\t\t\t\tthrow e;\n\t\t\t} catch (URISyntaxException e) {\n\t\t\t\tLog.e(TAG, \"Well-known\" + serviceName + \" service detection failed because of invalid URIs\", e);\n\t\t\t} catch (HttpException e) {\n\t\t\t\tLog.d(TAG, \"Well-known \" + serviceName + \" service detection failed with HTTP error\", e);\n\t\t\t} catch (DavException e) {\n\t\t\t\tLog.w(TAG, \"Well-known \" + serviceName + \" service detection failed with unexpected DAV response\", e);\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(TAG, \"Well-known \" + serviceName + \" service detection failed with I/O error\", e);\n\t\t\t}\n\n\t\t\t// fall back to user-given initial context path\n\t\t\tLog.d(TAG, \"Well-known service detection failed, trying initial context path \" + initialURL);\n\t\t\ttry {\n\t\t\t\tbase.propfind(Mode.CURRENT_USER_PRINCIPAL);\n\t\t\t\tif (base.getCurrentUserPrincipal() != null) {\n\t\t\t\t\tURI principal = base.getCurrentUserPrincipal();\n\t\t\t\t\tLog.i(TAG, \"Principal URL found from initial context path: \" + principal);\n\t\t\t\t\treturn new WebDavResource(base, principal);\n\t\t\t\t}\n\t\t\t} catch (NotAuthorizedException e) {\n\t\t\t\tLog.e(TAG, \"Not authorized for querying principal\", e);\n\t\t\t\tthrow e;\n\t\t\t} catch (HttpException e) {\n\t\t\t\tLog.e(TAG, \"HTTP error when querying principal\", e);\n\t\t\t} catch (DavException e) {\n\t\t\t\tLog.e(TAG, \"DAV error when querying principal\", e);\n\t\t\t}\n\n\t\t\tLog.i(TAG, \"Couldn't find current-user-principal for service \" + serviceName + \", assuming initial context path is principal path\");\n\t\t\treturn base;\n\t\t}\n\t\treturn null;\n\t}", "public interface SecurityConfiguration {\n\t\n\t/**\n\t * Gets the executor.\n\t *\n\t * @return the executor\n\t */\n\tExecutor getExecutor();\t\n\t\n\t/**\n\t * User preemptive auth.\n\t *\n\t * @return true, if successful\n\t */\n\tboolean userPreemptiveAuth();\n}", "public boolean securityStatus()\n {\n return m_bSecurity;\n }", "public PortletContext getPortletContext ()\n {\n \treturn config.getPortletContext();\n }", "public abstract boolean propagate(ServiceSecurity serviceSecurity, SecurityContext securityContext);", "public String getContext() { return context; }", "long getCurrentContext();", "private Intent m34059f(Context context) {\n Intent intent = new Intent(\"com.meizu.safe.security.SHOW_APPSEC\");\n intent.putExtra(Constants.FLAG_PACKAGE_NAME, context.getPackageName());\n intent.setComponent(new ComponentName(\"com.meizu.safe\", \"com.meizu.safe.security.AppSecActivity\"));\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }", "com.cantor.drop.aggregator.model.CFTrade.SecurityIdType getSecIdType();", "@Bean\n\tpublic DefaultSpringSecurityContextSource contextSource() {\n\t\treturn new DefaultSpringSecurityContextSource(Arrays.asList(\"ldap://localhost:10389\"), \"dc=springframework,dc=org\");\n\t}", "public static synchronized void configureSecurity()\n {\n // import Component.Application.Console.Coherence;\n // import Component.Net.Security.Standard;\n // import com.tangosol.internal.net.security.DefaultStandardDependencies;\n // import com.tangosol.internal.net.security.LegacyXmlStandardHelper;\n // import com.tangosol.run.xml.XmlElement;\n \n if (isConfigured())\n {\n return;\n }\n \n DefaultStandardDependencies deps = null;\n Security security = null;\n \n try\n {\n // create security dependencies including default values\n deps = new DefaultStandardDependencies();\n \n // internal call equivalent to \"CacheFactory.getSecurityConfig();\"\n XmlElement xmlConfig = Coherence.getServiceConfig(\"$Security\");\n if (xmlConfig != null)\n {\n // load the security dependencies given the xml config \n deps = LegacyXmlStandardHelper.fromXml(xmlConfig, deps);\n \n if (deps.isEnabled())\n {\n // \"model\" element is not documented for now\n security = (Standard) _newInstance(\"Component.Net.Security.\" + deps.getModel()); \n }\n }\n }\n finally\n {\n // if Security is not instantiated, we still neeed to process\n // the dependencies to pickup the IdentityAsserter and IdentityTransformer\n // objects for the Security component (see onDeps()).\n if (security == null)\n {\n processDependencies(deps.validate());\n }\n else\n {\n // load the standard dependencies (currently only support Standard)\n if (deps.getModel().equals(\"Standard\"))\n {\n ((Standard) security).setDependencies(deps);\n }\n setInstance(security);\n }\n \n setConfigured(true);\n }\n }", "String getContextId();", "public AccessibleContext getAccessibleContext() {\n/* 555 */ if (this.accessibleContext == null) {\n/* 556 */ this.accessibleContext = new AccessibleApplet();\n/* */ }\n/* 558 */ return this.accessibleContext;\n/* */ }", "public String getContextIdentifier(HttpServletRequest httpServletRequest) {\n return null;\n }", "public SecurityType getSecurityType() {\n return securityType;\n }", "RenderingContext getContext();", "@Override\n public void filter(final ContainerRequestContext requestContext) throws IOException {\n final String authToken = requestContext.getHeaders().getFirst(\"authToken\");\n\n if (StringUtils.isBlank(authToken)) {\n throw unauthorizedWebException();\n }\n\n try {\n // authenticate using token to get principle\n final Optional<P> principal = authenticator.authenticate(authToken);\n\n // set security context on request\n if (principal.isPresent()) {\n setSecurityContextOnRequest(requestContext, principal);\n return;\n }\n } catch (AuthenticationException e) {\n LOGGER.warn(\"Error authenticating credentials\", e);\n throw unauthorizedWebException();\n }\n\n throw unauthorizedWebException();\n }", "IContextNode wdGetContext();", "public String getSecurityQuestion() {\n return securityQuestion;\n }", "public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }", "@Bean\n\tpublic SAMLContextProviderImpl contextProvider() {\n\t\treturn new SAMLContextProviderImpl();\n\n\t}", "public IdentifierSearch getSecurityKeys() {\n return _securityKeys;\n }", "public AuthorizationContext getUserAuthorizationContext() {\n\t\treturn securityContext.getAuthorizationContext();\n\t}", "public final String getSslContextService() {\n return properties.get(SSL_CONTEXT_SERVICE_PROPERTY);\n }", "public final String getSslContextService() {\n return properties.get(SSL_CONTEXT_SERVICE_PROPERTY);\n }", "public PermissionHandler getHandler() {\r\n return Permissions.Security;\r\n }", "private Context getRemoteContext(Context context) {\n try {\n return context.getApplicationContext().createPackageContext(PACKAGE_WITH_DEX_TO_EXTRACT,\n Context.CONTEXT_IGNORE_SECURITY | Context.CONTEXT_INCLUDE_CODE);\n } catch (NameNotFoundException e) {\n e.printStackTrace();\n Assert.fail(\"Could not get remote context\");\n return null;\n }\n }", "public TokenInfo getInfo(String securityToken, RequestMetadata requestMetadata);", "private Context getThreadContext() throws NamingException {\n final ThreadContext threadContext = ThreadContext.getThreadContext();\n if (skipEjbContext(threadContext)) {\n return ContextBindings.getClassLoader();\n }\n final Context context = threadContext.getBeanContext().getJndiEnc();\n return context;\n }", "public DiskSecurityProfile securityProfile() {\n return this.securityProfile;\n }", "public void testContextManager() throws Exception {\n System.out.println(\"testContextManager\");\n \n // init the session information\n ThreadsPermissionContainer permissions = new ThreadsPermissionContainer();\n SessionManager.init(permissions);\n UserStoreManager userStoreManager = new UserStoreManager();\n UserSessionManager sessionManager = new UserSessionManager(permissions,\n userStoreManager);\n LoginManager.init(sessionManager,userStoreManager);\n // instanciate the thread manager\n CoadunationThreadGroup threadGroup = new CoadunationThreadGroup(sessionManager,\n userStoreManager);\n \n // add a user to the session for the current thread\n RoleManager.getInstance();\n \n InterceptorFactory.init(permissions,sessionManager,userStoreManager);\n \n // add a new user object and add to the permission\n Set set = new HashSet();\n set.add(\"test\");\n UserSession user = new UserSession(\"test1\", set);\n permissions.putSession(new Long(Thread.currentThread().getId()),\n new ThreadPermissionSession(\n new Long(Thread.currentThread().getId()),user));\n \n \n NamingDirector.init(threadGroup);\n \n Context context = new InitialContext();\n \n context.bind(\"java:comp/env/test\",\"fred\");\n context.bind(\"java:comp/env/test2\",\"fred2\");\n \n if (!context.lookup(\"java:comp/env/test\").equals(\"fred\")) {\n fail(\"Could not retrieve the value for test\");\n }\n if (!context.lookup(\"java:comp/env/test2\").equals(\"fred2\")) {\n fail(\"Could not retrieve the value for test2\");\n }\n System.out.println(\"Creating the sub context\");\n Context subContext = context.createSubcontext(\"java:comp/env/test3/test3\");\n System.out.println(\"Adding the binding for bob to the sub context\");\n subContext.bind(\"bob\",\"bob\");\n System.out.println(\"Looking up the binding for bob on the sub context.\");\n Object value = subContext.lookup(\"bob\");\n System.out.println(\"Object type is : \" + value.getClass().getName());\n if (!value.equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n if (!context.lookup(\"java:comp/env/test3/test3/bob\").equals(\"bob\")) {\n fail(\"Could not retrieve the value bob\");\n }\n \n ClassLoader loader = new URLClassLoader(new URL[0]);\n ClassLoader original = Thread.currentThread().getContextClassLoader();\n Thread.currentThread().setContextClassLoader(loader);\n NamingDirector.getInstance().initContext();\n \n context.bind(\"java:comp/env/test5\",\"fred5\");\n if (!context.lookup(\"java:comp/env/test5\").equals(\"fred5\")) {\n fail(\"Could not retrieve the value fred5\");\n }\n \n Thread.currentThread().setContextClassLoader(original);\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n Thread.currentThread().setContextClassLoader(loader);\n \n NamingDirector.getInstance().releaseContext();\n \n try{\n context.lookup(\"java:comp/env/test5\");\n fail(\"Failed retrieve a value that should not exist\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n Thread.currentThread().setContextClassLoader(original);\n System.out.println(\"Add value 1\");\n context.bind(\"basic\",\"basic\");\n System.out.println(\"Add value 2\");\n context.bind(\"basic2/bob\",\"basic2\");\n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the [\" + \n context.lookup(\"basic\") + \"]\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI [\" +\n context.lookup(\"basic2/bob\") + \"]\");\n }\n \n try {\n context.bind(\"java:network/env/test\",\"fred\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n \n try {\n context.unbind(\"java:network/env/test\");\n fail(\"This should have thrown as only relative urls can be used \" +\n \"JNDI\");\n } catch (NamingException ex) {\n // ignore\n }\n context.rebind(\"basic\",\"test1\");\n context.rebind(\"basic2/bob\",\"test2\");\n \n if (context.lookup(\"basic\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n if (context.lookup(\"basic2/bob\") != null) {\n fail(\"Could not retrieve the basic value from the JNDI\");\n }\n \n context.unbind(\"basic\");\n context.unbind(\"basic2/bob\");\n \n try{\n context.lookup(\"basic2/bob\");\n fail(\"The basic bob value could still be found\");\n } catch (NameNotFoundException ex) {\n // ignore\n }\n \n NamingDirector.getInstance().shutdown();\n }", "private String getUserIntials(Context context) throws Exception {\n String sCADSignature = \"\";\n\n logMessage(\"getUserIntials\", \"Entered...\");\n try {\n if (!bCustomerEnvironment) {\n // For OOTB, the 'CAD Signature' attribute won't be present.\n // So, return User Name.\n String sContextUserName = context.getUser();\n sCADSignature = sContextUserName;\n } else {\n //\n // TODO - In customer environment, if the CAD Signature is to be read from an attribute on the Person\n // Object, implement the code to read it from the Person Object and return it from here.\n // e.g., sCADSignature = \"Test User\"\n //\n sCADSignature = \"\";\n }\n\n logMessage(\"getUserIntials\", \"sCADSignature: \" + sCADSignature);\n } catch (Exception e) {\n }\n\n return sCADSignature;\n }", "String serviceId(RequestContext ctx) {\n\n String serviceId = (String) ctx.get(SERVICE_ID);\n if (serviceId == null) {\n log.info(\"No service id found in request context {}\", ctx);\n }\n return serviceId;\n }", "@GetMapping(path = \"/secure/hello\")\n\t@PreAuthorize(\"hasRole('USER') and #oauth2.hasScope('read')\")\n\tpublic String getSecureHello() {\n\t\treturn \"Hello Secure\";\n\t}", "public static String getOaiproviderContext() {\r\n if (oaiproviderContext == null) {\r\n oaiproviderContext =\r\n PropertiesProvider.getInstance().getProperty(\"oaiprovider.context\", \"/escidoc-oaiprovider/\");\r\n }\r\n return oaiproviderContext;\r\n }", "public <T extends SecuritySource> T getSecuritySource(final Class<T> clazz) {\n return clazz.cast(get(SECURITY_SOURCE_NAME));\n }", "public static boolean isSecurityEnabled()\n {\n return Security.getInstance() != null || getAuthorizer() != null;\n }", "public URI getCurrentContext();", "public String getContextString();", "default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }", "public Yng_Security findBySecurityId(int securityId) {\n\t\treturn securityDao.findBySecurityId(securityId);\r\n\t}", "private SecurityContext securityContextAll() {\n return SecurityContext.builder()\n .securityReferences(\n Arrays.asList(new SecurityReference(\"authorization\", scopes())))\n .forPaths(PathSelectors.any())\n .forPaths(Predicates.not(regex(\"/auth/user\")))\n .build();\n }", "public WebloungeWebConsoleSecurityProvider(SecurityService securityService) {\n this.securityService = securityService;\n }" ]
[ "0.6914835", "0.6485607", "0.6385204", "0.63271046", "0.607129", "0.5949194", "0.5882882", "0.56901854", "0.56625414", "0.56584597", "0.56021154", "0.5573909", "0.5573909", "0.55228436", "0.5506273", "0.5489278", "0.54843414", "0.54345596", "0.5403163", "0.53744584", "0.5336549", "0.52973974", "0.52942985", "0.5234627", "0.5231581", "0.52098686", "0.52095616", "0.52078", "0.5186392", "0.518122", "0.5174938", "0.5166044", "0.516573", "0.51561123", "0.5145385", "0.5109251", "0.5106321", "0.5105549", "0.5105549", "0.50991946", "0.50863695", "0.5075086", "0.50671935", "0.5063692", "0.5050237", "0.5023601", "0.50210226", "0.5017465", "0.50094724", "0.50074625", "0.5002788", "0.5002788", "0.49898005", "0.4973053", "0.49711445", "0.49659243", "0.4948104", "0.4934102", "0.49226153", "0.48995143", "0.48903102", "0.4886286", "0.487796", "0.48718747", "0.48630252", "0.48592404", "0.48561153", "0.48524547", "0.4847884", "0.48470864", "0.48462337", "0.4838378", "0.4835817", "0.48307374", "0.48258027", "0.48195556", "0.48137003", "0.480389", "0.4800249", "0.4791717", "0.47910142", "0.47910142", "0.47831935", "0.47816002", "0.47783837", "0.47730798", "0.47706467", "0.4760107", "0.47578788", "0.475571", "0.4746005", "0.47357148", "0.4734807", "0.473169", "0.47295782", "0.47076893", "0.47060814", "0.470104", "0.46955124", "0.46865332" ]
0.59759855
5
Allows users to create accounts.
public void run() { int id = getIdentity(); iUser user = createUser(id); boolean userCreated = (user != null); if (userCreated) { presenter.printAccountCreated(); } else { presenter.printRequestDeclined(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createUserAccount(UserAccount account);", "private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }", "Account create();", "public void createAccount(){\n System.out.println(\"vi skal starte \");\n }", "private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "private void createNewAccount() {\n\n // if user has not provided valid data, do not create an account and return from method\n if (!validateData()) {\n return;\n }\n\n // If flag value is false, that means email provided by user doesn't exists in database\n // so initialize the loader to create a new account\n if (!mEmailExistsFlag) {\n getLoaderManager().initLoader(CREATE_NEW_ACCOUNT_LOADER_ID, null, this);\n } else {\n // If flag is true, that means email provided by user already exists in database\n // so restart the loader and allow user to enter new email address for account\n getLoaderManager().restartLoader(CREATE_NEW_ACCOUNT_LOADER_ID, null, this);\n }\n\n }", "@Override\n\tpublic String createAccount() {\n\t\treturn \"Created Saving Account Sucessfully\";\n\t}", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}", "protected void createAccount(JSONArray args, final CallbackContext callbackContext) {\n\t\tLog.d(TAG, \"CREATEACCOUNT\");\n\t\ttry {\n\t\t\tString email = args.getString(0);\n\t\t\tString password = args.getString(1);\n\t\t\tString userName = null;\n\t\t\tif (args.length() == 3) {\n\t\t\t\tuserName = args.optString(2);\n\t\t\t}\n\t\t\tNotificare.shared().createAccount(email, password, userName, new NotificareCallback<Boolean>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(Boolean result) {\n\t\t\t\t\tif (callbackContext == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tcallbackContext.success();\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onError(NotificareError error) {\n\t\t\t\t\tif (callbackContext == null) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tcallbackContext.error(error.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (JSONException e) {\n\t\t\tcallbackContext.error(\"JSON parse error\");\n\t\t}\n\t}", "Account create(Context context);", "public void createAccount() {\n System.out.println(\"Would you like to create a savings or checking account?\");\n String AccountRequest = input.next().toLowerCase().trim();\n createAccount(AccountRequest);\n\n }", "int createAccount(Account account);", "@Test\n\tpublic void createAccount() {\t\n\t\t\n\t\tRediffOR.setCreateAccoutLinkClick();\n\t\tRediffOR.getFullNameTextField().sendKeys(\"Kim Smith\");\n\t\tRediffOR.getEmailIDTextField().sendKeys(\"Kim Smith\");\n\t\t\t\t\t\n\t\t\n\t}", "public void createAccountOnClick(View v){\n\n String email = emailTextView.getText().toString();\n String password = passwordTextView.getText().toString();\n createEmailAndPasswordAccount(email, password);\n\n }", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "@Override\n public void onClick(View v) {\n CreateAccount();\n }", "private void createAccount(String email, String password) {\n if (!validateForm()) {\n return;\n }\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n Toast.makeText(MainActivity.this, \"Unable to creat Account\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public int createAccount(User user) throws ExistingUserException,\n UnsetPasswordException;", "public void createUser(User user);", "private void createAccountActivity() {\n // everything is converted to string\n String userName = createUserName.getText().toString().trim();\n String phoneNumber = createPhoneNumber.getText().toString().trim();\n String email = createEmail.getText().toString().trim();\n String password = createPassword.getText().toString().trim();\n\n\n // Validate that the entry should not be empty\n if (userName.isEmpty()) {\n createUserName.setError(\"It should not be empty. \");\n createUserName.requestFocus();\n return;\n }\n if (phoneNumber.isEmpty()) {\n createPhoneNumber.setError(\"It should not be empty. \");\n createPhoneNumber.requestFocus();\n return;\n }\n if (email.isEmpty()) {\n createEmail.setError(\"It should not be empty. \");\n createEmail.requestFocus();\n return;\n } else if (!Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n createEmail.setError(\"Invalid email\");\n createEmail.requestFocus();\n return;\n }\n\n if (password.isEmpty()) {\n createPassword.setError(\"It should not be empty. \");\n createPassword.requestFocus();\n return;\n }\n\n // connect to the firebase\n auth.createUserWithEmailAndPassword(email, password).addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n String userID = FirebaseAuth.getInstance().getCurrentUser().getUid();\n User user = new User(userName, phoneNumber, email, password, userID);\n // We will send everything in user to the firebase database\n FirebaseDatabase.getInstance()\n .getReference(\"User\")\n .child(FirebaseAuth.getInstance().getCurrentUser().getUid())\n .setValue(user).addOnCompleteListener(task1 -> {\n if (task1.isSuccessful()) {\n Toast.makeText(RegisterUser.this, \"The account has been created successfully. \", Toast.LENGTH_LONG).show();\n finish(); //basically same as clicking back button\n } else {\n Toast.makeText(RegisterUser.this, \"The account creation failed!\", Toast.LENGTH_LONG).show();\n }\n });\n } else {\n Toast.makeText(RegisterUser.this, \"The account creation failed!\", Toast.LENGTH_LONG).show();\n }\n });\n }", "HttpStatus createUserAccount(final String realm, final String username, final String firstName,\n\t\t\tfinal String lastName, final String email, final String password);", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "public void create(UserValidator account) {\n Account validated = new Account();\n validated.setUsername(account.getUsername());\n validated.setPassword(passwordEncoder.encode(account.getPassword()));\n validated.setFirstName(account.getFirstName());\n validated.setLastName(account.getLastName());\n validated.getAuthorities().add(\"USER\");\n\n this.accountRepository.save(validated);\n }", "@Override\r\n\tpublic boolean createAccount(Account account) {\n\t\treturn dao.createAccount(account);\r\n\t}", "public void createAccount(View view) {\n Intent intent = new Intent(this, UserAccountCreateActivity.class);\n startActivity(intent);\n }", "UserAccount createUserAccount(User user, double amount);", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "private void createAccount(String username, String passphrase, String email) {\n\tif (!AccountManager.getUniqueInstance().candidateUsernameExists(username)) {\n\t try {\n\t\tAccountManager.getUniqueInstance().createCandidateAccount(username, \n\t\t\t\t\t\t\t\t\t passphrase, \n\t\t\t\t\t\t\t\t\t email);\n\t } catch (Exception e) {\n\t\tthrow new RuntimeException(\"creation failed\");\n\t }\n\t} else {\n\t throw new RuntimeException(\"username already exists\");\n\t}\n }", "public void Create(View view) {\n disableButton = findViewById(R.id.newAccountButton);\n disableButton.setEnabled(false);\n username = ((EditText)findViewById(R.id.createName)).getText().toString();\n password = ((EditText)findViewById(R.id.createPassword)).getText().toString();\n String password2 = ((EditText)findViewById(R.id.recreatePassword)).getText().toString();\n if (username.length() == 0 || password.length() == 0) {\n Toast.makeText(this, \"Fill in all boxes\", Toast.LENGTH_SHORT).show();\n disableButton.setEnabled(true);\n } else if (!password.equals(password2)) {\n Toast.makeText(this, \"passwords must be the same\", Toast.LENGTH_SHORT).show();\n disableButton.setEnabled(true);\n } else {\n PostuserHelper helper = new PostuserHelper(username, password, getApplicationContext(),\n NewaccountActivity.this);\n }\n }", "public void createUser(User user) {\n\n\t}", "@Override\n\tpublic String createUserAccountQuery(String username, String password, String firstName, String lastName,\n\t\t\tString dob, String accountType, String accountID, String creationDate, String requestDate,\n\t\t\tString phoneNumber, String email, boolean isApproved) {\n\t\treturn null;\n\t}", "public abstract void createAccount(JSONObject account);", "@PostMapping(\"/account/create\")\n @PreAuthorize(\"hasRole('USER') or hasRole('ADMIN')\")\n\tpublic ResponseEntity createAccount(\n\t \t @AuthenticationPrincipal UserDetailsImpl userDetail\n\t ){\n\t\t\tAccount account = new Account(userDetail.getId());\n\t\t\t// save the account to the database\n\t\t\tAccount createdAccount = accountRepository.save(account);\n\t \t // response\n\t return ResponseEntity.ok(\n\t \t\tcreatedAccount\n\t );\n\t }", "private void CreateUserAccount(final String lname, String lemail, String lpassword, final String lphone, final String laddress, final String groupid, final String grouppass ){\n mAuth.createUserWithEmailAndPassword(lemail,lpassword).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n //account creation successful\n showMessage(\"Account Created\");\n //after user account created we need to update profile other information\n updateUserInfo(lname, pickedImgUri,lphone, laddress, groupid, grouppass, mAuth.getCurrentUser());\n }\n else{\n //account creation failed\n showMessage(\"Account creation failed\" + task.getException().getMessage());\n regBtn.setVisibility(View.VISIBLE);\n loadingProgress.setVisibility(View.INVISIBLE);\n\n }\n }\n });\n }", "public void createAccount(String username, String password) {\n\t\tString send;\n\t\tsend = \"<NewAccount=\" + username + \",\" + password + \">\";\n\n\t\ttry {\n\t\t\tdos.writeUTF(send);\n\t\t} catch (Exception e) {\n\t\t\t//TODO\n\t\t}\n\t}", "public Account createAccount() {\n\t\t\n\t\tAccountBuilder builder = new AccountBuilder();\n\t\tUserRole role = new UserRole();\n\t\trole.setUsername(getUsername());\n\t\trole.setRole(\"ROLE_USER\");\n\t\t\n\t\t//builds the account entity using the front end POJO\n\t\tbuilder\n\t\t\t.withUsername(getUsername())\n\t\t\t.withPassword(getPassword())\n\t\t\t.withLastName(getLastName())\n\t\t\t.withFirstName(getFirstName())\n\t\t\t.withRole(role)\n\t\t\t.withStatus(AccountStatus.ACTIVE)\n\t\t\t.withEmail(getEmail())\n\t\t\t.withStoreCd(getStoreCd());\n\t\t\n return builder.build();\n\t}", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "GenerateUserAccount () {\r\n }", "UserCreateResponse createUser(UserCreateRequest request);", "@Override\n public boolean createAccount(String fullName, String username, String password, String email){\n // will change this if we make some errors.\n if(!usernameToPerson.containsKey(username)) { // check that there is not someone with that username\n Organizer og = new Organizer(fullName, username, password, email);\n updateUsernameToPerson(og.getUsername(), og); // see below\n idToPerson.put(og.getID(), og);\n return true;\n }\n\n return false;\n\n }", "public void onCreateAccountPressed(View view) {\n\n\n mUserName = mEditTextUsernameCreate.getText().toString();\n mUserEmail = mEditTextEmailCreate.getText().toString().toLowerCase();\n mPassword = mEditTextPasswordCreate.getText().toString();\n\n /**\n * Check that email and user name are okay\n */\n boolean validEmail = isEmailValid(mUserEmail);\n boolean validUserName = isUserNameValid(mUserName);\n boolean validPassword = isPasswordValid(mPassword);\n if (!validEmail || !validUserName || !validPassword) return;\n /**\n * If everything was valid show the progress dialog to indicate that\n * account creation has started\n */\n mAuthProgressDialog.show();\n\n\n // [START create_user_with_email]\n mAuth.createUserWithEmailAndPassword(mUserEmail, mPassword)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(LOG_TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n Toast.makeText(CreateAccountActivity.this, R.string.auth_failed,\n Toast.LENGTH_SHORT).show();//error message\n //showErrorToast(\"createUserWithEmail : \"+task.isSuccessful());\n }\n\n // [START_EXCLUDE]\n mAuthProgressDialog.dismiss();\n Intent intent = new Intent(CreateAccountActivity.this, LoginActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n finish();\n // [END_EXCLUDE]\n //end\n }\n });\n // [END create_user_with_email]\n\n\n\n /**\n * Create new user with specified email and password\n */\n /*mFirebaseRef.createUser(mUserEmail, mPassword, new Firebase.ValueResultHandler<Map<String, Object>>() {\n @Override\n public void onSuccess(Map<String, Object> result) {\n Dismiss the progress dialog\n mAuthProgressDialog.dismiss();\n Log.i(LOG_TAG, getString(R.string.log_message_auth_successful));\n }\n\n @Override\n public void onError(FirebaseError firebaseError) {\n *//* Error occurred, log the error and dismiss the progress dialog *//*\n Log.d(LOG_TAG, getString(R.string.log_error_occurred) +\n firebaseError);\n mAuthProgressDialog.dismiss();\n *//* Display the appropriate error message *//*\n if (firebaseError.getCode() == FirebaseError.EMAIL_TAKEN) {\n mEditTextEmailCreate.setError(getString(R.string.error_email_taken));\n } else {\n showErrorToast(firebaseError.getMessage());\n }\n\n }\n });*/\n }", "private void createEmailAndPasswordAccount(String email, String password){\n\n if(!checkForInvalidInput()) return;\n\n // Copied from Firebase documentation\n Log.d(\"CreateAccount\", \"In create method\");\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n FirebaseUser user = mAuth.getCurrentUser();\n\n if(user == null){\n Log.d(TAG, \"User is null?\");\n }\n\n else if(isStudent){\n createLocalStudentUserData(user);\n onCreateSuccessStudent();\n }\n\n else if(isTeacher){\n createLocalTeacherUserData(user);\n onCreateSuccessTeacher();\n }\n\n else{\n Log.d(TAG, \"A problem has occurred in choosing between creating a teacher or student\");\n }\n\n\n } else {\n Log.d(TAG, \"Creating the user account was not successful\");\n Toast.makeText(getApplicationContext(),\n \"Account creation unsuccessful. Perhaps one already exists with this email\",\n Toast.LENGTH_LONG).show();\n }\n\n }\n });\n\n }", "public void creatUser(String name, String phone, String email, String password);", "boolean create(User user) throws Exception;", "public void createAccount() {\n\t\t// Assigns variables based on user input\n\t\tString username = usernameField.getText();\n\t\tString firstName = firstNameField.getText();\n\t\tString lastName = lastNameField.getText();\n\t\tString address = addressField.getText();\n\t\tString postCode = postcodeField.getText();\n\t\tString phoneNumber = phoneNumberField.getText();\n\t\tlong phoneNumberLong;\n\t\tif (username.isEmpty() || firstName.isEmpty() || lastName.isEmpty() || address.isEmpty() || postCode.isEmpty()\n\t\t\t\t|| phoneNumber.isEmpty()) { // Checks if number is correct format\n\n\t\t\tAlert alert = new Alert(AlertType.ERROR); // Error message\n\t\t\talert.setTitle(\"Error\");\n\n\t\t\talert.setHeaderText(\"Could not create an user\");\n\t\t\talert.setContentText(\"Make sure you fill all fields and press button again\");\n\t\t\talert.showAndWait();\n\n\t\t\treturn;\n\t\t}\n\n\t\telse {\n\t\t\ttry {\n\t\t\t\tphoneNumberLong = Long.parseLong(phoneNumber);\n\t\t\t} catch (Exception e) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"Wrong format of phone number\");\n\t\t\t\talert.setContentText(\"Please enter correct phone number\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(FileReader.exists(username)) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\n\t\t\t\talert.setHeaderText(\"User with the username \"+ username +\" already exists. \");\n\t\t\t\talert.setContentText(\"Please choose another username\");\n\t\t\t\talert.showAndWait();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tString userdata = \"\";\n\t\t\tuserdata += \"\\n Username: \" + username;\n\t\t\tuserdata += \"\\n First name: \" + firstName;\n\t\t\tuserdata += \"\\n Last name: \" + lastName;\n\t\t\tuserdata += \"\\n Address: \" + address;\n\t\t\tuserdata += \"\\n Post code: \" + postCode;\n\t\t\tuserdata += \"\\n Phone number: \" + phoneNumberLong;\n\t\t\t\n\n\t\t\tif(custom) {\n\t\t\t\tavatarIndex = 101;\n\t\t\t\t// Gives users the custom avatar\n\t\t\t\tFile file1 = new File(\"artworkImages/\" + username);\n\t\t\t\tfile1.mkdir();\n\t\t\t\tPath path = Paths.get(\"customAvatars/\" + username + \".png\");\n\t\t\t\tString path1 = \"tmpImg.png\";\n\t\t\t\tFile file = new File(path1);\n\n\t\t\t\ttry {\n\t\t\t\t\tFiles.copy(file.toPath(), path, StandardCopyOption.REPLACE_EXISTING);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tUser user = new User(username, firstName, lastName, address, postCode, phoneNumberLong, avatarIndex);\n\t\t\tFileReader.addUser(user); // Creates user\n\n\t\t\ttry {\n\t\t\t\tWriter.writeUserFile(user); // Adds user to memory\n\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION); // Success message\n\t\t\talert.setTitle(\"Success\");\n\n\t\t\talert.setHeaderText(\"The user has been created\");\n\t\t\talert.setContentText(\"Close this window to return to login screen\");\n\t\t\talert.showAndWait();\n\n\t\t\tcreateAccountButton.getScene().getWindow().hide();\n\t\t}\n\n\t}", "public LandingPage registerNewAccount(){\n\t\taction.WaitForWebElement(linkRegisterNewAccount)\n\t\t\t .Click(linkRegisterNewAccount);\n\t\treturn this;\n\t}", "@Override\n public void onClick(View v) {\n Phone = RegisterPhone.getText().toString();\n Password = RegisterPassword.getText().toString();\n Name = RegisterName.getText().toString();\n\n\n CreateNewAccount(Phone,Password,Name);\n }", "private void createAccount(User user) throws IOException {\n File accounts = new File(\"accounts.txt\");\n if (!accounts.exists()) {\n accounts.createNewFile();\n }\n\n FileOutputStream fileOutputStream = new FileOutputStream(accounts, true);\n BufferedWriter bufferedWriter = new BufferedWriter(new OutputStreamWriter(fileOutputStream));\n\n bufferedWriter.write(user.getUserName() + \":\" + user.getUserPass());\n bufferedWriter.newLine();\n bufferedWriter.flush();\n }", "public void addAccount(String user, String password);", "AionAddress createAccount(String password);", "public void createAccount(View v)\n {\n Intent intent=new Intent(LoginActivity.this,SignUpActivity.class);\n startActivity(intent);\n }", "public abstract void createAccount(final GDataAccount account)\n throws ServiceException;", "private void createAccount(String email, String password) {\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n FirebaseUser user = mAuth.getCurrentUser();\n textViewStatus.setText(\"Signed In\");\n } else {\n // If sign in fails, display a message to the user.\n Toast.makeText(MainActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n textViewStatus.setText(\"Signed Out\");\n }\n\n }\n });\n }", "public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "public UserAuthToken createUser(CreateUserRequest request);", "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(MediaType.TEXT_PLAIN)\n public Response createAccount(\n AccountModel input, @Context HttpServletResponse response) {\n if (input.getEmail() == null || input.getEmail().equals(\"\") || input.getPassword() == null || input.getPassword().isEmpty()\n || input.getUserName() == null || input.getUserName().isEmpty()) {\n return Response.status(Response.Status.BAD_REQUEST).build();\n }\n Customer customer = new Customer();\n customer.setEmail(input.getEmail());\n customer.setPassword(input.getPassword());\n customer.setUserName(input.getUserName());\n String sendToken = TokenUtil.getToken(input.getEmail(), input.getPassword());\n customer.setToken(sendToken);\n Long id = customerRef.save(customer);\n if (id != null || id > 0) {\n response.setHeader(\"AuthHeader\", sendToken);\n return Response.status(Response.Status.CREATED).build();\n }\n return Response.status(Response.Status.NOT_IMPLEMENTED).build();\n\n }", "public void create() {\n String salt = PasswordUtils.getSalt(30);\n\n // Protect user's password. The generated value can be stored in DB.\n String mySecurePassword = PasswordUtils.generateSecurePassword(password, salt);\n\n // Print out protected password\n System.out.println(\"My secure password = \" + mySecurePassword);\n System.out.println(\"Salt value = \" + salt);\n Operator op = new Operator();\n op.setUsername(username);\n op.setDescription(description);\n op.setSalt(salt);\n op.setPassword(mySecurePassword);\n op.setRol(rol);\n operatorService.create(op);\n message = \"Se creo al usuario \" + username;\n username = \"\";\n description = \"\";\n password = \"\";\n rol = null;\n }", "private void createUser(final String email, final String password) {\n\n }", "@POST\r\n @Path(\"/create\")\r\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\r\n @Produces(MediaType.APPLICATION_JSON)\r\n public NewAccount createNewCustomerAccount(@FormParam(\"accountNumber\") int accountNumber,\r\n @FormParam(\"accountType\") String accountType,\r\n @FormParam(\"accountBalance\") double accountBalance\r\n ){\r\n return newaccountservice.createNewAccount(accountNumber, accountType, accountBalance);\r\n }", "@Override\r\n\tpublic boolean create(Account newAccount) {\n\t\treturn daoref.create(newAccount);\r\n\t}", "public void addUser() throws AccountException {\n System.out.println(\"----------------- Add User -----------------\");\n System.out.print(\"Account: \");\n String username = this.checkUsername(); // Call method to check input of username\n\n System.out.print(\"Password: \");\n String password = this.checkEmpty(\"Password\"); // Call method to check input of password\n\n System.out.print(\"Name: \");\n String name = this.checkEmpty(\"Name\"); // Call method to check input of name\n\n System.out.print(\"Phone: \");\n String phone = this.checkPhone(); // Call method to check nput of phone\n\n System.out.print(\"Email: \");\n String email = this.checkEmail(); // Call method to check input of email\n\n System.out.print(\"Address: \");\n String address = this.checkEmpty(\"Address\"); // Call method to check input of address\n\n System.out.print(\"DOB: \");\n Date dob = this.checkDate(); // Call method to check input of dob\n\n // Add new user and print success if created\n this.addUser(username, password, name, phone, email, address, dob);\n System.out.println(\"Create account success.\");\n }", "@Override\r\n\tpublic boolean createAccount(Account account) throws Exception {\n\t\tboolean flag = false;\r\n\t\ttry {\r\n\t\t\tflag = this.dao.createAccount(account);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}finally {\r\n\t\t\tthis.dbc.close();\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "Boolean registerNewUser(User user);", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "@Test\n public void testCreateAccountWithPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"alpha@gamma.net\");\n createUserRequest.setPassword(\"beta\");\n createUserRequest.setFirstname(\"Alpha\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final CreateUserResponse result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n assertThat(result.getUser(), is(not(nullValue())));\n assertThat(result.getUser().getUserId(), is(not(nullValue())));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n }", "@FXML\n\tvoid createAdministratorAccount(ActionEvent event) throws IOException,Exception {\n\t\tString adEmail = emailAdmin.getText();\n\t\tString adPassword = passwordAdmin.getText(); \n\t\t\n\t\tif(adEmail.isBlank()) {\n\t\t\tInfoBox.infoBoxW(\"A valid email must be provided\",\"Missing email\",\"Missing information\");\n\t\t}else {\n\t\t\tif(adPassword.isBlank()) {\n\t\t\t\tInfoBox.infoBoxW(\"A valid password must be provided\",\"Missing password\",\"Missing information\");\n\t\t\t}else {\n\t\t\t\tif(!adEmail.matches(\"^([a-zA-Z0-9_\\\\-\\\\.]+)@([a-zA-Z0-9_\\\\-\\\\.]+)\\\\.([a-zA-Z]{2,5})$\")) {\n\t\t\t\t\tInfoBox.infoBoxW(\"An email with valid syntax expected\",\"Email syntax invalid\",\"Invalid syntax\");\n\t\t\t\t}else {\n\t\t\t\t\tif(!adPassword.matches(\"([a-z]|[A-Z]|[0-9])*\")){\n\t\t\t\t\t\tInfoBox.infoBoxW(\"A password with valid syntax expected\",\"Password syntax invalid\",\"Invalid syntax\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tUserFacade uf = new UserFacade();\n\t\t\t\t\t\tboolean isDone = uf.registerAdministrator(adEmail, HashPassword.hashPassword(adPassword));\n\t\t\t\t\t\tif(isDone) {\n\t\t\t\t\t\t\tInfoBox.infoBoxI(\"Admin created\", \"Admin created\", \"Admin Created\");\n\t\t\t\t\t\t\tTheWerewolvesOfMillersHollow.setScene(getClass().getResource(\"../view/AdministratorMenuView.fxml\"));\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tInfoBox.infoBoxE(\"Creation failed, retry later\",\"Creation failed\",\"Creation Error\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testCreateAdminAccountSuccessfully() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString username = \"newUsername\";\n\t\tAdminAccount user = null;\n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(username, PASSWORD1, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\tfail();\n\t\t}\n\t\tassertNotNull(user);\n\t\tassertEquals(username, user.getUsername());\n\t\tassertEquals(PASSWORD1, user.getPassword());\n\t\tassertEquals(NAME1, user.getName());\n\t}", "private void createAccount(final String email, final String password) {\n if (!validateForm()) {\n return;\n }\n showProgressDialog();\n\n // [START create_user_with_email]\n Log.d(TAG, email);\n Log.d(TAG, password);\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(JE_Login_Home.this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n if (!task.isSuccessful()) {\n makeText(getApplicationContext(), R.string.toast_authentication_failed, Toast.LENGTH_SHORT).show();\n updateUI(null);\n } else {\n sendEmailVerification();\n }\n\n // [START_EXCLUDE]\n hideProgressDialog();\n // [END_EXCLUDE]\n\n }\n });\n // [END create_user_with_email]\n }", "int createUser(User data) throws Exception;", "@Test\n\tvoid testCreateAccount() {\n\t\t\n\t\t// Data Object for unregister user\n\t\tUser user = new User(\"Create AccountExample\", \"CreateAccount\", \"CreateAccount@upr.edu\");\n\t\t\n\t\t// Prepare data\n\t\tUserDAO dao = new UserDAO();\n\t\tboolean exist = false;\n\t\t\n\t\ttry {\n\t\t\t// Creating User in DB\n\t\t\tdao.createAccount(user, \"CreateAccountPassword\");\n\t\t\t\n\t\t\t// Boolean confirming if exist\n\t\t\texist = !dao.availabilityUsername(user.getUsername());\n\t\t\t\n\t\t\t// Deleting account\n\t\t\tdao.deleteAccount(user.getUsername());\n\t\t\t\n\t\t} catch (ClassNotFoundException | UnsupportedEncodingException | SQLException | GeneralSecurityException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// Asserting that the create account works\n\t\tassertTrue(exist);\n\t}", "private void createPassenger() {\n account = new Account(\"driver\", \"password\", \"driver@uclive.ac.nz\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L);\n }", "boolean createUser(String username, String password);", "User createUser();", "void createUserAccounts(Set<Role> roles, User u);", "@PostMapping(\"/createAccount\")\n public ModelAndView createNewAccount(AccountCreateDTO createDTO){\n ModelAndView modelAndView = new ModelAndView();\n\n accountService.createAccount(createDTO);\n modelAndView.addObject(\"successMessage\", \"Account has been created\");\n modelAndView.setViewName(\"accountPage\");\n\n return modelAndView;\n }", "@Override\n public void createNewAccount(String accountType) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.create_container, new CreateAccount().newInstance(accountType)).commit();\n }", "@Test\n\tpublic void testAdminCreate() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(05, \"new acc\", 00001, 100.00, \"A\"));\n\t\ttransactions.add(2, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Account Created\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to create account as admin\", testResult);\n\t}", "public void create(String userName, String password, String userFullname,\r\n\t\t\tString userSex, int userTel, String role);", "@FXML\n\tpublic void createUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtUserNames.getText();\n\t\tString lastName = txtUserSurnames.getText();\n\t\tString id = txtUserId.getText();\n\t\tString username = txtUserUsername.getText();\n\t\tString password = PfUserPassword.getText();\n\n\t\tif (!name.equals(empty) && !lastName.equals(empty) && !id.equals(empty) && !username.equals(empty)\n\t\t\t\t&& !password.equals(empty)) {\n\t\t\tcreateSystemUser(name, lastName, id, username, password);\n\t\t\ttxtUserNames.setText(\"\");\n\t\t\ttxtUserSurnames.setText(\"\");\n\t\t\ttxtUserId.setText(\"\");\n\t\t\ttxtUserUsername.setText(\"\");\n\t\t\tPfUserPassword.setText(\"\");\n\t\t\t// labelUserMessage.setText(\"The user has been created\");\n\t\t} else if (name.equals(empty) && lastName.equals(empty) && id.equals(empty) && username.equals(empty)\n\t\t\t\t&& password.equals(empty)) {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "@Override\n\tpublic void createAccount(Account p) {\n\t\t\n\t\ttry {\n\t\t\tConnection con = conUtil.getConnection();\n\t\t\t//To use our functions/procedure we need to turn off autocommit\n\t\t\tcon.setAutoCommit(false);\n\t\t\t\n\t\t\tString deleteFromTable = \"DELETE FROM accounts WHERE owner_id='8'\";\n\t try (Connection conn = conUtil.getConnection();\n\t PreparedStatement pstmt = conn.prepareStatement(deleteFromTable)) {\n\n\t // set the corresponding param\n\t pstmt.setInt(1, p.getOwner_id());\n\t // execute the delete statement\n\t pstmt.executeUpdate();\n\n\t } catch (SQLException e) {\n\t System.out.println(e.getMessage());\n\t }\n\t\t\t\n\t\t\tString sql = \"insert into accounts( owner_id, balance ) values (?,?)\";\n\t\t\tCallableStatement cs = con.prepareCall(sql);\n\t\t\t\n\t\t\tcs.setInt(1, p.getOwner_id());\n\t\t\tcs.setDouble(2, p.getBalance());\n\t\t\t\n\t\t\tcs.execute();\n\t\t\t\n\t\t\tcon.setAutoCommit(true);\n\t\t\t\n\t\t} catch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "Document createAccount(String username, String accountDisplayName,\n String accountFullName, double balance, double interestRate);", "public void openCreateAccount(){\n Intent intent = new Intent(this, createAccountActivity.class);\n startActivity(intent);\n }", "public void makeNewUser(String name, int age, String address, String password)\n throws SQLException, ConnectionFailedException, DatabaseInsertException {\n if (this.currentUserAuthenticated) {\n // find the role ID that corresponds to customer\n EnumMapRolesAndAccounts map = new EnumMapRolesAndAccounts();\n map.createEnumMap();\n int roleId = map.roleIds.get(Roles.CUSTOMER);\n int userId = DatabaseInsertHelper.insertNewUser(name, age, address, roleId, password);\n System.out.println(\"User ID - \" + userId);\n System.out.println(\"succesfully made user\");\n } else {\n System.out.println(\"failed making user\");\n throw new ConnectionFailedException();\n }\n }", "@Override\n\tpublic void createAccount(String username, Bank bank) {\n\t\ttry {\n\t\tAccount newAccount = new Account(username, bank.getBankID(), bank.getNumOfAccounts()+1);\n\t\tbank.setNumOfAccounts(bank.getNumOfAccounts()+1);\n\t\taddAccount(bank, newAccount);\n\t\t}catch(NullPointerException e) {\n\t\t\tSystem.out.println(\"Could not find bank\");\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void postRequest(Request request, Response response) {\r\n\t\tcreateUser(request, response);\r\n\t}", "public void userCreated(UserCreateCommand command) {\n\t\t}", "public static void createUser(Context context, String email, String password, String name, String bio) {\n if (name.isEmpty() || name.contains(\".\") || name.contains(\"$\") || name.contains(\"#\") || name.contains(\"[\") || name.contains(\"]\") || name.contains(\"/\")) { // No characters that would conflict with firebase path name restrictions\n Log.d(\"RecipeFinderAuth\", \"Sign up Failed!\");\n Toast.makeText(context, \"Sign Up Failed!\", Toast.LENGTH_SHORT).show();\n return;\n }\n FirebaseDatabase.getInstance().getReference().child(\"displayNames\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n if (snapshot.hasChild(name)) { // Display name taken\n Log.d(\"RecipeFinderAuth\", \"Sign up Failed!\");\n Toast.makeText(context, \"Sign Up Failed!\", Toast.LENGTH_SHORT).show();\n } else {\n FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password).addOnCompleteListener(new OnCompleteListener<AuthResult> () {\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) { // Account was successfully created\n Log.d(\"RecipeFinderAuth\", \"Account Created!\");\n Toast.makeText(context, \"Account Created!\", Toast.LENGTH_SHORT).show();\n addNewToDataBase(name, bio); // Add the user to the database of users\n ((AppCompatActivity)(context)).finish();\n\n // Logged in, show home\n Intent intent = new Intent(context, HomeActivity.class);\n context.startActivity(intent);\n } else { // Account was not successfully created\n Log.d(\"RecipeFinderAuth\", \"Sign up Failed!\");\n Toast.makeText(context, \"Sign Up Failed!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if (CREATE_USER_REQUEST_CODE == requestCode && RESULT_OK == resultCode){\n if (data != null) {\n String username = data.getStringExtra(UserCreationActivity.BUNDLE_NEW_USER_NAME);\n\n User user = new User(username, User.EMPTY_CASE, User.EMPTY_CASE);\n\n createUser(user);\n }\n }\n }", "@Override\n\tpublic String createUser(User users) {\n\t\tuserRepository.save(users);\n\t\treturn \"Save Successful\";\n\t}", "public void createAdmin()\r\n\t{\r\n\t\tSystem.out.println(\"Administrator account not exist, please create the administrator account by setting up a password for it.\");\r\n\t\tString password=\"\",repassword=\"\";\r\n\t\tboolean flag=false;\r\n\t\twhile(!flag)\r\n\t\t{\r\n\t\t\tboolean validpassword=false;\r\n\t\t\twhile(!validpassword)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"Please enter the password: \");\r\n\t\t\t\tpassword=sc.nextLine();\r\n\t\t\t\tvalidpassword=a.validitycheck(password);\r\n\t\t\t\tif(!validpassword)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Your password has to fulfil: at least 1 small letter, 1 capital letter, 1 digit!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"Please re-enter the password: \");\r\n\t\t\trepassword=sc.nextLine();\r\n\t\t\tflag=a.matchingpasswords(password,repassword);\r\n\t\t\tif(!flag)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"Password not match! \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString hash_password=hashfunction(password); \r\n\t\tString last_login=java.time.LocalDate.now().toString();\r\n\t\tuser_records.add(new User(\"administrator\",hash_password,\"administrator\",\"\",0,0,last_login,false));\r\n\t\tSystem.out.println(\"Administrator account created successfully!\");\r\n\t}", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public static void createAccount(String name, String address, String contactNum, String userId, String password, float initDeposit) {\n\t\tcustomerList.add(new Customer(name, address, contactNum, new SavingsAccount(userId, password, initDeposit)));\n\t}", "String addAccount(UserInfo userInfo);", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "public void createUserAccount(SignupRequest signUpRequest) {\n\t\tApplicationUser user = new ApplicationUser(signUpRequest.getUsername(), \r\n\t\t\t\t\t\t\t signUpRequest.getEmail(),\r\n\t\t\t\t\t\t\t encoder.encode(signUpRequest.getPassword()));\r\n\r\n\t\tSet<String> strRoles = signUpRequest.getRole();\r\n\t\tSet<Role> roles = new HashSet<>();\r\n\r\n\t\tif (strRoles == null || strRoles.isEmpty()) {\r\n\t\t\tRole userRole = roleRepository.findByName(ERole.ROLE_USER)\r\n\t\t\t\t\t.orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\r\n\t\t\troles.add(userRole);\r\n\t\t} else {\r\n\t\t\tstrRoles.forEach(role -> {\r\n\t\t\t\tswitch (role) {\r\n\t\t\t\tcase \"ROLE_ADMIN\":\r\n\t\t\t\t\tRole adminRole = roleRepository.findByName(ERole.ROLE_ADMIN)\r\n\t\t\t\t\t\t\t.orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\r\n\t\t\t\t\troles.add(adminRole);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"ROLE_POC\":\r\n\t\t\t\t\tRole modRole = roleRepository.findByName(ERole.ROLE_POC)\r\n\t\t\t\t\t\t\t.orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\r\n\t\t\t\t\troles.add(modRole);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tRole userRole = roleRepository.findByName(ERole.ROLE_USER)\r\n\t\t\t\t\t\t\t.orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\r\n\t\t\t\t\troles.add(userRole);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tuser.setRoles(roles);\r\n\t\tuserRepository.save(user);\r\n\t}", "User createUser(UserCreationModel user);", "private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }", "@Test\n public void testCreateAccountWithoutPassword() {\n final CreateUserRequest createUserRequest = new CreateUserRequest();\n createUserRequest.setUsername(\"beta@gamma.net\");\n createUserRequest.setFirstname(\"Beta\");\n createUserRequest.setLastname(\"Gamma\");\n\n // Now, perform the actual test - create the Account, and verify that\n // the response is ok, and that a Notification was sent\n final Response result = administration.createUser(token, createUserRequest);\n assertThat(result.isOk(), is(true));\n // Creating a new User should generate an Activate User notification\n final NotificationType type = NotificationType.ACTIVATE_NEW_USER;\n assertThat(spy.size(type), is(1));\n final String activationCode = spy.getNext(type).getFields().get(NotificationField.CODE);\n assertThat(activationCode, is(not(nullValue())));\n\n // Check that the user is in the list of members\n final String memberGroupId = findMemberGroup(token).getGroupId();\n token.setGroupId(memberGroupId);\n final FetchGroupRequest groupRequest = new FetchGroupRequest(memberGroupId);\n final FetchGroupResponse groupResponse = administration.fetchGroup(token, groupRequest);\n assertThat(groupResponse, is(not(nullValue())));\n }", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);" ]
[ "0.8115956", "0.80398196", "0.79162675", "0.7727045", "0.7580983", "0.74979806", "0.7491853", "0.7479807", "0.7251008", "0.72340876", "0.7225999", "0.7166533", "0.7133438", "0.7107897", "0.71038985", "0.710301", "0.7033626", "0.70090276", "0.70033056", "0.6972302", "0.6967697", "0.6966028", "0.6923454", "0.691539", "0.68817365", "0.68763995", "0.68680537", "0.68373096", "0.6833091", "0.68161106", "0.6794746", "0.67857057", "0.6785651", "0.67820615", "0.67752784", "0.6764378", "0.67426693", "0.6724443", "0.67200327", "0.6710367", "0.66960037", "0.6693152", "0.66899574", "0.6676779", "0.66674757", "0.66673124", "0.6658682", "0.66488165", "0.6618652", "0.65804595", "0.6578968", "0.6548752", "0.6537526", "0.6508515", "0.6494926", "0.6477698", "0.6466311", "0.64598346", "0.64422107", "0.6437011", "0.64252245", "0.6408293", "0.64037174", "0.6403381", "0.64019156", "0.6399802", "0.6395956", "0.6377462", "0.63767713", "0.6374653", "0.63714814", "0.6367476", "0.6359089", "0.6348552", "0.634707", "0.6325429", "0.6320448", "0.631102", "0.6310068", "0.63081896", "0.63046116", "0.6302703", "0.62965035", "0.6290912", "0.6278477", "0.6273685", "0.626462", "0.62581736", "0.62558657", "0.62525505", "0.62477994", "0.62463605", "0.623981", "0.62230444", "0.6216819", "0.6206282", "0.61918974", "0.6191138", "0.6187346", "0.6174337", "0.61732537" ]
0.0
-1
Returns a user created by the given id.
public iUser createUser(int id) { iUser user = null; String username = getUsername(); String password = getPassword(); boolean confirmed = confirmed(id, username); if (confirmed) { user = registerOptions(username, password, id); } return user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static User createUser(String id) {\n\n User user = new User();\n user.setId(id);\n\n return user;\n }", "static User create(int id){\n return Users.isMyID(id) ? new LoggedUser(id) : new User(id);\n }", "public User getUserFromId(final long id) {\n LOG.info(\"Getting user with id {}\", id);\n return userRepo.get(id);\n }", "public User getUser(int id){\n \n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n User user = null;\n try {\n tx = session.beginTransaction();\n\n // Add restriction to get user with username\n Criterion emailCr = Restrictions.idEq(id);\n Criteria cr = session.createCriteria(User.class);\n cr.add(emailCr);\n user = (User)cr.uniqueResult();\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null)\n tx.rollback();\n log.fatal(e);\n } finally {\n session.close();\n }\n return user;\n }", "public User getById(int id) {\n\t\treturn userDao.getById(id);\n\t}", "public User findOneUser(int id) {\n\t\treturn userMapper.findOneUser(id);\r\n\t}", "public User getUser(String id) {\n return repository.getUser(id).get(0);\n }", "public User findById(int id) {\n\t\treturn userRepository.findOne(id);\n\t}", "public User getUser(int id) {\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\t\n\t\tCursor cursor = db.query(TABLE_USERS, new String[] { KEY_USER_ID, \n\t\t\t\tKEY_PASSWORD, KEY_EMAIL }, KEY_USER_ID + \" = ?\",\n\t\t\t\tnew String[] { String.valueOf(id) }, null, null, null, null);\n\t\tif (cursor != null)\n\t\t\tcursor.moveToFirst();\n\t\t\n\t\tString password = cursor.getString(cursor.getColumnIndex(KEY_PASSWORD));\n\t\tString email = cursor.getString(cursor.getColumnIndex(KEY_EMAIL));\n\t\tUser user = new User(\n\t\t\t\tpassword,\n\t\t\t\temail,\n\t\t\t\tInteger.parseInt(cursor.getString(0)) );\n\t\t// return user\n\t\treturn user;\n\t\t}", "@Override\r\n\tpublic TbUser findUserById(Long id) {\n\t\tTbUser tbUser = tbUserMapper.selectByPrimaryKey(id);\r\n\t\treturn tbUser;\r\n\t}", "public User getUserById(Integer id) {\n\t\treturn userMapper.selectByPrimaryKey(id);\n\t}", "public User getUser(String id){\n \t\t// execute query\n \t\tString query = \"SELECT * FROM users WHERE id = '\" + id + \"'\";\n \t\tResultSet rs = getResult(query);\n \t\t\n \t\t// check if result is empty\n \t\ttry {\n \t\t\tif(rs.next() == false) return null;\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\t// otherwise create user with query result\n \t\tString hash = null;\n \t\tboolean isAdmin = false;\n \t\ttry {\n \t\t\thash = rs.getString(\"hash\");\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\ttry {\n \t\t\tisAdmin = rs.getBoolean(\"isAdmin\");\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\tString image = \"\";\n \t\ttry {\n \t\t\timage = rs.getString(\"image_url\");\n \t\t} catch (SQLException e) {e.printStackTrace();}\n \t\t\n \t\treturn new User(id, hash, isAdmin, this, image);\t\t\n \t}", "public User getUserById(int id) {\n\t\treturn userDao.getUserById(id);\r\n\t}", "public static User findById(final String id) {\n return find.byId(id);\n\n }", "public User findById(Long id) {\n return genericRepository.find(User.class, id);\n }", "public static User selectById(int id) {\n User user = new User();\n\n try (PreparedStatement ps = DBConnection.getConnection().prepareStatement(GET_BY_ID)){\n ps.setInt(1, id);\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n user.setUserId(rs.getInt(\"User_ID\"));\n user.setUserName(rs.getString(\"User_Name\"));\n user.setPassword(rs.getString(\"Password\"));\n user.setDateCreated(rs.getObject(\"Create_Date\", LocalDateTime.class));\n user.setCreatedBy(rs.getString(\"Created_By\"));\n user.setLastUpdate(rs.getTimestamp(\"Last_Update\"));\n user.setLastUpdatedBy(rs.getString(\"Last_Updated_By\"));\n //\n }\n } catch (SQLException err) {\n err.printStackTrace();\n }\n\n return user;\n }", "public User getUserById(int id) {\n\t\treturn em.find(User.class, id);\n\t}", "User getUser(Long id);", "@Override\n\tpublic User getOne(Integer id) {\n\t\treturn userDao.getOne(id);\n\t}", "private User getUser(Long id) {\n\t\tEntityManager mgr = getEntityManager();\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = mgr.find(User.class, id);\n\t\t} finally {\n\t\t\tmgr.close();\n\t\t}\n\t\treturn user;\n\t}", "public User user(long id) {\n\t\tOptional<User> user = repository.findById(id);\n\n\t\tif (user.isPresent()) {\n\t\t\treturn user.get();\n\t\t} else {\n\t\t\tthrow new NotFoundException(\"User com o Id: \" + id + \" não encontrado em nossa base de dados!\");\n\t\t}\n\n\t}", "public User findById(String id) {\n\t\treturn userDao.findById(id);\n\t}", "public User getUser(Long id) {\n\t\treturn userRepo.findByUserId(id);\n\t}", "public User findById(long id) {\n return store.findById(id);\n }", "User findOne(Long id);", "public User getById(Long id) throws DaoException {\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n User user = new User();\n try {\n connection = dataSourceUtils.getConnection(dataSource);\n preparedStatement = connection.prepareStatement(GET_USER_BY_ID);\n ResultSet resultSet = preparedStatement.executeQuery();\n\n if (resultSet.next()) {\n parseResultSet(resultSet, user);\n }\n } catch (SQLException e) {\n throw new DaoException(e);\n } finally {\n DataSourceUtils.releaseConnection(connection, dataSource);\n try {\n preparedStatement.close();\n } catch (SQLException e) {\n LOGGER.error(e);\n }\n }\n return user;\n }", "User getUserById(Long id);", "User getUserById(Long id);", "@Override\r\n\tpublic User user(int id) {\r\n\t\tMap<String,String> map = getOne(SELECT_USERS+ WHERE_ID, id);\r\n\t\tif(map!= null){\r\n\t\t\treturn IMappable.fromMap(User.class, map);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Transactional\n public UserDetails loadUserById(Long id) {\n ApplicationUser user = applicationUserRepository.findById(id).orElseThrow(\n () -> new UsernameNotFoundException(\"User not found with id : \" + id)\n );\n\n return UserPrincipal.create(user);\n }", "User getUserById(int id);", "@Override\r\n\tpublic User getUserByID(int id) {\n\t\treturn userMapper.getUserByID(id);\r\n\t}", "public User getUserById(String id) {\n // return userRepo.findById(id);\n\n return null;\n }", "public User getUser(Integer id)\n\t{\n\t\t// Create an user -1 for when it isn't in the list\n\t\tUser searchUser = new User();\n\t\t// Index: User's position in the list\n\t\tint index = this.getUserById(id.intValue());\n\t\t// If the user is in the list execute the action\n\t\tif(index != -1)\n\t\t{\n\t\t\tsearchUser = this.usersList.get(index);\n\t\t}\n\t\t\n\t\treturn searchUser;\n\t}", "public User findUser(int id) {\n\n\t\ttry {\n\t\t\tConnection conn = getConnection();\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"select * from users where id = ?\");\n\t\t\tps.setInt(1, id);\n\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tUser foundUser = new User(id, rs.getString(2), rs.getString(3), rs.getString(5),\n\t\t\t\t\t\trs.getDate(6));\n\t\t\t\tconn.close();\n\t\t\t\treturn foundUser;\n\n\t\t\t}\n\t\t\tconn.close();\n\n\t\t} catch (SQLException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\treturn null;\n\t}", "@Transactional\n public UserDto getUser(Long id) {\n User user = userRepository.findById(id).orElse(new User());\n\n return userConverter.entityToDto(user);\n }", "public User findById(int id) {\n\t\tString sql = \"SELECT * FROM VIDEOGAMESTORES.USERS WHERE ID=\" +id;\n\t\n\t\ttry {\n\t\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(sql);\n\t\t\twhile(srs.next())\n\t\t\t{\n\t\t\t\t// Add a new User to the list for every row that is returned\n\t\t\t\treturn new User(srs.getString(\"USERNAME\"), srs.getString(\"PASSWORD\"), srs.getString(\"EMAIL\"),\n\t\t\t\t\t\tsrs.getString(\"FIRST_NAME\"), srs.getString(\"LAST_NAME\"), srs.getInt(\"GENDER\"), srs.getInt(\"USER_PRIVILEGE\"), srs.getInt(\"ID\"));\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "@Override\n\tpublic User selectUserById(int id) {\n\t\tUser user = null;\n\t\ttry {\n\t\t\tuser = (User) client.queryForObject(\"selectUserById\", id);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn user;\n\n\t}", "@Override\n\tpublic User getUser(int id) {\n\t\treturn userRepository.findById(id);\n\t}", "public PrototypeUser getUserById(Long id) {\n\t\treturn userDao.findById(id);\r\n\t}", "public static User getUser(String id){\n\t\tWSResponse response = null;\n\t\tUser user = null;\n\t\ttry{\n\t\tPromise<WSResponse> result = WS.url(Utils.getApiUrl()+Urls.GET_ONE_USER+id)\n\t\t\t\t\t\t\t\t\t\t.setContentType(Urls.CONTENT_TYPE_JSON)\n\t\t\t\t\t\t\t\t\t\t.get();\n\t\tresponse = result.get(10000);\n\t\tuser = new Gson().fromJson(response.getBody(), User.class);\n\t\t} catch(Exception exception){\n\t\t\tController.flash(Messages.ERROR, Messages.CANT_LOAD_USERS + exception);\n\t\t}\n\t\treturn user;\n\t}", "public User getUserById(int id) {\n Cursor cursor = sqLiteDatabase.rawQuery(\"SELECT * FROM user WHERE id = ?\", new String[]{String.valueOf(id)});\n if (cursor != null) {\n User user = new User();\n cursor.moveToFirst();\n // int userid = cursor.getInt(0);\n String name = cursor.getString(1);\n int age = cursor.getInt(2);\n\n String countryCode = cursor.getString(3);\n\n Country country = new Country();\n country.setCode(countryCode);\n\n user.setName(name);\n user.setAge(age);\n user.setId(id);\n user.setCountry(country);\n\n cursor.close();\n return user;\n\n } else {\n Log.e(getClass().getName(), \"getUserById() cursor is null\");\n return null;\n }\n }", "public User findById(Long id){\n return userRepository.findOne(id);\n }", "public User getUserById(int id) {\n System.out.println(id + this.userDao.selectId(id).getUsername());\n\n return this.userDao.selectId(id);\n }", "public UserModel getUser(Integer id) {\n UserModel userModel = userRepository.findById(id).get();\n return userModel;\n }", "public Function<Session, User> get(long id) {\n return this.functionTransaction(\n session -> session.get(User.class, id)\n );\n }", "public User getUser(long id){\n User user = userRepository.findById(id);\n if (user != null){\n return user;\n } else throw new UserNotFoundException(\"User not found for user_id=\" + id);\n }", "private User findById(String id) {\n User result = new NullUserOfDB();\n for (User user : this.users) {\n if (user.getId().equals(id)) {\n result = user;\n break;\n }\n }\n return result;\n }", "public User getUser(long id) {\n\t\tUser user = null;\n\t\t\n\t\tString queryString = \n\t\t\t \"PREFIX sweb: <\" + Config.NS + \"> \" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \" +\n\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \" +\n\t\t\t \"PREFIX foaf: <http://xmlns.com/foaf/0.1/>\" +\n\t\t\t \"select * \" +\n\t\t\t \"where { \" +\n\t\t\t \t\"?user sweb:id \" + id + \".\" +\n\t\t\t \"} \\n \";\n\n\t Query query = QueryFactory.create(queryString);\n\t \n\t QueryExecution qe = QueryExecutionFactory.create(query, this.model);\n\t ResultSet results = qe.execSelect();\n\t \n\t while(results.hasNext()) {\n\t \tQuerySolution solution = results.nextSolution() ;\n\t Resource currentResource = solution.getResource(\"user\");\n\n\t user = this.buildUserFromResource(currentResource);\n\t \n\t user.setTweets(this.getTweetsByUserId(id));\n\t user.setVisited(this.getVenuesVisitedByUserId(id));\n\t user.setInContact(this.getInContactForUserId(id));\n\t }\n\t \n\t return user;\n\t}", "@Override\n\tpublic User getUserById(int id) {\n\t\treturn userDao.getUserById(id);\n\t}", "@Transactional\n public UserDetails loadUserById(Long id) {\n Employee user = korisnikRepository.findById(id).orElseThrow(\n () -> new UsernameNotFoundException(\"User not found with id : \" + id)\n );\n\n return UserPrincipal.create(user);\n }", "public static User findUserById(int id) {\n\n User user = null;\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findUserById = \"SELECT * FROM public.member \"\n + \"WHERE id = '\" + id + \"'\";\n\n PreparedStatement stmt = DBConnection.prepare(findUserById);\n\n try {\n ResultSet rs = stmt.executeQuery();\n while(rs.next()) {\n user = load(rs);\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n if(user != null) {\n targetUser = userIdentityMap.get(user.getId());\n if(targetUser == null) {\n userIdentityMap.put(user.getId(), user);\n return user;\n }\n else\n return targetUser;\n }\n return user;\n }", "@ApiMethod(name = \"user.getOrCreate\",\n\t\t path = \"user/getOrCreate\",\n\t\t httpMethod = HttpMethod.GET)\n\tpublic User getOrCreateUser(\n\t\t\tHttpServletRequest request,\n\t\t\t@Named(\"id\") String id,\n\t\t\t@Nullable @Named(\"name\") String name\n\t\t) throws UnauthorizedException {\n\t\t\n\t\tUtil.verifyClientKey(request);\n\t\t\n\t\t// fetch user\n\t\tKey<User> key = Key.create(User.class, id);\n\t\tUser user = ObjectifyService.ofy().load().key(key).now();\n\t\t\n\t\t// if user does not exist, create and save\n\t\tif (user == null) {\n\t\t\tuser = new User(id, name);\n\t\t\tObjectifyService.ofy().save().entity(user).now();\n\t\t}\n\t\t\n\t\treturn user;\n\t}", "public User getById(int id) {\n\t\t return (User)sessionFactory.getCurrentSession().get(User.class, id);\n\t}", "public User getUser(int id) {\n\t\treturn null;\n\t}", "public User getUserById(Integer userId_) {\n User user = new User();\n \n return user;\n }", "public Users getUser(Integer id) {\r\n\t\treturn usDao.findById(id, true);\r\n\r\n\t}", "@Override\r\n public IUser getUserByUserId(String id)\r\n {\r\n EntityManager em = getEntityManager();\r\n\r\n try\r\n {\r\n return em.find(User.class, id);\r\n }\r\n finally\r\n {\r\n em.close();\r\n }\r\n }", "public User selectoneuser(int id) {\n\t\tUser user = null;\n\t\tuser = new User();\n\t\tSystem.out.println(\"Userdao的id=\" + id);\n\t\tConnection conn = null;\n\t\tString sql = \"select * from users where id=\" + id;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tconn = ConnectDB.getconnect();\n\t\t\tPreparedStatement pstmt = conn.prepareStatement(sql);\n\t\t\trs = pstmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tuser.setId(rs.getInt(\"id\"));\n user.setUsername(rs.getString(\"username\"));\n user.setPassword(rs.getString(\"password\"));\n user.setPhonenumber(rs.getString(\"phonenumber\"));\n user.setEmail(rs.getString(\"email\"));\n\t\t\t}\n\t\t\tpstmt.close();\n\t\t\tconn.close();\n\t\t\treturn user;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"bookdao查询当前id结果失败\");\n\t\t}\n\t\treturn user;\n\t}", "public static User findUser(int id) {\r\n return null;\r\n }", "public Optional<User> getUser(UUID id) {\n return userRepository.findById(id);\n }", "public User findUserByName(String id) {\n return em.find(User.class, id);\n }", "public Utilisateur getUser(int id) {\n Utilisateur user = null;\n SQLiteDatabase db = this.getReadableDatabase(); // On veut lire dans la BD\n Cursor cursor = db.query(TABLE_USER, new String[]{USER_ID,\n USER_NOM, USER_AGE, USER_SEX}, USER_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n if (cursor != null && cursor.getCount()>0) {\n cursor.moveToFirst();\n user = new Utilisateur(cursor.getInt(0), cursor.getString(1), cursor.getString(2),\n cursor.getString(3));\n }\n cursor.close();\n db.close(); // Fermer la connexion\n// Retourner l'user\n return user;\n }", "@Override\r\n\tpublic User getUserById(int id) {\n\t\treturn userMapper.selById(id);\r\n\t}", "public User getUser(Integer id) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic LocalUser get(int id) {\n\t\treturn userDao.get(id);\r\n\t}", "public User getUser(int id) {\n User user = null;\n Session session = null;\n try {\n session = openSession();\n user = (User) session.get(User.class, id);\n } catch (HibernateException he) {\n logger.error(\"Hibernate Exception: \" + he);\n } catch (Exception e) {\n logger.error(\"Exception: \" + e);\n } finally {\n if (session != null) {\n session.close();\n }\n }\n return user;\n }", "@Override\n\tpublic User findUserById(int id) {\n\t\treturn userDao.findUserById(id);\n\t}", "private _User getUser(int id, String roomName) {\r\n return new _User(id, roomName);\r\n }", "public Users getUserById(int id) {\n\t\treturn userMapper.findUserById(id);\n\t}", "@Override\n\tpublic User findUser(int id) {\n\n\t\tUser user = em.find(User.class, id);\n\n\t\treturn user;\n\t}", "public User getUser(String id) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic User findByIdUser(Integer id) {\n\t\treturn userReposotory.findById(id).get();\r\n\t}", "public SignUpModel getSingleUser(int id) {\n\t\tSignUpModel data = signUpRepo.findById(id);\n\treturn data;\n\t}", "public User loadById(int id) {\n\t\treturn this.userDao.loadById(id);\r\n\t}", "public Optional<User> retrieveUser(Long id) {\n\t\treturn userRepository.findById(id);\n\t}", "public User read(String id);", "@Override\r\n\tpublic User findById(int id) {\n\t\treturn userDAO.findById(id);\r\n\t}", "User findOneById(long id);", "public User getUserById(Serializable id) {\n\t\treturn (User)this.userDao.getEntryById(id);\r\n\t}", "public User findUserById (long id){\n if(userRepository.existsById(id)){\n return this.userRepository.findById(id);\n }else{\n throw new UnknownUserException(\"This user doesn't exist in our database\");\n }\n }", "public User selectById(int id) {\n\t\treturn mapper.selectById(id);\n\t}", "@Override\n\tpublic User findByUserid(Serializable id) {\n\t\treturn this.userDao.findById(id);\n\t}", "public User getUserFromID(String id) {\r\n // Gets the collection of users and creates a query\r\n MongoCollection<Document> users = mongoDB.getCollection(\"Users\");\r\n Document query = new Document(\"_id\", new ObjectId(id));\r\n\r\n // Loops over users found matching the details, returning the first one\r\n for (User user : users.find(query, User.class)) {\r\n return user;\r\n }\r\n\r\n // Returns null if none are found\r\n return null;\r\n }", "public User getUserById(String id){\n\t\tUser e;\n\t\tfor (int i = 0 ; i < users.size() ; i++){\n\t\t\te = users.get(i);\n\t\t\tif (e.getId().equals(id))\n\t\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}", "protected UserEntity getUser(Long id) {\n return getEntityById(userRepository, id);\n }", "@Override\n\tpublic User getUserById(String id) {\n\t\tUser user = null;\n\t\tConnection connection = null;\n\t\ttry{\n\t\t\tconnection = BaseDao.getConnection();\n\t\t\tuser = userMapper.getUserById(connection,id);\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tuser = null;\n\t\t}finally{\n\t\t\tBaseDao.closeResource(connection, null, null);\n\t\t}\n\t\treturn user;\n\t}", "public User getById(@NotBlank String id){\n System.out.println(\"Sukses mengambil data User.\");\n return null;\n }", "@Transactional\r\n\tpublic User getUserById(int id) {\n\t\treturn cuser.getUserById(id);\r\n\t}", "User findById(Long id);", "@Override\n\tpublic User getByid(String id) {\n\t\treturn null;\n\t}", "@Override\n\tpublic User findUserByUserId(long id) {\n\t\treturn userDao.getUserByUserId(id);\n\t}", "User findUserById(int id);", "public User findUserById(Long id) {\n \tOptional<User> u = userRepository.findById(id);\n \t\n \tif(u.isPresent()) {\n return u.get();\n \t} else {\n \t return null;\n \t}\n }", "User getOne(long id) throws NotFoundException;", "@Transactional(readOnly = true)\n public HotelUser findOne(Long id) {\n log.debug(\"Request to get HotelUser : {}\", id);\n HotelUser hotelUser = hotelUserRepository.findOne(id);\n return hotelUser;\n }", "public User selectByPrimaryKey(Long id) {\r\n User key = new User();\r\n key.setId(id);\r\n User record = (User) getSqlMapClientTemplate().queryForObject(\"spreader_tb_user.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "public Optional<User> getUser(long id) {\n return entityCache.get(String.valueOf(id)).or(() -> dbServiceUser.getUser(id).map(user -> {\n entityCache.put(String.valueOf(id), user);\n return user;\n }));\n }", "@Override\n\tpublic User selectByPrimaryKey(Integer id) {\n\t\treturn userMapper.selectByPrimaryKey(id);\n\t}", "@Transactional(readOnly = true)\n public UserDto findOne(Long id) throws ResourceNotFoundException {\n User user = userRepository.findOneByIdWithEagerRelationships(id)\n .orElseThrow(() -> new ResourceNotFoundException(\"User not found\"));\n\n return new UserDto(user);\n }" ]
[ "0.7971211", "0.77921313", "0.7621718", "0.7351961", "0.73451364", "0.73390895", "0.7336235", "0.73103046", "0.7304572", "0.7276523", "0.7272736", "0.72352195", "0.72299415", "0.72282857", "0.72048104", "0.72019345", "0.71693885", "0.71593827", "0.71497333", "0.7142322", "0.714107", "0.7133987", "0.7127146", "0.7121658", "0.7097698", "0.7093651", "0.7092361", "0.7092361", "0.70732045", "0.7061831", "0.7041721", "0.7027776", "0.7022723", "0.7018192", "0.70136625", "0.6999469", "0.69976074", "0.6995182", "0.69912946", "0.6986532", "0.6982233", "0.6969173", "0.69638276", "0.69573605", "0.6944737", "0.69363385", "0.6934143", "0.69324034", "0.6920513", "0.69195527", "0.6919173", "0.6916807", "0.6916419", "0.690754", "0.690258", "0.6897415", "0.68917364", "0.6888655", "0.6887605", "0.6885156", "0.6881221", "0.68805814", "0.68783885", "0.68720967", "0.6867522", "0.68543005", "0.6854055", "0.68537027", "0.6852304", "0.68493724", "0.68410087", "0.6820373", "0.68001896", "0.6799622", "0.67980534", "0.67870986", "0.6776347", "0.67652637", "0.6758653", "0.675668", "0.67554015", "0.6747962", "0.6746758", "0.67437816", "0.6741513", "0.67408353", "0.6738434", "0.6728669", "0.6727997", "0.6716805", "0.6715241", "0.6709612", "0.66990685", "0.6676475", "0.6671737", "0.6667699", "0.6665604", "0.66543823", "0.66538703", "0.6649065" ]
0.77568626
2
File Upload Test uses Upload Button or Drag and Drop to upload a file. Test asserts that the file is uploaded.
@Test public void test(){ Driver.getDriver().get("http://localhost:7080/upload"); fl.chooseFile.sendKeys("C:\\Users\\Owner\\Downloads\\ToBeUploaded.txt"); fl.upload.click(); Assert.assertEquals(fl.uploadedText.getText(),"File Uploaded!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void fileUploadTest(){\n driver.get(\"https://the-internet.herokuapp.com/upload\");\n// When user selects an image from the desktop\n //Choose File button\n WebElement chooseFileButton=driver.findElement(By.id(\"file-upload\"));\n //Getting the PATH of the HOME directory with JAVA\n String homePath = System.getProperty(\"user.home\");\n String pathOfFlower = homePath+\"\\\\OneDrive\\\\Masaüstü\\\\flower.jpeg\";\n\n //Sending the path of flower to the button\n chooseFileButton.sendKeys(pathOfFlower);\n\n// And click on the upload button\n driver.findElement(By.id(\"file-submit\")).click();\n// Then verify the File Uploaded! Message displayed\n Assert.assertTrue(driver.findElement(By.xpath(\"//*[.='File Uploaded!']\")).getText().equals(\"File Uploaded!\"));\n\n }", "@Test\n public void uploadTest() throws ApiException {\n String path = null;\n Integer devid = null;\n File file = null;\n api.upload(path, devid, file);\n\n // TODO: test validations\n }", "@Test\n public void Upload()\n {\n }", "public void testSubmitWithoutUploadFile()\n\t{\n\t\ttester.startPage(MockFormFileUploadPage.class);\n\t\tMockFormFileUploadPage page = (MockFormFileUploadPage)tester.getLastRenderedPage();\n\n\t\tSession.get().setLocale(Locale.US);\n\n\t\tFormTester formTester = tester.newFormTester(\"form\");\n\t\t// without file upload\n\t\tformTester.submit();\n\t\tassertNull(page.getFileUpload());\n\n\t\ttester.assertErrorMessages(new String[] { \"Field 'file' is required.\" });\n\t}", "void uploadingFile(String path);", "public void pressOnUploadBtn() throws IOException {\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Open File\");\n File file = fileChooser.showOpenDialog(this);\n uploadFile(file);\n }", "@Test(priority = 1, description = \"podio {uploadFile} integration test positive case.\")\n public void testUploadFile() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:uploadFile\");\n esbRequestHeadersMap.put(\"Authorization\", \"Bearer \" + connectorProperties.getProperty(\"accessToken\"));\n \n String multipartProxyUrl = getProxyServiceURL(\"podio_uploadFile\");\n String requestString = multipartProxyUrl + \"?apiUrl=\" + apiUrl;\n MultipartFormdataProcessor multipartProcessor =\n new MultipartFormdataProcessor(requestString, esbRequestHeadersMap);\n \n File file = new File(pathToResourcesDirectory + connectorProperties.getProperty(\"uploadSourcePath\"));\n multipartProcessor.addFileToRequest(\"source\", file);\n multipartProcessor.addFormDataToRequest(\"filename\", connectorProperties.getProperty(\"uploadSourcePath\"));\n RestResponse<JSONObject> esbRestResponse = multipartProcessor.processForJsonResponse();\n \n String fileId = esbRestResponse.getBody().getString(\"file_id\");\n connectorProperties.put(\"fileId\", fileId);\n \n String apiEndPoint = apiUrl + \"/file/\" + fileId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"created_on\"),\n apiRestResponse.getBody().getString(\"created_on\"));\n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_via\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_via\").getString(\"name\"));\n esbRequestHeadersMap.remove(\"Authorization\");\n esbRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n }", "Path fileToUpload();", "@Test(enabled=true)\n\tpublic void verifySuccessfullyFileUploadedRenamedAndDeleted()\n\t{\t \n\t\thomepg = new LoginPage(driver);\n\t\tlandingpg = new LandingPage(driver);\n\t\thomepg.login();\n\t\tlandingpg.uploadFile();\n\t\tlandingpg.renameFile();\n\t\tlandingpg.deleteFile();\n\t\thomepg.logOut();\n\t}", "public void uploadFile(String filePath) {\n fileUploadContainer.file.sendKeys(filePath);\n }", "UploadInfo simpleUpload(SimpleFile file);", "public UploadTest() {\n super();\n setMargin(false);\n this.addComponent(uploader);\n uploader.addListener((Upload.SucceededListener) this);\n\n\n }", "public void upload() {\r\n if (file != null) {\r\n try {\r\n String filepath = super.getUploadFolder() + \"/\" + file.getFileName();\r\n filepath = FileUtil.alternativeFilepathIfExists(filepath);\r\n FileUtil.createFile(filepath);\r\n\r\n file.write(filepath);\r\n super.info(\"Succesful\", file.getFileName() + \" is uploaded.\");\r\n\r\n Upload upload = new Upload();\r\n upload.setDescription(description);\r\n upload.setFilepath(filepath);\r\n upload.setTag(Md5Util.getMd5Sum(filepath));\r\n this.description = null;\r\n uploads.add(upload);\r\n // update ui and ready for save in db\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n }\r\n }", "@SuppressWarnings(\"RedundantThrows\")\n @Test\n public void upload() throws IOException {\n }", "void whenUploadFile(MultipartFile file, HttpServletRequest request);", "public void testSetUpload() {\n try {\n sub.setUpload(null);\n } catch (Exception e) {\n fail(\"Should not throw anything.\");\n }\n }", "void fileUploaded(String path);", "@ParameterizedTest(name = \"#{index} - [{0}]\")\n\t@MethodSource(\"dataForTestUploadFile\")\n\tpublic void testUploadFile(final String label, final XmlDocMetadata expected, final ResultMatcher status)\n\t\t\tthrows Exception {\n\n\t\tResource xmlDoc = new ClassPathResource(TEST_FILES_LOCATION + expected.getFilename());\n\n\t\tMockMultipartFile fileToUpload = new MockMultipartFile(\"file\", expected.getFilename(), \"text/plain\",\n\t\t\t\tFiles.readString(xmlDoc.getFile().toPath()).getBytes());\n\n\t\tif (status.equals(STATUS_OK)) {\n\t\t\tMockito.when(service.store(Mockito.any(), Mockito.anyString())).thenReturn(expected);\n\t\t} else {\n\t\t\tMockito.when(service.store(Mockito.any(), Mockito.anyString())).thenThrow(StorageException.class);\n\t\t}\n\n\t\tMvcResult result = mockMvc.perform(MockMvcRequestBuilders//\n\t\t\t\t.multipart(PATH_ADD)//\n\t\t\t\t.file(fileToUpload)//\n\t\t\t\t.param(\"note\", expected.getNote())//\n\t\t\t\t.accept(MediaType.APPLICATION_JSON))//\n\t\t\t\t.andExpect(status).andReturn();\n\n\t\tif (status.equals(STATUS_OK)) {\n\t\t\tString contentAsString = result.getResponse().getContentAsString();\n\t\t\tassertNotNull(contentAsString);\n\t\t\tXmlDocMetadata actual = objectMapper.readValue(contentAsString, XmlDocMetadata.class);\n\t\t\tassertEquals(expected, actual, label);\n\t\t}\n\t}", "public void submit() {\n fileUploadContainer.upload.submit();\n }", "public FileUploadView(BrowserDriver browserDriver) {\n fileUploadContainer = PageFactory.initElements(browserDriver.getCurrentDriver(), FileUploadContainer.class);\n }", "@Test\n public void testFileSelection()\n\n {\n if (editContinentController.selectFile() != null)\n {\n assertTrue(true);\n }\n }", "@FXML\n\tvoid uploadBtnClicked(ActionEvent event) throws FileNotFoundException {\n\t\tArrayList<String> errorLog = new ArrayList<String>();\n\t\tFileChooser filechooser = new FileChooser();\n\t\tfilechooser.setTitle(\"upload finished exam\");\n\t\tFile selectedfile = filechooser.showOpenDialog(null);\n\t\tif (selectedfile != null && selectedfile.getName().endsWith(\".docx\")) {\n\t\t\t// here we need to implements upload file to sql DB\n\t\t\tMyFile fileToUpload = new MyFile(ClientUI.clientHandler.myDetails.getId(), examID, \"manual\");\n\t\t\tfileToUpload.setUserType(\"student\");\n\t\t\tbyte[] myByteArray = new byte[(int) selectedfile.length()];\n\t\t\tFileInputStream fileIn = new FileInputStream(selectedfile);\n\t\t\tBufferedInputStream bufferIn = new BufferedInputStream(fileIn);\n\t\t\tfileToUpload.initArray(myByteArray.length);\n\t\t\tfileToUpload.setSize(myByteArray.length);\n\t\t\ttry {\n\t\t\t\tbufferIn.read(fileToUpload.getMybytearray(), 0, myByteArray.length);\n\t\t\t\tClientUI.clientHandler.handleMessageFromClientUI(fileToUpload);\n\t\t\t\tString serverRespond = (String) ClientHandler.returnMessage;\n\t\t\t\tif (serverRespond.equals(\"success\")) {\n\t\t\t\t\tbufferIn.close();\n\t\t\t\t\tapproveImage.setVisible(true);\n\t\t\t\t\tSpecialCalls.callSuccessFrame(\"Exam uploaded successfuly\");\n\t\t\t\t\tflag2 = false;\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\terrorLog.add(\"Uploaded file is not valid\");\n\t\t\tSpecialCalls.callErrorFrame(errorLog);\n\t\t}\n\n\t}", "public void uploadFile(WebElement uploadfileelement, String filepath, By buttonelement) {\n\n\t\ttry {\n\t\t\t// enter the file path onto the file-selection input field\n\t\t\tuploadfileelement.sendKeys(filepath);\n\t\t\t// click the \"Upload\" button\n\t\t\tdriver.findElement(buttonelement).click();\n\t\t} catch (NoSuchElementException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t}", "public void setFileUpload(FileUpload fileUpload) {\r\n this.fileUpload = fileUpload;\r\n }", "public void handleFileUpload(FileUploadEvent event) {\r\n FacesMessage msg = new FacesMessage(\"Succesful\", event.getFile().getFileName() + \" is uploaded.\");\r\n UploadedFile file = event.getFile();\r\n try {\r\n file.write(super.getUploadFolder() + \"/\" + file.getFileName());\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n// RequestContext.getCurrentInstance().execute(\"PF('uploadJs').start()\");\r\n System.out.println(event.getFile().getFileName());\r\n FacesContext.getCurrentInstance().addMessage(null, msg);\r\n }", "public void uploader(WebDriver driver, String image, By browse, By upload, String name, StackTraceElement t) throws InterruptedException, NumberFormatException, IOException {\n\t\t String imageDir = Common.localImageDir;\n\t\t String imagePath = imageDir + File.separator + image;\n\t\t \n\t\t int i = 0;\n\t\t String xpath = \"//a[contains(@type,'image/jpeg;')][text()='\" + image + \"']\";\n\t\t By element = By.xpath(xpath);\n\t\t int size = 0;\n\t\t int errors = 0;\n\t\t while ((size == 0) && (errors == 0)) {\t\t\t \t\t \t \n\t\t \t if (i > 0) { fileWriterPrinter(\"Not a successful \\\"\" + image + \"\\\" \" + name + \" upload...will try again...\" + \"[Attempt #\" + (i+1) + \"]\"); }\n\t\t \t driver.findElement(browse).sendKeys(imagePath);\n\t\t \t Thread.sleep(1000);\n\t\t \t driver.findElement(upload).click();\n\t\t \t waitUntilElementInvisibility(driver, 10, Common.ajaxThrobber, \"Throbber\", new Exception().getStackTrace()[0]);\n\t\t \t if (i > 1) { errors = driver.findElements(By.xpath(Drupal.errorUpload)).size(); }\n\t\t \t if (errors > 0) { \n\t\t \t\t fileWriterPrinter(\"\\n\" + \"ERROR! The file could not be uploaded...\");\n\t\t \t\t moveToElement(driver, Drupal.confirmButton);\n\t\t \t\t }\n\t\t \t if (errors > 0) { assertWebElementNotExist(driver, t, By.xpath(Drupal.errorUpload)); }\t \n\t\t i++;\n\t\t Thread.sleep(1000);\n\t\t waitUntilElementPresence(driver, 2, element, \"\\\"\" + image + \"\\\"\", t, false);\n\t\t size = driver.findElements(element).size();\t\t \n\t\t }\n\t\t if (size == 1) { fileWriterPrinter(\"Successful \\\"\" + image + \"\\\" \" + name + \" upload!\"); }\n\t\t Thread.sleep(1000);\n\t }", "@Test (retryAnalyzer = Retry.class, groups={\"Secure - DataCourier\", \"Secure - Orders\"}, alwaysRun=true)\n\tpublic void uploadAndSubmitXML() throws Exception {\n\t\t\n\t\tExtentTest test = ExtentTestManager.getTest();\n\t\tRemoteWebDriver driver = DriverFactory.getInstance().getDriver();\n\t\t\n\t\tif (StoredVariables.getmobile().get()==false) {\n\t\t\n\t\t\t// Log in to Secure\n\t\t\tsecure.login(driver, user, StoredVariables.getpassword().get());\n\t\t\t\n\t\t\t// Go to Data Courier\n\t\t\tsecure.goToDataCourier(driver);\n\t\t\t\n\t\t\t// Get number of existing files\n\t\t\tString screenText = SDataCourier.numberOfFiles_txt(driver).getText();\n\t\t Matcher numberOfFiles = Pattern.compile(\"\\\\(([^)]+)\\\\)\").matcher(screenText);\n\t\t String numOfFilesStringValue = null;\n\t\t int files = 0;\n\t\t while(numberOfFiles.find()) {\n\t\t \tnumOfFilesStringValue = numberOfFiles.group(1);\n\t\t \tfiles = Integer.parseInt(numOfFilesStringValue);\n\t\t }\n\t\t \n\t\t\t// Click New File\n\t\t\tperform.click(driver, SDataCourier.newFile_btn(driver));\n\t\t\t\n\t\t\t// Click Upload XML\n\t\t\tperform.click(driver, SDataCourier.uploadXML_btn(driver));\n\t\t\t\n\t\t\t// Wait for overlay to be visible\n\t\t\tperform.waitForOverlayToBeVisible(driver);\n\t\t\t\n\t\t\t// Upload xml file\n\t\t\tString filePath = StoredVariables.getdocDir().get()+\"No UAD Hard Stops.xml\";\n\t\t\tsecure.uploadXMLFileInDataCourier(driver, filePath);\n\t\t\t\n\t\t\t// Wait for overlay to be hidden\n\t\t\tperform.waitForOverlayToBeHidden(driver);\n\t\t\t\n\t\t\t// Get number of files after the file upload\n\t\t\tscreenText = SDataCourier.numberOfFiles_txt(driver).getText();\n\t\t numberOfFiles = Pattern.compile(\"\\\\(([^)]+)\\\\)\").matcher(screenText);\n\t\t numOfFilesStringValue = null;\n\t\t int filesAfter = 0;\n\t\t while(numberOfFiles.find()) {\n\t\t \tnumOfFilesStringValue = numberOfFiles.group(1);\n\t\t \tfilesAfter = Integer.parseInt(numOfFilesStringValue);\n\t\t }\n\t\t\t\n\t\t\t// Verify the file was uploaded successfully\n\t\t Assert.assertTrue(filesAfter > files, \"The file count is incorrect. The original count was = \" + (files+1) + \" but is now = \" + filesAfter);\n\t\t \n\t\t\t// Go to Data Courier\n\t\t\tsecure.goToDataCourier(driver);\n\t\t\t\n\t\t\t// Click Uploaded folder\n\t\t\tperform.clickInTable_Equals(driver, \"Uploaded\");\n\t\t\t\n\t\t\t// Wait for busy to be hidden\n\t\t\tperform.waitForBusyToBeHidden(driver);\n\t\t\t\n\t\t\t// Sort by uploaded desc\n\t\t\tsecure.sortByUploadedDesc(driver);\n\t\n\t\t\t// Open the first record\n\t\t\tperform.clickInTable_Contains(driver, \"Test Name\");\n\t\t\t\n\t\t\t// Click View Order\n\t\t\tperform.click(driver, SDataCourier.viewOrder_btn(driver));\n\t\t\t\n\t\t\t// Wait for the Back button\n\t\t\tperform.waitForElementToBeClickable(driver, SDataCourierOrderDetails.back_btn(), \"cssSelector\");\n\t\t\t\n\t\t\t// Click Submit to UCDP button\n\t\t\tperform.click(driver, SDataCourierOrderDetails.submitToUCDP_btn(driver));\n\t\t\t\n\t\t\t// Wait for overlay to be visible\n\t\t\tperform.waitForOverlayToBeVisible(driver);\n\t\t\t\n\t\t\tThread.sleep(2000);\n\t\t\t\n\t\t\t// Switch to iFrame\n\t\t\tperform.waitForiFrameSrcAndSwitchToIt(driver, \"/Admin/OrderManagement/UCDPSubmit.aspx\", By.id(SDataCourierSubmitToUCDP.selectGSE_dropdown()));\n\t\t\t\n\t\t\t// Select GSE\n\t\t\tperform.selectDropdownOption(driver, SDataCourierSubmitToUCDP.selectGSE_dropdown(driver), \"Fannie Mae\");\n\t\t\t\n\t\t\t// Business unit\n\t\t\tperform.selectDropdownOption(driver, SDataCourierSubmitToUCDP.businessUnit_dropdown(driver), \"a la mode\");\n\t\t\t\n\t\t\t// Loan #\n\t\t\tloanNumber = perform.randomNumbers(driver, 8);\n\t\t\tSDataCourierSubmitToUCDP.loanNumber_txtbx(driver).clear();\n\t\t\tperform.type(driver, SDataCourierSubmitToUCDP.loanNumber_txtbx(driver), loanNumber);\n\t\t\t\n\t\t\t// Internal notes\n\t\t\tperform.type(driver, SDataCourierSubmitToUCDP.internalNotes_txtbx(driver), \"These are baseline test internal notes for Submit to UCDP\");\n\t\t\t\n\t\t\t// Click Send\n\t\t\tperform.click(driver, SDataCourierSubmitToUCDP.send_btn(driver));\n\t\t\t\n\t\t\t// Wait for Yes button\n\t\t\tperform.waitForElementToBeClickable(driver, SDataCourierSubmitToUCDP.yes_btn(), \"id\");\n\t\t\t\n\t\t\t// Verify Confirm change text\n\t\t\tAssert.assertTrue(SDataCourierSubmitToUCDP.message_txt(driver).getText().contains(\"Changing the Loan # for UCDP submission will change the Loan # in your order. Do you wish to make this change?\"), \"Confirm change text is incorrect\");\n\t\t\t\n\t\t\t// Click Yes\n\t\t\tperform.click(driver, SDataCourierSubmitToUCDP.yes_btn(driver));\n\t\t\t\n\t\t\t// Switch out of iFrame\n\t\t\tdriver.switchTo().defaultContent();\n\t\t\t\n\t\t\t// Wait for OK alert button\n\t\t\tperform.waitForElementToBeClickable(driver, SDataCourierSubmitToUCDP.ok_btn(), \"cssSelector\");\n\t\t\t\n\t\t\t// Verify alert text\n\t\t\tAssert.assertTrue(SDataCourierSubmitToUCDP.alert_txt(driver).getText().contains(\"Your report has been successfully submitted to UCDP and the Doc File ID has been added to order details. You should receive the status of the appraisal shortly. If you haven't received a response with your Summary Submission Report in the next 24 hours, please contact Client Relations at 1-800-900-4954.\"), \"UCDP Submission Complete alert text is incorrect\");\n\t\t\t\n\t\t\t// Click OK button\n\t\t\tperform.click(driver, SDataCourierSubmitToUCDP.ok_btn(driver));\n\t\t\t\n\t\t\t// Look up the order until the Documents button exists\n\t\t\t// After 5 minutes, exit the loop\n\t\t\tlong start_time = System.currentTimeMillis();\n\t\t\tlong wait_time = 300000;\n\t\t\tlong end_time = start_time + wait_time;\n\t\t\tList<WebElement> documents = driver.findElements(By.id(SDataCourierOrderDetails.documents_btn()));\n\t\t\twhile (System.currentTimeMillis() < end_time && documents.isEmpty())\n\t\t\t{\n\t\t\t\t// Wait for the Back button\n\t\t\t\tperform.waitForElementToBeClickable(driver, SDataCourierOrderDetails.back_btn(), \"cssSelector\");\n\t\t\t\t\n\t\t\t\t// Click the Back button\n\t\t\t\tperform.click(driver, SDataCourierOrderDetails.back_btn(driver));\n\t\t\t\t\n\t\t\t\t// Wait for Find textbox\n\t\t\t\tperform.waitForElementToBeClickable(driver, SDataCourier.find_txtbx(), \"id\");\n\t\t\t\t\n\t\t\t\t// Search for the document by loan number\n\t\t\t\tsecure.findDocument(driver, loanNumber, \"Loan Number\");\n\t\t\t\t\n\t\t\t\t// Open the first record\n\t\t\t\tperform.clickInTable_Contains(driver, \"Test Name\");\n\t\t\t\t\n\t\t\t\t// Click View Order\n\t\t\t\tperform.click(driver, SDataCourier.viewOrder_btn(driver));\n\t\t\t\t\n\t\t\t\t// Wait for the Back button\n\t\t\t\tperform.waitForElementToBeClickable(driver, SDataCourierOrderDetails.back_btn(), \"cssSelector\");\n\t\t\t\t\n\t\t\t\t// Look for Documents button\n\t\t\t\tdocuments = driver.findElements(By.id(SDataCourierOrderDetails.documents_btn()));\n\t\t\t}\n\t\t\t\n\t\t\t// Verify loan number was updated\n\t\t\tAssert.assertTrue(SDataCourierOrderDetails.loanNumber_txt(driver).getText().equals(loanNumber), \"The loan number did not get updated. It should be = \" + loanNumber + \" , but it is = \" + SDataCourierOrderDetails.loanNumber_txt(driver).getText());\n\t\t\t\n\t\t\t// Verify history text\n\t\t\tAssert.assertTrue(SDataCourierOrderDetails.history_txt(driver).getText().contains(\"UCDP Document File ID Updated by\"), \"The History table is missing information\");\n\t\t\tAssert.assertTrue(SDataCourierOrderDetails.history_txt(driver).getText().contains(\"Note Added by\"), \"The History table is missing information\");\n\t\t\tAssert.assertTrue(SDataCourierOrderDetails.history_txt(driver).getText().contains(\"These are baseline test internal notes for Submit to UCDP\"), \"The History table is missing information\");\n\t\t\tAssert.assertTrue(SDataCourierOrderDetails.history_txt(driver).getText().contains(\"Appraisal Submitted to FNM via UCDP by\"), \"The History table is missing information\");\n\t\t \n\t\t\t// Log test\n\t\t\ttest.log(LogStatus.INFO, \"data courier\", \"Uploaded and submitted XML file successfully\");\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t// Log test\n\t\t\ttest.log(LogStatus.INFO, \"data courier\", \"Did not run because files cannot be uploaded from mobile\");\n\t\t\t\n\t\t} // end if/else\n\t\t\n\t}", "private void uploadFile(final File file) throws IOException {\n if (file != null) {\n Network.sendMsg(new FileMessage(Paths.get(file.getAbsolutePath())));\n }\n }", "public void testUploadSpecification() throws Exception {\r\n FileDataSource dataSource = new FileDataSource(\"test_files/stress.jar\");\r\n DataHandler dataHandler = new DataHandler(dataSource);\r\n\r\n Date startTime = new Date();\r\n services.uploadSpecification(StressTestHelper.PROJECT_ID,\r\n StressTestHelper.USER_ID, \"submission.jar\", dataHandler);\r\n\r\n Date endTime = new Date();\r\n\r\n System.out.println(\"Run uploadSpecification for a big file takes \"\r\n + (endTime.getTime() - startTime.getTime()) + \" milliseconds\");\r\n\r\n // check the result\r\n File uploadedDir = new File(\"test_files/upload/\");\r\n File uploaded = uploadedDir.listFiles()[0];\r\n assertEquals(\"Failed to upload submission\", new File(\"test_files/stress.jar\").length(), uploaded.length());\r\n }", "void btnValidateFile(File file);", "public void testUploadTestCases() throws Exception {\r\n FileDataSource dataSource = new FileDataSource(\"test_files/stress.jar\");\r\n DataHandler dataHandler = new DataHandler(dataSource);\r\n\r\n Date startTime = new Date();\r\n for (int i = 0; i < 10; ++i) {\r\n services.uploadTestCases(StressTestHelper.PROJECT_ID, StressTestHelper.USER_ID,\r\n \"testcases.jar\", dataHandler);\r\n }\r\n\r\n Date endTime = new Date();\r\n\r\n System.out.println(\"Executing uploadTestCases for 10 times takes \"\r\n + (endTime.getTime() - startTime.getTime()) + \" milliseconds\");\r\n\r\n // check the result\r\n Upload upload = uploadManager.getCreatedUpload();\r\n\r\n assertEquals(\"Wrong type\", \"Test Case\", upload.getUploadType().getName());\r\n assertEquals(\"Wrong status\", \"Active\", upload.getUploadStatus().getName());\r\n assertEquals(\"Wrong project id\", StressTestHelper.PROJECT_ID, upload.getProject());\r\n assertTrue(\"Wrong file name\", upload.getParameter().startsWith(\"submission\"));\r\n assertTrue(\"Wrong file name\", upload.getParameter().endsWith(\"jar\"));\r\n assertEquals(\"Wrong user id\", String.valueOf(StressTestHelper.USER_ID), uploadManager.getCreatedUploadUserId());\r\n\r\n File uploadedDir = new File(\"test_files/upload/\");\r\n File uploaded = uploadedDir.listFiles()[0];\r\n assertEquals(\"Failed to upload submission\", new File(\"test_files/stress.jar\").length(), uploaded.length());\r\n }", "@Test\n void searchListButtonClicked() {\n //if file chooser function finds GroceryList.txt\n\n }", "public static void uploadImage(String fileName) {\n EntityCreationPage.generalPanel.uploadPanel().sendKeys(System.getProperty(\"user.dir\") + \"/src/test/testData/\" + fileName);\n try {\n wait.until(ExpectedConditions.invisibilityOf(EntityCreationPage.uploadingMessage()));\n } catch (WebDriverException ignored) {\n }\n }", "@Test\n public void filesPostTest() throws ApiException {\n FilePayload filePayload = null;\n Integer expiresAfterDays = null;\n FileInfo response = api.filesPost(filePayload, expiresAfterDays);\n\n // TODO: test validations\n }", "@Test\n public void _01UploadFile() throws ApiException {\n api.getApiClient().setAccessToken(ACCESS_TOKEN);\n File stream = new File(IMAGE_URL.getFile());\n OCRJobResponse response = api.uploadFile(stream);\n Assert.assertNotNull(response);\n Assert.assertNotNull(response.getJobId());\n Assert.assertNotNull(response.getJob());\n Assert.assertEquals(OCRJobResponse.StatusEnum.INPUTS_UPLOADED, response.getStatus());\n ocrJob = response.getJob();\n }", "@Test\n public void fileTypeTest() {\n // TODO: test fileType\n }", "@Test (enabled = true , retryAnalyzer = Retry.class, testName=\"Sanity Tests\", description = \"Test the Upload utility with Android\" ,\n\t\t\tgroups= {\"Sanity Android\"})\t\n\tpublic void uploadImage() throws ParserConfigurationException, SAXException, IOException, InterruptedException{\n\t\tgenMeth.clickId( genMeth, droidData.BTNlsm_ID);\n\t\tgenMeth.clickName( genMeth, \"upload from existing test\");\n\t\tboolean isEmpty = genMeth.checkIsElementVisible(By.name(droidData.NoFilesFound_Name));\n\t\tif ( isEmpty != true){\n\t\t\t\n\t\t\tgenMeth.longPressElement(driver, genMeth, By.id(droidData.ListSecondaryText_ID));\n\t\t\tgenMeth.clickName( genMeth, droidData.BTNdelete_name);\n\t\t\tgenMeth.clickId( genMeth, droidData.BTNdeleteConfirm_id);\n\t\t\tgenMeth.clickName(genMeth, droidData.BTNmoreOptions_Name);\n\t\t\tgenMeth.clickName(genMeth, droidData.BTNrefresh_name);\n\t\t\tisEmpty = genMeth.checkIsElementVisible(By.name(droidData.NoFilesFound_Name));\n\t\t}\n\t\t\n\t\t\n\t\t//Make sure that the folder is empty\n\t\t\n\t// Capture an image\n\t\tgenMeth.clickName( genMeth, droidData.BTNupload_name);\n\t\tgenMeth.clickName( genMeth, droidData.OPTIONcaptureNewPhoto_name);\n\t\tThread.sleep(2000);\n\t\t\n//\t\tgenMeth.clickId( genMeth, droidData.BTNcapturePhoto_LG_id);\n\t\tgenMeth.clickName(genMeth, droidData.BTNcapturePhoto_GooglePhone_Name);\n\t\tgenMeth.clickName(genMeth, droidData.IconReviewDoneForImageGooglePhone_Name);\n\n//\t\tgenMeth.clickName( genMeth, droidData.BTNok_Name);\n\t\tThread.sleep(2000);\n\t\tgenMeth.clickClassName(driver, genMeth, droidData.BTNmoreOptions_ClassName);\n\t\tgenMeth.clickName( genMeth, droidData.BTNrefresh_name);\n\t\t\n\t// Check if the image display in the list\n\t\tWebElement uploadedImage = genMeth.returnId(driver, genMeth, \"com.pogoplug.android:id/text_secondary\");\n\t\tString lastUpload = uploadedImage.getText();\n\t\tString currentUpload= \"None\";\n\t\tThread.sleep(1000);\n\t\t\n\t// Add an if that will verify that the Upload has finished (compare the KB - once not changing it probably has finished or stuck)\t\n\t\tif (lastUpload != currentUpload ){\n\t\t\tgenMeth.clickClassName(driver, genMeth, droidData.BTNmoreOptions_ClassName);\n\t\t\tgenMeth.clickName( genMeth, droidData.BTNrefresh_name);\n\t\t\tlastUpload = uploadedImage.getText();\n\t\t\tThread.sleep(5000);\n\t\t\tgenMeth.clickClassName(driver, genMeth, droidData.BTNmoreOptions_ClassName);\n\t\t\tgenMeth.clickName( genMeth, droidData.BTNrefresh_name);\n\t\t\tcurrentUpload = uploadedImage.getText();\n\t\t\t\n\t\t}\n\t\t\n\t// Open the image & make sure that it displays \n\t\tgenMeth.clickName( genMeth, currentUpload);\n\t// Make sure that the \"Image not available\" text doesn't displayed\n\t\tThread.sleep(3000);\n\t\tgenMeth.isElementInvisibleText( By.name(droidData.ImageNotAvailable_Name), droidData.ImageNotAvailable_Name);\n\t\tgenMeth.takeScreenShotPositive( genMeth, \"testUploadImage\");\n\t\tThread.sleep(1000);\t\n\t//\tgenMeth.clickXpth(driver, genMeth, \"//android.view.View[1]\");\n\t\tgenMeth.clickId( genMeth, droidData.FullScreen_ID);\n\t\tgenMeth.clickId( genMeth, droidData.BTNhome_ID);\n\t// Delete the image\n\t\tgenMeth.longPressElement(driver, genMeth, By.id(droidData.ListSecondaryText_ID));\n//\t\tThread.sleep(5000);\n\t\tgenMeth.clickName( genMeth, droidData.BTNdelete_name);\n\t\tgenMeth.clickId( genMeth, droidData.BTNdeleteConfirm_id);\n\t// Check that the image was deleted\n\t\tgenMeth.isElementInvisible( By.id(droidData.FullScreen_ID));\n\t\tgenMeth.clickClassName(driver, genMeth, droidData.BTNmoreOptions_ClassName);\n\t\tgenMeth.clickName( genMeth, droidData.BTNrefresh_name);\n\t\tgenMeth.isElementVisible(By.name(droidData.NoFilesFound_Name));\n\t\t//Back to start page\n\t\tgenMeth.pressBackButton();\n\t\tgenMeth.clickId(genMeth, droidData.BTNlsm_ID);\n\t\tgenMeth.isTextPresentAndroid(driver, By.name(droidData.CATEGORIES), droidData.CATEGORIES);\n\n\t\t\n\t\t}", "int uploadFeature(File file, String project) throws IOException, SQLException;", "@Test\n void buildWithFilePart() {\n MultipartFileBuilder builder = new MultipartFileBuilderImpl(\n System.getProperty(\"java.io.tmpdir\"));\n final byte[] value = UUID.randomUUID().toString().getBytes(StandardCharsets.UTF_8);\n StepVerifier\n .create(builder.build(createFilePart(value, \"file\", MediaType.TEXT_PLAIN, \"test.txt\")))\n .assertNext(multipartFile -> {\n try {\n assertFalse(multipartFile.isEmpty());\n assertEquals(\"file\", multipartFile.getName());\n assertEquals(MediaType.TEXT_PLAIN_VALUE, multipartFile.getContentType());\n assertEquals(\"test.txt\", multipartFile.getOriginalFilename());\n assertEquals(value.length, (int) multipartFile.getSize());\n assertArrayEquals(value, multipartFile.getBytes());\n\n } catch (IOException e) {\n throw ServiceException.internalServerError(\"Fatal error\", e);\n } finally {\n FileAwareMultipartFile.delete(multipartFile);\n }\n })\n .verifyComplete();\n }", "@Test\n public void filesCreateTest() throws ApiException {\n String owner = null;\n String repo = null;\n FilesCreate data = null;\n PackageFileUpload response = api.filesCreate(owner, repo, data);\n\n // TODO: test validations\n }", "@Test(priority = 4)\n\tpublic void inValideFileType() throws JsonProcessingException {\n\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/statuscode.txt\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tresp.then().body(\"message\",equalTo(\"Invalide File Type.\"));\n\t\ttest.log(LogStatus.PASS, \"Invalide File Type\");\n\t\tAssert.assertEquals(resp.getStatusCode(),400);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 400 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\t}", "@Test(priority = 1)\n\tpublic void validePathWithValideData() {\n\n\t\t\n\t\tSystem.out.println(\"file \"+currentDirectory);\n\t\tSystem.out.println( new File(\"./src/test/resources/Sovdata.xlsx\"));\n\t\t\n\t\ttest.log(LogStatus.INFO, \"My test is starting.....\");\n\t\tResponse resp=given()\n\t .contentType(\"multipart/form-data\")\n\t .multiPart(\"product_line\",\"testing\")\n\t .multiPart(\"file\", new File(\"./src/test/resources/Sovdata.xlsx\"))\n\t .post(APIPath.apiPath.POST_VALID_PATH);\n\n\t\tresp.then().body(\"message\",equalTo(\"SOV data uploaded successfully.\"));\n\t\ttest.log(LogStatus.PASS, \"SOV data uploaded successfully.\");\n\t\tAssert.assertEquals(resp.getStatusCode(),201);\n\t\ttest.log(LogStatus.PASS, \"Successfully validated status code expected 201 and Actual status code is :: \" + resp.getStatusCode());\n\n\t\t\n\t\ttest.log(LogStatus.INFO, \"My Test Has been ended \");\n\n\t}", "UploadInfo advancedUpload(AdvanceFile file);", "public handleFileUpload() {\r\n\t\tsuper();\r\n\t}", "public void uploader(WebDriver driver, String image, By browse, By upload) throws InterruptedException {\n\t\t String imageDir = Common.localImageDir;\n\t\t String imagePath = imageDir + File.separator + image;\n\t\t try{\n \t driver.findElement(browse).sendKeys(imagePath);\n \t Thread.sleep(1000);\n \t driver.findElement(upload).click();\n \t waitUntilElementInvisibility(driver, 10, Common.ajaxThrobber, \"Throbber\", new Exception().getStackTrace()[0]);\n }catch(Throwable e) { e.printStackTrace(); }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tuploadButton.setLabel(\"Uploading...\");\n\t\t\t\tsubmitConfiguration();\n\t\t\t\tuploadButton.setLabel(\"Upload\");\n\t\t\t}", "@FXML\r\n void ClickUploadBtn(ActionEvent event) throws IOException {\r\n FileChooser fileExplorer = new FileChooser();\r\n File file = fileExplorer.showOpenDialog(null);\r\n //Open a file explorer and ask user to select a file\r\n if(file != null && file.exists())\r\n {\r\n UploadScriptField.setText(file.getCanonicalPath());\r\n //Set the upload field text\r\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\r\n \"dd/MM/yyyy\");\r\n TextInputDialog dialog = new TextInputDialog(\"Command to\"\r\n + \" run script\");\r\n dialog.setTitle(\"Found script from File Explorer\");\r\n dialog.setHeaderText(\"Enter Command to run\");\r\n Optional<String> result = dialog.showAndWait();\r\n //Wait for response\r\n if(result.isPresent())\r\n {\r\n TextInputDialog dialogDescription = new \r\n TextInputDialog(\"Script Description\");\r\n dialogDescription.setTitle(\"Found script in explorer\");\r\n dialogDescription.setHeaderText(\"Enter script description\");\r\n Optional<String>resultDesc =dialogDescription.showAndWait();\r\n if(resultDesc.isPresent())\r\n {\r\n //Set the date format for the string\r\n //set the image view as the delete button\r\n user.getListOfScripts().add(new Script(file.getName(),\r\n formatter.format(LocalDate.now()), \r\n dialogDescription.getResult(), \r\n dialog.getResult()));\r\n //Add script to list and set details\r\n scriptTable.setItems(user.getListOfScripts());\r\n //Reload table\r\n user.setListOfScripts(user.getListOfScripts());\r\n }\r\n }\r\n }\r\n }", "@Test\n public void fileIdTest() {\n // TODO: test fileId\n }", "@Override\n public boolean transferFile (MultipartFile file, String tag, String resultFilename) {\n try {\n file.transferTo(new File(Constans.UPLOADPATH + \"/\" + tag + \"/\" + resultFilename));\n }catch (IOException e){\n e.printStackTrace();\n return false;\n }\n return true;\n }", "@Test(priority = 1, dependsOnMethods = { \"testUploadFile\" }, description = \"podio {getFile} integration test with \" +\n \"mandatory parameters.\")\n public void testGetFileWithMandatoryParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Content-Type\", \"application/json\");\n esbRequestHeadersMap.put(\"Action\", \"urn:getFile\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getFile_mandatory.json\");\n \n String apiEndPoint = apiUrl + \"/file/\" + connectorProperties.getProperty(\"fileId\");\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"link\"), apiRestResponse.getBody().getString(\"link\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"file_id\"), connectorProperties.getProperty(\"fileId\"));\n }", "public Long createFileUpload(FileUpload fileUpload, InputStream fileInputStream) throws AppException;", "@PostMapping(\"/filesupload\")\n\tpublic String file(HttpServletRequest servletRequest, @ModelAttribute Type file)\n\t\t\tthrows IllegalStateException, IOException\n\t{\n\t\t/* Upload to drive */\n\t\tappservice.fileUpload(file.getMultipartFile());\n\t\t/* Returns to home.html */\n\t\treturn \"application.html\";\n\t}", "public void openFileDialog() {\n\tswitch(buttonAction) {\n\t case SELECT_FILES:\n openFileDialog(fileUpload, true);\n break;\n\t case SELECT_FILE:\n default:\n openFileDialog(fileUpload, false);\n break;\n\t}\n }", "public void uploader(WebDriver driver, String image, By browse, By upload, Robot robot, String name) throws NumberFormatException, IOException {\n\t\t String parentWindowHandle = driver.getWindowHandle();\n\t\t int i = 0;\n\t\t String xpath = \"//a[contains(@type,'image/jpeg;')][text()='\" + image + \"']\";\n\t\t By element = By.xpath(xpath);\n\t\t int size = driver.findElements(element).size();\t\t \n\t\t while (size == 0) {\n\t\t try {\n\t\t \t String previousURL = driver.getCurrentUrl();\n\t\t if (i > 0) { fileWriterPrinter(\"Not a successful \\\"\" + image + \"\\\" \" + name + \" upload...will try again...\"); }\n\t\t\t \n\t\t robot.keyPress(KeyEvent.VK_CANCEL); // close previous in the beginning\n\t\t robot.keyRelease(KeyEvent.VK_CANCEL);\n\t\t driver.findElement(browse).click();\n\t\t\t \n\t\t waitUntilUrl(driver, previousURL); \n\t\t chooseImageRobot(driver, image, robot);\n\t\t alertHandler(driver);\n\t\t closeAllOtherWindows(driver, parentWindowHandle);// driver.switchTo().window(parentWindowHandle);\n\t\t \n\t\t\t driver.findElement(upload).click();\n\t\t\t waitUntilElementInvisibility(driver, 10, Common.ajaxThrobber, \"Throbber\", new Exception().getStackTrace()[0]);\n\t\t } catch(Exception e) {}\n\t\t i++;\n\t\t size = driver.findElements(element).size(); \n\t }\n\t\t if (size == 1) { fileWriterPrinter(\"Successful \\\"\" + image + \"\\\" \" + name + \" upload!\"); }\n\t }", "@And(\"Select Attach File Button\")\n\tpublic void AttachFile() throws IOException, InterruptedException {\n\t\tdriver.findElement(By.xpath(\"//div[@class='bAK' ]//child::div[@aria-label='Attach files']\")).click();\n\t\tRuntime.getRuntime().exec( System.getProperty(\"user.dir\")+ \"\\\\src\\\\test\\\\resources\\\\FileUpload.exe\");\n\t\tThread.sleep(10000); \n\t\t}", "@Override\n public void onClick(View view) {\n if (view == buttonChoose) {\n showFileChooser();\n }\n //if the clicked button is upload\n else if (view == buttonUpload)\n {\n\n\n\n uploadFile();\n\n\n }\n }", "@Test\n public void filesCompleteTest() throws ApiException {\n String owner = null;\n String repo = null;\n String identifier = null;\n FilesComplete data = null;\n PackageFileUpload response = api.filesComplete(owner, repo, identifier, data);\n\n // TODO: test validations\n }", "@Test\n public void testCreateFileImport() {\n FileImportTO lFileImportTO = new FileImportTO( FILE_NAME, QUEUED, WAREHOUSE_STOCK_LEVEL,\n new HumanResourceKey( 1, 1992 ) );\n\n UtlFileImportKey lFileImportKey = iBulkLoadDataService.createFileImport( lFileImportTO );\n\n UtlFileImportTableRow lFileImportRow = iFileImportDao.findByPrimaryKey( lFileImportKey );\n\n // Assert whether the file header information has been set properly\n assertEquals( \"File name\", FILE_NAME, lFileImportRow.getFileName() );\n assertEquals( \"File action type\", WAREHOUSE_STOCK_LEVEL, lFileImportRow.getFileActionType() );\n\n }", "@Test\r\n public void test_performLogic_Accuracy1() throws Exception {\r\n try {\r\n UploadedDocument doc = new UploadedDocument();\r\n doc.setDocumentId(1);\r\n doc.setContestId(1);\r\n doc.setFileName(\"test.txt\");\r\n doc.setPath(\"test_files\");\r\n doc.setMimeTypeId(new MimeTypeRetriever().getMimeTypeIdFromFileName(\"test_files/test.txt\"));\r\n List<UploadedDocument> docUploads = new ArrayList<UploadedDocument>();\r\n docUploads.add(doc);\r\n\r\n instance.performLogic(docUploads);\r\n\r\n String expectedContents = TestHelper.getFileContents(\"test_files/test.txt\");\r\n\r\n // make sure file was added\r\n assertEquals(\"content type is wrong\", \"text/plain\", instance.getContentType());\r\n assertEquals(\"content length is wrong\", expectedContents.length(), instance.getContentLength());\r\n assertEquals(\"content disposition is wrong\", \"attachment;filename=test.txt\", instance\r\n .getContentDisposition());\r\n\r\n // make sure input stream was set correctly and file contents are correct\r\n StringWriter writer = new StringWriter();\r\n IOUtils.copy(instance.getInputStream(), writer);\r\n String actualContents = writer.toString();\r\n assertEquals(\"input stream is wrong\", expectedContents, actualContents);\r\n } finally {\r\n IOUtils.closeQuietly(instance.getInputStream());\r\n }\r\n }", "public void upload_file(FileUploadEvent event) throws IOException {\n \t\n \tUploadedFile uploaded_file=event.getFile();\n \tFacesContext context = FacesContext.getCurrentInstance();\n \t\n\t\tHttpSession session = (HttpSession) FacesContext.getCurrentInstance()\n \t\t\t\t.getExternalContext().getSession(true);\n \t\tString pictures_folder=session.getAttribute(\"pictures_folder\").toString();\n \t\t\n \t\tPath folder = Paths.get(pictures_folder);\n\t\t\n\t\tString filename = FilenameUtils.getBaseName(uploaded_file.getFileName()); \n\t\tString extension = FilenameUtils.getExtension(uploaded_file.getFileName());\n\t\t//tou dinei rando onoma\n\t\tPath file = Files.createTempFile( folder,filename+\"-\" , \".\" + extension);\n\t\tSystem.out.println(\"folder: \"+folder.toString()+\"\\n\"+\"filename: \"+filename+\"\\n\"\n\t\t \t+ \"file: \"+file.toString());\n\t\t\n\t\tString profile_url;\n\t\ttry (InputStream input =uploaded_file.getInputstream()) {\n\t\t Files.copy(input, file, StandardCopyOption.REPLACE_EXISTING);\n\t\t profile_url=file.toString().split(\"/\")[file.toString().split(\"/\").length-1];\n\t\t}\n\n\t\tSystem.out.println(\"Uploaded picture successfully saved in \" + profile_url);\n\t\tString message=\"Pictures were uploaded Successfully\";\n\t\tFacesMessage facesMessage_11 = new FacesMessage(message);\n context.addMessage(files_upload_UI.getClientId(context), facesMessage_11);\n\t\t\n\t\t\n\t\t\n }", "public void upload(UploadedFile file) {\n FacesContext faces = FacesContext.getCurrentInstance();\n\n getSelected().setUrlImage(file.getFileName());\n String fileExtension = file.getFileName().split(\"\\\\.\")[file.getFileName().split(\"\\\\.\").length - 1];\n\n //String generatedFileName = \"file\" + System.currentTimeMillis();\n File directory = new File(faces.getExternalContext().getRealPath(UPLOAD_DIRECTORY_IMAGE_RELATIVE));\n\n if (!directory.exists()) {\n directory.mkdir();\n }\n\n File newFile = new File(faces.getExternalContext().getRealPath(UPLOAD_DIRECTORY_IMAGE_RELATIVE) + File.separator + file.getFileName());\n try {\n if (!newFile.createNewFile()) {\n String nameGenerated = \"file_generated\" + System.currentTimeMillis();\n newFile = new File(faces.getExternalContext().getRealPath(UPLOAD_DIRECTORY_IMAGE_RELATIVE) + File.separator + nameGenerated + \".\" + fileExtension);\n getSelected().setUrlImage(nameGenerated);\n }\n\n FileOutputStream output = new FileOutputStream(newFile);\n\n byte[] buffer = new byte[BUFFER];\n\n int bulk;\n\n InputStream input = file.getInputstream();\n\n while (true) {\n bulk = input.read(buffer);\n\n if (bulk < 0) {\n break;\n }\n\n output.write(buffer, 0, bulk);\n output.flush();\n }\n\n output.close();\n input.close();\n\n } catch (Exception ex) {\n ex.printStackTrace();\n FacesContext.getCurrentInstance().addMessage(\"\", new FacesMessage(bundle.getString(\"Error_file_created\")));\n }\n\n }", "@Test\n public void testUploadToAmazonS3() throws Exception {\n String uploadFileName = \"test_upload.jpg\";\n byte[] uploadFilenameBytes = IOUtils.toByteArray(new ClassPathResource(uploadFileName).getInputStream());\n\n MockMultipartFile file = new MockMultipartFile(\"file\", uploadFileName, null, new ClassPathResource(uploadFileName).getInputStream());\n\n // make request to our server\n byte[] result = mockMvc.perform(fileUpload(\"/api/v1/storage/upload\")\n .file(file).with(user(\"test2@nbakaev.ru\").roles(\"USER\", \"ADMIN\")))\n .andExpect(status().is(201)).andReturn().getResponse().getContentAsByteArray();\n\n StorageDocumentMeta storageDocumentMeta = objectMapper.readValue(result, StorageDocumentMeta.class);\n Assert.assertNotNull(storageDocumentMeta);\n Assert.assertNotNull(storageDocumentMeta.getPublicUrl());\n\n // get real request to aws s3 and assert to content of file in our FS\n Assert.assertEquals(IOUtils.toByteArray(new URL(storageDocumentMeta.getPublicUrl())), uploadFilenameBytes);\n }", "public void testPhotoUpload() throws Exception {\n LoginRequestTest.registerUser(\n getContext(),\n \"Tom\",\n LoginRequestTest.getUniqueEmail(),\n \"12345678\"\n );\n\n Place place = new Place();\n place.setId(6);\n\n //region Save picture\n Bitmap bitmap = BitmapFactory.decodeResource(getContext().getResources(), R.drawable.upload_image);\n File tempFile = null;\n try {\n tempFile = File.createTempFile(\"UPLOAD_TEST\", \".jpg\", getContext().getCacheDir());\n FileOutputStream out = new FileOutputStream(tempFile);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, out);\n out.close();\n } catch (IOException e) {\n Log.e(TAG, \"Image file could not be written.\", e);\n }\n //endregion\n\n assertNotNull(\"Temp file is null!\", tempFile);\n PhotoUploadRequest request = new PhotoUploadRequest(getContext(), place, tempFile);\n ResponseEntity<Picture> pictureResponseEntity = request.sendRequest();\n assertNotNull(\"No response entity received\", pictureResponseEntity);\n Picture picture = pictureResponseEntity.getBody();\n assertNotNull(\"Response entity has empty body\", picture);\n }", "public void showUpload(){\n\n }", "public void uploader(WebDriver driver, String image, By browse, By upload, Robot robot) throws NumberFormatException, IOException {\n\t\t String parentWindowHandle = driver.getWindowHandle();\n\t\t int i = 0;\n\t\t String xpath = \"//a[contains(@type,'image/jpeg;')][text()='\" + image + \"']\";\n\t\t By element = By.xpath(xpath);\n\t\t int size = driver.findElements(element).size();\t\t \n\t\t while (size == 0) {\n\t\t try {\n\t\t \t String previousURL = driver.getCurrentUrl();\n\t\t if (i > 0) { fileWriterPrinter(\"Not a successful \\\"\" + image + \"\\\" image upload...will try again...\"); }\n\t\t\t \n\t\t robot.keyPress(KeyEvent.VK_CANCEL); // close previous in the beginning\n\t\t robot.keyRelease(KeyEvent.VK_CANCEL);\n\t\t driver.findElement(browse).click();\n\t\t\t \n\t\t waitUntilUrl(driver, previousURL); \n\t\t chooseImageRobot(driver, image, robot);\n\t\t alertHandler(driver);\n\t\t closeAllOtherWindows(driver, parentWindowHandle);// driver.switchTo().window(parentWindowHandle);\n\t\t \n\t\t\t driver.findElement(upload).click();\n\t\t\t waitUntilElementInvisibility(driver, 10, Common.ajaxThrobber, \"Throbber\", new Exception().getStackTrace()[0]);\n\t\t } catch(Exception e) {}\n\t\t i++;\n\t\t size = driver.findElements(element).size(); \n\t }\n\t\t if (size == 1) { fileWriterPrinter(\"Successful \\\"\" + image + \"\\\" image upload!\"); }\n\t }", "public void setUploadedfile(UploadedFile uploadedfile) {\r\n this.uploadedfile = uploadedfile;\r\n }", "@RequestMapping(value=\"/upload\", method = RequestMethod.POST)\r\n public String processUploadFileForm(UploadFileForm uploadFileForm, BindingResult result, Locale locale, Model model, HttpServletRequest request) {\r\n\t\t\r\n // Redirect to the page with any errors\r\n if (result.hasErrors()) {\r\n \treturn manageTestFiles(locale, model, request.getSession());\r\n }\r\n MultipartFile[] uploadedFiles = uploadFileForm.getPath();\r\n logger.info(\"Loading \" + uploadedFiles.length + \" files...\");\r\n for (MultipartFile uploadedFile : uploadedFiles) {\r\n\t\t\tlogger.info(\" Loading data file: \" + uploadedFile.getOriginalFilename());\r\n\t \t\tfileService.uploadFile(uploadedFile, QRDA_URIResolver.REPOSITORY_TESTFILES, uploadFileForm.getSubDir(), uploadFileForm.getName());\r\n\r\n\t\t}\r\n\r\n \t\t//fileService.uploadFile(uploadFileForm.getPath(), QRDA_URIResolver.REPOSITORY_TESTFILES, uploadFileForm.getSubDir(), uploadFileForm.getName());\r\n\t\treturn \"redirect:/testFiles\";\r\n\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n JFileChooser fileChooser = new JFileChooser();\r\n fileChooser.setDialogTitle(\"Upload Files\");\r\n int result = fileChooser.showOpenDialog(null);\r\n if (result == JFileChooser.APPROVE_OPTION) { \r\n selectedFile = fileChooser.getSelectedFile();\r\n review.setText(selectedFile.getAbsolutePath());\r\n } \r\n }", "@Test\n public void filesValidateTest() throws ApiException {\n String owner = null;\n String repo = null;\n FilesValidate data = null;\n api.filesValidate(owner, repo, data);\n\n // TODO: test validations\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n uploadFile(request, response);\n\n }", "@Test\r\n public void test_performLogic_Accuracy5() throws Exception {\r\n try {\r\n UploadedDocument doc = new UploadedDocument();\r\n doc.setDocumentId(1);\r\n doc.setContestId(1);\r\n doc.setFileName(\"test.txt\");\r\n doc.setPath(\"test_files\");\r\n doc.setMimeTypeId(new MimeTypeRetriever().getMimeTypeIdFromFileName(\"test_files/test.txt\"));\r\n List<UploadedDocument> docUploads = new ArrayList<UploadedDocument>();\r\n\r\n // add null element for test\r\n docUploads.add(null);\r\n\r\n docUploads.add(doc);\r\n\r\n instance.performLogic(docUploads);\r\n\r\n String expectedContents = TestHelper.getFileContents(\"test_files/test.txt\");\r\n\r\n // make sure file was added\r\n assertEquals(\"content type is wrong\", \"text/plain\", instance.getContentType());\r\n assertEquals(\"content length is wrong\", expectedContents.length(), instance.getContentLength());\r\n assertEquals(\"content disposition is wrong\", \"attachment;filename=test.txt\", instance\r\n .getContentDisposition());\r\n\r\n // make sure input stream was set correctly and file contents are correct\r\n StringWriter writer = new StringWriter();\r\n IOUtils.copy(instance.getInputStream(), writer);\r\n String actualContents = writer.toString();\r\n assertEquals(\"input stream is wrong\", expectedContents, actualContents);\r\n } finally {\r\n IOUtils.closeQuietly(instance.getInputStream());\r\n }\r\n }", "@Test\n public void testAPIReqIdUpload() {\n // TODO: test APIReqIdUpload\n }", "public void testUploadSubmission() throws Exception {\r\n FileDataSource dataSource = new FileDataSource(\"test_files/stress.jar\");\r\n DataHandler dataHandler = new DataHandler(dataSource);\r\n\r\n Date startTime = new Date();\r\n for (int i = 0; i < 10; ++i) {\r\n services.uploadSubmission(StressTestHelper.PROJECT_ID, StressTestHelper.USER_ID, \"submission.jar\", dataHandler);\r\n }\r\n\r\n Date endTime = new Date();\r\n\r\n System.out.println(\"Executing uploadSubmission for 10 times takes \"\r\n + (endTime.getTime() - startTime.getTime()) + \" milliseconds\");\r\n\r\n Upload upload = uploadManager.getCreatedUpload();\r\n\r\n assertEquals(\"Wrong type\", \"Submission\", upload.getUploadType().getName());\r\n assertEquals(\"Wrong status\", \"Active\", upload.getUploadStatus().getName());\r\n assertEquals(\"Wrong project id\", StressTestHelper.PROJECT_ID, upload.getProject());\r\n assertTrue(\"Wrong file name\", upload.getParameter().startsWith(\"submission\"));\r\n assertTrue(\"Wrong file name\", upload.getParameter().endsWith(\"jar\"));\r\n assertEquals(\"Wrong user id\", String.valueOf(StressTestHelper.USER_ID), uploadManager.getCreatedUploadUserId());\r\n\r\n // check the submission\r\n Submission submission = uploadManager.getCreatedSubmission();\r\n assertEquals(\"Wrong type\", submission.getSubmissionType().getName(), \"Contest Submission\");\r\n assertEquals(\"Wrong status\", submission.getSubmissionStatus().getName(), \"Active\");\r\n assertEquals(\"Wrong user id\",\r\n String.valueOf(StressTestHelper.USER_ID), uploadManager.getCreatedSubmissionUserId());\r\n\r\n File uploadedDir = new File(\"test_files/upload/\");\r\n File uploaded = uploadedDir.listFiles()[0];\r\n assertEquals(\"Failed to upload submission\", new File(\"test_files/stress.jar\").length(), uploaded.length());\r\n }", "public void uploadFile(IFileData fileData) {\r\n \t//if(!initted) throw new RuntimeException(\"Grao Com service Client is not initialized...\");\r\n\t\ttry {\r\n\t\t Requester.request(configName)\r\n\t\t\t\t\t\t .path(GraoContextParams.GRAO_PATH.FILE_UPLOAD)\r\n\t\t\t\t\t\t .post(fileData, MEDIA_TYPE.JSON, MEDIA_TYPE.JSON);\r\n\t\t} catch (Exception e) {\r\n\t\t e.printStackTrace();\r\n\t\t throw new RuntimeException(e);\r\n\t\t}\r\n }", "private void actionAddFile ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tJFileChooser fileChooserDriver = new JFileChooser();\r\n\r\n\t\t\tint isFileSelected = fileChooserDriver.showOpenDialog(fileChooserDriver);\r\n\r\n\t\t\tif (isFileSelected == JFileChooser.APPROVE_OPTION)\r\n\t\t\t{\r\n\t\t\t\tString filePath = fileChooserDriver.getSelectedFile().getPath();\r\n\t\t\t\tDataController.scenarioAddFile(filePath);\r\n\r\n\t\t\t\thelperDisplayProjectFiles();\r\n\t\t\t\thelperDisplayInputImage();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\r\n\t}", "@Test\n public void getPostFile() throws Exception {\n String url = String.format(\"/download/%s/result.json\", AppTests.token);\n MvcResult result = mockMvcGetResult(url, MediaType.APPLICATION_JSON_VALUE + \";charset=UTF-8\", null);\n String response = result.getResponse().getContentAsString();\n\n MockMultipartFile importFile = new MockMultipartFile(\"file\", \"result.json\", \"multipart/form-data\", response.getBytes());\n\n MockHttpServletRequestBuilder builder =\n MockMvcRequestBuilders.multipart(\"/import/form\")\n .file(importFile);\n\n this.getMockMvc().perform(builder)\n .andExpect(status().isOk())\n .andReturn();\n }", "public interface Uploader {\n\n public String upload(String filePath, String fileName);\n}", "void uploadFinished(StreamingEndEvent event, File uploadedTemporaryFile);", "private void uploadFromDataStorage() {\n }", "int uploadEvi(File file, String project, DataDate date, DataDate updated) throws IOException, SQLException;", "private void uploadPathPhotoButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_uploadPathPhotoButtonActionPerformed\n\n clearInformation();\n JFileChooser dialogue = new JFileChooser();\n // Show the dialog to choose the image file\n int Retour = dialogue.showDialog(dialogue, OPEN);\n File photoToUpload = null;\n\n // Choose the image file\n if (Retour == JFileChooser.APPROVE_OPTION) {\n photoToUpload = dialogue.getSelectedFile();\n String pathUploadPhoto = photoToUpload.getAbsolutePath();\n String extension = pathUploadPhoto.substring(pathUploadPhoto.lastIndexOf(POINT));\n // verify the extension of the input file\n if (!extension.equals(JPEG_EXTENSION) && !extension.equals(BITMAP_EXTENSION) && !extension.equals(PNG_EXTENSION)) {\n displayInformation(ERROR_EXTENSION);\n } else {\n pathPhotoUploadTextField.setText(photoToUpload.getAbsolutePath());\n }\n }\n }", "@PostMapping(\"/upload\")\n public String handleFileUpload(@RequestParam MultipartFile file) throws IOException {\n final Path uploadDestination = Paths.get(\"C:\\\\uploads\").resolve(file.getName());\n\n file.transferTo(uploadDestination);\n return \"redirect:/\";\n }", "@Test\n public void file() throws UnsupportedEncodingException {\n String fileName = createFile(FILE_BODY, \"/file/create/in\");\n\n // Read the file\n RestAssured\n .get(\"/file/get/in/\" + Paths.get(fileName).getFileName())\n .then()\n .statusCode(200)\n .body(equalTo(FILE_BODY));\n }", "public synchronized void upload(){\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTextField1 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jFileChooser1 = new javax.swing.JFileChooser();\n jButton3 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jButton1.setText(\"Upload\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Cancel\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jFileChooser1.setPreferredSize(new java.awt.Dimension(1, 1));\n\n jButton3.setText(\"Browse\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 268, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton3))\n .addComponent(jFileChooser1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton1)\n .addGap(20, 20, 20)\n .addComponent(jButton2)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jFileChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 23, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addContainerGap())\n );\n\n pack();\n }", "@Test\n public void filePathTest() {\n // TODO: test filePath\n }", "@Test(enabled = false)\n\tpublic void Robotclass() throws Exception {\n\t\tStringSelection upload1 = new StringSelection(\"C:\\\\Users\\\\nsd\\\\Downloads\\\\2020-03-10_1318.png\");\n\n\t\t// Copy to clipboard\n\t\tToolkit.getDefaultToolkit().getSystemClipboard().setContents(upload1, null);\n\t\tSystem.out.println(\"selection\" + upload1);\n\n\t\tdriver.findElement(By.cssSelector(\".btn.btn-success.fileinput-button\")).click();\n\n\t\t// Create object of Robot class\n\t\tRobot robot = new Robot();\n\t\tThread.sleep(5000);\n\n\t\t// Press Enter\n\t\trobot.keyPress(KeyEvent.VK_ENTER);\n\n\t\t// Release Enter\n\t\trobot.keyRelease(KeyEvent.VK_ENTER);\n\n\t\t// Press CTRL+V\n\t\trobot.keyPress(KeyEvent.VK_CONTROL);\n\t\trobot.keyPress(KeyEvent.VK_V);\n\n\t\t// Release CTRL+V\n\t\trobot.keyRelease(KeyEvent.VK_CONTROL);\n\t\trobot.keyRelease(KeyEvent.VK_V);\n\t\tThread.sleep(1000);\n\n\t\t// Press Enter\n\t\trobot.keyPress(KeyEvent.VK_ENTER);\n\t\trobot.keyRelease(KeyEvent.VK_ENTER);\n\t}", "public void testFilesView() {\n FilesTabOperator filesTabOper = FilesTabOperator.invoke();\n // needed for slower machines\n JemmyProperties.setCurrentTimeout(\"JTreeOperator.WaitNextNodeTimeout\", 30000); // NOI18N\n Node sourcePackagesNode = new Node(filesTabOper.getProjectNode(SAMPLE_PROJECT_NAME), \"src\"); // NOI18N\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME); // NOI18N\n Node sampleClass1Node = new Node(sample1Node, SAMPLE1_FILE_NAME);\n // It is possible to test also pop-up menu actions as in testProjectsView, but\n // it is redundant IMO\n }", "@Override\n public void onFileUploaded(FolderNode folderNode, FileNode fileNode) {\n choices.selectValue(fileNode.getName());\n closeAdditionalChoiceDialog(true);\n }", "private Result uploadFile(StoryModel storyModel) {\n if (isStopped())\n return Result.failure();\n\n\n String storyId = storyModel.get_id();\n if (storyModel.getType() != null && storyModel.getType().equals(\"image\")) {\n\n sendStartStatus(\"image\", storyModel.get_id());\n\n NotificationsManager.getInstance().showUpDownNotification(getApplicationContext(),\n storyModel.get_id(),\n storyModel.getUserId());\n if (uploadImageFile(storyModel.getFile())) {\n return Result.success();\n } else {\n if (compositeDisposable.isDisposed()) {\n sendErrorStatus(\"image\", storyId);\n }\n return Result.retry();\n }\n } else if (storyModel.getType() != null && storyModel.getType().equals(\"video\")) {\n\n sendStartStatus(\"video\", storyModel.get_id());\n\n NotificationsManager.getInstance().showUpDownNotification(getApplicationContext(),\n storyModel.get_id(),\n storyModel.getUserId());\n if (uploadVideoFile(storyModel.getFile())) {\n return Result.success();\n } else {\n if (compositeDisposable.isDisposed()) {\n sendErrorStatus(\"video\", storyId);\n }\n return Result.retry();\n }\n } else {\n return Result.failure();\n }\n }", "public void uploadFile() {\n \n InputStream input = null;\n try {\n input = file.getInputStream();\n System.out.println(\"chay qua inpustream\");\n String itemName = file.getSubmittedFileName();\n String filename = itemName.substring(\n itemName.lastIndexOf(\"\\\\\") + 1);\n String dirPath = FacesContext.getCurrentInstance().getExternalContext().getRealPath(\"/upload/images\");\n fileNamed = \"/upload/images/\"+filename;\n File f = new File(dirPath + \"\\\\\" + filename);\n if (!f.exists()) {\n f.createNewFile();\n }\n FileOutputStream output = new FileOutputStream(f);\n byte[] buffer = new byte[1024];\n int length;\n while ((length = input.read(buffer)) > 0) {\n output.write(buffer, 0, length);\n }\n // resize(dirPath + \"\\\\\" + filename, dirPath + \"\\\\\" + filename, 200, 200);\n input.close();\n output.close();\n } catch (IOException ex) {\n System.out.println(\"loi io\");\n Logger.getLogger(ArtistsManagedBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public static void upload_Image(String filePath) {\n\t\tboolean bstatus;\n\n\t\tbstatus = uploadFile1(btn_LiteratureImage, filePath);\n\t\tReporter.log(bstatus, \"Image Slected\", \"Image Not Slected\");\n\n\t}", "@Test\n void buildWithFormFieldPart() throws MalformedURLException {\n MultipartFileBuilder builder = new MultipartFileBuilderImpl(\n new File(System.getProperty(\"java.io.tmpdir\")));\n final byte[] value = UUID.randomUUID().toString().getBytes(StandardCharsets.UTF_8);\n DataUrl dataUrl = new DataUrlBuilder()\n .setData(value)\n .setCharset(StandardCharsets.UTF_8.name())\n .setEncoding(DataUrlEncoding.BASE64)\n .setMimeType(MediaType.IMAGE_PNG_VALUE)\n .build();\n StepVerifier\n .create(\n builder.build(createFormFieldPart(new DataUrlSerializer().serialize(dataUrl), \"file\")))\n .assertNext(multipartFile -> {\n try {\n assertFalse(multipartFile.isEmpty());\n assertEquals(\"file\", multipartFile.getName());\n assertEquals(MediaType.IMAGE_PNG_VALUE, multipartFile.getContentType());\n assertEquals(value.length, (int) multipartFile.getSize());\n assertArrayEquals(value, multipartFile.getBytes());\n } catch (IOException e) {\n throw ServiceException.internalServerError(\"Fatal error\", e);\n } finally {\n FileAwareMultipartFile.delete(multipartFile);\n }\n })\n .verifyComplete();\n }", "@Test\n public void testAddFileAddsFile(){\n \n FileStorageService fss = DatabaseServiceTestTool.createFileStorageService();\n \n String user1 = DatabaseServiceTestTool.usernames[0];\n String user2 = DatabaseServiceTestTool.usernames[1];\n \n assertTrue(fss.getFilesFor(user1).size() == 0);\n assertTrue(fss.getFilesFor(user2).size() == 0);\n \n try {\n InputStream is = prepareRandomInputStream();\n fss.addFile(user1, \"mypgn.pgn\", is);\n is.close();\n \n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n \n assertTrue(fss.getFilesFor(user1).size() == 1);\n assertEquals(fss.getFilesFor(user1).get(0), \"mypgn.pgn\");\n \n //testing for a side effect now\n assertTrue(fss.getFilesFor(user2).size() == 0);\n \n DatabaseServiceTestTool.destroyFileStorageService(fss);\n }", "@Override\r\n\tpublic void qnaFileUpload(QnAFile qnaFileDto) {\n\t\t\r\n\t}", "@Test\n\tpublic void addMenu__wrappee__ChooseFileTest() throws Exception {\n\t\tif (Configuration.shufflerepeat &&\n\t\tConfiguration.featureamp&&\n\t\tConfiguration.playengine&&\n\t\tConfiguration.choosefile&&\n\t\tConfiguration.gui&&\n\t\tConfiguration.skins&&\n\t\tConfiguration.light&&\n\t\tConfiguration.filesupport&&\n\t\tConfiguration.showtime&&\n\t\tConfiguration.volumecontrol&&\n\t\tConfiguration.mute\n\t\t) {\t\n\t\t\tstart();\n\t\t\tWhitebox.invokeMethod(gui, \"addMenu__wrappee__ChooseFile\");\n\t\t\tJMenu menu = (JMenu) MemberModifier.field(Application.class, \"menu\").get(gui);\n\t\t\tassertNotNull(menu);\n\n\t\t}\n\t}", "@Test\n public void uploadAppImageTest() throws ApiException {\n File file = null;\n Integer id = null;\n Application response = api.uploadAppImage(file, id);\n\n // TODO: test validations\n }", "public void uploadMultipart() {\n //getting the actual path of the image\n String path = getPath(filePath);\n\n //Uploading code\n try {\n String uploadId = UUID.randomUUID().toString();\n\n //Creating a multi part request\n new MultipartUploadRequest(this, uploadId, \"todo\")\n .addFileToUpload(path, \"image\") //Adding file\n .setNotificationConfig(new UploadNotificationConfig())\n .setMaxRetries(2)\n .startUpload(); //Starting the upload\n\n } catch (Exception exc) {\n Toast.makeText(this, exc.getMessage(), Toast.LENGTH_SHORT).show();\n }\n }", "private void addFileUploadField() {\n FileUpload upload = new FileUpload();\n upload.setName(\"fileUpload\" + i);\n fileUploadPanel.add(upload);\n i++;\n }", "@Override\n public void onClick(View v) {\n new UploadFileToServer().execute();\n }" ]
[ "0.74493533", "0.7249127", "0.7187037", "0.7136886", "0.699567", "0.6988552", "0.69858766", "0.6844425", "0.6766132", "0.6704154", "0.66559845", "0.66553503", "0.6591558", "0.65510565", "0.65444845", "0.6511072", "0.6451972", "0.64203787", "0.63891023", "0.63443357", "0.6339538", "0.63010967", "0.6283535", "0.62668484", "0.62620085", "0.6249148", "0.6236441", "0.62231076", "0.6222959", "0.6192008", "0.6191777", "0.6152281", "0.61343133", "0.61242276", "0.6123971", "0.6108304", "0.6088284", "0.6074852", "0.6043715", "0.60311407", "0.6017828", "0.5995021", "0.59761655", "0.59658116", "0.59653276", "0.59353936", "0.5929376", "0.5920458", "0.59079814", "0.5876732", "0.5865855", "0.586146", "0.5854052", "0.5847882", "0.5827048", "0.58208543", "0.5819819", "0.58166295", "0.58138317", "0.58117557", "0.5810409", "0.57972187", "0.5792226", "0.57917774", "0.57873493", "0.5782176", "0.5771522", "0.5765393", "0.5763563", "0.5761841", "0.576056", "0.5758802", "0.57583135", "0.5749595", "0.5739088", "0.5738916", "0.5738501", "0.5689986", "0.56814384", "0.56781393", "0.5677114", "0.56754625", "0.56741863", "0.5664402", "0.56643987", "0.56509674", "0.5649378", "0.56483847", "0.563886", "0.56368744", "0.5636816", "0.5621568", "0.5621338", "0.56070554", "0.5606385", "0.55895436", "0.5579104", "0.557893", "0.5578323", "0.5577106" ]
0.7906754
0
Constructors create a petrol generator SIL model instance.
public PetrolGeneratorElectricalSILModel(String uri, TimeUnit simulatedTimeUnit, SimulatorI simulationEngine) throws Exception { super(uri, simulatedTimeUnit, simulationEngine); this.setLogger(new FileLogger("petrolGeneratorElectrical.log")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TargetGeneratorModel()\n {\n }", "protected PolicyModelGenerator() {\n // nothing to initialize\n }", "DataGenModel()\n {\n }", "public Poem(){}", "public ModelSourceFile() {\n\t\t\n\t}", "public Phl() {\n }", "public Model() {\n\t}", "public Model() {\n\t}", "public PetrinetmodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public PARiverDataGenerator() {\n }", "public Soil()\n\t{\n\n\t}", "public Generateur() {\n }", "public InvoiceModel() {\n \n }", "protected PricingModel() {\n }", "public Rol() {}", "public PoissonGenerator() {\n\t}", "public RptPotonganGaji() {\n }", "public Model() {\n }", "public Model() {\n }", "public Model() {\n }", "public personnelMedicalModel(){\n\n }", "public OTFModelGeneration(Program program) {\n\t\tsuper();\n\t\tthis.program = program;\n\t}", "private Model(){}", "protected ModelAgent ()\n {\n this (\"ModelAgent\");\n\n }", "public Potencial() {\r\n }", "public Purp() {\n }", "public Model() {\n\n }", "public BPELGeneratorImpl() {\r\n \t\tsuper(GENERATOR_NAME);\r\n \t}", "public Model() {\n this(DSL.name(\"model\"), null);\n }", "public ModelBolting(){}", "public Plato(){\n\t\t\n\t}", "public Pencil() {\n\n }", "public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}", "public Lanceur() {\n\t}", "public Spiel()\n {\n \tspieler = new Spieler();\n \t//landkarte = new Landkarte(5);\n //landkarte.raeumeAnlegen(spieler);\n\n \tlandkarte = levelGen.generate(spieler, 5, 6, 4, 10);\n\n parser = new Parser();\n }", "public Produto() {}", "public SlanjePoruke() {\n }", "public Livro() {\n\n\t}", "Petunia() {\r\n\t\t}", "public LanguageSkill() {\n\t}", "public Model() {\n this(Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME), new TextRepository());\n }", "public void initWithPelletReasoner()\r\n\t{\r\n\t\tcredits();\r\n\t\tONT_MODEL = ModelFactory.createOntologyModel(PelletReasonerFactory.THE_SPEC);\t\r\n\t}", "public Prova() {}", "public PromotionVoucherModel()\n\t{\n\t\tsuper();\n\t}", "public SysSkillConferpo()\n {\n }", "public TVendor() {\r\n\t\t// Default constructor\r\n\t}", "public SSModel createSSObject() {\n\t\tSSModel ssModel = new SSModel();\n\t\tssModel.create(mol);\n\t\t\n\t\treturn ssModel;\n\t}", "public Persona() {\n\t}", "public Persona(){\n \n }", "public Persona(){\n \n }", "public WeightingModel(){}", "public Puppy() {\n\t\t//TODO\n\t}", "PriceModel createInstanceOfPriceModel();", "public XMLModel002Builder() {\n }", "public SimOI() {\n super();\n }", "public Libro() {\r\n }", "public LarvaSkeleton() {\n\n }", "public Person() {\n\t\t\n\t}", "public ObjectFactory() {\n super(grammarInfo);\n }", "public TTau() {}", "InstanceModel createInstanceOfInstanceModel();", "public Pasien() {\r\n }", "public Troco() {\n }", "public Simulador(){\n }", "CsticModel createInstanceOfCsticModel();", "public Producto() {\r\n }", "public Product() {\n\t}", "public Persona() {\n \t\n }", "public ImportVo() {\r\n // nothing to do\r\n }", "public HeatingModuleModel(){\n\t}", "public OpenGLModel() {\n\n\n\t}", "public PersonaVO() {\n }", "public Producto (){\n\n }", "public Linearmodel() {\n this(DSL.name(\"LinearModel\"), null);\n }", "public Patient() {\r\n\r\n\t}", "public FareModel() {\n }", "public Odontologo() {\n }", "public Genret() {\r\n }", "public Trening() {\n }", "public Patient() {\n\t\t\n\t}", "public Person(ElevatorControllerGUI elevatorController){\n this.id = idGenerator.getAndIncrement();\n this.arrivalTime = random.nextInt((30-1)+1)+1; \n this.arrivalFloor = random.nextInt((4-2)+1)+2; \n\t\t this.destinationFloor = random.nextInt((10-5)+1)+5; \n\t\t this.baggageWeight = setLuggageWeight();\n this.personWeight = setPassengerWeight();\n this.random = new Random();\n this.elevatorControllerGUI = elevatorController;\n }", "public GTFTranslator()\r\n {\r\n // do nothing - no variables to instantiate\r\n }", "GoalModel createGoalModel();", "public CyanSus() {\n\n }", "public Generator(){}", "private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n\t\tVehicle vehicle = new Vehicle(make, model, weight, engineSize, numberOfDoors, isImport);\n\t\treturn vehicle;\t\t\n\t}", "Parcelle createParcelle();", "public M create(P model);", "private TechniqueStatesModels() {\n // Private constructor to prevent instantiation\n }", "public Persona() {\n }", "public AntrianPasien() {\r\n\r\n }", "PriceSummaryModel createInstanceOfPriceSummaryModel();", "public UserModel()\n\t{}", "public Genetic() {\r\n }", "public PricingModel(Game game) {\n this.game = game;\n this.currentPrice = SavingCard.INITIAL_COST;\n this.invokedCount = 0;\n \n\t}", "public MPaciente() {\r\n\t}", "public Produit() {\n }", "public UserModel()\r\n\t{\r\n\t}", "public WorldModel(){\t\n\t}", "public YonetimliNesne() {\n }", "public ModelResource() {\n }" ]
[ "0.70747834", "0.66980827", "0.64042234", "0.63406277", "0.63248956", "0.63119113", "0.6268297", "0.6268297", "0.6189347", "0.6174348", "0.6173779", "0.6172358", "0.61325926", "0.6095658", "0.6093447", "0.6078274", "0.60268784", "0.600289", "0.600289", "0.600289", "0.598157", "0.59808093", "0.596797", "0.59333503", "0.5925607", "0.59190583", "0.5913399", "0.5904654", "0.5903677", "0.5901939", "0.58897406", "0.5881675", "0.58410215", "0.582425", "0.58221585", "0.5813564", "0.5800057", "0.5796551", "0.57937473", "0.57858396", "0.5780922", "0.5779038", "0.57758296", "0.57650477", "0.5762162", "0.5749393", "0.5745484", "0.5740976", "0.57289577", "0.57289577", "0.5727412", "0.57269526", "0.5720102", "0.5716679", "0.5710687", "0.5709573", "0.5702827", "0.56944126", "0.56906545", "0.5688875", "0.56773597", "0.5668232", "0.5659568", "0.5643629", "0.56407166", "0.56381816", "0.56381625", "0.5635039", "0.5631618", "0.5629676", "0.56277704", "0.56276625", "0.5623515", "0.56188536", "0.56131333", "0.56105906", "0.56067836", "0.56063455", "0.56044835", "0.5595723", "0.5591543", "0.559109", "0.5587761", "0.55848384", "0.55842", "0.55814594", "0.55761564", "0.5575677", "0.5574752", "0.55740386", "0.55725604", "0.557134", "0.55596983", "0.555747", "0.55532944", "0.5551935", "0.55519253", "0.5546352", "0.5544846", "0.5544438", "0.5542156" ]
0.0
-1
Turn the generator on, work only if the generator get petrol
public void turnOn() { isOn = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isGenerator();", "public Generator(){}", "public synchronized void generate () {\n\t\tgenerate( () -> {\n\t\t});\n\t}", "@Override\n\tpublic void turnOn() {\n\n\t}", "private boolean inGeneratorContext() {\n return functionContextStack.peekLast().isGenerator;\n }", "public void setGeneratedCheck(){\n generatedCheck = !generatedCheck;\n }", "SimulatedAnnealing() {\n generator = new Random(System.currentTimeMillis());\n }", "public boolean isGenerating() {\n return mIsGenerating;\n }", "public void setNextGeneration() {\n // create a temporary population\n ArrayList<Genotype> tempPopulation = new ArrayList<Genotype>();\n\n // select mates\n while (tempPopulation.size() < populationSize) {\n tempPopulation.add(Genotype.Mate(rouletteSelection(),\n rouletteSelection(), crossoverProbability));\n }\n }", "@Override\n public void turnOn() {\n System.out.println(\"this wont happen\");\n }", "protected LLVMGenerator doGenerate(IAstModule mod) throws Exception {\n \t\treturn doGenerate(mod, false);\n \t}", "public void generate() {\n\t}", "public boolean generate();", "public boolean isGenerative () { return false; }", "public void turnOn() {\n\t\tOn = true;\n\t}", "public HallwayGenerator(IRoomGenerationStrategy generator) {\n\t\tsetGenerationStrategy(generator);\n\t}", "@Override\r\n\tpublic Boolean SitOn() {\n\t\treturn true;\r\n\t}", "protected Agent(){\n\t\trand = SeededRandom.getGenerator();\n\t}", "void generate() {\n rouletteSelection();\n do {\n updateParents();\n crossover();\n mutation();\n } while (!isValidOffset());\n insertOffspring();\n }", "public void turn_on () {\n this.on = true;\n }", "public void generate() {\n for(Course course : courses) {\n if(!setLecture(course)) {\n possible = false;\n return;\n }\n }\n possible = true;\n }", "public void planted(){\r\n\t\tenable = false; \r\n\t\tcount = 0; \r\n\t}", "public void start(){\n //Set pausing to false\n pausing = false;\n next();\n }", "public InnovationGenerator() {\n this.atomicInteger = new AtomicInteger();\n }", "public void turnOn ()\n\t{\n\t\tthis.powerState = true;\n\t}", "public ProcessorFactory getGenerator()\r\n\t{\r\n\t\treturn generator;\r\n\t}", "public boolean isForGenere();", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "void enable();", "public void enable();", "public void forceStart() {\r\n\t\tchaseObj = true;\r\n\t}", "public GameGenerator() {\r\n\t\tthis.actionsCommand = new ArrayList<ICommand>();\r\n\t\tthis.invokerCommands = new ArrayList<InvokerCommand>();\r\n\t}", "protected void generar() {\n generar(1, 1);\n }", "public JsonFactory enable(JsonGenerator.Feature f)\n/* */ {\n/* 635 */ this._generatorFeatures |= f.getMask();\n/* 636 */ return this;\n/* */ }", "@Override\r\n\tpublic void billGenerate() {\n\t\t\r\n\t}", "public void setGenPassword(boolean value) {\n this.genPassword = value;\n }", "@Override\n public boolean run() {\n return new Random().nextBoolean();\n }", "public void startExecuting()\n {\n field_46102_e = 40 + field_46105_a.getRNG().nextInt(40);\n }", "void setRandomize(Boolean setting);", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:39:04.270 -0400\", hash_original_method = \"2F38A905A5E86814C35EEB65CB438D5E\", hash_generated_method = \"0D0B5F174678A92F10985B712A6C7215\")\n \n public static boolean setScanModeCommand(boolean setActive){\n \tdouble taintDouble = 0;\n \ttaintDouble += ((setActive) ? 1 : 0);\n \n \treturn ((taintDouble) == 1);\n }", "public void setDefaultValueGenerator(Generator<V> generator);", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitOrgPRE(true);\r\n \r\n }", "public void switchSampling(boolean start_or_dont) {\r\n //save a boolean for the loop's state before changes\r\n boolean weShouldReadold = this.weShouldRead;\r\n this.weShouldRead = start_or_dont;\r\n //if it's switching on from being previously off, start the loop again\r\n }", "public BPELGeneratorImpl() {\r\n \t\tsuper(GENERATOR_NAME);\r\n \t}", "private void setRand(){\n rand = generator.nextInt(9) + 1;\n }", "public void generate() {\n\t\tMirror m = new Mirror();\n\t\tpoints.addAll(m.fish());\n\t\twhile (remainingPoints > 0) {\n\t\t\titerate();\n\t\t\tremainingPoints--;\n\t\t}\n\n\t}", "public void enableVirtualMachineShuffling() { this.shuffle_vms = true; }", "Gen(T o) {\n\t\tob = o;\n\t}", "public static void generator(boolean x){\n if(x){ \r\n System.out.println(10/0);\r\n }\r\n }", "@Override\n\tpublic void set(int id, Generator generator) {\n\t}", "public void setGlowing ( boolean flag ) {\n\t\texecute ( handle -> handle.setGlowing ( flag ) );\n\t}", "@Override\n\tpublic void add(Generator generator) {\n\t}", "@Override\n public void powerOn() {\n if(isOn)System.out.println(\"The Projector is already ON!\");\n else{\n System.out.println(\"The Projector is now ON!\");\n isOn = true;\n }\n }", "private Boolean setUp() {\n\t\twhile(!this.menu());\n\t\treturn true;\n\t}", "public PoissonGenerator() {\n\t}", "public void genRepCheck(){\r\n if (tx_cb.getValue() == null || paModules.getValue() == null || mainExciterSW.getValue() == null\r\n || filter.getValue() == null || switchPatch.getValue() == null || testLoad.getValue() == null\r\n || mainAntFeed.getValue() == null)\r\n genRep.setDisable(true);\r\n else\r\n genRep.setDisable(false);\r\n }", "private RobotsGenerator() {\n throw new AssertionError();\n }", "public void enableMonsters(){\n enabled = true;\n }", "public InstanceGenerator(InstanceGenerator generator)\n {\n mTraining = new Instances(generator.mTraining);\n mTesting = new Instances(generator.mTesting);\n }", "private Grabber() {\n\t\tmotor = new CANTalon(Constants.grabberTalonMotorChannel);\n\t}", "public static void enableSor() {\n\t\t\n\t}", "public void generate() {\n currentlyGenerating = true;\n Bukkit.broadcastMessage(ChatColor.GREEN + \"The world generation process has been started!\");\n createUhcWorld();\n }", "public void turnOn(){\n Logger.getGlobal().log(Level.INFO,\" Turning On..\");\n vendingMachine = new VendingMachine();\n inventoryPopulation();\n idle();\n }", "public void turnOn(boolean truth) {\r\n setEnabled(truth);\r\n }", "public void setCurrentGeneration(Boolean currentGeneration) {\n this.currentGeneration = currentGeneration;\n }", "@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}", "@Override\r\n public void turnOn(){\r\n isOn = true;\r\n Reporter.report(this, Reporter.Msg.SWITCHING_ON);\r\n if (isOn){\r\n engageLoads();\r\n }\r\n }", "public void power()\r\n {\r\n powerOn = true;\r\n }", "public void setOnboardKeyGeneration(boolean value) {\n\t\tthis.onboardKeyGeneration = value;\n\t}", "void enableMod();", "public void switchOn();", "@Override\n\tpublic Boolean initTool() {\n\t\tHalfEdgeDataStructure<CPMVertex, CPMEdge, CPMFace> graph = controller.getEditedGraph();\n\t\tdouble scale = 100.0;\n\t\tint n = graph.getNumVertices();\n\t\tint count = 0;\n\t\tfor (CPMVertex v : graph.getVertices()){\n\t\t\tv.setXY(new Point2d(scale * cos(-count * 2*PI/n), scale * sin(-count * 2*PI/n)));\n\t\t\tcount++;\n\t\t}\n\t\t/*\n\t\tfor (CPMVertex v : graph.getVertices())\n\t\t\tv.setXY(new Point2d(scale * rnd.nextDouble(), scale * rnd.nextDouble()));\n\t\t*/\n\t\tcontroller.setEditedGraph(graph);\n\t\treturn false;\n\t}", "public void run() {\n next.setEnabled(true);\n\n }", "@Override\n public void tearDown() {\n generator = null;\n }", "public void setMethodGen(MethodGen mg){\n\t\tthis.mg = mg;\n\t}", "@Override\n public void initialize() {\n //manualActivated = !manualActivated;\n }", "@Override\r\n public void enableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(true);\r\n }", "private void setNextGeneration() {\n\t\tRowIterator iterator = neighbors.iterateRows();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElemIterator elem = iterator.next();\n\t\t\twhile (elem.hasNext()) {\n\t\t\t\tMatrixElem mElem = elem.next();\n\t\t\t\tint row = mElem.rowIndex();\n\t\t\t\tint col = mElem.columnIndex();\n\t\t\t\tInteger numNeighbors = (Integer) neighbors.elementAt(row, col);\n\t\t\t\tif (numNeighbors == 0 || numNeighbors == 1) { // dies if\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// neighbors are\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0 or 1\n\t\t\t\t\tnextGen.setValue(row, col, false);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (numNeighbors >= 4) { // dies if neighbors are 4 or more\n\t\t\t\t\tnextGen.setValue(row, col, false);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (numNeighbors == 3) { // lives if neighbors are 3\n\t\t\t\t\tnextGen.setValue(row, col, true);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (numNeighbors == 2) { // if neighbors are 2, lives or dies\n\t\t\t\t\tif (!currentGen.elementAt(row, col).equals(false)) { // currently\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// alive\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// so\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// lives\n\t\t\t\t\t\tnextGen.setValue(row, col, true);\n\t\t\t\t\t} else { // currently dead so stays dead\n\t\t\t\t\t\tnextGen.setValue(row, col, false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcurrentGen = nextGen; // set current to next\n\t\tnextGen = new MySparseArray(false); // reset next\n\t\tneighbors = new MySparseArray(0); // reset neighbors\n\t}", "@Override\n\tpublic void setToRandomValue(RandomGenerator a_numberGenerator) {\n\n\t}", "public GenGameOver() { \n prepare();\n }", "@Override\n public boolean isWithForOn() {\n return true;\n }", "public interface Generator<T> {\n\n T generate();\n\n}", "public boolean isGenerateRandomly() {\n\t\treturn generateRandomly;\n\t}", "public static void generateStateless() {\n Observable<String> myObservable = Observable.generate((emitter -> {\n System.out.println(\"got emitter = \" + emitter);\n try {\n emitter.onNext(\"generate - 1\");\n emitter.onNext(\"generate - 2 \");\n emitter.onComplete();\n } catch (Exception e) {\n emitter.onError(e);\n }\n }));\n myObservable.subscribe(genericObserver1);\n }", "public void enable() {\r\n m_enabled = true;\r\n }", "@Override\n\tpublic void beginGeneration() {\n\t\tfor(int seqIndex = 0; seqIndex < NUM_SEQUENCES; ++seqIndex) {\n\t\t\tfor(int pieceIndex = 0; pieceIndex < SEQUENCE_LENGTH; ++pieceIndex) {\n\t\t\t\tsequences[seqIndex][pieceIndex] = random.nextInt(State.N_PIECES);\n\t\t\t}\n\t\t}\n\t}", "private void generateGhost() {\r\n\t\ttry {\r\n\t\t\tghost = (FallingPiece)falling.clone();\r\n\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\twhile(moveIfNoConflict(ghost.moveDown(), ghost));\t\t\r\n\t\tfor (BlockDrawable block : ghost.allBlocks())\r\n\t\t\tblock.setGhost(true);\r\n\t}", "public void start() {\n m_enabled = true;\n }", "public boolean getGenerateFlag()\r\n {\r\n return theGenerateFlag;\r\n }", "@Override\n protected void generateMonsters()\n {\n generateWeakEnemies(2);\n generateStrongEnemies(12);\n generateElites(10);\n }", "public interface Generator<T> {\n T next();\n}", "public interface Generator<T> {\n T next();\n}", "public interface Generator<T> {\n T next();\n}", "public interface Generator<T> {\n T next();\n}", "public interface Generator<T> {\n T next();\n}", "public void engineOn(){\n engine = true;\n }", "public void autonomousInit() { //Problems here when power is not cycled between matches.\n \tauto.autonomousInit();\n }", "@Override\n\tpublic void onEnable() {\n\t}", "public void enable()\r\n\t{\r\n\t\tenabled = true;\r\n\t}", "public void startTrainingMode() {\n\t\t\r\n\t}" ]
[ "0.7330259", "0.61074746", "0.6082444", "0.60699683", "0.6056202", "0.60100895", "0.5922825", "0.58454835", "0.58350307", "0.57800186", "0.5772247", "0.57695764", "0.57690006", "0.5765428", "0.57504016", "0.56915903", "0.5675572", "0.56733435", "0.56722873", "0.5648851", "0.5626808", "0.5596353", "0.55617774", "0.55511135", "0.55496967", "0.55383986", "0.5513363", "0.54777175", "0.54555917", "0.5453623", "0.5439719", "0.54365474", "0.5417736", "0.541466", "0.54112273", "0.5407809", "0.5407772", "0.5375955", "0.5373691", "0.5373205", "0.5369894", "0.53688884", "0.5354538", "0.5354519", "0.53505135", "0.5346534", "0.5325208", "0.5320223", "0.5316417", "0.53147703", "0.5312619", "0.5287229", "0.5282664", "0.5278417", "0.5272075", "0.52689564", "0.5267304", "0.52624476", "0.5258492", "0.5255532", "0.5238241", "0.52271533", "0.52269423", "0.52225834", "0.52131194", "0.52064306", "0.52044713", "0.5194449", "0.5192664", "0.51909584", "0.5186088", "0.51825875", "0.5177318", "0.5165531", "0.5163385", "0.5162916", "0.51621544", "0.51583976", "0.51538426", "0.5152959", "0.51266474", "0.5125738", "0.5124107", "0.51219714", "0.5119458", "0.51169705", "0.51135534", "0.51077414", "0.5104698", "0.51026016", "0.5097995", "0.5097995", "0.5097995", "0.5097995", "0.5097995", "0.5094591", "0.5091979", "0.5091435", "0.50868475", "0.508052" ]
0.5282921
52
Turn the generator off
public void turnOff() { isOn = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void tearDown() {\n generator = null;\n }", "public JsonFactory disable(JsonGenerator.Feature f)\n/* */ {\n/* 644 */ this._generatorFeatures &= (f.getMask() ^ 0xFFFFFFFF);\n/* 645 */ return this;\n/* */ }", "public void disable() {\r\n m_enabled = false;\r\n useOutput(0, 0);\r\n }", "@Override\n\tpublic void turnOff() {\n\n\t}", "public void disable() {\n\t\tm_enabled = false;\n\t\tuseOutput(0);\n\t}", "public boolean isGenerator();", "public void disable()\n {\n openGate = null;\n }", "public void turn_off () {\n this.on = false;\n }", "public void off() {\n\n\t}", "public void clearGenus() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public static void disable() {\n if (lock.compareAndSet(false, true)) {\n\n RxJavaPlugins.setOnCompletableAssembly(null);\n RxJavaPlugins.setOnSingleAssembly(null);\n RxJavaPlugins.setOnMaybeAssembly(null);\n\n RxJavaPlugins.setOnObservableAssembly(null);\n RxJavaPlugins.setOnFlowableAssembly(null);\n RxJavaPlugins.setOnConnectableObservableAssembly(null);\n RxJavaPlugins.setOnConnectableFlowableAssembly(null);\n\n RxJavaPlugins.setOnParallelAssembly(null);\n\n lock.set(false);\n }\n }", "@Override\n public void turnOff() {\n System.out.println(\"this wont happen\");\n }", "void removePreviewGenerator(PreviewGenerator generator) {\n synchronized (previewGenerators) {\n previewGenerators.remove(generator);\n }\n }", "@Override\r\n\tpublic void off() {\n\r\n\t}", "public Generator(){}", "public void suppress() {\n\t\tstop = true;\n\t}", "public void engineOff(){\n engine = false;\n }", "@Override\n\tpublic void off() {\n\n\t}", "public void turnOff() {\n\t\tOn = false;\n\t\tVolume = 1;\n\t\tChannel = 1;\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:45.509 -0500\", hash_original_method = \"C231E33C68F8FEC3C6EDCF993CA1BD7A\", hash_generated_method = \"60AE8F641AB448C2AE7DFA7C6F9FF823\")\n \npublic void disconnected() {\n mSrcContext = null;\n mSrcHandler = null;\n mSrcMessenger = null;\n mDstMessenger = null;\n mConnection = null;\n }", "public Builder clearUsePlayerBasedSampling() {\n \n usePlayerBasedSampling_ = false;\n onChanged();\n return this;\n }", "@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setEmitOrgPRE(false);\r\n }", "public void stop() {\n enable = false;\n }", "public boolean eliminateLoop(){ return false; }", "public void disable() {\n\t\tm_runner.disable();\n\t}", "public void reset() {\n this.isExhausted = false;\n }", "public void disable();", "public void disable(){\r\n\t\tthis.activ = false;\r\n\t}", "@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setEmitTrgPRE(false);\r\n }", "public SkipGraphOperations(boolean isBlockchain)\r\n {\r\n this.isBlockchain = isBlockchain;\r\n searchRandomGenerator = new Random();\r\n if (isBlockchain)\r\n {\r\n //mBlocks = new Blocks();\r\n mTransactions = new Transactions();\r\n }\r\n\r\n\r\n mTopologyGenerator = new TopologyGenerator();\r\n System.gc(); //a call to system garbage collector\r\n }", "public void disableMonsters(){\n enabled = false;\n }", "public boolean offForEvaluation();", "void disable() {\n }", "void disable();", "void disable();", "@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setEmitTrgEND(false);\r\n }", "public boolean isGenerative () { return false; }", "@Override\n\tpublic void off() {\n\t\tSystem.out.println(\"turn off the \"+name+\" Light\");\n\t}", "public void switchOff();", "public void setEngineOff();", "@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setEmitOrgEND(false);\r\n }", "@DSSafe(DSCat.SAFE_OTHERS)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:01.348 -0500\", hash_original_method = \"70C01DEF86829F68F838E9F8223EE1C9\", hash_generated_method = \"C660A4FDE54A073E97068B4FD92F16CB\")\n \n@Override public void shutdownOutput() throws IOException {\n throw new UnsupportedOperationException();\n }", "public void setGeneratedCheck(){\n generatedCheck = !generatedCheck;\n }", "public void disable()\r\n\t{\r\n\t\tenabled = false;\r\n\t}", "public void reset() {\n next = 1000;\n }", "public void disable() {\n operating = false;\n }", "public void detach(ObserverGenerator<GeneratorAsync> observerGenerator) {\n this.observerGeneratorChannel = null;\n }", "public Builder clearGeneration() {\n bitField0_ = (bitField0_ & ~0x00000004);\n generation_ = 0L;\n onChanged();\n return this;\n }", "@Input(\"onOff\")\n synchronized public void onOff() {\n try {\n _switchJMXSource.setValue(false);\n } catch (PropertyVetoException e) {}\n }", "public static void traceOff() {\r\n\t\ttraceOn = false;\r\n\r\n\t}", "public void off() {\n // Sets the LED pin state to (low)\n ledPin.low();\n }", "public void turnOff() {\n update(0,0,0);\n this.status = false;\n }", "public void reset(){\r\n \tdefaultFlag = false;\r\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.364 -0500\", hash_original_method = \"2A27A75937E4BE02DA5FD7B031C4079A\", hash_generated_method = \"23BC72FFEAC2A16A0D3A8E2F49EBED8E\")\n \npublic void reset ()\n {\n contexts = new Context[32];\n namespaceDeclUris = false;\n contextPos = 0;\n contexts[contextPos] = currentContext = new Context();\n currentContext.declarePrefix(\"xml\", XMLNS);\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}", "public void disable ( ) {\r\n\t\tenabled = false;\r\n\t}", "public void shutdown() {\n this.dontStop = false;\n }", "public void reset() {\n this.inhibited = false;\n this.forced = false;\n }", "protected void reset(){\n inited = false;\n }", "public void deactivate() {\n\t\tSystem.out.println(\"WordReader.deactivate\");\n\t}", "public void stop() {\n\tanimator = null;\n\toffImage = null;\n\toffGraphics = null;\n }", "@Override\r\n public void turnOff() {\r\n isOn = false;\r\n Reporter.report(this, Reporter.Msg.SWITCHING_OFF);\r\n if (this.engaged()) {\r\n disengageLoads();\r\n }\r\n }", "public static void stopSimulation()\r\n {\r\n stopSimulation=true;\r\n }", "public void\t\t\tstopGeneration() throws Exception\n\t{\n\t\t\n\t\tif (RequestGenerator.DEBUG_LEVEL == 1) {\n\t\t\tthis.logMessage(\"Request generator \" + this.rgURI + \" stopping.\") ;\n\t\t}\n\t\tif (this.nextRequestTaskFuture != null &&\n\t\t\t\t\t\t!(this.nextRequestTaskFuture.isCancelled() ||\n\t\t\t\t\t\t\t\t\t\tthis.nextRequestTaskFuture.isDone())) {\n\t\t\tthis.nextRequestTaskFuture.cancel(true) ;\n\t\t}\n\t}", "public void shutdownNoiseMaker() {\n\t\tcnt.interrupt();\n\t\tsingleNoise.release();\n\t}", "public void sendAllSoundsOff()\n {\n super.sendAllSoundsOff();\n }", "public void off() throws Exception;", "public void reset() {\n onoff.reset();\n itiefe.reset();\n itiefe.setEnabled(false);\n }", "public void unsetLoop()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(LOOP$16);\n }\n }", "public void stopFeeding() {\n motor.set(0);\n }", "public void reset(){\n this.context.msr.setReadyForInput(false);\n emptyAllInputBuffers();\n emptyAllOutputBuffers();\n emptyEngineersConsoleBuffer();\n }", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}", "public void stop() {\n\t\tthis.stopper = true;\n\t}", "public void genRepCheck(){\r\n if (tx_cb.getValue() == null || paModules.getValue() == null || mainExciterSW.getValue() == null\r\n || filter.getValue() == null || switchPatch.getValue() == null || testLoad.getValue() == null\r\n || mainAntFeed.getValue() == null)\r\n genRep.setDisable(true);\r\n else\r\n genRep.setDisable(false);\r\n }", "@Override\n public void onDisable() {\n super.onDisable();\n running = false;\n }", "public void makeSilence() {\n\t\tmakeSilence(0, getSampleCount());\n\t}", "static void unstop(){\n stop=false;\n }", "public void turnOff() {\n // set the flag\n onFlag = false;\n \n // set the image\n setIcon(Utilities.resizeImageIcon(getWidth(), getHeight(), offImageIcon));\n }", "public void off() {\n\t\tSystem.out.println(\"Tuner is off\");\n\t}", "public void unsetReset() {\n\t\twasReset=false;\n\t}", "void unsetAuto();", "public void off() {\n this.relay.set(Relay.Value.kOff);\n }", "public void disableSound() {\n soundToggle = false;\n }", "@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setPassivateTrgINT(true);\r\n }", "@DSSafe(DSCat.SAFE_OTHERS)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:01.345 -0500\", hash_original_method = \"E0A9F4BE9C470EB91D47ECD4E4371B30\", hash_generated_method = \"B08BF9FD6A8594D256B74001AAB3CC0C\")\n \n@Override public void shutdownInput() throws IOException {\n throw new UnsupportedOperationException();\n }", "@Override\r\n public void disableStreamFlow() {\r\n SwitchStates.setPassivateOrgINT(true);\r\n }", "public void setDefaultValueGenerator(Generator<V> generator);", "public abstract void unblockNext();", "public void stop() {\n m_enabled = false;\n }", "@Override\r\n\tpublic void reset() {\n\r\n\t}", "@Override\r\n\tpublic void reset() {\n\r\n\t}", "public void unsetChanceCardShuffle() {\n ChanceCardShuffle = false;\n }", "public void stopTrainingMode() {\n\t\t\r\n\t}", "public synchronized void generate () {\n\t\tgenerate( () -> {\n\t\t});\n\t}", "@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}", "public void setOff(){\n state = false;\n //System.out.println(\"El requerimiento esta siendo atendido!\");\n }" ]
[ "0.65063643", "0.63991594", "0.6397925", "0.63432676", "0.6326914", "0.6267336", "0.6191012", "0.61679274", "0.61471313", "0.60754573", "0.6037136", "0.59551346", "0.59460765", "0.5946021", "0.5935683", "0.5924997", "0.5898594", "0.5894572", "0.587645", "0.5872231", "0.5864145", "0.58452255", "0.58410937", "0.58298445", "0.5803747", "0.5789445", "0.5786761", "0.578312", "0.578239", "0.5770895", "0.5763348", "0.57462317", "0.57244354", "0.5704391", "0.5704391", "0.56980675", "0.56902623", "0.5666085", "0.5660843", "0.5655841", "0.5655007", "0.56461483", "0.56401235", "0.5637902", "0.56338096", "0.55746406", "0.55713326", "0.5566231", "0.55651313", "0.5562677", "0.55468136", "0.55450535", "0.55432725", "0.5527444", "0.55178756", "0.55171937", "0.5517051", "0.5505488", "0.5489311", "0.5488094", "0.5478752", "0.5475814", "0.54746884", "0.5474674", "0.54706925", "0.54685044", "0.5467397", "0.54644644", "0.5461318", "0.5459978", "0.54554856", "0.5448557", "0.5448557", "0.5448557", "0.5448557", "0.54379773", "0.5429382", "0.54276407", "0.5425098", "0.5422269", "0.54209435", "0.5419852", "0.5418667", "0.5409594", "0.5403606", "0.5403137", "0.5395352", "0.53883356", "0.5385688", "0.5382738", "0.5368537", "0.536403", "0.5360236", "0.5360236", "0.5356337", "0.53518164", "0.5350484", "0.53496474", "0.53454024", "0.53451985" ]
0.5726143
32
Change the consumptionHasChanged value to the negation of the actual value
public void toggleConsumptionHasChanged() { this.consumptionHasChanged = (this.consumptionHasChanged) ? false : true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean valueChanged() {\n\t\treturn false;\n\t}", "BooleanProperty noValueWarningProperty();", "public void setConsumption(BigDecimal consumption) {\n this.consumption = consumption;\n }", "public void setConsumption(Integer consumption) {\r\n this.consumption = consumption;\r\n }", "public final void CanNotBeChanged () {\n\t\tSystem.out.println(\"Can not be Changed\");\n\t}", "public void reportIrreversibleChange() {\r\n Assert.isTrue(isReceiving());\r\n irreversibleChangeReported = true;\r\n }", "public BooleanProperty ignoreRefreshChangeProperty() {\n return ignoreRefreshChange;\n }", "@Override\n\tpublic void clearChanged() {\n\t\tthis.changed = false;\n\t}", "@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n\t\t\t\tif(newValue.intValue()<(int)systolicAlarm.getValue() && !sysShowing[0] ) {\n\t\t\t\t\tSystem.err.println(\"systolic alarm condition...\");\n\t\t\t\t\tjavafx.application.Platform.runLater(()-> {\n\t\t\t\t\t\tsysShowing[0]=true;\n\t\t\t\t\t\tsysAlert.show();\n\t\t\t\t\t});\n\t\t\t\t\tBPAlarm alarm=new BPAlarm(BP_ALARM_SYS, newValue.intValue());\n\t\t\t\t} else {\n\t\t\t\t\tsysAlert.hide();\n\t\t\t\t\tsysShowing[0]=false;\n\t\t\t\t}\n\t\t\t}", "void clearIsChanged();", "private void negate()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.negate();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}", "void checkConsumption()\n {\n assertEquals(\"Consumption doesn't match\", keyEventPair.getKey().isConsumed(), keyEventPair.getValue().isConsumed());\n }", "private void tickIsInProduction() {\n if (this.timeInState == this.unitInfo.getProductionTime() - 1) {\n this.player.setSuppliesMax(this.player.getSuppliesMax() + this.unitInfo.getSuppliesGain());\n changeState(this.unitInfo.getUnitStateAfterProduction());\n \n if (this.producer != null)\n this.producer.changeState(UnitState.HOLD);\n }\n \n }", "final void resetChanged() {\n this.changed = false;\n }", "public boolean unSetDangerous() {\r\n\t\tif(isDangerous && isCovered) {\r\n\t\t\tisDangerous=false;\r\n\t\t\t\r\n\t\t\tthis.setChanged();\r\n\t\t\tthis.notifyObservers();\r\n\t\t\tthis.clearChanged();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void onSensorUnreliable ()\r\n\t{\r\n\t\tif ((System.currentTimeMillis())>5000)\r\n\t\t{\r\n\t\t\tLog.d(TAG,\"You need to calibrate your sensors.\");\r\n\t\t}\r\n\t}", "private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}", "private boolean needsToRecalcStats() {\n\n return this.equipsChanged;\n }", "protected synchronized void clearChanged() {\n changed = false;\n }", "protected void subtract() {\n\t\tfinal float previous = value;\n\t\tvalue = Math.max(min, value - incrementStep);\n\n\t\tif (value != previous) {\n\t\t\tupdateAndAlertListener();\n\t\t}\n\n\t\treturn;\n\t}", "private void handleSensorDeactivated() {\n if (securityRepository.getAlarmStatus() == AlarmStatus.PENDING_ALARM) {\n setAlarmStatus(AlarmStatus.NO_ALARM);\n }\n// switch (securityRepository.getAlarmStatus()) {\n// case PENDING_ALARM -> setAlarmStatus(AlarmStatus.NO_ALARM);\n// case ALARM -> setAlarmStatus(AlarmStatus.PENDING_ALARM);\n// }\n }", "public static void assertNotChanged(PmObject... pms) {\n for (PmObject pm : pms) {\n if (pm.isPmValueChanged()) {\n fail(pm.getPmRelativeName() + \" should not be in a changed state.\");\n }\n }\n }", "protected synchronized void startUpdateSuppressTimer(){\n AbstractWidgetProperty pvValueProperty =\n editpart.getWidgetModel().getProperty(controlPVValuePropId);\n pvValueListeners = pvValueProperty.getAllPropertyChangeListeners();\n pvValueProperty.removeAllPropertyChangeListeners();\n updateSuppressTimer.start(timerTask, getUpdateSuppressTime());\n }", "@Override\n public void changed(ObservableValue<? extends Boolean> ov, Boolean onHidden, Boolean onShown) {\n }", "public boolean hasUpdate(VehicleState change) {\n\n return !this.equals(change);\n }", "public void setNotSupplied(final boolean value) {\n this.notSupplied = value;\n }", "public void testNotApply() {\n\t\tthis.recordReturn(this.one, this.one.canApply(), true);\n\t\tthis.recordReturn(this.two, this.two.canApply(), false);\n\t\tthis.replayMockObjects();\n\t\tassertFalse(\"Should not be able to apply if one change can not be applied\", this.aggregate.canApply());\n\t\tthis.verifyMockObjects();\n\t}", "protected void onDiscard() {\r\n this.setActive(false);\r\n }", "public boolean getAChanged() {\r\n return !OpbComparisonHelper.isEqual(\r\n a, aDataSourceValue);\r\n }", "protected void do_disabilityFTF_propertyChange(PropertyChangeEvent arg0) {\n\t\tsetIncomeTotal();\n\t}", "public STATE_KEY eventRemoteStateMissedCall() {\n\t\tviewMissedNotification();\n\t\treturn STATE_KEY.NOT_CHANGE;\n\t}", "@Override\n\t\tpublic void validate() throws ValidationError {\n\t\t\tif (newValueOfPropertyToChange < 0) {\n\t\t\t\tthrow new TestFailure(\"propertyToChange is not ok\");\n\t\t\t}\n\t\t}", "protected boolean isDiscarded()\n {\n return m_cUnits == -1;\n }", "private void fireValueChange(boolean b) {\n \t\n\t\t\n\t}", "private void FilterPropertyChanges(Object sender, PropertyChangedEventArgs e)\r\n {\r\n // check if this is the property of interest\r\n if (e.getPropertyValue(_propertyName)!= null)\r\n PropertyChanged();\r\n }", "Boolean getIsChanged();", "public void buyFarm(){\n bought = !bought;\n }", "public boolean getIgnoreRefreshChange() {\n return ignoreRefreshChange.get();\n }", "public STATE_KEY eventNotifyCall() {\n\t\treturn STATE_KEY.NOT_CHANGE;\n\t}", "public void setUnstable() {\n this.unstable = true;\n this.unstableTimeline.play();\n if (this.online == true) {\n this.statusLed.setStatus(\"alert\");\n this.statusLed.setFastBlink(true);\n }\n }", "@Override\r\n\tpublic void unsetGiveValue() {\n\t\t\r\n\t}", "public BigDecimal getConsumption() {\n return consumption;\n }", "private boolean noVacancy() {\r\n\t\t\treturn removed = false;\r\n\t\t}", "public boolean offForEvaluation();", "@Override\n public void onValueChange(NumberPicker picker, int oldVal, int newVal)\n {\n\n\n if(newVal>0)\n {\n txtWellnessActivityTTHErrorMessage.setVisibility(View.GONE);\n }\n }", "public Integer getConsumption() {\r\n return consumption;\r\n }", "public Double getChange();", "@Test\n public void timeCollectionDisabled() {\n mDeviceState.setCharging(true);\n runScenario();\n }", "public boolean hasChanges() {\n return Math.abs(this.x) > 1.0E-5f || Math.abs(this.y) > 1.0E-5f || Math.abs(this.scale - this.minimumScale) > 1.0E-5f || Math.abs(this.rotation) > 1.0E-5f || Math.abs(this.orientation) > 1.0E-5f;\n }", "public boolean isBancrupt(){\r\n \treturn _budget <= 0;\r\n }", "public double calculateObservedDisagreement();", "public void setKeepChangedValues(boolean keepChanged);", "public boolean getNegated() {\r\n return Negated;\r\n }", "@Test\n public void testSetUpdateState_ChangeFromDoNotSubscribe() {\n indexDefinition.setUpdateState(IndexUpdateState.DO_NOT_SUBSCRIBE);\n\n // Sanity check\n assertEquals(0, indexDefinition.getSubscriptionTimestamp());\n\n long now = System.currentTimeMillis();\n indexDefinition.setUpdateState(IndexUpdateState.SUBSCRIBE_AND_LISTEN);\n\n assertTrue(Math.abs(indexDefinition.getSubscriptionTimestamp() - now) < 10);\n }", "public void isChanged()\n\t{\n\t\tchange = true;\n\t}", "public boolean hasChanged();", "public boolean hasChanged();", "public long setAmountNeg() {\n return -amount;\n }", "public void setNotPersisted(boolean value) {\n this.notPersisted = value;\n }", "public void setAntiConvergence(boolean b){\n antiConvergence = b;\n }", "void unsetValueQuantity();", "@Test\n public void testTargetChangedNoModification() throws Exception {\n when(mockDifferentiator.isNew(Mockito.any(ByteBuffer.class))).thenReturn(false);\n final ConfigurationChangeNotifier testNotifier = mock(ConfigurationChangeNotifier.class);\n\n // In this case the WatchKey is null because there were no events found\n establishMockEnvironmentForChangeTests(null);\n\n verify(testNotifier, Mockito.never()).notifyListeners(Mockito.any(ByteBuffer.class));\n }", "public boolean isRemovedToInvisibleEvent(int oldIndex) {\r\n return isVisibilityChange;\r\n }", "@Override\n public void onShowRefresh(boolean notUsed) {\n // nothing required for this assignment.\n }", "public void depreciate(){\r\n float amountN = getAmount();\r\n float reduce = amountN*(rate/100);\r\n amountN = amountN - reduce;\r\n this.amount = amountN;\r\n }", "public boolean isValueChanged() {\n return VALUECHANGED.equals(message);\n }", "boolean disableMonitoring();", "public void setSensorOff() {\n\n }", "@Test\r\n\tpublic void testCoinRejected() {\r\n\t\tCoin coin = new Coin(7);\r\n\t\tTheCoinSlotListener csListener = new TheCoinSlotListener();\r\n\t\tcsListener.coinRejected(vend.getCoinSlot(), coin);\r\n\t\tassertEquals(csListener.getCurrentCredit(), 0);\t\t\t\r\n\t}", "@Override\n public void changed(ObservableValue<? extends Toggle> observable, Toggle oldValue, Toggle newValue) {\n\n prices.add(0);\n if (newValue == spareRibs) {\n prices.add(169);\n\n } if (newValue == origSparePlus20) {\n prices.add(189);\n\n } if (newValue == plus40) {\n prices.add(209);\n\n } if (newValue == amiRibsAndChickenBreast) {\n prices.add(185);\n\n } if (newValue == route66) {\n prices.add(205);\n\n } if (newValue == chilliDip) {\n prices.add(6);\n\n } if (newValue == smokeyBBQ) {\n prices.add(6);\n\n } if (newValue == aioli) {\n prices.add(6);\n } if (newValue == chipotleMayo) {\n prices.add(6);\n } if (newValue == bakedPotatoWSourButter) {\n prices.add(10);\n } if (newValue == bakedPotatoWSourCream) {\n prices.add(10);\n } if (newValue == bakedPotatoWSourGarlicButter) {\n prices.add(10);\n } if (newValue == CrispyPotatoButtonPlus10 ) {\n prices.add(10);\n }\n if (newValue == ChooseSoftIce){\n prices.add(49);\n }\n if(newValue == showTotal){\n prices.add(0);\n }\n\n\n int price = 0;\n for (int i = 0; i < prices.size() - 1; i++) {\n price = prices.get(i) + price;\n }\n totalPrice.setText(\"\" + price);\n System.out.println(price);\n\n }", "public void setVibrationOff() {\n\n }", "public void markUnsold(){\n\n myMaxRejectCountCount--;\n }", "boolean getNegated();", "public void setAnnounced(Boolean newValue);", "public boolean verifyChangePayorDisabled() {\n\t\treturn !btnChangePayor.isEnabled();\n\t}", "default void negate()\n {\n getAxis().negate();\n setAngle(-getAngle());\n }", "@Override\n public void onValueChange(NumberPicker picker, int oldVal, int newVal) {\n\n if(newVal<=0)\n {\n txtWellnessActivityTTHErrorMessage.setVisibility(View.VISIBLE);\n }\n else\n {\n txtWellnessActivityTTHErrorMessage.setVisibility(View.GONE);\n }\n }", "public boolean getKeepChangedValues();", "public boolean fieldHideActualCost(FieldContext fieldContext) {\n\t\treturn false;\n\t}", "private void actionChangedEstimatorOFF ()\r\n\t{\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetFile().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComponentRadioEstimatorSetManual().setEnabled(false);\r\n\r\n\t\tmainFormLink.getComponentPanelLeft().getCombobobxEstimatorBacteriaType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorDrugType().setEnabled(false);\r\n\t\tmainFormLink.getComponentPanelLeft().getComboboxEstimatorAlgorithmType().setEnabled(false);\r\n\t}", "public boolean isHiddenValue(long millis) { return !this.timeline.containsDomainValue(new Date(millis)); }", "public void indicateNot() {\r\n notIndicated = true;\r\n }", "private void raiseIgnorable(double higher, double lower) {\n this.eatable *= lower;\n this.playable *= lower;\n this.ignorable *= higher;\n }", "@Override\n\tpublic boolean getLinearityChange()\n\t{\n\t\treturn hasRan;\n\t}", "public void stateChanged(ChangeEvent param1ChangeEvent) {\n/* 1503 */ if (param1ChangeEvent == null) {\n/* 1504 */ throw new NullPointerException();\n/* */ }\n/* 1506 */ firePropertyChange(\"AccessibleVisibleData\", \n/* 1507 */ Boolean.valueOf(false), \n/* 1508 */ Boolean.valueOf(true));\n/* */ }", "void unsetValuePeriod();", "@Override\r\n\tpublic void minusFromCost() {\n\t\t\r\n\t}", "public void setPricePerSquareFoot(double newPricePerSquareFoot){\nif(newPricePerSquareFoot > 0){\npricePerSquareFoot = newPricePerSquareFoot;\n}\n}", "@Test\n public void testDontRaiseAlertAmountDidntTipBalance() {\n BigDecimal balance = new BigDecimal(\"3.99\").setScale(2);\n String threshold = \"40\";\n long accountNumber = 1234567L;\n Integer transactionClass = 6;\n Integer transactionType = 2269;\n BigDecimal transactionAmount = new BigDecimal(\"10.00\").setScale(2);\n\n String accountNumberString = Long.toString(accountNumber);\n when(tuple.getValueByField(CBSMessageFields.FIELD_CURRENT_ACCOUNT_BALANCE)).thenReturn(balance);\n when(tuple.getStringByField(OCISDetails.THRESHOLD)).thenReturn(threshold);\n when(tuple.getLongByField(CBSMessageFields.FIELD_ACCOUNT_NUMBER)).thenReturn(accountNumber);\n when(tuple.getValueByField(CBSMessageFields.FIELD_TXN_AMOUNT)).thenReturn(transactionAmount);\n when(tuple.getIntegerByField(CBSMessageFields.FIELD_TXN_CLASS)).thenReturn(transactionClass);\n when(tuple.getIntegerByField(CBSMessageFields.FIELD_TXN_TYPE)).thenReturn(transactionType);\n\n RaiseLowBalanceAlert alertFunction = new RaiseLowBalanceAlert();\n alertFunction.execute(tuple, collector);\n\n ArgumentCaptor<Values> valuesCaptor = ArgumentCaptor.forClass(Values.class);\n verify(collector).emit(valuesCaptor.capture());\n\n Values values = valuesCaptor.getValue();\n assertThat(values, notNullValue());\n assertThat(values.size(), is(2));\n assertThat((String)values.get(0), is(accountNumberString));\n assertThat(values.get(1), nullValue());\n }", "void onDiscardChangesSelected();", "public boolean filtersChanged(){\n if(startDateChanged || endDateChanged || stationIdChanged || languageChanged){\n return true;\n }\n return false;\n }", "@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint perPersonTipPercentage=((JSlider) e.getSource()).getValue();\n\t\t\t\tfloat perPersonNewTip=(((float)perPersonTipPercentage)/100)*(Float.valueOf(TipCalcView.getInstance().totalTip.getText()).floatValue());\n\t\t\n\t\t\t\tDecimalFormat decimalFormat=new DecimalFormat(\"#.##\");\n\t\t\t\tTipTailorView.getInstance().labels[no].setText(String.valueOf(decimalFormat.format(perPersonNewTip)));\n\t\t\t\tTipCalcView.getInstance().perPersonTip.setText(\"Not Applicable\");\n\t\t\t\tTipCalcView.getInstance().perPersonTip.setEditable(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void setActual(boolean value) {\n this.actual = value;\n }", "public void toggle()\n\t{\n\t\tbitHolder.setValue(Math.abs(bitHolder.getValue() - 1 ));\n\t\t\n\t}", "private void onShowingChanged(ObservableValue<? extends Boolean> pObservable, Boolean pOldValue, Boolean pNewValue)\n\t\t{\n\t\t\tif (!pNewValue.booleanValue())\n\t\t\t{\n\t\t\t\tfireEditingComplete(ICellEditorListener.FOCUS_LOST);\n\t\t\t}\n\t\t}", "void invalidated(TwoWayEvent.Invalidated<DM, UMD, DMD> evt);", "@NoProxy\n @NoWrap\n @NoDump\n public void setSignificantChange(final boolean val) {\n significantChange = val;\n }", "@Override\n public void updateWithoutObservations(SensingDevice sensingDevice) {\n\n }", "@Override\n public boolean canUpdate() { return false; }", "private void onCalculatingDischargingTime() {\n store.saveString(remainingTimeForBatteryToDrainOrCharge, \"Computing drain time...\");\n }" ]
[ "0.5944415", "0.59278655", "0.5795721", "0.57862324", "0.57371205", "0.5677812", "0.5666203", "0.5630379", "0.5580942", "0.5538201", "0.5521059", "0.5446718", "0.54336506", "0.54186916", "0.5399345", "0.53923976", "0.533856", "0.5335477", "0.5331376", "0.52795005", "0.52752614", "0.5271217", "0.52621394", "0.52602345", "0.52514607", "0.5244724", "0.5232777", "0.52300966", "0.52240366", "0.52209413", "0.5214119", "0.52043235", "0.51905394", "0.51871437", "0.51783407", "0.517531", "0.517339", "0.5168992", "0.5154072", "0.5132548", "0.5124366", "0.5124148", "0.5123865", "0.51205695", "0.51065075", "0.50981253", "0.50965375", "0.509149", "0.5089379", "0.50873387", "0.50665283", "0.5058754", "0.5054648", "0.5046692", "0.5045448", "0.5039368", "0.5039368", "0.5032367", "0.50251156", "0.5015511", "0.5015124", "0.50063", "0.5005081", "0.5004399", "0.50016934", "0.49897155", "0.4980977", "0.4961278", "0.49597403", "0.49591282", "0.49570107", "0.4954511", "0.4954412", "0.49487647", "0.4927375", "0.49212968", "0.49143368", "0.49101126", "0.49035403", "0.49010238", "0.48994", "0.48969465", "0.4889703", "0.48772418", "0.48753434", "0.4872901", "0.4872693", "0.48721737", "0.48649913", "0.4864201", "0.48527434", "0.48499826", "0.48496652", "0.4849531", "0.48490787", "0.48489332", "0.4846081", "0.48382345", "0.48368132", "0.48331478" ]
0.75641257
0
Creates random .ppm image
public Edit(int x, int y, int maxColor)throws IOException{ height=y; width=x; mCVal=maxColor; String input = j.showInputDialog("Choose a file name:"); PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(input+".ppm"))); out.println("P3"); out.println(x+" "+y); out.println(maxColor); input = j.showInputDialog("Method:\n<1>Random"); if(input.equals("1")){ out.println(random(x,y,maxColor)); } out.close(); // close the output file System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createTestImage()\n {\n initialImage = new byte[3 * size / 2];\n for (int i = 0; i < size; i++)\n {\n initialImage[i] = (byte) (40 + i % 199);\n }\n\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n initialImage[i] = (byte) (40 + i % 200);\n initialImage[i + 1] = (byte) (40 + (i + 99) % 200);\n }\n }", "public int getRandomImage() {\n Random r = new Random();\n return r.nextInt(10);\n }", "public Image generate() {\n generateStripes(rainbow, 7, vertical);\n return new ImageRGB(data);\n }", "public void createTestPattern()\n {\n int i;\n int j;\n RGBPixel p = new RGBPixel();\n\n for ( i = 0; i < getXSize(); i++ ) {\n for ( j = 0; j < getYSize(); j++ ) {\n if ( ((i % 2 != 0) && (j % 2 == 0)) || \n ((j % 2 != 0) && (i % 2 == 0)) ) {\n p.r = (byte)255;\n p.g = (byte)255;\n p.b = (byte)255;\n }\n else {\n p.r = 0;\n p.g = 0;\n p.b = 0;\n }\n if ( j == getYSize()/2 ) {\n p.r = (byte)255;\n p.g = 0;\n p.b = 0;\n }\n if ( i == getXSize()/2) {\n p.r = 0;\n p.g = (byte)255;\n p.b = 0;\n }\n putPixelRgb(i, j, p);\n }\n }\n }", "static String getImage() {\n int rand = (int) (Math.random() * 13);\n return \"file:src/images/spaceships/\" + rand + \".png\";\n }", "public static Image loadPGM(String fileName) {\r\n Scanner scan = new Scanner(Image.class.getResourceAsStream(fileName));\r\n\r\n scan.nextLine(); // line P2\r\n scan.nextLine(); // line comment\r\n // read width\r\n int width = scan.nextInt();\r\n // read height \r\n int height = scan.nextInt();\r\n // read max gray level (not used)\r\n scan.nextInt(); \r\n // create an initially white image\r\n Image result = new Image(width, height); \r\n // rad pixels\r\n for (int x = 0; x < height; x++) {\r\n for (int y = 0; y < width; y++) {\r\n result.changeColorPixel(y, x, new GrayColor(scan.nextInt()));\r\n }\r\n }\r\n return result;\r\n }", "public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }", "public PgmImage() {\r\n int[][] defaultPixels = {{0, 1, 2, 3}, {4, 5, 6, 7}, {8, 9, 10, 11}};\r\n pixels = new int[defaultPixels.length][defaultPixels[0].length];\r\n for (int row = 0; row < pixels.length; ++row) {\r\n for (int col = 0; col < pixels[0].length; ++col) {\r\n pixels[row][col] = (int) (defaultPixels[row][col] * 255.0 / 12);\r\n }\r\n }\r\n pix2img();\r\n }", "private void generate() {\n preGenerate();\n\n SpriteGrid grid = new SpriteGrid(specState);\n IOHelper.pixelsToBitmap(grid.draw(), sprite);\n\n }", "IMG createIMG();", "public PowerUp(String imagePath){\r\n super(imagePath);\r\n this.setPosition();\r\n setAlive(false);\r\n point=new Point(rand.nextDouble()* Window.getWidth(),rand.nextDouble()* Window.getHeight());\r\n }", "private PImage createBG() {\n\t\tPImage image = new PImage(64, 64);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tl\"), 0, 0, 16, 16, 0, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tm\"), 0, 0, 16, 16, 16, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tm\"), 0, 0, 16, 16, 32, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_tr\"), 0, 0, 16, 16, 48, 0, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_ml\"), 0, 0, 16, 16, 0, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 16, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 32, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mr\"), 0, 0, 16, 16, 48, 16, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_ml\"), 0, 0, 16, 16, 0, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 16, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mm\"), 0, 0, 16, 16, 32, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_mr\"), 0, 0, 16, 16, 48, 32, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_bl\"), 0, 0, 16, 16, 0, 48, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_bm\"), 0, 0, 16, 16, 16, 48, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_bm\"), 0, 0, 16, 16, 32, 48, 16, 16);\n\t\timage.copy(Textures.get(\"gui.box_black_red_br\"), 0, 0, 16, 16, 48, 48, 16, 16);\n\t\treturn image;\t\t\n\t}", "public static void main(String args[]) throws Exception \n\t{\n\t\tint w =255 ,h=255;\n\t\t\n\n\n\t\tFileWriter fstream = new FileWriter(\"C:/Documents and Settings/Administrator/Desktop/ah/a.txt\");\n\t\tBufferedWriter out = new BufferedWriter(fstream);\n\t\tFile outputFile = new File(\"C:/Documents and Settings/Administrator/Desktop/ah/b.bmp\");\n\n\t\tBufferedImage img = new BufferedImage(w,h,BufferedImage.TYPE_INT_RGB);\n\n\n\n\t\tfor(int i=0;i<h;i++)\n\t\t{\n\t\t\tfor (int j=0;j<w;j++)\n\t\t\t{\n\t\t\t\t//int rgbValue=bufferedImage.getRGB(i,j)+0xFFFFFF+1;\n\t\t\t\t\n\t\t\t\tdouble rand = Math.random();\n\t\t\t\tif(rand>0.5)\n\t\t\t\t{\n\t\t\t\t\timg.setRGB(i, j,255);\n\t\t\t\t\t/*red = ((rgbValue >> 16) & 0xFF)-256;\n\t\t\t\t\tgreen = ((rgbValue >> 8) & 0xFF)-256;\n\t\t\t\t\tblue = (rgbValue & 0xFF)-256;\n\n\t\t\t\t\t\n\n\t\t\t\t\tpixel_red[i][j]=red;\n\t\t\t\t\tpixel_green[i][j]=green;\n\t\t\t\t\tpixel_blue[i][j]=blue;*/\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\timg.setRGB(i, j,0);\n\t\t\t\t\t/*red = ((rgbValue >> 16) & 0xFF);\n\t\t\t\t\tgreen = ((rgbValue >> 8) & 0xFF);\n\t\t\t\t\tblue = (rgbValue & 0xFF);\n\n\n\n\t\t\t\t\tpixel_red[i][j]=red;\n\t\t\t\t\tpixel_green[i][j]=green;\n\t\t\t\t\tpixel_blue[i][j]=blue;*/\n\t\t\t\t}\n\t\t\t\t //set pixel values\n\n\t\t\t\t//pp[index++]=rgbValue;\n\n\n\t\t\t}\n\t\t\tout.newLine();\n\n\t\t}\n\t\tImageIO.write(img, \"bmp\", outputFile); \n\t\tout.close();\n\t\t \n\n\n\n\t\t\n\t}", "public BufferedImage getRandomImage() {\n\n Random randomRow = new Random();\n int rowIndex = (randomRow.nextInt(16)) * 8;\n\n Random randomColumn = new Random();\n int columnIndex = (randomColumn.nextInt(16)) * 12;\n\n System.out.println(\"rowIndex = \" + rowIndex + \", columnIndex = \" + columnIndex);\n\n return input.getSubimage(rowIndex, columnIndex, subImageWidth, subImageHeight);\n }", "private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }", "private void generateSprites() {\n final int PIXEL_ZOMBIE_SKIN = 0xa0ff90;\n final int PIXEL_SKIN = 0xFF9993;\n\n int pix = 0;\n for (int i = 0; i < 18; i++) {\n int skin = PIXEL_SKIN;\n int clothes = 0xFFffff;\n\n if (i > 0) {\n skin = PIXEL_ZOMBIE_SKIN;\n clothes = (random.nextInt(0x1000000) & 0x7f7f7f);\n }\n for (int t = 0; t < 4; t++) {\n for (int d = 0; d < 16; d++) {\n double dir = d * Math.PI * 2 / 16.0;\n\n if (t == 1)\n dir += 0.5 * Math.PI * 2 / 16.0;\n if (t == 3)\n dir -= 0.5 * Math.PI * 2 / 16.0;\n\n // if (i == 17)\n // {\n // dir = d * Math.PI * 2 / 64;\n // }\n\n double cos = Math.cos(dir);\n double sin = Math.sin(dir);\n\n for (int y = 0; y < 12; y++) {\n int col = 0x000000;\n for (int x = 0; x < 12; x++) {\n int xPix = (int) (cos * (x - 6) + sin * (y - 6) + 6.5);\n int yPix = (int) (cos * (y - 6) - sin * (x - 6) + 6.5);\n\n if (i == 17) {\n if (xPix > 3 && xPix < 9 && yPix > 3 && yPix < 9) {\n col = 0xff0000 + (t & 1) * 0xff00;\n }\n } else {\n if (t == 1 && xPix > 1 && xPix < 4 && yPix > 3 && yPix < 8)\n col = skin;\n if (t == 3 && xPix > 8 && xPix < 11 && yPix > 3 && yPix < 8)\n col = skin;\n\n if (xPix > 1 && xPix < 11 && yPix > 5 && yPix < 8) {\n col = clothes;\n }\n if (xPix > 4 && xPix < 8 && yPix > 4 && yPix < 8) {\n col = skin;\n }\n }\n sprites[pix++] = col;\n\n // If we just drew a pixel, make the next one an almost-black\n // pixel, and if it's already an almost-black one, make it\n // transparent (full black). (This is all honored only if the\n // next pixel isn't actually set to something else.) This takes\n // advantage of the left-to-right scanning of the sprite\n // generation to create a slight shadow effect on each sprite.\n if (col > 1) {\n col = 1;\n } else {\n col = 0;\n }\n }\n }\n }\n }\n }\n }", "int[][][] mosaicingImage(int[][][] imageArray, int height, int width, int seedNum);", "Image createImage();", "public abstract Image gen();", "public static void singleRunTest(){ \t\n BlueRand random = new BlueRand(\"sample/input/a.jpg\", \"sample/input/b.jpg\");\n random.setOutputFile(\"sample/output/singleRun_ab.txt\");\n random.setOutputImage(\"sample/output/singleRun_ab.bmp\");\n random.considerTwoLSB(false);\n try {\n\t ArrayList<Byte> output = random.generateRandom();\n\t System.out.println(\"Single run finished. Bytes generated: \" + output.size());\n } catch(BlueRandException e){\n \te.printStackTrace();\n }\n }", "public void populateGrid() {\n for (int i=0; i<5; i++) {\n int chance = (int) random(10);\n if (chance <= 3) {\n int hh = ((int) random(50) + 1) * pixelSize;\n int ww = ((int) random(30) + 1) * pixelSize;\n\n int x = ((int) random(((width/2)/pixelSize))) * pixelSize + width/4;\n int y = ((int) random((height-topHeight)/pixelSize)) * pixelSize + topHeight;\n\n new Wall(w/2, 190, hh, ww).render();\n }\n }\n\n int fewestNumberOfPowerUps = 3;\n int greatesNumberOfPowerUps = 6;\n int wSize = 2;\n int hSize = 2;\n\n powerUps = new ArrayList <PowerUp> ();\n createPowerUps (fewestNumberOfPowerUps, greatesNumberOfPowerUps, wSize, hSize);\n}", "public static void main(String args[]) {\n double zoomLevel = 3;\n int iternumber = 100;\n for (int i = 0; i < 10; i++) {\n String fileName = \"Test\"+i+\".ppm\";\n Fractal.makeImage(-1.45,0,1000,zoomLevel,fileName,iternumber);\n zoomLevel = zoomLevel/10;\n iternumber += 100;\n }\n }", "@Test\r\n public void testComplex(){\r\n List<Tone> palette = StandardPalettes.PWG_STANDARD;\r\n\r\n BufferedImage image = ImageFileUtils.loadImageResource(\"/sampleImages/complex/rooves.jpg\");\r\n\r\n PaletteReplacer replacer = new PaletteReplacer();\r\n\r\n BufferedImage result = replacer.replace(image, palette);\r\n\r\n BufferedImage target = ImageFileUtils.loadImageResource(\"/resultImages/paletteReplacer/pwgRooves.png\");\r\n\r\n assertPixelsMatch(target, result);\r\n }", "public void setup() {\r\n\r\n\tint w = 324, h = 200;\r\n\tImageProcessor ip = new ColorProcessor(w, h);\r\n\tint centerx = 162, centery = 100;\r\n\tdouble radius = 90;\r\n\tfor (double counter = 0; counter < 20; counter = counter + 0.001) {\r\n\t\tdouble x = Math.sin(counter) * radius + centerx;\r\n\t\tdouble y = Math.cos(counter) * radius + centery;\r\n\t\tip.putPixel((int) x, (int) y, -1);\r\n\r\n\t}\r\n\tnew ImagePlus(\"Circle Test\", ip).show();\r\n\r\n}", "private int getRandomPiece() {\r\n return new Random().nextInt(Constants.NUM_PIECES);\r\n }", "public static void simplestRunTest(){\n BlueRand random = new BlueRand(\"sample/input/a.jpg\", \"sample/input/b.jpg\");\n try {\n \tArrayList<Byte> output = random.generateRandom();\n System.out.println(\"Simplest run finished. Bytes generated: \" + output.size());\n } catch(BlueRandException e){\n \te.printStackTrace();\n }\n }", "private RandomImageFinder() {\n }", "public pn_Creating() {\n initComponents();\n imageCreating.start();\n }", "public void reset() {\n x = random(-2*width, 3*width); // set the x position\n y = random(-height, 2*height); // set the y position\n c[0] = color(random(150, 255), random(150, 255), random(150, 255)); // set the top color (a bit lighter)\n // randomly set the 4 colors in the base of the shape\n for (int i=1; i<5; i++) {\n c[i] = color(random(255), random(255), random(255)); // random RGB color\n }\n }", "public PgmImage(String filename) {\r\n pixels = null;\r\n readPGM(filename);\r\n if (pixels != null) {\r\n pix2img();\r\n }\r\n }", "public MapGen()//Collect images, create Platform list, create grassy array and generate a random integer as the map wideness\n\t{\n\t\tblocksWide= ThreadLocalRandom.current().nextInt(32, 64 + 1);\n\t\tclouds=kit.getImage(\"Resources/SkyBackground.jpg\");\n\t\tdirt=kit.getImage(\"Resources/Dirt.png\");\n\t\tgrass[0]=kit.getImage(\"Resources/Grass.png\");\n\t\tgrass[1]=kit.getImage(\"Resources/Grass1.png\");\n\t\tgrass[2]=kit.getImage(\"Resources/Grass2.png\");\n\t\tplatforms=new ArrayList<Platform>();\n\t\tgrassy=new int[blocksWide];\n\t\tgrassT=new int[blocksWide];\n\t\tgenerateTerrain();\n\t\t\n\t\t\n\t\t\n\t}", "public ImageIcon ImagePrompt(){\r\n\t\t\tImageIcon promptImage = null;\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tImageIcon aImage = new ImageIcon(\"aFinal.png\");\r\n\t\t\tImageIcon bImage = new ImageIcon(\"bFinal.png\");\r\n\t\t\tImageIcon cImage = new ImageIcon(\"cFinal.png\");\r\n\t\t\tImageIcon dImage = new ImageIcon(\"dFinal.png\");\r\n\t\t\tImageIcon eImage = new ImageIcon(\"eFinal.png\");\r\n\t\t\tImageIcon fImage = new ImageIcon(\"fFinal.png\");\r\n\t\t\tImageIcon gImage = new ImageIcon(\"gFinal.png\");\r\n\t\t\tImageIcon e1Image = new ImageIcon(\"eFinal1.png\");\r\n\t\t\tImageIcon f1Image = new ImageIcon(\"fFinal1.png\");\r\n\t\t\t\r\n\t\t\tImageIcon[] note ={aImage, bImage, cImage, dImage, eImage, fImage, gImage, e1Image, f1Image};\r\n\t\t\t\r\n\t\t\tint noteIndex = rand.nextInt(note.length);\r\n\t\t\tpromptImage = note[noteIndex];\r\n\t\t\t\r\n\t\t\treturn promptImage;\r\n\t\t\t\r\n\t\t}", "public boolean generateImageFromText();", "private TetrisPiece randomPiece() {\n\t\tint rand = Math.abs(random.nextInt());\n\t\treturn new TetrisPiece(rand % (PIECE_COLORS.length));\n\t}", "public void random_init()\r\n\t{\r\n\t\tRandom random_generator = new Random();\r\n\t\t\r\n\t\tfor(int i=0;i<chromosome_size;i++)\r\n\t\t{\r\n\t\t\tchromosome[i] = random_generator.nextInt(num_colors)+1;\r\n\t\t}\r\n\t}", "public Pixmap newPixmap(String fileName, PixmapFormat format);", "void mosaic(int seed);", "public static synchronized void createPatternImage(String... args) {\n if(args.length < 1) {\n return;\n }\n\n reset();\n currentPattern = PatternReader.readPattern(args);\n createPatternImage(currentPattern, null);\n }", "M generateNoise();", "public void createNewImageFile(){\n fillNewImage();\n\n try {\n ImageIO.write(newImage, imageFileType, new File(k + \"_Colored_\" + fileName.substring(0,fileName.length() - 4) + \".\" + imageFileType));\n } catch (IOException e){\n e.printStackTrace();\n }\n \n }", "int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }", "public void readPGM(String filename) {\r\n try {\r\n Scanner infile = new Scanner(new FileReader(filename));\r\n // process the top 4 header lines\r\n String filetype = infile.nextLine();\r\n if (!filetype.equalsIgnoreCase(\"p2\")) {\r\n System.out.println(\"[readPGM]Cannot load the image type of \" + filetype);\r\n return;\r\n }\r\n int cols = infile.nextInt();\r\n int rows = infile.nextInt();\r\n int maxValue = infile.nextInt();\r\n pixels = new int[rows][cols];\r\n System.out.println(\"Reading in image from \" + filename + \" of size \" + rows + \" by \" + cols);\r\n // process the rest lines that hold the actual pixel values\r\n for (int r = 0; r < rows; r++) {\r\n for (int c = 0; c < cols; c++) {\r\n pixels[r][c] = (int) (infile.nextInt() * 255.0 / maxValue);\r\n }\r\n }\r\n infile.close();\r\n } catch (FileNotFoundException fe) {\r\n System.out.println(\"Had a problem opening a file.\");\r\n } catch (Exception e) {\r\n System.out.println(e.toString() + \" caught in readPPM.\");\r\n e.printStackTrace();\r\n }\r\n }", "private void createImgSample() throws IOException {\n\t\tSystem.out.print(\"[INFO][PLUGIN][REPLY]:Creating IMG Sample...\");\n\t\tURL url = new URL(\"http://w23.loxa.edu.tw/mm974401/SmallNight2019.png\");\n\t\tHttpURLConnection con = (HttpURLConnection) url.openConnection();\n\t\tcon.setRequestProperty(\"User-agent\", \" Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0\");\n\t\tBufferedInputStream in = new BufferedInputStream(con.getInputStream());\n\t\tbyte[] data = new byte[1024];\n\t\tnew File(\"reply/img/Sample\").mkdir();\n\t\tFile sampImg = new File(\"reply/img/Sample/SmallNight2019.png\");\n\t\tFileOutputStream fos = new FileOutputStream(sampImg);\n\t\tint n;\n\t\twhile((n=in.read(data,0,1024))>=0) \n\t\t\tfos.write(data,0,n);\n\t\tfos.flush();\n\t\tfos.close();\n\t\tin.close();\n\t\tFileWriter sampCmd = new FileWriter(\"reply/cmd/SampleImg.yml\");\n\t\tsampCmd.write(\"img\\n\");\n\t\tsampCmd.write(\"Sample\\n\");\n\t\tsampCmd.write(\"sample||Sample||TEST||test\\n\");\n\t\tsampCmd.write(\"break\\n\");\n\t\tsampCmd.flush();\n\t\tsampCmd.close();\n\t\tSystem.out.println(\"DONE!\");\n\t}", "private void generarColor() {\r\n\t\tthis.color = COLORES[(int) (Math.random() * COLORES.length)];\r\n\t}", "public void makeRandColor(){}", "private String beautiplyFileNameGenerator() {\r\n\t\t// /randomvalue between 0 to 9\r\n\t\tString name = \"beautiply\" + new Random().nextInt(9) + \".png\";\r\n\r\n\t\treturn name;\r\n\t}", "private void getRandomSprite(String type) {\n\t\tint randInt = new Random().nextInt(3);\n\t\tspriteNum = randInt;\n\t\tswitch(type){\n\t\tcase \"red\":\n\t\t\tspriteCol = 0;\n\t\t\tbreak;\n\t\tcase \"blue\":\n\t\t\tspriteCol = 1;\n\t\t\tbreak;\n\t\tcase \"green\":\n\t\t\tspriteCol = 2;\n\t\t\tbreak;\n\t\tcase \"black\":\n\t\t\tspriteCol = 3;\n\t\t\tbreak;\n\t\tcase \"grey\":\n\t\t\tspriteCol = 4;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tspriteCol =0;\n\t\t\tbreak;\n\t\t}\n\t}", "public Money (Bitmap res,int w, int h){\n\n x = 100;\n y = 100;\n dx = 30;\n spritesheet = res;\n height = h;\n width = w;\n row = 0;\n for (int i = 0; i < numbers; i++){\n imageMoney[i] = Bitmap.createBitmap(res, i*32 ,0,32,64);\n\n }\n\n randomize();\n\n\n //setBitmap(GamePanel.getArray().get(0),GamePanel.getArray().get(1));\n //name = \"King\";\n //spritesheet = BitmapFactory.decodeResource(getResources(), R.drawable.diamond);\n //y = GamePanel.HEIGHT;\n\n //number1 =res1;\n //number2 = res2;\n //startTime = System.nanoTime();\n }", "private void genRandomPattern(float ratioInh, float ratioAct) {\n layoutPanel.inhNList = getRandomPointsIndex(ratioInh, null);\n layoutPanel.activeNList = getRandomPointsIndex(ratioAct,\n layoutPanel.inhNList);\n }", "public void generete() {\n int minQuantFig = 1,\r\n maxQuantFig = 10,\r\n minNum = 1,\r\n maxNum = 100,\r\n minColor = 0,\r\n maxColor = (int)colors.length - 1,\r\n\r\n // Initialize figures property for random calculations\r\n randomColor = 0,\r\n randomFigure = 0,\r\n\r\n // Squere property\r\n randomSideLength = 0,\r\n\r\n // Circle property\r\n randomRadius = 0,\r\n \r\n // IsoscelesRightTriangle property \r\n randomHypotenus = 0,\r\n \r\n // Trapizoid properties\r\n randomBaseA = 0,\r\n randomBaseB = 0,\r\n randomAltitude = 0;\r\n\r\n // Generate random number to set figueres's quantaty\r\n setFigureQuantaty( generateWholoeNumInRange(minQuantFig, maxQuantFig) );\r\n\r\n for( int i = 0; i < getFigureQuantaty(); i++ ) {\r\n\r\n // Convert double random value to int and close it in range from 1 to number of elements in array\r\n randomFigure = (int)( Math.random() * figures.length );\r\n \r\n randomColor = generateWholoeNumInRange( minColor, maxColor ); // Get random color's index from colors array\r\n\r\n // Create new figure depending on randomFigure \r\n switch (figures[randomFigure]) {\r\n\r\n case \"Circle\":\r\n\r\n randomRadius = generateWholoeNumInRange( minNum, maxNum ); // Get random value of circle's radius;\r\n\r\n Circle newCircle = new Circle( colors[randomColor], randomRadius ); // Initialize Circle with random parameters\r\n\r\n newCircle.drawFigure();\r\n \r\n break;\r\n\r\n case \"Squere\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n Squere newSquere = new Squere( colors[randomColor], randomSideLength ); // Initialize Circle with random parameters\r\n\r\n newSquere.drawFigure();\r\n\r\n break;\r\n\r\n case \"Triangle\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n randomHypotenus = generateWholoeNumInRange( minNum, maxNum ); // Get random value of hypotenus;\r\n\r\n IsoscelesRightTriangle newTriangle = new IsoscelesRightTriangle( colors[randomColor], randomSideLength, randomHypotenus ); // Initialize Circle with random parameters\r\n\r\n newTriangle.drawFigure();\r\n\r\n break;\r\n\r\n case \"Trapezoid\":\r\n\r\n randomBaseA = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side A;\r\n\r\n randomBaseB = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side B;\r\n\r\n randomAltitude = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's altitude;\r\n\r\n Trapezoid newTrapezoid = new Trapezoid( colors[randomColor], randomBaseA, randomBaseB, randomAltitude ); // Create new Trapezoid with random parameters\r\n\r\n newTrapezoid.drawFigure();\r\n\r\n break;\r\n\r\n };\r\n };\r\n }", "@Test\r\n public void testTrivialReplacement(){\r\n List<Tone> palette = Arrays.asList(new Tone(new Color(200,10,10)),\r\n new Tone(new Color(10,200,10)),\r\n new Tone(new Color(10,10,200)));\r\n\r\n BufferedImage image = ImageFileUtils.loadImageResource(\"/sampleImages/geometric/redBlueQuarter.png\");\r\n\r\n PaletteReplacer replacer = new PaletteReplacer();\r\n\r\n BufferedImage result = replacer.replace(image, palette);\r\n\r\n PaletteDistribution analysis = new Palettester().analyseAllColors(result);\r\n\r\n assertEquals(2, analysis.byCount().size());\r\n assertEquals(palette.get(0), analysis.byCount().get(0).getTone());\r\n assertEquals(palette.get(2), analysis.byCount().get(1).getTone());\r\n }", "public void\r NewPixmap(CType display_context, int width, int height,\r ILPix_t image, ILPix_t mask);", "private byte[] PPMfile() {\n StringBuilder Finald = new StringBuilder();\n Finald.append(\"P6\");\n Finald.append(\"\\n\");\n Finald.append(width);\n Finald.append(\" \");\n Finald.append(height);\n Finald.append(\"\\n\");\n Finald.append(255);\n Finald.append(\"\\n\");\n for (int x = 0; x < height; ++x) {\n for (int y = 0; y < width; ++y) {\n char auxe = (char) FinalR[x][y];\n Finald.append(auxe);\n auxe = (char) FinalG[x][y];\n Finald.append(auxe);\n auxe = (char) FinalB[x][y];\n Finald.append(auxe);\n }\n }\n String Finaldes = Finald.toString();\n return Finaldes.getBytes();\n }", "private Ghost ghostFactory(Map map) {\n // Random ghost position\n int posX;\n int posY;\n do {\n posX = random.nextInt(Config.MAP_SIZE_X);\n posY = random.nextInt(Config.MAP_SIZE_Y);\n }while (map.getTile(posX,posY) != 0);\n // Random ghost color\n int sel = random.nextInt(colors.length);\n Color color = Color.decode(colors[sel]);\n // Choose direction for Ghost\n Ghost.Direction dir;\n int[] dirs = {0, 0, 0, 0};\n dirs[0] = map.getTile(posX - 1, posY); // left\n dirs[1] = map.getTile(posX + 1, posY); // right\n dirs[2] = map.getTile(posX, posY - 1); // up\n dirs[3] = map.getTile(posX, posY + 1); // down\n int result;\n do {\n result = random.nextInt(4);\n } while (dirs[result] != 0);\n dir = switch (result) {\n case 0 -> Ghost.Direction.LEFT;\n case 1 -> Ghost.Direction.RIGHT;\n case 2 -> Ghost.Direction.UP;\n case 3 -> Ghost.Direction.DOWN;\n default -> throw new IllegalStateException(\"Unexpected value: \" + result);\n };\n //Create ghost\n return new Ghost(Config.GRID_X*posX + Config.GRID_X/2, Config.GRID_Y*posX + Config.GRID_Y/2,\n Config.GHOST_SIZE_X,Config.GHOST_SIZE_Y, Config.GHOST_MOVEMENT_SPEED_X, Config.GHOST_MOVEMENT_SPEED_Y,\n dir, color);\n }", "void generateNewPuzzle() {\n\t\t/* Clean up and initialize the layout for the new puzzle */\n\t\tinitLayout();\n\n\t\t/* Make appropriate changes to the UI */\n\t\tmsgText.setText(R.string.good_luck_string); //change text to 'Good Luck!'\n\t\tviewAgainButton.setText(R.string.see_again_string); //change text to \"View Original Image\"\n\t\t\n\t\t/* Generate the puzzle again */\n\t\tgeneratePuzzle(this.getResources(), R.drawable.pic);\n\t}", "void createDummyPbufferSurface();", "public void makeImage() {\n image = new GreenfootImage(\"highscoreb.png\");\n \n image.setFont(new Font(\"Arial\", false, false, 50));\n image.setColor(Color.WHITE);\n image.setFont(new Font(\"Arial\", false, false, 25));\n renderer.drawShadowString(image, name, 25, getHeight() - 50);\n setBackground(image);\n }", "public PixImage toPixImage() {\n // Replace the following line with your solution.\n\t PixImage image=new PixImage(getWidth(),getHeight());\n\t \n\t DList<int[]> runs_new=new DList<int[]>();\n\t\t\t for(RunIterator i=this.iterator();i.hasNext();) {\n\t\t\t int[] run = i.next();\n\t\t\t for (int t= 0; t < run[0]; t++) {\n\t\t\t \t runs_new.addLast(run);\n\t\t\t System.out.print(\"(\" + run[1]+\" \"+ run[2]+\" \"+run[3]+\")\");\n\t\t } \n\t }\t\n int position=1;\n for(int j=0;j<height;j++) {\n\t for(int i=0;i<width;i++) {\n\t\t\n\t\t DListNode<int[]> run_new=runs_new.nth(position);\n\t\t position++;\n\t\t \n\t\t image.setPixel(i, j, (short) run_new.item[1], (short) run_new.item[2], (short) run_new.item[3]);\n\t }\n }\n\t\t \n\t\t \n\t return image;\n }", "private int randomPiece() {\n return (int)(Math.random()*N_PIECES);\n }", "@Test\r\n public void testSingleColor(){\r\n List<Tone> palette = Arrays.asList(new Tone(Color.red));\r\n\r\n BufferedImage image = ImageFileUtils.loadImageResource(\"/sampleImages/dimensions/2x4.png\");\r\n\r\n PaletteReplacer replacer = new PaletteReplacer();\r\n\r\n BufferedImage result = replacer.replace(image, palette);\r\n\r\n PaletteDistribution analysis = new Palettester().analyseAllColors(result);\r\n\r\n assertEquals(1, analysis.byCount().size());\r\n assertEquals(palette.get(0), analysis.byCount().get(0).getTone());\r\n }", "@Test\n public void testMonochromaticPalettesOne() {\n this.runAnalogousPalette(RGB_RESULTS_ONE, 1);\n }", "public static void main(String[] args) {\r\n // instantiate the PgmImage object according to the \r\n // command line argument\r\n PgmImage img;\r\n String filename = \"default\";\r\n String operation = \"none\";\r\n String value = \"0\";\r\n if (args.length > 1) {\r\n operation = args[1];\r\n }\r\n if (args.length > 0) {\r\n filename = args[0];\r\n img = new PgmImage(filename);\r\n } else {\r\n img = new PgmImage();\r\n filename = \"default\";\r\n }\r\n\r\n /**\r\n * *************************************************\r\n * Apply preferred image processing here:\r\n * ************************************************\r\n */\r\n if (operation.equalsIgnoreCase(\"flipH\")) {\r\n img.flipH();\r\n }\r\n if (operation.equalsIgnoreCase(\"flipV\")) {\r\n img.flipV();\r\n }\r\n if (operation.equalsIgnoreCase(\"rotate\")) {\r\n img.rotateClockWise();\r\n }\r\n if (operation.equalsIgnoreCase(\"antiRotate\")) {\r\n img.rotateAntiClockWise();\r\n }\r\n if (operation.equalsIgnoreCase(\"value\")) {\r\n img.contrast(Integer.valueOf(value));\r\n }\r\n // set up the GUI for display the PgmImage object \r\n JFrame f = new JFrame(\"PGM Image: \" + filename + \" Image Operation: \" + operation);\r\n f.addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent e) {\r\n System.exit(0);\r\n }\r\n });\r\n f.add(img);\r\n f.pack();\r\n f.setVisible(true);\r\n }", "static void loadPgm() {\n String file;\n try {\n // Prompt for pgm\n System.out.print(\"Enter terrain file: \"); file = scan.nextLine();\n // Read pgm\n pgmInf = new PgmImageInfo( file );\n // More Interaction\n System.out.printf(\"Read terrain file: %d by %d, \", pgmInf.width, pgmInf.height );\n System.out.printf(\"height ranges from %d to %d.\\n\", 0, pgmInf.maxValue);\n }\n catch (Exception e) {\n System.out.println(\"readPgmFile: failed to read file! Error!: \" + e.getLocalizedMessage());\n loadPgm();\n }\n }", "private static Gremblin getRandomGrem(DMPlayer p){\n\t\tdouble ran = Math.random();\n\t\t//red\n\t\tif(ran<=.333){\n\t\t\treturn new Gremblin('r',p);\n\t\t}\n\t\t//blue\n\t\tif(ran<.667){\n\t\t\treturn new Gremblin('b',p);\n\t\t}\n\t\t//yellow\n\t\treturn new Gremblin('y',p);\n\t}", "static void changeToRandomColor( int rowNum, int colNum ) {\n int red = ( int )( Math.random() * 256 );\n int green = ( int )( Math.random() * 256 );\n int blue = ( int )( Math.random() * 256 );\n Mosaic.setColor( rowNum, colNum, red, green, blue );\n\n }", "public static void main(String[] args) {\n\r\n\t\tRandom rr=new Random();\r\n\t\t\r\n\t\tSystem.out.println(Math.random());//[0,1)\r\n\t\t \r\n\t\t// 第一种情况 int(强转之后最终的值一定是0)\r\n\t\t// 第二种情况 int(强转之后将小数点舍去 1-5)\r\n\t\tSystem.out.println((int)Math.random()*5);//0.99*5永远到不了5\r\n\t\tSystem.out.println((int)(Math.random()*5+1));//[1,5.)\r\n\t\t\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\t\r\n\t\tfor(int i=0;i<=20;i++){\r\n\t\t\tSystem.out.print(i%7+\"-\");\r\n\t\t\t\r\n\t\t}\r\n\t\t//1-M的随机产生\r\n\t\t//(int)(Math.random()*M+1)\r\n\t\t\r\n\t\t\r\n\t\t//产生0 1的概率不同 Math.random()<p?0:1\r\n\t\tSystem.out.println(\"----\"+rr.rand01p());\r\n\t\tSystem.out.println(\"----\"+rr.rand01());\r\n\t\tfor(int i=0;i<=11;i++){\r\n\t\t\tSystem.out.print(i%6+\"-\");\r\n\t\t \t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(rr.rand106());\r\n\t}", "public static void main(String[] args)\r\n {\n String dataDir = Utils.getSharedDataDir() + \"psd/\";\r\n\r\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\r\n // First convert the image to raw PSD format.\r\n try (PsdImage psdImage = (PsdImage) Image.load(dataDir + \"PsdImage.psd\"))\r\n {\r\n PsdOptions saveOptions = new PsdOptions();\r\n saveOptions.setCompressionMethod(CompressionMethod.Raw);\r\n psdImage.save(stream, saveOptions);\r\n }\r\n\r\n // Now reopen the newly created image.\r\n try (PsdImage psdImage = (PsdImage)Image.load(new ByteArrayInputStream(stream.toByteArray())))\r\n {\r\n Graphics graphics = new Graphics(psdImage);\r\n // Perform graphics operations.\r\n\r\n }\r\n //ExEnd:UncompressedImageStreamObject\r\n\r\n }", "private void initBackground() {\n\t\tfor (int i = numOfParticles - World.getObjects().size() - 1; i >= 0; i--) {\n\t\t\tfloat x = (float) (Math.random()\n\t\t\t\t\t* (Screen.getWidth() + LEDLogo.WIDTH * 2) - LEDLogo.WIDTH), y = (float) (Math\n\t\t\t\t\t.random() * (Screen.getHeight() + LEDLogo.HEIGHT * 2) - LEDLogo.HEIGHT);\n\t\t\tWorld.add(new LEDLogo(x, y, (float) Math.random() * 0.8f + 0.2f));\n\t\t}\n\t}", "private void preGenerate() {\n if (specState.randomSeed) {\n long seed = random.nextLong();\n runOnUiThread(() -> seedInput.setText(getString(R.string.integer, seed)));\n }\n\n if (specState.randomColor) {\n runOnUiThread(() -> {\n hueInput.setProgress(random.nextInt(256));\n saturationInput.setProgress(random.nextInt(256));\n valueInput.setProgress(random.nextInt(256));\n });\n }\n\n updateSpecs(specState);\n updateColorPreview();\n\n if (specState.targetWidth != sprite.getWidth() || specState.targetHeight != sprite.getHeight()) {\n recreateBitmap();\n }\n }", "public static void multiRunTest(){\n /* Input resources.\n * For each String:\n * - the first character is the name of the first image.\n * - the second character is the name of the second image.\n */\n String[] inputs = new String[]{\n \"ab\",\n \"cd\",\n \"ef\",\n \"gh\",\n \"il\",\n \"mn\"\n };\n \n BlueRand random = new BlueRand();\n random.setOutputFile(\"sample/output/multiRuns_output.txt\");\n random.setOutputImage(\"sample/output/multiRuns_output.bmp\");\n random.overwriteOutputFile(false); \n //random.deleteInputFiles(true);\n try {\n\t for (String s : inputs){\n\t random.setInputImages(\"sample/input/\"+s.charAt(0)+\".jpg\",\n\t \"sample/input/\"+s.charAt(1)+\".jpg\"); \n\t ArrayList<Byte> output = random.generateRandom();\n\t System.out.println(\"run finished... Bytes generated: \" + output.size());\n\t }\n } catch (BlueRandException e){\n \tSystem.out.println(e.getMessage());\n }\n }", "public void genRand(int n) {\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfor(int j = 0; j < n; j++) {\n\t\t\t\tm[i][j] = rand.nextInt(10);\n\t\t\t}\n\t\t}\n\t}", "public void createImage() {\n\t\tBufferedImage crab1ststep = null;\n\t\tBufferedImage crab2ndstep = null;\n\t\tBufferedImage crabhalf = null;\n\t\tBufferedImage crabfull = null;\n\t\tBufferedImage eye6 = null;\n\t\tBufferedImage eye5 = null;\n\t\tBufferedImage eye4 = null;\n\t\tBufferedImage eye3 = null;\n\t\tBufferedImage eye2 = null;\n\t\tBufferedImage eye1 = null;\n\t\tBufferedImage eyeClosed = null;\n\t\ttry {\n\t\t crabImage = ImageIO.read(new File(\"src/images/crab.png\"));\n\t\t crab1ststep = ImageIO.read(new File(\"src/images/crab1ststep.png\"));\n\t\t crab2ndstep = ImageIO.read(new File(\"src/images/crab2ndstep.png\"));\n\t\t crabhalf = ImageIO.read(new File(\"src/images/crabhalf.png\"));\n\t\t crabfull = ImageIO.read(new File(\"src/images/crabfull.png\"));\n\t\t crabWin = ImageIO.read(new File(\"src/images/crabwin.png\"));\n\t\t crabLose = ImageIO.read(new File(\"src/images/crablose.png\"));\n\t\t eye6 = ImageIO.read(new File(\"src/images/crab_eye6.png\"));\n\t\t eye5 = ImageIO.read(new File(\"src/images/crab_eye5.png\"));\n\t\t eye4 = ImageIO.read(new File(\"src/images/crab_eye4.png\"));\n\t\t eye3 = ImageIO.read(new File(\"src/images/crab_eye3.png\"));\n\t\t eye2 = ImageIO.read(new File(\"src/images/crab_eye2.png\"));\n\t\t eye1 = ImageIO.read(new File(\"src/images/crab_eye1.png\"));\n\t\t eyeClosed = ImageIO.read(new File(\"src/images/eyes_closed.png\"));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"bad\");\n\t\t}\n//\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n//\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n//\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n//\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\t\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\t\n\t\tblink.add(eye6);\n\t\tblink.add(eye6);\n//\t\tblink.add(eye5);\n//\t\tblink.add(eye5);\n\t\tblink.add(eye4);\n\t\tblink.add(eye4);\n//\t\tblink.add(eye3);\n//\t\tblink.add(eye3);\n\t\tblink.add(eye2);\n\t\tblink.add(eye2);\n//\t\tblink.add(eye1);\n//\t\tblink.add(eye1);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n//\t\tblink.add(eye1);\n//\t\tblink.add(eye1);\n\t\tblink.add(eye2);\n\t\tblink.add(eye2);\n//\t\tblink.add(eye3);\n//\t\tblink.add(eye3);\n\t\tblink.add(eye4);\n\t\tblink.add(eye4);\n//\t\tblink.add(eye5);\n//\t\tblink.add(eye5);\n\t\tblink.add(eye6);\n\t\tblink.add(eye6);\n\t}", "public void draw() {\n PImage grid = loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/tile.png\");\n for(int i = 0 ; i < 10 ; i++){\n for(int j = 0 ; j < 6 ; j++){\n image(grid, i*grid.width, j*grid.height);\n if(gridPlane.get(List.of(i, j)).getOwner() != null){\n if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Red\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red3.png\"), i*grid.width, j*grid.height);\n }\n }else if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Green\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green3.png\"), i*grid.width, j*grid.height);\n }\n }\n }\n }\n }\n if(this.finish == true){\n System.exit(0);\n }\n }", "private PointF getRandCoordinate() {\n Random r = new Random();\n float xRand = (r.nextInt(getWidth()) / density) + 1;\n float y = 10 / density;\n\n return new PointF(xRand, y);\n }", "public void createUfo() {\n if (ufos.size() > 0) return;\n\n int random10 = (int) (Math.random() * 10);\n if (random10 == 0) {\n double x = Math.random() * width;\n double y = Math.random() * height / 2;\n ufos.add(new Ufo(x, y));\n }\n }", "void genPermute() {\n\t\tpermute = new ArrayList<Integer>();\n\t\tfor(int idx = 0; idx < dim(); idx++)\n\t\t\tpermute.add(idx);\n\t\tjava.util.Collections.shuffle(permute);\n\t}", "public void setup() {\n size(1280, 720, P3D); // use the P3D OpenGL renderer\n noStroke(); // turn off stroke (for the rest of the sketch)\n smooth(6); // set smooth level 6 (default is 2)\n // create all the shapes with a certain radius and height\n for (int i=0; i<NUMSHAPES; i++) {\n float r = random(25, 200);\n float f = random(2, 5);\n shapes.add( new Pyramid(f*r, r) );\n }\n}", "private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }", "public BufferedImage toImage(){\n // turn it into a png\n int scale = 8;\n int w = 16;\n int h = 16;\n BufferedImage image = new BufferedImage(w * scale, h * scale, BufferedImage.TYPE_INT_ARGB);\n Color background = new Color(240, 240, 240);\n java.awt.Graphics gr = image.getGraphics();\n gr.setColor(background);\n gr.fillRect(0, 0, w * scale, h * scale);\n\n // so each 3 bytes describes 1 color?\n for(int i = 0; i < 256; ++i){\n\n // int r = palette.get(i * 3);\n // int g = palette.get(i * 3 + 1);\n // int b = palette.get(i * 3 + 2);\n\n // the Color() constructor that takes ints does values 0..255\n // but it has a float constructor, so why not divide\n //Color awtColor = new Color(r/64.0f, g/64.0f, b/64.0f);\n Color awtColor = getAwtColor(i);\n\n int row = i / 16;\n int col = i % 16;\n int y = row * scale;\n int x = col * scale;\n gr.setColor(awtColor);\n gr.fillRect(x, y, x + scale, y + scale);\n }\n\n return image;\n }", "public Rng() {\n\t\tr = new Random();\n\t}", "public Image getCardPlayer1() {\n Random rand = new Random();\r\n randomNum = rand.nextInt((52 - 1) + 1) + 1;\r\n Image p1 = new Image(\"/Images/cards/Card\" + randomNum + \".png\");\r\n return p1;\r\n }", "void mosaic(int seeds);", "private static BufferedImage getMap(int art, GameModel gameModel, Color mapC, Color skyC){\n\n BufferedImage image = new BufferedImage(2800,1800,BufferedImage.TYPE_4BYTE_ABGR);\n\n int genauigkeit = 400;\n\n int[] mapX = new int[genauigkeit + 2];\n int[] mapY = new int[genauigkeit + 2];\n\n mapX[genauigkeit + 1] = 0;\n mapX[genauigkeit] = GameLoop.imgW;\n\n mapY[genauigkeit + 1] = GameLoop.imgH;\n mapY[genauigkeit] = GameLoop.imgH;\n\n double[] rnd = new double[8];\n\n for(int i = 0;i < 4;i++){\n rnd[i] = Math.random() * 0.1;\n rnd[i+4] = Math.random();\n }\n\n for(int i = 0;i < genauigkeit;i++){\n mapX[i] = (int) (GameLoop.imgW/(double)genauigkeit * (i));\n\n switch(art){\n case 1:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.1) * gameModel.getHeight()/8);\n break;\n case 2:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.01) * gameModel.getHeight()/8);\n break;\n case 3:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.sin(i * 0.1) * gameModel.getHeight()/12 + i);\n break;\n case 4:\n mapY[i] = (int) (gameModel.getHeight()*0.8 - 1/(2000 + Math.pow(i - (genauigkeit - 2)/2.0,2)) * 1500000);\n break;\n case 5:\n mapY[i] = (int) (gameModel.getHeight()/(double)2 + Math.pow(Math.sin(i * 0.03),3) * gameModel.getHeight()/4);\n break;\n case 6:\n mapY[i] = (int) (gameModel.getHeight()/2.0);\n mapY[i] += Math.sin(i * (rnd[0])) * rnd[4] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[1])) * rnd[5] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[2])) * rnd[6] * gameModel.getHeight()*0.1;\n mapY[i] += Math.sin(i * (rnd[3])) * rnd[7] * gameModel.getHeight()*0.1;\n\n\n\n\n\n }\n\n }\n\n Polygon map = new Polygon(mapX,mapY,genauigkeit+2);\n\n Graphics2D g2d = image.createGraphics();\n\n g2d.setColor(skyC);\n\n g2d.fillRect(0,0,2800,1800);\n\n g2d.setColor(mapC);\n\n g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION,RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\n g2d.fillPolygon(map);\n\n return image;\n }", "public static void main( String[] args ) {\n Mosaic.open( ROWS, COLUMNS, SQUARE_SIZE, SQUARE_SIZE );\n fillWithRandomColors();\n currentRow = ROWS / 2; // Start at the center of the window.\n currentColumn = COLUMNS / 2;\n\n while ( true ) {\n changeToRandomColor( currentRow, currentColumn );\n randomMove();\n Mosaic.delay( 10 ); // Remove this line to speed things up!\n\n }\n }", "public static void main(String args[]) {\n\t\tint[][][] pic = read(\"tinypic.ppm\"); \n\t\tSystem.out.println(\"Standart pic \\n\"); // For a clean code\n\t\t// Displays the array's data on standard output\n\t\tprint(pic);\n\n\t\tSystem.out.println(\"flipHorizontally pic \\n\");\n\t\tprint(flipHorizontally(pic));\n\n\t\tSystem.out.println(\"flipVertically pic \\n\");\n\t\tprint(flipVertically(pic));\n\n\t\tSystem.out.println(\"greyScale pic \\n\");\n\t\tprint(greyScale(pic));\n\n\t}", "public Bitmap generateBackground()\n {\n Bitmap bg = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n Canvas temp = new Canvas(bg);\n for (int i = 0; i < width/blockWidth; i++)\n {\n for (int j = 0; j < height/blockHeight; j++)\n {\n Random rand = new Random();\n int val = rand.nextInt(5);\n\n if (val == 0)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_1), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n\n }\n else if (val == 1)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_2), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n }\n else if (val == 2)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_3), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n }\n else if (val == 3)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_4), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n }\n else if (val == 4)\n {\n temp.drawBitmap(Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(),R.drawable.ground_tile_5), blockWidth, blockHeight, true),\n i*blockWidth, j*blockHeight, null);\n }\n\n }\n }\n\n return bg;\n\n }", "static ArrayList<Piece> createPieces (Bitmap image) {\n\t\tint[] picSize = InitDisplay.getPicDimensions();\n\t\tint[] pieceSize = InitDisplay.getPieceDimensions();\n\t\t\n\t\t/* Scale the image to the dynamically calculated values */\n\t\tBitmap imageScaled = Bitmap.createScaledBitmap(image, picSize[WIDTH], picSize[HEIGHT], false);\n\t\t\n\t\t/* The imageScaled bitmap now contains the given image in scaled bitmap form. Break it and\n\t\t * assign it to [rows*cols] small Jigsaw pieces after randomizing their positions and orientations\n\t\t * The image is being broken into a 3x3 grid. i represents rows while j represents columns */\n\t\t\n\t\tArrayList<Piece> pieces = new ArrayList<Piece>(Play.NUM[TOTAL]);\n\t\tBitmap imgPiece = null;\n\t\tint offsetX = 0, offsetY = 0;\n\t\tint pos = 0;\n\t\t\n\t\tfor (int i=0; i<Play.NUM[COLS]; i++) {\n\t\t\t/* offsetX represents the x coordinate while offsetY represents the y coordinate */\n\t\t\toffsetX = 0; //start from (0,0)\n\t\t\tfor (int j=0; j<Play.NUM[ROWS]; j++) {\n\t\t\t\t/* Extract a specific area of the imageScaled bitmap and store it in imgPiece.\n\t\t\t\t * Coordinates for the extraction are specified using offsetX and offsetY */\n\t\t\t\timgPiece = Bitmap.createBitmap\n\t\t\t\t\t\t(imageScaled, offsetX, offsetY, pieceSize[WIDTH], pieceSize[HEIGHT]);\n\t\t\t\t\n\t\t\t\t/* Create a Jigsaw piece and add it to the pieces array */\n\t\t\t\tPiece piece = new Piece (imgPiece); //create a new piece with the extracted bitmap image\n\t\t\t\tpieces.add(pos, piece); //add the piece to the pieces array\n\t\t\t\t\n\t\t\t\toffsetX += pieceSize[WIDTH]; //move to the next x coordinate\n\t\t\t\tpos++;\n\t\t\t}\n\t\t\toffsetY += pieceSize[HEIGHT]; //move to the next y coordinate\n\t\t}\n\t\t\n\t\treturn pieces;\n\t}", "public void numberImage(){\r\n\t\t//Randomly generated values displayed on the canvas\r\n\t\tString strArray = String.valueOf(Arrays.toString(randArray));\r\n\t\tstrArray = strArray.substring(1, strArray.length()-1).replace(\",\", \"\");\r\n\t\tnumberImage = new GLabel(strArray,250,250 );\r\n\t\tnumberImage.setColor(Color.green);\r\n\t\tnumberImage.setFont(\"Arial-40\");\r\n\t\tcanvas.add(numberImage);\r\n\t}", "public static String getRandomImageUrl() {\n int index = RandomNumberGenerator.getRandomInt(0, images.length / 2 - 1);\n return images[index * 2 + 1];\n }", "private void random() {\n\n\t}", "@Test\n void writeToImage() {\n String imagename = \"img\";\n int width = 1600;\n int height = 1000;\n int nx =500;\n int ny =800;\n ImageWriter imageWriter = new ImageWriter(imagename, width, height, nx, ny);\n for (int col = 0; col < ny; col++) {\n for (int row = 0; row < nx; row++) {\n if (col % 10 == 0 || row % 10 == 0) {\n imageWriter.writePixel(row, col, Color.blue);\n }\n }\n }\n imageWriter.writeToImage();\n }", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n double p = sc.nextDouble();\n int M = sc.nextInt();\n\n // repeatedly created N-by-N matrices and display them using standard draw\n for (int i = 0; i < M; i++) {\n boolean[][] open = Percolation.random(N, p);\n StdDraw.clear();\n StdDraw.setPenColor(StdDraw.BLACK);\n Percolation.show(open, false);\n StdDraw.setPenColor(StdDraw.BOOK_BLUE);\n boolean[][] full = Percolation.flow(open);\n Percolation.show(full, true);\n StdDraw.show(1000);\n }\n }", "private void loadRandomState() {\n patternName = \"Random\";\n\n for (int i = 0; i < NUMCELLS; i++)\n currentState[i] = (rand.nextInt() > 0x40000000) ? (byte)1 : (byte)0;\n\n generations = 0;\n }", "public void createPowerUps (int low, int high, int h, int w) {\n int num = (int) (random (low, high + 1));\n for (int i = 0; i < num; i++) {\n int x = ((int) random((width/pixelSize))) * pixelSize;\n int y = ((int) random((height-topHeight)/pixelSize)) * pixelSize + topHeight;\n if (getLocation(x, y).getType() == LocationType.AIR) {\n powerUps.add (new PowerUp (x, y, w, h));\n }\n }\n}", "void randomBlock() {\n\t\t// map generate (int map)\n\t\tfor (int i = 0; i < mapX; i += 2) {\n\t\t\tfor (int j = 0; j < mapY; j += 2) {\n\t\t\t\tint r = (int) Math.random() * 4;\n\t\t\t\tif (r == 0) {\n\t\t\t\t\ttileMap[i][j] = new Tile(i, j, 1);\n\t\t\t\t\ttileMap[i + 1][j] = new Tile(i + 1, j, 1);\n\t\t\t\t\ttileMap[i][j + 1] = new Tile(i, j + 1, 1);\n\t\t\t\t\ttileMap[i + 1][j + 1] = new Tile(i + 1, j + 1, 1);\n\n\t\t\t\t} else {\n\t\t\t\t\ttileMap[i][j] = new Tile(i, j, 0);\n\t\t\t\t\ttileMap[i + 1][j] = new Tile(i + 1, j, 0);\n\t\t\t\t\ttileMap[i][j + 1] = new Tile(i, j + 1, 0);\n\t\t\t\t\ttileMap[i + 1][j + 1] = new Tile(i + 1, j + 1, 0);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void genField() {\n\t\tint mines = (int)(height * width * .1);\r\n\t\tRandom random = new Random();\r\n\t\tint x;\r\n\t\tint y;\r\n\t\tint i = 0;\r\n\t\twhile(i < mines) {\r\n\t\t\tx = random.nextInt(width);\r\n\t\t\ty = random.nextInt(height);\r\n\t\t\tif(cells.get(x).get(y).getValue() != -1) {\r\n\t\t\t\tcells.get(x).get(y).setValue(-1);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(x = 0; x < width; x++) {\r\n\t\t\tfor(y = 0; y < height; y++) {\r\n\t\t\t\tif(cells.get(x).get(y).getValue() != -1) {\r\n\t\t\t\t\tprocessCell(x, y); //generate cell number\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Point randomPoint() \t // creates a random point for gameOjbects to be placed into\r\n\t{\n\t\tint x = rand.nextInt(900);\r\n\t\tx = x + 50;\r\n\t\tint y = rand.nextInt(900);\r\n\t\ty = y + 50;\r\n\t\tPoint p = new Point(x, y);\r\n\t\treturn p;\r\n\t}", "public Grid generateGrid(){\n myGrid = new RectGrid();\n myStates = new HashMap<>();\n\n for(int row = 0; row < imageHeight; row++){\n for(int column = 0; column < imageWidth; column++){\n int color = myImage.getRGB(column, row);\n int blue = color & 0xff;\n int green = (color & 0xff00) >> 8;\n int red = (color & 0xff0000) >> 16;\n\n int stateValue = color*-1;\n System.out.println(stateValue);\n //int stateValue = Integer.parseInt(hex, 16);\n //System.out.println(stateValue);\n\n Cell myCell = new RPSCell();\n myCell.setState(stateValue);\n myGrid.placeCell(row, column, myCell);\n\n Color myColor = Color.rgb(red, green, blue);\n myStates.put(stateValue, myColor);\n }\n }\n return myGrid;\n }", "public void initDrawPile(boolean shuffle) {\r\n\t\tCard tmp;\r\n\t\tfor (String c : Card.COLORS) {\r\n\t\t\tfor (int v : Card.VALUES) {\r\n\t\t\t\ttmp = new Card(v, c);\r\n\t\t\t\tdrawPile.addCard(tmp);\r\n\t\t\t}\r\n\t\t}\r\n\t\tdrawPile.addCard(new Card(0, Card.JOKERS[0]));\r\n\t\tdrawPile.addCard(new Card(0, Card.JOKERS[1]));\r\n\t\tif (shuffle)\r\n\t\t\tdrawPile.shuffle();\r\n\t}", "public static void main(String[] args){\n\tImage test = new Image(700,700);\n\t//addRectangle(test, 0, 0, 600, 600, -1, -1, -1);\n\t//test.display();\n\taddCircle(test, 300, 300, 100, 255, 255, 255);\n\taddCircle(test, 500, 300, 100, 255, 255, 255);\n\taddCircle(test, 400, 400, 150, 255, 255, 255);\n\taddCircle(test, 350, 350, 25, 0, 0, 0);\n\taddCircle(test, 450, 350, 25, 0, 0, 0);\n\taddCircle(test, 350, 350, 24, 255, 255, 255);\n\taddCircle(test, 450, 350, 24, 255, 255, 255);\n\taddCircle(test, 350, 350, 10, 0, 0, 0);\n\taddCircle(test, 450, 350, 10, 0, 0, 0);\n\taddRectangle(test, 325, 475, 150, 20, 0, 0, 0);\n\ttest.setPixel(0,0,255,255,255);\n\ttest.display();\n\tencrypt(test, \"PerfektDokumentation\");\n\ttest.display();\n\tdecrypt(test, \"PerfektDokumentation\");\n\t\n\ttest.display();\n\t}", "private void getRandomNumber() {\n\t\tRandom random = new Random();\n\t\tint randomCount = 255;\n\t\tint randNum = 0; \n\t\tfor(int i = 0; i < numberAmt; i++) {\n\t\t\trandNum = random.nextInt(randomCount);\n\t\t\tswitch (numberType) {\n\t\t\tcase 1:\n\t\t\t\trandomNumbers.add(Integer.toString(randNum));\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(randNum > 15)\n\t\t\t\t\trandomNumbers.add(String.format(\"%8s\", Integer.toBinaryString(randNum)).replace(\" \", \"0\"));\n\t\t\t\telse\n\t\t\t\t\trandomNumbers.add(String.format(\"%4s\", Integer.toBinaryString(randNum)).replace(\" \", \"0\"));\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\trandomNumbers.add(Integer.toHexString(randNum));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.61970377", "0.6164212", "0.61611307", "0.6062105", "0.5912504", "0.5793976", "0.5788754", "0.5785526", "0.57205015", "0.57032984", "0.5670526", "0.56680065", "0.56337667", "0.5631003", "0.5581539", "0.5572978", "0.5571353", "0.5544093", "0.55207235", "0.5518018", "0.55160165", "0.54639244", "0.5441253", "0.542393", "0.5366783", "0.5325761", "0.53245014", "0.5323782", "0.5320715", "0.53123975", "0.5305393", "0.5273115", "0.52619404", "0.5249058", "0.5242639", "0.5235475", "0.52301866", "0.5228011", "0.5207375", "0.52054095", "0.5197083", "0.5192392", "0.51826644", "0.5171556", "0.51684153", "0.5152545", "0.51098144", "0.5101976", "0.51004255", "0.50964296", "0.50898826", "0.50718474", "0.50682575", "0.5064959", "0.505907", "0.50588197", "0.5054187", "0.5043389", "0.50287765", "0.5027333", "0.50183785", "0.50137174", "0.5005244", "0.50007385", "0.49976262", "0.49907994", "0.498597", "0.49840316", "0.4981181", "0.49795756", "0.49751472", "0.49710208", "0.49653816", "0.49622348", "0.495906", "0.4957146", "0.49550653", "0.49483997", "0.49475524", "0.49271768", "0.49259976", "0.4922143", "0.49110693", "0.49078357", "0.49070784", "0.4906968", "0.4904857", "0.48938295", "0.48869166", "0.48818445", "0.48792538", "0.48720455", "0.4868653", "0.48578966", "0.48570168", "0.48466682", "0.4840596", "0.4838256", "0.4837641", "0.48357102", "0.48261598" ]
0.0
-1
Averages orig with extreme contrast Making it look like graphics from a 90's pc
public void cool()throws IOException{ int q= 2; ArrayList<Scanner> f = new ArrayList(); String input = j.showInputDialog("Choose a file to use:"); f.add(new Scanner(new File(input+".ppm"))); // PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("jkndanwladlanfseuihrvniurhceimucauqrcal3iuirlheunrliuvznmlriunh.ppm"))); out.println(f.get(0).next());out.println(f.get(0).next()); out.println(f.get(0).next());int uh=Integer.parseInt(f.get(0).next()); out.println(uh); while(f.get(0).hasNext()){ for(int rgb=0;rgb<3;rgb++){ if(f.get(0).hasNext()){ String ass=f.get(0).next(); int azz= Integer.parseInt(ass); if(azz<(uh/2)){ out.println(""+0); }else{ out.println(""+uh); } } } } out.close(); // f.set(0,(new Scanner(new File(input+".ppm"))));f.add(new Scanner(new File("jkndanwladlanfseuihrvniurhceimucauqrcal3iuirlheunrliuvznmlriunh.ppm"))); input = j.showInputDialog("Choose a name for the new file:"); out = new PrintWriter(new BufferedWriter(new FileWriter(input+".ppm"))); out.println("P3"); int height[]= new int[q]; int width[]= new int[q]; int largest=0; for(int a=0;a<q;a++){ f.get(a).next(); height[a]=Integer.parseInt(f.get(a).next()); width[a]=Integer.parseInt(f.get(a).next()); //f.get(a).next(); } for(int a=0;a<q;a++){ if(height[largest]*width[largest]<height[a]*width[a]){ largest=a; } } out.println(height[largest]);out.println(width[largest]); int ass=0; int azz=0; for(int x=0;x<width[largest];x++){ for(int y=0;y<height[largest];y++){ for(int c=0;c<3;c++){ for(int a=0;a<q;a++){ if(f.get(a).hasNext()){ if(x<width[a]&&y<height[a]){ ass=ass+Integer.parseInt(f.get(a).next()); azz++; } } } ass=ass/azz; out.print(ass+" "); ass=0; azz=0; } } } for(int a =0;a<q;a++){ f.get(a).close(); } out.close(); System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Bitmap rgbAverageContrastAugmentationRS(Bitmap bmp) {\n\n\n\n RenderScript rs = RenderScript.create(getContext()); //Create base renderscript\n\n Allocation input = Allocation.createFromBitmap(rs, bmp); //Bitmap input\n Allocation output = Allocation.createTyped(rs, input.getType(), Allocation.USAGE_SCRIPT ); //Bitmap output\n\n ScriptC_histogram histoScript = new ScriptC_histogram(rs);\n\n histoScript.set_RGB(true);\n\n histoScript.set_size(bmp.getWidth() * bmp.getHeight());\n\n short[] LUTrgb;\n\n LUTrgb = histoScript.reduce_LUTCumulatedHistogram(input).get(); //Get result\n\n histoScript.destroy();\n\n ScriptC_computeLut lut = new ScriptC_computeLut(rs);\n\n lut.set_lutSingle(LUTrgb);\n\n lut.forEach_assignLutRGBAverage(input,output);\n\n\n //Keep only one chann\n output.copyTo(bmp);\n input.destroy();\n output.destroy();\n lut.destroy();\n rs.destroy();\n\n\n\n\n\n\n return bmp;\n }", "public Bitmap rgbAverageContrastAugmentation(Bitmap bmp) {\n\n\n int width, height, r, g, b;\n long acc = 0;\n width = bmp.getWidth();\n height = bmp.getHeight();\n //Alocate memory\n int[] hist = new int[256];\n int[] LUT = new int[256];\n int[] pixels = new int[height * width];\n bmp.getPixels(pixels, 0, width, 0, 0, width, height);\n for (int index = 0; index < width * height; ++index) {\n //Do general Histogram\n r = (pixels[index] >> 16) & 0xff;\n g = (pixels[index] >> 8) & 0xff;\n b = (pixels[index]) & 0xff;\n hist[r]++;\n hist[g]++;\n hist[b]++;\n }\n for (int ng = 0; ng < 256; ng++) {\n hist[ng] /= 3; //Getting average of three RGB channels\n acc += hist[ng]; //Cumulative function\n LUT[ng] = (int) ((acc * 255) / ((width * height))); //Histogram Equalization formula\n }\n //Setting new pixels to image.\n for (int index = 0; index < width * height; index++) {\n r = LUT[(pixels[index] >> 16) & 0xff];\n g = LUT[(pixels[index] >> 8) & 0xff];\n b = LUT[(pixels[index]) & 0xff];\n pixels[index] = ((0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff);\n }\n bmp.setPixels(pixels, 0, width, 0, 0, width, height);\n\n\n\n\n return bmp;\n }", "public void contrast(BufferedImage img, int startX, int startY, int endX, int endY) throws IOException{\r\n int pixels[] = new int[3];\r\n double ww[]=new double[3];\r\n WritableRaster raster = img.getRaster();\r\n double c = 1.1;\r\n \r\n for(int i=startX;i<endX;i++) {\r\n \r\n for(int j=startY;j<endY;j++){\r\n \r\n raster.getPixel(i, j, pixels);\r\n \r\n ww[0]=pixels[0];\r\n ww[1]=pixels[1];\r\n ww[2]=pixels[2];\r\n \r\n ww[0]=ww[0]-128;\r\n ww[1]=ww[1]-128;\r\n ww[2]=ww[2]-128;\r\n \r\n ww[0]=ww[0]*c;\r\n ww[1]=ww[1]*c;\r\n ww[2]=ww[2]*c;\r\n \r\n \r\n \r\n \r\n raster.setPixel(i, j, ww);\r\n \r\n }\r\n \r\n }\r\n\r\n }", "public static BufferedImage average(BufferedImage image, int value) {\n //3-position array where we store R,G,B values of every pixel\n int[] colors;\n //3-position array where we will store the mean value of every pixel of every channel\n int[] meanColor = new int[3];\n //mean values for every channel\n double meanRed, meanGreen, meanBlue;\n //Create a tessela form the original image so we can modify its pixels\n WritableRaster bitmap = (WritableRaster) image.getData();\n WritableRaster tesela = bitmap.createWritableChild(image.getMinX(), image.getMinY(), image.getWidth(), image.getHeight(), 0,0, null);\n //Image iteration\n for (int x = 0; x < image.getWidth()-1; x++){\n for (int y = 0; y < image.getHeight()-1; y++) {\n int red = 0, green=0, blue = 0;\n //Window iteration\n for (int f =-value; f <= value; f++) {\n for (int k = -value; k <= value; k++) {\n //Get every window coordinate, but first check if they actually exist (not out of bounds)\n if (y+(f)>=0 && x+(k)>=0 && y+(f) < image.getHeight() && x+(k)<image.getWidth()) {\n //Temporal store of the value of every channel so then we can compute the mean\n colors = getPixelColor(image,x+k,y+f);\n red += colors[0];\n green += colors[1];\n blue += colors[2];\n }\n }\n }\n //To compute the mean of every color we have to compute the 'distance'+1\n int distance = (value - (-value)+1)*(value - (-value)+1);\n //For every channel, compute the new pixel value\n meanRed = red / distance;\n meanColor[0] = (int) meanRed; \n meanGreen = green / distance;\n meanColor[1] = (int) meanGreen;\n meanBlue = blue / distance;\n meanColor[2] = (int) meanBlue;\n bitmap.setPixel(x,y,meanColor);\n }\n }\n //Create the averaged image and return it\n BufferedImage subImage = new BufferedImage(image.getColorModel(),tesela,image.isAlphaPremultiplied(),null);\n return subImage;\n }", "public void adjustIntensity()\r\n {\r\n\tint rows = getHeight();\r\n\tint cols = getWidth();\r\n\tdouble dbL = (double)(L-1);\r\n\tshort maxI;\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\t\tmaxI = (short)Math.min(L-1, \r\n\t\t Math.round((L-1) * maxIntensity(hue[row][col]/dbL,\r\n\t\t saturation[row][col]/dbL)));\r\n\t\tintensity[row][col] =\r\n\t\t (short)Math.min(intensity[row][col], maxI);\r\n\t }\r\n\t}\r\n }", "private void contrastEffect(int barra) {\n float val = barra / 40f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_CONTRAST);\n effect.setParameter(\"contrast\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "public void maximizeIntensity()\r\n {\r\n\tint rows = getHeight();\r\n\tint cols = getWidth();\r\n\tdouble dbL = (double)(L-1);\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\t\tintensity[row][col] = (short)Math.min(L-1, \r\n\t\t Math.round((L-1) * maxIntensity(hue[row][col]/dbL,\r\n\t\t saturation[row][col]/dbL)));\r\n\t }\r\n\t}\r\n }", "private void overexposure(Bitmap bmp) {\n int w = bmp.getWidth();\n int h = bmp.getHeight();\n int[] pixels = new int[w*h];\n bmp.getPixels(pixels, 0, w, 0, 0, w, h);\n for (int i = 0; i < w*h; i++) {\n float[] hsv = new float[3];\n Color.RGBToHSV(Color.red(pixels[i]), Color.green(pixels[i]), Color.blue(pixels[i]), hsv);\n hsv[2] *= 1.5;\n pixels[i] = Color.HSVToColor(hsv);\n }\n bmp.setPixels(pixels, 0, w, 0, 0, w, h);\n }", "double getAvgControl();", "public void average() {\n\t\tif (averaged)\n\t\t\tthrow new AssertionError(\"can't average twice!!\");\n\t\t\n\t\tscale = 1.0/(double)t;\n\t\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i] = (t+1.0)*w[i] - wupdates[i];\n\t\t\n\t\taveraged = true;\n\t\n\t}", "public void histNormalize() {\n\n double max = max();\n double min = min();\n max = max - min;\n for (int i = 0; i < pixelData.length; i++) {\n double value = pixelData[i] & 0xff;\n pixelData[i] = (byte) Math.floor((value - min) * 255 / max);\n }\n }", "public static Bitmap VintageEffect(Bitmap original)\n {\n Bitmap finalImage=Bitmap.createBitmap(original.getWidth(),original.getHeight(),original.getConfig());\n\n int A,R,G,B;\n int pixelColor;\n int height=original.getHeight();\n int width=original.getWidth();\n for(int y=0;y<height;y++)\n {\n for(int x=0;x<width;x++)\n {\n pixelColor=original.getPixel(x,y);\n A= Color.alpha(pixelColor);\n R= 255-Color.red(pixelColor);\n G= 255-Color.green(pixelColor);\n B= 255-Color.blue(pixelColor);\n finalImage.setPixel(x,y,Color.argb(A,R,G,B));\n\n }\n }\n\n return finalImage;\n }", "public static ImagePlus[] normalizeBeforeComputation(ImagePlus []imgsEchoes,ImagePlus imgMask) {\n\t\tImagePlus []tabRet=VitimageUtils.imageTabCopy(imgsEchoes);\n\t\tImagePlus imgSum=VitimageUtils.sumOfImages(imgsEchoes);\n\t\timgSum=VitimageUtils.makeOperationBetweenTwoImages(imgSum, imgMask, 2, true);\n\t\tint Z=imgSum.getNSlices();\n\t\tint X=VitimageUtils.getDimensions(imgSum)[0];\n\t\tint Y=VitimageUtils.getDimensions(imgSum)[1];\n\t\tint[][]coords=new int[Z][3];\n\t\tdouble[]meanOverAll=new double[Z];\n\t\tdouble[]meanOverCap=new double[Z];\n\t\tdouble[]meanOverRest=new double[Z];\n\t\tdouble globalMeanOverCap;\n\t\tdouble globalMeanOverRest;\n\t\tint radiusAroundCapillary=(int)Math.round(VitimageUtils.bionanoCapillaryRadius*1.5/VitimageUtils.getVoxelSizes(imgSum)[0]);\n\t\t//Pour chaque Z\n\t\tfor(int z=0;z<Z;z++) {\n\t\t\tImagePlus sliceTemp=new Duplicator().run(imgSum,1,1,z+1,z+1,1,1);\n\t\t\t//Pour cette image, localiser le capillaire, sur chaque Z\n\t\t\tcoords[z]=VitimageUtils.findCapillaryCenterInSlice(sliceTemp, VitimageUtils.bionanoCapillaryRadius);\n\t\t\tif(coords[z][0]<radiusAroundCapillary+5 || coords[z][1]<radiusAroundCapillary+5 || coords[z][0]>(X-radiusAroundCapillary-5) || coords[z][0]>(Y-radiusAroundCapillary-5) ) {\n\t\t\t\tIJ.showMessage(\"Warning in normalizeBeforeComputation : unsteady mean computation at z=\"+z+\" because capillary is detected near the border, at coordinates \"+coords[z][0]+\" , \"+coords[z][1]+\" with an indicated security radius of \"+radiusAroundCapillary);\n\t\t\t}\n\t\t\t\n\t\t\t//Mesurer la moyenne autour du capillaire\n\t\t\tmeanOverCap[z]=VitimageUtils.meanValueofImageAround(sliceTemp, coords[z][0], coords[z][1], 0,radiusAroundCapillary);\n\t\t\t\n\t\t\t\n\t\t\t//Mesurer la moyenne de l'image\n\t\t\tint radiusImg=Math.min(X/2,Y/2)-2;\n\t\t\tmeanOverAll[z]=VitimageUtils.meanValueofImageAround(sliceTemp, X/2, Y/2, 0,radiusImg);\n\t\t\t\n\t\t\t//Oter l'un à l'autre\n\t\t\tmeanOverRest[z]=meanOverAll[z]*(2*radiusImg+1)*(2*radiusImg+1) - meanOverCap[z]*(2*radiusAroundCapillary+1)*(2*radiusAroundCapillary+1);\n\t\t\tmeanOverRest[z]=meanOverRest[z]/( (2*radiusImg+1)*(2*radiusImg+1) - (2*radiusAroundCapillary+1)*(2*radiusAroundCapillary+1) );\n\n\t\t}\n\t\t//Faire la moyenne des valeurs mesurées along Z\n\t\tglobalMeanOverRest=VitimageUtils.statistics1D(meanOverRest)[0];\n\t\tglobalMeanOverCap=VitimageUtils.statistics1D(meanOverCap)[0];\n\n\t\tint radiusSq=radiusAroundCapillary*radiusAroundCapillary;\n\t\tdouble distSq;\n\t\t//Pour chaque Z\n\t\tfor(int im=0;im<tabRet.length;im++) {\n\t\t\tIJ.run(tabRet[im],\"32-bit\",\"\");\n\t\t\tfor(int z=0;z<Z;z++) {\n\t\t\t\tfloat[]tabData=(float[])tabRet[im].getStack().getProcessor(z+1).getPixels();\n\t\t\t\tdouble factorMultCap=globalMeanOverCap/meanOverCap[z];\n\t\t\t\tdouble factorMultRest=globalMeanOverRest/meanOverRest[z];\n\t\t\t\tfor(int x=0;x<X;x++) {\n\t\t\t\t\tfor(int y=0;y<Y;y++) {\n\t\t\t\t\t\tdistSq=(coords[z][0]-x)*(coords[z][0]-x) + (coords[z][1]-y)*(coords[z][1]-y);\n\t\t\t\t\t\t//Multiplier par moy / facteur 1(Z) sauf dans cap ou on multiplie par moy / facteur 2(Z) \n\t\t\t\t\t\tif(distSq<radiusSq)tabData[X*y+x]*=(factorMultCap);\n\t\t\t\t\t\telse tabData[X*y+x]*=(factorMultRest);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\t\t\t\n\t\treturn tabRet;\n\t}", "private Color computeAverageColor(AbstractCollection<Pixel> pixels)\n {\n int r=0, g=0, b=0;\n for(Pixel p : pixels)\n {\n Color c = new Color(image.getRGB(p.p, p.q));\n r+=c.getRed();\n g+=c.getGreen();\n b+=c.getBlue();\n }\n return new Color(r/pixels.size(),g/pixels.size(),b/pixels.size());\n }", "public double getMean(){\n\t\treturn Math.exp(location + scale * scale / 2);\n\t}", "public native boolean contrastImage(boolean sharpen) throws MagickException;", "private void linExtension(Bitmap bmp) {\n int w = bmp.getWidth();\n int h = bmp.getHeight();\n int min = 255;\n int max = 0;\n\n // Finding the minimum and the maximum\n for (int x = 0; x < w; x++)\n for (int y = 0; y < h; y++) {\n int pix = bmp.getPixel(x, y);\n if (Color.red(pix) < min)\n min = Color.red(pix);\n if (Color.red(pix) > max)\n max = Color.red(pix);\n }\n\n // Changing the luminosity of each pixel\n for (int x = 0; x < w; x++)\n for (int y = 0; y < h; y++) {\n int pix = bmp.getPixel(x, y);\n int pixColor = Color.red(pix);\n int c = 255/(max - min) * (pixColor - min);\n int finalColor = Color.rgb(c, c, c);\n bmp.setPixel(x, y, finalColor);\n }\n\n }", "private void adjustBrightness(int[][] colorArray,double factor){\n\t\tfor(int i=0;i<colorArray.length;i++){\n\t\t\tfor(int j=0;j<colorArray[0].length;j++){\n\t\t\t\tdouble newVal=colorArray[i][j]*factor;\n\t\t\t\tif(newVal>255){//if the value exceeds the color limit assign to the max value\n\t\t\t\t\tnewVal=255.0;\n\t\t\t\t}\n\t\t\t\tcolorArray[i][j]=(int) newVal;\n\t\t\t}\n\t\t}\n\t\t//Your code ends here\n\t}", "double getAvgTreatment();", "public float calculateAverageLow() {\n\t\t\n\t\tfloat sum = 0;\n\t\tfor (int i=0; i<temps.length; i++)\n\t\t\tsum += temps[i][1];\n\t\treturn sum /= temps.length;\n\t\t\n\t}", "public void pixave(int x1, int y1, int x2, int y2) {\n float sumr,sumg,sumb;\n int pix;\n int r,g,b;\n int n;\n\n if(x1<0) x1=0;\n if(x2>=kWidth) x2=kWidth-1;\n if(y1<0) y1=0;\n if(y2>=kHeight) y2=kHeight-1;\n\n sumr=sumg=sumb=0.0f;\n for(int y=y1; y<=y2; y++) {\n for(int i=kWidth*y+x1; i<=kWidth*y+x2; i++) {\n pix= kinecter.depthImg.pixels[i];\n b=pix & 0xFF; // blue\n pix = pix >> 8;\n g=pix & 0xFF; // green\n pix = pix >> 8;\n r=pix & 0xFF; // red\n //if( random(0, 150000) > 149000 && r > 0) println(\"r \" + r + \" b \" + b + \" g \" + g);\n // averaging the values\n sumr += b;//r;//g;//r;\n sumg += b;//r;//g;\n sumb += b;//r;//g;//b;\n }\n }\n n = (x2-x1+1)*(y2-y1+1); // number of pixels\n // the results are stored in static variables\n ar = sumr/n; \n ag=sumg/n; \n ab=sumb/n;\n }", "public double getAverageRate() {\n return (leftEnc.getRate() + rightEnc.getRate()) / 2;\n }", "public void updateContrastWindow() {\n\n MimsXYPlot plot = (MimsXYPlot) chart.getPlot();\n\n // Polygon bounds. \n double x1 = contrastAdjuster1.min;\n double x2 = contrastAdjuster1.min;\n double x3 = contrastAdjuster1.max;\n double x4 = contrastAdjuster1.max;\n\n double y1 = -99999999;\n double y2 = 99999999;\n double y3 = 99999999;\n double y4 = -99999999;\n\n // Displays polygon.\n XYPolygonAnnotation a = new XYPolygonAnnotation(new double[]{x1, y1, x2, y2, x3, y3, x4, y4},\n new BasicStroke(1), new Color(125, 125, 175, 100), new Color(125, 125, 175, 100));\n XYBarRenderer renderer = (XYBarRenderer) plot.getRenderer();\n renderer.removeAnnotations();\n renderer.addAnnotation(a, Layer.BACKGROUND);\n }", "public abstract float[] calcIntensityScaleExtrema(float maxRI, float minRI,\n float maxRaw, float minRaw,\n int sampleNbr);", "private static void normalizeColor(BufferedImage image) {\n\t\tHashMap<Integer, Integer> counts = colorHistogram(image);\r\n\t\tInteger[] a=sortmap(counts); // sorting the map\r\n\t\tInteger minFreq = 1000;\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\tif (counts.get(i) < minFreq) {\r\n\t\t\t\tminFreq = counts.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*\r\n\t\t*\r\n\t\t*Main logic to normalise the code\r\n\t\t* Assumption: all the colors which start from edges are the noise to the captcha or background.\r\n\t\t*/\r\n\t\tArrayList<Integer> topValues = new ArrayList<>();\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\ttopValues.add(i); // adding all the colors into the the array list topValues without any condition\r\n\t\t}\r\n\t\tInteger[] out=findEdgecolors(image); // findEdgecolors function returns the array of RGB values of colors which are at the edges of the picture\r\n\t\tfor(int i=0;i<out.length;i++)\r\n\t\t{\r\n\t\t\tif(out[i]!=null)\r\n\t\t\t\ttopValues.remove(out[i]); // remove the colours from topValues list if the color exist in the array returned by the findEdgecolors funciton (removing the colors which start from edges)\r\n\t\t}\r\n\t\t/*\r\n\t\t*Now topvalues consists of colors which are not in the edges of the clipped image\r\n\t\t*/\r\n\t\tint white_rgb = Color.YELLOW.getRGB();\r\n\t\tint black_rgb = Color.BLACK.getRGB();\r\n\r\n\t\tfor (int x=0; x<image.getWidth(); x++) {\r\n\t\t\tfor (int y=0; y<image.getHeight(); y++) {\r\n\t\t\t\tint pixelVal = image.getRGB(x, y);\r\n\r\n\t\t\t\tif (!topValues.contains(pixelVal)) {\r\n\t\t\t\t\timage.setRGB(x, y, white_rgb); //replacing the colors in topvalue with black\r\n\t\t\t\t} else {\r\n\t\t\t\t\timage.setRGB(x, y, black_rgb); // rest is colored with yellow (background)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (debug) {\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.write(image, \"gif\", new File(\"colorNormalized.gif\"));\r\n\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t}\r\n\t}", "public double getMean() throws IMRException {\n\n\t\tString imt = im.getName();\n\t\tif (!imt.equals(MMI_Param.NAME)) {\n\t\t\tupdateCoefficients();\n\t\t\tdouble b_mean = getRockMean();\n\t\t\tif (imt.equals(PGA_Param.NAME)) {\n\t\t\t\treturn b_mean + Math.log(getAmpFactor(im.getName(), b_mean));\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn b_mean + Math.log(getAmpFactor(im.getName()));\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn Math.log(getMMI()); // return the log for now (until I figure a better way)\n\t\t}\n\n\t}", "private void doBlur(int times){\n \n int pixel, x,y;\n long s,r,g,b;\n //times the image will be blurred with the kernel\n for (int t = 0; t < times; t++) {\n //march pixels\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++) {\n //reset colors\n r = g = b = s = 0;\n //march pixels inside kernel\n for (int k = 0; k < kernelSize; k++) {\n for (int l = 0; l < kernelSize; l++) {\n //get rgb color from pixel\n x = j + l - kernelCenter; \n y = i + k - kernelCenter;\n try{\n if( x>=0 && x<512 && y>=0 && y<512 ){\n pixel = imageKerneled.getRGB(x,y);\n //multiply the rgb by the number in kernel\n r += ((pixel >> 16) & 0xff) * kernel[k][l];\n g += ((pixel >> 8) & 0xff) * kernel[k][l];\n b += ((pixel) & 0xff) * kernel[k][l];\n s += kernel[k][l];\n }\n }catch(ArrayIndexOutOfBoundsException e){\n System.out.println(\"Error en \"+x+\",\"+y);\n }\n }\n }\n //averages\n r = Math.round(r/s);\n if(r>255) {System.out.println(r+\" entro r > 255 en \"+j+\",\"+i); r=255; }\n else if(r<0) {System.out.println(r+\" entro r < 255 en \"+j+\",\"+i); r=0; }\n g = Math.round(g/s);\n if(g>255) {System.out.println(g+\" entro g > 255 en \"+j+\",\"+i); g=255; }\n else if(g<0) {System.out.println(g+\" entro g < 255 en \"+j+\",\"+i); g=0; }\n b = Math.round(b/s);\n if(b>255) {System.out.println(b+\" entro b > 255 en \"+j+\",\"+i); b=255; }\n else if(b<0) {System.out.println(b+\" entro b < 255 en \"+j+\",\"+i); b=0; }\n //set the new rgb\n imageKerneled2.setRGB(j,i,new Color((int)r,(int)g,(int)b).getRGB());\n }\n }\n copyKerneled2ToKerneled();\n System.out.println(\"Finished blur: \"+(t+1));\n }\n }", "public double getMeanValuePixels() {\n\t\tdouble avg = 0;\n\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\tavg += this.image[i][j];\n\t\t\t}\n\t\t}\n\t\tavg /= this.getQtyPixels();\n\n\t\treturn avg;\n\t}", "private double normalizeImageValue(double value){\n return value/(31);\n }", "public static WritableImage getAverage(WritableImage a, WritableImage b) {\n\t\tWritableImage result = new WritableImage((int)a.getWidth(), \n\t\t\t\t(int)a.getHeight());\n\t\tPixelWriter writer = result.getPixelWriter();\n\t\tPixelReader aPixels = a.getPixelReader();\n\t\tPixelReader bPixels = b.getPixelReader();\n\t\t\n\t\tfor (int y = 0; y < a.getHeight(); y ++) {\n\t\t\tfor (int x = 0; x < a.getWidth(); x ++) {\n\t\t\t\tColor color = getAverageColor(\n\t\t\t\t\t\taPixels.getColor(x, y), \n\t\t\t\t\t\tbPixels.getColor(x, y));\n\t\t\t\twriter.setColor(x, y, color);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "protected double getIlluminance() {\n double maxStep = 10.0;\n double randomChange = Math.random() * maxStep - maxStep / 2.0;\n\n illuminance = Math.min(Math.max(illuminance + randomChange, 0.0), 100.0);\n\n return illuminance;\n }", "double getTransparency();", "public Pic overlay(Pic other) {\n Pic output = image.deepCopy();\n Pixel[][] outputPixels = output.getPixels();\n Pixel[][] overlayPixels = other.getPixels();\n for (int row = 0; row < output.getHeight(); row++) {\n for (int col = 0; col < output.getWidth(); col++) {\n Pixel current = outputPixels[row][col];\n //Sets color to average values only if there is enough\n //area in the original image\n if (row < other.getHeight()\n && col < other.getWidth()) {\n Pixel overlayCurrent = overlayPixels[row][col];\n int redAverage = (current.getRed()\n + overlayCurrent.getRed()) / 2;\n int greenAverage = (current.getGreen()\n + overlayCurrent.getGreen()) / 2;\n int blueAverage = (current.getBlue()\n + overlayCurrent.getBlue()) / 2;\n current.setRed(redAverage);\n current.setGreen(greenAverage);\n current.setBlue(blueAverage);\n }\n }\n }\n return output;\n }", "public double getAverageEncoderPosition()\n {\n \treturn ( Math.abs(leftBackTalon.getSelectedSensorPosition(0)) + Math.abs(rightBackTalon.getSelectedSensorPosition(0))) / 2;\n }", "private void equalize(BufferedImage img) {\n \t\tfloat minSat = Float.MAX_VALUE, maxSat = Float.MIN_VALUE;\n \t\tfloat minVal = Float.MAX_VALUE, maxVal = Float.MIN_VALUE;\n \t\t\n \t\tint[] prgb = { 0, 0, 0 };\n \t\tfloat[] hsv = { 0, 0, 0 };\n \t\t\n \t\tint[] valCount = new int[16];\n \t\t\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\tfor (int x = 0; x < img.getWidth(); x++) {\n \t\t\t\tint pixel = img.getRGB(x, y);\n \t\t\t\tpixelToRGB(pixel, prgb);\n \t\t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], hsv);\n \t\t\t\tminSat = Math.min(hsv[1], minSat);\n \t\t\t\tmaxSat = Math.max(hsv[1], maxSat);\n \t\t\t\tminVal = Math.min(hsv[2], minVal);\n \t\t\t\tmaxVal = Math.max(hsv[2], maxVal);\n \t\t\t\tvalCount[(int) (hsv[2] / 16)]++;\n \t\t\t}\n \t\t}\n \t\t\n \t\tint maxPt = -1;\n \t\tfor (int i = 1; i < 15; i++) {\n \t\t\tif (maxPt == -1 || valCount[i] >= valCount[maxPt]) {\n \t\t\t\tmaxPt = i;\n \t\t\t}\n \t\t}\n \t\t\n \t\tint valueMidpoint = maxPt * 16;\n \t\t\n \t\tSystem.out.println(\"Equalize: sat = \"+minSat+\" to \" +maxSat+\"; val = \" + minVal + \" to \" + maxVal+\"; value midpoint = \" + valueMidpoint);\n \t\tfloat satScale = 1.0f - minSat;\n \t\tfloat valScale = 255 - minVal;\n \t\tfloat satDiff = maxSat - minSat;\n \t\tfloat valDiff = maxVal - minVal;\n \t\t\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\tfor (int x = 0; x < img.getWidth(); x++) {\n \t\t\t\tint pixel = img.getRGB(x, y);\n \t\t\t\tpixelToRGB(pixel, prgb);\n \t\t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], hsv);\n \t\t\t\t\n \t\t\t\tif (satDiff < 0.5)\n \t\t\t\t\thsv[1] = ((hsv[1] - minSat) / satDiff) * satScale + minSat;\n \t\t\t\tif (valDiff < 128)\n \t\t\t\t\thsv[2] = ((hsv[2] - minVal) / valDiff) * valScale + minVal;\n \n \t\t\t\thsvToRgb(hsv[0], hsv[1], hsv[2], prgb);\n \t\t\t\t\n \t\t\t\timg.setRGB(x, y, rgb8ToPixel(prgb) | (pixel & 0xff000000));\n \t\t\t}\n \t\t}\n \t}", "public native MagickImage averageImages() throws MagickException;", "public float calculateAverageHigh() {\n\t\t\n\t\tfloat sum = 0;\n\t\tfor (int i=0; i<temps.length; i++)\n\t\t\tsum += temps[i][0];\n\t\treturn sum /= temps.length;\n\t\t\n\t}", "public void runDarken() {\n BufferedImage transformedImage = new BufferedImage(this.image.getWidth(), this.image.getHeight(), this.image.getType());\n\n try {\n for(int i = 0; i < this.image.getWidth(); i++) {\n for(int j = 0; j < this.image.getHeight(); j++) {\n transformedImage.setRGB(i, j, image.getRGB(i,j));\n }\n }\n float scaleFactor = 0.5f;\n RescaleOp op = new RescaleOp(scaleFactor, 0, null);\n transformedImage = op.filter(transformedImage, null);\n\n File outputImageFileLocation = new File(this.exportLocation);\n ImageIO.write(transformedImage, Files.getFileExtension(this.imageLocation), outputImageFileLocation);\n System.out.println(\"Success\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "void changeMean(double a) {\n mean = mean + (buffer - mean) * a;\n }", "public void pixaveGreyscale(int x1, int y1, int x2, int y2) {\n //float sumr,sumg,sumb;\n float sumg;\n int pix;\n //int r,g,b;\n float g;\n int n;\n\n if(x1<0) x1=0;\n if(x2>=kWidth) x2=kWidth-1;\n if(y1<0) y1=0;\n if(y2>=kHeight) y2=kHeight-1;\n\n //sumr=sumg=sumb=0.0;\n sumg = 0.0f;\n for(int y=y1; y<=y2; y++) {\n for(int i=kWidth*y+x1; i<=kWidth*y+x2; i++) {\n \n // old method use depth image\n //pix= kinecter.depthImg.pixels[i];\n //g = pix & 0xFF; // grey\n //sumg += g;\n \n //b=pix & 0xFF; // blue\n // pix = pix >> 8;\n //g=pix & 0xFF; // green\n //pix = pix >> 8;\n //r=pix & 0xFF; // red\n //if( random(0, 150000) > 149000 && r > 0) println(\"r \" + r + \" b \" + b + \" g \" + g);\n // averaging the values\n //sumr += b;//r;//g;//r;\n //sumg += b;//r;//g;\n //sumb += b;//r;//g;//b;\n \n // WORK WITH RAW DEPTH INSTEAD\n sumg += kinecter.rawDepth[i];\n\n \n }\n }\n n = (x2-x1+1)*(y2-y1+1); // number of pixels\n // the results are stored in static variables\n //ar = sumr/n; \n //ag = sumg/n; \n //ab = sumb/n;\n\n ar = sumg/n; \n ag = ar; \n ab = ar;\n }", "private void gaussianBlur() {\n targetImage = new Mat();\n Utils.bitmapToMat(lena, targetImage);\n Imgproc.cvtColor(targetImage, targetImage, Imgproc.COLOR_BGR2RGB);\n\n gaussianBlur(targetImage.getNativeObjAddr());\n\n // create a bitMap\n Bitmap bitMap = Bitmap.createBitmap(targetImage.cols(),\n targetImage.rows(), Bitmap.Config.RGB_565);\n // convert Mat to Android's bitmap:\n Imgproc.cvtColor(targetImage, targetImage, Imgproc.COLOR_RGB2BGR);\n Utils.matToBitmap(targetImage, bitMap);\n\n\n ImageView iv = (ImageView) findViewById(R.id.imageView);\n iv.setImageBitmap(bitMap);\n }", "private Picture saturate(Picture p, double saturateFactor) {\n\t\tPicture output = copy(p);\n\t\tdouble f = saturateFactor / 100.0;\n\n\t\tfor (int i = 0; i < p.getWidth(); i++) {\n\t\t\tfor (int j = 0; j < p.getHeight(); j++) {\n\t\t\t\tCoordinate c = new Coordinate(i, j);\n\t\t\t\tdouble b = p.getPixel(c).getIntensity();\n\t\t\t\tif (f < 0) {\n\t\t\t\t\tdouble oldRed = p.getPixel(c).getRed();\n\t\t\t\t\tdouble oldGreen = p.getPixel(c).getGreen();\n\t\t\t\t\tdouble oldBlue = p.getPixel(c).getBlue();\n\t\t\t\t\tdouble newRed = oldRed * (1.0 + (f)) - (b * f);\n\t\t\t\t\tdouble newGreen = oldGreen * (1.0 + (f)) - (b * f);\n\t\t\t\t\tdouble newBlue = oldBlue * (1.0 + (f)) - (b * f);\n\t\t\t\t\tdouble[] outs = limits(newRed, newGreen, newBlue);\n\t\t\t\t\toutput.setPixel(c, new ColorPixel(outs[0], outs[1], outs[2]));\n\t\t\t\t} else if (f > 0) {\n\t\t\t\t\tdouble oldRed = p.getPixel(c).getRed();\n\t\t\t\t\tdouble oldGreen = p.getPixel(c).getGreen();\n\t\t\t\t\tdouble oldBlue = p.getPixel(c).getBlue();\n\t\t\t\t\tdouble a = oldRed;\n\t\t\t\t\tif (oldGreen > oldRed && oldGreen > oldBlue) {\n\t\t\t\t\t\ta = oldGreen;\n\t\t\t\t\t} else if (oldBlue > oldRed && oldBlue > oldGreen) {\n\t\t\t\t\t\ta = oldBlue;\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdouble newRed = oldRed * ((a + ((1.0 - a) * (f))) / a);\n\t\t\t\t\t\tdouble newGreen = oldGreen * ((a + ((1.0 - a) * (f))) / a);\n\t\t\t\t\t\tdouble newBlue = oldBlue * ((a + ((1.0 - a) * (f))) / a);\n\t\t\t\t\t\tdouble[] outs = limits(newRed, newGreen, newBlue);\n\t\t\t\t\t\toutput.setPixel(c, new ColorPixel(outs[0], outs[1], outs[2]));\n\t\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\t\toutput.setPixel(c, new ColorPixel(0, 0, 0));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\toutput.setPixel(c, p.getPixel(c));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn output;\n\t}", "private double getAbsoluteAverage(double [] inputs){\n double result = 0;\n for (int i = 0; i < inputs.length; i++) {\n result+= Math.abs(inputs[i]);\n }\n result = result/inputs.length;\n return result;\n }", "public static void calculate_average_ratio1() {\n double sum = 0;\n\n for (int i = 0; i < Variables.pixels.size(); i++) {\n sum += Variables.pixels.get(i).getRatio1();\n }\n Variables.average_ratio1 = sum / Variables.pixels.size();\n }", "public void k() {\n float f2 = BitmapDescriptorFactory.HUE_RED;\n for (float f3 : this.i) {\n if (f3 > BitmapDescriptorFactory.HUE_RED) {\n f2 += f3;\n }\n }\n if (f2 != BitmapDescriptorFactory.HUE_RED) {\n int length = this.i.length;\n for (int i2 = 0; i2 < length; i2++) {\n float[] fArr = this.i;\n if (fArr[i2] > BitmapDescriptorFactory.HUE_RED) {\n fArr[i2] = fArr[i2] / f2;\n }\n }\n }\n }", "float getScaler();", "public void drawSkewedScale()\n\t{\n\ttextFont(font, 12);\n\t\n\tDecimalFormat df=new DecimalFormat(\"#.##\");\n\ttextAlign(CENTER, TOP);\n\tint sw=150;\n\tint sh=10;\n\tint x=width-sw-15;\n\tint y=(int)(END_Y+sh*1.7);\n\tscaleBox=new Rectangle2D.Float(x, y, sw, sh);\n\tstrokeWeight(1);\n\t\n\tCell hc=null;\n\tCell finalhc=null;\n\tfor(int i=0;i<hoveredCells.size();i++)\n\t\t{\n\t\thc=hoveredCells.get(i);\n\t\tif(hc.level==min(levelThreshold, minHoveredLevel))\n\t\t\tfinalhc=hc;\n\t\t}\n\thc=finalhc;\n\t\n\tboolean refDrawn=false;\n\tdouble jump0=(255-(0/(float)sw)*255);\n\tdouble jump1=(255-(0/(float)sw)*255);\n\tdouble jump=Math.ceil(jump1-jump0)+2;\n\t\n\t\n\tdouble mid=sw*0.5;//for median\n\tif(whiteValue==MEAN)\t\n\t\tmid=sw*(expData.average-expData.min)/(expData.max-expData.min);\n\t\n\tdouble jumpBelow=Math.ceil(255/(255*mid/sw))+0;\n\tdouble jumpAbove=Math.ceil(255/Math.abs(255*mid/sw-255))+0;\n\t\n\t//Draw legend\n\tstroke(200,200,200);\n\tfill(200);\n\t\n\tline(x,y,x,y-3);\n\tif(whiteValue==MEAN)\t\n\t\t{\n\t\t//text(\"min\", x, y+sh+3);\n\t\ttext(df.format(expData.min), x, y-12);\n\t\t}\n\telse if(whiteValue==MEDIAN)\ttext(\"0\", x, y-12);\n\t\n\tline((int)(x+mid),y+sh,(int)(x+mid),y-3);\n\tif(whiteValue==MEAN)\t\t\n\t\t{\n\t\t//text(\"avg\", (int)(x+mid), y+sh+3);\n\t\ttext(df.format(expData.average), (int)(x+mid), y-12);\n\t\t}\n\telse if(whiteValue==MEDIAN)\ttext(\"50\", (int)(x+mid), y-12);\n\t\n\tline(x+sw-1,y+sh,x+sw-1,y-3);\n\tif(whiteValue==MEAN)\t\t\n\t\t{\n\t\t//text(\"max\", x+sw-1, y+sh+3);\n\t\ttext(df.format(expData.max), x+sw-1, y-12);\n\t\t}\n\telse if(whiteValue==MEDIAN)\ttext(\"100\", x+sw-1, y-12);\n\t\n\tline((int)(x+mid*0.5),y+sh,(int)(x+mid*0.5),y-2);\n\tline((int)(x+mid*2),y+sh,(int)(x+mid*2),y-2);\n\t\t\t\t\n\tfor(int i=0;i<sw;i++)\n\t\t{\n\t\tint h=0;\n\t\tboolean drawReference=false;\n\t\tswitch(COLOR_MODE)\n\t\t\t{\n\t\t\tcase COLOR_EXPRESSION:\n\t\t\t\tif(i>mid)\n\t\t\t\t\t{\n\t\t\t\t\th=(int)Math.round(255-((i-mid)/Math.abs(sw-mid)*255));\n\t\t\t\t\tstroke(255,h,h);\n\t\t\t\t\tif(hc!=null && hc.color.get(selectedCol).getRed()==255 && Math.abs(hc.color.get(selectedCol).getBlue()-h)<=jumpAbove)\n\t\t\t\t\t\tdrawReference=true;\n\t\t\t\t\t}\n\t\t\t\telse\t\n\t\t\t\t\t{\n\t\t\t\t\th=(int)Math.round(255-(Math.abs(i-mid)/Math.abs(sw-mid))*255);\n\t\t\t\t\tstroke(h,h,255);\n\t\t\t\t\tif(hc!=null && hc.color.get(selectedCol).getBlue()==255 && Math.abs(hc.color.get(selectedCol).getRed()-h)<=jumpBelow)\n\t\t\t\t\t\tdrawReference=true;\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase COLOR_DEVIATION:\n\t\t\t\th=(int)Math.round(255-(i/(float)sw)*255);\n\t\t\t\tstroke(h,255,h);\n\t\t\t\tif(hc!=null && Math.abs(hc.color.get(selectedCol).getBlue()-h)<=jump)\n\t\t\t\t\tdrawReference=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tline(x+i,y,x+i,y+sh);\n\t\tif(drawReference && !refDrawn)\n\t\t\t{\n\t\t\tstroke(0);\n\t\t\tfill(0);\n\t\t\tline(x+i, y-2, x+i, y+sh+2);\n\t\t\tfill(255,200);\n\t\t\tnoStroke();\n\t\t\trect(x+i-10, y+sh, 20,15);\n\t\t\tfill(0);\n\t\t\tstroke(0);\n\t\t\tif(whiteValue==MEAN)\t\ttext(df.format(hc.expressionLevel.get(selectedCol)), x+i, y+sh+3);\n\t\t\telse if(whiteValue==MEDIAN)\ttext(df.format(expData.getQuantile(hc.expressionLevel.get(selectedCol), selectedCol)), x+i, y+sh+3);\n\t\t\trefDrawn=true;\n\t\t\t}\n\t\t}\n\tstroke(200,200,200);\n\tnoFill();\n\trect(x-1,y-1,sw+1,sh+1);\n\t\n\ttextFont(font, 14);\n\t\n\tnoStroke();\n\t}", "private void calculateAvg() {\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\tstats.addValue(oneQ.getGapCount() * oneQ.getFrequency());\n\t\t}\n\t\tthis.avgGain = stats.getMean();\n\t\tthis.medianGain = stats.getPercentile(50);\n\t\tthis.quartiles = stats.getPercentile(75);\n\t}", "private void sepiaTone(){\n int len= currentIm.getRows() * currentIm.getCols();\n \n for (int p= 0; p < len; p= p+1) {\n int rgb= currentIm.getPixel(p);\n int red= DM.getRed(rgb);\n int blue= DM.getBlue(rgb);\n int green= DM.getGreen(rgb);\n int alpha= DM.getAlpha(rgb);\n \n double brightness = 0.3 * red + 0.6 * green + 0.1 * blue;\n \n currentIm.setPixel(p,\n (alpha << 24) | ((int)brightness << 16) | ((int)(brightness*0.6) << 8) | \n (int)(brightness*0.4));\n \n }\n }", "public void unaverage() {\n\t\tif (!averaged)\n\t\t\tthrow new AssertionError(\"can't unaverage twice!!\");\n\t\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i] = (w[i] + wupdates[i])/(t+1.0);\n\t\t\n\t\tscale = 1.0;\n\t\taveraged = false;\n\t}", "private Color averageAround(RenderedImage i, double px, double py) {\n\t\t// Get an iterator for the image.\n\t\tRandomIter iterator = RandomIterFactory.create(i, null);\n\t\t// Get memory for a pixel and for the accumulator.\n\t\tdouble[] pixel = new double[3];\n\t\tdouble[] accum = new double[3];\n\t\t// The size of the sampling area.\n\t\tint sampleSize = 10;\n\t\tint numPixels = 0;\n\t\t// Sample the pixels.\n\t\tfor (double x = px * baseSize - sampleSize; x < px * baseSize\n\t\t\t\t+ sampleSize; x++) {\n\t\t\tfor (double y = py * baseSize - sampleSize; y < py * baseSize\n\t\t\t\t\t+ sampleSize; y++) {\n\t\t\t\titerator.getPixel((int) x, (int) y, pixel);\n\t\t\t\taccum[0] += pixel[0];\n\t\t\t\taccum[1] += pixel[1];\n\t\t\t\taccum[2] += pixel[2];\n\t\t\t\tnumPixels++;\n\t\t\t}\n\t\t}\n\t\t// Average the accumulated values.\n\t\taccum[0] /= numPixels;\n\t\taccum[1] /= numPixels;\n\t\taccum[2] /= numPixels;\n\t\treturn new Color((int) accum[0], (int) accum[1], (int) accum[2]);\n\t}", "private Bitmap convertToGrayscale(Bitmap bmpOriginal) {\n int height = bmpOriginal.getHeight();\n int width = bmpOriginal.getWidth();\n Log.e(TAG, \"width=\" + width + \" height=\" + height);//default size is 640*480 px\n Bitmap bmpGrayscale = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);//\n Canvas c = new Canvas(bmpGrayscale);\n Paint paint = new Paint();\n ColorMatrix cm = new ColorMatrix();\n cm.setSaturation(0);\n ColorMatrixColorFilter f = new ColorMatrixColorFilter(cm);\n paint.setColorFilter(f);\n c.drawBitmap(bmpOriginal, 0, 0, paint);\n return bmpGrayscale;\n }", "public double getAverageEncoderDistance() {\n return (m_leftEncoder.getPosition() + m_rightEncoder.getPosition()) / 2.0;\n }", "private Picture blur(Picture p, int blurredFactor) {\n\t\tPicture output = new PictureImpl(p.getWidth(), p.getHeight());\n\t\tdouble totalRed = 0.0;\n\t\tdouble totalGreen = 0.0;\n\t\tdouble totalBlue = 0.0;\n\t\tint total = 0;\n\t\tfor (int i = 0; i < p.getWidth(); i++) {\n\t\t\tfor (int j = 0; j < p.getHeight(); j++) {\n\t\t\t\tfor (int m = i - blurredFactor; m < i - blurredFactor + (2 * blurredFactor + 1); m++) {\n\t\t\t\t\tfor (int n = j - blurredFactor; n < j - blurredFactor + (2 * blurredFactor + 1); n++) {\n\t\t\t\t\t\tif ((m - blurredFactor >= 0 && n - blurredFactor >= 0)\n\t\t\t\t\t\t\t\t&& (m < p.getWidth() && n < p.getHeight())) {\n\t\t\t\t\t\t\ttotalRed = totalRed + p.getPixel(m, n).getRed();\n\t\t\t\t\t\t\ttotalGreen = totalGreen + p.getPixel(m, n).getGreen();\n\t\t\t\t\t\t\ttotalBlue = totalBlue + p.getPixel(m, n).getBlue();\n\t\t\t\t\t\t\ttotal++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdouble avgRed = totalRed / total;\n\t\t\t\tdouble avgGreen = totalGreen / total;\n\t\t\t\tdouble avgBlue = totalBlue / total;\n\t\t\t\toutput.setPixel(i, j, new ColorPixel(avgRed, avgGreen, avgBlue));\n\t\t\t\ttotalRed = 0.0;\n\t\t\t\ttotalGreen = 0.0;\n\t\t\t\ttotalBlue = 0.0;\n\t\t\t\ttotal = 0;\n\t\t\t}\n\n\t\t}\n\n\t\treturn output;\n\t}", "public static int ARGB_Mean(int p) {\n int r = (p & 0xff0000) >> 16;\n int g = (p & 0xff00) >> 8;\n int b = p & 0xff;\n return MeanRGBtoGray(r, g, b);\n }", "public void normalize(){\n\tstrength = 50;\n\tdefense = 55;\n\tattRating = 0.4\t;\n }", "private float calculateAbsorption() {\n int i = getWeightedBucket();\n \n//System.out.println(\" bucket: \" + i);\n\n // the max modification is +/-5 % , broken into 0.5 % chunks\n float modifier = -0.05f;\n modifier += (float)(i * 0.005);\n \n return(modifier);\n }", "private Color renderHelp(int i, int j) {\r\n\t\tCamera camera = _scene.get_camera();\r\n\t\tColor background = _scene.get_background();\r\n\t\tdouble distance = _scene.get_screenDistance();\r\n\t\tdouble width = _imageWriter.getWidth();\r\n\t\tdouble height = _imageWriter.getHeight();\r\n\t\tColor avgColor = new Color(0, 0, 0);\r\n\r\n\t\tint nX = _imageWriter.getNx();\r\n\t\tint nY = _imageWriter.getNy();\r\n\r\n\t\tint resolution = _imageWriter.getResolution();\r\n\t\tdouble focus1 = 1.0 / 3, focus2 = 1 - focus1;\r\n\t\tfor (int k = 0; k < resolution; k++) // i is pixel row number and j is pixel in the row number\r\n\t\t{\r\n\t\t\tfor (int l = 0; l < resolution; l++) {\r\n\t\t\t\tRay ray = camera.constructRayThroughPixel(nX * resolution, nY * resolution, j * resolution + k,\r\n\t\t\t\t\t\ti * resolution + l, distance, width, height);\r\n\t\t\t\tGeoPoint closestPoint = findClosestIntersection(ray);\r\n\t\t\t\tif (closestPoint == null) {\r\n\t\t\t\t\tavgColor = avgColor.add(background);\r\n\t\t\t\t\t// pixels in the middle have more weight than the sides\r\n\t\t\t\t\tif (resolution > 1)\r\n\t\t\t\t\t\tif (k >= (resolution * focus1) && k <= (resolution * focus2) && l >= (resolution * focus1)\r\n\t\t\t\t\t\t\t\t&& l <= (resolution * focus2))\r\n\t\t\t\t\t\t\tavgColor = avgColor.add(background);\r\n\t\t\t\t}\r\n\r\n\t\t\t\telse {\r\n\t\t\t\t\tavgColor = avgColor.add(calcColor(closestPoint, ray));\r\n\t\t\t\t\t// pixels in the middle have more weight than the sides\r\n\t\t\t\t\tif (resolution > 1)\r\n\t\t\t\t\t\tif (k >= (resolution * focus1) && k <= (resolution * focus2) && l >= (resolution * focus1)\r\n\t\t\t\t\t\t\t\t&& l <= (resolution * focus2))\r\n\t\t\t\t\t\t\tavgColor = avgColor.add(calcColor(closestPoint, ray));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tavgColor = avgColor.reduce(resolution * resolution * (1 + (1 - 2 * focus1) * (1 - 2 * focus1)));\r\n\t\treturn avgColor;\r\n\r\n\t}", "double average() { // used double b/c I want decimal places\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsum = sum + array[i];\n\t\t}\n\t\tdouble average = (double) sum / array.length;\n\t\treturn average;\n\n\t}", "double luminance(C config);", "private void normalize() {\r\n // GET MAX PRICE \r\n for (Alternative alt : alternatives) {\r\n if (alt.getPrice() > 0 && alt.getPrice() < minPrice) {\r\n minPrice = alt.getPrice();\r\n }\r\n }\r\n\r\n for (Alternative alt : alternatives) {\r\n // NORMALIZE PRICE - NON BENIFICIAL using max - min \r\n double price = alt.getPrice();\r\n double value = minPrice / price;\r\n alt.setPrice(value);\r\n // BENITIFICIAL v[i,j] = x[i,j] / x[max,j]\r\n double wood = alt.getWood();\r\n value = wood / maxWood;\r\n alt.setWood(value);\r\n\r\n double brand = alt.getBrand();\r\n value = wood / maxBrand;\r\n alt.setBrand(value);\r\n\r\n double origin = alt.getOrigin();\r\n value = origin / maxOrigin;\r\n alt.setOrigin(value);\r\n\r\n }\r\n }", "public void adjTrans(int adjust){\n GreenfootImage tempImage = getImage();\n tempImage.setTransparency(adjust);\n setImage(tempImage);\n }", "float getPreGain();", "public void calcAvg(){\n\t\taverage = hits/atbat;\n\t\t\n\t}", "private float calculateAlpha() {\n float alpha = 1.2f*(myCamera.getViewportWidth()/(2*Const.WORLD_WIDTH-myCamera.getViewportWidth()))-0.2f;\n if(alpha < 0) alpha = 0;\n if(alpha > 1) alpha = 1;\n return alpha;\n }", "public void average(){\n\t\tfor(PlayerWealthDataAccumulator w : _wealthData.values()){\n\t\t\tw.average();\n\t\t}\n\t}", "private double getRockMean() {\n\n\t\tdouble mag, distanceJB;\n\t\tString fltTypeValue, willsSite;\n\t\tdouble rockVs30_SM = 620; // these values are from their code\n\t\tdouble rockVs30_BJF = 724;\n\n\t\ttry {\n\t\t\tmag = ( (Double) magParam.getValue()).doubleValue();\n\t\t\tdistanceJB = ( (Double) distanceJBParam.getValue()).doubleValue();\n\t\t\tfltTypeValue = fltTypeParam.getValue().toString();\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\tthrow new IMRException(C + \": getMean(): \" + ERR);\n\t\t}\n\n\t\t// check if distance is beyond the user specified max\n\t\tif (distanceJB > USER_MAX_DISTANCE) {\n\t\t\treturn VERY_SMALL_MEAN;\n\t\t}\n\n\t\t// Get b1 based on fault type\n\t\tdouble b1_BJF, b1_SM;\n\t\tif (fltTypeValue.equals(FLT_TYPE_STRIKE_SLIP)) {\n\t\t\tb1_BJF = coeffBJF.b1ss;\n\t\t\tb1_SM = coeffSM.b1ss;\n\t\t}\n\t\telse if (fltTypeValue.equals(FLT_TYPE_REVERSE)) {\n\t\t\tb1_BJF = coeffBJF.b1rv;\n\t\t\tb1_SM = coeffSM.b1rv;\n\t\t}\n\t\telse if (fltTypeValue.equals(FLT_TYPE_UNKNOWN)) {\n\t\t\tb1_BJF = coeffBJF.b1all;\n\t\t\tb1_SM = coeffSM.b1all;\n\t\t}\n\t\telse {\n\t\t\tthrow new ParameterException(C +\n\t\t\t\": getMean(): Invalid EqkRupture Parameter value for : FaultType\");\n\t\t}\n\n\t\t// Calculate the log rock-site mean for BJF\n\t\tdouble meanBJF = b1_BJF +\n\t\tcoeffBJF.b2 * (mag - 6) +\n\t\tcoeffBJF.b3 * (Math.pow( (mag - 6), 2)) +\n\t\tcoeffBJF.b5 *\n\t\t(Math.log(Math.pow( (distanceJB * distanceJB + coeffBJF.h * coeffBJF.h),\n\t\t\t\t0.5))) +\n\t\t\t\tcoeffBJF.bv * (Math.log(rockVs30_BJF / coeffBJF.va));\n\n\t\t// Calculate the log rock-site mean for SM\n\t\tdouble meanSM = b1_SM +\n\t\tcoeffSM.b2 * (mag - 6) +\n\t\tcoeffSM.b3 * (Math.pow( (mag - 6), 2)) +\n\t\tcoeffSM.b5 *\n\t\t(Math.log(Math.pow( (distanceJB * distanceJB + coeffSM.h * coeffSM.h),\n\t\t\t\t0.5))) +\n\t\t\t\tcoeffSM.bv * (Math.log(rockVs30_SM / coeffSM.va));\n\n\t\t//correct it max horizontal is desired\n\t\tComponent component = componentParam.getValue();\n\t\tif (component == Component.GREATER_OF_TWO_HORZ) {\n\t\t\tmeanSM += 0.139762; // add ln(1.15)\n\t\t\tmeanBJF += 0.139762;\n\t\t}\n\n\t\t// now return the appropriate mean\n\t\tif (mag <= 5) {\n\t\t\treturn meanSM;\n\t\t}\n\t\telse if (mag <= 5.5) {\n\t\t\treturn meanBJF + (mag - 5.5) * (meanBJF - meanSM) / 0.5;\n\t\t}\n\t\telse {\n\t\t\treturn meanBJF;\n\t\t}\n\t}", "@java.lang.Override\n public double getAvgControl() {\n return avgControl_;\n }", "@java.lang.Override\n public double getAvgControl() {\n return avgControl_;\n }", "void draw() {\n\n // SeamInfo lowestSeam = this.lowestSeamVert();\n // lowestSeam.changeColor();\n\n ComputedPixelImage seamRemovedImg = new ComputedPixelImage(this.newImg.width,\n this.newImg.height);\n int countRow = 0;\n int countCol = 0;\n\n Pixel current = this.curPixel;\n Pixel temp;\n\n while (current.down != null) {\n temp = current.down;\n while (current.right != null) {\n Color c = Color.MAGENTA;\n if (current.highlighted) {\n c = Color.RED;\n }\n else {\n c = current.color;\n }\n if (this.showType.equals(\"e\")) {\n int energy = (int) (current.energy * 100);\n if (energy > 255) {\n System.out.println(\"energy: \" + energy + \" to 255\");\n energy = 255;\n }\n c = new Color(energy, energy, energy);\n }\n else if (this.showType.equals(\"w\")) {\n int weight = (int) (current.seam.totalWeight);\n if (weight > 255) {\n System.out.println(\"weight: \" + weight + \" to 255\");\n weight = 255;\n }\n c = new Color(weight, weight, weight);\n }\n\n seamRemovedImg.setColorAt(countCol, countRow, c);\n countCol += 1;\n current = current.right;\n }\n countCol = 0;\n countRow += 1;\n current = temp;\n }\n countCol = 0;\n\n this.newImg = seamRemovedImg;\n\n }", "private double computeSumAlpha()\n\t{\n\t\tdouble sum = 0;\n\t\tdouble[] a = svm.getAlphas();\n\t\tfor(double d : a)\n\t\t\tsum += Math.abs(d);\n\t\treturn sum;\n\t}", "protected Color getAlphaCopy(Color copy, Color orig) {\r\n if (copy==null)\r\n copy = new Color(orig);\r\n copy.r = orig.r;\r\n copy.g = orig.g;\r\n copy.b = orig.b;\r\n copy.a = alphaFilter!=null ? alphaFilter.a : orig.a;\r\n return copy;\r\n }", "public short[][] getSaturation(){ return saturation; }", "private Image adjust(Image orig) {\r\n \r\n int iw = orig.getWidth(this);\r\n int ih = orig.getHeight(this);\r\n \r\n Insets i = getInsets();\r\n int cw = getSize().width-i.left-i.right; // Canvas width\r\n int ch = getSize().height-i.top-i.bottom; // Canvas height\r\n\r\n if (iw > cw || ih > ch) {\r\n // scale\r\n \r\n double scaleW = 1.0 * cw / iw;\r\n double scaleH = 1.0 * ch / ih;\r\n \r\n if (scaleW < scaleH) {\r\n // Fit width\r\n wx1 = i.left;\r\n wx2 = cw - 1;\r\n \r\n int nH = (int) (ih * scaleW);\r\n\r\n wy1 = (ch - nH) / 2;\r\n wy2 = wy1 + nH - 1;\r\n } else {\r\n // Fit height\r\n \r\n int nW = (int) (iw * scaleH);\r\n\r\n wx1 = (cw - nW) / 2;\r\n wx2 = wx1 + nW - 1;\r\n \r\n wy1 = i.top;\r\n wy2 = ch - 1;\r\n }\r\n /*\r\n System.out.println(\r\n \"ADJUST sCALE: \" + wx1 + \"@\" + wy1 + \" => \" + wx2 + \"@\"\r\n + wy2);\r\n */ \r\n return orig.getScaledInstance(wx2 - wx1, wy2 - wy1,\r\n Image.SCALE_DEFAULT);\r\n } else {\r\n // center\r\n wx1 = (cw - iw) / 2;\r\n wy1 = (ch - ih) / 2;\r\n wx2 = wx1 + iw - 1;\r\n wy2 = wy1 + ih - 1;\r\n\r\n /*\r\n System.out.println(\r\n \"ADJUST cENTER: \" + wx1 + \"@\" + wy1 + \" => \" + wx2 + \"@\"\r\n + wy2);\r\n */\r\n return orig;\r\n }\r\n\r\n }", "double average();", "private double calculateAverage(Candle[] cd) {\n double sum = 0; \r\n for(Candle c : cd) {\r\n sum += c.getClose();\r\n }\r\n return sum/cd.length;\r\n \r\n }", "public static Color getAverageBrightness(Image image) {\n\t\tPixelReader pr = image.getPixelReader();\n\t\t\n\t\tdouble totalBrightness = 0.0;\n\t\tdouble imgHeight = image.getHeight();\n\t\tdouble imgWidth = image.getWidth();\n\t\t\n\t\t// Adds each pixel's average brightness to totalBrightness\n\t\tfor (int y = 0; y < imgHeight; y++) {\n\t\t\tfor (int x = 0; x < imgWidth; x++) {\n\t\t\t\tColor pixelColor = pr.getColor(x, y);\n\t\t\t\tdouble pixelRed = pixelColor.getRed();\n\t\t\t\tdouble pixelGreen = pixelColor.getGreen();\n\t\t\t\tdouble pixelBlue = pixelColor.getBlue();\n\t\t\t\tdouble pixelAverage = (pixelRed + pixelGreen + pixelBlue) / 3;\n\t\t\t\t\n\t\t\t\ttotalBrightness += pixelAverage;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Gets the average brightness of the whole image\n\t\tdouble avgBrightness = totalBrightness / (imgHeight * imgWidth);\n\t\t\n\t\treturn new Color(avgBrightness,avgBrightness,avgBrightness,1.0);\n\t}", "double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleValue();\n\t\treturn sum/num.length;\n\t}", "private static void reduceNoise(Mat image) {\n\n\t\t// create structuring element that will be used to \"dilate\" and \"erode\"\n\t\t// image. the element chosen here is a 3px by 3px rectangle\n\t\tMat erodeElement = Imgproc.getStructuringElement(Imgproc.MORPH_RECT,\n\t\t\t\tnew Size(1, 1));\n\n\t\t// dilate with larger element so make sure object is nicely visible\n\t\tMat dilateElement = Imgproc.getStructuringElement(Imgproc.MORPH_RECT,\n\t\t\t\tnew Size(12, 12));\n\n\t\t// Erode will shrink the grouping of pixels\n\t\tImgproc.erode(image, image, erodeElement);\n\t\tImgproc.erode(image, image, erodeElement);\n\t\tImgproc.erode(image, image, erodeElement);\n\n\t\t// // Dilate will expand the grouping of pixels\n\t\tImgproc.dilate(image, image, dilateElement);\n\t\tImgproc.dilate(image, image, dilateElement);\n\t\t// Imgproc.dilate(image, image, dilateElement);\n\n\t}", "public double getMeanCenterDifferenceFromStart(){\n double[] meanCenter = getMeanCenter();\n float[] trans = getTranslationVector(center.getX(),center.getY(),BITMAP_SIZE,BITMAP_SIZE,CONSTANT);\n Log.e(\"Points\",\"Actual (X,Y) = \"+\"(\"+((center.getX()*CONSTANT)+trans[0])+\",\"+((center.getY()*CONSTANT)+trans[1])+\")\");\n Log.e(\"Points\",\"Mean (X,Y) = \" + \"(\"+meanCenter[0]+\",\"+meanCenter[1]+\")\");\n double result = Math.sqrt(\n Math.pow(((center.getX()*CONSTANT)+trans[0]) - meanCenter[0],2)+\n Math.pow(((center.getY()*CONSTANT)+trans[1]) - meanCenter[1],2)\n );\n return result;\n }", "public static double maxIntensity(double hue, double sat)\r\n {\r\n\tdouble H = (hue % (1.0/3.0)) * Math.PI;\r\n\tdouble pi3 = Math.PI/3.0;\r\n\treturn 1.0/(1.0 + sat*Math.cos(H)/Math.cos(pi3 - H));\r\n }", "public double getLightAbsorptionCoefficient(){\n return gamma;\n }", "private static int calculateAlphaOffset(SampleModel sm, Raster r) {\r\n if (sm instanceof ComponentSampleModel) {\r\n ComponentSampleModel csm = (ComponentSampleModel) sm;\r\n int dataTypeSize =\r\n DataBuffer.getDataTypeSize(r.getDataBuffer().getDataType()) / 8;\r\n return\r\n csm.getBandOffsets()[csm.getBandOffsets().length - 1] * dataTypeSize;\r\n } else if (sm instanceof SinglePixelPackedSampleModel) {\r\n SinglePixelPackedSampleModel sppsm = (SinglePixelPackedSampleModel) sm;\r\n return sppsm.getBitOffsets()[sppsm.getBitOffsets().length - 1] / 8;\r\n } else {\r\n return -1; // No offset, don't copy alpha\r\n }\r\n }", "private void setLowSensitivity() {\n\t\tbuttonLowOn.setVisibility(View.VISIBLE);\n\t\tbuttonMedOn.setVisibility(View.INVISIBLE);\n\t\tbuttonHighOn.setVisibility(View.INVISIBLE);\n\t\t\n\t\tLUT[0] = 2;\n\t\tLUT[1] = (float)6;\n\t\tLUT[2] = (float)10;\n\t\tLUT[3] = (float)20;\n\t\tLUT[4] = (float)30;\n\t\tLUT[5] = (float)150;\n\t\tLUT[6] = (float)700;\n\t\tLUT[7] = (float)2000;\n\t\tLUT[8] = (float)4000;\n\t}", "public void updateHistogram() {\n\n // Dont bother updating histogram if tab not even visible, save resources.\n if (!this.isVisible()) {\n return;\n }\n\n // Initialize imp variable.\n MimsPlus imp = null;\n\n // Get the title of the window currently selected in the combobox.\n // Then get the window associated with that title. \n String title = (String) jComboBox1.getSelectedItem();\n if (title != null) {\n imp = (MimsPlus) windows.get(title);\n }\n\n // Not sure why but sometimes images have NULL image processors.\n // Cant update histogram if it does not have one.\n if (imp == null) {\n return;\n }\n ImageProcessor ip = imp.getProcessor();\n if (ip == null) {\n return;\n }\n\n // Update the sliders.\n contrastAdjuster1.update(imp);\n\n // Get Pixel values.\n int i = 0;\n int width = imp.getWidth();\n int height = imp.getHeight();\n int nbins = 256;\n double[] pixels = new double[width * height];\n double pixelVal, maxVal = 0.0;\n for (int x = 0; x < width; x++) {\n for (int y = 0; y < height; y++) {\n pixelVal = ip.getPixelValue(x, y);\n pixels[i] = pixelVal;\n if (maxVal < pixelVal) {\n maxVal = pixelVal;\n }\n i++;\n }\n }\n\n // return if no data avaialable\n if (pixels == null) {\n return;\n }\n if (pixels.length == 0) {\n return;\n }\n\n // Setup and plot histogram.\n HistogramDataset dataset = new HistogramDataset();\n dataset.addSeries(\"\", pixels, nbins);\n MimsXYPlot plot = (MimsXYPlot) chart.getPlot();\n plot.setDataset(dataset);\n\n // Show contrast window.\n updateContrastWindow();\n\n // Final plot adjustments. maxVal cannot be zero, or JFreeChart will generate this error:\n // IllegalArgumentException: A positive range length is required: Range[0.0,0.0]\n if (maxVal == 0) {\n maxVal = 0.00001;\n }\n plot.getDomainAxis().setRange(0, maxVal);\n plot.setDomainGridlinesVisible(false);\n chart.fireChartChanged();\n }", "public void calibrated() {\n weaponDamage = weaponDamage + 10;\r\n }", "public double getAverageAcceleration() {\n return (leftEnc.getAcceleration() + rightEnc.getAcceleration()) / 2;\n }", "public void showSaturation(String title)\r\n {\r\n\tIntensityImage image = new IntensityImage(saturation);\r\n\timage.show(title);\r\n }", "@Override\n\tpublic int avg() {\n\t\treturn (this.sum()/3);\n\t}", "public double getAvgGain() {\n\t\tif (avgGain == -1)\n\t\t\tthis.calculateAvg();\n\t\treturn avgGain;\n\t}", "float getFixedHotwordGain();", "public abstract double averageBreedWeightKG();", "public static double rootMeanSquare( double[] orig, double[] est ) {\r\n if ((orig == null) || (orig.length == 0) || (est == null) || \r\n (est.length == 0) || (orig.length != est.length)) {\r\n return -1;\r\n }\r\n int len = orig.length;\r\n double rms = 0.0;\r\n for (int i = 0; i < len; i++) {\r\n rms += Math.pow((orig[i]-est[i]), 2);\r\n }\r\n return Math.sqrt(rms / len);\r\n }", "public float getBrightness(float p_70013_1_) {\n/* 202 */ return super.getBrightness(p_70013_1_);\n/* */ }", "public double getAvgAltValue() {\n return avgAltValue;\n }", "private void brightnessEffect(int barra) {\n float val = barra / 20f;\n Log.i(\"kike\", \"valor efecte: \" + val + \" barra: \" + barra);\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_BRIGHTNESS);\n effect.setParameter(\"brightness\", val);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "public int[] meanMaxMin_thresh(int[] src, int width, int height, int size,\n int con) {\n\n i_w = width;\n i_h = height;\n src_1d = new int[i_w * i_h];\n dest_1d = new int[i_w * i_h];\n int mean = 0;\n int max, min;\n int[] values = new int[size * size];\n src_1d = src;\n int[][] tmp_2d = new int[i_w][i_h];\n\n //First convert input array from 1_d to 2_d for ease of processing\n for (int i = 0; i < i_w; i++) {\n for (int j = 0; j < i_h; j++) {\n tmp_2d[i][j] = src_1d[i + (j * i_w)] & 0x000000ff;\n }\n }\n\n int tmp;\n\n //Now find the max and min of values in the size X size neigbourhood\n for (int j = 0; j < i_h; j++) {\n for (int i = 0; i < i_w; i++) {\n mean = 0;\n max = tmp_2d[i][j];\n min = tmp_2d[i][j];\n //Check the local neighbourhood\n for (int k = 0; k < size; k++) {\n for (int l = 0; l < size; l++) {\n try {\n tmp = tmp_2d[(i - ((int) (size / 2)) + k)]\n [(j - ((int) (size / 2)) + l)];\n if (tmp > max) {\n max = tmp;\n }\n if (tmp < min) {\n min = tmp;\n }\n }\n //If out of bounds then ignore pixel\n catch (ArrayIndexOutOfBoundsException e) {\n // TODO: eliminate this\n }\n }\n }\n //Find the mean value\n\n tmp = max + min;\n tmp = tmp / 2;\n mean = tmp - con;\n\n //Threshold below the mean\n if (tmp_2d[i][j] >= mean) {\n dest_1d[i + (j * i_w)] = 0xffffffff;\n } else {\n dest_1d[i + (j * i_w)] = 0xff000000;\n }\n }\n }\n return dest_1d;\n }", "public void run(ImageProcessor ip) {\n ImagePlus impDark = WindowManager.getImage(DarkiD);\n ImageStack DarkStack = impDark.getStack();\n int width = DarkStack.getProcessor(1).getWidth();\n int height = DarkStack.getProcessor(1).getHeight();\n int dim = width * height;\n \n // Let's assign & declare all the local variables. \n //The pix-by-pix sum of the stack\n double[] sum;\n sum = new double[dim];\n \n //The pix-by-pix average of the stack\n double[] average;\n average = new double[dim];\n \n //The DARK signal pixel array\n double[] DARKpixels;\n DARKpixels = new double[dim];\n \n /* Scan the stack to weed out pics w/ pixel > saturation, then sum \n pix-by-pix through the stack. */\n int k = 0;\n for(int i=1; i<=DarkStack.getSize(); i++){\n double imgMax = DarkStack.getProcessor(i).getStatistics().max;\n if (imgMax < saturation){\n short[] pixels = (short[]) (DarkStack.getPixels(i));\n for (int j=0; j<dim; j++){\n sum[j] += (double)(pixels[j] & 0xffff);\n }\n } else \n k++;\n } \n \n // Average pix-by-pix\n for(int i=0; i<dim; i++){\n average[i] = (double) (sum[i]/(DarkStack.getSize() - k ));\n }\n \n /* Subtract off READ signal and normalize per exposure time. If \n a pixel has a value less than 0, then set it to zero.\n */\n ImagePlus impREAD = WindowManager.getImage(READiD);\n ImageProcessor READ_ip = impREAD.getProcessor();\n float[] READpixels = (float[]) ( READ_ip.getPixels() ); \n for(int i =0; i<dim; i++){\n DARKpixels[i] = (double)( (average[i] - READpixels[i])\n /(DarkTime - READTime) );\n if (DARKpixels[i]< 0)\n DARKpixels[i]=0; \n }\n \n // Make DARK image from pixels then show it. \n ImageProcessor DARK_ip = new FloatProcessor(width, \n height,DARKpixels); \n ImagePlus impDARK = new ImagePlus(\"DARK\",DARK_ip);\n impDARK.show();\n impDARK.draw();\n IJ.run(impDARK, \"Enhance Contrast\", \"saturated=0.35\");\n \n //Print out specs of the DARK image.\n ResultsTable rt = new ResultsTable();\n rt.incrementCounter();\n rt.addValue(\"Mean\",DARK_ip.getStatistics().mean);\n rt.addValue(\"Max\",DARK_ip.getStatistics().max);\n rt.addValue(\"Min\",DARK_ip.getStatistics().min);\n rt.addValue(\"Std.Dev.\",DARK_ip.getStatistics().stdDev);\n rt.showRowNumbers(false);\n rt.show(\"Results\");\n \n\t}", "public void filterImage()\r\n {\r\n\t if (!isInverted && !isBlured )\r\n {\r\n cropedEdited = cropedPart;\r\n }\r\n\t float[] elements = {0.0f, 1.0f, 0.0f, -1.0f,brightnessLevel,1.0f,0.0f,0.0f,0.0f}; \r\n\t Kernel kernel = new Kernel(3, 3, elements); \r\n\t BufferedImageOp change = new ConvolveOp(kernel); \r\n\t cropedEdited = change.filter(cropedEdited, null);\r\n repaint();\r\n }", "public void setIntensities(float r0, float g0, float b0, float a0,\n float r1, float g1, float b1, float a1,\n float r2, float g2, float b2, float a2) {\n // Check if we need alpha or not?\n if ((a0 != 1.0f) || (a1 != 1.0f) || (a2 != 1.0f)) {\n INTERPOLATE_ALPHA = true;\n a_array[0] = (a0 * 253f + 1.0f) * 65536f;\n a_array[1] = (a1 * 253f + 1.0f) * 65536f;\n a_array[2] = (a2 * 253f + 1.0f) * 65536f;\n m_drawFlags|=R_ALPHA;\n } else {\n INTERPOLATE_ALPHA = false;\n m_drawFlags&=~R_ALPHA;\n }\n \n // Check if we need to interpolate the intensity values\n if ((r0 != r1) || (r1 != r2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((g0 != g1) || (g1 != g2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else if ((b0 != b1) || (b1 != b2)) {\n INTERPOLATE_RGB = true;\n m_drawFlags |= R_GOURAUD;\n } else {\n //m_fill = parent.filli;\n m_drawFlags &=~ R_GOURAUD;\n }\n \n // push values to arrays.. some extra scaling is added\n // to prevent possible color \"overflood\" due to rounding errors\n r_array[0] = (r0 * 253f + 1.0f) * 65536f;\n r_array[1] = (r1 * 253f + 1.0f) * 65536f;\n r_array[2] = (r2 * 253f + 1.0f) * 65536f;\n \n g_array[0] = (g0 * 253f + 1.0f) * 65536f;\n g_array[1] = (g1 * 253f + 1.0f) * 65536f;\n g_array[2] = (g2 * 253f + 1.0f) * 65536f;\n \n b_array[0] = (b0 * 253f + 1.0f) * 65536f;\n b_array[1] = (b1 * 253f + 1.0f) * 65536f;\n b_array[2] = (b2 * 253f + 1.0f) * 65536f;\n \n // for plain triangles\n m_fill = 0xFF000000 | \n ((int)(255*r0) << 16) | ((int)(255*g0) << 8) | (int)(255*b0);\n }", "@Test\n public void testAverageRisk() {\n DataProvider provider = new DataProvider();\n provider.createDataDefinition();\n // Risk before anonymization\n double risk = provider.getData().getHandle().getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 1.0d);\n \n // Risk after anonymization\n risk = getAnonymizedData(provider.getData()).getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 0.42857142857142855);\n }" ]
[ "0.6417962", "0.6369531", "0.62646604", "0.62196255", "0.6178758", "0.60994315", "0.6006981", "0.57854694", "0.56809986", "0.5633681", "0.562636", "0.56012124", "0.5500637", "0.5479183", "0.5437871", "0.53856206", "0.53807783", "0.5367578", "0.53456676", "0.5317852", "0.530938", "0.52846974", "0.52652276", "0.5263863", "0.5244976", "0.52448505", "0.523281", "0.5231716", "0.52027124", "0.52016526", "0.5189561", "0.5177321", "0.51640564", "0.5163596", "0.5160491", "0.51514095", "0.51379055", "0.51229024", "0.51217556", "0.5108961", "0.5097917", "0.5096024", "0.5086437", "0.50767744", "0.50512916", "0.5051195", "0.5044145", "0.50333875", "0.50276184", "0.50238144", "0.5022985", "0.5016479", "0.500618", "0.5004969", "0.50007945", "0.49972948", "0.49953207", "0.49941698", "0.49934205", "0.49905178", "0.498724", "0.49863312", "0.49863088", "0.4984767", "0.49838278", "0.49832243", "0.49735358", "0.49653074", "0.49635705", "0.49545136", "0.49513394", "0.49497187", "0.49460515", "0.4942652", "0.49421686", "0.49395037", "0.49320906", "0.4919393", "0.4918729", "0.49110246", "0.49082148", "0.4887754", "0.4886467", "0.4885942", "0.48853377", "0.4883692", "0.487612", "0.4874644", "0.48701084", "0.48698813", "0.48625562", "0.4859999", "0.48584124", "0.48578295", "0.4851032", "0.4848113", "0.48463047", "0.48442414", "0.48392403", "0.4837005", "0.48324624" ]
0.0
-1
Averages the pixels of chosen images (superimposing them)
public void average()throws IOException{ String input = j.showInputDialog("Choose how many images you'll be using:"); int q= Integer.parseInt(input); ArrayList<Scanner> f = new ArrayList(); for(int a=0;a<q;a++){ input = j.showInputDialog("Choose a file ("+(a+1)+"/"+q+ ") to use:"); f.add(new Scanner(new File(input+".ppm"))); } input = j.showInputDialog("Choose a name for the new file:"); PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(input+".ppm"))); out.println("P3"); int height[]= new int[q]; int width[]= new int[q]; int largest=0; for(int a=0;a<q;a++){ f.get(a).next(); height[a]=Integer.parseInt(f.get(a).next()); width[a]=Integer.parseInt(f.get(a).next()); //f.get(a).next(); } for(int a=0;a<q;a++){ if(height[largest]*width[largest]<height[a]*width[a]){ largest=a; } } out.println(height[largest]);out.println(width[largest]); int ass=0; int azz=0; for(int x=0;x<width[largest];x++){ for(int y=0;y<height[largest];y++){ for(int c=0;c<3;c++){ for(int a=0;a<q;a++){ if(f.get(a).hasNext()){ if(x<width[a]&&y<height[a]){ ass=ass+Integer.parseInt(f.get(a).next()); azz++; } } } ass=ass/azz; out.print(ass+" "); ass=0; azz=0; } } } for(int a =0;a<q;a++){ f.get(a).close(); } out.close(); System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native MagickImage averageImages() throws MagickException;", "public static int[][] average(int[][] pixels){\r\n\t\t\t\r\n\t\t\tint height = pixels.length;\r\n\t\t\tint width = pixels[0].length;\r\n\t\t\t\r\n\t\t\t//Apply Average Filter\r\n\t for (int v = 1; v < height; v++) {\r\n\t for (int u = 1; u < width; u++) {\r\n\t \r\n\t int sum = 0;\r\n\t for (int j = -1; j <=1; j++) {\r\n\t for (int i = -1; i <= 1; i++) {\r\n\t if((u + (j) >= 0 && v + (i) >= 0 && u+(j) < width && v + (i) < height)){\r\n\t \tint p = pixels[v+(i)][u+(j)];\r\n\t \tsum = sum + p;\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t int q = (int) (sum /9);\r\n\t aResult[v][u] = q;\r\n\t }\r\n\t }\r\n\t return aResult;\r\n\t\t}", "public static BufferedImage average(BufferedImage image, int value) {\n //3-position array where we store R,G,B values of every pixel\n int[] colors;\n //3-position array where we will store the mean value of every pixel of every channel\n int[] meanColor = new int[3];\n //mean values for every channel\n double meanRed, meanGreen, meanBlue;\n //Create a tessela form the original image so we can modify its pixels\n WritableRaster bitmap = (WritableRaster) image.getData();\n WritableRaster tesela = bitmap.createWritableChild(image.getMinX(), image.getMinY(), image.getWidth(), image.getHeight(), 0,0, null);\n //Image iteration\n for (int x = 0; x < image.getWidth()-1; x++){\n for (int y = 0; y < image.getHeight()-1; y++) {\n int red = 0, green=0, blue = 0;\n //Window iteration\n for (int f =-value; f <= value; f++) {\n for (int k = -value; k <= value; k++) {\n //Get every window coordinate, but first check if they actually exist (not out of bounds)\n if (y+(f)>=0 && x+(k)>=0 && y+(f) < image.getHeight() && x+(k)<image.getWidth()) {\n //Temporal store of the value of every channel so then we can compute the mean\n colors = getPixelColor(image,x+k,y+f);\n red += colors[0];\n green += colors[1];\n blue += colors[2];\n }\n }\n }\n //To compute the mean of every color we have to compute the 'distance'+1\n int distance = (value - (-value)+1)*(value - (-value)+1);\n //For every channel, compute the new pixel value\n meanRed = red / distance;\n meanColor[0] = (int) meanRed; \n meanGreen = green / distance;\n meanColor[1] = (int) meanGreen;\n meanBlue = blue / distance;\n meanColor[2] = (int) meanBlue;\n bitmap.setPixel(x,y,meanColor);\n }\n }\n //Create the averaged image and return it\n BufferedImage subImage = new BufferedImage(image.getColorModel(),tesela,image.isAlphaPremultiplied(),null);\n return subImage;\n }", "private Color computeAverageColor(AbstractCollection<Pixel> pixels)\n {\n int r=0, g=0, b=0;\n for(Pixel p : pixels)\n {\n Color c = new Color(image.getRGB(p.p, p.q));\n r+=c.getRed();\n g+=c.getGreen();\n b+=c.getBlue();\n }\n return new Color(r/pixels.size(),g/pixels.size(),b/pixels.size());\n }", "public void pixave(int x1, int y1, int x2, int y2) {\n float sumr,sumg,sumb;\n int pix;\n int r,g,b;\n int n;\n\n if(x1<0) x1=0;\n if(x2>=kWidth) x2=kWidth-1;\n if(y1<0) y1=0;\n if(y2>=kHeight) y2=kHeight-1;\n\n sumr=sumg=sumb=0.0f;\n for(int y=y1; y<=y2; y++) {\n for(int i=kWidth*y+x1; i<=kWidth*y+x2; i++) {\n pix= kinecter.depthImg.pixels[i];\n b=pix & 0xFF; // blue\n pix = pix >> 8;\n g=pix & 0xFF; // green\n pix = pix >> 8;\n r=pix & 0xFF; // red\n //if( random(0, 150000) > 149000 && r > 0) println(\"r \" + r + \" b \" + b + \" g \" + g);\n // averaging the values\n sumr += b;//r;//g;//r;\n sumg += b;//r;//g;\n sumb += b;//r;//g;//b;\n }\n }\n n = (x2-x1+1)*(y2-y1+1); // number of pixels\n // the results are stored in static variables\n ar = sumr/n; \n ag=sumg/n; \n ab=sumb/n;\n }", "public double getMeanValuePixels() {\n\t\tdouble avg = 0;\n\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\tavg += this.image[i][j];\n\t\t\t}\n\t\t}\n\t\tavg /= this.getQtyPixels();\n\n\t\treturn avg;\n\t}", "public static WritableImage getAverage(WritableImage a, WritableImage b) {\n\t\tWritableImage result = new WritableImage((int)a.getWidth(), \n\t\t\t\t(int)a.getHeight());\n\t\tPixelWriter writer = result.getPixelWriter();\n\t\tPixelReader aPixels = a.getPixelReader();\n\t\tPixelReader bPixels = b.getPixelReader();\n\t\t\n\t\tfor (int y = 0; y < a.getHeight(); y ++) {\n\t\t\tfor (int x = 0; x < a.getWidth(); x ++) {\n\t\t\t\tColor color = getAverageColor(\n\t\t\t\t\t\taPixels.getColor(x, y), \n\t\t\t\t\t\tbPixels.getColor(x, y));\n\t\t\t\twriter.setColor(x, y, color);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public Bitmap rgbAverageContrastAugmentation(Bitmap bmp) {\n\n\n int width, height, r, g, b;\n long acc = 0;\n width = bmp.getWidth();\n height = bmp.getHeight();\n //Alocate memory\n int[] hist = new int[256];\n int[] LUT = new int[256];\n int[] pixels = new int[height * width];\n bmp.getPixels(pixels, 0, width, 0, 0, width, height);\n for (int index = 0; index < width * height; ++index) {\n //Do general Histogram\n r = (pixels[index] >> 16) & 0xff;\n g = (pixels[index] >> 8) & 0xff;\n b = (pixels[index]) & 0xff;\n hist[r]++;\n hist[g]++;\n hist[b]++;\n }\n for (int ng = 0; ng < 256; ng++) {\n hist[ng] /= 3; //Getting average of three RGB channels\n acc += hist[ng]; //Cumulative function\n LUT[ng] = (int) ((acc * 255) / ((width * height))); //Histogram Equalization formula\n }\n //Setting new pixels to image.\n for (int index = 0; index < width * height; index++) {\n r = LUT[(pixels[index] >> 16) & 0xff];\n g = LUT[(pixels[index] >> 8) & 0xff];\n b = LUT[(pixels[index]) & 0xff];\n pixels[index] = ((0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff);\n }\n bmp.setPixels(pixels, 0, width, 0, 0, width, height);\n\n\n\n\n return bmp;\n }", "public void calcAvg(){\n\t\taverage = hits/atbat;\n\t\t\n\t}", "private Color averageAround(RenderedImage i, double px, double py) {\n\t\t// Get an iterator for the image.\n\t\tRandomIter iterator = RandomIterFactory.create(i, null);\n\t\t// Get memory for a pixel and for the accumulator.\n\t\tdouble[] pixel = new double[3];\n\t\tdouble[] accum = new double[3];\n\t\t// The size of the sampling area.\n\t\tint sampleSize = 10;\n\t\tint numPixels = 0;\n\t\t// Sample the pixels.\n\t\tfor (double x = px * baseSize - sampleSize; x < px * baseSize\n\t\t\t\t+ sampleSize; x++) {\n\t\t\tfor (double y = py * baseSize - sampleSize; y < py * baseSize\n\t\t\t\t\t+ sampleSize; y++) {\n\t\t\t\titerator.getPixel((int) x, (int) y, pixel);\n\t\t\t\taccum[0] += pixel[0];\n\t\t\t\taccum[1] += pixel[1];\n\t\t\t\taccum[2] += pixel[2];\n\t\t\t\tnumPixels++;\n\t\t\t}\n\t\t}\n\t\t// Average the accumulated values.\n\t\taccum[0] /= numPixels;\n\t\taccum[1] /= numPixels;\n\t\taccum[2] /= numPixels;\n\t\treturn new Color((int) accum[0], (int) accum[1], (int) accum[2]);\n\t}", "public Pic overlay(Pic other) {\n Pic output = image.deepCopy();\n Pixel[][] outputPixels = output.getPixels();\n Pixel[][] overlayPixels = other.getPixels();\n for (int row = 0; row < output.getHeight(); row++) {\n for (int col = 0; col < output.getWidth(); col++) {\n Pixel current = outputPixels[row][col];\n //Sets color to average values only if there is enough\n //area in the original image\n if (row < other.getHeight()\n && col < other.getWidth()) {\n Pixel overlayCurrent = overlayPixels[row][col];\n int redAverage = (current.getRed()\n + overlayCurrent.getRed()) / 2;\n int greenAverage = (current.getGreen()\n + overlayCurrent.getGreen()) / 2;\n int blueAverage = (current.getBlue()\n + overlayCurrent.getBlue()) / 2;\n current.setRed(redAverage);\n current.setGreen(greenAverage);\n current.setBlue(blueAverage);\n }\n }\n }\n return output;\n }", "public int[] mean_thresh(int[] src, int width, int height, int size,\n int con) {\n\n i_w = width;\n i_h = height;\n src_1d = new int[i_w * i_h];\n dest_1d = new int[i_w * i_h];\n int mean = 0;\n int count = 0;\n src_1d = src;\n int[][] tmp_2d = new int[i_w][i_h];\n\n //First convert input array from 1_d to 2_d for ease of processing\n for (int i = 0; i < i_w; i++) {\n for (int j = 0; j < i_h; j++) {\n tmp_2d[i][j] = src_1d[i + (j * i_w)] & 0x000000ff;\n }\n }\n\n final int HALF_SIZE = size / 2;\n //Now find the sum of values in the size X size neigbourhood\n for (int j = 0; j < i_h; j++) {\n for (int i = 0; i < i_w; i++) {\n mean = 0;\n count = 0;\n //Check the local neighbourhood\n for (int k = 0; k < size; k++) {\n for (int l = 0; l < size; l++) {\n\n int x = i - HALF_SIZE + k;\n int y = j - HALF_SIZE + l;\n //If out of bounds then ignore pixel\n if (x >= 0 && x < i_w && y >= 0 && y < i_h) {\n mean = mean + tmp_2d[x][y];\n count++;\n }\n }\n }\n //Find the mean value\n mean = (mean / count) - con;\n\n //Threshold below the mean\n if (tmp_2d[i][j] > mean) {\n dest_1d[i + (j * i_w)] = 0xffffffff;\n } else {\n dest_1d[i + (j * i_w)] = 0xff000000;\n }\n }\n }\n return dest_1d;\n }", "public static void calculate_average_ratio1() {\n double sum = 0;\n\n for (int i = 0; i < Variables.pixels.size(); i++) {\n sum += Variables.pixels.get(i).getRatio1();\n }\n Variables.average_ratio1 = sum / Variables.pixels.size();\n }", "public static ImagePlus[] normalizeBeforeComputation(ImagePlus []imgsEchoes,ImagePlus imgMask) {\n\t\tImagePlus []tabRet=VitimageUtils.imageTabCopy(imgsEchoes);\n\t\tImagePlus imgSum=VitimageUtils.sumOfImages(imgsEchoes);\n\t\timgSum=VitimageUtils.makeOperationBetweenTwoImages(imgSum, imgMask, 2, true);\n\t\tint Z=imgSum.getNSlices();\n\t\tint X=VitimageUtils.getDimensions(imgSum)[0];\n\t\tint Y=VitimageUtils.getDimensions(imgSum)[1];\n\t\tint[][]coords=new int[Z][3];\n\t\tdouble[]meanOverAll=new double[Z];\n\t\tdouble[]meanOverCap=new double[Z];\n\t\tdouble[]meanOverRest=new double[Z];\n\t\tdouble globalMeanOverCap;\n\t\tdouble globalMeanOverRest;\n\t\tint radiusAroundCapillary=(int)Math.round(VitimageUtils.bionanoCapillaryRadius*1.5/VitimageUtils.getVoxelSizes(imgSum)[0]);\n\t\t//Pour chaque Z\n\t\tfor(int z=0;z<Z;z++) {\n\t\t\tImagePlus sliceTemp=new Duplicator().run(imgSum,1,1,z+1,z+1,1,1);\n\t\t\t//Pour cette image, localiser le capillaire, sur chaque Z\n\t\t\tcoords[z]=VitimageUtils.findCapillaryCenterInSlice(sliceTemp, VitimageUtils.bionanoCapillaryRadius);\n\t\t\tif(coords[z][0]<radiusAroundCapillary+5 || coords[z][1]<radiusAroundCapillary+5 || coords[z][0]>(X-radiusAroundCapillary-5) || coords[z][0]>(Y-radiusAroundCapillary-5) ) {\n\t\t\t\tIJ.showMessage(\"Warning in normalizeBeforeComputation : unsteady mean computation at z=\"+z+\" because capillary is detected near the border, at coordinates \"+coords[z][0]+\" , \"+coords[z][1]+\" with an indicated security radius of \"+radiusAroundCapillary);\n\t\t\t}\n\t\t\t\n\t\t\t//Mesurer la moyenne autour du capillaire\n\t\t\tmeanOverCap[z]=VitimageUtils.meanValueofImageAround(sliceTemp, coords[z][0], coords[z][1], 0,radiusAroundCapillary);\n\t\t\t\n\t\t\t\n\t\t\t//Mesurer la moyenne de l'image\n\t\t\tint radiusImg=Math.min(X/2,Y/2)-2;\n\t\t\tmeanOverAll[z]=VitimageUtils.meanValueofImageAround(sliceTemp, X/2, Y/2, 0,radiusImg);\n\t\t\t\n\t\t\t//Oter l'un à l'autre\n\t\t\tmeanOverRest[z]=meanOverAll[z]*(2*radiusImg+1)*(2*radiusImg+1) - meanOverCap[z]*(2*radiusAroundCapillary+1)*(2*radiusAroundCapillary+1);\n\t\t\tmeanOverRest[z]=meanOverRest[z]/( (2*radiusImg+1)*(2*radiusImg+1) - (2*radiusAroundCapillary+1)*(2*radiusAroundCapillary+1) );\n\n\t\t}\n\t\t//Faire la moyenne des valeurs mesurées along Z\n\t\tglobalMeanOverRest=VitimageUtils.statistics1D(meanOverRest)[0];\n\t\tglobalMeanOverCap=VitimageUtils.statistics1D(meanOverCap)[0];\n\n\t\tint radiusSq=radiusAroundCapillary*radiusAroundCapillary;\n\t\tdouble distSq;\n\t\t//Pour chaque Z\n\t\tfor(int im=0;im<tabRet.length;im++) {\n\t\t\tIJ.run(tabRet[im],\"32-bit\",\"\");\n\t\t\tfor(int z=0;z<Z;z++) {\n\t\t\t\tfloat[]tabData=(float[])tabRet[im].getStack().getProcessor(z+1).getPixels();\n\t\t\t\tdouble factorMultCap=globalMeanOverCap/meanOverCap[z];\n\t\t\t\tdouble factorMultRest=globalMeanOverRest/meanOverRest[z];\n\t\t\t\tfor(int x=0;x<X;x++) {\n\t\t\t\t\tfor(int y=0;y<Y;y++) {\n\t\t\t\t\t\tdistSq=(coords[z][0]-x)*(coords[z][0]-x) + (coords[z][1]-y)*(coords[z][1]-y);\n\t\t\t\t\t\t//Multiplier par moy / facteur 1(Z) sauf dans cap ou on multiplie par moy / facteur 2(Z) \n\t\t\t\t\t\tif(distSq<radiusSq)tabData[X*y+x]*=(factorMultCap);\n\t\t\t\t\t\telse tabData[X*y+x]*=(factorMultRest);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\t\t\t\n\t\treturn tabRet;\n\t}", "public void calculateAverage() {\n\n if (turn == 1) {\n p1.setTotalScore(p1.getTotalScore() + turnScore);\n\n p1.setTotalDarts(p1.getTotalDarts() + 1);\n\n float p1Average = p1.getTotalScore() / p1.getTotalDarts();\n p1.setAverage(p1Average);\n\n } else if (turn == 2) {\n p2.setTotalDarts(p2.getTotalDarts() + 1);\n p2.setTotalScore(p2.getTotalScore() + turnScore);\n\n float p2Average = p2.getTotalScore() / p2.getTotalDarts();\n p2.setAverage(p2Average);\n }\n\n\n }", "@Override\n public Double average() {\n return (sum() / (double) count());\n }", "public void computeAverageOfRepeats() {\n\t\t\n\t\texperimentsAvg_ = new ArrayList<Experiment>();\n\t\t\n\t\tfor (int i=0; i<experiments_.size(); i++)\n\t\t\texperimentsAvg_.add(experiments_.get(i).computeAverageOfRepeats());\n\t}", "public static int run(Bitmap temp) {\n Mat src = new Mat();\n Bitmap bmp32 = temp.copy(Bitmap.Config.ARGB_8888, true);\n Utils.bitmapToMat(bmp32, src);\n\n List<Mat> bgrPlanes = new ArrayList<>();\n Core.split(src, bgrPlanes);\n\n int histSize = 256;\n\n float[] range = {0, 256}; //the upper boundary is exclusive\n MatOfFloat histRange = new MatOfFloat(range);\n\n boolean accumulate = false;\n\n Mat bHist = new Mat(), gHist = new Mat(), rHist = new Mat();\n Imgproc.calcHist(bgrPlanes, new MatOfInt(0), new Mat(), bHist, new MatOfInt(histSize), histRange, accumulate);\n Imgproc.calcHist(bgrPlanes, new MatOfInt(1), new Mat(), gHist, new MatOfInt(histSize), histRange, accumulate);\n Imgproc.calcHist(bgrPlanes, new MatOfInt(2), new Mat(), rHist, new MatOfInt(histSize), histRange, accumulate);\n\n float[] bHistData = new float[(int) (bHist.total() * bHist.channels())];\n bHist.get(0, 0, bHistData);\n float[] gHistData = new float[(int) (gHist.total() * gHist.channels())];\n gHist.get(0, 0, gHistData);\n float[] rHistData = new float[(int) (rHist.total() * rHist.channels())];\n rHist.get(0, 0, rHistData);\n\n // Get num vals at each intensity and sum total vals\n float totalVals = 0;\n float[] histData = new float[256];\n for(int i = 0; i < histSize; i++) {\n histData[i] = bHistData[i] + gHistData[i] + rHistData[i];\n totalVals = totalVals + histData[i];\n }\n\n // Get sum of all values * intensities\n float sum = 0;\n for(int i = 0; i < histSize; i++) {\n sum = sum + (histData[i] * i);\n }\n\n // Divide by total value to find average intensity\n float avg = sum / totalVals;\n\n // Check what range avg is in\n if(avg < 51) {\n return 1;\n } else if (avg < 102) {\n return 3;\n } else if (avg < 153) {\n return 5;\n } else if (avg < 205) {\n return 4;\n } else if (avg < 256) {\n return 2;\n } else {\n return 0;\n }\n }", "public static Double[][] operationAvgPooling(Double[][] matrix, int w, int h, int s) {\n if (s < 1) s = 1;\n int fSizeY = matrix.length;\n int kSizeY = h;\n int fSizeX = matrix[0].length;\n int kSizeX = w;\n int p = 0;\n int i, j;\n Double[][] output = new Double[i = ((matrix.length - h) / s) + 1][j = ((matrix[0].length - w) / s) + 1];\n for (int y = 0; y < i; y = y + 1) {\n for (int x = 0; x < j; x = x + 1) {\n double avg = 0;\n for (int yy = 0; yy < h; yy++) {\n for (int xx = 0; xx < w; xx++) {\n double l = matrix[y + yy][x + xx];\n avg += l;\n }\n }\n output[y][x] = avg / (h * w);\n }\n }\n return output;\n }", "public static int getAverage(int i, int j, int[][] image)\r\n\t{\n int[][] directions={{0,-1},{0,1},{1,0},{-1,0},{1,-1}, {1,1}, {-1,-1}, {-1,1}};\r\n\t\tint sum = image[i][j];\r\n\t\tint average = 0;\r\n\t\tint noOfElements = 1;\r\n\t\t\r\n\t\tfor(int[] dir : directions)\r\n\t\t{\r\n\t\t\tint x = i + dir[0];\r\n\t\t\tint y = j + dir[1];\r\n\t\t\t\r\n\t\t\tif(x >= 0 && y >= 0 && x < image.length && y < image[0].length)\r\n\t\t\t{\r\n\t\t\t\tsum += image[x][y];\r\n\t\t\t\tnoOfElements++;\r\n\t\t\t}\r\n\t\t}\r\n\t\taverage = sum / noOfElements;\r\n\t\treturn average;\r\n\t}", "public int[] meanMaxMin_thresh(int[] src, int width, int height, int size,\n int con) {\n\n i_w = width;\n i_h = height;\n src_1d = new int[i_w * i_h];\n dest_1d = new int[i_w * i_h];\n int mean = 0;\n int max, min;\n int[] values = new int[size * size];\n src_1d = src;\n int[][] tmp_2d = new int[i_w][i_h];\n\n //First convert input array from 1_d to 2_d for ease of processing\n for (int i = 0; i < i_w; i++) {\n for (int j = 0; j < i_h; j++) {\n tmp_2d[i][j] = src_1d[i + (j * i_w)] & 0x000000ff;\n }\n }\n\n int tmp;\n\n //Now find the max and min of values in the size X size neigbourhood\n for (int j = 0; j < i_h; j++) {\n for (int i = 0; i < i_w; i++) {\n mean = 0;\n max = tmp_2d[i][j];\n min = tmp_2d[i][j];\n //Check the local neighbourhood\n for (int k = 0; k < size; k++) {\n for (int l = 0; l < size; l++) {\n try {\n tmp = tmp_2d[(i - ((int) (size / 2)) + k)]\n [(j - ((int) (size / 2)) + l)];\n if (tmp > max) {\n max = tmp;\n }\n if (tmp < min) {\n min = tmp;\n }\n }\n //If out of bounds then ignore pixel\n catch (ArrayIndexOutOfBoundsException e) {\n // TODO: eliminate this\n }\n }\n }\n //Find the mean value\n\n tmp = max + min;\n tmp = tmp / 2;\n mean = tmp - con;\n\n //Threshold below the mean\n if (tmp_2d[i][j] >= mean) {\n dest_1d[i + (j * i_w)] = 0xffffffff;\n } else {\n dest_1d[i + (j * i_w)] = 0xff000000;\n }\n }\n }\n return dest_1d;\n }", "public void pixaveGreyscale(int x1, int y1, int x2, int y2) {\n //float sumr,sumg,sumb;\n float sumg;\n int pix;\n //int r,g,b;\n float g;\n int n;\n\n if(x1<0) x1=0;\n if(x2>=kWidth) x2=kWidth-1;\n if(y1<0) y1=0;\n if(y2>=kHeight) y2=kHeight-1;\n\n //sumr=sumg=sumb=0.0;\n sumg = 0.0f;\n for(int y=y1; y<=y2; y++) {\n for(int i=kWidth*y+x1; i<=kWidth*y+x2; i++) {\n \n // old method use depth image\n //pix= kinecter.depthImg.pixels[i];\n //g = pix & 0xFF; // grey\n //sumg += g;\n \n //b=pix & 0xFF; // blue\n // pix = pix >> 8;\n //g=pix & 0xFF; // green\n //pix = pix >> 8;\n //r=pix & 0xFF; // red\n //if( random(0, 150000) > 149000 && r > 0) println(\"r \" + r + \" b \" + b + \" g \" + g);\n // averaging the values\n //sumr += b;//r;//g;//r;\n //sumg += b;//r;//g;\n //sumb += b;//r;//g;//b;\n \n // WORK WITH RAW DEPTH INSTEAD\n sumg += kinecter.rawDepth[i];\n\n \n }\n }\n n = (x2-x1+1)*(y2-y1+1); // number of pixels\n // the results are stored in static variables\n //ar = sumr/n; \n //ag = sumg/n; \n //ab = sumb/n;\n\n ar = sumg/n; \n ag = ar; \n ab = ar;\n }", "public static Double[][] operationAvgPooling(Double[][] matrix, int w, int h) {\n int i, j;\n Double[][] output = new Double[i = matrix.length - h + 1][j = matrix[0].length - w + 1];\n for (int y = 0; y < i; y = y + 1) {\n for (int x = 0; x < j; x = x + 1) {\n double avg = 0;\n for (int yy = 0; yy < h; yy++) {\n for (int xx = 0; xx < w; xx++) {\n double l = matrix[y + yy][x + xx];\n avg += l;\n }\n }\n output[y][x] = avg / (h * w);\n }\n }\n return output;\n }", "protected static < T extends RealType< T >, S extends RealType< S > > void averageAllChannels( final Image< T > target, final ArrayList< Image< S > > sources, final int[] offset )\n\t{\n\t\t// get the major numbers\n\t\tfinal int numDimensions = target.getNumDimensions();\n\t\tfinal float numImages = sources.size();\n\t\tlong imageSize = target.getDimension( 0 );\n\t\t\n\t\tfor ( int d = 1; d < target.getNumDimensions(); ++d )\n\t\t\timageSize *= target.getDimension( d );\n\n\t\t// run multithreaded\n\t\tfinal AtomicInteger ai = new AtomicInteger(0);\t\t\t\t\t\n final Thread[] threads = SimpleMultiThreading.newThreads();\n\n final Vector<Chunk> threadChunks = SimpleMultiThreading.divideIntoChunks( imageSize, threads.length );\n \n for (int ithread = 0; ithread < threads.length; ++ithread)\n threads[ithread] = new Thread(new Runnable()\n {\n @Override\n public void run()\n {\n \t// Thread ID\n \tfinal int myNumber = ai.getAndIncrement();\n \n \t// get chunk of pixels to process\n \tfinal Chunk myChunk = threadChunks.get( myNumber );\n \tfinal long startPos = myChunk.getStartPosition();\n \tfinal long loopSize = myChunk.getLoopSize();\n \t\n \t\t// the cursor for the output\n \t\tfinal LocalizableCursor< T > targetCursor = target.createLocalizableCursor();\n \t\t\n \t\t// the input cursors\n \t\tfinal ArrayList< LocalizableByDimCursor< S > > sourceCursors = new ArrayList< LocalizableByDimCursor< S > > ();\n \t\t\n \t\tfor ( final Image< S > source : sources )\n \t\t\tsourceCursors.add( source.createLocalizableByDimCursor() );\n \t\t\n \t\t// temporary array\n \t\tfinal int[] location = new int[ numDimensions ]; \n\n \t\t// move to the starting position of the current thread\n \t\ttargetCursor.fwd( startPos );\n \n \t\t// do as many pixels as wanted by this thread\n for ( long j = 0; j < loopSize; ++j )\n \t\t{\n \t\t\ttargetCursor.fwd();\n \t\t\ttargetCursor.getPosition( location );\n \t\t\t\n \t\t\tfor ( int d = 0; d < numDimensions; ++d )\n \t\t\t\tlocation[ d ] += offset[ d ];\n \t\t\t\n \t\t\tfloat sum = 0;\n \t\t\t\n \t\t\tfor ( final LocalizableByDimCursor< S > sourceCursor : sourceCursors )\n \t\t\t{\n \t\t\t\tsourceCursor.setPosition( location );\n \t\t\t\tsum += sourceCursor.getType().getRealFloat();\n \t\t\t}\n \t\t\t\n \t\t\ttargetCursor.getType().setReal( sum / numImages );\n \t\t} \t\n }\n });\n \n SimpleMultiThreading.startAndJoin( threads );\t\t\n\t}", "public Range getPossibleAverages() {\n int overallAverage = getMissingAwareAverage(getTilesOffset(1), getFractionWidth()*getFractionHeight());\n if (overallAverage == Util.MISSING_GREY) {\n return new Range(0, 255);\n }\n // average = overallAverage*(1-getMissingPixelsFraction())+dynamic*getMissingPixelsFraction()\n return new Range(Math.max(overallAverage-MAX_DYNAMIC_DISTANCE,\n (int) (overallAverage * (1 - getMissingPixelsFraction()))),\n Math.min(overallAverage+MAX_DYNAMIC_DISTANCE,\n (int) (overallAverage*(1-getMissingPixelsFraction()) +\n 255*getMissingPixelsFraction())));\n }", "double average();", "public void findAvg()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n total += scores[i][j];\n }\n }\n System.out.println(\"The class average test score is \" + \n total/24 + \".\");\n }", "public void getAvg()\n {\n this.avg = sum/intData.length;\n }", "public static < T extends RealType< T > > boolean averageAllChannels( final Image< T > target, final int[] offset, final ImagePlus imp, final int timepoint )\n\t{\n\t\tfinal int numChannels = imp.getNChannels();\n\t\t\n\t\tif ( imp.getType() == ImagePlus.GRAY8 )\n\t\t{\n\t\t\tfinal ArrayList< Image< UnsignedByteType > > images = new ArrayList<Image<UnsignedByteType>>();\n\n\t\t\t// first get wrapped instances of all channels\n\t\t\tfor ( int c = 1; c <= numChannels; ++c )\n\t\t\t\timages.add( getWrappedImageUnsignedByte( imp, c, timepoint ) );\t\t\t\n\n\t\t\taverageAllChannels( target, images, offset );\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse if ( imp.getType() == ImagePlus.GRAY16 )\n\t\t{\n\t\t\tfinal ArrayList< Image< UnsignedShortType > > images = new ArrayList<Image<UnsignedShortType>>();\n\n\t\t\t// first get wrapped instances of all channels\n\t\t\tfor ( int c = 1; c <= numChannels; ++c )\n\t\t\t\timages.add( getWrappedImageUnsignedShort( imp, c, timepoint ) );\t\t\t\n\n\t\t\taverageAllChannels( target, images, offset );\n\t\t\treturn true;\n\t\t}\n\t\telse if ( imp.getType() == ImagePlus.GRAY32 )\n\t\t{\n\t\t\tfinal ArrayList< Image< FloatType > > images = new ArrayList<Image<FloatType>>();\n\n\t\t\t// first get wrapped instances of all channels\n\t\t\tfor ( int c = 1; c <= numChannels; ++c )\n\t\t\t\timages.add( getWrappedImageFloat( imp, c, timepoint ) );\n\t\t\t\n\t\t\taverageAllChannels( target, images, offset );\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tLog.error( \"Unknow image type: \" + imp.getType() );\n\t\t\treturn false;\n\t\t}\n\t}", "public void average(ContentView other) {\n if (this.normalisedRating > 0 && other.normalisedRating > 0) {\n int mergedRatingCount = this.ratingCount + other.ratingCount;\n double ratingTotalHere = this.normalisedRating * this.numberOfViews;\n double ratingTotalThere = other.normalisedRating * other.numberOfViews;\n double mergedRating = (ratingTotalHere + ratingTotalThere) / mergedRatingCount;\n this.normalisedRating = mergedRating;\n \n }\n int mergedNumberOfViews = this.numberOfViews + other.numberOfViews;\n double totalViewingTimeHere = this.averageViewingTime * this.numberOfViews;\n double totalViewingTimeThere = other.averageViewingTime * other.numberOfViews;\n double mergedViewingTime = (totalViewingTimeHere + totalViewingTimeThere) / mergedNumberOfViews;\n this.averageViewingTime = mergedViewingTime;\n this.numberOfViews = mergedNumberOfViews;\n }", "public void average() {\n\t\tif (averaged)\n\t\t\tthrow new AssertionError(\"can't average twice!!\");\n\t\t\n\t\tscale = 1.0/(double)t;\n\t\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i] = (t+1.0)*w[i] - wupdates[i];\n\t\t\n\t\taveraged = true;\n\t\n\t}", "public void fillAvgTemplateValues() {\n\t\t//photoCounter keeps a record of the current location in the array wherein an average HSV value will be assigned\n\t\tint photoCounter = 0;\n\t\t//The length (number of images from source folder) that will be inserted into each row and each column \n\t\tint length = (int)Math.sqrt(imagePieces);\n\t\t\n\t\t//Creates the grid of average HSV values depending on where the top left coordinate of a subsection is \n\t\tfor(int r = 0; r < length; r++) {\n\t\t\tfor(int c = 0; c < length; c++) {\n\t\t\t\tint[] temp = new int[3];\n\t\t\t\t\n\t\t\t\t//If statement chain is present because if the row or column is 0, it assigns parameters manually to avoid dividing by 0\n\t\t\t\tif(r == 0 && c == 0) {\n\t\t\t\t\ttemp = backgroundImage.getAverageHSV(0, 0, width/length, height/length);\n\t\t\t\t}\n\t\t\t\telse if(r == 0 && c != 0) {\n\t\t\t\t\ttemp = backgroundImage.getAverageHSV(0, (int)((height * c) / length), width/length, height/length);\n\t\t\t\t}\n\t\t\t\telse if(r != 0 && c == 0) {\n\t\t\t\t\ttemp = backgroundImage.getAverageHSV((int)((width * r) / length), 0, width/length, height/length);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttemp = backgroundImage.getAverageHSV((int)((width * r) / length), (int)((height * c) / length), width / length, height / length);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//To get H value\n\t\t\t\tavgTemplateValues[photoCounter][0] = temp[0];\n\t\t\t\t//To get S value\n\t\t\t\tavgTemplateValues[photoCounter][1] = temp[1];\n\t\t\t\t//To get V value\n\t\t\t\tavgTemplateValues[photoCounter][2] = temp[2];\n\t\t\t\tphotoCounter++;\n\t\t\t}\n\t\t}\n\t}", "private void calculateAvg() {\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\tstats.addValue(oneQ.getGapCount() * oneQ.getFrequency());\n\t\t}\n\t\tthis.avgGain = stats.getMean();\n\t\tthis.medianGain = stats.getPercentile(50);\n\t\tthis.quartiles = stats.getPercentile(75);\n\t}", "private int[] getAveragedVals(int x, int y, int n, int m) {\n\t\tint[] rtn = new int[NUM_TRIANGLE_SIDES];\n\t\tint avgRed = 0;\n\t\tint avgGreen = 0;\n\t\tint avgBlue = 0;\n\t\tint totalPixels = 0;\n\n\t\tfor (int i = x; i < (x+n); i++) {\n\t\t\tfor (int j = y; j < (y+m); j++) {\n\t\t\t\tif (j < this.getPictureHeight() && i < this.getPictureWidth()) {\n\t\t\t\t\tavgRed += this.image.getPixelRed(i,j);\n\t\t\t\t\tavgGreen += this.image.getPixelGreen(i,j);\n\t\t\t\t\tavgBlue += this.image.getPixelBlue(i,j);\n\t\t\t\t\ttotalPixels++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (totalPixels == 0) {\n\t\t\trtn[0] = 255;\t\t\n\t\t\trtn[1] = 255;\n\t\t\trtn[2] = 255;\n\t\t\treturn rtn;\n\t\t}\n\n\t\trtn[0] = avgRed / totalPixels;\t\t\n\t\trtn[1] = avgGreen / totalPixels;\n\t\trtn[2] = avgBlue / totalPixels;\n\t\treturn rtn;\n\t}", "private void setAverageColor(int x, int y, int n) {\n\t\tint[] avgValues = this.getAveragedValsOfSquare(x, y, n);\n\n\t\tfor (int i = x; i < (x+n); i++) {\n\t\t\tfor (int j = y; j < (y+n); j++) {\n\t\t\t\t// check for the border\n\t\t\t\tif (i < this.getPictureWidth() && j < this.getPictureHeight()) {\n\t\t\t\t\tthis.canvas.setPixelColor(i, j, avgValues[0],avgValues[1],avgValues[2]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}", "double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleValue();\n\t\treturn sum/num.length;\n\t}", "public double getAvgDraws() {\n\t\tdouble result = -1.0, sum = 0.0;\n\t\tint count = 0;\n\t\ttry {\n\t\t\tthis.rs = smt.executeQuery(\"SELECT SUM(drawCnt) FROM tp.gamerecord\");\n\t\t\tif(this.rs.next()) {\n\t\t\t\tsum = this.rs.getDouble(1) ;\n\t\t\t}\n\t\t\tthis.rs = smt.executeQuery(\"SELECT COUNT(id) FROM tp.gamerecord\");\n\t\t\tif(this.rs.next()) {\n\t\t\t\tcount = this.rs.getInt(1);\n\t\t\t\tresult = sum / count;\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Query is Failed!\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public static int getRgbAvg(int argb0, int argb1){\n\n\t\tint red0 = argb0 & 0xff;\n\t\tint green0 = (argb0 >> 8) & 0xff;\n\t\tint blue0 = (argb0 >> 16) & 0xff;\n\n\t\tint red1 = argb1 & 0xff;\n\t\tint green1 = (argb1 >> 8) & 0xff;\n\t\tint blue1 = (argb1 >> 16) & 0xff;\n\n\t\tint red = (red0 + red1) /2;\n\t\tint green = (green0 + green1) /2;\n\t\tint blue = (blue0 + blue1) /2;\n\n\n\t\tint avg = (0xff << 24) + (red << 16) + (green << 8) + blue;\n\n\t\treturn avg;\n\t}", "public void average(){\n\t\tfor(PlayerWealthDataAccumulator w : _wealthData.values()){\n\t\t\tw.average();\n\t\t}\n\t}", "public Bitmap rgbAverageContrastAugmentationRS(Bitmap bmp) {\n\n\n\n RenderScript rs = RenderScript.create(getContext()); //Create base renderscript\n\n Allocation input = Allocation.createFromBitmap(rs, bmp); //Bitmap input\n Allocation output = Allocation.createTyped(rs, input.getType(), Allocation.USAGE_SCRIPT ); //Bitmap output\n\n ScriptC_histogram histoScript = new ScriptC_histogram(rs);\n\n histoScript.set_RGB(true);\n\n histoScript.set_size(bmp.getWidth() * bmp.getHeight());\n\n short[] LUTrgb;\n\n LUTrgb = histoScript.reduce_LUTCumulatedHistogram(input).get(); //Get result\n\n histoScript.destroy();\n\n ScriptC_computeLut lut = new ScriptC_computeLut(rs);\n\n lut.set_lutSingle(LUTrgb);\n\n lut.forEach_assignLutRGBAverage(input,output);\n\n\n //Keep only one chann\n output.copyTo(bmp);\n input.destroy();\n output.destroy();\n lut.destroy();\n rs.destroy();\n\n\n\n\n\n\n return bmp;\n }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public double calcAvg() {\n\t\treturn (double)calcSum() / data.size();\n }", "private void overexposure(Bitmap bmp) {\n int w = bmp.getWidth();\n int h = bmp.getHeight();\n int[] pixels = new int[w*h];\n bmp.getPixels(pixels, 0, w, 0, 0, w, h);\n for (int i = 0; i < w*h; i++) {\n float[] hsv = new float[3];\n Color.RGBToHSV(Color.red(pixels[i]), Color.green(pixels[i]), Color.blue(pixels[i]), hsv);\n hsv[2] *= 1.5;\n pixels[i] = Color.HSVToColor(hsv);\n }\n bmp.setPixels(pixels, 0, w, 0, 0, w, h);\n }", "public static void main(String[] args) {\n\t\tSystem.out.print(\"Please type in the directory of the image you want to change: \");\n\t\tString file = kb.next();\n\t\tBufferedImage image = null;\n\t\tint width, height;\n\t\tint[] pixels;\n\t\tFile f = new File(file);\n\n\t\ttry{\n \t\t\timage = ImageIO.read(f);\n\t\t}catch(IOException e){\n \t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\twidth = image.getWidth();\n\t\theight = image.getHeight();\n\t\tpixels = new int[width * height];\n\n\t\t//creates an array of the image's pixels\n\t\tint counter = 0;\n\t\tfor(int x = 0; x < width; x++){\n\t\t\tfor(int y = 0; y < height; y++){\n\t\t\t\tpixels[counter] = image.getRGB(x, y);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\tcounter = 0;\n\n\t\t//sets the RGB values\n\t\tint[] rgb = new int[3];\n\t\trgb[0] = (pixels[0] >> 16) & 0xff;\n\t\trgb[1] = (pixels[0] >> 8) & 0xff;\n\t\trgb[2] = pixels[0] & 0xff;\n\n\t\t//prints out the RGB values\n\t\tSystem.out.print(\"R: \" + rgb[0] + \" G: \" + rgb[1] + \" B: \" + rgb[2]);\n\n\t\t//calculates the RGB average\n\t\tint average = 0;\n\t\tfor(int i = 0; i < rgb.length; i++){\n\t\t\taverage += rgb[i];\n\t\t}\n\t\taverage /= rgb.length;\n\n\t\t//subtracts the RGB average from the image's pixels\n\t\tfor(int x = 0; x < width; x++){\n\t\t\tfor(int y = 0; y < height; y++){\n\t\t\t\timage.setRGB(x, y, pixels[counter] - average);\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\n\t\t//\n\t\ttry{\n \t\t\tImageIO.write(image, \"png\", f);\n\t\t}catch(IOException e){\n \t\t\te.printStackTrace();\n\t\t}\n\t}", "double getAvgControl();", "public double average(){\r\n\t\t//create variable to hold the values\r\n\t\tdouble average = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < this.data.length; i++){\r\n\t\t\t//add current index\r\n\t\t\taverage += this.data[i];\r\n\t\t\t}\r\n\t\treturn (average/this.data.length);\r\n\t}", "public static int average(int[] array){\n int sum = 0;\n for (int i = 0; i < array.length; i++) {\n sum += array[i];\n }\n return sum/array.length;\n }", "public BufferedImage arithmetic(BufferedImage image, BufferedImage image1, int type) {\r\n int width = image.getWidth(), height = image.getHeight();\r\n int width1 = image1.getWidth(), height1 = image1.getHeight();\r\n\r\n int[][][] original = convertToArray(image);\r\n int[][][] arr = convertToArray(image);\r\n\r\n int x = (width < width1) ? width : width1; //get area to add\r\n int y = (height < height1) ? height : height1;\r\n\r\n BufferedImage result = new BufferedImage(width, height, 1);\r\n //loop through all pixels.\r\n int min = 255;\r\n int max = 0;\r\n for (int i = 0; i < y; i++) {\r\n for (int j = 0; j < x; j++) {\r\n int p = image.getRGB(j, i);\r\n int a = (p >> 24) & 0xff;\r\n int r = (p >> 16) & 0xff;\r\n int g = (p >> 8) & 0xff;\r\n int b = p & 0xff;\r\n int p1 = image1.getRGB(j, i);\r\n int a1 = (p1 >> 24) & 0xff;\r\n int r1 = (p1 >> 16) & 0xff;\r\n int g1 = (p1 >> 8) & 0xff;\r\n int b1 = p1 & 0xff;\r\n\r\n int r2;\r\n int g2;\r\n int b2;\r\n\r\n if (type == 0) { //add\r\n r2 = r + r1;\r\n g2 = g + g1;\r\n b2 = b + b1;\r\n } else if (type == 1) {\r\n r2 = r - r1;\r\n g2 = g - g1;\r\n b2 = b - b1;\r\n } else if (type == 2) {\r\n r2 = r * r1;\r\n g2 = g * g1;\r\n b2 = b * b1;\r\n } else {\r\n r2 = (r1 != 0) ? r / r1 : 510;\r\n g2 = (g1 != 0) ? g / g1 : 510;\r\n b2 = (b1 != 0) ? b / b1 : 510;\r\n }\r\n\r\n if (r2 < min) {\r\n min = r2;\r\n }\r\n if (r2 > max) {\r\n max = r2;\r\n }\r\n if (g2 < min) {\r\n min = g2;\r\n }\r\n if (g2 > max) {\r\n max = g2;\r\n }\r\n if (b2 < min) {\r\n min = b2;\r\n }\r\n if (b2 > max) {\r\n max = b2;\r\n }\r\n\r\n arr[j][i][0] = a;\r\n arr[j][i][1] = r2;\r\n arr[j][i][2] = g2;\r\n arr[j][i][3] = b2;\r\n }\r\n }\r\n int diff = max - min;\r\n float scale = (255 / (float) diff);\r\n arr = shiftImage(arr, -min);\r\n if (diff == 0) {\r\n diff = 1;\r\n }\r\n System.out.println(255 / diff);\r\n arr = rescaleImage(arr, scale); // multiple by 255 and divide by difference\r\n\r\n return convertToBimage(arr); //return array\r\n }", "private void doBlur(int times){\n \n int pixel, x,y;\n long s,r,g,b;\n //times the image will be blurred with the kernel\n for (int t = 0; t < times; t++) {\n //march pixels\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++) {\n //reset colors\n r = g = b = s = 0;\n //march pixels inside kernel\n for (int k = 0; k < kernelSize; k++) {\n for (int l = 0; l < kernelSize; l++) {\n //get rgb color from pixel\n x = j + l - kernelCenter; \n y = i + k - kernelCenter;\n try{\n if( x>=0 && x<512 && y>=0 && y<512 ){\n pixel = imageKerneled.getRGB(x,y);\n //multiply the rgb by the number in kernel\n r += ((pixel >> 16) & 0xff) * kernel[k][l];\n g += ((pixel >> 8) & 0xff) * kernel[k][l];\n b += ((pixel) & 0xff) * kernel[k][l];\n s += kernel[k][l];\n }\n }catch(ArrayIndexOutOfBoundsException e){\n System.out.println(\"Error en \"+x+\",\"+y);\n }\n }\n }\n //averages\n r = Math.round(r/s);\n if(r>255) {System.out.println(r+\" entro r > 255 en \"+j+\",\"+i); r=255; }\n else if(r<0) {System.out.println(r+\" entro r < 255 en \"+j+\",\"+i); r=0; }\n g = Math.round(g/s);\n if(g>255) {System.out.println(g+\" entro g > 255 en \"+j+\",\"+i); g=255; }\n else if(g<0) {System.out.println(g+\" entro g < 255 en \"+j+\",\"+i); g=0; }\n b = Math.round(b/s);\n if(b>255) {System.out.println(b+\" entro b > 255 en \"+j+\",\"+i); b=255; }\n else if(b<0) {System.out.println(b+\" entro b < 255 en \"+j+\",\"+i); b=0; }\n //set the new rgb\n imageKerneled2.setRGB(j,i,new Color((int)r,(int)g,(int)b).getRGB());\n }\n }\n copyKerneled2ToKerneled();\n System.out.println(\"Finished blur: \"+(t+1));\n }\n }", "public double averageFeaturesPerExample(){\n\t\treturn sumFeatureValues/((double)exampleCount);\n\t}", "public static Color getAverageBrightness(Image image) {\n\t\tPixelReader pr = image.getPixelReader();\n\t\t\n\t\tdouble totalBrightness = 0.0;\n\t\tdouble imgHeight = image.getHeight();\n\t\tdouble imgWidth = image.getWidth();\n\t\t\n\t\t// Adds each pixel's average brightness to totalBrightness\n\t\tfor (int y = 0; y < imgHeight; y++) {\n\t\t\tfor (int x = 0; x < imgWidth; x++) {\n\t\t\t\tColor pixelColor = pr.getColor(x, y);\n\t\t\t\tdouble pixelRed = pixelColor.getRed();\n\t\t\t\tdouble pixelGreen = pixelColor.getGreen();\n\t\t\t\tdouble pixelBlue = pixelColor.getBlue();\n\t\t\t\tdouble pixelAverage = (pixelRed + pixelGreen + pixelBlue) / 3;\n\t\t\t\t\n\t\t\t\ttotalBrightness += pixelAverage;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Gets the average brightness of the whole image\n\t\tdouble avgBrightness = totalBrightness / (imgHeight * imgWidth);\n\t\t\n\t\treturn new Color(avgBrightness,avgBrightness,avgBrightness,1.0);\n\t}", "protected void reduceBitmapMode(BufferedImage img, int xoffs, int yoffs) {\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tMap<Integer, Integer>[] histograms = new Map[(img.getWidth() + 7) / 8];\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tMap<Integer, Integer>[] histogramSides = new Map[(img.getWidth() + 7) / 8];\n \t\t\n \t\t// be sure we select the 8 pixel groups sensibly\n \t\tif ((xoffs & 7) > 3)\n \t\t\txoffs = (xoffs + 7) & ~7;\n \t\telse\n \t\t\txoffs = xoffs & ~7;\n \t\t\n \t\tint width = img.getWidth();\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\t// first scan: get histogram for each range\n \t\t\t\n \t\t\tfor (int x = 0; x < width; x += 8) {\n \t\t\t\tMap<Integer, Integer> histogram = new HashMap<Integer, Integer>();\n \t\t\t\tMap<Integer, Integer> histogramSide = new HashMap<Integer, Integer>();\n \t\t\t\t\n \t\t\t\thistograms[x / 8] = histogram;\n \t\t\t\thistogramSides[x / 8] = histogramSide;\n \t\t\t\t\n \t\t\t\tint maxx = x + 8 < width ? x + 8 : width;\n \t\t\t\t\n \t\t\t\tint scmx;\n \t\t\t\tint scmn;\n \t\t\t\t\n \t\t\t\t// scan outside the 8 pixels to get a broader\n \t\t\t\t// idea of what colors are important\n \t\t\t\tscmn = Math.max(0, x - 4);\n \t\t\t\tscmx = Math.min(width, maxx + 4);\n \t\t\t\t\n \t\t\t\tint pixel = 0;\n \t\t\t\tfor (int xd = scmn; xd < scmx; xd++) {\n \t\t\t\t\tif (xd < width)\n \t\t\t\t\t\tpixel = img.getRGB(xd, y);\n \t\t\t\t\t\n \t\t\t\t\tMap<Integer, Integer> hist = (xd >= x && xd < maxx) ? histogram : histogramSide;\n \t\t\t\t\t\n \t\t\t\t\tInteger cnt = hist.get(pixel);\n \t\t\t\t\tif (cnt == null)\n \t\t\t\t\t\tcnt = 1;\n \t\t\t\t\telse\n \t\t\t\t\t\tcnt++;\n \t\t\t\t\t\n \t\t\t\t\thist.put(pixel, cnt);\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\n \t\t\tfor (int x = 0; x < width; x += 8) {\n \t\t\t\tMap<Integer, Integer> histogram = histograms[x / 8];\n \t\t\t\tMap<Integer, Integer> histogramSide = histogramSides[x / 8];\n \t\t\t\t\n \t\t\t\tint maxx = x + 8 < width ? x + 8 : width;\n \t\t\t\t\n \t\t\t\t// get prominent colors, weighing colors that also\n \t\t\t\t// appear in surrounding pixels higher \n \t\t\t\tList<Pair<Integer, Integer>> sorted = new ArrayList<Pair<Integer,Integer>>();\n \t\t\t\tfor (Map.Entry<Integer, Integer> entry : histogram.entrySet()) {\n \t\t\t\t\tInteger c = entry.getKey();\n \t\t\t\t\tint cnt = entry.getValue() * 2;\n \t\t\t\t\tInteger scnt = histogramSide.get(c);\n \t\t\t\t\tif (scnt != null)\n \t\t\t\t\t\tcnt += scnt;\n \t\t\t\t\tsorted.add(new Pair<Integer, Integer>(c, cnt));\n \t\t\t\t}\n \t\t\t\tCollections.sort(sorted, new Comparator<Pair<Integer, Integer>>() {\n \t\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic int compare(Pair<Integer, Integer> o1,\n \t\t\t\t\t\t\tPair<Integer, Integer> o2) {\n \t\t\t\t\t\treturn o2.second - o1.second;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t});\n \t\n \t\t\t\tint fpixel, bpixel;\n \t\t\t\tif (sorted.size() >= 2) {\n \t\t\t\t\tfpixel = sorted.get(0).first;\n \t\t\t\t\tbpixel = sorted.get(1).first;\n \t\t\t\t} else {\n \t\t\t\t\tfpixel = bpixel = sorted.get(0).first;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tint newPixel = 0;\n \t\t\t\tfor (int xd = x; xd < maxx; xd++) {\n \t\t\t\t\tif (xd < width)\n \t\t\t\t\t\tnewPixel = img.getRGB(xd, y);\n \t\t\t\t\t\n \t\t\t\t\tif (newPixel != fpixel && newPixel != bpixel) {\n \t\t\t\t\t\tif (fpixel < bpixel) {\n \t\t\t\t\t\t\tnewPixel = newPixel <= fpixel ? fpixel : bpixel;\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tnewPixel = newPixel < bpixel ? fpixel : bpixel;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\timageData.setPixel(xd + xoffs, y + yoffs, newPixel);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "@Test void compareToNaive() {\n\t\tfor (var type : new ImageType[]{ImageType.SB_U8, ImageType.SB_U16, ImageType.SB_F32, ImageType.SB_F64}) {\n\t\t\tvar src = (ImageGray)type.createImage(width, height);\n\t\t\tvar dst = (ImageGray)type.createImage(1, 1);\n\n\t\t\tGImageMiscOps.fillUniform(src, rand, 0, 100);\n\n\t\t\tdouble mean = GImageStatistics.mean(src);\n\t\t\tGeometricMeanFilter.filter(src, radiusX, radiusY, mean, dst);\n\n\t\t\tassertEquals(width, dst.width);\n\t\t\tassertEquals(height, dst.height);\n\n\t\t\tfor (int y = 0; y < dst.height; y++) {\n\t\t\t\tfor (int x = 0; x < dst.width; x++) {\n\t\t\t\t\tdouble found = GeneralizedImageOps.get(dst, x, y);\n\t\t\t\t\tassertEquals(naiveMean(src, x, y, radiusX, radiusY), found, 1.0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic int avg() {\n\t\treturn (this.sum()/3);\n\t}", "public float averageAnswers() {\n\t\tfloat out = 0;\n\t\t\n\t\tIterator<SolveResult> iter = super.iterator();\n\t\t\n\t\twhile(iter.hasNext()) {\n\t\t\tSolveResult thisResult = iter.next();\n\t\t\tfloat clues = ResultSet.clueCount(thisResult.puzzle);\n\t\t\tfloat cardinality = thisResult.puzzle.getCardinality();\n\t\t\tfloat conflicts = thisResult.puzzle.conflictCount();\n\t\t\t\n\t\t\tif(!(cardinality - clues - conflicts < 0)) {\n\t\t\t\tout += ((cardinality - clues - conflicts) / (81 - clues));\n\t\t\t}\n\t\t}\n\t\treturn out / super.size();\n\t}", "public static int average(int[]data){\n \n int sum = 0;\n int n = 0;\n for(int i = 0; i < data.length-1; i++) {\n \n n++;\n sum += data[i];\n }\n\n return sum/n;\n }", "public float calcAverage(){\n if(totalReviews > 0)\n return (float) (totalScore*1.0/totalReviews);\n else return 0;\n }", "public void adjustIntensity()\r\n {\r\n\tint rows = getHeight();\r\n\tint cols = getWidth();\r\n\tdouble dbL = (double)(L-1);\r\n\tshort maxI;\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\t\tmaxI = (short)Math.min(L-1, \r\n\t\t Math.round((L-1) * maxIntensity(hue[row][col]/dbL,\r\n\t\t saturation[row][col]/dbL)));\r\n\t\tintensity[row][col] =\r\n\t\t (short)Math.min(intensity[row][col], maxI);\r\n\t }\r\n\t}\r\n }", "public double getAverage(){\n return getTotal()/array.length;\n }", "public double getMean(){\n\t\treturn (double)sampleSize * type1Size / populationSize;\n\t}", "int getMaxRawImages();", "public int average() {\n int total = 0;\n\n for (int score : scores) {\n total += score;\n }\n\n return total / scores.length;\n }", "private static int getAverage(ArrayList<Integer> inList) \n\t{\n\t\tint add = 0; \n\t\tint mean = 0; \n\t\tfor(int pos = 0; pos < inList.size(); ++pos)\n\t\t{\n\t\t\tadd = add + inList.get(pos);\n\t\t\t\n\t\t}\n\t\t\n\t\tmean = add/inList.size(); \n\t\t\n\t\treturn mean; \n\t\t\n\t}", "public static void main(String[]args){\n Scanner reader = new Scanner(System.in);\n System.out.print(\"Enter an image file name: \");\n String fileName = reader.nextLine();\n APImage theOriginal = new APImage(fileName);\n theOriginal.draw();\n\n // Create a copy of the image to blur\n APImage newImage = theOriginal.clone();\n\n // Visit all pixels except for those on the perimeter\n for (int y = 1; y < theOriginal.getHeight() - 1; y++)\n for (int x = 1; x < theOriginal.getWidth() - 1; x++){\n\n // Obtain info from the old pixel and its neighbors\n Pixel old = theOriginal.getPixel(x, y);\n Pixel left = theOriginal.getPixel(x - 1, y);\n Pixel right = theOriginal.getPixel(x + 1, y);\n Pixel top = theOriginal.getPixel(x, y - 1);\n Pixel bottom = theOriginal.getPixel(x, y + 1);\n int redAve = (old.getRed() + left.getRed() + right.getRed() + \n top.getRed() + bottom.getRed()) / 5;\n int greenAve = (old.getGreen() + left.getGreen() + right.getGreen() + \n top.getGreen() + bottom.getGreen()) / 5;\n int blueAve = (old.getBlue() + left.getBlue() + right.getBlue() + \n top.getBlue() + bottom.getBlue()) / 5;\n\n // Reset new pixel to that info\n Pixel newPixel = newImage.getPixel(x, y);\n newPixel.setRed(redAve);\n newPixel.setGreen(greenAve);\n newPixel.setBlue(blueAve);\n }\n System.out.print(\"Press return to continue:\");\n reader.nextLine();\n newImage.draw();\n }", "public double getAverageExtraPacksByWins(int wins) {\n return statistics.getAvgExtraPacksByWins().get(wins);\n }", "public void setAverageBits(int bits) {\n }", "public void setAverageExtraPacksByWins(int wins, double avg) {\n statistics.getAvgExtraPacksByWins().put(wins, avg);\n }", "static double calculateAverage(int[] array) {\n\n double sum = 0;\n\n for (int i = 0; i < array.length; i++) {\n\n sum = sum + (double) array[i];\n\n\n }\n\n return sum / array.length;//returning average\n\n }", "public int average(int[] array_of_notes){\r\n int avg=0;\r\n for (int array_of_note : array_of_notes) {\r\n avg += array_of_note;\r\n }\r\n avg /= array_of_notes.length;\r\n return avg;\r\n }", "public double getAverage(){\n double total = 0;\n for(double s : scores)total += s;\n return total/scores.length;\n }", "public Pic blackAndWhite() {\n Pic output = image.deepCopy();\n Pixel[][] outputPixels = output.getPixels();\n for (int row = 0; row < output.getHeight(); row++) {\n for (int col = 0; col < output.getWidth(); col++) {\n Pixel current = outputPixels[row][col];\n int average = (current.getRed() + current.getGreen()\n + current.getBlue()) / 3;\n if (average > 127) {\n current.setRed(255);\n current.setGreen(255);\n current.setBlue(255);\n } else {\n current.setRed(0);\n current.setGreen(0);\n current.setBlue(0);\n }\n }\n }\n return output;\n }", "double average() { // used double b/c I want decimal places\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsum = sum + array[i];\n\t\t}\n\t\tdouble average = (double) sum / array.length;\n\t\treturn average;\n\n\t}", "int[][][] mosaicingImage(int[][][] imageArray, int height, int width, int seedNum);", "float average(int[] input) {\n\t\tfloat average = 0;\n\t\tint sum = 0;\n\t\tfor (int index = 0; index < input.length; index++) {\t\t//loop to get sum of numbers\n\t\t\tsum = sum + input[index];\n\t\t}\n\t\taverage = (float) sum / (input.length);\t\t//average calculation\n\t\treturn average;\n\t}", "@Override\n\tvoid averageDistance() {\n\t\t\n\t}", "public static double[]getBackgroundStatsFromProcessor(ImageProcessor imgP) {\n\t\tint dimX=imgP.getWidth();\n\t\tint dimY=imgP.getHeight();\n\t\tint samplSize=Math.min(10+20,dimX/10);\n\t\tif(dimX<100)samplSize=12;\n\t\tif(dimX>500)samplSize=40;\n\n\t\tint x0=(3*samplSize)/2;\n\t\tint y0=(3*samplSize)/2;\n\t\tint x1=dimX/2;\n\t\tint y1=dimY/2;\n\t\tint x2=dimX-(3*samplSize)/2;\n\t\tint y2=dimY-(3*samplSize)/2;\n\t\tdouble[][] vals=new double[8][];\n\t\tvals[0]=VitimageUtils.valuesOfImageProcessor(imgP,x0,y0,samplSize/2);\n\t\tvals[1]=VitimageUtils.valuesOfImageProcessor(imgP,x0,y2,samplSize/2);\n\t\tvals[2]=VitimageUtils.valuesOfImageProcessor(imgP,x2,y0,samplSize/2);\n\t\tvals[3]=VitimageUtils.valuesOfImageProcessor(imgP,x2,y2,samplSize/2);\t\t\n\t\tvals[4]=VitimageUtils.valuesOfImageProcessor(imgP,x0,y1,samplSize/4);\n\t\tvals[5]=VitimageUtils.valuesOfImageProcessor(imgP,x1,y0,samplSize/4);\n\t\tvals[6]=VitimageUtils.valuesOfImageProcessor(imgP,x2,y1,samplSize/4);\n\t\tvals[7]=VitimageUtils.valuesOfImageProcessor(imgP,x2,y2,samplSize/4);\n\n\t\t//Compute the global mean over all these squares\n\t\tdouble[]tempStatsMeanVar=null;\n\t\tdouble[]tempStats=new double[vals.length];\n\t\t\n\t\t//Measure local stats, and guess that three of them can host the object\n\t\tfor(int i=0;i<vals.length;i++) {\n\t\t\ttempStatsMeanVar=VitimageUtils.statistics1D(vals[i]);\n\t\t\ttempStats[i]=tempStatsMeanVar[0];\n\t\t}\n\n\t\tdouble[]tempStatsCorrected=null;\n\t\tint incr=0;\n\t\tdouble[][]valsBis=null;\n\t\ttempStatsCorrected=new double[5];//Suppress the 3 maximum, that should be the border or corner where the object lies\n\n\t\tdouble[]tempStats2=doubleArraySort(tempStats);\n\t\tfor(int i=0;i<5;i++)tempStatsCorrected[i]=tempStats2[i];\n\t\tvalsBis=new double[5][];\t\t\t\n\t\tfor(int i=0;i<8 && incr<5;i++) {if(tempStats[i]<=tempStatsCorrected[4]) {valsBis[incr++]=vals[i];}}\n\t\t\t\n\t\tdouble []valsRetBis=VitimageUtils.statistics2D(valsBis);\t\t\n\t\treturn valsRetBis;\n\t}", "public static double findMean(ArrayList<Integer> arr) {\n\t\tint length = arr.size();\n\t\tint sum = 0;\n\t\tfor(int i : arr) { sum += i; }\n\t\treturn (double)sum/length;\n\t}", "public void findAverage(int[] arr){\n int sum = 0;\n for(int val : arr){\n sum += val;\n }\n System.out.println( \"Average: \" + sum / arr.length);\n }", "private double computeMean(List<Integer> intList) {\n double count = 0;\n for (Integer i : intList) {\n count += i;\n }\n return count / intList.size();\n }", "public static double average(int[] array) {\n\t\tif (array.length == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tdouble avg = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tavg += array[i];\n\t\t}\n\t\treturn avg / array.length;\n\t}", "public BufferedImage Histogram(BufferedImage timg,BufferedImage timg1) {\n\n\n int width = timg.getWidth();\n int height = timg.getHeight();\n\n int[][][] ImageArray = convertToArray(timg);\n int[][][] ImageArray2 = convertToArray(timg);\n\n float[] HistgramR = new float[256];\n float[] HistgramB = new float[256];\n float[] HistgramG = new float[256];\n\n for (int k = 0; k <= 255; k++) {\n HistgramR[k] = 0;\n HistgramG[k] = 0;\n HistgramB[k] = 0;\n }\n\n //int a = 255;\n\n int a = 0;\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n\n int r = ImageArray[x][y][1];\n int g = ImageArray[x][y][2];\n int b = ImageArray[x][y][3];\n\n HistgramR[r]++;\n HistgramG[g]++;\n HistgramB[b]++;\n }\n a++;\n }\n\n System.out.println(a);\n\n System.out.println(\"Pixel count for Red, Green and Blue Channel respectively\");\n for (int z = 0; z < HistgramR.length; z++) {\n\n\n System.out.println(z + \"\\t\" + HistgramR[z] + \"\\t\" + HistgramG[z] + \"\\t\" + HistgramB[z]);\n System.out.println();\n }\n System.out.println();\n\n\n // Histogram Normalisation\n for (int x = 0; x < HistgramR.length; x++) {\n\n HistgramR[x] = HistgramR[x] / (a*a);\n HistgramG[x] = HistgramG[x] / (a*a);\n HistgramB[x] = HistgramB[x] / (a*a);\n }\n\n System.out.println(\"Normalised Pixel count for Red, Green and Blue Channel respectively\");\n for (int y = 0; y < HistgramR.length; y++) {\n\n\n System.out.println(y + \"\\t\" + HistgramR[y] + \"\\t\" + HistgramG[y] + \"\\t\" + HistgramB[y]);\n System.out.println();\n }\n\n BufferedImage resizedImg = resizeImg(timg1, 512, 512);\n\n int[][][] ImageArray1 = convertToArray(resizedImg);\n\n return convertToBimage(ImageArray1);\n }", "@Override\n public double findAverage() {\n double average = 0;\n for (Student key : map.keySet()) {\n average += map.get(key).getValue();\n }\n average /= map.keySet().size();\n return average;\n }", "public void updateToAverageOf(Vector<DataPoint> objects) { \t\n double[] average = new double[values.length];\n for (int i = 0; i < objects.size(); i++) {\n \t//POEY comment: position is a calculated value of a pixel\n Position position = objects.elementAt(i).position;\n for (int j = 0; j < average.length; j++) {\n average[j] += position.values[j];\n }\n }\n for (int i = 0; i < average.length; i++) {\n \t//POEY comment: objects.size() = the number of members in a cluster\n average[i] /= objects.size();\n }\n values = average;\n }", "public static double getAverage(int[][] numbers) {\n int totalNumberOfElements = 10; // (2 rows * 5 column)\n return getTotal(numbers) / totalNumberOfElements;\n }", "public static void calculateAverage(int[] inputArray, int limit)\r\n\t{\r\n\t\tIMovingAverage<Integer> movingAvg = new MovingAverageImpl<Integer>(limit);\r\n\t\tfor(int element : inputArray)\r\n\t\t{\r\n\t\t\tmovingAvg.add(element);\r\n\t\t\tSystem.out.println(\"Moving average is = \" +movingAvg.getAverage());\r\n\t\t}\r\n\t\tSystem.out.println(\"*********************************************************\");\r\n\t}", "public static Mat acquireMedian(Mat[] buffert)\n {\n Mat average_image = new Mat(buffert[0].height(),buffert[0].width(), CvType.CV_8U);\n int l = 0;\n // Go through each pixel in in each image\n for(int i = 0; i < buffert[0].width();i++)\n for(int j = 0; j < buffert[0].height();j++)\n {\n int sum = 0;\n for(int k = 0; k < buffert.length;k++)\n {\n double[] value = buffert[k].get(j,i); //the value need to be stored in an array\n sum+=value[0]; //adds all the pixel values together at pixel position (i, j).\n }\n double[] average_value = {((sum)/(double)buffert.length)};\n average_image.put(j, i, average_value); // Put the calculated average pixel value in result image\n }\n return average_image;\n }", "public double average()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tdouble sum = this.sum();\n\t\t\treturn sum / arraySize;\n\t\t}\n\t\tSystem.out.println(\"Syntax error, array is empty.\");\n\t\treturn -1;\n\t}", "public static double countAllAverage(Runner[] runners, int numberOfRunners)//cчитаем среднее значение\n {\n int result = 0;\n for (int i = 0; i < numberOfRunners; i++) {\n result += runners[i].getAverageRun();\n }\n\n return result / numberOfRunners;\n }", "public static double average(int[] arr)\n {\n // your code goes here\n\t\tdouble sum =0;\n int i;\n for(i=0;i< arr.length;i++)\n {\n sum+=arr[i];\n }\n\t\t\n\t\treturn sum/arr.length; \n\t}", "private double getAbsoluteAverage(double [] inputs){\n double result = 0;\n for (int i = 0; i < inputs.length; i++) {\n result+= Math.abs(inputs[i]);\n }\n result = result/inputs.length;\n return result;\n }", "public Double computeAverage(){\n\t\tdouble total = 0; //double used to keep total value of elements in arr to determine average\n\t\t\n\t\tfor(int i = 0; i < arr.length; i++)//loop through array and add the total\n\t\t{\n\t\t\ttotal += arr[i].doubleValue(); //add current value of element in arr to total's value\n\t\t}\n\t\t\n\t\tDouble result = total/arr.length; //returns the average as a Double\n\t\t\n\t\treturn result;\n\t}", "private float averageBeat(){\n float avgBeat = 0f;\n List<Float> beatRed = DataManager.getInstance().getBeatRed();\n List<Float> beatIR = DataManager.getInstance().getBeatIR();\n\n for(int i = 0; i < beatRed.size() && i < beatIR.size(); i ++ ){\n chartFragment.addRedData(beatRed.get(i));\n chartFragment.addIRData(beatIR.get(i));\n avgBeat += beatRed.get(i);\n avgBeat += beatIR.get(i);\n }\n avgBeat = avgBeat / (beatRed.size() + beatIR.size());\n\n if (tcpTask != null )\n this.tcpTask.addData(\"\" + avgBeat);\n beatLabel.setText(\"Beat : \" + avgBeat);\n return avgBeat;\n }", "public Integer average(int[] arr3){\n\t\tSystem.out.println(\"Get Average\");\n\t\tint sum = 0;\n\t\tfor(int d = 0; d < arr3.length; d++){\n\t\t\tsum += arr3[d];\n\t\t}\n\t\tSystem.out.println(sum/arr3.length);\n\t\treturn 0;\n\t}", "public float getAverageBetweenPoint(){\n return getMetric()/list.size();\n }", "public void setAverageGoldCardsByWins(int wins, double avg) {\n statistics.getAvgGoldCardsByWins().put(wins, avg);\n }", "public static double Average(int[][] matrix){\n double total = 0;\n double promedio =0;\n double divisor = 0;\n \n for(int i=0; i<matrix.length; i++){\n for (int j=0;j<matrix[i].length;j++ ) {\n \n total += matrix[i][j];\n } \n divisor = matrix[i].length * matrix.length; \n promedio = total / divisor; \n }\n \n return promedio;\n }", "public fuseAverage1(int[] sortedSnapshot) {\n\t\tthis.sortedSnapshot = sortedSnapshot;\n\t}", "public BufferedImage orderStatistic(BufferedImage image, int type) {\r\n int[][][] original = convertToArray(image);\r\n int width = image.getWidth();\r\n int height = image.getHeight();\r\n int size = 3;\r\n int[][][] array = convertToArray(image);\r\n\r\n //loop through all pixels ignoring edge pixels (padding)\r\n for (int y = 0; y < height; y++) {\r\n for (int x = 0; x < width; x++) {\r\n ArrayList<Integer> reds = new ArrayList<>();\r\n ArrayList<Integer> greens = new ArrayList<>();\r\n ArrayList<Integer> blues = new ArrayList<>();\r\n for (int mx = -1; mx < size - 1; mx++) //loop through 3x3 kernel, return count of multiplying by kernel.\r\n {\r\n for (int my = -1; my < size - 1; my++) {\r\n if (x + mx != -1 && y + my != -1 && x + mx != width && y + my != height) {\r\n reds.add(array[x + mx][y + my][1]);\r\n greens.add(array[x + mx][y + my][2]);\r\n blues.add(array[x + mx][y + my][3]);\r\n }\r\n }\r\n }\r\n if (type == 0) { //if min\r\n original[x][y][1] = getMin(reds);\r\n original[x][y][2] = getMin(greens);\r\n original[x][y][3] = getMin(blues);\r\n } else if (type == 1) { //if max\r\n original[x][y][1] = getMax(reds);\r\n original[x][y][2] = getMax(greens);\r\n original[x][y][3] = getMax(blues);\r\n } else if (type == 2) { //if mid\r\n original[x][y][1] = (getMax(reds) + getMin(reds)) / 2;\r\n original[x][y][2] = (getMax(greens) + getMin(greens)) / 2;\r\n original[x][y][3] = (getMax(blues) + getMin(blues)) / 2;;\r\n } else if (type == 3) { //if median\r\n original[x][y][1] = getMedian(reds);\r\n original[x][y][2] = getMedian(greens);\r\n original[x][y][3] = getMedian(blues);\r\n }\r\n }\r\n }\r\n return convertToBimage(original);\r\n }", "public double average(int first, int last){\n double final = 0;\n for(int i = first; i < last; i++){\n final += scores[i];\n }\n return final/(last-first+1);\n}", "public void setAverageRegularCardsByWins(int wins, double avg) {\n statistics.getAvgCardsByWins().put(wins, avg);\n }" ]
[ "0.7361175", "0.67137146", "0.66796696", "0.665639", "0.6572077", "0.63816714", "0.6322409", "0.5988579", "0.594493", "0.5917946", "0.59018886", "0.5875174", "0.5810622", "0.573372", "0.5645604", "0.5578743", "0.5549102", "0.55356604", "0.55305713", "0.5527724", "0.5491144", "0.54883903", "0.5477041", "0.54203194", "0.54092795", "0.540758", "0.53967553", "0.5396439", "0.53958106", "0.5377353", "0.5363394", "0.5323408", "0.5321808", "0.5321349", "0.53111345", "0.53093", "0.530783", "0.529048", "0.52870804", "0.5277091", "0.5268626", "0.52605176", "0.52575636", "0.52510923", "0.52507687", "0.5244337", "0.52344924", "0.5232128", "0.522215", "0.5216123", "0.5207078", "0.5204297", "0.5198131", "0.5175196", "0.5171911", "0.5163128", "0.5140836", "0.5135169", "0.51265365", "0.51188385", "0.5109352", "0.5101141", "0.5099276", "0.50893277", "0.50878805", "0.50833017", "0.50814915", "0.5078035", "0.5074463", "0.50727683", "0.5067595", "0.5062164", "0.50509024", "0.50474876", "0.50448203", "0.5030696", "0.5023175", "0.502275", "0.5020571", "0.5019248", "0.5012866", "0.50102735", "0.5009485", "0.50093824", "0.500582", "0.4991708", "0.4978109", "0.49756196", "0.49730197", "0.4972744", "0.49621135", "0.49604312", "0.49601242", "0.49584353", "0.49522594", "0.4949723", "0.49495226", "0.49429515", "0.4942854", "0.49408835" ]
0.5994438
7
Breaks up and checkers image into chosen number of squares (Doesn't work it does twice as many as chosen (for some reason working with two mini versions of the orig image) Only works for numbers divis by two greater than or equal to four)
public void checkers() throws IOException{ String input = j.showInputDialog("How many squares would you like?"); int num=Integer.parseInt(input); input = j.showInputDialog("Choose a file to use:"); Scanner f= new Scanner(new File(input+".ppm")); input = j.showInputDialog("Choose a name for the new file:"); PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(input+".ppm"))); out.println(f.next()); int height=Integer.parseInt(f.next()); int width=Integer.parseInt(f.next()); out.println(height);out.println(width);out.println(f.next()); int ab[][][]=new int[width][height][3]; for(int x=0;x<width;x++){ for(int y=0;y<height;y++){ for(int c=0;c<3;c++){ ab[x][y][c]=Integer.parseInt(f.next()); } } } int smhei=height/(int)Math.sqrt(num); int smwid=width/(int)Math.sqrt(num); int temp[][][][] = new int[num][smwid][smhei][3]; int x2=0;int y2=0; int d=0; for(int x=0;x<width;x++){ if(x!=0){ d=(height/smhei)*(x/smwid); if(x%smwid==0){ x2=0; } } for(int y=0;y<height;y++){ if(y!=0&&y%smhei==0){ y2=0;d++; } for(int c=0;c<3;c++){ temp[d][x2][y2][c]=ab[x][y][c]; } y2++; } y2=0; x2++; } /*int raN[]=new int[num]; for(int i=0;i<num;i++){ raN[i]=i; }*/ int r=num-1; for(int n=0;n<num;n++){ /* r=gen.nextInt(num); while(raN[r]<0){ r=gen.nextInt(num); }*/ if(r>=0){ } for(int x=0;x<smwid;x++){ for(int y=0;y<smhei;y++){ for(int c=0;c<3;c++){ out.print(temp[r][x][y][c]+" "); } } } //raN[r]=raN[r]*-1; r--; } f.close(); out.close(); System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Component getSplitBoard() {\n\t\t\n\t\t int rows = 4; //You should decide the values for rows and cols variables\n\t int cols = 4;\n\t int chunks = rows * cols;\n\n\t int chunkWidth = image.getWidth() / cols; // determines the chunk width and height\n\t int chunkHeight = image.getHeight() / rows;\n\t int count = 0;\n\t BufferedImage imgs[] = new BufferedImage[chunks]; //Image array to hold image chunks\n\t \n\t for (int x = 0; x < rows; x++) {\n\t for (int y = 0; y < cols; y++) {\n\t //Initialize the image array with image chunks\n\t imgs[count] = new BufferedImage(chunkWidth, chunkHeight, image.getType());\n\n\t // draws the image chunk\n\t Graphics2D gr = imgs[count++].createGraphics();\n\t gr.drawImage(image, 0, 0, chunkWidth, chunkHeight, chunkWidth * y, chunkHeight * x, chunkWidth * y + chunkWidth, chunkHeight * x + chunkHeight, null);\n\t gr.dispose();\n\t }\n\t }\n\t \n\t \n\t JPanel imageBoard = new JPanel(new GridLayout(5, 4));\n\t\t\t//imageBoard.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));\n\t imageBoard.setBorder ( new TitledBorder ( new EtchedBorder (), \"Image Completion puzzle\" ) );\n\t //writing mini images into image files\n\t \n\t //int[] random_index = {3, 15, 0, 2, 5, 1, 4, 8, 6, 9, 7, 11, 14, 12, 13, 10 };\n\t statusLabel.setText(\"Status: preparing random image board...\");\n\t int[] random_index = generateRandomNumbers(imgs.length);\n\t \n\t //labels = new JLabel[imgs.length];\n\t \n\t for (int i = 0; i < imgs.length; i++) {\n\t \t//final ImageIcon icn = new ImageIcon(imgs[ random_index[i] ]);\n\t \tlabels[i] = new JLabel(new ImageIcon(imgs[ random_index[i] ]));\n\t \tlabels[i].setBorder(BorderFactory.createLineBorder(Color.WHITE));\n\t \timageBoard.add(labels[i]);\n\t \tfinal int pos = i;\n\t \tlabels[i].addMouseListener(new MouseAdapter() {\n\t @Override\n\t public void mouseClicked(MouseEvent e) {\n\t \tif(canMove(pos)){\n\t \t\tIcon temp = labels[pos].getIcon();\n\t \t\tlabels[pos].setIcon(labels[blank].getIcon());\n\t \t\tlabels[blank].setIcon(temp);\n\t \t\tblank = pos;\n\t \t\tstatusLabel.setText(\"moved!\");\n\t \t}else{\n\t \t\tstatusLabel.setText(\"Cannot move!\");\n\t \t}\n\t }\n\t });\n\t //ImageIO.write(imgs[i], \"jpg\", new File(\"img\" + i + \".jpg\"));\n\t }\n\t \n\t labels[16] = new JLabel(new ImageIcon(\"blank.png\"));\n\t \n\t labels[16].addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n \tif(canMove(16)){\n \t\tIcon temp = labels[16].getIcon();\n \t\tlabels[16].setIcon(labels[blank].getIcon());\n \t\tlabels[blank].setIcon(temp);\n \t\tblank = 16;\n \t\tstatusLabel.setText(\"moved!\");\n \t}else{\n \t\tstatusLabel.setText(\"Cannot move!\");\n \t}\n }\n });\n\t \n\t imageBoard.add( labels[16] );\n\t \n\t\treturn imageBoard;\n\t}", "static ArrayList<Piece> createPieces (Bitmap image) {\n\t\tint[] picSize = InitDisplay.getPicDimensions();\n\t\tint[] pieceSize = InitDisplay.getPieceDimensions();\n\t\t\n\t\t/* Scale the image to the dynamically calculated values */\n\t\tBitmap imageScaled = Bitmap.createScaledBitmap(image, picSize[WIDTH], picSize[HEIGHT], false);\n\t\t\n\t\t/* The imageScaled bitmap now contains the given image in scaled bitmap form. Break it and\n\t\t * assign it to [rows*cols] small Jigsaw pieces after randomizing their positions and orientations\n\t\t * The image is being broken into a 3x3 grid. i represents rows while j represents columns */\n\t\t\n\t\tArrayList<Piece> pieces = new ArrayList<Piece>(Play.NUM[TOTAL]);\n\t\tBitmap imgPiece = null;\n\t\tint offsetX = 0, offsetY = 0;\n\t\tint pos = 0;\n\t\t\n\t\tfor (int i=0; i<Play.NUM[COLS]; i++) {\n\t\t\t/* offsetX represents the x coordinate while offsetY represents the y coordinate */\n\t\t\toffsetX = 0; //start from (0,0)\n\t\t\tfor (int j=0; j<Play.NUM[ROWS]; j++) {\n\t\t\t\t/* Extract a specific area of the imageScaled bitmap and store it in imgPiece.\n\t\t\t\t * Coordinates for the extraction are specified using offsetX and offsetY */\n\t\t\t\timgPiece = Bitmap.createBitmap\n\t\t\t\t\t\t(imageScaled, offsetX, offsetY, pieceSize[WIDTH], pieceSize[HEIGHT]);\n\t\t\t\t\n\t\t\t\t/* Create a Jigsaw piece and add it to the pieces array */\n\t\t\t\tPiece piece = new Piece (imgPiece); //create a new piece with the extracted bitmap image\n\t\t\t\tpieces.add(pos, piece); //add the piece to the pieces array\n\t\t\t\t\n\t\t\t\toffsetX += pieceSize[WIDTH]; //move to the next x coordinate\n\t\t\t\tpos++;\n\t\t\t}\n\t\t\toffsetY += pieceSize[HEIGHT]; //move to the next y coordinate\n\t\t}\n\t\t\n\t\treturn pieces;\n\t}", "private List<Bitmap> cutImage(Bitmap picture) {\n List<Bitmap> newPieces = new ArrayList<Bitmap>();\n int w = picture.getWidth();\n int h = picture.getHeight();\n int boxWidth = w / Board.NUM_COLS;\n int boxHeight = h / Board.NUM_ROWS;\n for (int i = 0; i < Board.NUM_ROWS; i++) {\n for (int j = 0; j < Board.NUM_ROWS; j++) {\n Bitmap pictureFragment = Bitmap.createBitmap(picture, j * boxWidth, i * boxHeight, boxWidth, boxHeight);\n newPieces.add(pictureFragment);\n }\n }\n return newPieces;\n }", "private void createGraySquares() {\n for (int x = 0; x < 16; x ++)\n for (int y = 0; y < 16; y ++)\n // If the area is not explored, creates a gray square at that point.\n if (!storage.explored[x][y]) {\n GraySquare square = new GraySquare(screen.miscAtlases.get(2));\n // Uses the x and y integers to set the corresponding position in the grid.\n square.setPosition(x * 20, y * 20 + 19);\n // Adds to the rendering list.\n squares.add(square);\n }\n }", "public void divideImage() {\n\n int chunkWidth = 70;\n int chunkHeight = 70;\n int count = 0;\n imgs = new BufferedImage[100];\n for (int x = 0; x < 10; x++)\n for (int y = 0; y < 10; y++) {\n\n try{\n\n imgs[count] = new BufferedImage(chunkWidth, chunkHeight, img.getType());\n Graphics2D gr = imgs[count++].createGraphics();\n gr.drawImage(img, 0, 0, chunkWidth, chunkHeight, chunkWidth * y, chunkHeight * x, chunkWidth * y + chunkWidth, chunkHeight * x + chunkHeight, null);\n gr.dispose();\n\n } catch (Exception e){\n\n // e.printStackTrace();\n\n }\n\n }\n\n }", "public CheckerBoard(int size) {\n super(new int[size * tilesPerSide][size * tilesPerSide][3]);\n for (int y = 0; y < this.getHeight(); ++y) {\n for (int x = 0; x < this.getWidth(); ++x) {\n for (int channel = 0; channel < 3; ++channel) {\n this.data[y][x][channel] = ((x / size + y / size) % 2 == 1) ? 0 : 255;\n }\n }\n }\n }", "public void spin () {\n //Decide outcome.\n Random rand=new Random();\n result=rand.nextInt(100)+1+prevSpin;\n\n /**\n * Set the images\n * Image 1-11 are pictures listed bellow. 12 is wild.\n */\n //Loss\n if (result<=10) {\n //Prevention of loss streak\n prevSpin+=1;\n spinsLeft-=1;\n\n img1=rand.nextInt(12)+1;\n if (img1==12) {\n img2=rand.nextInt(11)+1;\n }\n else {\n img2=rand.nextInt(12)+1;\n }\n\n if (img1==img2) {\n img3=rand.nextInt(11)+1;\n while (img1==img3) {\n img3=rand.nextInt(11)+1;\n }\n }\n else if (img1==12 || img2==12) {\n img3=rand.nextInt(11)+1;\n while (img1==img3 || img2==img3) {\n img3=rand.nextInt(11)+1;\n }\n }\n else {\n img3=rand.nextInt(12)+1;\n }\n }\n\n //Cherry (1)\n else if (11<=result && result<=27) {\n prevSpin=0;\n spinsLeft-=1;\n score+=10;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=1;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=1;\n if (rand.nextInt(wildChance)+1==1 && (img1==1 || img2==1))\n img3=12;\n else\n img3=1;\n }\n\n //Pine tree (2)\n else if (28<=result && result<=38) {\n prevSpin=0;\n spinsLeft-=1;\n score+=20;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=2;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=2;\n if (rand.nextInt(wildChance)+1==1 && (img1==2 || img2==2))\n img3=12;\n else\n img3=2;\n }\n\n //\"Bar\" (3)\n else if (39<=result && result<=49) {\n prevSpin=0;\n spinsLeft-=1;\n score+=40;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=3;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=3;\n if (rand.nextInt(wildChance)+1==1 && (img1==3 || img2==3))\n img3=12;\n else\n img3=3;\n }\n\n //Bell (4)\n else if (50<=result && result<=58) {\n prevSpin=0;\n spinsLeft-=1;\n score+=60;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=4;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=4;\n if (rand.nextInt(wildChance)+1==1 && (img1==4 || img2==4))\n img3=12;\n else\n img3=4;\n }\n\n //Snowflake (5)\n else if (59<=result && result<=67) {\n prevSpin=0;\n spinsLeft-=1;\n score+=100;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=5;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=5;\n if (rand.nextInt(wildChance)+1==1 && (img1==5 || img2==5))\n img3=12;\n else\n img3=5;\n }\n\n //Mead tankard (6)\n else if (68<=result && result<=75) {\n prevSpin=0;\n spinsLeft-=1;\n score+=150;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=6;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=6;\n if (rand.nextInt(wildChance)+1==1 && (img1==6 || img2==6))\n img3=12;\n else\n img3=6;\n }\n\n //Snowball (7)\n else if (76<=result && result<=82) {\n prevSpin=0;\n spinsLeft-=1;\n score+=250;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=7;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=7;\n if (rand.nextInt(wildChance)+1==1 && (img1==7 || img2==7))\n img3=12;\n else\n img3=7;\n }\n\n //Moose (8)\n else if (83<=result && result<=88) {\n prevSpin=0;\n spinsLeft-=1;\n score+=350;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=8;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=8;\n if (rand.nextInt(wildChance)+1==1 && (img1==8 || img2==8))\n img3=12;\n else\n img3=8;\n }\n\n //Coin (9)\n else if (89<=result && result<=93) {\n prevSpin=0;\n score+=500;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=9;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=9;\n if (rand.nextInt(wildChance)+1==1 && (img1==9 || img2==9))\n img3=12;\n else\n img3=9;\n }\n\n //\"7\" (10)\n else if (94<=result && result<=98) {\n prevSpin=0;\n spinsLeft+=2;\n score+=777;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=10;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=10;\n if (rand.nextInt(wildChance)+1==1 && (img1==10 || img2==10))\n img3=12;\n else\n img3=10;\n }\n\n //Barbarian \"Bar\" (11)\n else if (99<=result) {\n //Prevention of \"high win\" streak\n prevSpin-=1;\n spinsLeft+=9;\n score+=1000;\n if (rand.nextInt(wildChance)+1==1)\n img1=12;\n else\n img1=11;\n if (rand.nextInt(wildChance)+1==1)\n img2=12;\n else\n img2=11;\n if (rand.nextInt(wildChance)+1==1)\n img3=12;\n else\n img3=11;\n }\n\n else {\n System.out.println(\"Result Error.\");\n }\n }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "static void pixels() {\n flag = 0;\n // On start-up this will ask for the dimensions of the board until you enter a valid number.\n // If there already is a dimension set, the dialogue will close properly even with invalid input.\n while( true ) {\n try {\n String input = JOptionPane.showInputDialog(content, \"Enter n. 1 < n < 101\");\n tileNum = Integer.parseInt(input);\n \n if( tileNum > 100 || tileNum < 2 ) continue;\n break;\n } catch ( Exception e ) {\n if( tiles.size() != 0 ) return;\n }\n }\n start = 0;\n \n // Wipes and prepares the content pane for new tiles.\n tiles.clear();\n if( content == null ) {\n content = new JPanel();\n content.setBackground(Color.gray);\n content.setSize(self.getContentPane().getSize().width, self.getContentPane().getSize().height * 6 / 7);\n content.setLocation(0, 0);\n content.setLayout(new GridLayout(tileNum, tileNum, 0, 0));\n \n self.add(content);\n }\n content.removeAll();\n content.repaint();\n \n // Fills the content pane with tileNum * tileNum tiles.\n for( int i = 0; i < tileNum * tileNum; i++ ) {\n Tile temp = new Tile(white);\n if( i == 0 ) temp.setBackground(red);\n tiles.add(temp);\n content.add(temp);\n }\n content.revalidate();\n }", "private void traverseBayeredPatternFullSizeRGB() {\n\n for (int x = 0; x < originalImageHeight -1; x++){\n for (int y = 1; y < originalImageWidth -1; y++){\n Point position = new Point(x,y);\n int absolutePosition = getAbsolutPixelPosition(position);\n\n PixelType pixelType = null;\n\n if (x%2 == 0 && y%2 == 0) pixelType = PixelType.GREEN_TOPRED;\n if (x%2 == 0 && y%2 == 1) pixelType = PixelType.BLUE;\n if (x%2 == 1 && y%2 == 0) pixelType = PixelType.RED;\n if (x%2 == 1 && y%2 == 1) pixelType = PixelType.GREEN_TOPBLUE;\n\n fullSizePixRGB[absolutePosition] = getFullSizeRGB(new Point(x,y),pixelType);\n }\n }\n }", "private void createPieces() {\n\t\t// Create and fill up the array, iterating by piece row and piece column.\n\t\tpieces = new ArrayList<CvMat>();\n\t\tfor (int pi = 0; pi < prows; pi++) {\n\t\t\tfor (int pj = 0; pj < pcols; pj++) {\n\t\t\t\tCvMat piece = CvMat.create(pieceHeight, pieceWidth, image.type());\n\t\t\t\tpieces.add(piece);\n\t\t\t\t// Copy pixels from image to piece (as usual, do it by hand rather than OpenCV).\n\t\t\t\tfor (int i = 0; i < pieceHeight; i++) {\n\t\t\t\t\tfor (int j = 0; j < pieceWidth; j++) {\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++) {\n\t\t\t\t\t\t\tpiece.put(i, j, c, image.get(i + pi * pieceHeight, j + pj * pieceWidth, c));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void draw() {\n PImage grid = loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/tile.png\");\n for(int i = 0 ; i < 10 ; i++){\n for(int j = 0 ; j < 6 ; j++){\n image(grid, i*grid.width, j*grid.height);\n if(gridPlane.get(List.of(i, j)).getOwner() != null){\n if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Red\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/red3.png\"), i*grid.width, j*grid.height);\n }\n }else if(gridPlane.get(List.of(i, j)).getOwner().getColor().equals(\"Green\")){\n if(gridPlane.get(List.of(i, j)).getAtomCount() == 1){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green1.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 2){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green2.png\"), i*grid.width, j*grid.height);\n }else if(gridPlane.get(List.of(i, j)).getAtomCount() == 3){\n image(loadImage(\"C:/Users/NM/Desktop/UNI_ACAD/INFO1113/Assignment2/Atomination/assets/green3.png\"), i*grid.width, j*grid.height);\n }\n }\n }\n }\n }\n if(this.finish == true){\n System.exit(0);\n }\n }", "public void determineKings(Mat in)\r\n\t{\r\n\t\tint playSquares = 32;\r\n\t\t\r\n\t\tMat dst = new Mat(in.rows(), in.cols(), in.type());\r\n in.copyTo(dst);\r\n\r\n Imgproc.cvtColor(dst, dst, Imgproc.COLOR_BGR2GRAY); // change to single color\r\n \r\n Mat canny = new Mat();\r\n Imgproc.Canny(dst, canny, 100, 200); // make image a canny image that is only edges; 2,4\r\n // lower threshold values find more edges\r\n List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\r\n Mat hierarchy = new Mat(); // holds nested contour information\r\n Imgproc.findContours(canny, contours, hierarchy, Imgproc.RETR_LIST, Imgproc.CHAIN_APPROX_SIMPLE); // Imgproc.RETR_LIST, TREE\r\n \r\n //draw contour image\r\n Mat mask = new Mat();\r\n mask = Mat.zeros(dst.size(), dst.type());\r\n Imgproc.drawContours(mask, contours, -1, new Scalar(255,255,255), 1, 8, hierarchy, 2, new Point());\r\n Highgui.imwrite(\"contours.jpg\", mask);\r\n\r\n\t\t\r\n\t\tArrayList occupied = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < playSquares; i++)\r\n\t\t{\r\n\t\t\tif (board[i] != 0)\r\n\t\t\t\toccupied.add(i);\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < contours.size(); i++) // assuming only contours are checker pieces\r\n\t\t{\t\r\n\t\t\t// determine if it should be a king\r\n\t\t\t// use Rect r = Imgproc.boundingRect then find height of it by r.height\r\n\t\t\t\r\n // Get bounding rect of contour\r\n Rect bound = Imgproc.boundingRect(contours.get(i));\r\n \r\n if (bound.height > in.rows() / 8)\r\n\t\t\t{\r\n\t\t\t\t//board[(int) occupied.get(0)]++; // make it a king\r\n\t\t\t\t//occupied.remove(0);\r\n\t\t\t}\r\n\t\t}\r\n \r\n \r\n \r\n // or apply to each region of interest\r\n \r\n /*\t\t\r\n\t\t// keep track of starting row square\r\n\t\tint parity = 0; // 0 is even, 1 is odd, tied to row number\r\n\t\tint count = 0; // row square\r\n\t\tint rowNum = 0; // row number, starting at 0\r\n\t\t\r\n\t\tint vsegment = in.rows() / 8; // only accounts 8 playable\r\n\t\tint hsegment = in.cols() / 12; // 8 playable, 2 capture, 2 extra\r\n\t\tint offset = hsegment * 2; // offset for playable board\r\n\t\t\r\n\t\t// For angle of camera\r\n\t\tint dx = 48;\r\n\t\thsegment -= 8;\r\n\t\t\r\n\t\t\r\n\t\t// Go through all playable squares\r\n\t\tfor (int i = 0; i < playSquares; i++)\r\n\t\t{\r\n\t\t\t// change offset depending on the row\r\n\t\t\tif (parity == 0) // playable squares start on immediate left\r\n\t\t\t\toffset = hsegment * 3 + dx;\r\n\t\t\telse // playable squares start on 2nd square from left\r\n\t\t\t\toffset = hsegment * 2 + dx;\r\n\r\n\t\t\t// find where roi should be\r\n\t\t\tPoint p1 = new Point(offset + count * hsegment, rowNum * vsegment); // top left point of rectangle (x,y)\r\n\t\t\tPoint p2 = new Point(offset + (count + 1) * hsegment, (rowNum + 1) * vsegment); // bottom right point of rectangle (x,y)\r\n\t\t\t\r\n\t\t\t// create rectangle that is board square\r\n\t\t\tRect bound = new Rect(p1, p2);\r\n\t\t\t\r\n\t\t\t// frame only includes rectangle\r\n\t\t\tMat roi = new Mat(in, bound);\r\n\r\n\t Imgproc.cvtColor(roi, roi, Imgproc.COLOR_BGR2GRAY); // change to single color\r\n\t \r\n\t Mat canny = new Mat();\r\n\t Imgproc.Canny(roi, canny, 2, 4); // make image a canny image that is only edges; 2,4\r\n\t // lower threshold values find more edges\r\n\t List<MatOfPoint> contours = new ArrayList<MatOfPoint>();\r\n\t Mat hierarchy = new Mat(); // holds nested contour information\r\n\t Imgproc.findContours(canny, contours, hierarchy, Imgproc.RETR_EXTERNAL, Imgproc.CHAIN_APPROX_SIMPLE); // Imgproc.RETR_LIST, TREE\r\n\t\t\t\r\n\t // Get bounding rect of contour\r\n Rect rect = Imgproc.boundingRect(contours.get(0));\r\n \r\n if (rect.height > in.rows() / 8)\r\n\t\t\t{\r\n\t\t\t\tboard[i]++; // make it a king\r\n\t\t\t}\r\n\t \r\n\t\t\tcount += 2;\r\n\t\t\tif (count == 8)\r\n\t\t\t{\r\n\t\t\t\tparity = ++parity % 2; // change odd or even\r\n\t\t\t\tcount = 0;\r\n\t\t\t\trowNum++;\r\n\t\t\t\thsegment += 1;\r\n\t\t\t\tdx -= 6;\r\n\t\t\t}\r\n\t\t}*/\r\n\t}", "public void LabelingCandiesToDestroy() {\n int i;\n int j;\n int checkIfSame = 1;\n int NumOfSame = 1;\n System.out.println(\" \");\n //the two sets of nested for loops are used to check for combinations in different directions (top-bottom, left-right)\n for (i = 0; i < 9; i++) {\n for (j = 0; j < 9; j++) {\n NumOfSame = 1;\n checkIfSame = 1;\n while (checkIfSame < (9 - j)) { //when there is a valid combination, it labels the candies as 9\n if (pictures[i][j] == pictures[i][j + checkIfSame]) {\n checkIfSame++;\n NumOfSame++;\n } else {\n break;\n }\n }\n if (NumOfSame > 2) {\n for (int k = 0; k < NumOfSame; k++) {\n pictures2[i][j + k] = 9; //9 is set to candies that have a 3 or more combinations\n }\n }\n\n }\n }\n //this is the second set for the other direction\n for (j = 0; j < 9; j++) {\n for (i = 0; i < 9; i++) {\n NumOfSame = 1;\n checkIfSame = 1;\n while (checkIfSame < (9 - i)) {\n if (pictures[i][j] == pictures[i + checkIfSame][j]) {\n checkIfSame++;\n NumOfSame++;\n } else {\n break;\n }\n }\n if (NumOfSame > 2) {\n for (int k = 0; k < NumOfSame; k++) {\n pictures2[i + k][j] = 9;\n }\n }\n\n }\n }\n\n for (j = 0; j < 9; j++) {\n for (i = 0; i < 9; i++) {\n System.out.print(pictures2[i][j] + \" \");\n }\n System.out.println();\n }\n DestroyCandies();\n }", "public void speckle() {\n\t\tint r = (height / res) - 1;\n\t\tint c = (width / res);\n\t\tfor (int i = 0; i < c; i++)\t\t{\n\t\t\tint x = rng.nextInt(25);\t\t\t\n\t\t\tif (x == 0) { // 1/25 chance of changing bottom row pixel to black\t \n\t\t\t\tvalues[r][i] = color1;\t\t\t\t\n\t\t\t}\n\t\t\telse if (x == 1) { // 1/25 chance of changing bottom row pixel to white\n\t\t\t\tvalues[r][i] = color2;\n\t\t\t}\n\t\t\t// 23/25 chance of leaving bottom pixel alone\n\t\t}\n\t}", "public RunLengthEncoding(PixImage image) {\n // Your solution here, but you should probably leave the following line\n // at the end.\n\t this.width=image.getWidth();\n\t this.height=image.getHeight();\n\t runs = new DList<int[]>(); \n\t \n\t int length_count=0;\n\t int cur_Color=-1;\n\t int prev_Color=-1;\n\t \n\t for(int j=0;j<image.getHeight();j++) {\t \n\t\t\t for(int i=0;i<image.getWidth();i++) {\n\t\t\t\tcur_Color=image.getRed(i, j); \n\t\t\t\tif (cur_Color!=prev_Color) {\n\t\t\t\t\tlength_count++;\n\t\t\t\t\tprev_Color=cur_Color;\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t }\n\t\t\t \n\t }\n\t int count=1;\n\t int[] red = new int[length_count];\n\t int[] green = new int[length_count];\n\t int[] blue = new int[length_count];\n\t int[] runLengths =new int[length_count];\n\t int t=0;\n\t red[0]=image.getRed(0, 0);\n\t green[0]=image.getGreen(0, 0);\n\t blue[0]=image.getBlue(0, 0);\n\t \n\t int passed_counter = 0;\n\t for(int j=0;j<image.getHeight();j++) {\n\t\t\t for(int i=0;i<image.getWidth();i++) {\n\t\t\t\t passed_counter++;\n\t\t\t\t if(i>0 || j>0) { // do not do anything for the first element\n\t\t\t\t\t if(image.getRed(i, j)!=red[t]) {\n\t\t\t\t\t\t runLengths[t]=count;\n\t\t\t\t\t\t count = 1;\n\t\t\t\t\t\t t++;\n\t\t\t\t\t\t runLengths[t]=image.getWidth()*image.getHeight() -passed_counter+1;\n\t\t\t\t\t\t red[t]=image.getRed(i, j);\n\t\t\t\t\t\t green[t]=image.getGreen(i, j);\n\t\t\t\t\t\tblue[t]=image.getBlue(i, j);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t }\n\t\t\t\t\t else {\n\t\t\t\t\t\t count++;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t red[t]=image.getRed(i, j);\n\t\t\t\t\t green[t]=image.getGreen(i, j);\n\t\t\t\t\tblue[t]=image.getBlue(i, j);\n\t\t\t\t\t \n\t\t\t\t\n\t\t\t }\n\t }\t\n\t for(int i=0;i<red.length;i++) {\n\t\t\tint[] run= {runLengths[i],red[i],green[i],blue[i]};\n\t\t\t\n\t\t\tif(runs.isEmpty())\n\t\t\t{\n\t\t\t\t\n\t\t\t\truns.addFirst(run);\n\t\t\t}else {\n\t\t\t\tDListNode<int[]> v=runs.getLast();\n\t\t\t\truns.addAfter(v, run);\n\t\t\t} \n\t \n \n }\n\t check();\n }", "public static void main(String[] args)\n {\n \n //opens selfie picture \n /**/ \n //relative path\n //og pics\n Picture apic = new Picture(\"images/selfie.jpg\");\n Picture obama = new Picture(\"images/obama.jpg\");\n apic.explore();\n obama.explore();\n\n //change with selfie picture\n Picture me = new Picture(\"images/selfie.jpg\"); \n Picture me1 = new Picture(\"images/selfie.jpg\");\n Picture me2 = new Picture(\"images/selfie.jpg\");\n \n //initializes array pix\n Pixel[] pix;\n \n /**\n * method 1 change\n * divides colors into 4 equal groups\n */\n //initializes vars for rgb values\n int red;\n int blue;\n int green;\n pix = me.getPixels(); \n \n for (Pixel spot: pix) {\n //gets rgb values of colors\n red = spot.getRed();\n blue = spot.getBlue();\n green = spot.getGreen();\n \n //if pixel under a certain value then the color is changed\n if (red < 63 && blue < 63 && green < 63) {\n spot.setColor(new Color(2, 32, 62));\n }\n else if (red < 127 && blue < 127 && green < 127) {\n spot.setColor(new Color(198, 37, 8));\n }\n else if (red < 191 && blue < 191 && green < 191) {\n spot.setColor(new Color(102, 157, 160));\n }\n else {\n spot.setColor(new Color(250, 238, 192));\n }\n }\n me.explore();\n me.write(\"images/selfie1.jpg\");\n\n /**\n * method 2 change\n * changes color based on intensity using max and min grayscale values\n */\n pix = me1.getPixels(); \n int s = 0; //smallest pix value\n int b = 255; //largest pix value\n int ave;\n int quads; //size of four equal range of colors\n \n for (Pixel spot: pix) {\n red = spot.getRed();\n blue = spot.getBlue();\n green = spot.getGreen();\n \n ave = (red + blue + green)/3;\n if (ave > b) { //gets maximum grayscale\n b = ave;\n }\n if (ave < s) { //gets min grayscale\n s = ave;\n }\n quads = (b-s)/4; //divides range of pix values into 4\n \n //sees if pixel value is less than the factor of quad\n if (red < quads && blue < quads && green < quads) {\n spot.setColor(new Color(2, 32, 62));\n }\n else if (red < quads*2 && blue < quads*2 && green < quads*2 ) {\n spot.setColor(new Color(198, 37, 8));\n }\n else if (red < quads*3 && blue < quads*3 && green < quads*3) {\n spot.setColor(new Color(102, 157, 160));\n }\n else {\n spot.setColor(new Color(250, 238, 192));\n }\n }\n me1.explore();\n me1.write(\"images/selfie2.jpg\");\n \n /**\n * custom color palette\n */\n pix = me2.getPixels();\n \n for (Pixel spot: pix) {\n red = spot.getRed();\n blue = spot.getBlue();\n green = spot.getGreen();\n \n //sets color to new value if under a certain value\n if (red < 63 && blue < 63 && green < 63) {\n spot.setColor(new Color(77, 105, 170));\n }\n else if (red < 127 && blue < 127 && green < 127) {\n spot.setColor(new Color(71, 183, 116));\n }\n else if (red < 191 && blue < 191 && green < 191) {\n spot.setColor(new Color(254, 129, 99));\n }\n else {\n spot.setColor(new Color(254, 202, 99));\n }\n }\n me2.explore();\n me2.write(\"images/selfie3.jpg\");\n \n }", "@Override\n public void onClick(View v) {\n ImageView imView = null;\n switch (v.getId()) {\n\n case R.id.newGameButton: //start new Game\n setCellGrid();\n clearGrid();\n return;\n case R.id.cel1:\n if(!checkField(0)){\n return;\n }\n prepareCellCross(0);\n imView = imageList.get(0);\n break;\n case R.id.cel2:\n if(!checkField(1)){\n return;\n }\n prepareCellCross(1);\n imView =imageList.get(1);\n break;\n case R.id.cel3:\n if(!checkField(2)){\n return;\n }\n prepareCellCross(2);\n imView =imageList.get(2);\n break;\n case R.id.cel4:\n if(!checkField(3)){\n return;\n }\n prepareCellCross(3);\n imView =imageList.get(3);\n break;\n case R.id.cel5:\n if(!checkField(4)){\n return;\n }\n prepareCellCross(4);\n imView =imageList.get(4);\n break;\n case R.id.cel6:\n if(!checkField(5)){\n return;\n }\n prepareCellCross(5);\n imView =imageList.get(5);\n break;\n case R.id.cel7:\n if(!checkField(6)){\n return;\n }\n prepareCellCross(6);\n imView =imageList.get(6);\n break;\n case R.id.cel8:\n if(!checkField(7)){\n return;\n }\n prepareCellCross(7);\n imView =imageList.get(7);\n break;\n case R.id.cel9:\n if(!checkField(8)){\n return;\n }\n prepareCellCross(8);\n imView =imageList.get(8);\n break;\n }\n\n status.setText(\"Player 1 Move\");\n\n imView.setImageResource(resCross);\n count++;\n\n Log.d(TwoPlayersActivity.LOG_TAG, \"count=\"+count);\n\n if(checkLines()){\n finishGame();\n status.setText(\"Player 1 Win!\");\n return;\n } else if (count==9){\n status.setText(\"Deuce!\");\n } else {\n\n int number;\n\n Log.d(TwoPlayersActivity.LOG_TAG, \"attack return\"+attackStrategy());\n Log.d(TwoPlayersActivity.LOG_TAG, \"defence return=\"+defenceStrategy());\n\n if(attackStrategy()!=-1){\n number = attackStrategy();\n Log.d(TwoPlayersActivity.LOG_TAG, \"attack=\"+number);\n } else if(defenceStrategy()!=-1){\n number = defenceStrategy();\n Log.d(TwoPlayersActivity.LOG_TAG, \"defence=\"+number);\n } else {\n number = new Random().nextInt(8);\n }\n\n Log.d(TwoPlayersActivity.LOG_TAG, \"random=\"+number);\n\n while (!checkField(number)){\n number = new Random().nextInt(8);\n Log.d(TwoPlayersActivity.LOG_TAG, \"random=\"+number);\n }\n Log.d(TwoPlayersActivity.LOG_TAG, \"final random=\"+number);\n prepareCellDroid(number);\n ImageView imViewDroid=imageList.get(number);\n imViewDroid.setImageResource(resDroid);\n count++;\n Log.d(TwoPlayersActivity.LOG_TAG, \"count=\"+count);\n }\n\n if(checkLines()){\n finishGame();\n status.setText(\"Droid Win!\");\n }\n }", "public void displayRectangles() {\n\n\n int arr[] = IntStream.of(findDuplicates(TricolourController.BloodCells)).distinct().toArray(); //takes only the unique values from the array\n int arrWhite[] = IntStream.of(findDuplicates(TricolourController.WhiteCells)).distinct().toArray();\n int rIndex = 0;\n int lIndex = 0;\n int numCells = 0;\n\n for(int num : arrWhite) {\n System.out.println(num);\n }\n\n for(int j=0; j < arr.length - 1; j++) {\n for (int i = 0; i < TricolourController.BloodCells.length; i++) {\n if (TricolourController.BloodCells[i] == arr[j]) {\n int x = i % width, y = i / width;\n if (r[rIndex] == null) {\n r[rIndex] = new Rectangle(x, y, 1, 1);\n numCells++;\n }\n else {\n if (x > r[rIndex].getX() + r[rIndex].getWidth()) r[rIndex].setWidth(x - r[rIndex].getX());\n if (x < r[rIndex].getX()) {\n r[rIndex].setWidth(r[rIndex].getX() + r[rIndex].getWidth() - x);\n r[rIndex].setX(x);\n }\n if (y > r[rIndex].getY() + r[rIndex].getHeight()) r[rIndex].setHeight(y - r[rIndex].getY());\n }\n }\n }\n if (r[rIndex] != null) {\n r[rIndex].setFill(Color.TRANSPARENT);\n if(r[rIndex].getWidth() * r[rIndex].getHeight() > 2500) {\n r[rIndex].setStroke(Color.BLUE);\n }\n else r[rIndex].setStroke(Color.DARKGREEN);\n\n r[rIndex].setTranslateX(ImageViewTri.getLayoutX());\n r[rIndex].setTranslateY(ImageViewTri.getLayoutY());\n ((Pane) ImageViewTri.getParent()).getChildren().add(r[rIndex++]);\n RedCellText.setText(String.valueOf(numCells));\n }\n l[lIndex] = new Label();\n l[lIndex].setText(String.valueOf(numCells));\n l[lIndex].setTextFill(Color.BLACK);\n l[lIndex].setTranslateX(r[rIndex - 1].getX());\n l[lIndex].setTranslateY(r[rIndex - 1].getY());\n\n ((Pane) ImageViewTri.getParent()).getChildren().add(l[lIndex++]);\n }\n\n//Handles the white cell rectangles.\n int whitenumcells = 0;\n for(int j=0; j < arrWhite.length - 1; j++) {\n for (int i = 0; i < TricolourController.WhiteCells.length; i++) {\n if (TricolourController.WhiteCells[i] == arrWhite[j]) {\n int x = i % width, y = i / width;\n if (r[rIndex] == null) {\n r[rIndex] = new Rectangle(x, y, 1, 1);\n whitenumcells++;\n }\n else {\n if (x > r[rIndex].getX() + r[rIndex].getWidth()) r[rIndex].setWidth(x - r[rIndex].getX());\n if (x < r[rIndex].getX()) {\n r[rIndex].setWidth(r[rIndex].getX() + r[rIndex].getWidth() - x);\n r[rIndex].setX(x);\n }\n if (y > r[rIndex].getY() + r[rIndex].getHeight()) r[rIndex].setHeight(y - r[rIndex].getY());\n }\n }\n }\n if (r[rIndex] != null) {\n r[rIndex].setFill(Color.TRANSPARENT);\n r[rIndex].setStroke(Color.YELLOW);\n\n r[rIndex].setTranslateX(ImageViewTri.getLayoutX());\n r[rIndex].setTranslateY(ImageViewTri.getLayoutY());\n ((Pane) ImageViewTri.getParent()).getChildren().add(r[rIndex++]);\n WhiteCellText.setText(String.valueOf(whitenumcells));\n }\n l[lIndex] = new Label();\n l[lIndex].setText(String.valueOf(whitenumcells));\n l[lIndex].setTextFill(Color.BLACK);\n l[lIndex].setTranslateX(r[rIndex - 1].getX());\n l[lIndex].setTranslateY(r[rIndex - 1].getY());\n\n ((Pane) ImageViewTri.getParent()).getChildren().add(l[lIndex++]);\n }\n }", "public static void main(String[] args) {\n\t\tString[] src = null;\n\t\ttry {\n\t\t\tsrc = Files.lines(Paths.get(\"inputs/day20.txt\"))\n\t\t\t\t\t.map(s -> s.replace(\".\", \"0\").replace(\"#\", \"1\"))\n\t\t\t\t\t.collect(Collectors.joining(\"\\n\"))\n\t\t\t\t\t.split(\"\\n\\n\");\n\t\t}catch(IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tList<Tile> tiles = new ArrayList<Tile>();\n\t\tfor(String s : src) {\n\t\t\tString[] tile = s.split(\":\\n\");\n\t\t\tlong id = Long.parseLong(tile[0].substring(5));\n\t\t\tString[] data = tile[1].split(\"\\n\");\n\t\t\ttiles.add(new Tile(id, data));\n\t\t}\n\t\t\n\t\t/* PART 1 */\n\t\t// Compile all hashes and their mirror images, each paired with its frequency\n\t\tHashMap<Integer,Integer> hashes = new HashMap<Integer,Integer>();\n\t\tfor(Tile t : tiles) {\n\t\t\tList<Integer> h = t.getHashes(); List<Integer> hr = t.getReverseHashes();\n\t\t\tfor(int i = 0; i < h.size(); i++) {\n\t\t\t\tputTileHash(hashes, h.get(i));\n\t\t\t\tputTileHash(hashes, hr.get(i));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// The corner tiles are the 4 tiles such that 2 of their edge hashes match no other hashes\n\t\t// Find these tiles and then the product of their IDs\n\t\tList<Integer> uniqueHashes = hashes.keySet().stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.filter(i -> hashes.get(i) == 1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t\tlong ans = tiles.stream()\n\t\t\t\t\t\t.filter(t -> isCornerTile(t, uniqueHashes))\n\t\t\t\t\t\t.mapToLong(Tile::getID)\n\t\t\t\t\t\t.reduce(1, (x,y) -> x*y);\n\t\tSystem.out.println(ans);\n\t\t\n\t\t// Assemble the image.\n\t\t// Start by placing any of the 4 corner pieces in the top left corner.\n\t\t// Build the first row by matching another tile's edge hash with the rightmost tile's right edge hash.\n\t\t// For subsequent rows, match a tile's edge hash with the bottom hash of the tile above it.\n\t\tIMG_DIM = (int)Math.sqrt(tiles.size());\n\t\tTile[][] img = new Tile[IMG_DIM][IMG_DIM];\n\t\timg[0][0] = tiles.stream()\n\t\t\t\t\t\t .filter(t -> isCornerTile(t, uniqueHashes))\n\t\t\t\t\t\t .findAny()\n\t\t\t\t\t\t .get();\n\t\twhile(!(uniqueHashes.contains(img[0][0].getLHash()) && uniqueHashes.contains(img[0][0].getTHash()))) {\n\t\t\timg[0][0].rotate(1);\n\t\t}\n\t\ttiles.remove(img[0][0]);\n\t\t\n\t\t// First row\n\t\tfor(int col = 1; col < IMG_DIM; col++) {\n\t\t\tIterator<Tile> it = tiles.iterator();\n\t\t\tTile target = null;\n\t\t\tint rHash = img[0][col-1].getRHash();\n\t\t\twhile(target == null) {\n\t\t\t\t// If the tile has a matching hash, flip it such that the existing tile's right hash\n\t\t\t\t// equals the new tile's reverse left hash\n\t\t\t\tTile t = it.next();\n\t\t\t\tif(rHash == t.getTHash()) {\n\t\t\t\t\tt.flipVertical();\n\t\t\t\t\tt.rotate(1);\n\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t}else if(rHash == reverse(t.getTHash())) {\n\t\t\t\t\tt.rotate(3);\n\t\t\t\t\ttarget = t;\n\t\t\t\t\n\t\t\t\t}else if(rHash == t.getRHash()) {\n\t\t\t\t\tt.flipHorizontal();\n\t\t\t\t\ttarget = t;\n\t\t\t\t\n\t\t\t\t}else if(rHash == reverse(t.getRHash())) {\n\t\t\t\t\tt.rotate(2);\n\t\t\t\t\ttarget = t;\n\t\t\t\t\n\t\t\t\t}else if(rHash == t.getBHash()) {\n\t\t\t\t\tt.flipHorizontal();\n\t\t\t\t\tt.rotate(1);\n\t\t\t\t\ttarget = t;\n\t\t\t\t\n\t\t\t\t}else if(rHash == reverse(t.getBHash())) {\n\t\t\t\t\tt.rotate(1);\n\t\t\t\t\ttarget = t;\n\t\t\t\t\n\t\t\t\t}else if(rHash == t.getLHash()) {\n\t\t\t\t\tt.flipVertical();\n\t\t\t\t\ttarget = t;\n\t\t\t\t\n\t\t\t\t}else if(rHash == reverse(t.getLHash())) {\n\t\t\t\t\t// do nothing\n\t\t\t\t\ttarget = t;\n\t\t\t\t}\t\n\t\t\t}\n\t\t\timg[0][col] = target;\n\t\t\ttiles.remove(target);\n\t\t}\n\t\t\n\t\t// Rest of the picture\n\t\tfor(int row = 1; row < IMG_DIM; row++) {\n\t\t\tfor(int col = 0; col < IMG_DIM; col++) {\n\t\t\t\tIterator<Tile> it = tiles.iterator();\n\t\t\t\tTile target = null;\n\t\t\t\tint bHash = img[row-1][col].getBHash();\n\t\t\t\twhile(target == null) {\n\t\t\t\t\t// If the tile has a matching hash, flip it such that the existing tile's bottom hash\n\t\t\t\t\t// equals the new tile's reverse top hash\n\t\t\t\t\tTile t = it.next();\n\t\t\t\t\tif(bHash == t.getTHash()) {\n\t\t\t\t\t\tt.flipHorizontal();\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == reverse(t.getTHash())) {\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == t.getRHash()) {\n\t\t\t\t\t\tt.flipHorizontal();\n\t\t\t\t\t\tt.rotate(1);\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == reverse(t.getRHash())) {\n\t\t\t\t\t\tt.rotate(3);\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == t.getBHash()) {\n\t\t\t\t\t\tt.flipVertical();\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == reverse(t.getBHash())) {\n\t\t\t\t\t\tt.rotate(2);\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == t.getLHash()) {\n\t\t\t\t\t\tt.flipVertical();\n\t\t\t\t\t\tt.rotate(1);\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t\n\t\t\t\t\t}else if(bHash == reverse(t.getLHash())) {\n\t\t\t\t\t\tt.rotate(1);\n\t\t\t\t\t\ttarget = t;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\timg[row][col] = target;\n\t\t\t\ttiles.remove(target);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Build image\n\t\tString[] sea = new String[IMG_DIM * (TILE_DIM-2)];\n\t\tfor(int irow = 0; irow < IMG_DIM; irow++) {\n\t\t\tfor(int trow = 1; trow < TILE_DIM-1; trow++) {\n\t\t\t\tfinal int TROW = trow;\n\t\t\t\tsea[irow*(TILE_DIM-2) + (trow-1)] = Arrays.stream(img[irow])\n\t\t\t\t\t\t\t\t\t\t\t\t\t.map(tile -> tile.getData()[TROW].substring(1, TILE_DIM-1))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.collect(Collectors.joining());\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* PART 2 */\n\t\t// Rotate and flip the sea image until at least one monster is found\n\t\tint[][] monsters = new int[sea.length][sea.length];\n\t\tint iter = 1; boolean done = false;\n\t\twhile(iter <= 8 && !done) {\n\t\t\tfor(int row = 1; row < sea.length-1; row++) {\n\t\t\t\tfor(int col = 0; col < sea.length-20; col++) {\n\t\t\t\t\tif(findMonster(sea, row, col)) {\n\t\t\t\t\t\tdone = true;\n\t\t\t\t\t\tmarkMonster(monsters, row, col);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(done) {break;}\n\t\t\t// Iterate\n\t\t\tif(iter == 4) {\n\t\t\t\tsea = flipGridVertical(sea);\n\t\t\t}else {\n\t\t\t\tsea = rotateGrid(sea);\n\t\t\t}\n\t\t\titer++;\n\t\t}\n\n\t\t// Count unused 1's in the original image\n\t\tfinal String[] SEA = sea;\n\t\tlong roughness = IntStream.rangeClosed(0, SEA.length-1)\n\t\t\t\t\t\t\t.flatMap(i -> IntStream.rangeClosed(0, SEA.length-1)\n\t\t\t\t\t\t\t\t\t\t\t\t.filter(j -> SEA[i].charAt(j) == '1' && monsters[i][j] == 0))\n\t\t\t\t\t\t\t.count();\n\t\tSystem.out.println(roughness);\n\t\t\n\t}", "public IImage createCheckerboard() {\n List<List<Pixel>> grid = new ArrayList<>();\n for (int i = 0; i < this.height; i++) {\n List<Pixel> row;\n // alternating between making rows starting with black or white tiles\n if (i % 2 == 0) {\n // start white\n for (int j = 0; j < this.tileSize; j++) {\n row = createRow(255, 0, (i * this.tileSize) + j);\n grid.add(row);\n }\n }\n else {\n // start black\n for (int m = 0; m < this.tileSize; m++) {\n row = createRow(0, 255, (i * this.tileSize) + m);\n grid.add(row);\n }\n }\n }\n return new Image(grid, 255);\n }", "private void generateSquarePartners() {\r\n\t\t// 2 copies of each end point,\r\n\t\t// which will be \"shifted\" to simulate the 2 adjacent squares\r\n\t\tint[] point1Shift1 = Arrays.copyOf(point1, 2);\r\n\t\tint[] point1Shift2 = Arrays.copyOf(point1, 2);\r\n\t\tint[] point2Shift1 = Arrays.copyOf(point2, 2);\r\n\t\tint[] point2Shift2 = Arrays.copyOf(point2, 2);\r\n\t\t\r\n\t\t// used to indicate the orientation of the Line and which axis needs to be shifted\r\n\t\t// 0 == vertical, 1 == horizontal\r\n\t\tint index;\r\n\t\t\r\n\t\tif (point1[0] == point2[0]) {\r\n\t\t\tindex = 0;\r\n\t\t} else {\r\n\t\t\tindex = 1;\r\n\t\t}\r\n\t\t\r\n\t\tif (point1[index] - 1 > 0) {\r\n\t\t\t// square1Partners form the square to the left or above *this* Line\r\n\t\t\t// so shifted points get decremented\r\n\t\t\tpoint1Shift1[index] = point1[index] - 1;\r\n\t\t\tpoint2Shift1[index] = point2[index] - 1;\r\n\t\t\t\r\n\t\t\tsquare1Partners.add(new Line(point1, point1Shift1));\r\n\t\t\tsquare1Partners.add(new Line(point1Shift1, point2Shift1));\r\n\t\t\tsquare1Partners.add(new Line(point2Shift1, point2));\r\n\t\t}\r\n\t\tif (point1[index] + 1 < boardSize) {\r\n\t\t\t// square2Partners form the square to the right or below *this* Line\r\n\t\t\t// so shifted points get incremented\r\n\t\t\tpoint1Shift2[index] = point1[index] + 1;\r\n\t\t\tpoint2Shift2[index] = point2[index] + 1;\r\n\t\t\t\r\n\t\t\tsquare2Partners.add(new Line(point1, point1Shift2));\r\n\t\t\tsquare2Partners.add(new Line(point1Shift2, point2Shift2));\r\n\t\t\tsquare2Partners.add(new Line(point2Shift2, point2));\r\n\t\t}\r\n\t}", "public SnakesAndLadders(int nPlayers)\n {\n NUM_PLAYERS = nPlayers;\n this.players = new int[NUM_PLAYERS]; // Creates the number of players\n //Puts all the players in their starting points\n for(int i = 0; i < NUM_PLAYERS; i++){\n this.players[i] = 1; //All players start at the first square\n }\n this.board = new SnLSquare[NUM_SQUARES]; //Create the board of 100 spaces\n int space = 1;\n for(int i = 0; i < NUM_SQUARES; i++)\n {\n switch(space) //Making all the regular spaces, snakes spaces, and ladder spaces\n {\n case 4:\n this.board[i] = new LadderSquare(4, 14);\n break;\n case 9:\n this.board[i] = new LadderSquare(9,31);\n break;\n case 17:\n this.board[i] = new SnakeSquare(17,7);\n break;\n case 20:\n this.board[i] = new LadderSquare(20,38);\n break;\n case 28:\n this.board[i] = new LadderSquare(28,84);\n break;\n case 40:\n this.board[i] = new LadderSquare(40,59);\n break;\n case 54:\n this.board[i] = new SnakeSquare(54,34);\n break;\n case 62:\n this.board[i] = new SnakeSquare(62,18);\n break;\n case 63:\n this.board[i] = new LadderSquare(63,81);\n break;\n case 64:\n this.board[i] = new SnakeSquare(64,60);\n break;\n case 71:\n this.board[i] = new LadderSquare(71,91);\n break;\n case 87:\n this.board[i] = new SnakeSquare(87,24);\n break;\n case 93:\n this.board[i] = new SnakeSquare(93,73);\n break;\n case 95:\n this.board[i] = new SnakeSquare(95,75);\n break;\n case 99:\n this.board[i] = new SnakeSquare(99,78);\n break;\n default:\n this.board[i] = new SnLSquare(space);\n break;\n }\n space++;\n }\n this.dice = new Dice(2); //Creating pair of dice\n }", "int[][][] mosaicingImage(int[][][] imageArray, int height, int width, int seedNum);", "public void cool()throws IOException{\n int q= 2;\n ArrayList<Scanner> f = new ArrayList();\n String input = j.showInputDialog(\"Choose a file to use:\");\n f.add(new Scanner(new File(input+\".ppm\")));\n //\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"jkndanwladlanfseuihrvniurhceimucauqrcal3iuirlheunrliuvznmlriunh.ppm\")));\n out.println(f.get(0).next());out.println(f.get(0).next()); out.println(f.get(0).next());int uh=Integer.parseInt(f.get(0).next()); out.println(uh);\n while(f.get(0).hasNext()){\n for(int rgb=0;rgb<3;rgb++){\n if(f.get(0).hasNext()){\n String ass=f.get(0).next();\n\n int azz= Integer.parseInt(ass);\n if(azz<(uh/2)){\n out.println(\"\"+0);\n }else{\n out.println(\"\"+uh);\n }\n }\n }\n }\n out.close(); //\n \n f.set(0,(new Scanner(new File(input+\".ppm\"))));f.add(new Scanner(new File(\"jkndanwladlanfseuihrvniurhceimucauqrcal3iuirlheunrliuvznmlriunh.ppm\")));\n input = j.showInputDialog(\"Choose a name for the new file:\");\n out = new PrintWriter(new BufferedWriter(new FileWriter(input+\".ppm\")));\n out.println(\"P3\");\n int height[]= new int[q]; int width[]= new int[q];\n int largest=0;\n for(int a=0;a<q;a++){\n f.get(a).next();\n height[a]=Integer.parseInt(f.get(a).next());\n width[a]=Integer.parseInt(f.get(a).next());\n //f.get(a).next();\n }\n for(int a=0;a<q;a++){\n if(height[largest]*width[largest]<height[a]*width[a]){\n largest=a;\n }\n }\n out.println(height[largest]);out.println(width[largest]);\n int ass=0;\n int azz=0;\n\n for(int x=0;x<width[largest];x++){\n for(int y=0;y<height[largest];y++){\n for(int c=0;c<3;c++){\n for(int a=0;a<q;a++){\n if(f.get(a).hasNext()){\n if(x<width[a]&&y<height[a]){\n ass=ass+Integer.parseInt(f.get(a).next());\n azz++;\n }\n }\n }\n ass=ass/azz;\n out.print(ass+\" \");\n ass=0;\n azz=0;\n }\n }\n }\n\n for(int a =0;a<q;a++){\n f.get(a).close();\n }\n out.close();\n System.exit(0);\n }", "public void testFindBorders() {\n System.out.println(\"findBorders\");\n RasterImage rImage = new RasterImage(20,21);\n int expResult[] = {16777215, 0, 0, 0, 0, 0, 0, 16777215, 16777215,\n 16777215, 16777215, 16777215, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 16777215, 16777215, 16777215, 16777215, 0, 16777215, 16777215, 16777215,\n 16777215, 16777215, 0, 0, 0, 16777215, 16777215, 16777215, 0, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 16777215,\n 0, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 0,\n 16777215, 16777215, 0, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215,\n 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215, 16777215, 16777215, 16777215,\n 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215, 16777215, 16777215,\n 16777215, 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215, 16777215,\n 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 0, 16777215, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 16777215, 16777215, 0, 16777215,\n 16777215, 16777215, 16777215, 16777215, 16777215, 0, 0, 0, 16777215, 0, 0, 0, 16777215,\n 16777215, 16777215, 0, 0, 0, 0, 16777215, 16777215, 0, 0, 0, 0, 0, 0, 0, 0, 16777215,\n 16777215, 16777215, 16777215};\n int pixels[] = {16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,0,0,0,\n 0,0,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,0,0,0,\n 0,0,0,0,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,0,0,0,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,0,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,0,16777215,16777215,16777215,\n 16777215,16777215,16777215,0,0,0,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,0,16777215,16777215,\n 16777215,0,0,0,0,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,0,0,0,0,0,\n 0,0,0,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,\n 16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215,16777215};\n for(int i=0;i<420;i++){\n int x = i%20;\n int y = i/20;\n rImage.setRGB(x, y, pixels[i]);\n }\n\n\n\n RasterImage result = CutCharacter.findBorders(rImage);\n for(int i=0;i<168;i++)\n assertEquals(expResult[i], result.getRGB(i));\n \n }", "public List<MagicSquare> buildMagicSquares() {\n solutions = new ArrayList<>();\n sampler = new Sampler(Bound.getAllElements(1, totalNumbersCnt));\n\n for (int possibleNumber : sampler.getNumbers(new Bound(1, totalNumbersCnt))) {\n if (sampler.contains(possibleNumber)) {\n buildRow(sampler.getNumber(possibleNumber), 0, 0);\n }\n }\n\n return solutions;\n }", "public void check() {\n // Your solution here.\n\t \n\t int position=1;\n\t int count=runs.nth(1).item[0];\n\t System.out.println(\"This is the RUNS: \"+toString());\n\t System.out.println(\"This is the Runs Length \"+runs.length());\n\t for(position=2;position<=runs.length();position++) {\n\t\t DListNode<int[]> node_this=runs.nth(position);\n\t\t DListNode<int[]> node_prev=runs.nth(position).prev;\n\t\t \n\t\t \n\t\t if (runs.nth(position).item[1]==runs.nth(position).prev.item[1]) {\n\t\t\t System.out.println(\"two consecutive runs have the same RGB intensities\");\n\t\t\t System.out.println(\"Two Consecutive runs are \"+runs.nth(position).item[1]+\" at \"+position+\" and \"+ (position-1));\n\t\t\t \n\t\t }\n\t\t count+=runs.nth(position).item[0];\t \n\t\t }\n\t \n\t\n \tif (count!=width*height) {\n\t System.out.println(\"all run lengths does not equal the number of pixels in the image\");\n\t System.out.println(\"RLE is \"+count +\" and it should be \"+ (width*height));\n }\n \n }", "public void ToImage(){\n\t\tint row=SL.length;\n\t\tint col=SL[0].length;\n\t\tint cr=0;\n\t\tint cb=0;\n\t\t// System.out.println(row+\" \"+col);\n\t\tint[] intArray = new int[3*row*col];\n\t\tint w=row;\n\t int h=col;\n\t BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);\n\t\tint pixel = 0;\n\t\tfor(int x=0;x<row;x++){\n\t\t\tfor(int y=0;y<col;y++){\n\t\t\t\tint rByte = (int)(SL[x][y]);\n\t\t int gByte = (int)(SL[x][y]);\n\t\t int bByte = (int)(SL[x][y]);\n\t\t \n\t\t // int rByte = (int)(SL[x][y]+1.402*(cr-128));\n\t\t // int gByte = (int)(SL[x][y]-0.3414*(cb-128)-0.71414*(cr-128));\n\t\t // int bByte = (int)(SL[x][y]+1.772*(cb-128));\n\t\t int rgb = (rByte *65536) + (gByte * 256) + bByte;\n\t\t image.setRGB(x,y,rgb);\n\t \t}\n\t\t}\n\t try {\n\t ImageIO.write(image, \"bmp\", new File(\"\"+picture_num+\".png\"));\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t }\n\t}", "private void createTestImage()\n {\n initialImage = new byte[3 * size / 2];\n for (int i = 0; i < size; i++)\n {\n initialImage[i] = (byte) (40 + i % 199);\n }\n\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n initialImage[i] = (byte) (40 + i % 200);\n initialImage[i + 1] = (byte) (40 + (i + 99) % 200);\n }\n }", "private void drawSquares(Graphics2D g2d, int startY, int wid, int hei) {\n int size = hei / 16;\n int startX = wid / 2 - size * 3;\n for (int i = 0; i < 6; i++) {\n drawSquare(g2d, startX + size * i, startY, size);\n drawSquare(g2d, startX + size * i, startY + size, size);\n drawSquare(g2d, startX + size * i, startY + size * 2, size);\n drawSquare(g2d, startX + size * i, startY + size * 3, size);\n }\n }", "void checkerboard(int checkerSquareArea);", "public static int[][][] rescaleShift(int[][][] ImageArray1) {\n\n int width = ImageArray1.length;\n int height = ImageArray1[0].length;\n\n int[][][] ImageArray2 = ImageArray1;\n\n float s = randFloat(0, 2);\n int t = (int) (Math.random());\n //float s = 2;\n //int t = 20;\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n\n ImageArray1[x][y][1] = (int) (t + ImageArray1[x][y][1]); //r\n ImageArray1[x][y][2] = (int) (t + ImageArray1[x][y][2]); //g\n ImageArray1[x][y][3] = (int) (t + ImageArray1[x][y][3]); //b\n }\n }\n int rmin = (int) (s * (ImageArray1[0][0][1] + t));\n int rmax = rmin;\n int gmin = (int) (s * (ImageArray1[0][0][2] + t));\n int gmax = gmin;\n int bmin = (int) (s * (ImageArray1[0][0][3] + t));\n int bmax = bmin;\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n ImageArray2[x][y][1] = (int) (s * ImageArray1[x][y][1]); //r\n ImageArray2[x][y][2] = (int) (s * ImageArray1[x][y][2]); //g\n ImageArray2[x][y][3] = (int) (s * ImageArray1[x][y][3]); //b\n\n if (rmin > ImageArray2[x][y][1]) {\n rmin = ImageArray2[x][y][1];\n }\n if (gmin > ImageArray2[x][y][2]) {\n gmin = ImageArray2[x][y][2];\n }\n if (bmin > ImageArray2[x][y][3]) {\n bmin = ImageArray2[x][y][3];\n }\n if (rmax < ImageArray2[x][y][1]) {\n rmax = ImageArray2[x][y][1];\n }\n if (gmax < ImageArray2[x][y][2]) {\n gmax = ImageArray2[x][y][2];\n }\n if (bmax < ImageArray2[x][y][3]) {\n bmax = ImageArray2[x][y][3];\n }\n }\n }\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n ImageArray2[x][y][1] = 255 * (ImageArray2[x][y][1] - rmin) / (rmax - rmin);\n ImageArray2[x][y][2] = 255 * (ImageArray2[x][y][2] - gmin) / (gmax - gmin);\n ImageArray2[x][y][3] = 255 * (ImageArray2[x][y][3] - bmin) / (bmax - bmin);\n }\n }\n return (ImageArray2);\n }", "public void makeGrayscale() {\n PixelReader pr = img.getPixelReader();\n WritableImage gray = new WritableImage((int) w, (int) h);\n PixelWriter pw = gray.getPixelWriter();\n int count = 0;\n for (int i = 0; i < (int) h; i++) {\n for (int j = 0; j < (int) w; j++) {\n count += 1;\n Color color = pr.getColor(j, i);\n //Reading each pixel and converting to Grayscale\n pw.setColor(j, i, new Color((color.getRed() * 0.3 + color.getGreen() * 0.59 + color.getBlue() * 0.11),\n (color.getRed() * 0.3 + color.getGreen() * 0.59 + color.getBlue() * 0.11),\n (color.getRed() * 0.3 + color.getGreen() * 0.59 + color.getBlue() * 0.11),\n 1.0));\n holderImg = gray;\n }\n }\n }", "public void setPreviewCanvas()\n {\n if(grayImgToFit!=null)\n {\n canvas.beginDraw();\n for(int i = 0; i < xTiles+3; i++)\n {\n for(int j = 0; j < yTiles+1; j++)\n {\n //if(i<verticalFlip[0].length && j<verticalFlip.length)\n //{\n //if(!notShow[i][j])\n //{\n // even or odd row shift\n if(j%2 == 0)\n {\n if(verticalFlip[i][j] && ! horizontalFlip[i][j])\n {\n canvas.image(tileMiniaturesV[getTileIntensityAtIndex(i,j)],i * tileMiniaturesV[0].width + evenRowShift,j * tileMiniatures[0].height);\n }\n else if(horizontalFlip[i][j] && !verticalFlip[i][j])\n {\n canvas.image(tileMiniaturesH[getTileIntensityAtIndex(i,j)],i * tileMiniaturesH[0].width + evenRowShift,j * tileMiniatures[0].height);\n }\n else if(horizontalFlip[i][j] && verticalFlip[i][j])\n {\n canvas.image(tileMiniaturesVH[getTileIntensityAtIndex(i,j)],i * tileMiniaturesVH[0].width + evenRowShift,j * tileMiniatures[0].height);\n }\n else\n {\n canvas.image(tileMiniatures[getTileIntensityAtIndex(i,j)],i * tileMiniatures[0].width + evenRowShift,j * tileMiniatures[0].height);\n }\n }\n else\n {\n if(verticalFlip[i][j] && ! horizontalFlip[i][j])\n {\n canvas.image(tileMiniaturesV[getTileIntensityAtIndex(i,j)],i * tileMiniaturesV[0].width + oddRowShift,j * tileMiniatures[0].height);\n }\n else if(horizontalFlip[i][j] && !verticalFlip[i][j])\n {\n canvas.image(tileMiniaturesH[getTileIntensityAtIndex(i,j)],i * tileMiniaturesH[0].width + oddRowShift,j * tileMiniatures[0].height);\n }\n else if(horizontalFlip[i][j] && verticalFlip[i][j])\n {\n canvas.image(tileMiniaturesVH[getTileIntensityAtIndex(i,j)],i * tileMiniaturesVH[0].width + oddRowShift,j * tileMiniatures[0].height);\n }\n else\n {\n canvas.image(tileMiniatures[getTileIntensityAtIndex(i,j)],i * tileMiniatures[0].width + oddRowShift,j * tileMiniatures[0].height);\n }\n }\n //}\n //else\n //{\n // canvas.fill(255,255,255);\n // canvas.noStroke();\n // if(hoverIndex[1]%2 == 0)\n // canvas.rect(i * tileMiniatures[0].width + evenRowShift,j * tileMiniatures[0].height,tileMiniatures[0].width, tileMiniatures[0].height);\n // else\n // canvas.rect(i * tileMiniatures[0].width + oddRowShift,j * tileMiniatures[0].height,tileMiniatures[0].width, tileMiniatures[0].height);\n //}\n //}\n }\n }\n \n canvas.fill(0,255,0,100);\n canvas.noStroke();\n if(hoverIndex[1]%2 == 0)\n {\n canvas.rect(hoverIndex[0] * tileMiniatures[0].width + evenRowShift,hoverIndex[1] * tileMiniatures[0].height,tileMiniatures[0].width, tileMiniatures[0].height);\n }\n else\n {\n canvas.rect(hoverIndex[0] * tileMiniatures[0].width + oddRowShift,hoverIndex[1] * tileMiniatures[0].height,tileMiniatures[0].width, tileMiniatures[0].height);\n }\n canvas.endDraw();\n }\n }", "public void calculating_kinship_tiling_windows(String output_folder, double scale){\t\t\n\t\tSystem.out.println(\"Local_kinship for win-size=\"+tiling_win_size+\".\");\n\t\ttry{\n\t\t\tfor(int chr=0;chr<variants.num_chrs;chr++){\n\t\t\t\tint last_position=variants.locations[chr][variants.num_sites[chr]-1];\n\t\t\t\tint start=1, end=start+tiling_win_size-1;\n\t\t\t\twhile(start<last_position){\n\t\t\t\t\tdouble[][] data=variants.load_variants_in_region(chr, start, end);\n\t\t\t\t\tString the_kin_file=output_folder+\"kinship.\"+variants.sample_size+\".chr\"\n\t\t\t\t\t\t\t+(chr+1)+\".\"+start+\".\"+end;\n\t\t\t\t\tBufferedWriter bw=new BufferedWriter(new FileWriter(the_kin_file+\".raw.ibs\"));\n\t\t\t\t\tdouble[][] kinship=new double[variants.sample_size][variants.sample_size];\n\t\t\t\t\tfor(int i=0;i<variants.sample_size;i++){\n\t\t\t\t\t\tkinship[i][i]=1;\n\t\t\t\t\t\tfor(int j=i+1;j<variants.sample_size;j++){\n\t\t\t\t\t\t\tfor(int k=0;k<data.length;k++){\n\t\t\t\t\t\t\t\tkinship[i][j]+=(scale-Math.abs(data[k][i]-data[k][j]));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tkinship[i][j]=kinship[i][j]/scale/data.length;\n\t\t\t\t\t\t\tkinship[j][i]=kinship[i][j];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i=0;i<variants.sample_size;i++){\n\t\t\t\t\t\tfor(int j=0;j<variants.sample_size-1;j++){\n\t\t\t\t\t\t\tbw.write(kinship[i][j]+\",\");\n\t\t\t\t\t\t}bw.write(kinship[i][variants.sample_size-1]+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\tbw.close();\n\t\t\t\t\tVariantsDouble.re_scale_kinship_matrix(the_kin_file+\".raw.ibs\", the_kin_file+\".rescaled.ibs\");\n\t\t\t\t\tstart=start+tiling_win_size/2;\n\t\t\t\t\tend=start+tiling_win_size-1;\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){e.printStackTrace();}\n\t}", "@FXML\n public void AnalyiseImg(ActionEvent e) {\n\n for (int readY = 0; readY < height; readY++) {\n for (int readX = 0; readX < width - 1; readX++) {\n //For red blood cells\n if (TricolourController.BloodCells[readY * width + readX] != 0 && (TricolourController.BloodCells[readY * width + readX + 1] != 0)) {\n Recognision.union(TricolourController.BloodCells, readY * width + readX, readY * width + readX + 1);\n }\n if (readY < height - 1 && TricolourController.BloodCells[readY * width + readX] != 0 && TricolourController.BloodCells[readY * width + readX + width] != 0) {\n Recognision.union(TricolourController.BloodCells, readY * width + readX, readY * width + readX + width);\n }\n\n\n\n//For white blood cells\n if (TricolourController.WhiteCells[readY * width + readX] != 0 && (TricolourController.WhiteCells[readY * width + readX + 1] != 0)) {\n Recognision.union(TricolourController.WhiteCells, readY * width + readX, readY * width + readX + 1);\n }\n if (readY < height - 1 && TricolourController.WhiteCells[readY * width + readX] != 0 && TricolourController.WhiteCells[readY * width + readX + width] != 0) {\n Recognision.union(TricolourController.WhiteCells, readY * width + readX, readY * width + readX + width);\n }\n\n }\n }\n\n/* for (int i = 0; i < TricolourController.BloodCells.length; i++) {\n if (i % width == 0) System.out.println(); //New line\n System.out.print(Recognision.find(TricolourController.BloodCells, i) + \" \"); //Print root value\n }*/\n\n/* for (int i = 0; i < TricolourController.WhiteCells.length; i++) {\n if (i % width == 0) System.out.println(); //New line\n System.out.print(Recognision.find(TricolourController.WhiteCells, i) + \" \"); //Print root value\n }*/\n\n displayRectangles();\n\n }", "@Override\n public void start(Stage primaryStage) throws Exception {\n\n GridPane pane = new GridPane();\n pane.setAlignment(Pos.CENTER);\n pane.setPadding(new Insets(10,10,10,10));\n pane.setHgap(5.5);\n pane.setVgap(5.5);\n ImageView i1 = new ImageView(establishConnection(\"https://cdn.pixabay.com/photo/2017/03/14/21/00/american-flag-2144392_1280.png\"));\n i1.fitHeightProperty().bind(pane.heightProperty().divide(4));\n i1.fitWidthProperty().bind(pane.widthProperty().divide(4));\n\n ImageView i2 = new ImageView(establishConnection(\"https://cdn.pixabay.com/photo/2015/11/06/13/29/union-jack-1027898_1280.jpg\"));\n i2.fitHeightProperty().bind(pane.heightProperty().divide(4));\n i2.fitWidthProperty().bind(pane.widthProperty().divide(4));\n\n\n ImageView i3 = new ImageView(establishConnection(\"https://cdn.pixabay.com/photo/2012/04/10/23/27/canada-27003_1280.png\"));\n i3.fitHeightProperty().bind(pane.heightProperty().divide(4));\n i3.fitWidthProperty().bind(pane.widthProperty().divide(4));\n\n\n ImageView i4 = new ImageView(establishConnection(\"https://cdn.pixabay.com/photo/2017/05/12/09/07/china-2306580_1280.png\"));\n i4.fitHeightProperty().bind(pane.heightProperty().divide(4));\n i4.fitWidthProperty().bind(pane.widthProperty().divide(4));\n\n\n pane.add(i2, 0, 0, 1, 1);\n pane.add(i3, 1, 0, 1, 1);\n pane.add(i1, 1, 1, 1, 1);\n pane.add(i4, 0, 1, 1, 1);\n\n Scene s1 = new Scene(pane, 200, 200);\n primaryStage.setScene(s1);\n primaryStage.setTitle(\"Exercise14_01\");\n primaryStage.show();\n\n\n }", "public void createImage() {\n\t\tBufferedImage crab1ststep = null;\n\t\tBufferedImage crab2ndstep = null;\n\t\tBufferedImage crabhalf = null;\n\t\tBufferedImage crabfull = null;\n\t\tBufferedImage eye6 = null;\n\t\tBufferedImage eye5 = null;\n\t\tBufferedImage eye4 = null;\n\t\tBufferedImage eye3 = null;\n\t\tBufferedImage eye2 = null;\n\t\tBufferedImage eye1 = null;\n\t\tBufferedImage eyeClosed = null;\n\t\ttry {\n\t\t crabImage = ImageIO.read(new File(\"src/images/crab.png\"));\n\t\t crab1ststep = ImageIO.read(new File(\"src/images/crab1ststep.png\"));\n\t\t crab2ndstep = ImageIO.read(new File(\"src/images/crab2ndstep.png\"));\n\t\t crabhalf = ImageIO.read(new File(\"src/images/crabhalf.png\"));\n\t\t crabfull = ImageIO.read(new File(\"src/images/crabfull.png\"));\n\t\t crabWin = ImageIO.read(new File(\"src/images/crabwin.png\"));\n\t\t crabLose = ImageIO.read(new File(\"src/images/crablose.png\"));\n\t\t eye6 = ImageIO.read(new File(\"src/images/crab_eye6.png\"));\n\t\t eye5 = ImageIO.read(new File(\"src/images/crab_eye5.png\"));\n\t\t eye4 = ImageIO.read(new File(\"src/images/crab_eye4.png\"));\n\t\t eye3 = ImageIO.read(new File(\"src/images/crab_eye3.png\"));\n\t\t eye2 = ImageIO.read(new File(\"src/images/crab_eye2.png\"));\n\t\t eye1 = ImageIO.read(new File(\"src/images/crab_eye1.png\"));\n\t\t eyeClosed = ImageIO.read(new File(\"src/images/eyes_closed.png\"));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"bad\");\n\t\t}\n//\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n//\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n\t\tcrabAni.add(crab1ststep);\n//\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n\t\tcrabAni.add(crabImage);\n//\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\tcrabAni.add(crab2ndstep);\n\t\t\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabImage);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabhalf);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\tcrabAni2.add(crabfull);\n\t\t\n\t\tblink.add(eye6);\n\t\tblink.add(eye6);\n//\t\tblink.add(eye5);\n//\t\tblink.add(eye5);\n\t\tblink.add(eye4);\n\t\tblink.add(eye4);\n//\t\tblink.add(eye3);\n//\t\tblink.add(eye3);\n\t\tblink.add(eye2);\n\t\tblink.add(eye2);\n//\t\tblink.add(eye1);\n//\t\tblink.add(eye1);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n\t\tblink.add(eyeClosed);\n//\t\tblink.add(eye1);\n//\t\tblink.add(eye1);\n\t\tblink.add(eye2);\n\t\tblink.add(eye2);\n//\t\tblink.add(eye3);\n//\t\tblink.add(eye3);\n\t\tblink.add(eye4);\n\t\tblink.add(eye4);\n//\t\tblink.add(eye5);\n//\t\tblink.add(eye5);\n\t\tblink.add(eye6);\n\t\tblink.add(eye6);\n\t}", "int layout(ArrayList<ImageCell> images, int totalWidth);", "public void DestroyCandies() {\n NineExists = 0;\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (pictures2[i][j] == 9) {\n scorevalue += 10;\n NineExists = 1;\n combinationValid = 1;\n NoMovesRemaining = 0;\n for (int k = 0; k < j; k++) {\n pictures2[i][j - k] = pictures2[i][j - k - 1]; //candies are shifted down to fill in the spaces\n }\n pictures2[i][0] = indices[random.nextInt(indices.length)]; //random candies are generated\n\n }\n }\n }\n\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n pictures[i][j] = pictures2[i][j];\n\n }\n }\n System.out.println(\" \");\n for (int j = 0; j < 9; j++) {\n for (int i = 0; i < 9; i++) {\n System.out.print(pictures2[i][j] + \" \");\n }\n System.out.println();\n }\n\n if ((NineExists == 1)) { //if there is a combination\n LabelingCandiesToDestroy();\n }\n }", "public int getNumberOfBlocks(ImagePlus img, int m, int n);", "int regionSplitBits4DownSampledTable();", "public static void createBoard() {\n Checkers[] CheckerBoard = new Checkers[24];\n CheckerBoard[0] = new Checkers(0,1,\"black\");\n CheckerBoard[1] = new Checkers(0,3,\"black\");\n CheckerBoard[2] = new Checkers(0,5,\"black\");\n CheckerBoard[3] = new Checkers(0,7,\"black\");\n CheckerBoard[4] = new Checkers(1,0,\"black\");\n CheckerBoard[5] = new Checkers(1,2,\"black\");\n CheckerBoard[6] = new Checkers(1,4,\"black\");\n CheckerBoard[7] = new Checkers(1,6,\"black\");\n CheckerBoard[8] = new Checkers(2,1,\"black\");\n CheckerBoard[9] = new Checkers(2,3,\"black\");\n CheckerBoard[10] = new Checkers(2,5,\"black\");\n CheckerBoard[11] = new Checkers(2,7,\"black\");\n CheckerBoard[12] = new Checkers(5,1,\"red\");\n CheckerBoard[13] = new Checkers(5,3,\"red\");\n CheckerBoard[14] = new Checkers(5,5,\"red\");\n CheckerBoard[15] = new Checkers(5,7,\"red\");\n CheckerBoard[16] = new Checkers(6,0,\"red\");\n CheckerBoard[17] = new Checkers(6,2,\"red\");\n CheckerBoard[18] = new Checkers(6,4,\"red\");\n CheckerBoard[19] = new Checkers(6,6,\"red\");\n CheckerBoard[20] = new Checkers(7,1,\"red\");\n CheckerBoard[21] = new Checkers(7,3,\"red\");\n CheckerBoard[22] = new Checkers(7,5,\"red\");\n CheckerBoard[23] = new Checkers(7,7,\"red\");\n\n\n\n }", "public void verifyDestroyedBoatsOnLines(){\n for (int i = 0; i < canvasNumberOfLines; i++){\n int start = 0;\n int startCopy = 0;\n \n for (int j = 0; j < canvasNumberOfColumns; j++){\n if (gameMatrix[i][j] != 0 && booleanMatrixUserChoices[i][j] == 1 && booleanFoundBoats[i][j] == 0){\n if (startCopy != gameMatrix[i][j] || start == 0){\n start = gameMatrix[i][j]+1;\n startCopy = gameMatrix[i][j];\n }\n }\n \n if (gameMatrix[i][j] == 0){\n start = 0;\n startCopy = 0;\n }\n \n if (start > 0 && booleanMatrixUserChoices[i][j] == 1){\n start--;\n }\n \n if (start == 1){\n if (startCopy == 1){\n boatsNumber[0] -= 1;\n booleanFoundBoats[i][j] = 1;\n }\n else if (startCopy == 2){\n boatsNumber[1] -= 1;\n booleanFoundBoats[i][j] = 1;\n booleanFoundBoats[i][j-1] = 1;\n }\n else if (startCopy == 3){\n boatsNumber[2] -= 1;\n booleanFoundBoats[i][j] = 1;\n booleanFoundBoats[i][j-1] = 1;\n booleanFoundBoats[i][j-2] = 1;\n }\n else if (startCopy == 4){\n boatsNumber[3] -= 1;\n booleanFoundBoats[i][j] = 1;\n booleanFoundBoats[i][j-1] = 1;\n booleanFoundBoats[i][j-2] = 1;\n booleanFoundBoats[i][j-3] = 1;\n }\n else if (startCopy == 5){\n boatsNumber[4] -= 1;\n booleanFoundBoats[i][j] = 1;\n booleanFoundBoats[i][j-1] = 1;\n booleanFoundBoats[i][j-2] = 1;\n booleanFoundBoats[i][j-3] = 1;\n booleanFoundBoats[i][j-4] = 1;\n }\n \n start = 0;\n startCopy = 0;\n }\n \n } \n } \n }", "public static void determineSizes(){\n maxPieceSize = 65536*8;\n if(pieceSize > maxPieceSize){\n \t//make pieceSize equal to the max\n \tpieceSize = maxPieceSize - 1; //minus one because we want a buffer space\n }\n\n windowSize = fileSize/10 ;\n\t}", "int[][][] sepiaToneImage(int[][][] imageArray, int height, int width);", "void lowerNumberOfStonesOnBoard();", "private void fillShotsArea(int[][] shots, int x, int y) {\n for (int i = x; inSea(i) && shots[i][y] == 4; i--) fillAreaAround(shots, i, y);\n for (int i = x; inSea(i) && shots[i][y] == 4; i++) fillAreaAround(shots, i, y);\n for (int i = y; inSea(i) && shots[x][i] == 4; i--) fillAreaAround(shots, x, i);\n for (int i = y; inSea(i) && shots[x][i] == 4; i++) fillAreaAround(shots, x, i);\n }", "public static void main(String[] args) {\n\tArrayList<Integer[]> chunks = new ArrayList<Integer[]>();\n\t\t\n\t\tfor(int x = -128; x<=128; x++){\n\t\t\t\n\t\t\tfor (int z = -128; z<=128; z++){\n\t\t\t\t\n\t\t\t\tif(x*x + z*z < 128*128){\n\t\t\t\t\t/*\n\t\t\t\t\t * Makes sure that there is no duplicate.\n\t\t\t\t\t */\n\t\t\t\t\tif(!HasChunks(new Integer[] {(int) x/ 16, (int) z/16}, chunks)){\n\t\t\t\t\t\t\n\t\t\t\t\t\tchunks.add(new Integer[] {(int) x/ 16, (int) z/16});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t/*\n\t\t * The programm testd many chunks with many seeds in order to try to find the good location.\n\t\t */\n\t\tfor(long seed = 32000; seed<1000000L; seed++){\n\t\t \n\t\t\t//from chunk(-100;-100) to chunk(100;100) which is 4.10^4 chunks^2.seed^-1\n\t\t\tfor(int cx = -100; cx<=100; cx++){\n\t\t\t\tfor (int cz = -100; cz<=100; cz++){\n\t\t\t\n\t\t\t\t\tboolean flag = true;\n\t\t\t\t\t\t//browse the chunks which are in the 8chunk circle radius.\n\t\t\t\t\t\tfor(Integer[] ch: chunks){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isSlimeChunk(seed, cx+ch[0], cz+ch[1])){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//no chunks contains slimechunks --> good location, we need to output the result.\n\t\t\t\t\t\tif(flag){\n\t\t\t\t\t\tSystem.out.println(\"Seed=\"+String.valueOf(seed)+\" ,ChunkX=\"+cx+\" ,ChunkZ\"+cz);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void calculateMaps() {\n\tsrcrows = new int[destHeight + 1];\n\tfor (int y = 0; y <= destHeight; y++) {\n\t srcrows[y] = (2 * y * srcHeight + srcHeight) / (2 * destHeight);\n\t}\n\tsrccols = new int[destWidth + 1];\n\tfor (int x = 0; x <= destWidth; x++) {\n\t srccols[x] = (2 * x * srcWidth + srcWidth) / (2 * destWidth);\n\t}\n\n float xscale = ( ( float ) srcWidth - 1 ) / ( ( float ) destWidth );\n float yscale = ( ( float ) srcHeight - 1 ) / ( ( float ) destHeight ) ;\n\n srcxlarr = new int[destWidth+1];\n srcxuarr = new int[destWidth+1];\n srcxarr = new int[destWidth+1];\n\n for (int x = 0 ; x <= destWidth;x++) {\n float tmp = x * xscale ;\n srcxlarr[x] = (int) Math.floor( tmp ) ;\n srcxuarr[x] = (int) Math.ceil( tmp ) ;\n srcxarr[x] = (int) ( ( tmp - srcxlarr[x] ) * 255f );\n }\n\n srcylarr = new int[destHeight+1];\n srcyuarr = new int[destHeight+1];\n srcyarr = new int[destHeight+1];\n\n for (int y = 0 ; y <= destHeight;y++) {\n float tmp = y * yscale ;\n srcylarr[y] = (int) Math.floor( tmp ) ;\n srcyuarr[y] = (int) Math.ceil( tmp ) ;\n srcyarr[y] = (int) ( ( tmp - srcylarr[y] ) * 255f );\n }\n\n /*\n System.out.println( \"srcrows\" );\n for (int i=0;i<srcrows.length;i++) {\n System.out.print( srcrows[i] + \" \" );\n }\n\n System.out.println( \"\\nsrccols\" );\n for (int i=0;i<srccols.length;i++) {\n System.out.print( srccols[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcxlarr\" );\n for (int i=0;i<srcxlarr.length;i++) {\n System.out.print( srcxlarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcxuarr\" );\n for (int i=0;i<srcxuarr.length;i++) {\n System.out.print( srcxuarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcylarr\" );\n for (int i=0;i<srcxlarr.length;i++) {\n System.out.print( srcylarr[i] + \" \" );\n }\n\n System.out.println( \"\\nsrcyuarr\" );\n for (int i=0;i<srcxuarr.length;i++) {\n System.out.print( srcyuarr[i] + \" \" );\n }\n */\n }", "public static void testTrackBreakdown(){\n\t\tImageJ imj = new ImageJ(ImageJ.NO_SHOW);\n\t\t\n//\t\tExperiment_Processor ep;\n\t\t\n//\t\tProcessingParameters prParam = new ProcessingParameters();\n//\t\tprParam.diagnosticIm = false;\n\t\t\n\t\t//Set src and dest\n\t\tString srcName = \"E:\\\\testing\\\\Java Backbone Fitting\\\\Fitting Params\\\\fullExptWithAreaSplit_0.7-1.4_otherPtSplit\\\\divergedTrackExp.prejav\";\n\t\tString dstBaseDir = \"E:\\\\testing\\\\Java Backbone Fitting\\\\Track Breakdown\\\\\";\n\t\t\n\t\tExperiment ex = new Experiment(srcName);\n\t\t//Find a long track\n\t\t\n//\t\tint len = 16726;\n\t\t//Find a track that's the length of the experiment\n//\t\tSystem.out.println(\"Finding full-experiment track in \"+ex.tracks.size()+\" tracks...\");\n\t\tTrack longTrack = null;\n//\t\tint i;\n//\t\tfor (i=0; (i<ex.tracks.size() && longTrack==null); i++){\n//\t\t\tif (ex.getTrackFromInd(i).points.size()==len) longTrack=ex.getTrackFromInd(i);\n//\t\t}\n//\t\tSystem.out.println(\"Found track (ind=\"+i+\")\");\n\t\t\n\t\t\n\t\tVector<Track> fits = new Vector<Track>();\n\t\tVector<Track> divs = new Vector<Track>();\n\t\tBackboneFitter bbf;\n\t\tfor (int j=0; j<ex.tracks.size(); j++){\n\t\t\t\n\t\t\tlongTrack = ex.tracks.get(j);\n\t\t\tint len = longTrack.points.size();\n\t\t\tint clipLen = 500;\n\t\t\tif (len>(clipLen*3)){\n\t\t\t\tVector<Track> fitTracks = new Vector<Track>();\n\t\t\t\tVector<Track> divTracks = new Vector<Track>();\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Clipping and Fitting track...\");\n\t\t\t\tfor (int i=0; i<=len/clipLen; i++){\n\t\t\t\t\n\t\t\t\t\tbbf = new BackboneFitter();\n\t\t//\t\t\tbbf.clipEnds = true;\n\t\t\t\t\tint sf = 1+i*clipLen;\n\t\t\t\t\tint ef = (len<((i+1)*clipLen))? len-1: (i+1)*clipLen;\n\t\t\t\t\t\n\t\t\t\t\tTrack clipTrack = new Track(longTrack.getPoints().subList(sf, ef), i);\n\t\t\t\t\t\t\n\t\t\t\t\t///method no longer exists\n\t\t\t\t\t//bbf.fitTrack(clipTrack);\n\t\t\t\t\t///\n\t\t\t\t\t\n\t\t\t\t\tif (bbf.getTrack()!=null){\n\t\t\t\t\t\tfitTracks.add(bbf.getTrack());\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdivTracks.add(clipTrack);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfits.addAll(fitTracks);\n\t\t\t\tdivs.addAll(divTracks);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"...Done fitting: \"+fitTracks.size()+\"/\"+(fitTracks.size()+divTracks.size()+\" were fit properly\"));\n\t\t\t\t\n\t\t\t\tExperiment fitEx = new Experiment();\n\t\t\t\tfitEx.tracks = fitTracks;\n\t\t\t\tExperiment divEx = new Experiment();\n\t\t\t\tdivEx.tracks = divTracks;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tFile f = new File(dstBaseDir+\"tracks\\\\track\"+j+\"\\\\\");\n\t\t\t\t\tif (!f.exists()) f.mkdirs();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tf = new File(dstBaseDir+\"tracks\\\\track\"+j+\"\\\\\"+\"fitTrackExp.jav\");\n\t\t\t\t\tSystem.out.println(\"Saving fit track experiment to \"+f.getPath());\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tfitEx.toDisk(dos, null);\n\t\t\t\t\t\tdos.close();\n\t\t\t\t\t\tSystem.out.println(\"Done saving fit tracks\");\n\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tf = new File(dstBaseDir+\"tracks\\\\track\"+j+\"\\\\\"+\"divergedTrackExp.prejav\");\n\t\t\t\t\tSystem.out.println(\"Saving error track experiment to \"+f.getPath());\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tdivEx.toDisk(dos, null);\n\t\t\t\t\t\tdos.close();\n\t\t\t\t\t\tSystem.out.println(\"Done saving diverged tracks\");\n\t\t\t\t\t} catch(Exception e){\n\t\t\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t\t\t}\n\t\t\n\t\t\t\t} catch (Exception e){\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tExperiment fitEx = new Experiment();\n\t\tfitEx.tracks = fits;\n\t\tExperiment divEx = new Experiment();\n\t\tdivEx.tracks = divs;\n\t\t\n\t\ttry {\n\t\t\tFile f = new File(dstBaseDir+\"allFitTracks.jav\");\n\t\t\tSystem.out.println(\"Saving fit track experiment to \"+f.getPath());\n\t\t\ttry{\n\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\n\t\t\t\tfitEx.toDisk(dos, null);\n\t\t\t\tdos.close();\n\t\t\t\tSystem.out.println(\"Done saving fit tracks\");\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t}\n\t\t\t\n\t\t\tf = new File(dstBaseDir+\"allDivTracks.prejav\");\n\t\t\tSystem.out.println(\"Saving error track experiment to \"+f.getPath());\n\t\t\ttry{\n\t\t\t\tDataOutputStream dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f))); \n\t\t\t\t\t\t\n\t\t\t\tdivEx.toDisk(dos, null);\n\t\t\t\tdos.close();\n\t\t\t\tSystem.out.println(\"Done saving diverged tracks\");\n\t\t\t} catch(Exception e){\n\t\t\t\tSystem.out.println(\"Save error\");\n\t\t\t}\n\n\t\t} catch (Exception e){\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\timj.quit();\n\t}", "public void refactor() {\n this.maxX = SnakeGame.getxSquares();\n this.maxY = SnakeGame.getySquares();\n snakeSquares = new int[this.maxX][this.maxY];\n fillSnakeSquaresWithZeros();\n createStartSnake();\n }", "protected void reduceBitmapMode(BufferedImage img, int xoffs, int yoffs) {\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tMap<Integer, Integer>[] histograms = new Map[(img.getWidth() + 7) / 8];\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tMap<Integer, Integer>[] histogramSides = new Map[(img.getWidth() + 7) / 8];\n \t\t\n \t\t// be sure we select the 8 pixel groups sensibly\n \t\tif ((xoffs & 7) > 3)\n \t\t\txoffs = (xoffs + 7) & ~7;\n \t\telse\n \t\t\txoffs = xoffs & ~7;\n \t\t\n \t\tint width = img.getWidth();\n \t\tfor (int y = 0; y < img.getHeight(); y++) {\n \t\t\t// first scan: get histogram for each range\n \t\t\t\n \t\t\tfor (int x = 0; x < width; x += 8) {\n \t\t\t\tMap<Integer, Integer> histogram = new HashMap<Integer, Integer>();\n \t\t\t\tMap<Integer, Integer> histogramSide = new HashMap<Integer, Integer>();\n \t\t\t\t\n \t\t\t\thistograms[x / 8] = histogram;\n \t\t\t\thistogramSides[x / 8] = histogramSide;\n \t\t\t\t\n \t\t\t\tint maxx = x + 8 < width ? x + 8 : width;\n \t\t\t\t\n \t\t\t\tint scmx;\n \t\t\t\tint scmn;\n \t\t\t\t\n \t\t\t\t// scan outside the 8 pixels to get a broader\n \t\t\t\t// idea of what colors are important\n \t\t\t\tscmn = Math.max(0, x - 4);\n \t\t\t\tscmx = Math.min(width, maxx + 4);\n \t\t\t\t\n \t\t\t\tint pixel = 0;\n \t\t\t\tfor (int xd = scmn; xd < scmx; xd++) {\n \t\t\t\t\tif (xd < width)\n \t\t\t\t\t\tpixel = img.getRGB(xd, y);\n \t\t\t\t\t\n \t\t\t\t\tMap<Integer, Integer> hist = (xd >= x && xd < maxx) ? histogram : histogramSide;\n \t\t\t\t\t\n \t\t\t\t\tInteger cnt = hist.get(pixel);\n \t\t\t\t\tif (cnt == null)\n \t\t\t\t\t\tcnt = 1;\n \t\t\t\t\telse\n \t\t\t\t\t\tcnt++;\n \t\t\t\t\t\n \t\t\t\t\thist.put(pixel, cnt);\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\n \t\t\tfor (int x = 0; x < width; x += 8) {\n \t\t\t\tMap<Integer, Integer> histogram = histograms[x / 8];\n \t\t\t\tMap<Integer, Integer> histogramSide = histogramSides[x / 8];\n \t\t\t\t\n \t\t\t\tint maxx = x + 8 < width ? x + 8 : width;\n \t\t\t\t\n \t\t\t\t// get prominent colors, weighing colors that also\n \t\t\t\t// appear in surrounding pixels higher \n \t\t\t\tList<Pair<Integer, Integer>> sorted = new ArrayList<Pair<Integer,Integer>>();\n \t\t\t\tfor (Map.Entry<Integer, Integer> entry : histogram.entrySet()) {\n \t\t\t\t\tInteger c = entry.getKey();\n \t\t\t\t\tint cnt = entry.getValue() * 2;\n \t\t\t\t\tInteger scnt = histogramSide.get(c);\n \t\t\t\t\tif (scnt != null)\n \t\t\t\t\t\tcnt += scnt;\n \t\t\t\t\tsorted.add(new Pair<Integer, Integer>(c, cnt));\n \t\t\t\t}\n \t\t\t\tCollections.sort(sorted, new Comparator<Pair<Integer, Integer>>() {\n \t\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic int compare(Pair<Integer, Integer> o1,\n \t\t\t\t\t\t\tPair<Integer, Integer> o2) {\n \t\t\t\t\t\treturn o2.second - o1.second;\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t});\n \t\n \t\t\t\tint fpixel, bpixel;\n \t\t\t\tif (sorted.size() >= 2) {\n \t\t\t\t\tfpixel = sorted.get(0).first;\n \t\t\t\t\tbpixel = sorted.get(1).first;\n \t\t\t\t} else {\n \t\t\t\t\tfpixel = bpixel = sorted.get(0).first;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tint newPixel = 0;\n \t\t\t\tfor (int xd = x; xd < maxx; xd++) {\n \t\t\t\t\tif (xd < width)\n \t\t\t\t\t\tnewPixel = img.getRGB(xd, y);\n \t\t\t\t\t\n \t\t\t\t\tif (newPixel != fpixel && newPixel != bpixel) {\n \t\t\t\t\t\tif (fpixel < bpixel) {\n \t\t\t\t\t\t\tnewPixel = newPixel <= fpixel ? fpixel : bpixel;\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tnewPixel = newPixel < bpixel ? fpixel : bpixel;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\timageData.setPixel(xd + xoffs, y + yoffs, newPixel);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "public static int[][] getWalls(int displaySize, int value) {\n int[][] display = null;\n if(value == 0) {\n display = new int[][]{\n { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },\n { 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1 },\n { 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1 },\n { 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1 },\n { 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 },\n { 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 },\n { 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1 },\n { 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 },\n { 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 1 },\n { 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 },\n { 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } \n };\n\n } else if(value ==1) {\n display = new int[][]{\n { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1 },\n { 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } \n };\n } else if(value == 2) {\n display = new int[][]{\n { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1 },\n { 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } \n };\n } else if(value == 3) {\n display = new int[][]{\n { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },\n { 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1 },\n { 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1 },\n { 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } \n };\n } else if(value == 4) {\n display = new int[][]{\n { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1 },\n { 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1 },\n { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } \n };\n }\n\n return display;\n }", "public PixImage toPixImage() {\n // Replace the following line with your solution.\n\t PixImage image=new PixImage(getWidth(),getHeight());\n\t \n\t DList<int[]> runs_new=new DList<int[]>();\n\t\t\t for(RunIterator i=this.iterator();i.hasNext();) {\n\t\t\t int[] run = i.next();\n\t\t\t for (int t= 0; t < run[0]; t++) {\n\t\t\t \t runs_new.addLast(run);\n\t\t\t System.out.print(\"(\" + run[1]+\" \"+ run[2]+\" \"+run[3]+\")\");\n\t\t } \n\t }\t\n int position=1;\n for(int j=0;j<height;j++) {\n\t for(int i=0;i<width;i++) {\n\t\t\n\t\t DListNode<int[]> run_new=runs_new.nth(position);\n\t\t position++;\n\t\t \n\t\t image.setPixel(i, j, (short) run_new.item[1], (short) run_new.item[2], (short) run_new.item[3]);\n\t }\n }\n\t\t \n\t\t \n\t return image;\n }", "public void average()throws IOException{\n String input = j.showInputDialog(\"Choose how many images you'll be using:\");\n int q= Integer.parseInt(input);\n ArrayList<Scanner> f = new ArrayList();\n for(int a=0;a<q;a++){\n input = j.showInputDialog(\"Choose a file (\"+(a+1)+\"/\"+q+ \") to use:\");\n f.add(new Scanner(new File(input+\".ppm\")));\n }\n input = j.showInputDialog(\"Choose a name for the new file:\");\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(input+\".ppm\")));\n out.println(\"P3\");\n int height[]= new int[q]; int width[]= new int[q];\n int largest=0;\n for(int a=0;a<q;a++){\n f.get(a).next();\n height[a]=Integer.parseInt(f.get(a).next());\n width[a]=Integer.parseInt(f.get(a).next());\n //f.get(a).next();\n }\n for(int a=0;a<q;a++){\n if(height[largest]*width[largest]<height[a]*width[a]){\n largest=a;\n }\n }\n out.println(height[largest]);out.println(width[largest]);\n int ass=0;\n int azz=0;\n\n for(int x=0;x<width[largest];x++){\n for(int y=0;y<height[largest];y++){\n for(int c=0;c<3;c++){\n for(int a=0;a<q;a++){\n if(f.get(a).hasNext()){\n if(x<width[a]&&y<height[a]){\n ass=ass+Integer.parseInt(f.get(a).next());\n azz++;\n }\n }\n }\n ass=ass/azz;\n out.print(ass+\" \");\n ass=0;\n azz=0;\n }\n }\n }\n\n for(int a =0;a<q;a++){\n f.get(a).close();\n }\n out.close();\n System.exit(0);\n }", "public RGBImage makeRGBImage()\r\n {\r\n\tint rows = getHeight();\r\n\tint cols = getWidth();\r\n \r\n\tshort[][] red = new short[rows][cols]; \r\n\tshort[][] green = new short[rows][cols]; \r\n\tshort[][] blue = new short[getHeight()][getWidth()]; \r\n \r\n\t@SuppressWarnings(\"unused\")\r\n\tdouble H, S, I;\r\n\tshort v1, v2, v3, h, h0, sat, intens;\r\n\tint sector;\r\n\r\n\tfor (int row = 0; row < rows; row++)\r\n\t{\r\n\t for (int col = 0; col < cols; col++)\r\n\t {\r\n\r\n\t\tif (saturation[row][col] == 0)\r\n\t\t{\r\n\t\t red[row][col] = intensity[row][col];\r\n\t\t green[row][col] = intensity[row][col];\r\n\t\t blue[row][col] = intensity[row][col];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t h0 = hue[row][col];\r\n\r\n\t\t if (h0 <= (L-1)/3)\r\n\t\t {\r\n\t\t\th = (short)h0;\r\n\t\t\tsector = 1;\r\n\t\t }\r\n\t\t else if (h0 <= 2*(L-1)/3)\r\n\t\t {\r\n\t\t\th = (short)(h0 - (L-1)/3);\r\n\t\t\tsector = 2;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\th = (short)(h0 - 2*(L-1)/3);\r\n\t\t\tsector = 3;\r\n\t\t }\r\n\r\n\t\t H = h * 2 * Math.PI / (L-1);\r\n\r\n\t\t sat = saturation[row][col];\r\n\t\t S = (double)sat / (L-1);\r\n\r\n\t\t intens = intensity[row][col]; \r\n\t\t I = (double)intens / (L-1);\r\n\r\n\t\t v1 = (short)Math.round(intens * (1 - S));\r\n\t\t v1 = checkInterval (v1);\r\n\r\n\t\t v2 = (short)Math.round(intens * (1 + S * Math.cos(H)/\r\n\t\t\t\t\t\t Math.cos(Math.PI/3 - H) ));\r\n\t\t v2 = checkInterval (v2);\r\n \r\n\t\t v3 = (short)Math.round(3 * intens - (v1 + v2));\r\n\t\t v3 = checkInterval (v3);\r\n \r\n\t\t if (sector == 1)\r\n\t\t {\r\n\t\t\tblue[row][col] = v1;\r\n\t\t\tred[row][col] = v2;\r\n\t\t\tgreen[row][col] = v3;\r\n\t\t }\r\n\t\t else if (sector == 2)\r\n\t\t {\r\n\t\t\tred[row][col] = v1;\r\n\t\t\tgreen[row][col] = v2;\r\n\t\t\tblue[row][col] = v3;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\tgreen[row][col] = v1;\r\n\t\t\tblue[row][col] = v2;\r\n\t\t\tred[row][col] = v3;\r\n\t\t }\r\n\t\t}\r\n\t }\r\n\t}\r\n \r\n\treturn new RGBImage (red, green, blue);\r\n }", "private void startProcessing() {\n Util.lockOrientation(this);\n\n final int[] imageSpacing = Prefs.imageSpacing(MainActivity.this);\n final int SPACING_HORIZONTAL = imageSpacing[0];\n final int SPACING_VERTICAL = imageSpacing[1];\n\n final boolean horizontal = stackHorizontallyCheck.isChecked();\n int resultWidth;\n int resultHeight;\n\n log(\"--------------------------------\");\n if (horizontal) {\n log(\"Horizontally stacking\");\n\n // The width of the resulting image will be the largest width of the selected images\n // The height of the resulting image will be the sum of all the selected images' heights\n int maxHeight = -1;\n int minHeight = -1;\n\n // Traverse all selected images to find largest and smallest heights\n traverseIndex = -1;\n int[] size;\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n log(\"Image %d size: %d/%d\", traverseIndex, size[0], size[1]);\n if (maxHeight == -1)\n maxHeight = size[1];\n else if (size[1] > maxHeight)\n maxHeight = size[1];\n if (minHeight == -1)\n minHeight = size[1];\n else if (size[1] < minHeight)\n minHeight = size[1];\n }\n log(\"Min height: %d, max height: %d\", minHeight, maxHeight);\n\n // Traverse images again now that we know the min/max height, scale widths accordingly\n traverseIndex = -1;\n int totalWidth = 0;\n boolean scalePriority = Prefs.scalePriority(this);\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n int w = size[0];\n int h = size[1];\n float ratio = (float) w / (float) h;\n if (scalePriority) {\n // Scale to largest\n if (h < maxHeight) {\n h = maxHeight;\n w = (int) ((float) h * ratio);\n log(\"Height of image %d is less than max (%d), scaled up to %d/%d...\",\n traverseIndex, maxHeight, w, h);\n }\n } else {\n // Scale to smallest\n if (h > minHeight) {\n h = minHeight;\n w = (int) ((float) h * ratio);\n log(\"Height of image %d is larger than min (%d), scaled down to %d/%d...\",\n traverseIndex, minHeight, w, h);\n }\n }\n totalWidth += w;\n }\n\n // Compensate for spacing\n totalWidth += SPACING_HORIZONTAL * (selectedPhotos.length + 1);\n minHeight += SPACING_VERTICAL * 2;\n maxHeight += SPACING_VERTICAL * 2;\n\n // Crash avoidance\n if (totalWidth == 0) {\n Util.showError(this, new Exception(\"The total generated width is 0. Please \" +\n \"notify me of this through the Google+ community.\"));\n return;\n } else if (maxHeight == 0) {\n Util.showError(this, new Exception(\"The max found height is 0. Please notify \" +\n \"me of this through the Google+ community.\"));\n return;\n }\n\n // Print data and create large Bitmap\n log(\"Total width with spacing = %d, max height with spacing = %d\", totalWidth, maxHeight);\n resultWidth = totalWidth;\n resultHeight = scalePriority ? maxHeight : minHeight;\n } else {\n log(\"Vertically stacking\");\n\n // The height of the resulting image will be the largest height of the selected images\n // The width of the resulting image will be the sum of all the selected images' widths\n int maxWidth = -1;\n int minWidth = -1;\n\n // Traverse all selected images and load min/max width, scale height accordingly\n traverseIndex = -1;\n int[] size;\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n log(\"Image %d size: %d/%d\", traverseIndex, size[0], size[1]);\n if (maxWidth == -1)\n maxWidth = size[0];\n else if (size[0] > maxWidth)\n maxWidth = size[0];\n if (minWidth == -1)\n minWidth = size[0];\n else if (size[0] < minWidth)\n minWidth = size[0];\n }\n\n // Traverse images again now that we know the min/max height, scale widths accordingly\n traverseIndex = -1;\n int totalHeight = 0;\n boolean scalePriority = Prefs.scalePriority(this);\n while ((size = getNextBitmapSize()) != null) {\n if (size[0] == 0 && size[1] == 0) return;\n int w = size[0];\n int h = size[1];\n float ratio = (float) h / (float) w;\n if (scalePriority) {\n // Scale to largest\n if (w < maxWidth) {\n w = maxWidth;\n h = (int) ((float) w * ratio);\n log(\"Height of image %d is larger than min (%d), scaled down to %d/%d...\",\n traverseIndex, maxWidth, w, h);\n }\n } else {\n // Scale to smallest\n if (w > minWidth) {\n w = minWidth;\n h = (int) ((float) w * ratio);\n log(\"Width of image %d is larger than min (%d), scaled height down to %d/%d...\",\n traverseIndex, minWidth, w, h);\n }\n }\n totalHeight += h;\n }\n\n // Compensate for spacing\n totalHeight += SPACING_VERTICAL * (selectedPhotos.length + 1);\n minWidth += SPACING_HORIZONTAL * 2;\n maxWidth += SPACING_HORIZONTAL * 2;\n\n // Crash avoidance\n if (totalHeight == 0) {\n Util.showError(this, new Exception(\"The total generated height is 0. Please \" +\n \"notify me of this through the Google+ community.\"));\n return;\n } else if (maxWidth == 0) {\n Util.showError(this, new Exception(\"The max found width is 0. Please notify \" +\n \"me of this through the Google+ community.\"));\n return;\n }\n\n // Print data and create large Bitmap\n log(\"Max width with spacing = %d, total height with spacing = %d\", maxWidth, totalHeight);\n resultWidth = scalePriority ? maxWidth : minWidth;\n resultHeight = totalHeight;\n }\n\n ImageSizingDialog.show(this, resultWidth, resultHeight);\n }", "public static void init()\n {\n \tSpriteSheet sheet = new SpriteSheet(ImageLoader.loadImage(\"/sprites/spritesheet.png\"));\n BufferedImage img;\n /*for(int y = 0;y<4;y++)\n \t{\n \t\t\n \timg = sheet.crop(width*y,0,width,height);\n \t\t\n \t\tplayer.add(img);\n \t}*/\n hero = sheet.crop(0,0,width,height);\n heroUp = sheet.crop(width,0,width,height);\n heroLeft = sheet.crop(width*2,0,width,height);\n heroRight = sheet.crop(width*3,0,width,height);\n \n heroDown1 = sheet.crop(0,height+32,width+1,height);\n heroDown2 = sheet.crop(width+1,height+32,width+1,height);\n heroUp1 = sheet.crop(width*2+2,height+32,width,height);\n heroUp2 = sheet.crop(width*3+2,height+32,width,height);\n heroLeft1 = sheet.crop(width*4+2,height+32,width,height);\n heroLeft2 = sheet.crop(width*5+2,height+32,width,height);\n heroRight1 = sheet.crop(width*6+2,height+32,width,height);\n heroRight2 = sheet.crop(width*7+2,height+32,width,height);\n \n /*for(int i = 0;i<4;i++)\n {\n \tfor(int y = 0;y<4;y++)\n \t{\n \t\tif(y==1)\n \t\t{\n \t\t\timg = sheet.crop(width*y,height*i,width,height);\n \t\t}\n \t\telse\n \t\t{\n \t\t\timg = sheet.crop(width*y+1,height*i+1,width,height);\n \t\t}\n \t\tplayer.add(img);\n \t}\n }*/\n sheet = new SpriteSheet(ImageLoader.loadImage(\"/sprites/PokemonTileSet.png\"));\n for(int i = 0;i<50;i++)\n {\n \tfor(int y = 0;y<8;y++)\n \t{\n \t\timg = sheet.crop(tileW*y,tileH*i,tileW,tileH);\n \t\tassets.add(img);\n \t}\n }\n \n /*\n hero = sheet.crop(0,0,width,height);\n heroUp = sheet.crop(width,0,width,height);\n heroLeft = sheet.crop(width*2,0,width,height);\n heroRight = sheet.crop(width*3,0,width,height);\n \n treeTopLeft = sheet.crop(0,firstRow,tWidth,tHeight);\n treeTopRight = sheet.crop(tWidth,firstRow,tWidth,tHeight);\n treeMidLeft = sheet.crop(tWidth*2,firstRow,tWidth,tHeight);\n treeMidRight = sheet.crop(tWidth*3,firstRow,tWidth,tHeight);\n treeBotLeft = sheet.crop(tWidth*4,firstRow,tWidth,tHeight);\n treeBotRight = sheet.crop(tWidth*5,firstRow,tWidth,tHeight);\n treeTopLeftGrass = sheet.crop(tWidth*6,firstRow,tWidth,tHeight);\n treeTopRightGrass = sheet.crop(tWidth*7,firstRow,tWidth,tHeight);\n treeTopLeftMushroom = sheet.crop(tWidth*8,firstRow,tWidth,tHeight);\n grass = sheet.crop(tWidth*9,firstRow,tWidth,tHeight);\n \n wildGrass = sheet.crop(0,secondRow,tWidth,tHeight);\n mushroom = sheet.crop(tWidth,secondRow,tWidth,tHeight);\n logLeft = sheet.crop(tWidth*2,secondRow,tWidth,tHeight);\n logRight = sheet.crop(tWidth*3,secondRow,tWidth,tHeight);\n ledgeLeft = sheet.crop(tWidth*4,secondRow,tWidth,tHeight);\n ledgeMid = sheet.crop(tWidth*5,secondRow,tWidth,tHeight);\n ledgeRight = sheet.crop(tWidth*6,secondRow,tWidth,tHeight);\n treeLeftOverlap = sheet.crop(tWidth*7,secondRow,tWidth,tHeight);\n treeRightOverlap = sheet.crop(tWidth*8,secondRow,tWidth,tHeight);\n \n heroWalkingDown1 = sheet.crop(0,thirdRow,width+1,height);\n heroWalkingDown2 = sheet.crop(width+1,thirdRow,width+1,height);\n heroWalkingUp1 = sheet.crop(width*2+1,thirdRow,width,height);\n heroWalkingUp2 = sheet.crop(width*3+1,thirdRow,width,height);\n heroWalkingLeft1 = sheet.crop(width*4+1,thirdRow,width,height);\n heroWalkingLeft2 = sheet.crop(width*5+1,thirdRow,width,height);\n heroWalkingRight1 = sheet.crop(width*6+1,thirdRow,width,height);\n heroWalkingRight2 = sheet.crop(width*7+1,thirdRow,width,height);\n */\n }", "private static int[] findMiddles(int width, int height, BufferedImage oldImage)\n {\n // Stores the heighest up most and left most pixels that are black\n int firstX = width;\n int firstY = -1;\n\n // Stores the heighest down most and right most pixels that are black\n int lastX = 0;\n int lastY = 0;\n\n // For every pixel in the original image\n for(int y = 0; y < height; y++)\n {\n for(int x = 0; x < width; x++)\n {\n // If the pixel is black\n if(oldImage.getRGB(x, y) != 0xFF000000)\n {\n // If the up most pixel hasn't been found yet (the first one\n // has to be the upmost because of the way the image is parsed)\n if(firstY == -1)\n {\n firstY = y;\n }\n\n // The down most pixel has to be the last black pixel found\n // because of the way the image is parsd\n lastY = y;\n\n // If the current pixel is to the left of the current left\n // most pixel found\n if(firstX > x)\n {\n firstX = x;\n }\n\n // If the current pixel is to the right of the current right\n // most pixel found\n if(lastX < x)\n {\n lastX = x;\n }\n }\n }\n }\n\n // Computes the center of the rectangle found above, this should be about\n // the center of the digit as long as there are no random black pixels\n int middleX = (lastX - firstX) / 2 + firstX;\n int middleY = (lastY - firstY) / 2 + firstY;\n int middle[] = { middleX, middleY };\n return middle;\n }", "@Override\n\tprotected BufferedImage getButtonImage(ArrayList<Double> phenotype, int width, int height,\n\t\t\tdouble[] inputMultipliers) {\n\t\tdouble[] doubleArray = ArrayUtil.doubleArrayFromList(phenotype);\n\t\tList<List<Integer>> level = levelListRepresentation(doubleArray);\n\t\t//sets the height and width for the rendered level to be placed on the button \n\t\tint width1 = LodeRunnerRenderUtil.RENDERED_IMAGE_WIDTH;\n\t\tint height1 = LodeRunnerRenderUtil.RENDERED_IMAGE_HEIGHT;\n\t\tBufferedImage image = null;\n\t\ttry {\n\t\t\t//if we are using the mapping with 7 tiles, other wise use 6 tiles \n\t\t\t// ACTUALLY: We can have extra unused tiles in the image array. Easier to have one method that keeps them all around\n\t\t\t//\t\t\tif(Parameters.parameters.booleanParameter(\"lodeRunnerDistinguishesSolidAndDiggableGround\")){\n\t\t\tList<Point> emptySpaces = LodeRunnerGANUtil.fillEmptyList(level);\n\t\t\tRandom rand = new Random(Double.doubleToLongBits(doubleArray[0]));\n\t\t\tLodeRunnerGANUtil.setSpawn(level, emptySpaces, rand);\n\t\t\tif(Parameters.parameters.booleanParameter(\"showInteractiveLodeRunnerSolutionPaths\")) {\n\t\t\t\tList<List<Integer>> originalLevel = ListUtil.deepCopyListOfLists(level);\n\t\t\t\tLodeRunnerState start = new LodeRunnerState(level);\n\t\t\t\t//\t\t\t\tSystem.out.println(level);\n\t\t\t\tSearch<LodeRunnerAction,LodeRunnerState> search = new AStarSearch<>(LodeRunnerState.manhattanToFarthestGold);\n\t\t\t\tHashSet<LodeRunnerState> mostRecentVisited = null;\n\t\t\t\tArrayList<LodeRunnerAction> actionSequence = null;\n\t\t\t\ttry {\n\t\t\t\t\t//tries to find a solution path to solve the level, tries as many time as specified by the last int parameter \n\t\t\t\t\t//represented by red x's in the visualization \n\t\t\t\t\tif(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_ASTAR) {\n\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(level);\n\t\t\t\t\t\tactionSequence = ((AStarSearch<LodeRunnerAction, LodeRunnerState>) search).search(start, true, Parameters.parameters.integerParameter(\"aStarSearchBudget\"));\n\t\t\t\t\t} else if(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_TSP){\n\t\t\t\t\t\tPair<ArrayList<LodeRunnerAction>, HashSet<LodeRunnerState>> tspInfo = LodeRunnerTSPUtil.getFullActionSequenceAndVisitedStatesTSPGreedySolution(originalLevel);\n\t\t\t\t\t\tactionSequence = tspInfo.t1;\n\t\t\t\t\t\tmostRecentVisited = tspInfo.t2;\n\t\t\t\t\t\t//System.out.println(\"actionSequence: \"+ actionSequence);\n\t\t\t\t\t\t//System.out.println(\"mostRecentVisited: \"+mostRecentVisited);\n\t\t\t\t\t} \n\t\t\t\t\telse throw new IllegalArgumentException(\"Parameter is not either 1 or 0\");\n\t\t\t\t} catch(IllegalStateException e) {\n\t\t\t\t\tSystem.out.println(\"search exceeded computation budget\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch(OutOfMemoryError e) {\n\t\t\t\t\tSystem.out.println(\"search ran out of memory\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\t// Even if search fails, still try to get visited states.\n\t\t\t\t\t// Need this here because A* fails with Exception\n\t\t\t\t\tif(Parameters.parameters.integerParameter(\"interactiveLodeRunnerPathType\") == PATH_TYPE_ASTAR) {\n\t\t\t\t\t\t//get all of the visited states, all of the x's are in this set but the white ones are not part of solution path \n\t\t\t\t\t\tmostRecentVisited = ((AStarSearch<LodeRunnerAction, LodeRunnerState>) search).getVisited();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\t//visualizes the points visited with red and whit x's\n\t\t\t\t\timage = LodeRunnerState.vizualizePath(level,mostRecentVisited,actionSequence,start);\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"Image could not be displayed\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(Parameters.parameters.booleanParameter(\"showInteractiveLodeRunnerIceCreamYouVisualization\")) {\n\t\t\t\tBufferedImage[] iceCreamYouImages = LodeRunnerRenderUtil.loadIceCreamYouTiles(LodeRunnerRenderUtil.ICE_CREAM_YOU_TILE_PATH);\n\t\t\t\timage = LodeRunnerRenderUtil.createIceCreamYouImage(level, LodeRunnerRenderUtil.ICE_CREAM_YOU_IMAGE_WIDTH, LodeRunnerRenderUtil.ICE_CREAM_YOU_IMAGE_HEIGHT, iceCreamYouImages);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tBufferedImage[] images = LodeRunnerRenderUtil.loadImagesNoSpawnTwoGround(LodeRunnerRenderUtil.LODE_RUNNER_TILE_PATH); //all tiles \n\t\t\t\timage = LodeRunnerRenderUtil.createBufferedImage(level,width1,height1, images);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Image could not be displayed\");\n\t\t}\n\t\treturn image;\n\t}", "public void splitBoard(Posn start, int currRows, int currCols) {\n int startRow = start.x;\n int startCol = start.y;\n if (currRows != 1 && currCols != 1) {\n // top left piece\n this.board.get(startCol).get(startRow).down = true; \n\n // top right piece\n this.board.get(startCol + currCols - 1).get(startRow).down = true; \n\n // bottom left right\n this.board.get(startCol).get(startRow + currRows - 1).right = true; \n this.board.get(startCol).get(startRow + currRows - 1).up = true; // bottom left up\n\n // bottom, right, left\n this.board.get(startCol + currCols - 1).get(startRow + currRows - 1).left = true; \n // bottom, right, up\n this.board.get(startCol + currCols - 1).get(startRow + currRows - 1).up = true; \n\n // connect middle pieces on both sides of subgrid\n for (int i = startRow + 1; i < startRow + currRows - 1; i++) { \n this.board.get(startCol).get(i).up = true;\n this.board.get(startCol).get(i).down = true;\n this.board.get(startCol + currCols - 1).get(i).up = true;\n this.board.get(startCol + currCols - 1).get(i).down = true;\n }\n // connect middle pieces on bottom of subgrid\n for (int i = startCol + 1; i < startCol + currCols - 1; i++) { \n this.board.get(i).get(startRow + currRows - 1).left = true;\n this.board.get(i).get(startRow + currRows - 1).right = true;\n }\n }\n\n // grid base cases\n if (this.height == 1) {\n for (ArrayList<GamePiece> p : this.board) {\n if (p.get(0).row == 0) {\n p.get(0).right = true;\n }\n else if (p.get(0).row == this.width - 1) {\n p.get(0).left = true;\n }\n else {\n p.get(0).right = true;\n p.get(0).left = true;\n }\n }\n }\n else if (this.width == 1) {\n for (GamePiece p : this.board.get(0)) {\n if (p.col == 0) {\n p.down = true;\n }\n else if (p.col == this.height - 1) {\n p.up = true;\n }\n else {\n p.down = true;\n p.up = true;\n }\n }\n }\n else if (currRows == 2) {\n for (int i = startCol + 1; i < startCol + currCols - 1; i++) {\n this.board.get(i).get(startRow).down = true;\n this.board.get(i).get(startRow + 1).up = true;\n }\n }\n else if (currRows == 3 && currCols == 3) { // base case for odd grid\n this.board.get(startCol).get(startRow + 1).right = true;\n this.board.get(startCol + 1).get(startRow + 1).left = true;\n this.board.get(startCol + 1).get(startRow + 1).up = true;\n this.board.get(startCol + 1).get(startRow).down = true;\n\n }\n // recur if the grid can be divided into 4 non-overlapping quadrants\n else if (currRows > 3 || currCols > 3) { \n this.splitBoard(new Posn(startRow, startCol), (int) Math.ceil(currRows / 2.0),\n (int) Math.ceil(currCols / 2.0));\n this.splitBoard(new Posn(startRow + (int) Math.ceil(currRows / 2.0), startCol), currRows / 2,\n (int) Math.ceil(currCols / 2.0));\n this.splitBoard(new Posn(startRow + (int) Math.ceil(currRows / 2.0),\n startCol + (int) Math.ceil(currCols / 2.0)), currRows / 2, currCols / 2);\n this.splitBoard(new Posn(startRow, startCol + (int) Math.ceil(currCols / 2.0)),\n (int) Math.ceil(currRows / 2.0), currCols / 2);\n }\n }", "private void createEdges() {\n int edgeSize = windowSize - 1;\n BufferedImage edgedImage = new BufferedImage(image.getWidth() + edgeSize, image.getHeight() + edgeSize, BufferedImage.TYPE_INT_ARGB);\n int[] edgeData = ((DataBufferInt) edgedImage.getRaster().getDataBuffer()).getData();\n\n // set every pixels in edged image to -1 to use for checking unassigned pixels when filling edges\n for (int i = 0; i < edgeData.length; i++) {\n edgeData[i] = -1;\n }\n\n // draw original image onto center of edged image\n edgedImage.getGraphics().drawImage(image, edgeSize/2, edgeSize/2, null);\n edgedImage.getGraphics().dispose();\n\n\n //TODO - get this working after program works to improve speed\n// byte[] edgedData = ((DataBufferByte) edgedImage.getRaster().getDataBuffer()).getData();\n// byte[] originalData = ((DataBufferByte) image.getRaster().getDataBuffer()).getData();\n//\n // copy image into larger, edged image. currently not working,\n// for (int i = windowSize / 2 * 3, originalI = 0; i < image.getHeight() - windowSize / 2; i++, originalI++) {\n// for (int j = windowSize / 2 * 3, originalJ = 0; j < image.getWidth() - windowSize / 2; j++, originalJ++) {\n// edgedData[i + j * edgedImage.getWidth()] = originalData[originalI + originalJ * image.getWidth()];\n// }\n// }\n\n image = edgedImage;\n fillEdges();\n }", "public void paintComponent(Graphics g)\r\n {\r\n super.paintComponent(g);\r\n g2 = (Graphics2D) g;\r\n this.setBackground(Color.black);\r\n\r\n this.addMouseListener(this);\r\n this.addMouseMotionListener(this);\r\n Image chPieces;\r\n chPieces = new ImageIcon(\"C:/Users/eolochr/Desktop/backup/own/code/Ch/ChessPieces.png\").getImage();\r\n for (int x = 0; x < 8; x++)\r\n {\r\n for (int y = 0; y < 8; y++)\r\n {\r\n if ((x % 2 == 0 && y % 2 == 0) || (x % 2 == 1 && y % 2 == 1))\r\n {\r\n g.setColor(Color.white);\r\n }\r\n else if ((x % 2 == 0 && y % 2 == 1) || (x % 2 == 1 && y % 2 == 0))\r\n {\r\n g.setColor(Color.gray);\r\n }\r\n else\r\n {}\r\n g.fillRect(sizeOfSquare * x, sizeOfSquare * y, sizeOfSquare, sizeOfSquare);\r\n\r\n g.drawString(y + \"\", 420, 24 + (sizeOfSquare * y));\r\n g.drawString(x + \"\", 24 + (sizeOfSquare * x), 420);\r\n }\r\n\r\n }\r\n\r\n for (int i = 0; i < 64; i++) //taken, not my logic\r\n {\r\n int j = -1, k = -1;\r\n switch (Movements.chessBoard[i / 8][i % 8])\r\n {\r\n\r\n case \"R\":\r\n j = 2;\r\n k = 0;\r\n break;\r\n case \"P\":\r\n j = 5;\r\n k = 0;\r\n break;\r\n case \"K\":\r\n j = 4;\r\n k = 0;\r\n break;\r\n case \"B\":\r\n j = 3;\r\n k = 0;\r\n break;\r\n case \"Q\":\r\n j = 1;\r\n k = 0;\r\n break;\r\n case \"A\":\r\n j = 0;\r\n k = 0;\r\n break;\r\n\r\n case \"p\":\r\n j = 5;\r\n k = 1;\r\n break;\r\n case \"r\":\r\n j = 2;\r\n k = 1;\r\n break;\r\n case \"k\":\r\n j = 4;\r\n k = 1;\r\n break;\r\n case \"b\":\r\n j = 3;\r\n k = 1;\r\n break;\r\n case \"q\":\r\n j = 1;\r\n k = 1;\r\n break;\r\n case \"a\":\r\n j = 0;\r\n k = 1;\r\n break;\r\n\r\n }\r\n if (j != -1 && k != -1)\r\n {\r\n g.drawImage(chPieces, (i % 8) * sizeOfSquare, (i / 8) * sizeOfSquare, (i % 8 + 1) * sizeOfSquare, (i / 8 + 1) * sizeOfSquare, j * 64, k * 64, (j + 1) * 64,\r\n (k + 1) * 64, this);\r\n }\r\n }\r\n g.setColor(Color.GREEN);\r\n\r\n if (Movements.turnC)\r\n {\r\n g.drawString(\"White turn\", 150, 440);\r\n }\r\n else\r\n {\r\n g.drawString(\"Black turn\", 150, 440);\r\n }\r\n\r\n if(movement.length() > 3)\r\n {\r\n g.drawString(\"Selected square: \" + movement.charAt(0) + movement.charAt(1), 120, 460);\r\n }\r\n\r\n\r\n if (Movements.checkC)\r\n {\r\n g.drawString(\"Check white\", 240, 440);\r\n }\r\n else if (Movements.checkL)\r\n {\r\n g.drawString(\"Check black\", 240, 440);\r\n }\r\n\r\n }", "public static void sliceTo4x4(final Context context, final onSuccessLoadBitmap onSuccessLoadBitmap, String imageUrl) {\n\n new ConvertUrlToBitmap().execute(imageUrl);\n\n final Handler handler = new Handler();\n Runnable runnable = new Runnable() {\n\n @Override\n public void run() {\n try{\n //do your code here\n System.out.println(bitmapList.size());\n if(bitmapList.size()==16)onSuccessLoadBitmap.onSliceSuccess(bitmapList);\n }\n catch (Exception e) {\n\n }\n finally{\n //also call the same runnable to call it at regular interval\n if(!downloadselesai)handler.postDelayed(this, 1000);\n }\n }\n };\n handler.post(runnable);\n\n /*\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample11));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample12));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample13));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample14));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample21));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample22));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample23));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample24));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample31));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample32));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample33));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample34));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample41));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample42));\n bitmapList.add(UtilKt.toBitmap(context, R.drawable.sample43));*/\n\n\n\n\n }", "public Puzzle exPuzzle() {\n List<Tile> tiles = new ArrayList<>(9);\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.x), new Pic(Pattern.B, Half.y), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.y), new Pic(Pattern.D, Half.x), new Pic(Pattern.C, Half.y), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.y), new Pic(Pattern.D, Half.x), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.C, Half.x), new Pic(Pattern.C, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.y), new Pic(Pattern.B, Half.y), new Pic(Pattern.B, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.C, Half.y), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.A, Half.x), new Pic(Pattern.D, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.y), new Pic(Pattern.B, Half.x), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.y), new Pic(Pattern.A, Half.x), new Pic(Pattern.D, Half.y), new Pic(Pattern.C, Half.y)));\n return new Puzzle(tiles);\n }", "private void refreshDimensions() {\n //tamano del canvas\n targetWidth = canvasWidth;\n targetHeight = canvasHeight;\n//de las imagenes\n sourceWidth = bitmap.getWidth();\n sourceHeight = bitmap.getHeight();\n\n double targetRatio = (double) targetWidth / (double) targetHeight;\n double sourceRatio = (double) sourceWidth / (double) sourceHeight;\n\n targetOffsetX = 0;\n targetOffsetY = 0;\n\n if(sourceRatio > targetRatio)\n {\n int newTargetHeight = (int) (targetWidth / sourceRatio);\n int delta = targetHeight - newTargetHeight;\n targetOffsetY = delta / 2;\n targetHeight = newTargetHeight;\n }\n else if(sourceRatio < targetRatio)\n {\n int newTargetWidth = (int) (targetHeight * sourceRatio);\n int delta = targetWidth - newTargetWidth;\n targetOffsetX = delta / 2;\n targetWidth = newTargetWidth;\n }\n\n puzzleWidth = slidePuzzle.getWidth();\n puzzleHeight = slidePuzzle.getHeight();\n\n targetColumnWidth = targetWidth / puzzleWidth;\n targetRowHeight = targetHeight / puzzleHeight;\n sourceColumnWidth = sourceWidth / puzzleWidth;\n sourceRowHeight = sourceHeight / puzzleHeight;\n }", "public void MeasureMovement(int[] dupCellID, int numslices, int b){\r\n\t\tfor (int x = 1; x < b; x = x + 1){ \r\n\t\t\tIJ.selectWindow(dupCellID[x]);\r\n\t\t\tImagePlus TheDuplicate = WindowManager.getCurrentImage();\r\n\t\t\tIJ.run(\"Threshold...\",\"method='Default'\");\r\n\t\t\tnew WaitForUserDialog(\"Threshold\", \"Threshold yeast cell to select the nucleus, then click OK.\").show();\r\n\t\t\tResultsTable res = new ResultsTable();\r\n\t\t\tdouble[] SliceNumY = new double[numslices];\r\n\t\t\tdouble[] SliceNumX = new double[numslices];\r\n\t\t\t\tfor(int z = 1; z < numslices; z = z+1) {\r\n\t\t\t\t\tTheDuplicate.setSlice(z);\r\n\t\t\t\t\tIJ.run(TheDuplicate, \"Analyze Particles...\", \"size=100-550 pixel circularity=0.00-1.00 show=Nothing display clear include add slice\");\r\n\t\t\t\t\tres = Analyzer.getResultsTable();\r\n\t\t\t\t\t\r\n\t\t\t\t\tint MaxY = TheDuplicate.getHeight();\r\n\t\t\t\t\tint Midpoint = MaxY/2; \r\n\t\t\t\t\tint MaxCount = res.getCounter();\r\n\t\t\t\t\tdouble yVal = 0;\r\n\t\t\t\t\tdouble xVal = 0;\r\n\t\t\t\t\tif (MaxCount > 1){\r\n\t\t\t\t\t\tfor (int c = 0; c < (MaxCount - 1); c = c + 1){\r\n\t\t\t\t\t\t\tyVal = res.getValueAsDouble(7, c);\r\n\t\t\t\t\t\t\txVal = res.getValueAsDouble(6, c);\r\n\t\t\t\t\t\t\tif (Math.abs((yVal/0.13) - Midpoint) <= 10 ){\r\n\t\t\t\t\t\t\t\tyVal = res.getValueAsDouble(7, c);\r\n\t\t\t\t\t\t\t\txVal = res.getValueAsDouble(6, c);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * if statement to only record the centre X Y \r\n\t\t\t\t\t * coordinate of the nucleus when 1 object has \r\n\t\t\t\t\t * been found. If more than 1 object is identified\r\n\t\t\t\t\t * then the XY coordinates default to zero to prevent \r\n\t\t\t\t\t * other fluorescent cell components from skewing the data\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (MaxCount > 0 && MaxCount <2) {\r\n\t\t\t\t\t\tyVal = res.getValueAsDouble(7, 0);\r\n\t\t\t\t\t\txVal = res.getValueAsDouble(6, 0);\r\n\t\t\t\t\t\tSliceNumY[z] = yVal;\r\n\t\t\t\t\t\tSliceNumX[z] = xVal; \r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tSliceNumY[z] = 0;\r\n\t\t\t\t\t\tSliceNumX[z] = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\toutputinfo(SliceNumY, SliceNumX, numslices); //Write the results to text file\r\n\t\t\tTheDuplicate.changes = false;\t\r\n\t\t\tTheDuplicate.close();\r\n\t\t}\r\n\t}", "int[][][] sharpenImage(int[][][] imageArray, int height, int width);", "public void newGame(){\n if (won) {\n idx = 0;\n won = false; \n List<String> rows = new ArrayList<String>();\n\n try{\n // loads one random image from list\n Random rand = new Random(); \n col = 0;\n int randInt = rand.nextInt(files.size());\n File file = new File(\n Game.class.getResource(\"/\"+files.get(randInt)).getFile()\n );\n BufferedReader br = new BufferedReader(new FileReader(file));\n String line;\n while ((line = br.readLine()) != null) {\n if (col < line.length()) {\n col = line.length();\n }\n rows.add(line);\n }\n }\n catch (Exception e){\n System.out.println(\"File load error\"); // extremely simple error handling, you can do better if you like. \n }\n\n // this handles creating the orinal array and the hidden array in the correct size\n String[] rowsASCII = rows.toArray(new String[0]);\n\n row = rowsASCII.length;\n\n // Generate original array by splitting each row in the original array.\n original = new char[row][col];\n for(int i = 0; i < row; i++) {\n char[] splitRow = rowsASCII[i].toCharArray();\n for (int j = 0; j < splitRow.length; j++) {\n original[i][j] = splitRow[j];\n }\n }\n\n // Generate Hidden array with X's (this is the minimal size for columns)\n hidden = new char[row][col];\n for(int i = 0; i < row; i++){\n for(int j = 0; j < col; j++){\n hidden[i][j] = 'X';\n }\n }\n setIdxMax(col * row);\n }\n else {\n }\n }", "public void CountWhiteDisks(){\n int counter =0;\n for (int i=0; i<8; i++){\n for (int j=0; j<8; j++){\n if (gameboard[i][j]==W){\n counter++;\n }\n }\n }\n whitedisks = counter;\n }", "@Override\n public void run() {\n int combCnt = 0;\n while (rmNumber.size() != 0) {\n\n final int cmc = rmNumber.size();\n final int combc = combCnt;\n final ExecutorService service = Executors.newFixedThreadPool(5);\n final Thread thread = new Thread(() -> changeLabel(lb, combc, combc + cmc));\n service.execute(thread);\n service.shutdown();\n\n for (int r = 0; r < rmNumber.size(); r++) {\n for (int rn = 0; rn < rmGroup.get(rmNumber.get(r)).size(); rn++) {\n int x = rmGroup.get(rmNumber.get(r)).get(rn).x;\n int y = rmGroup.get(rmNumber.get(r)).get(rn).y;\n imageBall[y][x].setImage(null);\n\n }\n try {\n int sc = (combCnt + r>=combsoundsNum-1)?combsoundsNum-1: combCnt + r;\n rmDropMp[sc].play();\n Thread.sleep(500);\n rmDropMp[sc].stop();\n } catch (Exception e) {\n // TODO: handle exception\n }\n }\n\n for (int j = 0; j < field_width; j++) {// 落とす.\n int d = field_height - 1;\n for (int i = field_height - 2; i >= 0; i--) {\n if (imageBall[d][j].getImage() == null) {\n if (imageBall[i][j].getImage() != null) {\n imageBall[d][j].setImage(imageBall[i][j].getImage());\n imageBall[i][j].setImage(null);\n d--;\n }\n } else {\n d--;\n }\n }\n }\n try {\n Thread.sleep(100);\n } catch (Exception e) {\n // TODO: handle exception\n }\n for (int i = 0; i < field_height; i++) {\n for (int j = 0; j < field_width; j++) {\n if (imageBall[i][j].getImage() == null) {\n imageBall[i][j].setImage(imgBalls[(int) (Math.random() * imageSize)]);\n }\n }\n }\n try {\n Thread.sleep(300);\n } catch (Exception e) {\n // TODO: handle exception\n }\n combCnt += rmNumber.size();\n rmGroup.clear();\n rmNumber.clear();\n if (checkBall(rmNumber, rmGroup) != 0)\n continue;\n // break;\n\n for (int r = 0; r < combCnt; r++) {\n try {\n pumpedUpMp.play();\n Thread.sleep(500);\n pumpedUpMp.stop();\n } catch (Exception e) {\n // TODO: handle exception\n }\n }\n break;\n\n }\n\n }", "public static Bitmap decodeBitmapSize(Bitmap bm, int IMAGE_BIGGER_SIDE_SIZE) {\n Bitmap b = null;\r\n\r\n\r\n //convert Bitmap to byte[]\r\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\r\n bm.compress(Bitmap.CompressFormat.JPEG, 100, stream);\r\n byte[] byteArray = stream.toByteArray();\r\n\r\n //We need to know image width and height, \r\n //for it we create BitmapFactory.Options object and do BitmapFactory.decodeByteArray\r\n //inJustDecodeBounds = true - means that we do not need load Bitmap to memory\r\n //but we need just know width and height of it\r\n BitmapFactory.Options opt = new BitmapFactory.Options();\r\n opt.inJustDecodeBounds = true;\r\n BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt);\r\n int CurrentWidth = opt.outWidth;\r\n int CurrentHeight = opt.outHeight;\r\n\r\n\r\n //there is function that can quick scale images\r\n //but we need to give in scale parameter, and scale - it is power of 2\r\n //for example 0,1,2,4,8,16...\r\n //what scale we need? for example our image 1000x1000 and we want it will be 100x100\r\n //we need scale image as match as possible but should leave it more then required size\r\n //in our case scale=8, we receive image 1000/8 = 125 so 125x125, \r\n //scale = 16 is incorrect in our case, because we receive 1000/16 = 63 so 63x63 image \r\n //and it is less then 100X100\r\n //this block of code calculate scale(we can do it another way, but this way it more clear to read)\r\n int scale = 1;\r\n int PowerOf2 = 0;\r\n int ResW = CurrentWidth;\r\n int ResH = CurrentHeight;\r\n if (ResW > IMAGE_BIGGER_SIDE_SIZE || ResH > IMAGE_BIGGER_SIDE_SIZE) {\r\n while (1 == 1) {\r\n PowerOf2++;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n if (Math.max(ResW, ResH) < IMAGE_BIGGER_SIDE_SIZE) {\r\n PowerOf2--;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n break;\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n //Decode our image using scale that we calculated\r\n BitmapFactory.Options opt2 = new BitmapFactory.Options();\r\n opt2.inSampleSize = scale;\r\n //opt2.inScaled = false;\r\n b = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt2);\r\n\r\n\r\n //calculating new width and height\r\n int w = b.getWidth();\r\n int h = b.getHeight();\r\n if (w >= h) {\r\n w = IMAGE_BIGGER_SIDE_SIZE;\r\n h = (int) ((double) b.getHeight() * ((double) w / b.getWidth()));\r\n } else {\r\n h = IMAGE_BIGGER_SIDE_SIZE;\r\n w = (int) ((double) b.getWidth() * ((double) h / b.getHeight()));\r\n }\r\n\r\n\r\n //if we lucky and image already has correct sizes after quick scaling - return result\r\n if (opt2.outHeight == h && opt2.outWidth == w) {\r\n return b;\r\n }\r\n\r\n\r\n //we scaled our image as match as possible using quick method\r\n //and now we need to scale image to exactly size\r\n b = Bitmap.createScaledBitmap(b, w, h, true);\r\n\r\n\r\n return b;\r\n }", "public void m20063a(ImageView imageView, ImageView imageView2, int[] iArr, Integer[] numArr, int i) {\n ArrayList arrayList = new ArrayList();\n for (int i2 = 0; i2 < 3; i2++) {\n arrayList.add(Integer.valueOf(i2));\n }\n Collections.shuffle(arrayList);\n for (int i3 = 0; i3 < 3; i3++) {\n if (numArr[i] != arrayList.get(i3)) {\n Options options = new Options();\n options.inPurgeable = true;\n options.inScaled = false;\n imageView2.setImageBitmap(BitmapFactory.decodeResource(getResources(), iArr[((Integer) arrayList.get(i3)).intValue()], options));\n imageView.setImageBitmap(BitmapFactory.decodeResource(getResources(), iArr[numArr[i].intValue()], options));\n numArr[i] = (Integer) arrayList.get(i3);\n return;\n }\n }\n }", "private int findBestFit(Color c, int[][] tileArray, int x, int y) {\n int radiusTiles = 10; // The number of radius tiles... this WILL be user-configurable.\n int closestSoFar = 0; // Index of the tile that best matches the color so far.\n int redDiff, greenDiff, blueDiff, totalDiff = 0;\n totalDiff = (256*3); // Initialize the total difference to the largest reasonable number.\n if (c==null) { // assume that the color is black...\n c = new Color(0,0,0);\n }\n for (int count = 0; count < tileLibrary.getSize(); count++) { // Cycle through all of the library tiles.\n if (tileLibrary.get(count).getColor() != null) {\n\n/********* UNCOMMENT THE FOLLOWING TO USE THE NO-REP ALGORITHM ***********/\n /* // This is the no-rep algorithm.\n redDiff = Math.abs(c.getRed() - images.get(count).getColor().getRed());\n blueDiff = Math.abs(c.getBlue() - images.get(count).getColor().getBlue());\n greenDiff = Math.abs(c.getGreen() - images.get(count).getColor().getGreen());\n if (((redDiff + blueDiff + greenDiff) < totalDiff) && (used[count] == false)) {\n totalDiff = redDiff + blueDiff + greenDiff;\n closestSoFar = count;\n }\n */\n/**************************************************************************/\n\n/********** COMMENT OUT TO USE NO-REP ALGORITHM INSTEAD *******************/\n // Is this image in our no-dice radius?\n boolean inRadius = false;\n for (int newX = (x - radiusTiles); newX < (x+radiusTiles); newX++) { // Cycle through the width of the box...\n for (int newY = (y - radiusTiles); newY < (y+radiusTiles); newY++) { // Cycle through the height of the box...\n // If we are still within the bounds of the image....\n if ((newX >= 0) && (newY >= 00) && (newX < hTiles) && (newY < vTiles)) { // && !((newX >= x) && (newY >= y))) {\n try {\n if (tileArray[newX][newY] == count) { // If that tile is already in the box...\n inRadius = true;\n }\n } catch (Exception e) {System.out.println(e);}\n }\n }\n }\n if (inRadius == false) { // If this tile isn't in the box, find the difference in color.\n redDiff = Math.abs(c.getRed() - tileLibrary.get(count).getColor().getRed());\n blueDiff = Math.abs(c.getBlue() - tileLibrary.get(count).getColor().getBlue());\n greenDiff = Math.abs(c.getGreen() - tileLibrary.get(count).getColor().getGreen());\n if (((redDiff + blueDiff + greenDiff) < totalDiff)) { // if this is closer than the previous closest...\n totalDiff = redDiff + blueDiff + greenDiff;\n closestSoFar = count; // Keep track of this tile.\n }\n }\n }\n }\n return closestSoFar; // return the tile we chose.\n }", "public static void createImages()\n {\n //Do if not done before\n if(!createdImages)\n {\n createdImages = true;\n for(int i=0; i<rightMvt.length; i++)\n {\n rightMvt[i] = new GreenfootImage(\"sniperEnemyRight\"+i+\".png\");\n leftMvt[i] = new GreenfootImage(\"sniperEnemyRight\"+i+\".png\");\n rightMvt[i].scale(rightMvt[i].getWidth()*170/100, rightMvt[i].getHeight()*170/100);\n leftMvt[i].scale(leftMvt[i].getWidth()*170/100, leftMvt[i].getHeight()*170/100);\n }\n for(int i=0; i<leftMvt.length; i++)\n {\n leftMvt[i].mirrorHorizontally();\n }\n for(int i=0; i<upMvt.length; i++)\n {\n upMvt[i] = new GreenfootImage(\"sniperEnemyUp\"+i+\".png\");\n downMvt[i] = new GreenfootImage(\"sniperEnemyDown\"+i+\".png\");\n upMvt[i].scale(upMvt[i].getWidth()*170/100, upMvt[i].getHeight()*170/100);\n downMvt[i].scale(downMvt[i].getWidth()*170/100, downMvt[i].getHeight()*170/100);\n }\n }\n }", "static void insertion(BufferedImage img, BufferedImage waterImg, int width, int height, StringBuilder binary, int[] Estimator_pos) {\n int block_num = 0;\r\n int msg_counter = 0;\r\n\r\n for (int x = 0; x < width; x++) {\r\n for (int y = 0; y < height; y++) {\r\n\r\n int b1 = img.getRGB(x, y);\r\n int p1 = (b1 >> 16) & 0xff;\r\n int b2 = img.getRGB(x, y + 1);\r\n int p2 = (b2 >> 16) & 0xff;\r\n int b3 = img.getRGB(x + 1, y);\r\n int p3 = (b3 >> 16) & 0xff;\r\n int b4 = img.getRGB(x + 1, y + 1);\r\n int p4 = (b4 >> 16) & 0xff;\r\n\r\n //geting a random 1-4 for estimator\r\n Random rn = new Random();\r\n int estimator = rn.nextInt(4) + 1;\r\n //System.out.println(estimator);\r\n Estimator_pos[block_num] = estimator;\r\n// System.out.println(\" p1 : \"+p1 + \"| p2 : \" + p2 + \"| p3 : \" + p3 + \"| p4 : \" + p4);\r\n //-----------comparing estimator with pixels ------------------\r\n if ((p1 < 255) && (p2 < 255) && (p3 < 255) && (p4 < 255)) {\r\n\r\n // System.out.println(estimator);\r\n switch (estimator) {\r\n\r\n case 1: //------------------------------------------------------------------------------------- case 1\r\n //System.out.println(\"case 1\");\r\n estimator = p1;\r\n ////writing back estimator \r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n //compare with pixel a\r\n //System.out.println(\"comparing with a\");\r\n if (Math.abs(estimator - p2) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p2 = p2 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p2 = p2 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p2 > 0) {\r\n\r\n p2 = p2 - 2;\r\n } else if (estimator - p2 < 0) {\r\n p2 = p2 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n\r\n waterImg.setRGB(x, y + 1, p2);\r\n\r\n //compare with pixel b\r\n //System.out.println(\"comparing with b\");\r\n if (Math.abs(estimator - p3) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p3 = p3 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p3 = p3 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p3 > 0) {\r\n\r\n p3 = p3 - 2;\r\n } else if (estimator - p3 < 0) {\r\n p3 = p3 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x + 1, y, p3);\r\n\r\n //compare with pixel c\r\n //System.out.println(\"comparing with c\");\r\n if (Math.abs(estimator - p4) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p4 = p4 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p4 = p4 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p4 > 0) {\r\n\r\n p4 = p4 - 2;\r\n } else if (estimator - p4 < 0) {\r\n p4 = p4 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n break;\r\n case 2: //------------------------------------------------------------------------------------- case 2\r\n //System.out.println(\"case 2\");\r\n estimator = p2;\r\n ////writing back estimator \r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n waterImg.setRGB(x, y + 1, p2);\r\n //compare with pixel a\r\n //System.out.println(\"comparing with a\");\r\n\r\n if (Math.abs(estimator - p1) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p1 = p1 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p1 = p1 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p1 > 0) {\r\n\r\n p1 = p1 - 2;\r\n } else if (estimator - p1 < 0) {\r\n p1 = p1 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n\r\n //compare with pixel b\r\n //System.out.println(\"comparing with b\");\r\n if (Math.abs(estimator - p3) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p3 = p3 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p3 = p3 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p3 > 0) {\r\n\r\n p3 = p3 - 2;\r\n } else if (estimator - p3 < 0) {\r\n p3 = p3 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x + 1, y, p3);\r\n\r\n //compare with pixel c\r\n //System.out.println(\"comparing with c\");\r\n if (Math.abs(estimator - p4) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p4 = p4 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p4 = p4 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p4 > 0) {\r\n\r\n p4 = p4 - 2;\r\n } else if (estimator - p4 < 0) {\r\n p4 = p4 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n break;\r\n case 3: //------------------------------------------------------------------------------------- case 3\r\n //System.out.println(\"case 3\");\r\n estimator = p3;\r\n ////writing back estimator\r\n\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x + 1, y, p3);\r\n //compare with pixel a\r\n //System.out.println(\"comparing with a\");\r\n\r\n if (Math.abs(estimator - p1) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p1 = p1 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p1 = p1 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p1 > 0) {\r\n\r\n p1 = p1 - 2;\r\n } else if (estimator - p1 < 0) {\r\n p1 = p1 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n\r\n //compare with pixel b\r\n //System.out.println(\"comparing with b\");\r\n if (Math.abs(estimator - p2) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p2 = p2 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p2 = p2 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p2 > 0) {\r\n\r\n p2 = p2 - 2;\r\n } else if (estimator - p2 < 0) {\r\n p2 = p2 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n waterImg.setRGB(x, y + 1, p2);\r\n\r\n //compare with pixel c\r\n //System.out.println(\"comparing with c\");\r\n if (Math.abs(estimator - p4) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p4 = p4 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p4 = p4 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p4 > 0) {\r\n\r\n p4 = p4 - 2;\r\n } else if (estimator - p4 < 0) {\r\n p4 = p4 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n break;\r\n case 4: //------------------------------------------------------------------------------------- case 4\r\n estimator = p4;\r\n //wrinting back estimator pixel\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n //System.out.println(\"case 4\");\r\n //compare with pixel a\r\n //System.out.println(\"comparing with a\");\r\n if (Math.abs(estimator - p1) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p1 = p1 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p1 = p1 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p1 > 0) {\r\n\r\n p1 = p1 - 2;\r\n } else if (estimator - p1 < 0) {\r\n p1 = p1 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n\r\n //compare with pixel b\r\n //System.out.println(\"comparing with b\");\r\n if (Math.abs(estimator - p2) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p2 = p2 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p2 = p2 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p2 > 0) {\r\n\r\n p2 = p2 - 2;\r\n } else if (estimator - p2 < 0) {\r\n p2 = p2 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n waterImg.setRGB(x, y + 1, p2);\r\n\r\n //compare with pixel c\r\n //System.out.println(\"comparing with c\");\r\n if (Math.abs(estimator - p3) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p3 = p3 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p3 = p3 - 2;\r\n }\r\n msg_counter++;\r\n\r\n }\r\n } else if (estimator - p3 > 0) {\r\n\r\n p3 = p3 - 2;\r\n } else if (estimator - p3 < 0) {\r\n p3 = p3 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x + 1, y, p3);\r\n\r\n break;\r\n }\r\n// p1 = (p1 >> 16) & 0xff;\r\n// p2 = (p2 >> 16) & 0xff;\r\n// p3 = (p3 >> 16) & 0xff;\r\n// p4 = (p4 >> 16) & 0xff;\r\n// System.out.println(\" p1 : \"+p1 + \"| p2 : \" + p2 + \"| p3 : \" + p3 + \"| p4 : \" + p4);\r\n\r\n } else {\r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n waterImg.setRGB(x + 1, y, p2);\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x, y + 1, p3);\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n }\r\n block_num = block_num + 1;\r\n\r\n y++;\r\n\r\n }\r\n x++;\r\n }\r\n\r\n }", "public Detections frameworkMaxAreaRectangle(byte[] yuv, int image_w, int image_h, int rotation, Bitmap image){\n\n Detections now = recognize(Transform.convertRGBtoYUV(image), image_w, image_h, rotation, image);\n// if(image_h>0)\n// return now;\n\n\n int[][] image_array = new int[image_h][image_w];\n\n for(Recognition result:now.results){\n RectF rectF = new RectF(result.location);\n for(int x=(int)rectF.top;x<rectF.top + rectF.height();x++){\n for(int y=(int)rectF.left;y<rectF.left + rectF.width();y++){\n image_array[x][y]=1;\n }\n }\n // Detections repeat = splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left);\n //save.results.addAll(splitAndSend1(yuv,image_w,image_h,rotation,image,(int) rectF.height(),(int) rectF.width(), 480 - (int) rectF.bottom,(int) rectF.left).results);\n //return repeat;\n //return repeat;\n }\n //now.results.addAll(save.results);\n\n RectF new_rect=maximalRectangle(image_array);\n Bitmap resized = Bitmap.createBitmap(image, (int) new_rect.left, (int) new_rect.top, (int) new_rect.width(), (int) new_rect.height());\n// SaveImagess(resized);\n// SaveImagesss(image);\n\n\n\n // Detections now1=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now1 = recognize(Transform.convertRGBtoYUV(resized), resized.getWidth(), resized.getHeight(), rotation, resized);\n now = add_times(now, now1);\n // now.results.addAll(now1.results);\n\n for(int x=(int)new_rect.top;x<new_rect.top + new_rect.height();x++){\n for(int y=(int)new_rect.left;y<new_rect.left + new_rect.width();y++){\n image_array[x][y]=1;\n }\n }\n RectF new_rect1=maximalRectangle(image_array);\n\n\n if(new_rect1.height()>5 && new_rect1.width()>5){\n Bitmap resized1 = Bitmap.createBitmap(image, (int) new_rect1.left, (int) new_rect1.top, (int) new_rect1.width(), (int) new_rect1.height());\n\n// Detections now12=splitAndSend(yuv,image_w,image_h,rotation,image,(int) new_rect.height(),(int) new_rect.width(), image_h - (int) new_rect.bottom,(int) new_rect.left);\n Detections now12 = recognize(Transform.convertRGBtoYUV(resized1), resized1.getWidth(), resized1.getHeight(), rotation, resized1);\n //now.results.addAll(now12.results);\n now = add_times(now, now12);\n\n// SaveImage(resized1);\n }\n\n //now.results.addAll(now1.results);\n\n\n\n\n return now;\n }", "private TailoredImage doProcess(BufferedImage sourceImg) throws IOException {\n\t\tint width = sourceImg.getWidth();\n\t\tint height = sourceImg.getHeight();\n\t\t// Check maximum effective width height\n\t\tisTrue((width <= sourceMaxWidth && height <= sourceMaxHeight),\n\t\t\t\tString.format(\"Source image is too big, max limits: %d*%d\", sourceMaxWidth, sourceMaxHeight));\n\t\tisTrue((width >= sourceMinWidth && height >= sourceMinHeight),\n\t\t\t\tString.format(\"Source image is too small, min limits: %d*%d\", sourceMinWidth, sourceMinHeight));\n\n\t\t// 创建背景图,TYPE_4BYTE_ABGR表示具有8位RGBA颜色分量的图像(支持透明的BufferedImage),正常取bufImg.getType()\n\t\tBufferedImage primaryImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);\n\t\t// 创建滑块图\n\t\tBufferedImage blockImg = new BufferedImage(sourceImg.getWidth(), sourceImg.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);\n\t\t// 随机截取的坐标\n\t\tint maxX0 = width - blockWidth - (circleR + circleOffset);\n\t\tint maxY0 = height - blockHeight;\n\t\tint blockX0 = current().nextInt((int) (maxX0 * 0.25), maxX0); // *0.25防止x坐标太靠左\n\t\tint blockY0 = current().nextInt(circleR, maxY0); // 从circleR开始是为了防止上边的耳朵显示不全\n\t\t// Setup block borders position.\n\t\tinitBorderPositions(blockX0, blockY0, blockWidth, blockHeight);\n\n\t\t// 绘制生成新图(图片大小是固定,位置是随机)\n\t\tdrawing(sourceImg, blockImg, primaryImg, blockX0, blockY0, blockWidth, blockHeight);\n\t\t// 裁剪可用区\n\t\tint cutX0 = blockX0;\n\t\tint cutY0 = Math.max((blockY0 - circleR - circleOffset), 0);\n\t\tint cutWidth = blockWidth + circleR + circleOffset;\n\t\tint cutHeight = blockHeight + circleR + circleOffset;\n\t\tblockImg = blockImg.getSubimage(cutX0, cutY0, cutWidth, cutHeight);\n\n\t\t// Add watermark string.\n\t\taddWatermarkIfNecessary(primaryImg);\n\n\t\t// 输出图像数据\n\t\tTailoredImage img = new TailoredImage();\n\t\t// Primary image.\n\t\tByteArrayOutputStream primaryData = new ByteArrayOutputStream();\n\t\tImageIO.write(primaryImg, \"PNG\", primaryData);\n\t\timg.setPrimaryImg(primaryData.toByteArray());\n\n\t\t// Block image.\n\t\tByteArrayOutputStream blockData = new ByteArrayOutputStream();\n\t\tImageIO.write(blockImg, \"PNG\", blockData);\n\t\timg.setBlockImg(blockData.toByteArray());\n\n\t\t// Position\n\t\timg.setX(blockX0);\n\t\timg.setY(blockY0 - circleR >= 0 ? blockY0 - circleR : 0);\n\t\treturn img;\n\t}", "public static void AddStripToGrid(ArrayList<ArrayList<Points>> G, ArrayList<Points> strip_temp, double cell_width)\n {\n Collections.sort(strip_temp, new MyComparatorY());\n \n ArrayList<Points> Box = new ArrayList<>(); \n \n for(int i = 0; i < strip_temp.size(); i++)\n {\n ArrayList<Points> q = new ArrayList<>();\n \n q.add(new Points(strip_temp.get(i).x_cor, strip_temp.get(i).y_cor, strip_temp.get(i).p_id, \"no tag\"));\n \n Box.add(new Points(q.get(0).x_cor, q.get(0).y_cor, q.get(0).p_id, q.get(0).tag));\n \n \n int break_flag = 0;\n \n bnm:\n for(int j = i+1; j < strip_temp.size(); j++)\n {\n ArrayList<Points> r = new ArrayList<>();\n \n r.add(new Points(strip_temp.get(j).x_cor, strip_temp.get(j).y_cor, strip_temp.get(j).p_id, \"no tag\"));\n \n double box_dist = (q.get(0).y_cor + cell_Width);\n \n if(r.get(0).y_cor > (q.get(0).y_cor + cell_Width))\n {\n ArrayList<Points> box_temp = new ArrayList<>();\n \n box_temp.addAll(Box);\n \n G.add(box_temp);\n \n break_flag = 1;\n Box.clear();\n \n break bnm;\n }\n \n Box.add(new Points(r.get(0).x_cor, r.get(0).y_cor, r.get(0).p_id, r.get(0).tag));\n \n i=j;\n }\n \n if(break_flag == 0)\n {\n \n ArrayList<Points> box_temp = new ArrayList<>();\n box_temp.addAll(Box);\n\n Box.clear();\n G.add(box_temp);\n } \n }\n }", "private ImageView[] createTiledWord(String tilesToCreate) {\n int count;\n int length = tilesToCreate.length();\n ImageView[] imagesViewList = new ImageView[length];\n for (count = 0; count < length; count++) {\n ImageView iv = new ImageView(this);\n iv.setImageResource(tileMap.getTile(tilesToCreate.charAt(count)));\n iv.setContentDescription(String.valueOf(tilesToCreate.charAt(count)));\n iv.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View sender) {\n ImageView tile = (ImageView) sender;\n if (tile.getParent() == MainActivity.this.imageLayout) {\n MainActivity.this.imageLayout.removeView(tile);\n MainActivity.this.answerLayout.addView(tile);\n MainActivity.this.checkAnswer();\n\n } else {\n MainActivity.this.answerLayout.removeView(tile);\n MainActivity.this.imageLayout.addView(tile);\n MainActivity.this.convertAnswerString();\n }\n }\n });\n imagesViewList[count] = iv;\n }\n return imagesViewList;\n }", "private void generate () {\n\t\t\n\t\tArrayList<Integer[]> copyToCheck = new ArrayList<Integer[]> ();\n\t\tfor (int i = 0; i < Math.pow(size, 3); i++) { // Filling up the maze with blocks\n\t\t\tint x, y, z;\n\t\t\tx = i / (size * size); // Get the x, y, and z\n\t\t\ty = i % (size * size) / size;\n\t\t\tz = i % (size * size) % size;\n\t\t\t// spaces each block out by 1\n\t\t\tif (x%2 == 1 && y%2 == 1 && z%2 == 1) {\n\t\t\t\tmaze.add(new Block (x, y, z, ' ')); // 'w' means wall\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tmaze.add(new Block (x, y, z, 'w'));\n\t\t\t\tif (x > 0 && y > 0 && z > 0 && x < size-1 && y < size-1 && z < size-1) { // if the blocks are within the outer shell, add the blocks to the list of walls to check\n\t\t\t\t\tif (x%2+y%2+z%2 == 2)copyToCheck.add(new Integer[] {x, y, z});\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if (x > 0 && y > 0 && z > 0 && x < size-1 && y < size-1 && z < size-1) { // checks if the coordinates are within the smaller cube that is below the first layer.\n\t\t\t\t//copyToCheck.add(new Integer[] { x, y, z });\t// the Block coords left to check\n\t\t\t//}\n\t\t}\n\t\t\n\t\tint starty, startx, startz; // x, y and z of current block\n\t\tstartz = 0; // the starting block will be at z = 0 because that is the bottom-most layer\n\n\t\tstartx = ((int)(Math.random() * (size/2)))*2 + 1; \n\t\tstarty = ((int)(Math.random() * (size/2)))*2 + 1;\n\t\tstart = get(startx, starty, startz);\n\t\t\n\t\tint endx, endy, endz; // x, y and z of end block\n\t\tendx = ((int)(Math.random() * (size/2)))*2 + 1; \n\t\tendy = ((int)(Math.random() * (size/2)))*2 + 1;\n\t\tendz = size-1;\n\t\tend = get(endx, endy, endz);\n\t\t\n\t\tArrayList<Integer[]> toCheck;\n\t\tboolean removed = true;\n\t\twhile (removed) {\n\t\t\tremoved = false;\n\t\t\ttoCheck = new ArrayList<Integer[]> ();\n\t\t\tfor (Integer[] thing : copyToCheck) {\n\t\t\t\ttoCheck.add(thing);\n\t\t\t}\n\t\t\tCollections.shuffle(toCheck); // Randomizes the order of the list of coordinates to check.\n\t\t\tfor (Integer[] coords : toCheck) {\n\t\t\t\tBlock curr = get(coords[0], coords[1], coords[2]);\n\t\t\t\tArrayList<Block> neighbors = getAdj(curr);\n\t\t\t\tboolean isJoint = false;\n\t\t\t\t\tfor (int i = 0; i < neighbors.size() - 1 && !isJoint; i++) {\n\t\t\t\t\t\tfor (int j = i+1; j < neighbors.size(); j++) {\n\t\t\t\t\t\t\tif (neighbors.get(j).t == ' ')\n\t\t\t\t\t\t\t\tif (neighbors.get(i).tree == neighbors.get(j).tree) {\n\t\t\t\t\t\t\t\t\tisJoint = true;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isJoint) { // Even if it doesn't matter too much, don't want to spend a bunch of time iterating through the stuff unless I have too.\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!isJoint) {\n\t\t\t\t\t\tremoved = true;\n\t\t\t\t\t\tcopyToCheck.remove(coords);\n\t\t\t\t\t\tjoin(curr); // Joins all of the sets, changes the type of the block.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\tArrayList<Block> t = new ArrayList<Block>();\n\t\tfor (int i = 0; i < 5*size; i++) {\n\t\t\tArrayList<Block> b = getWalls();\n\t\t\t\n\t\t\tint rand = (int)(Math.random()*b.size());\n\t\t\tint x = b.get(rand).x;\n\t\t\tint y = b.get(rand).y;\n\t\t\tint z = b.get(rand).z;\n\t\t\tset(x, y, z, new Trap (x, y, z));\n\t\t}\n\t\tstart.t = ' '; // sets the type of the start and end blocks\n\t\tend.t = 'e';\n\t}", "public static void isFour(String clue, int local, int clueNum)\r\n {\r\n //If top (1) or bottom (3) input\r\n if(local == 1 || local == 3)\r\n {\r\n //Repeat for size of grid\r\n for(int k=0; k<GRID; k++)\r\n {\r\n //If spot in grid is equal to four\r\n if(clue.charAt(k) == '4')\r\n {\r\n //If clue is for top\r\n if(local == 1)\r\n {\r\n int num = 1;\r\n //Fills in all of the boxes bellow in assending order\r\n for(int d=0; d<GRID; d++)\r\n { \r\n puzzle[d][k] = num;\r\n num++;\r\n } \r\n }\r\n //If clue is for bottom\r\n if (local == 3)\r\n {\r\n int num = 4;\r\n //Fills in all of the boxes bellow in assending order\r\n for(int d=0; d<GRID; d++)\r\n { \r\n puzzle[d][k] = num;\r\n num--;\r\n } \r\n }\r\n }\r\n }\r\n }\r\n else if (local == 2)\r\n {\r\n \r\n if(clue.charAt(0) == '4')\r\n {\r\n int num = 1;\r\n //Fills in all of the boxes bellow in assending order\r\n for(int d=0; d<GRID; d++)\r\n { \r\n puzzle[clueNum][d] = num;\r\n num++;\r\n } \r\n }\r\n if(clue.charAt(1) == '4')\r\n {\r\n int num = 4;\r\n for(int d=0; d<GRID; d++)\r\n {\r\n puzzle[clueNum][d] = num;\r\n num--;\r\n }\r\n } \r\n }\r\n }", "int violetSquares() {\n int s = 0;\n int i, j;\n for (i = 0; i < 14; i++) {\n for (j = 0; j < 14; j++) {\n if (_board[i][j] == VIOLET) {\n s++;\n }\n }\n }\n return s;\n }", "public void go_through_tiling_windows(){\n\t\ttry{\n//\t\t\tBufferedWriter bw=new BufferedWriter(new FileWriter(outfile));\n\t\t\tfor(int chr=0;chr<variants.num_chrs;chr++){\n\t\t\t\tint last_position=variants.locations[chr][variants.num_sites[chr]-1];\n\t\t\t\tint start=1, end=tiling_win_size;\n\t\t\t\twhile(start<last_position){\n\t\t\t\t\tdouble[][] data=variants.load_variants_in_region(chr, start, end);\t\t\t\t\t\n\t\t\t\t\tfor(int k=0;k<data.length;k++){\n\t\t\t\t\t\t//do something\n\t\t\t\t\t}\n\t\t\t\t\tstart=start+tiling_win_size/2;\n\t\t\t\t\tend=start+tiling_win_size-1;\n\t\t\t\t}\n\t\t\t}//bw.close();\n\t\t}catch(Exception e){e.printStackTrace();}\n\t}", "public void createImages(){\n for(String s : allPlayerMoves){\n String a = \"Left\";\n for(int i = 0; i < 2; i++) {\n ArrayList<Image> tempImg = new ArrayList();\n boolean done = false;\n int j = 1;\n while(!done){\n try{\n tempImg.add(ImageIO.read(new File(pathToImageFolder+s+a+j+\".png\")));\n j++;\n } catch (IOException ex) {\n done = true;\n }\n }\n String temp = s.replace(\"/\",\"\") + a;\n playerImages.put(temp, tempImg);\n a = \"Right\";\n }\n }\n imagesCreated = true;\n }", "@Override\r\n public void getRange(ArrayList<Piece> pieces){\r\n this.range.clear();\r\n int pieceX = this.getX(); int pieceY = this.getY(); // X and Y coordinates for the king piece\r\n\r\n // getPiece: 0 = empty; 1 = same color; 2 = opposite color\r\n //Up\r\n if (this.getPiece(pieceX, pieceY+1, pieces) == 0 || this.getPiece(pieceX, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Up-right\r\n if (this.getPiece(pieceX+1, pieceY+1, pieces) == 0 || this.getPiece(pieceX+1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Right\r\n if (this.getPiece(pieceX+1, pieceY, pieces) == 0 || this.getPiece(pieceX+1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Down-right\r\n if (this.getPiece(pieceX+1, pieceY-1, pieces) == 0 || this.getPiece(pieceX+1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down\r\n if (this.getPiece(pieceX, pieceY-1, pieces) == 0 || this.getPiece(pieceX, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down-left\r\n if (this.getPiece(pieceX-1, pieceY-1, pieces) == 0 || this.getPiece(pieceX-1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Left\r\n if (this.getPiece(pieceX-1, pieceY, pieces) == 0 || this.getPiece(pieceX-1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Up-left\r\n if (this.getPiece(pieceX-1, pieceY+1, pieces) == 0 || this.getPiece(pieceX-1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Castling\r\n for (Piece piece : pieces) {\r\n if (piece instanceof Rook) {\r\n if (piece.getColor() == this.getColor()) {\r\n if (validCastling(pieces, (Rook)piece)) {\r\n int targetX = (piece.getX() < getX()) ? (this.getX() - 2) : (this.getX() + 2);\r\n this.range.add(new int[] {targetX, this.getY()});\r\n }\r\n }\r\n }\r\n }\r\n }", "void generatePuzzle(Resources res, int drawable_id) {\n\t\t/* Call generatePuzzle() to break the picture into 9 pieces and randomize their\n\t\t * positions and orientations. Convert the drawable to bitmap and send it */ \n\t\tArrayList<Piece> pieces = Helper.createPieces\n\t\t\t\t(BitmapFactory.decodeResource(this.getResources(), R.drawable.pic));\n\t\tif (pieces == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t/* Initialize jigsawPieces */\n\t\tjigsawPieces = new ArrayList<Piece>();\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tjigsawPieces.add(i, pieces.get(i));\n\t\t}\n\t\t\n\t\t/* Copy the pieces from the 'pieces' array to jigsawPieces and sort it by currentPosition.\n\t\t * Note that the 'pieces' array is sorted by correctPosition*/\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\t/* Manipulate the array such that jigsawPieces stores pieces sorted by currentPosition */\n\t\t\tjigsawPieces.set(pieces.get(i).getPosition(), pieces.get(i));\n\t\t}\n\t\t\n\t\t/* Assign the correct images to the ImageViews */\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tpieceViews.get(i).setImageBitmap(jigsawPieces.get(i).getImage());\n\t\t}\n\t\t\n\t\t/* Set the rows and columns for the GridLayout and add the individual ImageViews to it */\n\t\tdrawGridLayout();\n\t\t\n\t\t/* Set the complete flag to false to indicate that the puzzle is not solved */\n\t\tcomplete = false;\n\t\t\n\t\t/* Check if any of the pieces are already placed correctly by chance (or if the puzzle is already solved) */\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tHelper.checkCompleteness(jigsawPieces.get(i), this);\n\t\t}\n\t}", "public void squares(int n) {\n\t\tfor (int x = 0; x < this.getPictureWidth(); x += n) {\n\t\t\tfor (int y = 0; y < this.getPictureHeight(); y += n) {\n\t\t\t\tthis.setAverageColor(x,y,n);\n\t\t\t}\n\t\t} \n\t}", "public void check4winner(){\n String winner = \"\";\n //checking different combinations\n if((circle1 && circle2 && circle3) ||\n (circle4 && circle5 && circle6) ||\n (circle7 && circle8 && circle9) ||\n (circle1 && circle4 && circle7) ||\n (circle2 && circle5 && circle8) ||\n (circle3 && circle6 && circle9) ||\n (circle1 && circle5 && circle9) ||\n (circle3 && circle5 && circle7)){\n //highlighting the winning combination\n if((circle1 && circle2 && circle3)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton2);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle4 && circle5 && circle6)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton4);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton6);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle7 && circle8 && circle9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton8);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle1 && circle4 && circle7)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton4);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle2 && circle5 && circle8)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton2);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton8);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle3 && circle6 && circle9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton6);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle1 && circle5 && circle9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((circle3 && circle5 && circle7)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n }\n\n winner = \"circlewins\";\n winner(winner);\n } else if((cross1 && cross2 && cross3) ||\n (cross4 && cross5 && cross6) ||\n (cross7 && cross8 && cross9) ||\n (cross1 && cross4 && cross7) ||\n (cross2 && cross5 && cross8) ||\n (cross3 && cross6 && cross9) ||\n (cross1 && cross5 && cross9) ||\n (cross3 && cross5 && cross7)){\n\n if((cross1 && cross2 && cross3)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton2);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross4 && cross5 && cross6)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton4);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton6);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross7 && cross8 && cross9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton8);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross1 && cross4 && cross7)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton4);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross2 && cross5 && cross8)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton2);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton8);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross3 && cross6 && cross9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton6);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross1 && cross5 && cross9)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton1);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton9);\n vv.setImageResource(R.drawable.redbox);\n }\n if ((cross3 && cross5 && cross7)){\n ImageButton vv = (ImageButton) findViewById(R.id.imageButton3);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton5);\n vv.setImageResource(R.drawable.redbox);\n vv = (ImageButton) findViewById(R.id.imageButton7);\n vv.setImageResource(R.drawable.redbox);\n }\n\n winner = \"crosswins\";\n winner(winner);\n } else {\n return;\n }\n }", "void checkForPlayer(boolean checkForBlacks, int i, int j) {\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t//**Check vertical**\\\\\n\t\t// Check upwards\n\t\tfor (int n = j-1; n >= 0; --n) {\n\t\t\tif (!check(i, n, checkForBlacks))\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t// Check downwards\n\t\tfor (int n = j+1; n < dimensions.y; ++n) {\n\t\t\tif (!check (i, n, checkForBlacks))\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t//**Check horizontal**\\\\\n\t\t// Check to left\n\t\tfor (int n = i-1; n >=0; --n) {\n\t\t\tif (!check(n, j, checkForBlacks))\n\t\t\tbreak;\n\t\t}\n\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t// Check to right\n\t\tfor (int n = i+1; n < dimensions.x; ++n) {\n\t\t\tif (!check(n, j, checkForBlacks))\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t//**Check diagonals**\\\\\n\t\t// Check North-East\n\t\tfor (int n = 1; i+n < dimensions.x && j-n >= 0; ++n) {\n\t\t\tif (!check(i+n, j-n, checkForBlacks))\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t// Check North-West\n\t\tfor (int n = 1; i-n >= 0 && j-n >= 0; ++n) {\n\t\t\tif (!check(i-n, j-n, checkForBlacks))\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t// Check South-East\n\t\tfor (int n = 1; i+n < dimensions.x && j+n < dimensions.y; ++n) {\n\t\t\tif (!check(i+n, j+n, checkForBlacks))\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t// Check South-West\n\t\tfor (int n = 1; i-n >= 0 && j+n < dimensions.y; ++n) {\n\t\t\tif (!check(i-n, j+n, checkForBlacks))\n\t\t\tbreak;\n\t\t}\n\t}", "private void processImageBuffer(){\n \t\tint availPattern = patterns.checkPattern(itemBuffer.buffer);\n \t\t\n \t\tif (availPattern > 0){\n \t\t\tImageRichLineGroup line = new ImageRichLineGroup();\n \t\t\t\n \t\t\tint choice = random.nextInt(availPattern);\n \t\t\tint consumeCount = patterns.pickPattern(choice);\n \t\t\tArrayList<ImageCell> images = itemBuffer.shed(consumeCount);\n \t\t\tint height = patterns.applyPattern(images, choice, totalWidth);\n \t\t\tline.addImages(images);\n \t\t\tline.height = height;\n \t\t\taddLine(line);\n \t\t}\n \t\telse {\n \t\t\t/*No pattern found */\n \t\t\tImageSingleLineGroup line = new ImageSingleLineGroup(totalWidth);\n \t\t\twhile (true == line.needMoreImage() && false == itemBuffer.isEmpty()){\n \t\t\t\tline.addImage(itemBuffer.remove(0));\n \t\t\t}\n \t\t\taddLine(line);\n \t\t}\n \t}", "private static ArrayImg< UnsignedByteType, ByteArray > createLargeRectangularImage() {\n\t\tArrayImg< UnsignedByteType, ByteArray > img = ArrayImgs.unsignedBytes( 1024, 512 );\n\t\tfor ( int i = 0; i < 3; i++ ) {\n\t\t\tlong[] xmin = new long[] { 199 + i * 200, 0 };\n\t\t\tlong[] xmax = new long[] { 299 + i * 200, 511 };\n\t\t\tIntervalView< UnsignedByteType > iview = Views.interval( img, xmin, xmax );\n\t\t\tiview.forEach( pixel -> pixel.set( ( byte ) 255 ) );\n\t\t}\n\t\treturn img;\n\t}", "public void populateGrid() {\n for (int i=0; i<5; i++) {\n int chance = (int) random(10);\n if (chance <= 3) {\n int hh = ((int) random(50) + 1) * pixelSize;\n int ww = ((int) random(30) + 1) * pixelSize;\n\n int x = ((int) random(((width/2)/pixelSize))) * pixelSize + width/4;\n int y = ((int) random((height-topHeight)/pixelSize)) * pixelSize + topHeight;\n\n new Wall(w/2, 190, hh, ww).render();\n }\n }\n\n int fewestNumberOfPowerUps = 3;\n int greatesNumberOfPowerUps = 6;\n int wSize = 2;\n int hSize = 2;\n\n powerUps = new ArrayList <PowerUp> ();\n createPowerUps (fewestNumberOfPowerUps, greatesNumberOfPowerUps, wSize, hSize);\n}", "private void setNumbers() {\n\t\tint w = worldWidth;\n\t\tint h = worldHeight;\n\t\tfor (int x = 0; x <= w - 1; x++) {\n\t\t\tfor (int y = 0; y <= h - 1; y++) {\n\t\t\t\tint numbers = 0;\n\n\t\t\t\tint right = x + 1;\n\t\t\t\tint left = x - 1;\n\t\t\t\tint up = y - 1;\n\t\t\t\tint down = y + 1;\n\n\t\t\t\tif (left < 0) {\n\t\t\t\t\tleft = 0;\n\t\t\t\t}\n\t\t\t\tif (up < 0) {\n\t\t\t\t\tup = 0;\n\t\t\t\t}\n\t\t\t\tif (down >= h) {\n\t\t\t\t\tdown = h - 1;\n\t\t\t\t}\n\t\t\t\tif (right >= w) {\n\t\t\t\t\tright = w - 1;\n\t\t\t\t}\n\n\t\t\t\tfor (int m = left; m <= right; m++) {\n\t\t\t\t\tfor (int n = up; n <= down; n++) {\n\t\t\t\t\t\tif (!(m == x && n == y)) {\n\t\t\t\t\t\t\tif (tileArr[m][n].hasBomb()) {\n\t\t\t\t\t\t\t\tnumbers++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttileArr[x][y].setNeighbors(numbers);\n\t\t\t}\n\n\t\t}\n\n\t}", "public boolean CheckVictory()\n {\n\n for (int i = 0; i < 6; i++) {\n if(isFiveAligned(\n getCell(i, 0),\n getCell(i, 1),\n getCell(i, 2),\n getCell(i, 3),\n getCell(i, 4),\n getCell(i, 5) )){\n Winner=getCell(i, 2);\n return true;\n }\n }\n\n for (int i = 0; i < 6; i++) {\n if(isFiveAligned(\n getCell(0,i),\n getCell(1,i),\n getCell(2,i),\n getCell(3,i),\n getCell(4,i),\n getCell(5,i) )){\n Winner=getCell(2, i);\n return true;\n }\n }\n CellType[] arrTypes={getCell(0, 0),getCell(1, 1),getCell(2, 2),getCell(3, 3),\n getCell(4, 4),getCell(5, 5)};\n\n \n if(isFiveAligned(arrTypes))\n {\n Winner=arrTypes[2];\n return true;\n }\n\n CellType[] REVERSE_arrTypes={getCell(0, 5),getCell(1, 4),getCell(2, 3),getCell(3, 2),\n getCell(4, 1),getCell(5, 0)};\n\n \n\n if(isFiveAligned(REVERSE_arrTypes))\n {\n Winner=REVERSE_arrTypes[2]; \n return true;\n }\n\n\n if(isFiveAligned(new CellType[]{getCell(0, 1),\n getCell(1, 2),\n getCell(2, 3),\n getCell(3, 4),\n getCell(4, 5),\n CellType.None\n })) {\n Winner=getCell(3, 4);\n return true;\n }\n \n if(isFiveAligned(new CellType[]{getCell(1, 0),\n getCell(2, 1),\n getCell(3, 2),\n getCell(4, 3),\n getCell(5, 4),\n CellType.None\n })) {\n Winner=getCell(4, 3);\n return true;\n }\n\n if(isFiveAligned(new CellType[]{\n getCell(4, 0),\n getCell(3, 1),\n getCell(2, 2),\n getCell(1, 3),\n getCell(0, 4),\n CellType.None\n \n })){\n Winner=getCell(2, 2);\n return true;}\n\n if(isFiveAligned(new CellType[]{\n getCell(5, 1),\n getCell(4, 2),\n getCell(3, 3),\n getCell(2, 4),\n getCell(1, 5),\n CellType.None\n \n })){\n Winner=getCell(3, 3);\n return true;}\n\n \n \n\n\n \n\n return false;\n }", "public void setPixel(int x, int y, short red, short green, short blue) {\n // Your solution here, but you should probably leave the following line\n // at the end.\n\t //if setPixel at the first location.\n\t if((x==0) && (y==0)) {\n\t\t if(red!=runs.getFirst().item[1]) {\n\t\t\t if(runs.getFirst().item[0]!=1) {\n\t\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t\t runs.getFirst().item[0]=runs.getFirst().item[0]-1;\n\t\t\t\t runs.addFirst(item);\n\t\t\t }\n\t\t\t else {\n\t\t\t\t if(red!=runs.getFirst().next.item[1]) {\n\t\t\t\t runs.remove(runs.nth(1));\n\t\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t\t runs.addFirst(item);\n\t\t\t\t System.out.println(runs.toString());\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t runs.remove(runs.nth(1));\n\t\t\t\t\t runs.getFirst().item[0]=runs.getFirst().item[0]+1;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t \n\t //if setPixel at the last location.\n\t else if((x==(width-1)) && (y==(height-1))) {\n\t\t if(runs.getLast().item[0]==1) {\n\t\t\t if(red!=runs.getLast().prev.item[1]) {\n\t\t\t\t int[] item= new int[] {1,red,green,blue}; \n\t\t\t\t runs.remove(runs.getLast());\n\t\t\t\t runs.addLast(item);\n\t\t }\n\t\t \n\t\t\t else {\n\t\t\t\t runs.remove(runs.getLast());\n\t\t\t\t runs.getLast().item[0]=runs.getLast().item[0]+1;\n\t\t\t }\n\t\t\t \n\t\t }\n\t\t else {\n\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t runs.addLast(item);\n\t\t\t runs.getLast().prev.item[0]=runs.getLast().prev.item[0]-1;\n\t\t }\n\t }\n\t \n\t //if Pixel is at a random location.\n//\t if(((x>0) && (y>0)) && ((x!=(width-1)) && (y!=(height-1))) ) {\n//\t if((x>0)&&(x!=(width-1))){\n\t else {\n\t int loc=y*(width)+x+1; \n\t int count=0;\n\t for(int i=0;i<runs.length();i++) {\n\t\t \n\t\tloc=loc-runs.nth(i+1).item[0] ;\n\t\tcount++;\n\t\tif (loc<=0) {\n\t\t\tbreak;\n\t\t}\n\t }\n\t if((loc==0) && (runs.nth(count).item[0]==1)){\n\t\t if((red!=runs.nth(count).next.item[1])&&(red!=runs.nth(count).prev.item[1])) { \n\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t runs.addAfter(runs.nth(count), item);\n\t\t\t runs.remove(runs.nth(count));\n\t\t }\n\t\t if((red==(runs.nth(count).next).item[1])&& (red!=runs.nth(count).prev.item[1])){\n\t\t\t runs.remove(runs.nth(count));\n\t\t\t runs.nth(count).item[0]=runs.nth(count).item[0]+1;\n\t\t }\t\n\t\t if((red==(runs.nth(count).prev).item[1])&&(red!=runs.nth(count).next.item[1])) {\n\t\t\t runs.remove(runs.nth(count));\n\t\t\t runs.nth(count).prev.item[0]=runs.nth(count).prev.item[0]+1;\n\t\t }\t\n\t\t if((red==(runs.nth(count).prev).item[1])&&(red==runs.nth(count).next.item[1])) {\n\t\t\t runs.nth(count).prev.item[0]=runs.nth(count).prev.item[0]+1+runs.nth(count).next.item[0];\n\t\t\t runs.remove(runs.nth(count));\n\t\t\t runs.remove(runs.nth(count));\n\t\t }\n\t }\n\t else if((loc==0) && (runs.nth(count).item[0]!=1)) {\n\t\t if(red!=runs.nth(count).next.item[1]) {\n\t\t\t runs.nth(count).item[0]=runs.nth(count).item[0]-1;\n\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t runs.addAfter(runs.nth(count), item);\t \n\t\t }\n\t\t else {\n\t\t\t runs.nth(count+1).item[0]=runs.nth(count+1).item[0]+1;\n\t\t }\t\t \n\t } \n\t else if(loc!=0) {\n\t\t \n\t\t int[] item= new int[] {1,red,green,blue};\n\n//\t\t DListNode<int[]> dup=runs.nth(count);\n//\t\t System.out.println(\"This is dup\"+dup.item[0]+\" \"+dup.item[1]+\" \"+dup.item[2]+\" \"+dup.item[0]);\t\t \n\t\t runs.addAfter(runs.nth(count), item);\n\t\t int[] dup=new int[] {runs.nth(count).item[0],runs.nth(count).item[1],runs.nth(count).item[2],runs.nth(count).item[3]};\n\t\t runs.addAfter(runs.nth(count).next, dup);\n\t\t System.out.println(runs.nth(count).item[0]+\"This is loc \"+loc+\"THis is count \"+count);\n\t\t runs.nth(count).item[0]=runs.nth(count).item[0]+loc-1;\n\t\t System.out.println(runs.nth(count).next.next.item[0]+\"This is loc \"+loc+\"THis is count \"+count);\n\t\t runs.nth(count).next.next.item[0]=runs.nth(count).next.next.item[0]+loc-1;\t\n\t\t }\n\t\t \n\t \n\t }\n check();\n}", "public void checkAll() {\n for (int i = 0; i < size * size; i++) {\r\n if (flowGrid[i]!=size*size) {\r\n if ((flowGrid[i] != flowGrid[flowGrid[i]]) || i != flowGrid[i]) {\r\n flowGrid[i] = flowGrid[flowGrid[i]];\r\n if (flowGrid[i] < size) {\r\n grid[i / size][i % size] = 2;\r\n }\r\n }\r\n }\r\n }\r\n\r\n }", "public void createPieces(){ \n\t\tfor(int x = 0; x<BOARD_LENGTH; x++){\n\t\t\tfor(int y = 0; y<BOARD_LENGTH; y++){ \n\t\t\t\tif(CHESS_MAP[x][y] != (null)){\n\t\t\t\t\tswitch (CHESS_MAP[x][y]){\n\t\t\t\t\tcase KING:\n\t\t\t\t\t\tpieces[pieceCounter] = new King(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase QUEEN:\n\t\t\t\t\t\tpieces[pieceCounter] = new Queen(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase BISHOP:\n\t\t\t\t\t\tpieces[pieceCounter] = new Bishop(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase KNIGHT:\n\t\t\t\t\t\tpieces[pieceCounter] = new Knight(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PAWN:\n\t\t\t\t\t\tpieces[pieceCounter] = new Pawn(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ROOK:\n\t\t\t\t\t\tpieces[pieceCounter] = new Rook(pieceCounter, new Point(x+1,y+1), new Point(0,0), true, true, BOARD_PIECE_LENGTH, true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} \n\t\t\t\t\tsetPieceIconAndName(x, y, CHESS_MAP[x][y]); \t\n\t\t\t\t\tpieceCounter++;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}" ]
[ "0.63677686", "0.59661233", "0.59258825", "0.5923553", "0.5814031", "0.576991", "0.5762723", "0.5747928", "0.5639322", "0.56132925", "0.5613045", "0.56109744", "0.5606923", "0.5554281", "0.55296814", "0.55131453", "0.5493954", "0.5449364", "0.5448004", "0.54440635", "0.5437457", "0.54315954", "0.54256964", "0.541038", "0.53964233", "0.5384724", "0.53837144", "0.5377224", "0.5375612", "0.5368124", "0.5362921", "0.5331124", "0.5281621", "0.527813", "0.5273976", "0.5273406", "0.5266069", "0.526268", "0.525653", "0.5241431", "0.52369153", "0.5230477", "0.52223325", "0.522036", "0.5219408", "0.5216202", "0.5200008", "0.5189407", "0.51885223", "0.5181641", "0.5176589", "0.5171572", "0.5167098", "0.51629394", "0.5161163", "0.51569086", "0.51517546", "0.51500314", "0.51444376", "0.5143315", "0.51432526", "0.5135016", "0.513038", "0.5130102", "0.5127936", "0.5126633", "0.51211065", "0.5116385", "0.51160765", "0.5112312", "0.5112145", "0.5106145", "0.51036096", "0.5098906", "0.50979537", "0.50976354", "0.50945264", "0.5093234", "0.5085649", "0.50796604", "0.5077525", "0.507198", "0.50711304", "0.5069762", "0.5068604", "0.50684816", "0.5066823", "0.5064297", "0.5062265", "0.50594485", "0.5056", "0.5055547", "0.50525326", "0.50522286", "0.5047519", "0.5045738", "0.50430894", "0.5037042", "0.5032415", "0.5024828" ]
0.6738072
0
Flattens the chosen colors
public void flat()throws IOException{ String input = j.showInputDialog("Choose a file to use:"); Scanner ab = new Scanner(new File(input+".ppm"));input = j.showInputDialog("Choose a name for the new file:"); PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(input+".ppm"))); out.println(ab.next());out.println(ab.next()); out.println(ab.next()); out.println(ab.next()); input = j.showInputDialog("Choose a color to flatten: (1)R (2)G (3)B (4)All"); int da; if(Integer.parseInt(input)==3){ da=2; }else if(Integer.parseInt(input)==2){ da=1; }else if(Integer.parseInt(input)==4){ da=3; }else{ da=0; } while(ab.hasNext()){ for(int rgb=0;rgb<3;rgb++){ if(rgb==da){ if(ab.hasNext()){ ab.next();} out.println(""+0); }else if(da==3){ if(ab.hasNext()){ ab.next();} out.println(""+0); }else{ if(ab.hasNext()){ out.println(ab.next());} } } } out.close(); ab.close(); System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void normaliseVertexColors()\r\n\t{\r\n\t for(int i=0; i<3; i++)\r\n vertices[i].normaliseVertexColor();\r\n\t}", "public void initColors() {\n\n int i;\n float j;\n\n int start;\n int numShades = 5;\n float shadeInc = 1 / (float) numShades;\n\n\n aColors = new Color[glb.MAXCOLORS]; /* set array size */\n\n\n /* White to Black */\n start = 0;\n for (i = start, j = 1; i < start + 6; j -= shadeInc, i++) {\n aColors[i] = new Color(j, j, j);\n }\n\n start = 6;\n /* Red to almost Magenta */\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 1, (float) 0, j);\n }\n\n\n /* Magenta to almost Blue */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color(j, (float) 0, (float) 1);\n }\n\n\n /* Blue to almost Cyan */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 0, j, (float) 1);\n }\n\n /* Cyan to almost Green */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 0, (float) 1, j);\n }\n\n\n\n /* Green to almost Yellow */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color(j, (float) 1, (float) 0);\n }\n\n /* Yellow to almost Red */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 1, j, (float) 0);\n }\n\n }", "public void resetShortColors(){\n\t\t\tfor(int i = 0; i < 10; i++){\n\t\t\t\tshortColors[i] = Color.white;\n\t\t\t}\n\t\t\tfor(int i = 0; i < 20; i++){\n\t\t\t\tshortColors[i] = Color.black;\n\t\t\t}\n\t\t}", "public void resetLongColors(){\n\t\t\tfor(int i = 0; i < 5; i++){\n\t\t\t\tlongColors[i] = Color.white;\n\t\t}\n\t\t\tfor(int i = 0; i < 10; i++){\n\t\t\t\tlongColors[i] = Color.black;\n\t\t\t}\n\t\t}", "public void flatten();", "public String listOfColors() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Color> it = colors.iterator(); it.hasNext();){\r\n\t\t\t Color c = (Color) it.next();\r\n \t sb.append(c.toString() + NL);\r\n }\r\n return sb.toString();\r\n }", "private void decomposeColors(int[][] array,int[][] red,int[][] green,int[][] blue){\n\t\tfor(int i=0;i<array.length;i++){\n\t\t\tfor(int j=0;j<array[0].length;j++){\n\t\t\t\tint pixel = array[i][j];\n\t\t\t\tred[i][j] = GImage.getRed(pixel);\n\t\t\t\tgreen[i][j] = GImage.getGreen(pixel);\n\t\t\t\tblue[i][j] = GImage.getBlue(pixel);\n\t\t\t}\n\t\t}\n\t\t//Your code ends here\n\t}", "public void RGB_Mix(View view) {\r\n int [] color= {0,0,0};\r\n\r\n adb= new AlertDialog.Builder(this);\r\n adb.setCancelable(false);\r\n adb.setTitle(\"Core Colors Mix\");\r\n adb.setMultiChoiceItems(colors, null, new DialogInterface.OnMultiChoiceClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\r\n if(isChecked) color[which]=255;\r\n else if(color[which]==255) color[which]=0;\r\n }\r\n });\r\n adb.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n lL.setBackgroundColor(Color.rgb(color[0],color[1],color[2]));\r\n\r\n }\r\n });\r\n adb.setNegativeButton(\"Exit\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n\r\n }\r\n });\r\n AlertDialog ad=adb.create();\r\n ad.show();\r\n }", "public static void main(String[] args) {\n\n int rows = 3;\n\n String[] green = {\"lime\", \"forest green\", \"olive\", \"pale green\", \"spring green\"};\n String[] red = {\"orange red\", \"red\", \"tomato\"};\n String[] pink = {\"orchid\", \"violet\", \"pink\", \"hot pink\"};\n\n String[] allColors = new String[green.length + red.length + pink.length];\n System.arraycopy(green, 0, allColors, 0, green.length);\n System.arraycopy(red, 0, allColors, green.length, red.length);\n System.arraycopy(pink, 0, allColors, green.length + red.length, pink.length);\n\n String[][] jaggedColors = new String[rows][];\n\n int[] sizes = {green.length, red.length, pink.length};\n\n int counter = 0;\n\n for (int i = 0; i < rows; i++) {\n String out = \"\";\n for (int j = 0; j < sizes[i]; j++) {\n jaggedColors[i] = new String[sizes[i]];\n jaggedColors[i][j] = allColors[counter];\n counter++;\n out += jaggedColors[i][j];\n if (j != sizes[i]-1) {\n out += \", \";\n }\n }\n System.out.println(out);\n\n }\n }", "private void recompose(int[][] array,int[][] red,int[][] green,int[][] blue){\n\t\tfor(int i=0;i<array.length;i++){\n\t\t\tfor(int j=0;j<array[0].length;j++){\n\t\t\t\tarray[i][j]=GImage.createRGBPixel(red[i][j],green[i][j],blue[i][j]);\n\t\t\t}\n\t\t}\n\t\t//Your code ends here\n\t}", "private void updateMainColors () {\n int mainColor = getCurrentMainColor();\n int index = 0;\n int[] topColors = new int[256];\n for ( int y = 0; y < 256; y++ ) {\n for ( int x = 0; x < 256; x++ ) {\n if ( y == 0 ) {\n mMainColors[index] = Color.rgb( 255 - ( 255 - Color.red( mainColor ) ) * x / 255, 255 - ( 255 - Color.green( mainColor ) ) * x / 255, 255 - ( 255 - Color.blue( mainColor ) ) * x / 255 );\n topColors[x] = mMainColors[index];\n } else\n mMainColors[index] = Color.rgb( ( 255 - y ) * Color.red( topColors[x] ) / 255, ( 255 - y ) * Color.green( topColors[x] ) / 255, ( 255 - y ) * Color.blue( topColors[x] ) / 255 );\n index++;\n }\n }\n }", "public static Color mix(Color... colors){\n\t\tif(colors.length >= 1){\n\t\t\tKMColor color = new KMColor(colors[0]);\n\t\t\tfor(int i=1; i<colors.length; i++){\n\t\t\t\tcolor.mix(colors[i]);\n\t\t\t}\n\t\t\treturn color.getColor();\n\t\t}\n\t\treturn null;\n\t}", "public Color[] getColors();", "public static void populateColors() {\n colors.put(0,Color.rgb(238, 228, 218, 0.35)); //empty tile\n colors.put(2, Color.rgb(238, 228, 218));\n colors.put(4, Color.rgb(237, 224, 200));\n colors.put(8,Color.rgb(242, 177, 121));\n colors.put(16, Color.rgb(245, 149, 99));\n colors.put(32,Color.rgb(246, 124, 95));\n colors.put(64,Color.rgb(246, 94, 59));\n colors.put(128,Color.rgb(237, 207, 114));\n colors.put(256,Color.rgb(237, 204, 97));\n colors.put(512,Color.rgb(237, 200, 80));\n colors.put(1024,Color.rgb(237, 197, 63));\n colors.put(2048,Color.rgb(237, 194, 46));\n colors.put(4096,Color.rgb(237, 194, 46));\n colors.put(8192,Color.rgb(237, 194, 46));\n\n }", "void setColors(Color... colors);", "public void clearColors() {\r\n colors.clear();\r\n }", "public void deleteColors();", "public static void convertColorsTranslucent(Color color){\n //Make all other colors translucide!\n INSTANCE.getTileset().setColorsTranslucide(color);\n\n updateView(String.format(\"Operation no action yet\"));\n }", "@Override\n public void onClick(View v) {\n int red = cp.getRed();\n int blue = cp.getBlue();\n int green = cp.getGreen();\n /*\n if (color < 0)\n color = -color;*/\n lights.lightscolors.get(index).rgbhex = \"#\" + String.format(\"%02x\", red) + String.format(\"%02x\", green) + String.format(\"%02x\", blue);\n lights.lightscolors.get(index).color = \"rgb(\" + red + \",\" + green + \",\" + blue + \")\";\n Log.v(\"ColorPicker ambiance\", lights.lightscolors.get(index).color);\n int rgb = Color.parseColor(lights.lightscolors.get(index).rgbhex);\n if (!lights.lightscolors.get(index).on)\n rgb = 0;\n GradientDrawable gd = (GradientDrawable) circles.get(index).getDrawable();\n gd.setColor(rgb);\n gd.setStroke(1, Color.WHITE);\n cp.dismiss();\n }", "private void initRelationsColors() {\n for (int i=0;i<20;i++) {\n int r = 255-(i*12);\n int gb = 38-(i*2);\n relationsC[i] = newColor(r,gb,gb);\n }\n // do green.. 20-39, dark to bright\n for (int i=0;i<20;i++) {\n int g = 17+(i*12);\n int rb = i*2;\n relationsC[20+i] = newColor(rb,g,rb);\n }\n }", "private ArrayList<Color> createColorArray(){\n ArrayList<Color> out = new ArrayList<>();\n out.add(detectColor((String) Objects.requireNonNull(P1color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P2color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P3color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P4color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P5color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P6color.getSelectedItem())));\n return out;\n }", "public void flatten (){\n // Don't need to do anything\n }", "public ArrayList<Color> userColors() {\r\n int colorIndex;\r\n ArrayList<Color> dest = new ArrayList<Color>();\r\n for (colorIndex = 0; colorIndex < this.colors; colorIndex += 1) {\r\n dest.add(Cnst.colorsToChoose.get(colorIndex));\r\n }\r\n return dest;\r\n }", "public void init_colors(Color c1,Color c2,Color c3,Color c4){\n\t\tcolors = new Color [100];\n\t\tfor (int i = 0; i < 33; i++){\n\t\t\tdouble f = ((double)i) / 32;\n\t\t\tcolors[i] = new Color(\n\t\t\t\tclamp((int)( c1.getRed() + (f * (c2.getRed() - c1.getRed())) )),\n\t\t\t\tclamp((int)( c1.getGreen() + (f * (c2.getGreen() - c1.getGreen())) )),\n\t\t\t\tclamp((int)( c1.getBlue() + (f * (c2.getBlue() - c1.getBlue())) ))\n\t\t\t);\n\t\t}\n\t\tfor (int i = 33; i < 66; i++){\n\t\t\tdouble f = ((double)(i - 33)) / 32;\n\t\t\tcolors[i] = new Color(\n\t\t\t\tclamp((int)( c2.getRed() + (f * (c3.getRed() - c2.getRed())) )),\n\t\t\t\tclamp((int)( c2.getGreen() + (f * (c3.getGreen() - c2.getGreen())) )),\n\t\t\t\tclamp((int)( c2.getBlue() + (f * (c3.getBlue() - c2.getBlue())) ))\n\t\t\t);\n\t\t}\n\t\tfor (int i = 66; i < 100; i++){\n\t\t\tdouble f = ((double)(i - 66)) / 32;\n\t\t\tcolors[i] = new Color(\n\t\t\t\tclamp((int)( c3.getRed() + (f * (c4.getRed() - c3.getRed())) )),\n\t\t\t\tclamp((int)( c3.getGreen() + (f * (c4.getGreen() - c3.getGreen())) )),\n\t\t\t\tclamp((int)( c3.getBlue() + (f * (c4.getBlue() - c3.getBlue())) ))\n\t\t\t);\n\t\t}\n\t}", "public void flatten()\n\t{\n\t}", "public static List<Color> getColorList(){\n EnumSet<Color> allColor = EnumSet.allOf(Color.class);\n //create a List from the Collection \n return new ArrayList<Color>(allColor);\n //the ArrayList takes a Collection as an argument\n }", "void setColorSelection() {\r\n for (int i = 0; i < chooser.length; i++) {\r\n\r\n if (mainclass.getGraphTyp()\r\n == AbstractGraph.GRAPHTYP_RESIDUAL) {\r\n\r\n switch (i) {\r\n case COLOR_EDGE_ONE:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_FLOW]);\r\n break;\r\n case COLOR_EDGE_TWO:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_CAP]);\r\n break;\r\n case COLOR_EDGE_TOP:\r\n chooser[i].setColorSelected(colors[COLOR_EDGE_RTOP]);\r\n break;\r\n default:\r\n chooser[i].setColorSelected(colors[i]);\r\n }\r\n } else {\r\n chooser[i].setColorSelected(colors[i]);\r\n }\r\n }\r\n }", "private static void normalizeColor(BufferedImage image) {\n\t\tHashMap<Integer, Integer> counts = colorHistogram(image);\r\n\t\tInteger[] a=sortmap(counts); // sorting the map\r\n\t\tInteger minFreq = 1000;\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\tif (counts.get(i) < minFreq) {\r\n\t\t\t\tminFreq = counts.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*\r\n\t\t*\r\n\t\t*Main logic to normalise the code\r\n\t\t* Assumption: all the colors which start from edges are the noise to the captcha or background.\r\n\t\t*/\r\n\t\tArrayList<Integer> topValues = new ArrayList<>();\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\ttopValues.add(i); // adding all the colors into the the array list topValues without any condition\r\n\t\t}\r\n\t\tInteger[] out=findEdgecolors(image); // findEdgecolors function returns the array of RGB values of colors which are at the edges of the picture\r\n\t\tfor(int i=0;i<out.length;i++)\r\n\t\t{\r\n\t\t\tif(out[i]!=null)\r\n\t\t\t\ttopValues.remove(out[i]); // remove the colours from topValues list if the color exist in the array returned by the findEdgecolors funciton (removing the colors which start from edges)\r\n\t\t}\r\n\t\t/*\r\n\t\t*Now topvalues consists of colors which are not in the edges of the clipped image\r\n\t\t*/\r\n\t\tint white_rgb = Color.YELLOW.getRGB();\r\n\t\tint black_rgb = Color.BLACK.getRGB();\r\n\r\n\t\tfor (int x=0; x<image.getWidth(); x++) {\r\n\t\t\tfor (int y=0; y<image.getHeight(); y++) {\r\n\t\t\t\tint pixelVal = image.getRGB(x, y);\r\n\r\n\t\t\t\tif (!topValues.contains(pixelVal)) {\r\n\t\t\t\t\timage.setRGB(x, y, white_rgb); //replacing the colors in topvalue with black\r\n\t\t\t\t} else {\r\n\t\t\t\t\timage.setRGB(x, y, black_rgb); // rest is colored with yellow (background)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (debug) {\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.write(image, \"gif\", new File(\"colorNormalized.gif\"));\r\n\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t}\r\n\t}", "public void removeAllSeconderyColorsFromBoard() {\n\t\tArrayList<Tile> boardTiles= getAllBoardTiles();\n\t\tif(!this.coloredTilesList.isEmpty()) {\n\t\t\tboardTiles.retainAll(coloredTilesList);\n\t\t\tfor(Tile t :boardTiles) {\n\t\t\t\tTile basicTile= new Tile.Builder(t.getLocation(), t.getColor1()).setPiece(t.getPiece()).build();\n\t\t\t\treplaceTileInSameTileLocation(basicTile);\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tthis.coloredTilesList=null;\n\t\tthis.coloredTilesList=new ArrayList<Tile>();\n\t\tthis.orangeTiles=null;\n\t\tthis.orangeTiles=new ArrayList<Tile>();\n\n\t}", "public void init_colors_red(){\t\n\t\tColor c1 = new Color(0,0,0);\t\t// BLACK\t\t\n\t\tColor c2 = new Color(255,0,0);\t// RED\n\t\tColor c3 = new Color(255,170,0);\t// ORANGE\n\t\tColor c4 = new Color(255,255,255);\t// WHITE\n\t\t\n\t\tinit_colors(c1,c2,c3,c4);\n\t}", "public static int Blend(int backColor, int color, float amount)\n {\n\t \n\t int r = (int)((unpackRed(color) * amount) + unpackRed(backColor) * (1 - amount));\n\t int g = (int)((unpackGreen(color) * amount) + unpackGreen(backColor) * (1 - amount));\n\t int b = (int)((unpackBlue(color) * amount) + unpackBlue(backColor) * (1 - amount));\n\t return packARGB(r, g, b);\n\t \n// byte r = (byte)((color.R * amount) + backColor.R * (1 - amount));\n// byte g = (byte)((color.G * amount) + backColor.G * (1 - amount));\n// byte b = (byte)((color.B * amount) + backColor.B * (1 - amount));\n// return Color.FromArgb(r, g, b);\n }", "private void resetColors(JFXButton clickedRecentColorButton) {\n int indexOfChosenColor = recentColorsButtons.indexOf(clickedRecentColorButton) + 1;\n Color newMainColor = colorsQueue.get(indexOfChosenColor);\n colorsQueue.remove(indexOfChosenColor);\n colorsQueue.push(newMainColor);\n revalidateColorPanel();\n }", "private void colorizeCrown() {\n\t\tfor (Class c : this.crown) {\n\t\t\tif (c.getColor() != null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tboolean colorized = false;\n\n\t\t\tAdaptation[] superAdapt = new Adaptation[0];\n\t\t\tif(c.getSuperClasses().size() > 0) {\n\t\t\t\tsuperAdapt = c.getSuperClasses().get(0)\n\t\t\t\t\t.getAdaptationsTable();\n\t\t\t} else {\n\t\t\t\tc.setColor(0);\n\t\t\t\tcolorized = true;\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\t\t\tfor (int i = 0; i < superAdapt.length; i++) {\n\t\t\t\tif (superAdapt[i] == null) {\n\t\t\t\t\tc.setColor(i);\n\t\t\t\t\tcolorized = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!colorized) {\n\t\t\t\tc.setColor(c.getSuperClasses().get(0).getColor() + 1);\n\t\t\t}\n\n\t\t\t// Computation is based on classe's parents discovery\n\t\t\tcomputeAdaptations(c);\n\t\t}\n\t}", "public Color[] getExperimentColors();", "protected Color[] generatePlotColors(int numLayers){\n\t\tColor[] clrs = new Color[numLayers];\n\t\t\n\t\t//the first layer is the backgound, so this shouldn't really\n\t\t//ever be used\n\t\tclrs[0] = Color.BLACK;\n\n\t\t//the raw data\n\t\tclrs[1] = Color.GRAY;\n\n\t\t//TODO: this should be changed to a more robust method\n\t\tint colorIdx;\n\t\tfor(int i = 2; i < numLayers; i++){\n\t\t\tcolorIdx = i % 4;\n\t\t\tswitch(colorIdx){\n\t\t\t\tcase 0:{\n\t\t\t\t\tclrs[i] = D2KColors.D2K_BLUE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 1:{\n\t\t\t\t\tclrs[i] = D2KColors.D2K_RED;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 2:{\n\t\t\t\t\tclrs[i] = D2KColors.D2K_GREEN;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 3:{\n\t\t\t\t\tclrs[i] = D2KColors.D2K_YELLOW;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:{\n\t\t\t\t\tSystem.out.println(\"Problem With Color Assignment\");\n\t\t\t\t\tclrs[i] = Color.MAGENTA;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn clrs;\n\t}", "String getColor();", "public static Color[] getHSBWheelScheme(int n){\r\n\r\n\t\tColor[] scheme=new Color[n];\r\n\r\n\t\t// if 12 colors or less, vary hue and use 100% saturation and brightness\r\n\t\tif(n<=12){\r\n\t\t\tfor(int i=0;i<n;i++){\r\n\t\t\t\tscheme[i]=Color.getHSBColor((float)i/n,1.0f,1.0f);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if 24 colors or less, use a two-tier saturation (50% and 100%)\r\n\t\telse if(n<=24){\r\n\t\t\tint t=n/2;\r\n\t\t\tfor(int i=0;i<t;i++){\r\n\t\t\t\tscheme[i]=Color.getHSBColor((float)i/t,1.0f,1.0f);\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<n-t;i++){\r\n\t\t\t\tscheme[i+t]=Color.getHSBColor((float)i/(n-t),0.5f,1.0f);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// if more than 24 colors, use a two-tier saturation and a two-tier brightness (50% and 100%)\r\n\t\telse{\t\r\n\t\t\tint t=n/4;\r\n\t\t\tfor(int i=0;i<t;i++){\r\n\t\t\t\tscheme[i]=Color.getHSBColor((float)i/t,1.0f,1.0f);\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<t;i++){\r\n\t\t\t\tscheme[i+t]=Color.getHSBColor((float)i/t,0.5f,1.0f);\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<t;i++){\r\n\t\t\t\tscheme[i+(2*t)]=Color.getHSBColor((float)i/t,1.0f,0.5f);\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<n-(3*t);i++){\r\n\t\t\t\tscheme[i+(3*t)]=Color.getHSBColor((float)i/t,0.5f,0.5f);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn scheme;\r\n\r\n\t}", "private static Image Transform1ColorToTransparency2ToColors(\n\t\t\tfinal BufferedImage image, final Color c1, final Color c2, \n\t\t\tfinal Color c3, final Color c4, final int otherColor1,\n\t\t\tfinal Color c5, final Color c6, final int otherColor2){\n\t\tfinal int r1 = c1.getRed();\n\t\tfinal int g1 = c1.getGreen();\n\t\tfinal int b1 = c1.getBlue();\n\t\tfinal int r2 = c2.getRed();\n\t\tfinal int g2 = c2.getGreen();\n\t\tfinal int b2 = c2.getBlue();\n\t\tfinal int r3 = c3.getRed();\n\t\tfinal int g3 = c3.getGreen();\n\t\tfinal int b3 = c3.getBlue();\n\t\tfinal int r4 = c4.getRed();\n\t\tfinal int g4 = c4.getGreen();\n\t\tfinal int b4 = c4.getBlue();\n\t\tfinal int r5 = c5.getRed();\n\t\tfinal int g5 = c5.getGreen();\n\t\tfinal int b5 = c5.getBlue();\n\t\tfinal int r6 = c6.getRed();\n\t\tfinal int g6 = c6.getGreen();\n\t\tfinal int b6 = c6.getBlue();\n\n\t\tfinal ImageFilter filter = new RGBImageFilter(){\n\t\t\tpublic final int filterRGB(int x, int y, int rgb)\n\t\t\t{\n\t\t\t\tint r = (rgb & 0xFF0000) >> 16;\n\t\tint g = (rgb & 0xFF00) >> 8;\n\t\tint b = rgb & 0xFF;\n\t\tif (r >= r1 && r <= r2 &&\n\t\t\t\tg >= g1 && g <= g2 &&\n\t\t\t\tb >= b1 && b <= b2){\n\t\t\t// Set fully transparent but keep color\n\t\t\treturn rgb & 0xFFFFFF;\n\t\t}\n\t\tif (r >= r3 && r <= r4 &&\n\t\t\t\tg >= g3 && g <= g4 &&\n\t\t\t\tb >= b3 && b <= b4){\n\t\t\t// Set fully transparent but keep color\n\t\t\treturn otherColor1;\n\t\t}\n\t\tif (r >= r5 && r <= r6 &&\n\t\t\t\tg >= g5 && g <= g6 &&\n\t\t\t\tb >= b5 && b <= b6){\n\t\t\t// Set fully transparent but keep color\n\t\t\treturn otherColor2;\n\t\t}\n\t\treturn rgb;\n\t\t\t}\n\t\t};\n\n\t\tImageProducer ip = new FilteredImageSource(image.getSource(), filter);\n\t\treturn Toolkit.getDefaultToolkit().createImage(ip);\n\t}", "Color userColorChoose();", "public static float[] createColors() {\n float[] data = new float[4 * 3];\n data[0] = 1f;\n data[1] = 0f;\n data[2] = 0f;\n data[3] = 1f;\n\n data[4] = 0f;\n data[5] = 1f;\n data[6] = 0f;\n data[7] = 1f;\n\n data[8] = 0f;\n data[9] = 0f;\n data[10] = 1f;\n data[11] = 1f;\n return data;\n }", "public static String makeHexColorInt(int... vals){\n\t\treturn \"\"+formatNumberString(Integer.toHexString((int)vals[0]),2)+\"\"+formatNumberString(Integer.toHexString((int)vals[1]),2)+\"\"+formatNumberString(Integer.toHexString((int)vals[2]),2);\n\t}", "public void flatten () {\n String tags2 = tags.toString();\n tags.delete (0, tags.length());\n int e2 = 0;\n int s2 = indexOfNextWordStart (tags2, e2, slashToSeparate);\n while (s2 < tags2.length()) {\n e2 = indexOfNextSeparator (tags2, s2, true, true, slashToSeparate);\n merge (tags2.substring (s2, e2));\n s2 = indexOfNextWordStart (tags2, e2, slashToSeparate);\n }\n }", "public void randomizeColor() {\r\n\t\tArrayList<Integer> possibleColors = new ArrayList<Integer>();\r\n\t\tfor(int i = 1; i<=4; i++) {\r\n\t\t\tif(i!=colorType) { \r\n\t\t\t\tpossibleColors.add(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcolorType = possibleColors.get((int) (Math.random()*3));\r\n\t\t\r\n\t}", "public void clear(int color);", "private static int mixColors(float t, byte r1, byte g1, byte b1, byte a1, byte r2, byte g2, byte b2, byte a2) {\n final int r = lerp(t, r1, r2);\n final int g = lerp(t, g1, g2);\n final int b = lerp(t, b1, b2);\n final int a = lerp(t, a1, a2);\n return (r << 24) | (g << 16) | (b << 8) | a;\n }", "public void setColors(Color ... theColors)\n{\n _colors = theColors;\n reloadContents(true);\n}", "public static BufferedImage flattenARGB(BufferedImage img, Color backcolor)\n\t{\n\t\tint w = img.getWidth(); int h = img.getHeight();\n\t\tBufferedImage dimg = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);\n\t\tGraphics2D g = dimg.createGraphics();\n\t\tg.setComposite(AlphaComposite.SrcAtop);\n\t\tg.setRenderingHint(RenderingHints.KEY_INTERPOLATION,\n\t\t\t\tRenderingHints.VALUE_INTERPOLATION_BICUBIC);\n\t\tg.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION,\n\t\t\t\tRenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\n\t\tg.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_ANTIALIAS_ON);\n\t\tg.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING,\n\t\t\t\tRenderingHints.VALUE_COLOR_RENDER_QUALITY);\n\t\tg.setRenderingHint(RenderingHints.KEY_RENDERING,\n\t\t\t\tRenderingHints.VALUE_RENDER_QUALITY);\n\t\tg.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL,\n\t\t\t\tRenderingHints.VALUE_STROKE_PURE);\n\t\tg.setColor(backcolor);\n\t\tg.fillRect(0, 0, w, h);\n\t\tg.drawImage(img, 0, 0, w, h, 0, 0, w, h, null);\n\t\tg.dispose();\n\t\treturn dimg;\n\t}", "private static void removeCurrentColors(){\n\t\tIterator<ArrayList<Peg>> itr = possibleCombinations.iterator();\n\t\twhile(itr.hasNext()){\n\t\t\tArrayList <Peg> victim=itr.next();\n\t\t\tfor(int i=0; i<aiGuess.size(); i++){\n\t\t\t\t\n\t\t\t\tif(victim.contains(aiGuess.get(i))){\n\t\t\t\t\titr.remove();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public randomColorGenerator(Color[] colors){\n colorChoices = colors;\n }", "public static String makeHexColor(double... vals){\n\t\treturn \"\"+formatNumberString(Integer.toHexString((int)((vals[0] * 256) - 1)),2)+\"\"+formatNumberString(Integer.toHexString((int)((vals[1] * 256) - 1)),2)+\"\"+formatNumberString(Integer.toHexString((int)((vals[2] * 256) - 1)),2);\n\t}", "private static GBAPalette grayscalePalette(int size){\n GBAPalette.Creator creator = GBAPalette.create();\n //Interpolating! (0,0), (size, 31)\n //slope = 256 / size\n for(int count = 0; count < size; count++){\n int pixel = count * 31 / size;\n creator.with(GBAColor.from(pixel, pixel, pixel));\n }\n return creator.build();\n }", "private void generateColors(){\n\t\tRandom r = new Random();\n\t\tcurrentIndex = 0;\n\t\tfor (int i = 0; i < colors.length; i++) {\n\t\t\tcolors[i] = COLORS_DEFAULT[r.nextInt(COLORS_DEFAULT.length)];\n\t\t}\n\t}", "public void resetColors(ArrayList<Vertex> edges) {\n for(int i = 0; i < edges.size(); i++){\n edges.get(i).resetColors();\n }\n }", "void reset() {\n colorSelectedList = new HashSet<>();\n }", "private void resetColors() {\n button.setIdleColor(IDLE_COLOR);\n button.setClickColor(CLICK_COLOR);\n button.setHoverColor(HOVER_COLOR);\n\n icon.getMaterial().setColor(\"Color\", ICON_COLOR);\n label.setAlpha(1.0f);\n label.setColor(ICON_COLOR);\n\n levelLabel.setAlpha(1.0f);\n levelLabel.setColor(LEVEL_COLOR);\n }", "public int[] getColorIndices();", "private void selectNovelColors(IMapColor mapColor, Histogram hist, int interestingColors,\n \t\t\tint usedColors, int[] paletteSelections) {\n \t\t\n \t\tInteger[] indices = (Integer[]) hist.getColorIndices().toArray(new Integer[hist.getColorIndices().size()]);\n \t\tSet<Integer> visited = new HashSet<Integer>();\n \t\t\n \t\tbyte[] rgb = { 0, 0, 0 };\n \t\tfloat[] hsv = { 0, 0, 0 };\n \t\t\n \t\tfloat[] lastHSV = { 0, 0, 0 };\n \t\tint[] lastRGB = { 0, 0, 0 };\n \t\tint lastPixel = Integer.MIN_VALUE;\n \t\t\n \t\tint directMap = usedColors / 3;\n \t\tint distance = interestingColors / 3;\n \t\t\n \t\tfor (int i = 0; i < usedColors; i++) {\n \t\t\tfloat maxDiff = -Float.MAX_VALUE;\n \t\t\tint farthestIndex = 0;\n \t\t\tint farthestPixel = 0;\n \t\t\t\n \t\t\tint searchDist = Math.max(1, Math.min(indices.length, (distance * (i + 1) / usedColors)));\n \t\t\tfor (int j = 0; j < searchDist && j < indices.length; j++) {\n \t\t\t\tif (visited.contains(j)) {\n \t\t\t\t\tsearchDist++;\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tint idx = indices[j];\n \t\t\t\tint pixel = mapColor.getPalettePixel(idx);\n \t\t\t\tpixelToRGB(pixel, rgb);\n \t\t\t\trgbToHsv(rgb[0] & 0xff, rgb[1] & 0xff, rgb[2] & 0xff, hsv);\n \t\t\t\t\n \t\t\t\t\n \t\t\t\tfloat diff = //(hsv[0] - lastHSV[0]) * (hsv[0] - lastHSV[0])\n \t\t\t\t\t//+ ((hsv[1] - lastHSV[1]) * (hsv[1] - lastHSV[1])) * 100000\n \t\t\t\t\t+ (hsv[2] - lastHSV[2]) * (hsv[2] - lastHSV[2])\n \t\t\t\t;\n \t\t\t\t\n \t\t\t\t//float diff = getRGBDistance(rgb, lastRGB);\n \t\t\t\tif (diff >= maxDiff) {\n \t\t\t\t\tmaxDiff = diff;\n \t\t\t\t\tfarthestPixel = pixel;\n \t\t\t\t\tfarthestIndex = j;\n \t\t\t\t\tif (i < directMap) {\n \t\t\t\t\t\tbreak;\n \t\t\t\t\t} \n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t// winner!\n \t\t\tpaletteSelections[i] = farthestIndex;\n \t\t\tvisited.add(farthestIndex);\n \t\t\t\n \t\t\tlastPixel = farthestPixel;\n \t\t\tpixelToRGB(lastPixel, lastRGB);\n \t\t\trgbToHsv(lastRGB[0] & 0xff, lastRGB[1] & 0xff, lastRGB[2] & 0xff, lastHSV);\n \t\t}\n \t}", "private Color[] getColorsForState(State state)\n {\n switch (state)\n {\n case GREEN:\n return GREEN_COLORS;\n case ORANGE:\n return ORANGE_COLORS;\n case RED:\n return RED_COLORS;\n case BACKGROUND:\n return DARK_GRAY_COLORS;\n default:\n return null;\n }\n }", "String slotsFromColor(String color);", "public abstract HSLColor toHSLColor();", "public void fillColours() {\n this.colours = new String[4];\n this.colours[0] = \"diamonds\";\n this.colours[1] = \"hearts\";\n this.colours[2] = \"spades\";\n this.colours[3] = \"clubs\";\n }", "SimpleColorChooser(Color[] colors) {\n double sqr = Math.sqrt((double) colors.length);\n int rows = (int) Math.ceil(sqr);\n int columns = (int) Math.rint(sqr);\n setLayout(new GridLayout(rows, columns, 2, 2));\n Font font2 = new Font(Font.SERIF, Font.PLAIN, 26);\n ButtonGroup bg = new ButtonGroup();\n char boxChar = (char) 9608;\n String boxString = new String(new char[]{boxChar, boxChar});\n for (Color c : colors) {\n JRadioButton rb = new JRadioButton(boxString);\n rb.setFont(font2);\n rb.setForeground(c);\n bg.add(rb);\n add(rb);\n }\n ((JRadioButton) getComponent(selected)).setSelected(true);\n }", "private static void printColor() {\n\t\tfor (int i = 0; i < colors.length; i++) {\n\t\t\tSystem.out.print(String.format(\"%d for %s\", i + 1, colors[i]));\n\t\t\tif (i != colors.length - 1) {\n\t\t\t\tSystem.out.print(\", \"); // Separate colors with comma\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\")\"); // Print a new line for the last color option\n\t\t\t}\n\t\t}\n\t}", "private void fixColorState() {\n\t\tfinal Spatial lines = this.getChild(LINES_NAME);\n \tTealWorldManager.getWorldManager().addRenderUpdater(new RenderUpdater(){\n \t\tpublic void update(Object arg) { \t\t\t\n \t\t\tboolean coloredVertices = (Boolean) arg;\n \t\t\tMaterialState ms = (MaterialState) lines.getRenderState(RenderState.StateType.Material);\n \t\t\tif(ms == null) {\n \t\t\t\tms = DisplaySystem.getDisplaySystem().getRenderer().createMaterialState();\n \t\t\t\tms.setColorMaterial(ColorMaterial.AmbientAndDiffuse);\n \t\t\t\tlines.setRenderState(ms);\n \t\t\t}\n \t\t\tms.setEnabled(coloredVertices);\n \t\t};\n \t}, this.coloredVertices);\n\t}", "public static float[] color(Color c) {\r\n \r\n if (c == null) c = Color.BLUE;\r\n return new float[]{ ((float) c.getRed() / 255.0f), \r\n ((float) c.getGreen() / 255.0f), ((float) c.getBlue() / 255.0f) };\r\n }", "private void resetLights() {\n\n List<Integer> colors = DataHolder.getInstance().getColors();\n int iter = 0;\n for (int color: colors) {\n if (color == 2) {\n colors.set(iter, 0);\n }\n iter++;\n }\n DataHolder.getInstance().setColors(colors);\n }", "private Colors ingameColor() {\n\t\tList<Colors> colors = new ArrayList<Colors>();\n\t\tIterator<Sphere> it = this.spheres.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tSphere s = it.next();\n\t\t\tif (!colors.contains(s.color())) {\n\t\t\t\tcolors.add(s.color());\n\t\t\t}\n\t\t}\n\t\treturn colors.get(MathUtils.random(colors.size() - 1));\n\t}", "private void changeColors(){\n \n Color vaccanceColor = vaccance.getValue();\n String vaccRGB = getRGB(vaccanceColor);\n databaseHandler.setTermColor(\"vaccance\", vaccRGB);\n \n Color travailColor = travail.getValue();\n String travailRGB = getRGB(travailColor);\n databaseHandler.setTermColor(\"travail\", travailRGB);\n \n Color AnnivColor = anniverssaire.getValue();\n String summerSemRGB = getRGB(AnnivColor);\n databaseHandler.setTermColor(\"annivessaire\", summerSemRGB);\n \n Color formationColor = formation.getValue();\n String formationRGB = getRGB(formationColor);\n databaseHandler.setTermColor(\"formation\", formationRGB);\n \n Color workshopColor = workshop.getValue();\n String workshopRGB = getRGB(workshopColor);\n databaseHandler.setTermColor(\"workshop\", workshopRGB);\n \n Color certifColor = certif.getValue();\n String certifRGB = getRGB(certifColor);\n databaseHandler.setTermColor(\"certif\", certifRGB);\n \n Color importantColor = important.getValue();\n String importantRGB = getRGB(importantColor);\n databaseHandler.setTermColor(\"important\", importantRGB);\n \n Color urgentColor = urgent.getValue();\n String allHolidayRGB = getRGB(urgentColor);\n databaseHandler.setTermColor(\"urgent\", allHolidayRGB);\n \n \n \n }", "public int colorVertices();", "public ArrayList<String> getColorList()\n {\n \treturn colors;\n }", "public void setColors(Color[] colors)\n {\n this.colors = colors;\n }", "public void setExperimentColor(int [] indices, Color color);", "private static Color[][] toConvolved(PixelSelector ps, double[][] currentFilter) {\n\t\tColor[][] toReturn = new Color[(ps.getWidth() - 1) / ACTUAL_SIZE][(ps.getHeight() - 1) / ACTUAL_SIZE];\n\t\t//For each pixel\n\t\tfor (int x = 0; x < toReturn.length; x++) {\n\t\t\tfor (int y = 0; y < toReturn[x].length; y++) {\n\t\t\t\t//Add up all the pixels in the area, then multiply them by the filter and produce a new pixel to return\n\t\t\t\tColor total = new Color(0, 0, 0);\n\t\t\t\tfor (int i = x; i < x + FILTER_SIZE; i++) {\n\t\t\t\t\tfor (int j = y; j < y + FILTER_SIZE; j++) {\n\t\t\t\t\t\ttotal = add(multiply(ps.getPixel((x * ACTUAL_SIZE) + (i - x), (y * ACTUAL_SIZE) + (j - y)), currentFilter[i - x][j - y]), total);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttoReturn[x][y] = total;\n\t\t\t}\n\t\t}\n\t\treturn toReturn;\n\t}", "private void randomiseColors() {\n \t// Give the star a random color for normal circumstances...\n \tcolor.set((float) Random.nextDouble(),\n \t\t\t(float) Random.nextDouble(), (float) Random.nextDouble());\n \n // When the star is twinkling, we draw it twice, once in the color below \n // (not spinning) and then once in the main color defined above.\n twinkleColor.set((float) Random.nextDouble(),\n \t\t(float) Random.nextDouble(), (float) Random.nextDouble());\n }", "public Color4 getEffectColorMul();", "public Color generateColor() { //function to generate a random color from the array of colors passed in\n Random rand = new Random();\n int randomNum = rand.nextInt((colorChoices.length));\n return colorChoices[randomNum];\n }", "void fill(int rgb);", "public void reset(){\n\t\t//int selectedColor = dots.getColor();\n\n\t\tfor (int i = 0; i < size; i++){\n\t\t\tfor (int j = 0; j < size; j++){\n\n\t\t\t\t\tdots[i][j].setColor(model.getColor(i,j));\n\t\t\t}\n\t\t}\n\t}", "public void sortColors(int[] nums) {\n int n = nums.length;\n int red = 0, blue = n-1;\n for(int i = 0; i <= blue; ) {\n if(nums[i] == 0) {\n int tmp = nums[red];\n nums[red++] = nums[i];\n nums[i] = tmp;\n i++;\n }\n else if(nums[i] == 2) {\n int tmp = nums[blue];\n nums[blue--] = nums[i];\n nums[i] = tmp;\n }\n else i++;\n }\n }", "private int optimizeForNColorsAndRebuildPalette(BufferedImage img, IMapColor mapColor) {\n \t\t\n \t\tint maxDist = 0;\n \t\tmaxDist = mapColor.getMinimalPaletteDistance();\n \n \t\tHistogram hist = new Histogram(img);\n \t\tint interestingColors = 0;\n \t\tint mappedColors = 0;\n \t\t\n \t\tint mostInterestingColors = 0;\n \t\t\n \t\t//int total = img.getWidth() * img.getHeight();\n \t\t\n \t\t//for (int mask = 4; mask < 7; mask++) {\n \t\t\tmappedColors = hist.generate(mapColor, maxDist, 0);\n \t\t\tinterestingColors = hist.size();\n \t\t\tif (interestingColors > mostInterestingColors)\n \t\t\t\tmostInterestingColors = interestingColors;\n \t\t\tSystem.out.println(\"For mask \" + Integer.toHexString(0) \n \t\t\t\t\t+\"; # interesting = \" + interestingColors\n \t\t\t\t\t+\"; # mapped = \" + mappedColors);\n \t\t\t//if (interestingColors <= 256)\n \t\t\t//\tbreak;\n \t\t\t//if (mappedColors > total / 2)\n \t\t\t//\tbreak;\n \t\t//} \n \t\t\n \t\tint usedColors = Math.min(mapColor.getNumColors(), interestingColors);\n \t\t\n \t\tSystem.out.println(\"interestingColors=\"+interestingColors\n \t\t\t\t+\"; usedColors=\"+usedColors\n \t\t\t\t+\"; mappedColors=\" + mappedColors);\n \t\t\n \t\tint replaceDist = mapColor.getMaximalReplaceDistance(mostInterestingColors);\n \n \t\tint[] paletteSelections = new int[usedColors];\n \t\t\n \t\tif (mapColor.getNumColors() >= 16) {\n \t\t\tselectExponential(interestingColors, usedColors, paletteSelections);\n \t\t} else {\n \t\t\tselectNovelColors(mapColor, hist, interestingColors, usedColors, paletteSelections);\n \t\t}\n \t\t\n \t\tfor (int c = 0; c < usedColors; c++) {\n \t\t\tint idx = hist.getColorIndex(paletteSelections[c]);\n \t\t\tint r = (idx>>6) & 0x7;\n \t\t\tint g = (idx>>3) & 0x7;\n \t\t\tint b = (idx>>0) & 0x7;\n \t\t\tcanvas.setGRB333(c, g, r, b);\n \t\t\t\n \t\t\treplaceColor(img, hist, idx, rgb8ToPixel(thePalette[c]), replaceDist);\n \t\t}\n \t\t\n \t\t\n \t\treturn maxDist;\n \t}", "private int getCurrentMainColor () {\n int translatedHue = 255 - ( int ) ( mCurrentHue * 255 / 360 );\n int index = 0;\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 0, ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255 - ( int ) i, 0, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, ( int ) i, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, 255, 255 - ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( ( int ) i, 255, 0 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 255 - ( int ) i, 0 );\n index++;\n }\n return Color.RED;\n }", "private Sign[] flattenBoard(){\r\n Sign[] flatBoard = new Sign[10]; // an array to save the board as one dimensional array\r\n int count = 1; //counter to help the transition from matrix to array\r\n\r\n /* transfer the matrix to array */\r\n for (int i=0;i<3;i++)\r\n for (int j=0;j<3;j++)\r\n flatBoard[count++] = board[i][j];\r\n\r\n return flatBoard;\r\n }", "public void setColor( float[] c )\n\t{\n\t\tcolorWeight[0] = c[0];\n\t\tcolorWeight[1] = c[1];\n\t\tcolorWeight[2] = c[2];\n\t\t\n\t\t//color = null;\n\t\tcolor = new Color( colorWeight[0], colorWeight[1], colorWeight[2] );\n\t}", "private void addColors() {\n colors.add(Color.GRAY);\n colors.add(Color.BLUE);\n colors.add(Color.DKGRAY);\n colors.add(Color.CYAN);\n colors.add(Color.MAGENTA);\n //Zijn voorlopig maar 5 kleuren, kan altijd makkelijk meer doen, wil ook liever hex-based kleuren gaan gebruiken.\n }", "private static String formatHexString(Color c) {\n return c != null?String.format(null, \"#%02x%02x%02x\", new Object[]{Long.valueOf(Math.round(c.getRed() * 255.0D)), Long.valueOf(Math.round(c.getGreen() * 255.0D)), Long.valueOf(Math.round(c.getBlue() * 255.0D))}).toUpperCase():null;\n }", "public abstract void tellColorList(ArrayList<String> colors);", "private void initPieceColors(){\n\t\tfor(Piece p : this.pieces)\n\t\t\tpieceColors.put(p, Utils.randomColor());\n\t}", "private int reduceColorSize(int oldColor, int colorRange) {\n return (int) Math.floor((oldColor / colorRange)) * colorRange;\n }", "void xsetColorDepth(com.microsoft.schemas.office.x2006.digsig.STPositiveInteger colorDepth);", "private void colorizeCore() {\n\n\t\tfor (Class c : this.core) {\n\n\t\t\tint color = 0;\n\t\t\tboolean colored = false;\n\n\t\t\t// Get conflict graph\n\t\t\tHashSet<Class> relatedTo = c.getRelatedTo();\n\t\t\tif (this.conflictGraph.containsKey(c)) {\n\t\t\t\tfor (Class rel : this.conflictGraph.get(c)) {\n\t\t\t\t\trelatedTo.add(rel);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Lookup for a free color\n\t\t\twhile (!colored) {\n\n\t\t\t\tboolean colorBusy = false;\n\t\t\t\tfor (Class rel : relatedTo) {\n\t\t\t\t\tif (rel.getColor() != null && rel.getColor() == color)\n\t\t\t\t\t\tcolorBusy = true;\n\t\t\t\t}\n\n\t\t\t\tif (!colorBusy) {\n\t\t\t\t\tc.setColor(color);\n\t\t\t\t\tcolored = true;\n\t\t\t\t} else {\n\t\t\t\t\tcolor++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcomputeAdaptations(c);\n\t\t}\n\t}", "public void antiClue(Color color) {\n\t\tpColors.remove(color);\n\t\tpColors.remove(Color.MULTI);\n\t}", "private Color generateColor() {\r\n\t\tint length = nameColor.size();\r\n\t\tif(length == 0) return colorArray[0];\r\n\t\t\r\n\t\tColor lastColor = nameColor.get(length-1);\r\n\t\tint lastColorIndex = 0;\r\n\t\tfor(int i = 0; i<colorArray.length; i++) {\r\n\t\t\tif(lastColor == colorArray[i]) {\r\n\t\t\t\tlastColorIndex = i;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tColor curColor = colorArray[(lastColorIndex+1)%3];\r\n\t\treturn curColor;\r\n\t}", "private int[] makeRGBArray(Color color) {\n\t\treturn new int[]{color.getRed(), color.getGreen(), color.getBlue()};\n\t}", "public Color[] getColors()\n {\n return colors;\n }", "public static void main(String[] args) {\n\t\tSet<String> colorSet = new HashSet<>();\n\t\tString[] colorArray = { \"red\", \"blue\", \"green\", \"orange\", \"gray\", \"red\" };\n\t\tfor (String color : colorArray) {\n\t\t\tSystem.out.println(colorSet.add(color));\n//\t\t\tcolorSet.add(color);\n\n\t\t}\n\t\tSystem.out.println(colorSet);\n\t\tSortedSet<String> tree = new TreeSet<>(colorSet);\n\t\tSystem.out.println(tree);\n\t\t//[blue, gray, green, orange, red]\n\t\tSystem.out.println(tree.headSet(\"green\"));\n\t\tSystem.out.println(tree.tailSet(\"green\"));\n\t\ttree.add(\"pink\");\n\t\tSystem.out.println(tree);\n\t\tSystem.out.println(tree.first());\n\t\tSystem.out.println(tree.last());\n\n\t}", "static public long buildColor(int r, int g, int b) {\n\t\treturn ((r) | ((g) << 8) | ((b) << 16));\n\t}", "static void convert_palette(char []palette,UBytePtr color_prom)\n\t{\n\t\tint i;\n\t\n int p_inc=0;\n\t\tfor (i = 0;i < 1024;i++)\n\t\t{\n\t\t\tint bit0,bit1,bit2,bit3;\n\t\n\t\n\t\t\tbit0 = (color_prom.read(0) >> 0) & 0x01;\n\t\t\tbit1 = (color_prom.read(0) >> 1) & 0x01;\n\t\t\tbit2 = (color_prom.read(0) >> 2) & 0x01;\n\t\t\tbit3 = (color_prom.read(0) >> 3) & 0x01;\n\t\t\tpalette[p_inc++]=((char)(255 - (0x10 * bit0 + 0x21 * bit1 + 0x46 * bit2 + 0x88 * bit3)));\n\t\t\tbit0 = (color_prom.read(1024) >> 0) & 0x01;\n\t\t\tbit1 = (color_prom.read(1024) >> 1) & 0x01;\n\t\t\tbit2 = (color_prom.read(1024) >> 2) & 0x01;\n\t\t\tbit3 = (color_prom.read(1024) >> 3) & 0x01;\n\t\t\tpalette[p_inc++]=((char)(255 - (0x10 * bit0 + 0x21 * bit1 + 0x46 * bit2 + 0x88 * bit3)));\n\t\t\tbit0 = (color_prom.read(2*1024) >> 0) & 0x01;\n\t\t\tbit1 = (color_prom.read(2*1024) >> 1) & 0x01;\n\t\t\tbit2 = (color_prom.read(2*1024) >> 2) & 0x01;\n\t\t\tbit3 = (color_prom.read(2*1024) >> 3) & 0x01;\n\t\t\tpalette[p_inc++]=((char)(255 - (0x10 * bit0 + 0x21 * bit1 + 0x46 * bit2 + 0x88 * bit3)));\n\t\n\t\t\tcolor_prom.inc();\n\t\t}\n\t\n\t\t/* reserve the last color for the transparent pen (none of the game colors has */\n\t\t/* these RGB components) */\n\t\tpalette[p_inc++]=((char)(240));\n\t\tpalette[p_inc++]=((char)(240));\n\t\tpalette[p_inc++]=((char)(240));\n\t}", "private void colorizeGrid() {\n for (int x = 0; x < field.length; x++) {\n for (int y = 0; y < field[0].length; y++) {\n field[x][y].setStyle(intersection.getColorCode(x, y));\n }\n }\n }", "private static void setButtonsColor(){\r\n for(MyButton b: mylist.getAllButtons()){\r\n if(!b.isChosen()){\r\n b.resetColor();\r\n }\r\n }\r\n \r\n for (MyButton b1: mylist.getAllButtons()){\r\n if(b1.isChosen()){\r\n for(MyButton b2 : mylist.getAllButtons()){\r\n if(!b1.equals(b2)){ \r\n if (b2.block.isSameType(b1.block)){ \r\n b2.setCannotBeChosen();\r\n }\r\n else if (!b2.isChosen() && b2.block.isAtSameTime(b1.block)){\r\n b2.setCannotBeChosen();\r\n }\r\n }\r\n }\r\n }\r\n } \r\n }", "public TetrisColors() {\n\t\treset();\t\n\t}" ]
[ "0.5702853", "0.56731915", "0.56304026", "0.55463475", "0.5490895", "0.5459873", "0.53572637", "0.5236844", "0.51237583", "0.506086", "0.50034195", "0.49742466", "0.49695888", "0.495481", "0.4953523", "0.49055046", "0.48543185", "0.4819946", "0.48032588", "0.47784504", "0.4773841", "0.4772888", "0.4767878", "0.47676697", "0.47619992", "0.47516856", "0.4743643", "0.47276032", "0.47259897", "0.46871382", "0.46833506", "0.46708027", "0.46551383", "0.46380925", "0.46320528", "0.46260428", "0.4614324", "0.45884544", "0.45700163", "0.45584366", "0.45577073", "0.45391124", "0.45306584", "0.45288885", "0.45082346", "0.45061243", "0.45044935", "0.45012394", "0.4493834", "0.44936284", "0.44853696", "0.447623", "0.44666457", "0.44656783", "0.44551107", "0.44531918", "0.4447886", "0.44443643", "0.44440925", "0.44434375", "0.4437039", "0.44366094", "0.44146973", "0.4413035", "0.44125316", "0.44078293", "0.4407416", "0.4399558", "0.4394758", "0.43943843", "0.4393208", "0.43927994", "0.43800962", "0.4374986", "0.43670186", "0.43645048", "0.43642926", "0.43597972", "0.43553805", "0.43551153", "0.43469968", "0.4342342", "0.43345174", "0.43300343", "0.43231562", "0.4303698", "0.43021634", "0.42987564", "0.42884618", "0.42883044", "0.42881808", "0.42861947", "0.4286176", "0.42854276", "0.42832983", "0.42712703", "0.42698115", "0.4260952", "0.42596558", "0.42570746" ]
0.5392465
6
Flips horizontal, vertical, oboth
public void flip()throws IOException{ String input = j.showInputDialog("Choose a file to use:"); Scanner ab = new Scanner(new File(input+".ppm")); input = j.showInputDialog("Choose a name for the new file:"); PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(input+".ppm"))); input = j.showInputDialog("Flip: (1)Horizontal (2)Vertical (3)Both"); out.println(ab.next()); int height=Integer.parseInt(ab.next()); int width=Integer.parseInt(ab.next()); out.println(height);out.println(width); out.println(ab.next()); int asd[][][]=new int[width][height][3]; for(int x=0;x<width;x++){ for(int y=0;y<height;y++){ for(int rgb=0;rgb<3;rgb++){ String ass=ab.next(); asd[x][y][rgb]= Integer.parseInt(ass); } } } if(Integer.parseInt(input)==1){ for(int x=0;x<width;x++){ for(int y=height-1;y>=0;y--){ for(int rgb=0;rgb<3;rgb++){ out.print(" "+asd[x][y][rgb]+" "); } } } } else if(Integer.parseInt(input)==2){ for(int x=width-1;x>=0;x--){ for(int y=0;y<height;y++){ for(int rgb=0;rgb<3;rgb++){ out.print(" "+asd[x][y][rgb]+" "); } } } }else{ for(int x=width-1;x>=0;x--){ for(int y=height-1;y>=0;y--){ for(int rgb=0;rgb<3;rgb++){ out.print(" "+asd[x][y][rgb]); } } } } out.close(); ab.close(); System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flipV() {\r\n int tmp, sym;\r\n for (int col = 0; col < pixels.length; ++col) {\r\n for (int row = 0; row < pixels[col].length / 2; ++row) {\r\n // find the column index of the vertically symmetric pixel\r\n sym = pixels[col].length - 1 - row;\r\n // swap the pixel value between the two\r\n tmp = pixels[col][row];\r\n pixels[col][row] = pixels[col][sym];\r\n pixels[col][sym] = tmp;\r\n }\r\n }\r\n this.pix2img();\r\n }", "private void flip()\r\n\t{\r\n\t\tif(heading == Direction.WEST)\r\n\t\t{\r\n\t\t\tsetDirection(Direction.EAST);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsetDirection(Direction.WEST);\r\n\t\t}\r\n\t}", "public void flip(){\n this.faceDown = !this.faceDown;\n }", "public void flip() {\r\n \tif (flip != 0) {\r\n \t\tflipValue = -1;\r\n \t\tflipReposition = frameWidth;\r\n \t} else {\r\n \t\tflipValue = 1;\r\n \t\tflipReposition = 0;\r\n \t}\r\n }", "void flip() {\n _flipped = !_flipped;\n }", "private boolean isFlipped(){\n switch(this.orientation){\n case \"0\": case\"1\": case\"2\": case\"3\": return false;\n case \"4\": case\"5\": case\"6\": case\"7\": return true;\n default: return false;\n }\n }", "public void flip() {\n float tx = x1;\n float ty = y1;\n x1 = x2;\n y1 = y2;\n x2 = tx;\n y2 = ty;\n nx = -nx;\n ny = -ny;\n }", "public Squarelotron sideFlip(String side);", "public static void flipHorizontalAxis(int[][] matrix) {\n for(int i = matrix.length - 1; i >= matrix.length/2; i-- ){\n for(int j = 0; j < matrix[i].length; j++){\n int temp = matrix[i][j];\n matrix[i][j] = matrix[(matrix.length - 1) - i][j];\n matrix[(matrix.length - 1) - i][j] = temp;\n }\n }\n}", "static Bitmap flip(Bitmap bitmap, boolean horizontal, boolean vertical) {\n Matrix matrix = new Matrix();\n matrix.preScale(horizontal ? -1 : 1, vertical ? -1 : 1);\n return Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true);\n }", "public void setFlipped() {\n\t\thasFlipped = true;\n\t}", "public void flipVertical() {\n\t\t\tthis.data = flipGridVertical(data);\n\t\t\tcomputeHashes();\n\t\t}", "public void flipH() {\r\n int tmp, sym;\r\n for (int row = 0; row < pixels.length; ++row) {\r\n for (int col = 0; col < pixels[row].length / 2; ++col) {\r\n // find the column index of the horizontally symmetric pixel\r\n sym = pixels[row].length - 1 - col;\r\n // swap the pixel value between the two\r\n tmp = pixels[row][col];\r\n pixels[row][col] = pixels[row][sym];\r\n pixels[row][sym] = tmp;\r\n }\r\n }\r\n this.pix2img();\r\n }", "void enableFlipMode();", "void reverseDirection();", "public void flip(){\n Matrix mirrorMatrix = new Matrix();\n mirrorMatrix.preScale(-1, 1);\n Bitmap turnMap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), mirrorMatrix, false);\n turnMap.setDensity(DisplayMetrics.DENSITY_DEFAULT);\n bitmap = new BitmapDrawable(turnMap).getBitmap();\n }", "public void reverseFrame() {\r\n if (reversedImage) {\r\n reversedImage = false;\r\n } else {\r\n reversedImage = true;\r\n }\r\n }", "public static void testMirrorVertical()\n {\n Picture caterpillar = new Picture(\"caterpillar.jpg\");\n caterpillar.explore();\n caterpillar.mirrorVertical();\n caterpillar.explore();\n }", "private void flipArrow() {\n arrow.setRotation(0);\n arrow.setScaleX(-1);\n arrow.setRotation(50);\n }", "@Override\n public void Invert() {\n\t \n }", "public void hreflect() {\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n int h= 0;\n int k= rows-1;\n //invariant: rows 0..h-1 and k+1.. have been inverted\n while (h < k) {\n // Swap row h with row k\n // invariant: pixels 0..c-1 of rows h and k have been swapped\n for (int c= 0; c != cols; c= c+1) {\n currentIm.swapPixels(h, c, k, c);\n }\n \n h= h+1; k= k-1;\n }\n }", "public native MagickImage flipImage() throws MagickException;", "public static int[][][] flipVertically(int[][][] source) {\n\n\t\tint[][][] verticalTemp = source;\n\t\tint[][][] vertical = new int[source.length][source[0].length][3]; \n\t\tint rows = (vertical.length) - 1; \n\n\t\t// Using one loop to swift the content\n\t\tfor (int i = 0; i < (rows + 1); i++) { \n\t\t\tvertical[i] = verticalTemp[rows - i];\n\t\t}\n\t\treturn vertical;\n\t}", "public void invertOrientation() {\n\t\tPoint3D temp = getPoint(2);\n\t\tsetPoint(2, getPoint(1));\n\t\tsetPoint(1, temp);\n\n\t\tTriangleElt3D temp2 = getNeighbour(2);\n\t\tsetNeighbour(2, getNeighbour(1));\n\t\tsetNeighbour(1, temp2);\n\t\tif (this.getNetComponent() != null)\n\t\t\tthis.getNetComponent().setOriented(false);\n\t}", "public Squarelotron inverseDiagonalFlip(int ring);", "public PImage flipVH(PImage img)\n {\n PImage flipped = createImage(img.width,img.height,RGB);\n flipped.loadPixels();\n for(int i = 0; i < img.width; i++)\n {\n for(int j = 0; j < img.height; j++)\n {\n int loc = i + j * flipped.width;\n int locFlipped = (img.width-i-1) + (img.height-j-1) * flipped.width;\n if(img.pixels[loc] == color(0,0,0))\n {\n flipped.pixels[locFlipped] = color(0,0,0);\n }\n else\n {\n flipped.pixels[locFlipped] = color(255,255,255);\n }\n }\n }\n flipped.updatePixels();\n return flipped;\n }", "public void flip(int bitIndex);", "public void flipBoard() {\r\n\t\tfor (int i = 0; i < this.SIZE/2; i++) {\r\n\t\t\tfor (int j = 0; j < this.SIZE; j++) {\r\n\t\t\t\tswap(j, this.SIZE - 1 - i, j, i);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void onMirrorHorizontal() {\n mirror(TransformDesign.MIRROR_HORIZONTAL, 0.0f);\n }", "public void flip() {\n\t\t\tif (showing.getImage() == faceUp) {\n\t\t\t\tshowing.setImage(FACE_DOWN);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tshowing.setImage(faceUp);\n\t\t\t}\n\t\t}", "public static void testMirrorHorizontal()\n {\n Picture caterpillar = new Picture(\"caterpillar.jpg\");\n caterpillar.explore();\n caterpillar.mirrorHorizontal();\n caterpillar.explore();\n }", "void disableFlipMode();", "public static void flipVertical (BufferedImage bi)\n {\n imageList.add(deepCopy(bi)); // add the image to the undo list\n int xSize = bi.getWidth();\n int ySize = bi.getHeight();\n\n // Temp image, to store pixels as we reverse everything\n BufferedImage newBi = new BufferedImage (xSize, ySize, 3); \n\n for (int i = 0; i < xSize; i++)\n {\n for (int j = 0; j< ySize; j++)\n {\n int rgb = bi.getRGB(i,j);\n newBi.setRGB(i,ySize-j-1, rgb); //flip the pixels\n }\n }\n for (int i = 0; i < xSize; i++)\n {\n for (int j = 0; j< ySize; j++)\n {\n bi.setRGB(i,j,newBi.getRGB(i,j)); // set each pixel of the original image \n }\n }\n redoList.add(deepCopy(bi)); // add the new image to the redo list\n }", "@Override\n\tpublic Squarelotron sideFlip(String side) {\n\t\tint[] array = numbers();\n\t\t//converts the array into a new Squarelotron\n\t\tSquarelotron copySquarelotron = makeSquarelotron(array);\n\t\tint[][] newSquarelotron = copySquarelotron.squarelotron;\n\t\t//finds length of squarelotron and takes the square root\n\t\tint length = array.length;\n\t\tdouble sqrtLength = Math.sqrt(length);\n\t\tint size =(int) sqrtLength;\n\t\t//the following check for each input and then flip accordingly\n\t\t//top flips the top two rows\n\t\tif(side == \"top\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[0][i];\n\t\t\t\tnewSquarelotron[0][i] = newSquarelotron[1][i];\n\t\t\t\tnewSquarelotron[1][i]=number;\n\t\t\t}\n\n\t\t}\n\t\t//bottom flips the bottom two rows\n\t\telse if(side == \"bottom\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[size-1][i];\n\t\t\t\tnewSquarelotron[size-1][i] = newSquarelotron[size-2][i];\n\t\t\t\tnewSquarelotron[size-2][i]=number;\n\t\t\t}\t\n\n\t\t}\n\t\t//left flips the left two rows\n\t\telse if(side == \"left\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][0]\t;\n\t\t\t\tnewSquarelotron[i][0] = newSquarelotron[i][1];\n\t\t\t\tnewSquarelotron[i][1]=number;\n\t\t\t}\n\n\t\t}\n\t\t//right flips the right two rows\n\t\telse if(side == \"right\"){\n\t\t\tfor(int i = 0; i<= (size-1); i++){\n\t\t\t\tint number= newSquarelotron[i][size-1];\n\t\t\t\tnewSquarelotron[i][size-1] = newSquarelotron[i][size-2];\n\t\t\t\tnewSquarelotron[i][size-2]=number;\n\t\t\t}\t\n\n\t\t}\n\n\t\tcopySquarelotron.squarelotron = newSquarelotron;\n\t\treturn copySquarelotron;\n\t}", "public void flip() {\r\n\t\tObject[] bak = path.toArray(new Direction[path.size()]);\r\n\t\tpath.clear();\r\n\t\tfor (int i = bak.length-1; i >= 0; i--) {\r\n\t\t\tpath.push((Direction) bak[i]);\r\n\t\t}\r\n\t}", "public void onMirrorVertical() {\n mirror(TransformDesign.MIRROR_VERTICAL, 0.0f);\n }", "public void mirror() {\n this.mirrored = !this.mirrored;\n }", "public void switchSides() {\n\t\tint temp = 0;\r\n\t\ttemp = leftValue;\r\n\t\tleftValue = rightValue;\r\n\t\trightValue = temp;\r\n\t}", "public void flipHorizontal() {\n\t\t\tfor(int row = 0; row < TILE_DIM; row++) {\n\t\t\t\tString tmp = \"\";\n\t\t\t\tfor(int col = TILE_DIM-1; col >= 0; col--) {\n\t\t\t\t\ttmp += this.data[row].charAt(col);\n\t\t\t\t}\n\t\t\t\tthis.data[row] = tmp;\n\t\t\t}\n\t\t\tcomputeHashes();\n\t\t}", "public void setFlip() {\n\t\tflip = true;\n\t}", "public Piece flip(){\n if(this == BLACK){\n return WHITE;\n }\n else{\n return BLACK;\n }\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n }", "public Squarelotron leftRightFlip(int ring);", "public void flipDirection(Direction flip){\n \tswitch (direction){\n\t\t\tcase NORTH: \n\t\t\t\tdirection = Direction.SOUTH;\n\t\t\t\tbreak;\n\t\t\tcase NORTHEAST:\n\t\t\t\tif (flip == Direction.EAST) direction = Direction.NORTHWEST;\n\t\t\t\telse direction = Direction.SOUTHEAST;\n\t\t\t\tbreak;\n\t\t\tcase EAST:\n\t\t\t\tdirection = Direction.WEST;\n\t\t\t\tbreak;\n\t\t\tcase SOUTHEAST:\n\t\t\t\tif (flip == Direction.EAST) direction = Direction.SOUTHWEST;\n\t\t\t\telse direction = Direction.NORTHEAST;\n\t\t\t\tbreak;\n\t\t\tcase SOUTH:\n\t\t\t\tdirection = Direction.NORTH;\n\t\t\t\tbreak;\n\t\t\tcase SOUTHWEST:\n\t\t\t\tif (flip == Direction.WEST) direction = Direction.SOUTHEAST;\n\t\t\t\telse direction = Direction.NORTHWEST;\n\t\t\t\tbreak;\n\t\t\tcase WEST:\n\t\t\t\tdirection = Direction.EAST;\n\t\t\t\tbreak;\n\t\t\tdefault: //NORTHWEST\n\t\t\t\tif (flip == Direction.WEST) direction = Direction.NORTHEAST;\n\t\t\t\telse direction = Direction.SOUTHWEST;\n\t\t\t\tbreak;\n \t\t}\n }", "public Squarelotron upsideDownFlip(int ring);", "public static void flipHorizontal (BufferedImage bi)\n {\n imageList.add(deepCopy(bi)); // add the image to the undo list\n int xSize = bi.getWidth();\n int ySize = bi.getHeight();\n\n // Temp image, to store pixels as we reverse everything\n BufferedImage newBi = new BufferedImage (xSize, ySize, 3); \n\n for (int i = 0; i < xSize; i++)\n {\n for (int j = 0; j< ySize; j++)\n {\n int rgb = bi.getRGB(i,j);\n newBi.setRGB(xSize-i-1,j,rgb); //flip the pixels\n }\n }\n for (int i = 0; i < xSize; i++)\n {\n for (int j = 0; j< ySize; j++)\n {\n bi.setRGB(i,j,newBi.getRGB(i,j)); // set each pixel of the original image \n }\n }\n redoList.add(deepCopy(bi)); // add the new image to the redo list\n }", "public static void flipHorizontalAxis(int[][] matrix){\n\n int beginIndex = 0;\n int endIndex = (matrix.length - 1);\n int[] begin = matrix[beginIndex];\n int[] end = matrix[endIndex];\n int[] temp;\n\n\n while(endIndex > beginIndex){\n //swap the arrays with a temp variable\n temp = Arrays.copyOf(begin, begin.length);\n begin = Arrays.copyOf(end, end.length);\n end = Arrays.copyOf(temp, temp.length);\n\n //update the new arrays in the matrix\n matrix[beginIndex] = begin;\n matrix[endIndex] = end;\n\n //update the new indexes\n beginIndex++;\n endIndex--;\n\n //move begin and end to the next set to be swapped\n begin = matrix[beginIndex];\n end = matrix[endIndex];\n }\n\n }", "public void reverseDirection() {\n\t\tdirection *= -1;\n\t\ty += 10;\n\t}", "public void reverseX()\r\n {\r\n\t if(moveX < 0)\r\n\t\t moveX = moveX * (-1);\r\n\t else if(moveX > 0)\r\n\t\t moveX = moveX * (-1);\r\n }", "public Direction invertTurns(){\n switch(this){\n case SPIN_BACK:\n return SPIN_BACK;\n case SPIN_LEFT:\n return SPIN_RIGHT; \n case SPIN_RIGHT:\n return SPIN_LEFT;\n case ARC_LEFT:\n return ARC_RIGHT;\n case ARC_RIGHT:\n return ARC_LEFT; \n default:\n return this; \n }\n }", "public void flipIndexes() {\n int temp = index1;\n index1 = index2;\n index2 = temp;\n }", "@NotNull\n private Coordinate flipV() {\n angle = -angle;\n Coordinate nextCenterPointCoordinate = new Coordinate(this.centerPointCoordinate.getXCoordinate(),\n this.centerPointCoordinate.getYCoordinate() + (Constants.BULLET_SPEED * Math.sin(Math.toRadians(90 - angle))));\n return nextCenterPointCoordinate;\n }", "private GObject hFlipGObject(GObject o, double x) {\n\t\to.setLocation(2 * x - o.getWidth() - o.getX(), o.getY());\n\t\treturn o;\n\t}", "public void setInverted(boolean inv) {\n/* 69 */ int dat = getData() & 0x7;\n/* 70 */ if (inv) {\n/* 71 */ dat |= 0x8;\n/* */ }\n/* 73 */ setData((byte)dat);\n/* */ }", "private void turnOverItself() {\n byte tmp = leftEdge;\n leftEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n\n tmp = rightEdge;\n rightEdge = reversedLeftEdge;\n reversedLeftEdge = tmp;\n\n tmp = topEdge;\n topEdge = reversedTopEdge;\n reversedTopEdge = tmp;\n\n tmp = botEdge;\n botEdge = reversedBotEdge;\n reversedBotEdge = tmp;\n\n tmp = ltCorner;\n ltCorner = rtCorner;\n rtCorner = tmp;\n\n tmp = lbCorner;\n lbCorner = rbCorner;\n rbCorner = tmp;\n }", "public Rect flip(boolean vert, boolean hor) {\n\t\tif(!vert && !hor) return this;\n\t\tRect ret;\n\t\tif(vert && hor) {\n\t\t\tret = new Rect(new Vertex(v2.x,v2.y),new Vertex(v1.x,v1.y));\n\t\t} else if(vert) {\n\t\t\tret = new Rect(new Vertex(v2.x,v1.y),new Vertex(v1.x,v2.y));\n\t\t} else {\n\t\t\tret = new Rect(new Vertex(v1.x,v2.y),new Vertex(v2.x,v1.y));\n\t\t}\n\t\treturn ret;\n\t}", "public void verticalFlip(Image im, int x, int y, int pixels, GraphicsContext gc2) {\n //permite que la imagen se pueda editar\n imageView = new ImageView(im);\n SnapshotParameters snap = new SnapshotParameters();\n //selecciona el bloque que se va a voltear\n snap.setViewport(new Rectangle2D(x, y, pixels, pixels));\n im = imageView.snapshot(snap, null);\n //voltea la imagen\n gc2.drawImage(im, 0, 0, pixels, pixels, x + pixels, y, -pixels, pixels);\n }", "private void rotate() {\n byte tmp = topEdge;\n topEdge = leftEdge;\n leftEdge = botEdge;\n botEdge = rightEdge;\n rightEdge = tmp;\n tmp = reversedTopEdge;\n reversedTopEdge = reversedLeftEdge;\n reversedLeftEdge = reversedBotEdge;\n reversedBotEdge = reversedRightEdge;\n reversedRightEdge = tmp;\n tmp = ltCorner;\n ltCorner = lbCorner;\n lbCorner = rbCorner;\n rbCorner = rtCorner;\n rtCorner = tmp;\n\n }", "public void horizontalFlip(Image im, int x, int y, int pixels, GraphicsContext gc2) {\n //permite que la imagen se pueda editar\n imageView = new ImageView(im);\n SnapshotParameters snap = new SnapshotParameters();\n //selecciona el bloque que se va a voltear\n snap.setViewport(new Rectangle2D(x, y, pixels, pixels));\n im = imageView.snapshot(snap, null);\n //voltea la imagen\n gc2.drawImage(im, 0, 0, pixels, pixels, x, y + pixels, pixels, -pixels);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\timgfinalImage.setImageBitmap(flipImage(RateItScreen.bmp, \"Horizontal\"));\r\n\t\t\t}", "public void reverseDirectionX()\n\t{\n\t\t\n\t\tvx = -vx;\n\t\t\n\t}", "public void flipCard() {\n this.faceUp = !faceUp;\n }", "private GCompound hFlipGCompound(GCompound c) {\n\t\tfor (Iterator<GObject> i = c.iterator(); i.hasNext();)\n\t\t\thFlipGObject(i.next(), c.getWidth() / 2);\n\t\treturn c;\n\t}", "public Squarelotron mainDiagonalFlip(int ring);", "public void setReverse(boolean reverse) {\n\t\tif (isReverse != reverse) {\n\t\t\tisReverse = reverse;\n\t\t\tpauseMusic();\n\t\t\tint position;\n\t\t\tif (isReverse) {\n\t\t\t\tif (!isWah && !isDistorted) {\n\t\t\t\t\tposition = alGetSourcei(musicSourceIndex, AL_BYTE_OFFSET);\n\t\t\t\t\talSourcei(reverseSourceIndex, AL_BYTE_OFFSET, musicSize - position);\n\t\t\t\t}\n\t\t\t\telse if (isWah && isDistorted) {\n\t\t\t\t\tposition = alGetSourcei(wahDistortSourceIndex, AL_BYTE_OFFSET);\n\t\t\t\t\talSourcei(revWahDistortSourceIndex, AL_BYTE_OFFSET, musicSize - position);\n\t\t\t\t}\n\t\t\t\telse if (isWah) {\n\t\t\t\t\tposition = alGetSourcei(wahSourceIndex, AL_BYTE_OFFSET);\n\t\t\t\t\talSourcei(revWahSourceIndex, AL_BYTE_OFFSET, musicSize - position);\n\t\t\t\t}\n\t\t\t\telse if (isDistorted) {\n\t\t\t\t\tposition = alGetSourcei(distortSourceIndex, AL_BYTE_OFFSET);\n\t\t\t\t\talSourcei(revDistortSourceIndex, AL_BYTE_OFFSET, musicSize - position);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (!isWah && !isDistorted) {\n\t\t\t\t\tposition = alGetSourcei(reverseSourceIndex, AL_BYTE_OFFSET);\n\t\t\t\t\talSourcei(musicSourceIndex, AL_BYTE_OFFSET, musicSize - position);\n\t\t\t\t}\n\t\t\t\telse if (isWah && isDistorted) {\n\t\t\t\t\tposition = alGetSourcei(revWahDistortSourceIndex, AL_BYTE_OFFSET);\n\t\t\t\t\talSourcei(wahDistortSourceIndex, AL_BYTE_OFFSET, musicSize - position);\n\t\t\t\t}\n\t\t\t\telse if (isWah) {\n\t\t\t\t\tposition = alGetSourcei(revWahSourceIndex, AL_BYTE_OFFSET);\n\t\t\t\t\talSourcei(wahSourceIndex, AL_BYTE_OFFSET, musicSize - position);\n\t\t\t\t}\n\t\t\t\telse if (isDistorted) {\n\t\t\t\t\tposition = alGetSourcei(revDistortSourceIndex, AL_BYTE_OFFSET);\n\t\t\t\t\talSourcei(distortSourceIndex, AL_BYTE_OFFSET, musicSize - position);\n\t\t\t\t}\n\t\t\t}\n\t\t\tplayMusic();\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\timgfinalImage.setImageBitmap(flipImage(RateItScreen.bmp, \"Vertical\"));\r\n\t\t\t}", "public void invert(boolean direction){\n intake.setInverted(direction);\n }", "public void reverseSpeeds() {\n\t\txSpeed = -xSpeed;\n\t\tySpeed = -ySpeed;\n\t}", "private void flipColors(Node h) {\n h.color = !h.color;\n h.left.color = !h.left.color;\n h.right.color = !h.right.color;\n }", "public @NotNull Image flipV()\n {\n if (this.data != null)\n {\n if (this.mipmaps > 1) Image.LOGGER.warning(\"Image manipulation only applied to base mipmap level\");\n \n Color.Buffer output = Color.malloc(this.format, this.width * this.height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n long bytesPerLine = Integer.toUnsignedLong(this.width) * this.format.sizeof;\n for (int i = this.height - 1, offsetSize = 0; i >= 0; i--)\n {\n long src = srcPtr + Integer.toUnsignedLong(i * this.width) * this.format.sizeof;\n \n MemoryUtil.memCopy(src, dstPtr + offsetSize, bytesPerLine);\n offsetSize += bytesPerLine;\n }\n \n this.data.free();\n this.data = output;\n this.mipmaps = 1;\n }\n return this;\n }", "static public int[][] flipAndInvertImage(int[][] A) {\n for(int i =0;i<A.length;i++){\n processARow(A[i]);\n }\n return A;\n }", "public void flipHand(){\n int up = 0;\n int down = Hand.length-1;\n Card[] temp = new Card[Hand.length];\n for(int i=0;i<Hand.length;i++){\n temp[down]=Hand[up];\n up++;down--;\n }\n Hand=temp;\n }", "public Flip() {\n super(\"!flip\", true);\n }", "public void flip(int[] arr, int index) {\n moves.add(index);\n int temp;\n for (int i = 0; i < index/2; i ++) {\n temp = arr[i];\n arr[i] = arr[index - 1 - i];\n arr[index - 1 - i] = temp;\n }\n }", "public void reverseY()\r\n {\r\n\t if(moveY < 0)\r\n\t\t moveY = moveY * (-1);\r\n\t else if(moveY > 0)\r\n\t\t moveY = moveY * (-1);\r\n }", "private void flipOrientation() {\n try {\n if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_0) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_180);\n } else if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_90) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_270);\n } else if (Settings.System.getInt(getContentResolver(), Settings.System.USER_ROTATION) == Surface.ROTATION_180) {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_0);\n } else {\n Settings.System.putInt(getContentResolver(), Settings.System.USER_ROTATION, Surface.ROTATION_90);\n }\n } catch (Settings.SettingNotFoundException e) {\n Log.e(TAG, e.getMessage());\n }\n }", "private void flip() {\n ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());\n Collections.reverse(tmp);\n getChildren().setAll(tmp);\n setAlignment(Pos.TOP_LEFT);\n dialog.setPadding(new Insets(0,0,0,7));\n }", "public static int[][][] flipHorizontally(int[][][] source) {\n\n\t\t// Getting the source in a temp Matrix\n\t\tint[][][] horizontalTemp = source; \n\t\t// Creating the new matrix\n\t\tint[][][] horizontal = new int[source.length][source[0].length][3];\n\t\tint columns = (horizontal[0].length); \n\t\tint rows = (horizontal.length);\n\n\t\tfor (int j = 0; j < rows; j++) { // Creating two loop to flip\n\t\t\tfor (int i = 0; i < columns; i++) { // To flip horizontally\n\t\t\t\thorizontal[j][i] = horizontalTemp[j][(columns - i) - 1];\n\t\t\t}\n\t\t}\n\n\t\treturn horizontal;\n\t}", "private static Character flip(Character c){\n return c == '0'?'1':'0';\n }", "public void rotateY90() {\n\t\tfor (int v = 0; v < vertexCount; v++) {\n\t\t\tint x_ = vertexX[v];\n\t\t\tvertexX[v] = vertexZ[v];\n\t\t\tvertexZ[v] = -x_;\n\t\t}\n\t}", "void invertAllBits();", "public void ensureInverted() {\r\n\t\tif (textureHeight > 0) {\r\n\t\t\ttextureY = textureY + textureHeight;\r\n\t\t\ttextureHeight = -textureHeight;\r\n\t\t}\r\n\t}", "public void flipJags(){\n \t\tint length = jagsLeft.length/2;\n \t\tJaguar[] tempJags = new Jaguar[length];\n \t\t\n \t\ttempJags=jagsLeft;\n \t\tfor(int i=0; i < length; i++){ \n \t\t\tjagsLeft[i]=tempJags[length-1-i]; //Flip jaguars on left\n \t\t}\n \t\tfor(int i=0; i < length; i++){\n \t\t\ttempJags[i]=jagsRight[length-1-i]; //Flip jaguars on right\n \t\t}\n \t\t\n \t\tjagsRight = jagsLeft;\n \t\tjagsLeft = tempJags;\n assignLiveWindow();\n \t}", "public void act() \n {\n move(-2);\n if(isAtEdge())\n {\n turn(180);\n getImage().mirrorVertically();\n }\n }", "public void flip() {\n flipRecur(root);\n }", "public Direction invertAll(){\n switch(this){\n case STAY:\n return STAY;\n case SPIN_BACK:\n return SPIN_BACK;\n case FORWARD:\n return BACKWARD;\n case BACKWARD:\n return FORWARD;\n case SPIN_LEFT:\n return SPIN_RIGHT; \n case SPIN_RIGHT:\n return SPIN_LEFT;\n case ARC_LEFT:\n return ARC_RIGHT;\n case ARC_RIGHT:\n return ARC_LEFT; \n default:\n return this; \n }\n }", "public void slideFragmentsToLeft();", "public void reverseDirectionY()\n\t{\n\t\t\n\t\tvy = -vy;\n\t}", "private void flipArray(T[] array) {\n int point1 = 0,point2 = array.length - 1;\r\n while (point1 < point2) {\r\n T t = array[point1];\r\n array[point1] = array[point2];\r\n array[point2] = t;\r\n point1++;\r\n point2--;\r\n }\r\n }", "void FlipBook()\r\n\t\t{\r\n\t\t\t Collections.reverse(this);\r\n\t\t}", "void reverse();", "void reverse();", "@Override\n public void onClick(View v) {\n viewFlipper.setInAnimation(slideRightIn);\n viewFlipper.setOutAnimation(slideRightOut);\n viewFlipper.showPrevious();\n setPrevViewItem();\n// initData();\n }", "public static BufferedImage flipVertically(BufferedImage image) {\n BufferedImage trimImage = new BufferedImage(image.getWidth(), image.getHeight(), image.getType());\n Graphics2D graphics = trimImage.createGraphics();\n graphics.drawImage(image, 0, image.getHeight(), image.getWidth(), -image.getHeight(), null);\n graphics.dispose();\n\n return trimImage;\n }", "public void revert()\n\t{\n\t\tswingingWay1 = !swingingWay1;\n\t}", "public void flip(int x, int y){\n\t\tPiece temp = grid[x][y];\n\t\tint tempRepeats; //used to work out how many times in a diagonal to go\n\t\ttry{\n\t\t\t//UP\n\t\t\tfor (int i = 0;i < y; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x][y-i-1] == null || grid[x][y-i-1] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x][y-i-1] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x][y-(j+1)] = grid[x][y-(j+1)].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//DOWN\n\t\t\tfor (int i = 0;i < grid.length - y - 1; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x][y+i+1] == null || grid[x][y+i+1] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x][y+i+1] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x][y+(j+1)] = grid[x][y+(j+1)].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//LEFT\n\t\t\tfor (int i = 0;i < x; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y] == null || grid[x-(i+1)][y] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y] = grid[x-(j+1)][y].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//RIGHT\n\t\t\tfor (int i = 0;i < grid.length - x - 1; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y] == null || grid[x+(i+1)][y] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y] = grid[x+(j+1)][y].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Top left\n\t\t\tif(x < y){\n\t\t\t\ttempRepeats = x;\n\t\t\t} else {\n\t\t\t\ttempRepeats = y;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y-(i+1)] == null || grid[x-(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y-(j+1)] = grid[x-(j+1)][y-(j+1)].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//top right\n\t\t\t\n\t\t\tif(grid.length - x < y){\n\t\t\t\ttempRepeats = grid.length - x - 1;\n\t\t\t} else {\n\t\t\t\ttempRepeats = y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y-(i+1)] == null || grid[x+(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y-(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y-(j+1)] = grid[x+(j+1)][y-(j+1)].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\n\t\t\t//down Right\n\t\t\tif(grid.length - x < grid.length - y){\n\t\t\t\ttempRepeats = grid.length - x - 1;\n\t\t\t} else {\n\t\t\t\ttempRepeats = grid.length - y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x+(i+1)][y+(i+1)] == null || grid[x+(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x+(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x+(j+1)][y+(j+1)] = grid[x+(j+1)][y+(j+1)].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//down Left\n\t\t\tif(x < grid.length - y){\n\t\t\t\ttempRepeats = x;\n\t\t\t} else {\n\t\t\t\ttempRepeats = grid.length - y - 1;\n\t\t\t}\n\t\t\tfor (int i = 0;i < tempRepeats; i++){\n\t\t\t\t//if piece is equal/null\n\t\t\t\tif(grid[x-(i+1)][y+(i+1)] == null || grid[x-(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t//if piece is equal\n\t\t\t\t\tif (grid[x-(i+1)][y+(i+1)] == temp){\n\t\t\t\t\t\t//if it has already passed over the other color\n\t\t\t\t\t\tif(i > 0){\n\t\t\t\t\t\t\t//flip pieces in the middle\n\t\t\t\t\t\t\tfor (int j = 0;j < i;j++){\n\t\t\t\t\t\t\t\tgrid[x-(j+1)][y+(j+1)] = grid[x-(j+1)][y+(j+1)].flip();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\tcatch(Exception e){\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\tfinally {\n\n\t\t}\n\t}", "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "public static Direction inverse(Direction direction) {\n if (direction.isHorizontal()) {\n if (direction.equals(Direction.EAST))\n return Direction.WEST;\n else\n return Direction.EAST;\n } else {\n if (direction.equals(Direction.NORTH))\n return Direction.SOUTH;\n else\n return Direction.NORTH;\n }\n }", "public static void waltz() {\n //test code written by bokun: self rotation\n leftMotor.setSpeed(ROTATE_SPEED);\n rightMotor.setSpeed(ROTATE_SPEED);\n leftMotor.forward();\n rightMotor.backward();\n }" ]
[ "0.6891165", "0.6781593", "0.6738445", "0.6733925", "0.67311376", "0.6629732", "0.65920603", "0.6570625", "0.6498949", "0.64800465", "0.64683735", "0.6436385", "0.63586175", "0.6326375", "0.6315463", "0.627765", "0.62211007", "0.6190208", "0.6177082", "0.61374277", "0.61104494", "0.6072516", "0.6070288", "0.6067085", "0.60446054", "0.6034263", "0.603216", "0.6031529", "0.6024484", "0.5994229", "0.5975762", "0.5949714", "0.5942084", "0.59322125", "0.5926797", "0.59219444", "0.589823", "0.5896296", "0.589475", "0.5891848", "0.58895826", "0.58823925", "0.58823925", "0.58823925", "0.5877627", "0.58718425", "0.5867668", "0.5839518", "0.5820743", "0.57806975", "0.57705164", "0.5769494", "0.57643706", "0.576085", "0.5753551", "0.57501817", "0.5744794", "0.57377094", "0.5711058", "0.5707023", "0.56825185", "0.56741613", "0.5665411", "0.563062", "0.56199515", "0.56146485", "0.56090236", "0.56087744", "0.5608619", "0.55827117", "0.5576514", "0.5536074", "0.55265677", "0.5516678", "0.55091715", "0.55086255", "0.55050856", "0.54810345", "0.5466726", "0.54543066", "0.5418173", "0.541219", "0.5392603", "0.5389621", "0.53817785", "0.5372773", "0.53696793", "0.5364854", "0.53540975", "0.53507566", "0.5344607", "0.53278244", "0.5315189", "0.5315189", "0.53040344", "0.5299642", "0.52987635", "0.52921325", "0.529126", "0.5279282", "0.5270142" ]
0.0
-1
TODO Autogenerated method stub
public long saveupdateProperty(Property property, MultipartFile file) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "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.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Retrieve Permission For User Menu
@RequestMapping(value = "/getPermissionForUserMenu", method = RequestMethod.GET) public ResponseEntity<?> getPermissionForUserMenu() throws JsonParseException, JsonMappingException, IOException { Map<String, Object> result = permissionAuthorize.getPermissionForUserMenu(SecurityUtil.getIdUser()); // return. return new ResponseEntity<Map<String, Object>>(result, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPermission();", "abstract public void getPermission();", "public String getFloodPerm() throws PermissionDeniedException;", "int getPermissionRead();", "public List<Permission> getPermissions(User user) throws UserManagementException;", "public String choosenMenu() {\n String value = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"menu_id\");\n menu_id = Integer.parseInt(value);\n String user = FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();\n if (user == null) {\n return \"choosenMenu\";\n } else {\n return \"chooseMenuUser\";\n }\n }", "public List<String> getPermission(int userId, String crp);", "@Override\n\tpublic List<Function> findMenu() {\n\t\tUser user = BosContext.getLoginUser();\n\t\tif(user.getUsername().equals(\"admin\")){\n\t\t\treturn functionDao.findAllMenu();\n\t\t}else{\n\t\t\treturn functionDao.findMenuByUserId(user.getId());\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic List<Tree> queryListMenu(String uiId) {\n\t\treturn permissionDao.queryListMenu(uiId);\r\n\t}", "public Enumeration permissions();", "Object getPerm(String name);", "@Override\n protected String requiredGetPermission() {\n return \"user\";\n }", "public String getPermission()\r\n {\r\n return permission;\r\n }", "public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }", "public int getMetaPrivileges();", "protected void doGetPermissions() throws TmplException {\r\n try {\r\n GlbPerm perm = (GlbPerm)TmplEJBLocater.getInstance().getEJBRemote(\"pt.inescporto.permissions.ejb.session.GlbPerm\");\r\n\r\n perms = perm.getFormPerms(MenuSingleton.getRole(), permFormId);\r\n }\r\n catch (java.rmi.RemoteException rex) {\r\n //can't get form perms\r\n TmplException tmplex = new TmplException(TmplMessages.NOT_DEFINED);\r\n tmplex.setDetail(rex);\r\n throw tmplex;\r\n }\r\n catch (javax.naming.NamingException nex) {\r\n //can't find GlbPerm\r\n TmplException tmplex = new TmplException(TmplMessages.NOT_DEFINED);\r\n tmplex.setDetail(nex);\r\n throw tmplex;\r\n }\r\n }", "public Permission getPermission() {\n return permission;\n }", "Object getPerm(String name, Object def);", "public String getPermission() {\n return this.permission;\n }", "public String getUserSubMenuRole() {\n return sessionData.getUserSubMenuRole();\n }", "public Permission getPermission(String objectId, User user, Boolean pending) throws UserManagementException;", "public String getActivationMenu();", "java.util.List<java.lang.String>\n getPermissionsList();", "public List<Permission> getPermissionsPending(User user) throws UserManagementException;", "public void getMenuItems(){ \n\t\tParseUser user = ParseUser.getCurrentUser();\n\t\tmenu = user.getParseObject(\"menu\");\n\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"Item\");\n\t\tquery.whereEqualTo(\"menu\", menu);\n\n\t\tquery.findInBackground(new FindCallback<ParseObject>() {\n\t\t\tpublic void done(List<ParseObject> menuItems, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tlistMenuItems(menuItems);\n\t\t\t\t} else {\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public int getPermission(Integer resourceId);", "public List<Permission> getUserPermission() {\n\t\treturn securityContext.getAuthorizationContext().getPermissions();\n\t}", "public interface PermissionService {\n List<User> findRoleUsers(String roleId);\n\n void roleAssignUsers(String roleId, String assignUsers, String removeUsers);\n\n void roleAssignMenu(String roleId, String menuIds);\n\n List<Menu> findRoleMenus(String roleId);\n}", "public AccessibleRole getAccessibleRole()\n/* */ {\n/* 236 */ return AccessibleRole.POPUP_MENU;\n/* */ }", "public List getMenu() {\n createMenuGroupError = false;\n menulist = new Menus_List();\n return menulist.getMenu();\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n if (user.getUserType().equals(\"admin\"))\n {\n getMenuInflater().inflate(R.menu.menu_new_feeds, menu);\n return true;\n }else\n {\n\n return false;\n }\n\n\n }", "List<Permission> getPermissions();", "@Override\n\tpublic List<UserRole> buscarUserRoleSemPermissoes() {\n\t\t// TODO Auto-generated method stub\n\t\tQuery query = getCurrentSession().createQuery(\"select ur from UserRole ur where ur.permissions\");\n\t\treturn query.list();\n\t}", "public List<String> getUserPermissions(String login) throws IOException;", "void askForPermissions();", "public String getAccess();", "java.lang.String getPermissions(int index);", "public int getUserModificationPermission() {\n return permission;\n }", "List<String> getAvailablePermissions() throws GWTJahiaServiceException;", "ReadOnlyMenuManager getMenuManager(int index);", "public void getAccess() {\n\t\t// Display menu options\n\t\tSystem.out.println(\n\t\t\t\"\\nWelcome to PittTours are you a:\" +\n\t\t\t\"\\n1: Administrator\" +\n\t\t\t\"\\n2: Customer\" +\n\t\t\t\"\\n3: Neither, Quit\\n\");\n\n\t\t// Get user input\n\t\tSystem.out.print(\"Enter menu choice: \");\n\t\tinputString = scan.nextLine();\n\t\t// Convert input to integer, if not convertable, set to 0 (invalid)\n\t\ttry { choice = Integer.parseInt(inputString);\n\t\t} catch(NumberFormatException e) {choice = 0;}\n\n\t\t// Handle user choices\n\t\tif(choice == 1)\n\t\t\tdisplayAdmInterface();\n\t\telse if(choice == 2)\n\t\t\tdisplayCusInterface();\n\t\telse if(choice == 3) {} // Simply drops back to main to properly exit\n\t\telse { // If invalid choice, recall method\n\t\t\tSystem.out.println(\"INVALID CHOICE\");\n\t\t\tgetAccess();\n\t\t}\n\t}", "@MemberOrder(sequence = \"30\")\n @Render(Render.Type.EAGERLY)\n @Paged(50)\n @NotInServiceMenu\n @NotContributed(NotContributed.As.ACTION) // ie contributed as property\n @ActionSemantics(ActionSemantics.Of.SAFE)\n public List<UserPermissionViewModel> permissions(ApplicationUser user) {\n final Collection<ApplicationFeature> allMembers = applicationFeatures.allMembers();\n return Lists.newArrayList(\n Iterables.transform(\n allMembers,\n UserPermissionViewModel.Functions.asViewModel(user, container))\n );\n }", "Privilege getPrivilege();", "List<MenuPermissionEntity> findByUserGroup(UserGroupEntity userGroup);", "Map<String, Object> getPermStorage();", "public List<String> grantpermission() {\n\t\tList<Integer> userids = new ArrayList<>();\n\t\tuserids = crud1.grantPermission();\n\t\tList<String> username = new ArrayList<>();\n\t\tfor (Integer x : userids) {\n\n\t\t\tusername.add(crud1.findById(x).get().getUsername());\n\t\t}\n\t\treturn username;\n\t}", "public Long getSystemmenu() {\n return systemmenu;\n }", "@Override\n public java.lang.Object getSystemMenuChoicesForClass() throws G2AccessException {\n java.lang.Object retnValue = getStaticAttributeValue (SystemAttributeSymbols.SYSTEM_MENU_CHOICES_);\n return (java.lang.Object)retnValue;\n }", "String getAccess();", "String getAccess();", "@RequestMapping(value = \"/getPermissionByIdUser\", method = RequestMethod.GET)\n\tpublic ResponseEntity<?> getPermissionByIdUser() throws JsonParseException, JsonMappingException, IOException {\n\t\tMap<String, Object> result = permissionAuthorize.getPermissionByIdUser(SecurityUtil.getIdUser());\n\t\t// return.\n\t\treturn new ResponseEntity<Map<String, Object>>(result, HttpStatus.OK);\n\t}", "public List<Menu> getMenu() {\n return mMenu;\n }", "@Override\n\tpublic List<Permission> fetchMenuPermissionByOrganisation(\n\t\t\tOrganisation organisation, String val) {\n\t\treturn this.permissionDao.fetchMenuPermissionByOrganisation(organisation, val);\n\t}", "public List<Menu> findMenus(User user) {\n\n List<Resource> resources = findAll(new Sort(Sort.Direction.DESC,\"parentId\",\"weight\"));\n Set<String> userPermissions = userAuthService.findStringPermissions(user);\n Iterator<Resource> iter = resources.iterator();\n while (iter.hasNext()) {\n if (!hasPermission(iter.next(), userPermissions)) {\n iter.remove();\n }\n }\n return convertToMenus(resources);\n }", "@Override\n\tpublic List<Privilege> getAllBtn(User user) {\n\t\tint roleid= user.getRoleid();\n\t\tRole role=new Role();\n\t\trole.setId(roleid);\n\t\t\n\t\tList<Privilege> privileges = privilegeMapper.listUserRoleBtn(role);\n\t\t\n\t\treturn privileges;\n\t}", "@Override\n\tpublic String checkPermision(String user, String userType) {\n\t\treturn null;\n\t}", "public Integer getPermission() {\n\t\treturn permission;\n\t}", "public String getFloodPerm(String dpidStr) throws PermissionDeniedException;", "PermissionService getPermissionService();", "public String getPermissionAdmin() {\n return permissionAdmin;\n }", "public List<Categoria> getMenuPrincipal(){\n this.menuPrincipal = categoriaService.findAllMenu();\n System.out.println(\" ssss *********\"+menuPrincipal.toString());\n return menuPrincipal;\n }", "public abstract int getMenu();", "public SIPCommMenu getMenu()\n {\n return menu;\n }", "public int getPermission() {\r\n\t\treturn nPermission;\r\n\t}", "public FacebookPermissionsE permission(){\n\t\treturn this.permission;\n\t}", "public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }", "public List<Permission> getPermissions(T object, User user);", "@Override\n\tpublic List<MenuItem> getMenuItemListAdmin() {\n\t\treturn this.menuItemList ;\n\t}", "@Override\n\tpublic List<Menu> getOneMenuInfo(Menu menu) {\n\t\treturn this.menuDao.getOneMenuInfo(menu);\n\t}", "int getPermissionWrite();", "public TPermissionMode getUserPermissionArray() {\n\n\t\treturn otherPermission;\n\t}", "private PermissionHelper() {}", "public void showMenuforUser(String path, Storage s) {\n\t\tint cnt;\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\t\n\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------------------------------------------------------\");\n\t\tsb.append(\"**********Trenutna lokacija:\" + path+\"**********\\n\");\n\t\tif(privileges.contains(\"add_user\")) {\n\t\t\tcnt=1;\n\t\t\t\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za dodavanje novog korisnika\");\n\t\t\t\n\t\t}\n\t\tif(privileges.contains(\"add_directory\")) {\n\t\t\tcnt=2;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za dodavanje novog foldera\");\n\t\t}\n\t\tif(privileges.contains(\"add_file\")) {\n\t\t\tcnt=3;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za dodavanje novog fajla\");\n\t\t}\n\t\tif(privileges.contains(\"download\")) {\n\t\t\tcnt=4;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za preuzimanje fajla\");\n\t\t}\n\t\tif(privileges.contains(\"upload\")) {\n\t\t\tcnt=5;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+ \" za upload fajla\");\n\t\t}\n\t\tif(privileges.contains(\"search_repository\")) {\n\t\t\tcnt=6;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za pretragu repozitorijuma\");\n\t\t}\n\t\tif(privileges.contains(\"delete_file\")) {\n\t\t\tcnt=7;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za brisanje fajla\");\n\t\t}\n\t\tif(privileges.contains(\"add_user\")) {\n\t\t\tcnt=8;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za dodavanje zabranjenih ekstenzija\");\n\t\t}\n\t\tif(privileges.contains(\"download\") && s.getType().equals(\"local\")) {\n\t\t\tcnt=9;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za zipovnje fajlova\");\n\t\t}\n\t\tif(privileges.contains(\"upload\") && s.getType().equals(\"local\")) {\n\t\t\tcnt=10;\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"Izaberite \"+cnt+\" za anzipovanje fajlova\");\n\t\t}\n\t\t\n\t\tsb.append(\"\\n\");\n\t\tsb.append(\"Izaberite 'ls' za prikaz sadrzine trenutnog foldera\");\n\t\tsb.append(\"\\n\");\n\t\tsb.append(\"Izaberite 'cd' <folder name> ili <..> za kretanje po fajlu\");\n\t\t//sb.append(\"\\n\"+path+\" >\");\n\t\tSystem.out.print(sb.toString());\n\t\t\n\t}", "public PermissionHandler getHandler() {\r\n return Permissions.Security;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);\r\n FirebaseUser currentUser = mAuth.getCurrentUser();\r\n MenuItem itemLogin = menu.findItem(R.id.login);\r\n MenuItem itemLogout = menu.findItem(R.id.logout);\r\n if (currentUser != null) {\r\n itemLogin.setVisible(false);\r\n itemLogout.setVisible(true);\r\n } else {\r\n itemLogin.setVisible(true);\r\n itemLogout.setVisible(false);\r\n }\r\n return true;\r\n }", "public void readTheMenu();", "public List<Permission> getPermissionList() {\n return permissionList;\n }", "public List<String> getPermissions() {\n AppMethodBeat.m2504i(92672);\n List permissions = this.properties.getPermissions();\n AppMethodBeat.m2505o(92672);\n return permissions;\n }", "@Override\n\tpublic List<Menu> getMenuPerById(Menu menu,Integer roleId) {\n\t\treturn this.menuDao.getMenuPerById(menu,roleId);\n\t}", "UmsMenu getItem(Long id);", "private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\r\n\t\t}\r\n\t}", "private void fetchPermissionsFromUser() {\n Log.d(TAG, \"in fetch permisssion s\");\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_CONTACTS)) {\n\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION show request\");\n\n } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION with return request\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION erequest\");\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION with return requet\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n\n }", "public java.util.List<org.eclipse.stardust.engine.api.runtime.Permission>\n getPermissions()\n throws org.eclipse.stardust.common.error.WorkflowException;", "public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }", "public PolicyPermission getPolicyPermission()\n {\n return this.perm;\n }", "@NonNull\n Set<String> getGrantedPermissions(@NonNull String packageName, @UserIdInt int userId);", "public ArrayList<Permission> getPermissions()\r\n {\r\n return this.securityInfo.getPermissions();\r\n }", "private void openPermissions(){\n WebDriverHelper.clickElement(seePermissionLvlButton);\n }", "public Permission[] getPermissionsField() {\n\treturn super.getPermissions(null);\n }", "public ObjectMenuFilter getMenuFilter();", "String getMenuName();", "public Map<String, Boolean> hasPermission(String login, List<String> permissions);", "public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Permissions getPermissions() {\r\n return permissions;\r\n }", "Menu getMenuFile();", "public Menu getMenu() { return this.menu; }", "@Override\n\t\t\t\tpublic boolean onMenuItemClick(MenuItem item) {\n\t\t\t\t\tint id = item.getItemId();\n\t\t\t\t\tIntent i;\n\t\t\t\t\tswitch (item.getItemId()) {\n\t\t\t\t\tcase R.id.menu_add_new_list:\n\t\t\t\t\t\tif (task.getString(\"user_id\", null) != null) {\n\t\t\t\t\t\t\ti = new Intent(getBaseContext(), MyMap.class);\n\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(MyMap.this, \"Please Login first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tcase R.id.menu_dashboard:\n\t\t\t\t\t\tif (task.getString(\"user_id\", null) != null) {\n\t\t\t\t\t\t\ti = new Intent(MyMap.this, dashboard_main.class);\n\t\t\t\t\t\t\ti.putExtra(\"edit\", \"12344\");\n\t\t\t\t\t\t\tstartActivity(i);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(MyMap.this, \"Please Login first\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tcase R.id.menu_login:\n\t\t\t\t\t\tif (bedMenuItem.getTitle().equals(\"Logout\")) {\n\t\t\t\t\t\t\tSharedPreferences.Editor editor = getSharedPreferences(\"user\", MODE_PRIVATE).edit();\n\t\t\t\t\t\t\teditor.clear();\n\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\tbedMenuItem.setTitle(\"Login/Register\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tIntent i_user = new Intent(getBaseContext(), user_login.class);\n\t\t\t\t\t\t\tstartActivity(i_user);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public boolean onCreateOptionsMenu(Menu menu){\n getMenuInflater().inflate(R.menu.overflow,menu);\n\n //--------------obtengo el correo almacenado a la hora que se logueo------------------------\n SharedPreferences prefs = getSharedPreferences(\"PREFERENCIAS\", Context.MODE_PRIVATE);\n String permisoAdmin = prefs.getString(\"PERMISOADMIN\", \"\");\n String sesionIniciada = prefs.getString(\"SESIONINICIADA\", \"\");\n Log.i(\"permiso Admin ====>\", permisoAdmin.trim());\n Log.i(\"sesion Iniciada ====>\", sesionIniciada.trim());\n //------------------------------------------------------------------------------------------\n\n controlMenuOpciones opcionesMenu = new controlMenuOpciones();\n opcionesMenu.asignarOpcionesAcceso(menu, permisoAdmin, sesionIniciada);\n\n return true;\n }", "public String getPermissionDescription() {\n return permissionDescription;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.admin_login, menu);\n if(sharedPreferences.getString(\"clearanceLevel\",\"\")!=null){\n menu.removeItem(R.id.action_admin_login);\n }else{\n menu.removeItem(R.id.action_admin_logout);\n }\n return true;\n }", "private void setearPermisosMenu()\r\n\t{\r\n\t\t/*Permisos del usuario para los mantenimientos*/\r\n\t\tthis.setearOpcionesMenuMantenimientos();\r\n\t\tthis.setearOpcionesMenuFacturacion();\r\n\t\tthis.setearOpcionesMenuCobros();\r\n\t\tthis.setearOpcionesMenuProcesos();\r\n\t\tthis.setearOpcionesReportes();\r\n\t\tthis.setearOpcionesMenuAdministracion();\r\n\t}" ]
[ "0.7069312", "0.6885668", "0.66355246", "0.651235", "0.64651126", "0.6446492", "0.64405113", "0.64250445", "0.6418599", "0.63732886", "0.6367552", "0.63550127", "0.6321119", "0.63047105", "0.6301777", "0.6221502", "0.6163194", "0.6159867", "0.6152085", "0.61169076", "0.609338", "0.60632694", "0.60584146", "0.6053777", "0.6041456", "0.60331947", "0.6032362", "0.60302997", "0.60291934", "0.6007237", "0.60024935", "0.6001418", "0.599669", "0.59927815", "0.5978677", "0.59619135", "0.5950518", "0.5942998", "0.59168184", "0.5871693", "0.58654875", "0.58581483", "0.58510435", "0.5843004", "0.5827685", "0.5820563", "0.58139616", "0.5810345", "0.5809002", "0.5809002", "0.58053243", "0.57960194", "0.57955515", "0.5789496", "0.5788193", "0.57804346", "0.57742983", "0.57658285", "0.57638276", "0.5755899", "0.5752246", "0.57494664", "0.5748612", "0.5736653", "0.5732981", "0.57125723", "0.569643", "0.5696303", "0.5695049", "0.5692257", "0.568425", "0.56818634", "0.56770325", "0.56739444", "0.5661349", "0.56588393", "0.56574637", "0.56540334", "0.5651992", "0.56490815", "0.5645023", "0.5642258", "0.56392384", "0.5635004", "0.5616623", "0.5607165", "0.5606335", "0.5599166", "0.5588594", "0.55808103", "0.5580635", "0.55805206", "0.55721664", "0.5570838", "0.556816", "0.5567957", "0.5562508", "0.55596244", "0.5555029", "0.5551564" ]
0.74751276
0
Retrieve Permission By IdUser
@RequestMapping(value = "/getPermissionByIdUser", method = RequestMethod.GET) public ResponseEntity<?> getPermissionByIdUser() throws JsonParseException, JsonMappingException, IOException { Map<String, Object> result = permissionAuthorize.getPermissionByIdUser(SecurityUtil.getIdUser()); // return. return new ResponseEntity<Map<String, Object>>(result, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Permission getPermission(String objectId, User user, Boolean pending) throws UserManagementException;", "public int getPermission(Integer resourceId);", "public List<String> getPermission(int userId, String crp);", "Permission selectByPrimaryKey(String id);", "Permission selectByPrimaryKey(Integer id);", "public UserPermission selectByPrimaryKey(String id) {\n\t\tUserPermission key = new UserPermission();\n\t\tkey.setId(id);\n\t\tUserPermission record = (UserPermission) getSqlMapClientTemplate()\n\t\t\t\t.queryForObject(\"userpermission.selectByPrimaryKey\", key);\n\t\treturn record;\n\t}", "EpermissionDO selectByPrimaryKey(Long id);", "@Override\r\n\tpublic Permission queryById(Integer id) {\n\t\treturn permissionDao.queryById(id);\r\n\t}", "public IPermissionOwner getPermissionOwner(long id);", "@NonNull\n Set<String> getGrantedPermissions(@NonNull String packageName, @UserIdInt int userId);", "public List<Permission> getPermissions(User user) throws UserManagementException;", "public List<Permission> getPermissions(T object, User user);", "public IPermissionActivity getPermissionActivity(long id);", "@Override\r\n\tpublic List<TPermission> queryByUid(int id) {\n\t\treturn dao.queryByUid(id);\r\n\t}", "@Override\r\n\tpublic List<Permission> queryPermissionsByUsers(User dbUser) {\n\t\treturn permissionDao.queryPermissionsByUsers(dbUser);\r\n\t}", "public List<Permission> getPermissions(String objectId) throws UserManagementException;", "@Override\r\n\tpublic Permission getPermission(int id) {\n\t\treturn null;\r\n\t}", "@Override\n public boolean userCanAccess(int id) {\n return true;\n }", "abstract public void getPermission();", "@NonNull\n int[] getPermissionGids(@NonNull String permissionName, @UserIdInt int userId);", "Optional<UserPermissionDTO> findOne(Long id);", "String getPermission();", "public List<Permission> getPermissionsPending(User user) throws UserManagementException;", "String checkUserAccessOnProject(Long id, String username);", "@Override\n public boolean hasAccessPermission(String user, NamespaceKey key, DatasetConfig datasetConfig) {\n return userPredicate.test(user);\n }", "@RequestMapping(value = \"/getPermissionForUserMenu\", method = RequestMethod.GET)\n\tpublic ResponseEntity<?> getPermissionForUserMenu() throws JsonParseException, JsonMappingException, IOException {\n\t\tMap<String, Object> result = permissionAuthorize.getPermissionForUserMenu(SecurityUtil.getIdUser());\n\t\t// return.\n\t\treturn new ResponseEntity<Map<String, Object>>(result, HttpStatus.OK);\n\t}", "@Override\n protected String requiredGetPermission() {\n return \"user\";\n }", "@Override\r\n\tpublic AdminPermission getAdminPermission(int permissionid) {\n\t\treturn adminPermissionDao.selectByPrimaryKey(permissionid);\r\n\t}", "@Path(\"{uid}/\")\n @GET\n @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\n public Permissions getPermissions(@PathParam(\"uid\") Long uid) {\n try (Connection cn = catalogue.getConnection()) {\n LogicalData res = catalogue.getLogicalDataByUid(uid, cn);\n if (res == null) {\n throw new WebApplicationException(Response.Status.NOT_FOUND);\n }\n MyPrincipal mp = (MyPrincipal) request.getAttribute(\"myprincipal\");\n Permissions p = catalogue.getPermissions(uid, res.getOwner(), cn);\n if (!mp.canRead(p)) {\n throw new WebApplicationException(Response.Status.UNAUTHORIZED);\n }\n return p;\n } catch (SQLException ex) {\n Logger.getLogger(PermissionsResource.class.getName()).log(Level.SEVERE, null, ex);\n throw new WebApplicationException(Response.Status.INTERNAL_SERVER_ERROR);\n }\n }", "int getPermissionRead();", "@MemberOrder(sequence = \"30\")\n @Render(Render.Type.EAGERLY)\n @Paged(50)\n @NotInServiceMenu\n @NotContributed(NotContributed.As.ACTION) // ie contributed as property\n @ActionSemantics(ActionSemantics.Of.SAFE)\n public List<UserPermissionViewModel> permissions(ApplicationUser user) {\n final Collection<ApplicationFeature> allMembers = applicationFeatures.allMembers();\n return Lists.newArrayList(\n Iterables.transform(\n allMembers,\n UserPermissionViewModel.Functions.asViewModel(user, container))\n );\n }", "PermissionService getPermissionService();", "public Integer getPermissionId() {\n return permissionId;\n }", "public Integer getPermissionId() {\n return permissionId;\n }", "List<MenuPermissionEntity> findByUserGroup(UserGroupEntity userGroup);", "public List<Permission> getPermissionsPending(String objectId) throws UserManagementException;", "public List<Permission> getUserPermission() {\n\t\treturn securityContext.getAuthorizationContext().getPermissions();\n\t}", "UserActivity findUserActivityByUserId(int userId) throws DataNotFoundException;", "@Override\r\n\tpublic List<Permission> queryChildPermission(Integer id) {\n\t\treturn permissionDao.queryChildPermission(id);\r\n\t}", "public static AngularPermission fetchByPrimaryKey(long permissionId) {\n\t\treturn getPersistence().fetchByPrimaryKey(permissionId);\n\t}", "List<UserContentAccess> findContentAccess();", "@CrossOrigin()\n @ResponseBody()\n @GetMapping(\"/godojo/permissions\" )\n public PermissionsDTO permissions(\n @RequestParam(value=\"id\") Long id) {\n\n User the_user = this.user_factory.createUser(id);\n\n return new PermissionsDTO(the_user);\n }", "@PackageManager.PermissionFlags\n @RequiresPermission(anyOf = {\n android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS,\n android.Manifest.permission.REVOKE_RUNTIME_PERMISSIONS,\n android.Manifest.permission.GET_RUNTIME_PERMISSIONS\n })\n //@SystemApi\n public int getPermissionFlags(@NonNull String packageName, @NonNull String permissionName,\n @NonNull UserHandle user) {\n try {\n return mPermissionManager.getPermissionFlags(packageName, permissionName,\n user.getIdentifier());\n } catch (RemoteException e) {\n throw e.rethrowFromSystemServer();\n }\n }", "@GET(\"administrators/{id}\")\n Call<User> getUser(\n @retrofit2.http.Path(\"id\") Integer id\n );", "public IPermissionActivity getPermissionActivity(long ownerId, String activityFname);", "List<TUserPermission> selectByExample(TUserPermissionExample example);", "public boolean hasPermission(T object, Permission permission, User user);", "public String getFloodPerm() throws PermissionDeniedException;", "public Permission getPermission() {\n return permission;\n }", "@Override\r\n\tpublic Permission queryRootPermission() {\n\t\treturn permissionDao.queryRootPermission();\r\n\t}", "public User getUserData(String id);", "SysUser selectByPrimaryKey(Long userId);", "@Override\n public int getUserRoomIdByUserId(int userId) {\n logger.info(\"Start getUserRoomIdByUserId\");\n int id = 0;\n try {\n connection = DBManager.getConnection();\n preparedStatement = connection.prepareStatement(Requests.SELECT_ID_USER_ROOM_BY_ROOM_ID);\n preparedStatement.setInt(1, userId);\n rs = preparedStatement.executeQuery();\n if (rs.next()) {\n id = rs.getInt(\"id_permission\");\n }\n } catch (SQLException sqlException) {\n Logger.getLogger(sqlException.getMessage());\n } finally {\n closing(connection, preparedStatement, rs);\n }\n logger.info(\"Completed getUserRoomIdByUserId\");\n return id;\n }", "List<Permission> getPermissions();", "public interface ISysRoleService {\n Set<String> selectRolePermissionByUserId(Long userId);\n}", "SysRoleUser selectByPrimaryKey(Long id);", "public Boolean isAuthorized(String userId);", "public void setUserPermissionId( Integer userPermissionId ) {\n this.userPermissionId = userPermissionId ;\n }", "public static ITask findTaskUserHasPermissionToSee(final long taskId) {\r\n try {\r\n return SecurityManagerFactory.getSecurityManager().executeAsSystem(new Callable<ITask>() {\r\n public ITask call() throws Exception {\r\n try {\r\n TaskQuery taskQuery1 = TaskQuery.create().where().taskId().isEqual(taskId);\r\n TaskQuery taskQuery2 = TaskQuery.create().where().currentUserIsInvolved();\r\n IUser user = Ivy.session().getSessionUser();\r\n if (user == null) {\r\n return null;\r\n }\r\n for (IRole role : user.getRoles()) {\r\n taskQuery2 = taskQuery2.where().or().roleIsInvolved(role);\r\n }\r\n return Ivy.wf().getTaskQueryExecutor().getFirstResult(taskQuery1.where().and(taskQuery2));\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n return null;\r\n }\r\n }\r\n });\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n return null;\r\n }\r\n }", "Integer getUserId();", "public User getUserByUserId(String userId, Boolean enabled) throws UserManagementException;", "public void confirmPermission(String objectId, User user) throws UserManagementException;", "@SuppressWarnings(\"unchecked\")\n\tpublic List<UserPermission> selectByExample(UserPermissionExample example) {\n\t\tList<UserPermission> list = getSqlMapClientTemplate().queryForList(\n\t\t\t\t\"userpermission.selectByExample\", example);\n\t\treturn list;\n\t}", "public static int checkPackageNamePermission(String permName, String pkgName,\n @UserIdInt int userId) {\n return sPackageNamePermissionCache.query(\n new PackageNamePermissionQuery(permName, pkgName, userId));\n }", "public List<String> grantpermission() {\n\t\tList<Integer> userids = new ArrayList<>();\n\t\tuserids = crud1.grantPermission();\n\t\tList<String> username = new ArrayList<>();\n\t\tfor (Integer x : userids) {\n\n\t\t\tusername.add(crud1.findById(x).get().getUsername());\n\t\t}\n\t\treturn username;\n\t}", "Userinfo selectByPrimaryKey(String userId);", "public String getFloodPerm(String dpidStr) throws PermissionDeniedException;", "UserPermissions authenticate (Request request);", "RoleUser selectByPrimaryKey(String id);", "SPerms selectByPrimaryKey(Long permsId);", "public interface PermissionService {\n List<User> findRoleUsers(String roleId);\n\n void roleAssignUsers(String roleId, String assignUsers, String removeUsers);\n\n void roleAssignMenu(String roleId, String menuIds);\n\n List<Menu> findRoleMenus(String roleId);\n}", "String getUserId();", "String getUserId();", "List<UserPermissionDTO> findAll();", "public User getUserByUserId(String userId) throws UserManagementException;", "public boolean checkIfUserHasPermission(long userId, Permission permission) {\n final Optional<User> user = userRepository.findById(userId);\n\n return user.isPresent()\n && permission != null\n && user.get().getRole().getPermissions().contains(permission);\n\n }", "@GET(\"api/Kategori/tampil\")\n Call<GetMenu> listMenu(@Query(\"id_user\") String id_user);", "public interface PermissionService {\n\n List<SysPermission> queryAll();\n\n int countByName(String name);\n\n int insert(SysPermission permission);\n\n SysPermission queryById(Long id);\n\n int update(SysPermission permission);\n\n int delete(Long id);\n\n List<Long> queryPermissionIdsByRoleId(Long roleId);\n\n List<SysPermission> queryPermissionsByUser(SysUser user);\n}", "@RequestMapping(value = \"/getPermissionByTarget/{target}\", method = RequestMethod.GET)\n\tpublic ResponseEntity<?> getPersistencePermission(@PathVariable(\"target\") String target) throws JsonParseException, JsonMappingException, IOException {\n\t\tMap<String, Object> result = null;\n\t\tPermission permission = permissionService.getByTarget(target);\n\t\tif(permission != null) {\n\t\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\t\tresult = objectMapper.readValue(permission.getRules(), new TypeReference<Map<String, Object>>(){});\n\t\t\tresult.put(\"id\", SecurityUtil.getIdUser());\n\t\t}\n\t\t// return.\n\t\treturn new ResponseEntity<Map<String, Object>>(result, HttpStatus.OK);\n\t}", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public long getUserId();", "List<ActivityRequest> getByUserId(Integer id);", "@Test\n public void getAppPermissionTest() throws ApiException {\n String appId = null;\n String username = null;\n String filter = null;\n String naked = null;\n // Permission response = api.getAppPermission(appId, username, filter, naked);\n\n // TODO: test validations\n }", "@Override\n\tpublic List<HashMap<String, Object>> findPermissionByRole(Integer roleid) {\n\t\treturn roleMapper.findPermissionByRole(roleid);\n\t}", "public Integer getPermissionTypeId() {\n return permissionTypeId;\n }", "@Override\r\n\tpublic List<Integer> queryPermissionsByRoleid(Integer roleid) {\n\t\treturn permissionDao.queryPermissionsByRoleid(roleid);\r\n\t}", "public IPermissionOwner getPermissionOwner(String fname);", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public MetaUser getMetaUser(int iUser);", "Object getPerm(String name);", "public User getUser(Long userId);", "@Path(\"/ListUserPermissions/{userName}\")\n @Produces({\"application/xml\", \"text/xml\", \"application/json\", \"text/yaml\", \"text/x-yaml\", \"application/x-yaml\"})\n @GET\n public ListUserPermissionsResponse listUserPermissions(@PathParam(\"userName\") String userName) {\n \n ListUserPermissionsResponse response = new ListUserPermissionsResponse();\n Connector connection = null;\n AccumuloConnectionFactory.Priority priority = AccumuloConnectionFactory.Priority.ADMIN;\n try {\n Map<String,String> trackingMap = connectionFactory.getTrackingMap(Thread.currentThread().getStackTrace());\n connection = connectionFactory.getConnection(priority, trackingMap);\n \n SecurityOperations ops = connection.securityOperations();\n \n List<datawave.webservice.response.objects.SystemPermission> systemPermissions = new ArrayList<>();\n SystemPermission[] allSystemPerms = SystemPermission.values();\n for (SystemPermission next : allSystemPerms) {\n if (ops.hasSystemPermission(userName, next)) {\n systemPermissions.add(new datawave.webservice.response.objects.SystemPermission(next.name()));\n }\n }\n \n List<datawave.webservice.response.objects.TablePermission> tablePermissions = new ArrayList<>();\n TableOperations tops = connection.tableOperations();\n SortedSet<String> tables = tops.list();\n TablePermission[] allTablePerms = TablePermission.values();\n for (String next : tables) {\n for (TablePermission nextPerm : allTablePerms) {\n if (ops.hasTablePermission(userName, next, nextPerm)) {\n tablePermissions.add(new datawave.webservice.response.objects.TablePermission(next, nextPerm.name()));\n }\n }\n }\n \n List<datawave.webservice.response.objects.NamespacePermission> namespacePermissions = new ArrayList<>();\n NamespaceOperations nops = connection.namespaceOperations();\n SortedSet<String> namespaces = nops.list();\n NamespacePermission[] allNamespacePerms = NamespacePermission.values();\n for (String next : namespaces) {\n for (NamespacePermission nextPerm : allNamespacePerms) {\n if (ops.hasNamespacePermission(userName, next, nextPerm)) {\n namespacePermissions.add(new datawave.webservice.response.objects.NamespacePermission(next, nextPerm.name()));\n }\n }\n }\n \n UserPermissions userPermissions = new UserPermissions();\n userPermissions.setSystemPermissions(systemPermissions);\n userPermissions.setTablePermissions(tablePermissions);\n userPermissions.setNamespacePermissions(namespacePermissions);\n response.setUserPermissions(userPermissions);\n \n return response;\n } catch (AccumuloSecurityException e) {\n log.error(e.getMessage(), e);\n response.addException(e);\n throw new UnauthorizedException(e, response);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n response.addException(e);\n throw new AccumuloWebApplicationException(e, response);\n } finally {\n try {\n connectionFactory.returnConnection(connection);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }\n }", "AdminUser selectByPrimaryKey(Integer id);", "AdminUser selectByPrimaryKey(Integer id);", "Long getUserId();", "public Permission fetchPerm(String tenantId, String username, String systemId, String path) throws ServiceException\n {\n try {\n FilePermCacheKey key = new FilePermCacheKey(tenantId, systemId, path, username, Permission.MODIFY);\n if (cache.get(key)) return Permission.MODIFY;\n key = new FilePermCacheKey(tenantId, systemId, path, username, Permission.READ);\n if (cache.get(key)) return Permission.READ;\n return null;\n } catch (ExecutionException ex) {\n String msg = LibUtils.getMsg(\"FILES_CACHE_ERR\", \"FilePerms\", tenantId, systemId, username, ex.getMessage());\n throw new ServiceException(msg, ex);\n }\n }" ]
[ "0.7551018", "0.70683676", "0.7062403", "0.705895", "0.69806427", "0.6764061", "0.6743411", "0.67250407", "0.6708892", "0.6704468", "0.665415", "0.6606443", "0.6606279", "0.65030104", "0.6468637", "0.63784504", "0.63167953", "0.6304379", "0.6210836", "0.6202554", "0.6192068", "0.6075752", "0.6073349", "0.6064863", "0.6044135", "0.60438234", "0.6039089", "0.5989867", "0.5972151", "0.5963644", "0.5868323", "0.5851345", "0.5823772", "0.5823772", "0.57953894", "0.5787853", "0.5765715", "0.57110316", "0.57076657", "0.57024467", "0.5699738", "0.56797045", "0.5674531", "0.5667637", "0.5649143", "0.56473637", "0.56415886", "0.56281763", "0.56252515", "0.5621225", "0.5606179", "0.560013", "0.55902606", "0.5582632", "0.5577015", "0.556426", "0.5559214", "0.5558848", "0.5553273", "0.55412006", "0.554029", "0.5527157", "0.5521574", "0.5514884", "0.5510197", "0.5480761", "0.54699475", "0.5459189", "0.54570997", "0.5451613", "0.5450039", "0.5444357", "0.5444357", "0.5438504", "0.5438382", "0.5429538", "0.5427837", "0.5426228", "0.5423054", "0.54229534", "0.54229534", "0.54229534", "0.54229534", "0.54175407", "0.5412142", "0.5410569", "0.54081285", "0.54014", "0.53878796", "0.5373918", "0.5373918", "0.5373918", "0.537381", "0.5373777", "0.5369741", "0.53683007", "0.53635216", "0.53635216", "0.53591585", "0.5358072" ]
0.7090197
1
Retrieve Permission By Target
@RequestMapping(value = "/getPermissionByTarget/{target}", method = RequestMethod.GET) public ResponseEntity<?> getPersistencePermission(@PathVariable("target") String target) throws JsonParseException, JsonMappingException, IOException { Map<String, Object> result = null; Permission permission = permissionService.getByTarget(target); if(permission != null) { ObjectMapper objectMapper = new ObjectMapper(); result = objectMapper.readValue(permission.getRules(), new TypeReference<Map<String, Object>>(){}); result.put("id", SecurityUtil.getIdUser()); } // return. return new ResponseEntity<Map<String, Object>>(result, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IPermission[] getPermissionsForOwner(String owner, String activity, String target)\n throws AuthorizationException;", "public interface IPermissionTarget {\n \n /**\n * Get the key of this permission target. This key\n * will be used as the actual target string of a permission assignment.\n * \n * @return\n */\n public String getKey();\n \n /**\n * Get the human-readable name of this permission target.\n * \n * @return\n */\n public String getName();\n \n}", "public IPermission[] getPermissionsForPrincipal (\n IAuthorizationPrincipal principal,\n String owner,\n String activity,\n String target)\n throws AuthorizationException;", "abstract public void getPermission();", "String getPermission();", "public int getPermission(Integer resourceId);", "public IPermission[] getAllPermissionsForPrincipal (\n IAuthorizationPrincipal principal,\n String owner,\n String activity,\n String target)\n throws AuthorizationException;", "public String getFloodPerm() throws PermissionDeniedException;", "int getPermissionRead();", "public IPermissionActivity getPermissionActivity(long ownerId, String activityFname);", "public IPermissionOwner getPermissionOwner(long id);", "public IPermissionOwner getPermissionOwner(String fname);", "AbilityTarget getAbilityTarget();", "public Permission getPermission(String objectId, User user, Boolean pending) throws UserManagementException;", "public IPermissionActivity getPermissionActivity(long id);", "public Permission getPermission() {\n return permission;\n }", "public IPermissionActivity getOrCreatePermissionActivity(IPermissionOwner owner, String name, String fname, String targetProviderKey);", "Object getPerm(String name);", "PermissionService getPermissionService();", "public IPermissionActivity getPermissionActivity(String ownerFname, String activityFname);", "public String getPermission() {\n return this.permission;\n }", "Object getPerm(String name, Object def);", "public List<String> getPermission(int userId, String crp);", "public String getPermission()\r\n {\r\n return permission;\r\n }", "int getPermissionWrite();", "@Nullable\n Permission getPermissionTEMP(@NonNull String permName);", "public void getPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(permissions,\n MULTIPLE_PERMISSIONS);\n }\n }", "void permissionGranted(int requestCode);", "public boolean hasPermission(Authentication authentication, Serializable targetId, String targetType, Object permission) {\n return false;\n }", "public String getFloodPerm(String dpidStr) throws PermissionDeniedException;", "public PermissionHandler getHandler() {\r\n return Permissions.Security;\r\n }", "@PreAuthorize(\"hasPermission('string', 'ALL', new org.jasig.portal.spring.security.evaluator.AuthorizableActivity('UP_PERMISSIONS', 'VIEW_PERMISSIONS'))\")\n @RequestMapping(value=\"/permissions/{activity}/targets.json\", method = RequestMethod.GET)\n public ModelAndView getTargets(@PathVariable(\"activity\") Long activityId,\n @RequestParam(\"q\") String query,\n HttpServletRequest req, HttpServletResponse response)\n throws Exception {\n \n IPermissionActivity activity = permissionOwnerDao.getPermissionActivity(activityId);\n IPermissionTargetProvider provider = targetProviderRegistry.getTargetProvider(activity.getTargetProviderKey());\n \n SortedSet<IPermissionTarget> matchingTargets = new TreeSet<IPermissionTarget>();\n // add matching results for this identifier provider to the set\n Collection<IPermissionTarget> targets = provider.searchTargets(query);\n for (IPermissionTarget target : targets) {\n if ((StringUtils.isNotBlank(target.getName()) && target\n .getName().toLowerCase().contains(query))\n || target.getKey().toLowerCase().contains(query)) {\n matchingTargets.addAll(targets);\n }\n }\n\n ModelAndView mv = new ModelAndView();\n mv.addObject(\"targets\", targets);\n mv.setViewName(\"json\");\n \n return mv;\n }", "public List<Permission> getPermissions(User user) throws UserManagementException;", "public boolean doesPrincipalHavePermission(\n IAuthorizationPrincipal principal,\n String owner,\n String activity,\n String target)\n throws AuthorizationException;", "EpermissionDO selectByPrimaryKey(Long id);", "@Test\n public void getAppPermissionTest() throws ApiException {\n String appId = null;\n String username = null;\n String filter = null;\n String naked = null;\n // Permission response = api.getAppPermission(appId, username, filter, naked);\n\n // TODO: test validations\n }", "public Integer getPermission() {\n\t\treturn permission;\n\t}", "@Override\n public void onClick(View view) {\n String platform = checkPlatform();\n if (platform.equals(\"Marshmallow\")) {\n Log.d(TAG, \"Runtime permission required\");\n //Step 2. check the permission\n boolean permissionStatus = checkPermission();\n if (permissionStatus) {\n //Permission already granted\n Log.d(TAG, \"Permission already granted\");\n } else {\n //Permission not granted\n //Step 3. Explain permission i.e show an explanation\n Log.d(TAG, \"Explain permission\");\n explainPermission();\n //Step 4. Request Permissions\n Log.d(TAG, \"Request Permission\");\n requestPermission();\n }\n\n } else {\n Log.d(TAG, \"onClick: Runtime permission not required\");\n }\n\n\n }", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "Permission selectByPrimaryKey(Integer id);", "public java.util.List<org.eclipse.stardust.engine.api.runtime.Permission>\n getPermissions()\n throws org.eclipse.stardust.common.error.WorkflowException;", "public List<Permission> getPermissions(String objectId) throws UserManagementException;", "public Permissions[] getPermissionsNeeded(ContainerRequestContext context) throws Exception {\n Secured auth = resourceInfo.getResourceMethod().getAnnotation(Secured.class);\n\n // If there's no authentication required on method level, check class level.\n if (auth == null) {\n auth = resourceInfo.getResourceClass().getAnnotation(Secured.class);\n }\n\n // Else, there's no permission required, thus we chan continue;\n if (auth == null) {\n log.log(Level.INFO, \"AUTHENTICATION: Method: \" + context.getMethod() + \", no permission required\");\n return new Permissions[0];\n }\n\n return auth.value();\n }", "public String getAccess();", "Permission selectByPrimaryKey(String id);", "public static OMCollection getLinkByTarget(Entity target) {\r\n return IServer.associationHasTarget().rr(target).domain();\r\n }", "public Enumeration permissions();", "@Override\r\n\tpublic Permission getPermission(int id) {\n\t\treturn null;\r\n\t}", "public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }", "String getAccess();", "String getAccess();", "private Set<Permission> getInferredPermissions(DvObject dvo) {\n\n Set<Permission> permissions = EnumSet.noneOf(Permission.class);\n\n if (isPublicallyDownloadable(dvo)) {\n permissions.add(Permission.DownloadFile);\n }\n\n return permissions;\n }", "void requestNeededPermissions(int requestCode);", "public TPermissionMode getUserPermissionArray() {\n\n\t\treturn otherPermission;\n\t}", "@Override\r\n\tpublic Permission queryRootPermission() {\n\t\treturn permissionDao.queryRootPermission();\r\n\t}", "public void getPermissiontoAccessInternet() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.INTERNET)\n != PackageManager.PERMISSION_GRANTED) {\n\n // The permission is NOT already granted.\n // Check if the user has been asked about this permission already and denied\n // it. If so, we want to give more explanation about why the permission is needed.\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.INTERNET)) {\n // Show our own UI to explain to the user why we need to read the contacts\n // before actually requesting the permission and showing the default UI\n }\n\n // Fire off an async request to actually get the permission\n // This will show the standard permission request dialog UI\n ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.INTERNET},\n INTERNET_PERMISSIONS_REQUEST);\n }\n }", "List<Permission> getPermissions();", "public List<Permission> getPermissionsPending(User user) throws UserManagementException;", "@Override\n protected String requiredGetPermission() {\n return \"user\";\n }", "private void getPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n }", "Privilege getPrivilege();", "@Override\n public Set<String> getPermissions(Class<? extends AeroCommandBase<?>> command) {\n return permissions.get(command);\n }", "@Override\n public void checkPermission(Permission perm) {\n }", "private String[] getManifestPermissions(Activity paramActivity) {\n }", "public IGrantSet getPermissions()\n throws OculusException;", "public List<Permission> getUserPermission() {\n\t\treturn securityContext.getAuthorizationContext().getPermissions();\n\t}", "public FacebookPermissionsE permission(){\n\t\treturn this.permission;\n\t}", "public boolean checkPermission(Permission permission);", "Resource getAbilityResource();", "public int getMetaPrivileges();", "public int getPermission() {\r\n\t\treturn nPermission;\r\n\t}", "public List<Permission> getPermissionsPending(String objectId) throws UserManagementException;", "String getTarget();", "String getTarget();", "public void askPermission() {\n try {\n if (Build.VERSION.SDK_INT >= 23) {\n //call the function to ask for permission\n try {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.READ_CONTACTS}, 100);\n return;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public Integer getPermissionId() {\n return permissionId;\n }", "public Integer getPermissionId() {\n return permissionId;\n }", "int getPremiumSmsPermission(String packageName);", "public int getTargetSdk() {\n return mSplitPermissionInfoParcelable.getTargetSdk();\n }", "void checkPermission(T request) throws AuthorizationException;", "public ResourceInformation.Permissions getEffectivePermissions() {\n\t\tif (effectivePermissions == null)\n\t\t\tfetchInfo();\n\t\treturn effectivePermissions;\n\t}", "public Permission[] getPermissions(Object proxy) {\n storedProxy = proxy;\n if (getPermissionsTrap != null) {\n throw getPermissionsTrap;\n }\n\treturn super.getPermissions(proxy);\n }", "java.lang.String getPermissions(int index);", "public Set < PermissionAttachmentInfo > getEffectivePermissions ( ) {\n\t\treturn extract ( handle -> handle.getEffectivePermissions ( ) );\n\t}", "@NotNull\n Resource getTarget();", "public List<Permission> getPermissions(T object, User user);", "void askForPermissions();", "public PermissionSet getPermissionSet() {\n return permissionSet;\n }", "List<EpermissionDO> selectByExample(EpermissionDOExample example);", "private void checkPermission(User user, List sourceList, List targetList)\n throws AccessDeniedException\n {\n logger.debug(\"+\");\n if (isMove) {\n if (!SecurityGuard.canManage(user, sourceList.getContainerId()) ||\n !SecurityGuard.canContribute(user, targetList.getContainerId()))\n throw new AccessDeniedException(\"Forbidden\");\n }\n else {\n if (!SecurityGuard.canView(user, sourceList.getContainerId()) ||\n !SecurityGuard.canContribute(user, targetList.getContainerId()))\n throw new AccessDeniedException(\"Forbidden\");\n }\n logger.debug(\"-\");\n }", "private void checkMethodPermission(HandlerMethod handlerMethod) {\n RequirePermission annotation = handlerMethod.getMethodAnnotation(RequirePermission.class);\n String str = annotation.value();\n System.out.println(\"-----+++++++\");\n }", "public Target getTarget() {\n return target;\n }", "public int getUserModificationPermission() {\n return permission;\n }", "public static String applicationPermission() {\n return holder.format(\"applicationPermission\");\n }", "public String getPermissionDescription() {\n return permissionDescription;\n }", "public String getTarget() {\n return this.target;\n }", "public List<IPermissionOwner> getAllPermissionOwners();", "void requestStoragePermission();", "public Boolean getFlowTracking() throws PermissionDeniedException;", "@Override\r\n\tpublic List<Map<String, Object>> selectTargetUser(HttpServletRequest request) throws Exception {\n\t\tString target = request.getParameter(\"target\");\r\n\t\tString insa_code = SessionUtil.getSession(\"memberSession\", \"INSA_CODE\");\r\n\t\t\r\n\t\tMap<String, Object> map = new HashMap<String, Object>();\r\n\t\tmap.put(\"target\", target);\r\n\t\tmap.put(\"insa_code\", insa_code);\r\n\t\t\r\n\t\treturn dao.selectTargetUser(map);\r\n\t}" ]
[ "0.70378715", "0.6840817", "0.67102164", "0.66520447", "0.6633579", "0.66260886", "0.6561028", "0.6299665", "0.6167955", "0.5933924", "0.59266645", "0.59153855", "0.5907403", "0.59036285", "0.58903825", "0.5867715", "0.58583903", "0.5844278", "0.58120954", "0.5767867", "0.57017004", "0.56968886", "0.5682642", "0.5669792", "0.5596975", "0.5588148", "0.55316734", "0.5514079", "0.5481053", "0.5466047", "0.5465325", "0.5463024", "0.5457843", "0.54573786", "0.5450311", "0.5420038", "0.5419048", "0.54187626", "0.54070044", "0.539753", "0.5387109", "0.5383862", "0.53731894", "0.5371021", "0.53648823", "0.5358755", "0.53580606", "0.53543943", "0.5343297", "0.53428316", "0.53428316", "0.53334033", "0.53153473", "0.52961725", "0.5286358", "0.5280909", "0.5273414", "0.52554095", "0.5253534", "0.5246031", "0.524284", "0.5234145", "0.52325493", "0.52140653", "0.519724", "0.5187849", "0.5187015", "0.5168361", "0.5167156", "0.5164475", "0.5159722", "0.5152683", "0.5151785", "0.5151785", "0.5146686", "0.51446486", "0.51446486", "0.5130044", "0.5127179", "0.51210356", "0.51191837", "0.5116256", "0.5114013", "0.51111454", "0.5099723", "0.509865", "0.50918907", "0.5088245", "0.5084189", "0.50838554", "0.5083193", "0.50814223", "0.5077691", "0.5072161", "0.5058328", "0.50564396", "0.50463533", "0.50432414", "0.504152", "0.5038442" ]
0.70500445
0
Create a User With Login
@PreAuthorize("@userAuthorize.canCreate(#user)") @RequestMapping(value = "/createWithLogin", method = RequestMethod.POST) public ResponseEntity<?> createWithLogin(@RequestBody User user, @RequestParam Map<String, Object> params) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException, KeyManagementException, UnrecoverableKeyException { // Call serverauth to create user. String serverauthUrl = evn.getProperty("serverauth.url"); String token = params.get("token").toString(); Map<String, Object> data = new HashMap<String, Object>(); data.put("username", user.getUsername()); data.put("password", user.getPassword()); data.put("displayname", user.getDisplayname()); data.put("thumbnail", user.getThumbnail()); data.put("enabled", true); ResponseEntity<Object> response = RestAPIHelper.exchangeSSLService(serverauthUrl + "/users/createWithEvent", HttpMethod.POST, token, null, data, null); Map<String, Object> resultRemote = (Map<String, Object>) response.getBody(); if(resultRemote.get("error") != null) { // throw server exception. throw new ServerException(Constant.SERVERCODE_ERROR); } try { User result = userService.create(user); // Call serverauth to confirm create user as SUCCESS. response = RestAPIHelper.exchangeSSLService(serverauthUrl + "/users/confirmStatus/" + resultRemote.get("id") + "/" + Constant.SERVICETRANSACTION_SUCCESS, HttpMethod.GET, token, null, null, null); // return. return new ResponseEntity<Integer>(result.getId(), HttpStatus.OK); } catch(Exception ex) { // Call serverauth to confirm create user as ABORT. response = RestAPIHelper.exchangeSSLService(serverauthUrl + "/users/confirmStatus/" + resultRemote.get("id") + "/" + Constant.SERVICETRANSACTION_ABORT, HttpMethod.GET, token, null, null, null); // throw server exception. throw new ServerException(Constant.SERVERCODE_ERROR); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createUser(User user);", "public void createUser(User user) {\n\n\t}", "private void createUser(final String email, final String password) {\n\n }", "User createUser();", "public void creatUser(String name, String phone, String email, String password);", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "boolean createUser(String username, String password);", "UserCreateResponse createUser(UserCreateRequest request);", "void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "User createUser(User user);", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "boolean create(User user) throws Exception;", "int createUser(User data) throws Exception;", "Boolean registerNewUser(User user);", "User createUser(UserCreationModel user);", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }", "int newUser(String username, String password, Time creationTime);", "User login(Uuid id, String username, String password, Time creationTime);", "public void createUserAccount(UserAccount account);", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "User login(String username, String password);", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "public static void createUser(String fname, String lname, String username, String password) {\n\t\tUser newUser = new User(fname, lname, username, password);\t\n\t}", "public void newUser(User user);", "public UserAuthToken createUser(CreateUserRequest request);", "public void create(String userName, String password, String userFullname,\r\n\t\t\tString userSex, int userTel, String role);", "@Override\n\tpublic User createNewUser(Account account) {\n\t\treturn new User(account);\n\t\t\n\t}", "private User createUser(String username, String name, String email, String password) {\n UserDTO userDTO = new UserDTO();\n userDTO.setEmail(email);\n userDTO.setName(name);\n userDTO.setPassword(password);\n userDTO.setUsername(username);\n\n userService.registerUser(userDTO);\n\n User user = userService.getUserByEmail(email);\n return user;\n }", "public User logInUser(final String login, final String password);", "public iUser createUser(int id) {\n iUser user = null;\n String username = getUsername();\n String password = getPassword();\n\n boolean confirmed = confirmed(id, username);\n if (confirmed) {\n user = registerOptions(username, password, id);\n }\n return user;\n }", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public void createUser() throws ServletException, IOException {\n\t\tString fullname = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString email = request.getParameter(\"email\");\n\t\tUsers getUserByEmail = productDao.findUsersByEmail(email);\n\t\t\n\t\tif(getUserByEmail != null) {\n\t\t\tString errorMessage = \"we already have this email in database\";\n\t\t\trequest.setAttribute(\"message\", errorMessage);\n\t\t\t\n\t\t\tString messagePage = \"message.jsp\";\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(messagePage);\n\t\t\trequestDispatcher.forward(request, response);\n\t\t}\n\t\t// create a new instance of users class;\n\t\telse {\n\t\t\tUsers user = new Users();\n\t\t\tuser.setPassword(password);\n\t\t\tuser.setFullName(fullname);\n\t\t\tuser.setEmail(email);\n\t\t\tproductDao.Create(user);\n\t\t\tlistAll(\"the user was created\");\n\t\t}\n\n\t\t\n\t}", "public void makeNewUser(String name, int age, String address, String password)\n throws SQLException, ConnectionFailedException, DatabaseInsertException {\n if (this.currentUserAuthenticated) {\n // find the role ID that corresponds to customer\n EnumMapRolesAndAccounts map = new EnumMapRolesAndAccounts();\n map.createEnumMap();\n int roleId = map.roleIds.get(Roles.CUSTOMER);\n int userId = DatabaseInsertHelper.insertNewUser(name, age, address, roleId, password);\n System.out.println(\"User ID - \" + userId);\n System.out.println(\"succesfully made user\");\n } else {\n System.out.println(\"failed making user\");\n throw new ConnectionFailedException();\n }\n }", "User create(final User user) throws DatabaseException;", "User create(User user);", "public void createUser(String userName, String password,\n boolean createDB) throws Exception;", "@PostMapping(\"/user/new/\")\n\tpublic userprofiles createUser(@RequestParam String firstname, @RequestParam String lastname, @RequestParam String username, @RequestParam String password, @RequestParam String pic) {\n\t\treturn this.newUser(firstname, lastname, username, password, pic);\n\t}", "public Login createLogin(String userName, String password, String userId) {\n return saveLogin(userName, password, userId, \"USER\");\n }", "User registration(User user);", "private User createUser(org.picketlink.idm.model.User picketLinkUser) {\n User user = new User(picketLinkUser.getLoginName());\n user.setFullName(picketLinkUser.getFirstName() + \" \" + picketLinkUser.getLastName());\n user.setShortName(picketLinkUser.getLastName());\n return user;\n }", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public CreateNewUserDetails(String sLogin, String sFirstName, \r\n\t\t\tString sLastName, String sPassword, String sEmail)\r\n\t{\r\n\t\t// No language assume English user\r\n\t\tset(sLogin, sFirstName, sLastName, sPassword, sEmail, \"\", \"\", \"\", true);\r\n\t}", "public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}", "@Test\n\tpublic void newUser() {\n\n\t\tUser user = new User(\"moviewatcher\", \"$2a$10$37jGlxDwJK4mRpYqYvPmyu8mqQJfeQJVSdsyFY5UNAm9ckThf2Zqa\", \"USER\");\n\t\tuserRepository.save(user);\n\n\t\tassertThat(user).isNotNull();\n\t\tassertThat(user).hasFieldOrPropertyWithValue(\"username\", \"moviewatcher\");\n\t}", "private void createUser(Request request, Response response) {\r\n\t\tUserBean userBean = new UserBean();\r\n\t\tRESTfulSession session = null;\r\n\r\n\t\ttry {\r\n\t\t\tBeanHelper.populateUserBeanFromRequest(request, userBean);\r\n\t\t\tString username = userBean.getUsername();\r\n\t\t\tString password = userBean.getPassword();\r\n\t\t\tString email = userBean.getEmail();\r\n\r\n\t\t\tif (StringHelper.isNullOrNullString(username)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(password)\r\n\t\t\t\t\t|| StringHelper.isNullOrNullString(email)) {\r\n\t\t\t\tthrow new InvalidInputException();\r\n\t\t\t}\r\n\r\n\t\t\tsession = userService.createUser(userBean);\r\n\t\t} catch (InvalidInputException e) {\r\n\t\t\tresponse.setStatus(Status.CLIENT_ERROR_BAD_REQUEST, e.getMessage());\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(Status.SERVER_ERROR_INTERNAL, e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tlog.error(e);\r\n\t\t} finally {\r\n\t\t\t// generate response XML\r\n\t\t\txmlSerializationService.generateXMLResponse(request, response,\r\n\t\t\t\t\tsession);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "void createUser() throws SQLException {\n String name = regName.getText();\n String birthdate = regAge.getText();\n String username = regUserName.getText();\n String password = regPassword.getText();\n String query = \" insert into users (name, birthdate, username, password)\"\n + \" values (?, ?, ?, ?)\";\n\n DB.registerUser(name, birthdate, username, password, query);\n }", "public User(String login) {\n this.login = login;\n }", "public void login(User user);", "public CreateNewUserDetails(String sLogin, String sFirstName, \r\n\t\t\tString sLastName, String sPassword, String sEmail, String sRole, String sLocale)\r\n\t{\r\n\t\t// No language assume English user\r\n\t\tset(sLogin, sFirstName, sLastName, sPassword, sEmail, sRole, sLocale, \"\", true);\r\n\t}", "Human_User createHuman_User();", "@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}", "private void makeLogin() {\n if (enableLoginActivity && mAuth.getCurrentUser() == null) {\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n finish();\n }\n else if (!enableLoginActivity) {\n user = new User(\"johnDoe\", \"johnDoe@gmail.com\", \"1234\");\n }\n }", "HttpStatus createUserAccount(final String realm, final String username, final String firstName,\n\t\t\tfinal String lastName, final String email, final String password);", "public IUser CreateUser() {\n\t\tIUser iUser = null;\n\t\tswitch (db) {\n\t\tcase \"Mysql\":\n\t\t\tiUser = new MysqlUserImpl();\n\t\t\tbreak;\n\t\tcase \"Access\":\n\t\t\tiUser = new AccessUserImpl();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn iUser;\n\t}", "public int createAccount(User user) throws ExistingUserException,\n UnsetPasswordException;", "public CreateNewUserDetails(String sLogin, String sFirstName, \r\n\t\t\tString sLastName, String sPassword, String sEmail, String sRole)\r\n\t{\r\n\t\t// No language assume English user\r\n\t\tset(sLogin, sFirstName, sLastName, sPassword, sEmail, sRole, \"\", \"\", true);\r\n\t}", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "public void createUser(String username, String password, String role) {\r\n Optional<User> user = userRepo.findByName(username);\r\n if (!user.isPresent()) {\r\n User newUser = new User();\r\n newUser.setName(username);\r\n newUser.setPassword(password);\r\n newUser.setRole(role);\r\n userRepo.save(newUser);\r\n }\r\n }", "public boolean createUser(String username, String password) {\r\n \t\tboolean result = this.dataLayer.addUser(username, password);\r\n \r\n \t\treturn result;\r\n \t}", "public void create() {\n String salt = PasswordUtils.getSalt(30);\n\n // Protect user's password. The generated value can be stored in DB.\n String mySecurePassword = PasswordUtils.generateSecurePassword(password, salt);\n\n // Print out protected password\n System.out.println(\"My secure password = \" + mySecurePassword);\n System.out.println(\"Salt value = \" + salt);\n Operator op = new Operator();\n op.setUsername(username);\n op.setDescription(description);\n op.setSalt(salt);\n op.setPassword(mySecurePassword);\n op.setRol(rol);\n operatorService.create(op);\n message = \"Se creo al usuario \" + username;\n username = \"\";\n description = \"\";\n password = \"\";\n rol = null;\n }", "@Override\npublic String createUser(String userAccount, String userPassword,\n\t\tString userSex, String userEmail, String userName) {\n\t\n\tUser user = new User(userAccount, userPassword, userSex , userEmail, userName);\n\tem.persist(user) ;\n\t return \n\t\t\t \"Account: \" + user.getUserAccount() + \"\\n\" +\n\t\t\t\"Password: \" + user.getUserPassword() + \"\\n\" + \n\t\t\t\"Sex: \" + user.getUserSex() + \"\\n\" +\n\t\t\t\"Email: \" + user.getUserEmail() + \"\\n\" +\n\t\t\t\"Name: \" + user.getUserName();\n\n\t\n}", "@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"gburdell1@gatech.edu\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }", "private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}", "@Override\n\tpublic User Create(User t) {\n\t\tsessionFactory.getCurrentSession().save(t);\n\t\t\n\t\treturn t;\n\t}", "User signIn(String login, String password);", "void registerUser(User newUser);", "private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "boolean addUser(int employeeId, String name, String password, String role);", "boolean create_user(String username, String password)\n {\n String input = \"{ \\\"name\\\": \\\"\" + username + \"\\\", \\\"password\\\": \\\"\" + password +\"\\\" }\";\n return request(\"POST\", input, \"players\").equals(\"1\");\n }", "@Override\n\tpublic String createUser(User users) {\n\t\tuserRepository.save(users);\n\t\treturn \"Save Successful\";\n\t}", "@Override\n\tpublic Usuario createUsuario(Usuario usr) {\n\t\treturn null;\n\t}", "public void create(String username, String password, DatabaseRolesEnum role){\r\n ORole dbRole = db.getMetadata().getSecurity().getRole(role.getRoleName());\r\n db.getMetadata().getSecurity().createUser(username, password, dbRole);\r\n }", "Account create();", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "public void createUser(SignUpDto signupdto) {\n\t\tUser user = new User();\r\n\t\t\r\n\t\tuser.setId(signupdto.getId());\r\n\t\tuser.setPw(signupdto.getPw());\r\n\t\tuser.setNickname(signupdto.getNickname());\r\n\t\t\r\n\t\tuserRepository.save(user);\t\r\n\t}", "private String createUser(String name) {\n\t\treturn null;\n\t}", "public void create(UserValidator account) {\n Account validated = new Account();\n validated.setUsername(account.getUsername());\n validated.setPassword(passwordEncoder.encode(account.getPassword()));\n validated.setFirstName(account.getFirstName());\n validated.setLastName(account.getLastName());\n validated.getAuthorities().add(\"USER\");\n\n this.accountRepository.save(validated);\n }", "public void createUser(String email, String password) {\n\n if (!validateForm()) {\n return;\n }\n\n signupBtn.setEnabled(false);\n startLoadAnim(getString(R.string.registering_user));\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n // If sign in fails, display a message to the user. If sign in succeeds\n // the auth state listener will be notified and logic to handle the\n // signed in user can be handled in the listener.\n if (!task.isSuccessful()) {\n Toast.makeText(LoginActivity.this, R.string.registration_failed, Toast.LENGTH_SHORT).show();\n signupBtn.setEnabled(true);\n stopLoadAnim();\n }\n }\n });\n }", "@Override\n public void createUser(User user) {\n run(()->{this.userDAO.save(user);});\n\n }", "@RequestMapping(value=\"\", method=RequestMethod.POST, consumes=MediaType.MULTIPART_FORM_DATA_VALUE, produces = \"application/json\")\n\tpublic @ResponseBody Object createUser(@RequestParam String userName, @RequestParam String userPassword, @RequestParam String userFirstName, \n\t\t\t@RequestParam String userLastName, @RequestParam String userPicURL,@RequestParam String userEmail, @RequestParam String userEmployer,\n\t\t\t@RequestParam String userDesignation, @RequestParam String userCity, @RequestParam String userState, @RequestParam(required=false) String programId, \n\t\t\t@RequestParam long updatedBy, @RequestParam String userExpertise, @RequestParam String userRoleDescription,\n\t\t\t@RequestParam String userPermissionCode, @RequestParam String userPermissionDescription, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn userService.createUser(userName, userPassword, userFirstName, userLastName, userPicURL, userEmail, userEmployer, userDesignation, userCity, userState, programId, updatedBy, userExpertise, userRoleDescription, userPermissionCode, userPermissionDescription, request, response);\n\t}", "@Override\n public ApiResponse createUser(SignupDto signupDto){\n var userRole = this.roleDAO.findByName(RoleEnum.USER);\n Set<Role> userRoles = new HashSet<Role>(Collections.singletonList(userRole.get()));\n\n Person newPerson = new Person();\n newPerson.setEmail(signupDto.getUsername());\n newPerson.setFirstName(signupDto.getFirstName());\n newPerson.setLastName(signupDto.getLastName());\n newPerson.setRoles(userRoles);\n\n // Encriptamos la contraseña que nos mando el usuario\n var encryptedPassword = this.passwordEncoder.encode(signupDto.getPassword());\n newPerson.setPassword(encryptedPassword);\n\n this.personDAO.save(newPerson);\n\n return new ApiResponse(true, \"Usuario creado\");\n\n }", "public UserEntity create(String userId) throws CreateException;", "public void createUserAccount(SignupRequest signUpRequest) {\n\t\tApplicationUser user = new ApplicationUser(signUpRequest.getUsername(), \r\n\t\t\t\t\t\t\t signUpRequest.getEmail(),\r\n\t\t\t\t\t\t\t encoder.encode(signUpRequest.getPassword()));\r\n\r\n\t\tSet<String> strRoles = signUpRequest.getRole();\r\n\t\tSet<Role> roles = new HashSet<>();\r\n\r\n\t\tif (strRoles == null || strRoles.isEmpty()) {\r\n\t\t\tRole userRole = roleRepository.findByName(ERole.ROLE_USER)\r\n\t\t\t\t\t.orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\r\n\t\t\troles.add(userRole);\r\n\t\t} else {\r\n\t\t\tstrRoles.forEach(role -> {\r\n\t\t\t\tswitch (role) {\r\n\t\t\t\tcase \"ROLE_ADMIN\":\r\n\t\t\t\t\tRole adminRole = roleRepository.findByName(ERole.ROLE_ADMIN)\r\n\t\t\t\t\t\t\t.orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\r\n\t\t\t\t\troles.add(adminRole);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"ROLE_POC\":\r\n\t\t\t\t\tRole modRole = roleRepository.findByName(ERole.ROLE_POC)\r\n\t\t\t\t\t\t\t.orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\r\n\t\t\t\t\troles.add(modRole);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tRole userRole = roleRepository.findByName(ERole.ROLE_USER)\r\n\t\t\t\t\t\t\t.orElseThrow(() -> new RuntimeException(\"Error: Role is not found.\"));\r\n\t\t\t\t\troles.add(userRole);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\tuser.setRoles(roles);\r\n\t\tuserRepository.save(user);\r\n\t}", "@Override\n public User signUpUser(String name, String username, String password, String email) throws UsernameExistsException {\n User u = new User(name, username, password, email);\n if (userDataMapper.getUserByUserName(username) != null)\n throw new UsernameExistsException();\n userDataMapper.add(u);\n return u;\n }", "private void createAccount(String email, String password) {\n if (!validateForm()) {\n return;\n }\n\n mAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n Toast.makeText(MainActivity.this, \"Unable to creat Account\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "@RequestMapping(method=RequestMethod.POST)\n\tpublic User create(@AuthenticationPrincipal @RequestBody UserEntry entry) {\n\t\tUser user = new User(entry);\n\t\tuser.setUserId(counter.getNextUserIdSequence());\n\t\tuser.setRoleId(role.findByIsDefault(true).getRoleId());\n\t\tPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();\n\t\tString hashedPassword = passwordEncoder.encode(user.getPassword());\n\t\tuser.setPassword(hashedPassword);\n\t\treturn repo.save(user);\n\t}", "private void createUser(String username) {\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Username Field Required!\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String userID = current_user.getUid();\n User user = new User(et_username.getText().toString(), et_gender.getText().toString(), \"Newbie\", \"Online\", \"Active\", userID, \"default_url\");\n mRef.child(mAuth.getCurrentUser().getUid()).setValue(user);\n }\n }", "public User create(String username, String password, String role) throws AdException{\n\t\ttry{\n\t\t\tUser user = new User(username, password, role);\n\t\t\t\n\t\t\tbegin();\n\t\t\tgetSession().save(user);\n\t\t\tcommit();\n\t\t\t\n\t\t\treturn user;\n\t\t}catch(HibernateException e){\n\t\t\trollback();\n\t\t\te.printStackTrace();\n\t\t\tthrow new AdException(\"Could not create user with \" + username, e);\n\t\t}\n\t}", "@BeforeClass(alwaysRun = true)\r\n\tpublic void createUser() throws ParseException, SQLException, JoseException {\r\n\t\tSystem.out.println(\"******STARTING***********\");\r\n\t\tUser userInfo = User.builder().build();\r\n\t\tuserInfo.setUsername(userName);\r\n\t\tuserInfo.setPassword(\"Test@123\");\r\n\t\tsessionObj = EnvSession.builder().cobSession(config.getCobrandSessionObj().getCobSession())\r\n\t\t\t\t.path(config.getCobrandSessionObj().getPath()).build();\r\n\t\t//userHelper.getUserSession(\"InsightsEngineusers26 \", \"TEST@123\", sessionObj); \r\n\t\tuserHelper.getUserSession(userInfo, sessionObj);\r\n\t\tlong providerId = 16441;\r\n\t\tproviderAccountId = providerId;\r\n\t\tResponse response = providerAccountUtils.addProviderAccountStrict(providerId, \"fieldarray\",\r\n\t\t\t\t\"budget1_v1.site16441.1\", \"site16441.1\", sessionObj);\r\n\t\tproviderAccountId = response.jsonPath().getLong(JSONPaths.PROVIDER_ACC_ID);\r\n\t\tAssert.assertTrue(providerAccountId!=null);\r\n\t\t\r\n\t\t}", "@Test\n\tpublic void testCreateUser(){\n\t\trepository.createUser(expectedUser);\n\t\tSystem.out.println(\"#########################>User inserted into database<#########################\");\n\t\tUser actualUser = repository.findByUsername(\"vgeorga\");\n\t\tassertEquals(expectedUser.getUsername(), actualUser.getUsername());\n\t}", "User addUser(IDAOSession session, String fullName, String userName,\n\t\t\tString password);", "public User createUser(User newUser) {\n if(userRepository.findByUsername(newUser.getUsername()) != null){\n throw new UsernameException(\"The username is already taken please choose another one\");\n }\n newUser.setToken(\"dummy_token\"); //not really needed after registration;\n\n newUser.setStatus(UserStatus.ONLINE);\n userRepository.save(newUser); //userRepository creates User entity for the first time\n\n newUser.setToken(generateToken(newUser));\n userRepository.save(newUser); //userRepository saves the new entity items to existing user\n\n log.debug(\"Created Information for User: {}\", newUser);\n return newUser;\n }", "@RequestMapping(\"/createnewuser\")\r\n\tpublic ModelAndView userCreated(@ModelAttribute(\"rg\") Register reg) {\r\n\t\t\r\n\t\tBigInteger num = reg.getMb_no();\r\n\t\tSystem.out.println(\"mbno=\"+num.toString());\r\n\t\t//Doing the entry of New User in Spring_Users table\r\n\t\t\r\n\t\tString username = reg.getEmail_id();\r\n\t\tString password = reg.getPassword();\r\n\t\tSpringUsers su = new SpringUsers();\r\n\t\tsu.setUsername(username);\r\n\t\tsu.setPassword(password);\r\n\t\tsu.setEnabled(1);\r\n\t\tSystem.out.println(\"username=\"+username);\r\n\t\tSystem.out.println(\"password=\"+password);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString r = reg.getUser_type();\r\n\t\t\r\n\t\t//if(r.equals(\"ROLE_INDIVIDUAL\"))\r\n\t\t\t//return new ModelAndView(\"individualhomepage\");\r\n\t\t//if(r.equals(\"ROLE_BROKER\"))\r\n\t//\t\treturn new ModelAndView(\"brokerhomepage\");\r\n\t\t//if(r.equals(\"ROLE_BUILDER\"))\r\n\t\t//\treturn new ModelAndView(\"builderhomepage\");\r\n\t\t\r\n\t//\tint i = susvc.entryOfNewUser(su);\r\n\t\t\r\n\t\tint j = regsvc.registerNewUser(reg);\r\n\t\t \r\n\t\treturn new ModelAndView(\"usercreated\");\r\n\r\n\t}", "void createUser(CreateUserDto createUserDto);" ]
[ "0.7840574", "0.77097404", "0.764242", "0.76246655", "0.76054645", "0.7603848", "0.7527487", "0.7477088", "0.7434846", "0.7428881", "0.7381712", "0.7363055", "0.7338533", "0.726038", "0.72311985", "0.7216356", "0.71967876", "0.7177772", "0.7171366", "0.716717", "0.7134279", "0.7076196", "0.7065401", "0.7063327", "0.7052882", "0.70435816", "0.7042809", "0.70408994", "0.70386344", "0.7036288", "0.7017805", "0.701373", "0.69909215", "0.69699895", "0.69672143", "0.6960385", "0.69603384", "0.69508064", "0.6948243", "0.6941959", "0.68716455", "0.6847045", "0.68411523", "0.68041146", "0.6799733", "0.6792648", "0.67843586", "0.67787045", "0.677299", "0.67716885", "0.6753281", "0.6729962", "0.67289203", "0.67232484", "0.6721506", "0.6720903", "0.671633", "0.670721", "0.6703997", "0.670313", "0.66872656", "0.6685111", "0.66733706", "0.6672539", "0.667012", "0.6668364", "0.66661525", "0.66509706", "0.6646508", "0.6639132", "0.66275585", "0.6626846", "0.6625519", "0.66202486", "0.6613769", "0.66088116", "0.6602976", "0.66016006", "0.6597183", "0.6578189", "0.65751296", "0.6567467", "0.6565865", "0.6556223", "0.6552292", "0.65495646", "0.6549015", "0.6546766", "0.6539529", "0.65393376", "0.6525933", "0.6503294", "0.6497834", "0.64913183", "0.6489212", "0.64886147", "0.64878416", "0.64824104", "0.64784896", "0.6478391" ]
0.7095198
21
Create a User With Event
@RequestMapping(value = "/createWithEvent", method = RequestMethod.POST) public ResponseEntity<?> createWithEvent(@RequestBody User user) throws InterruptedException, JsonParseException, JsonMappingException, IOException { Map<String, Object> syncObject = new HashMap<String, Object>(); Integer iduser = SecurityUtil.getIdUser(); syncObject.put("iduser", iduser); syncObject.put("id", -1); Thread thread = new Thread() { public void run() { try { userService.createWithEvent(user, syncObject); } catch (Exception e) { syncObject.put("error", e.getMessage()); syncObject.notify(); logger.error(e.getMessage()); } } }; thread.start(); synchronized(syncObject) { syncObject.wait(); } // return. return new ResponseEntity<Map<String, Object>>(syncObject, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onCreationEvent(UserCreateEvent event){\n user = new UserBean(event.getUser());\n }", "public void createUser(User user);", "public void createUser(User user) {\n\n\t}", "@Override\n\tpublic void create(User user) {\n\t\t\n\t}", "UserCreateResponse createUser(UserCreateRequest request);", "private void createUser(String Address, String Phone_number,String needy) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(userId)) {\n userId = mFirebaseDatabase.push().getKey();\n }\n\n com.glitch.annapurna.needy user = new needy(Address,Phone_number,needy);\n\n mFirebaseDatabase.child(userId).setValue(user);\n\n addUserChangeListener();\n }", "CreateUserResult createUser(CreateUserRequest createUserRequest);", "boolean create(User user) throws Exception;", "public UserAuthToken createUser(CreateUserRequest request);", "User createUser();", "User createUser(User user);", "public void userCreated(UserCreateCommand command) {\n\t\t}", "public void newUser(User user);", "@Override\n\tpublic ApplicationResponse createUser(UserRequest request) {\n\t\tUserEntity entity = repository.save(modeltoentity.apply(request));\n\t\tif (entity != null) {\n\t\t\treturn new ApplicationResponse(true, \"Success\", enitytomodel.apply(entity));\n\t\t}\n\t\treturn new ApplicationResponse(false, \"Failure\", enitytomodel.apply(entity));\n\t}", "public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}", "@FXML\n\tpublic void createUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtUserNames.getText();\n\t\tString lastName = txtUserSurnames.getText();\n\t\tString id = txtUserId.getText();\n\t\tString username = txtUserUsername.getText();\n\t\tString password = PfUserPassword.getText();\n\n\t\tif (!name.equals(empty) && !lastName.equals(empty) && !id.equals(empty) && !username.equals(empty)\n\t\t\t\t&& !password.equals(empty)) {\n\t\t\tcreateSystemUser(name, lastName, id, username, password);\n\t\t\ttxtUserNames.setText(\"\");\n\t\t\ttxtUserSurnames.setText(\"\");\n\t\t\ttxtUserId.setText(\"\");\n\t\t\ttxtUserUsername.setText(\"\");\n\t\t\tPfUserPassword.setText(\"\");\n\t\t\t// labelUserMessage.setText(\"The user has been created\");\n\t\t} else if (name.equals(empty) && lastName.equals(empty) && id.equals(empty) && username.equals(empty)\n\t\t\t\t&& password.equals(empty)) {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "int createUser(User data) throws Exception;", "@Override\n public void createUser(User user) {\n run(()->{this.userDAO.save(user);});\n\n }", "Boolean registerNewUser(User user);", "@FXML\n private void openCreateUser(ActionEvent event) {\n CreateUserController createusercontroller = new CreateUserController();\n User user = createusercontroller.openCreateUser(event, roleTap);\n\n if (user != null) {\n userList.add(user);\n UsermanagementUtilities.setFeedback(event, user.getName().getFirstName()+LanguageHandler.getText(\"userCreated\"), true);\n } else {\n UsermanagementUtilities.setFeedback(event, LanguageHandler.getText(\"userNotCreated\"), false);\n\n }\n }", "public void createInviteNotification(Event e, Users u) {\n Invite invite= new Invite();\n invite.setUser(u);\n invite.setStatus(Invite.InviteStatus.invited);\n invite.setEvent(e);\n em.persist(invite);\n Notification notification = new Notification();\n notification.setType(NotificationType.invite);\n notification.setNotificatedUser(u);\n notification.setRelatedEvent(e);\n notification.setSeen(false);\n notification.setGenerationDate(new Date());\n em.persist(notification);\n mailManager.sendMail(u.getEmail(), \"New Invite\", \"Hi! You have received a new invite\");\n }", "User create(User user);", "User createUser(UserCreationModel user);", "void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;", "void createUser(CreateUserDto createUserDto);", "void registerUser(User newUser);", "User create(final User user) throws DatabaseException;", "void addUser(User user);", "void addUser(User user);", "@Test\n public void createUserTestTest()\n {\n HashMap<String, Object> values = new HashMap<String, Object>();\n values.put(\"age\", \"22\");\n values.put(\"dob\", new Date());\n values.put(\"firstName\", \"CreateFName\");\n values.put(\"lastName\", \"CreateLName\");\n values.put(\"middleName\", \"CreateMName\");\n values.put(\"pasword\", \"user\");\n values.put(\"address\", \"CreateAddress\");\n values.put(\"areacode\", \"CreateAddressLine\");\n values.put(\"city\", \"CreateCity\");\n values.put(\"country\", \"CreateCountry\");\n values.put(\"road\", \"CreateRoad\");\n values.put(\"suberb\", \"CreateSuberb\");\n values.put(\"cell\", \"CreateCell\");\n values.put(\"email\", \"user\");\n values.put(\"homeTell\", \"CreateHomeTell\");\n values.put(\"workTell\", \"CreateWorkTell\");\n createUser.createNewUser(values);\n\n Useraccount useraccount = useraccountCrudService.findById(ObjectId.getCurrentUserAccountId());\n Assert.assertNotNull(useraccount);\n\n Garage garage = garageCrudService.findById(ObjectId.getCurrentGarageId());\n Assert.assertNotNull(garage);\n\n Saleshistory saleshistory = saleshistoryCrudService.findById(ObjectId.getCurrentSalesHistoryId());\n Assert.assertNotNull(saleshistory);\n }", "private void createUser(String username) {\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Username Field Required!\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String userID = current_user.getUid();\n User user = new User(et_username.getText().toString(), et_gender.getText().toString(), \"Newbie\", \"Online\", \"Active\", userID, \"default_url\");\n mRef.child(mAuth.getCurrentUser().getUid()).setValue(user);\n }\n }", "public void createAndAddUser(String fName, String lName){\n ModelPlayer user = new ModelPlayer(fName, lName);\n user.setUserID(this.generateNewId());\n userListCtrl.addUser(user);\n }", "@Override\r\n\tpublic void postRequest(Request request, Response response) {\r\n\t\tcreateUser(request, response);\r\n\t}", "private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}", "public void creatUser(String name, String phone, String email, String password);", "@Override\n\tpublic int create(Users user) {\n\t\tSystem.out.println(\"service:creating new user...\");\n\t\treturn userDAO.create(user);\n\t}", "@Override\n\tpublic void createUser(User user) {\n\t\tSystem.out.println(\"INSIDE create user function\");\n\t\tem.persist(user);\n\t\t\t\n\t}", "public void createUserAccount(UserAccount account);", "public UserEventRegistrationDetail(final Long id, final User user, final Event event) {\n this.id = id;\n this.user = user;\n this.event = event;\n }", "public EOSUser createUser(EOSUser user, Map<String, String> userData) throws EOSDuplicatedEntryException,\n\t\t\tEOSForbiddenException, EOSUnauthorizedException, EOSValidationException;", "private void createUser(final String email, final String password) {\n\n }", "public void createUser() throws ServletException, IOException {\n\t\tString fullname = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString email = request.getParameter(\"email\");\n\t\tUsers getUserByEmail = productDao.findUsersByEmail(email);\n\t\t\n\t\tif(getUserByEmail != null) {\n\t\t\tString errorMessage = \"we already have this email in database\";\n\t\t\trequest.setAttribute(\"message\", errorMessage);\n\t\t\t\n\t\t\tString messagePage = \"message.jsp\";\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(messagePage);\n\t\t\trequestDispatcher.forward(request, response);\n\t\t}\n\t\t// create a new instance of users class;\n\t\telse {\n\t\t\tUsers user = new Users();\n\t\t\tuser.setPassword(password);\n\t\t\tuser.setFullName(fullname);\n\t\t\tuser.setEmail(email);\n\t\t\tproductDao.Create(user);\n\t\t\tlistAll(\"the user was created\");\n\t\t}\n\n\t\t\n\t}", "public void addUser(User user);", "public static void createEvent(String token){\n ensureGraphClient(token);\n\n LinkedList<Option> requestOptions = new LinkedList<Option>();\n //requestOptions.add(new HeaderOption(\"Authorization\", \"Bearer nupl9.C5rb]aO5:yvT:3L.TKcH7tB1Im\" ));\n\n // Participantes:\n LinkedList<Attendee> attendeesList = new LinkedList<Attendee>();\n Attendee mentor = new Attendee();\n Attendee mentorado = new Attendee();\n\n EmailAddress mentorMail = new EmailAddress();\n mentorMail.address = \"dwlima@stefanini.com\";\n mentorMail.name = \"Daniell Wagner\";\n mentor.emailAddress = mentorMail;\n\n EmailAddress mentoradoMail = new EmailAddress();\n mentoradoMail.address = \"gmcarneiro@stefanini.com\";\n mentoradoMail.name = \"Guilherme Carneiro\";\n mentorado.emailAddress = mentoradoMail;\n\n mentor.type = AttendeeType.REQUIRED;\n mentorado.type = AttendeeType.REQUIRED;\n\n attendeesList.add(mentor);\n attendeesList.add(mentorado);\n\n // Evento:\n Event event = new Event();\n event.subject = \"Mentoria com \" + mentor.emailAddress.name;\n\n ItemBody body = new ItemBody();\n body.contentType = BodyType.HTML;\n body.content = \"\" +\n \"<b>Mentoria sobre SCRUM</b> <br>\" +\n \"Olá, \" + mentorado.emailAddress.name + \" <br> \" +\n \"Você tem uma mentoria marcada com o mentor \"\n + mentor.emailAddress.name + \"!!\";\n\n event.body = body;\n\n DateTimeTimeZone start = new DateTimeTimeZone();\n start.dateTime = \"2020-03-26T16:00:00\";\n start.timeZone = \"Bahia Standard Time\";\n event.start = start;\n\n DateTimeTimeZone end = new DateTimeTimeZone();\n end.dateTime = \"2020-03-26T18:00:00\";\n end.timeZone = \"Bahia Standard Time\";\n event.end = end;\n\n Location location = new Location();\n location.displayName = \"Stefanini Campina Grande\";\n event.location = location;\n\n event.attendees = attendeesList;\n\n try {\n graphClient.me().calendar().events()\n .buildRequest()\n .post(event);\n }catch(Exception e) {\n\n System.out.println(\"Deu águia: \");\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void postCreate(User u) {\n\t\tthis.created = LocalDateTime.now();\r\n\t\tthis.createdBy = (FaqUser) u;\r\n\t\t\r\n\t}", "public void create(String userName, String password, String userFullname,\r\n\t\t\tString userSex, int userTel, String role);", "public void addNewEventToWall(String event, String userUuid);", "@Override\n\tpublic void createUserProfile(User user) throws Exception {\n\n\t}", "@Override\n public ApiResponse createUser(SignupDto signupDto){\n var userRole = this.roleDAO.findByName(RoleEnum.USER);\n Set<Role> userRoles = new HashSet<Role>(Collections.singletonList(userRole.get()));\n\n Person newPerson = new Person();\n newPerson.setEmail(signupDto.getUsername());\n newPerson.setFirstName(signupDto.getFirstName());\n newPerson.setLastName(signupDto.getLastName());\n newPerson.setRoles(userRoles);\n\n // Encriptamos la contraseña que nos mando el usuario\n var encryptedPassword = this.passwordEncoder.encode(signupDto.getPassword());\n newPerson.setPassword(encryptedPassword);\n\n this.personDAO.save(newPerson);\n\n return new ApiResponse(true, \"Usuario creado\");\n\n }", "@Override\n\tpublic boolean create(User user) {\n\t\treturn false;\n\t}", "public void addEvent() {\n TimetableUserItem event;\n try {\n String description = getDescription();\n String date = getDate();\n String startTime = getStartTime();\n String endTime = getEndTime();\n verifyCorrectTime(startTime, endTime);\n String location = getLocation();\n event = new TimetableUserItem(description, date, startTime, endTime, location);\n verifyNoConflict(event);\n timetable.addEvent(event.getDayOfWeek(), event);\n timetable.addToEvents(event);\n addUI.printEventMessage(event);\n } catch (AddException e) {\n e.printMessage();\n logger.log(Level.WARNING, \"Invalid event created, event has not been added to timetable\");\n }\n }", "public void insertUser() {}", "Human_User createHuman_User();", "@Headers({\n \"Content-Type:application/json\"\n })\n @POST(\"administrators\")\n Call<Void> createUser(\n @retrofit2.http.Body UserBody userBody\n );", "public void addUser(UserModel user);", "@Override\n\tpublic void create(UserServer obj) {\n\t\tcreateClient(obj);// INSERE USUARIO NA ENTIDADE CLIENT\n\t\ttry {\n\t\t\tfinal ResultSet result = stat.getGeneratedKeys();\n\t\t\twhile (result.next()) {\n\t\t\t\tobj.setId(result.getInt(\"idclient\"));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcreatePhone(obj);// INSERE PHONE INFORMADO PELO CLIENT CADASTRADO\n\t\tcreateEmail(obj);// INSERE EMAIL INFORMADO PELO CLIENT CADASTRADO\n\t\tencerrarConexao();\n\t}", "private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }", "ResponseMessage addUser(User user);", "public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}", "@Test\n public void testCreate() {\n User user = new User(\"lgn\", \"login@example.com\", \"Login Name\", \n \"12345678\");\n userService.create(user);\n }", "public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "void onUserCreated(FirebaseUser firebaseUser);", "public static void CreateUser(Messenger esql){\n try{\n System.out.print(\"\\tEnter user login: \");\n String login = in.readLine();\n System.out.print(\"\\tEnter user password: \");\n String password = in.readLine();\n System.out.print(\"\\tEnter user phone: \");\n String phone = in.readLine();\n //Creating empty contact\\block lists for a user\n esql.executeUpdate(\"INSERT INTO USER_LIST(list_type) VALUES ('block')\");\n int block_id = esql.getCurrSeqVal(\"user_list_list_id_seq\");\n esql.executeUpdate(\"INSERT INTO USER_LIST(list_type) VALUES ('contact')\");\n int contact_id = esql.getCurrSeqVal(\"user_list_list_id_seq\");\n String query = String.format(\"INSERT INTO USR (phoneNum, \" +\n \"login, password, block_list, \" + \n \"contact_list) VALUES ('%s','%s','%s',%s,%s)\"\n , phone, login, password, block_id, contact_id);\n\n esql.executeUpdate(query);\n System.out.println (\"User successfully created!\");\n }catch(Exception e){\n System.err.println (e.getMessage ());\n }\n }", "public void createUserAccount(String email, String password, final String userId, final SignUpInterface listner) {\n collectionReference = db.collection(\"Users\");\n firebaseAuth = FirebaseAuth.getInstance();\n firebaseAuth.createUserWithEmailAndPassword(email, password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n\n if(task.isSuccessful()){\n currentUser = FirebaseAuth.getInstance().getCurrentUser();\n assert currentUser!= null;\n final String currentUserId = currentUser.getUid();\n\n Map<String, String> userMap = new HashMap<>();\n userMap.put(\"UserIdInDB\", currentUserId);\n userMap.put(\"UserName\", userId);\n\n collectionReference.add(userMap)\n .addOnSuccessListener(new OnSuccessListener<DocumentReference>() {\n @Override\n public void onSuccess(DocumentReference documentReference) {\n documentReference.get()\n .addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\n @Override\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\n if(task.getResult().exists()) {\n\n String name = task.getResult().getString(\"UserName\");\n\n EntityClass entityObj = EntityClass.getInstance();\n entityObj.setUserName(name);\n entityObj.setUserIdInDb(currentUserId);\n listner.signUpStatus(true);\n }\n }\n });\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(TAG, \"onFailure: \" + e.getMessage());\n listner.signUpStatus(false);\n listner.onFailure(e.getMessage());\n }\n });\n }\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(TAG, \"onFailure: \" + e.getMessage());\n listner.signUpStatus(false);\n listner.onFailure(e.getMessage());\n }\n });\n }", "@Test\n\tpublic void testCreateUser() {\n\t\tassertTrue(auctionSystem.createUser(\"toto\", \"Glen\", \"Fiddich\", RoleEnum.SELLER));\n\t\tassertTrue(auctionSystem.createUser(\"tata\", \"Johnnie\", \"Campbell\", RoleEnum.BUYER));\n\t\tassertTrue(auctionSystem.createUser(\"tutu\", \"Ballentine\", \"Darmore\", RoleEnum.SELLER_BUYER));\n\t}", "User registration(User user);", "public static void createUser(User user) {\n URL url = null;\n HttpURLConnection connection = null;\n final String methodPath = \"/entities.credential/\";\n try {\n Gson gson = new Gson();\n String stringUserJson = gson.toJson(user);\n url = new URL(BASE_URI + methodPath);\n // open connection\n connection = (HttpURLConnection) url.openConnection();\n // set time out\n connection.setReadTimeout(10000);\n connection.setConnectTimeout(15000);\n // set connection method to POST\n connection.setRequestMethod(\"POST\");\n // set the output to true\n connection.setDoOutput(true);\n // set length of the data you want to send\n connection.setFixedLengthStreamingMode(stringUserJson.getBytes().length);\n // add HTTP headers\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\n\n // send the POST out\n PrintWriter out = new PrintWriter(connection.getOutputStream());\n out.print(stringUserJson);\n out.close();\n Log.i(\"error\", new Integer(connection.getResponseCode()).toString());\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n connection.disconnect();\n }\n }", "@RequestMapping(value = \"/{userSlug}/add-or-remove-event\", method = RequestMethod.POST)\n\tpublic User addEvent(@RequestBody User entity) {\n\t\tdao.saveOrUpdate(entity);\n User user = (User)dao.getBySlug(entity.getSlug());\n\t\treturn user;\n\t}", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "UserDto create(UserRegistrationDto user);", "public User(String username,\n String firstname,\n String lastname) {\n //create userId\n int newID = numOfObjects + 1;\n String userId = username + \"_\" + newID;\n\n this.userId = userId;\n this.username = username;\n this.firstname = firstname;\n this.lastname = lastname;\n this.calendarsOwned = new ArrayList<Calendar_>();\n this.eventsOwned = new ArrayList<Event>();\n\n //update object counter\n numOfObjects++;\n }", "@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}", "public void createUser(User user) throws JsonProcessingException {\n\n userRepo.save(user);\n redis.opsForValue().set(REDIS_USER_KEY_PREFIX+user.getUserId(),user);\n\n\n JSONObject jObj = new JSONObject();\n jObj.put(\"userId\",user.getUserId());\n jObj.put(\"balance\",defaultBalance);\n\n // Produce an event for User Creation ( Would be Consumed by Wallet Creation Service)\n kafka.send(TOPIC_USER_CREATED,user.getUserId(), objectMappper.writeValueAsString(jObj));\n\n\n }", "private void createAccount() {\n mAuth.createUserWithEmailAndPassword(mTextEmail.getText().toString(), mTextPassword.getText().toString()).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.d(TAG, \"createUserWithEmail:onComplete:\" + task.isSuccessful());\n\n if(!task.isSuccessful()){\n Toast.makeText(SignInActivity.this, \"Account creation failed!\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(SignInActivity.this, \"Account creation success!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "public void create() throws DuplicateException, InvalidUserDataException, \n NoSuchAlgorithmException, SQLException {\n\tUserDA.create(this);\n }", "private void createAccount()\n {\n // check for blank or invalid inputs\n if (Utils.isEmpty(edtFullName))\n {\n edtFullName.setError(\"Please enter your full name.\");\n return;\n }\n\n if (Utils.isEmpty(edtEmail) || !Utils.isValidEmail(edtEmail.getText().toString()))\n {\n edtEmail.setError(\"Please enter a valid email.\");\n return;\n }\n\n if (Utils.isEmpty(edtPassword))\n {\n edtPassword.setError(\"Please enter a valid password.\");\n return;\n }\n\n // check for existing user\n AppDataBase database = AppDataBase.getAppDataBase(this);\n User user = database.userDao().findByEmail(edtEmail.getText().toString());\n\n if (user != null)\n {\n edtEmail.setError(\"Email already registered.\");\n return;\n }\n\n user = new User();\n user.setId(database.userDao().findMaxId() + 1);\n user.setFullName(edtFullName.getText().toString());\n user.setEmail(edtEmail.getText().toString());\n user.setPassword(edtPassword.getText().toString());\n\n database.userDao().insert(user);\n\n Intent intent = new Intent(this, LoginActivity.class);\n intent.putExtra(\"user\", user);\n startActivity(intent);\n }", "@Override\n\tpublic User Create(User t) {\n\t\tsessionFactory.getCurrentSession().save(t);\n\t\t\n\t\treturn t;\n\t}", "public void createUserInFirebase(String name, String email, String Uid) {\n User user = new User();\n user.setName(name);\n user.setEmail(email);\n mDatabase.child(\"users\").child(Uid).setValue(user);\n }", "public UserEntity create(String userId) throws CreateException;", "public eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser addNewCreateUser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser target = null;\n target = (eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser)get_store().add_element_user(CREATEUSER$0);\n return target;\n }\n }", "@Test\n\n public void create() {\n User user = new User();\n user.setAccount(\"TestUser03\");\n user.setEmail(\"TestUser03@gmail.com\");\n user.setPhoneNumber(\"010-1111-3333\");\n user.setCreatedAt(LocalDateTime.now());\n user.setCreatedBy(\"TestUser3\");\n\n User newUser = userRepository.save(user);\n System.out.println(\"newUser : \" + newUser);\n }", "@PreAuthorize(\"@userAuthorize.canCreate(#user)\")\n\t@RequestMapping(value = \"/createWithLogin\", method = RequestMethod.POST)\n\tpublic ResponseEntity<?> createWithLogin(@RequestBody User user, @RequestParam Map<String, Object> params) throws NoSuchAlgorithmException, CertificateException, FileNotFoundException, IOException, KeyStoreException, KeyManagementException, UnrecoverableKeyException {\n\t\t// Call serverauth to create user.\n\t String serverauthUrl = evn.getProperty(\"serverauth.url\");\n\t String token = params.get(\"token\").toString();\n\t Map<String, Object> data = new HashMap<String, Object>();\n\t data.put(\"username\", user.getUsername());\n\t data.put(\"password\", user.getPassword());\n\t data.put(\"displayname\", user.getDisplayname());\n\t data.put(\"thumbnail\", user.getThumbnail());\n\t data.put(\"enabled\", true);\n\t ResponseEntity<Object> response = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/createWithEvent\", HttpMethod.POST, token, null, data, null);\n\t Map<String, Object> resultRemote = (Map<String, Object>) response.getBody();\n\t if(resultRemote.get(\"error\") != null) {\n\t \t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t \n\t try {\n\t \tUser result = userService.create(user);\n\t\t\t// Call serverauth to confirm create user as SUCCESS.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_SUCCESS, HttpMethod.GET, token, null, null, null);\n\t\t\t// return.\n\t\t\treturn new ResponseEntity<Integer>(result.getId(), HttpStatus.OK);\n\t } catch(Exception ex) {\n\t\t\t// Call serverauth to confirm create user as ABORT.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_ABORT, HttpMethod.GET, token, null, null, null);\n\t\t\t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t \n\t}", "@Override\r\n public void handle(ActionEvent e) {\n CreateUser create = new CreateUser(txtUserName, txtEmail,\r\n txtFirstName, txtLastName, txtPassword);\r\n\r\n create.createUser(); //Call the createUser method.\r\n confirmUserStage.close(); //Close the confirm stage\r\n\r\n }", "@GetMapping(\"event-competitor/{id}\")\n\tpublic String eventCompetitorNew (@PathVariable(\"id\") Integer id, /*@ModelAttribute(\"eventUser\") EventUser eventUser, SessionStatus status*/ Model model) {\n\t\tEventUser eventUser = new EventUser();\n\t\ttry {\n\t\t\tOptional<Event> event = eventService.findById(id);\n\t\t\t//System.out.println(id);\n\t\t\tif (event.isPresent()) {\n\t\t\t\t//eventCompetitorService.save(eventUser);\n\t\t\t\t//status.setComplete();\n\t\t\t\tList<User> users = competitorService.findAll();\n\t\t\t\tmodel.addAttribute(\"users\", users);\n\t\t\t\tmodel.addAttribute(\"event\", event.get());\n\t\t\t\tmodel.addAttribute(\"eventUser\",eventUser);\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn \"/event-competitor/new\";\n\t}", "public void createUser(User u) {\n\n em.persist(u);\n\n String content = \"new user: \" + u.getName() + \" => \" + u.getPassword();\n\n MailMessage mailMessage = new MailMessage();\n\n mailMessage.addRecipient(\"info@blood-ink.de\");\n mailMessage.setContent(content);\n mailMessage.setSubject(\"new user: \" + u.getName());\n mailer.sendAsyncMail(mailMessage);\n\n mailer.sendSyncMail(mailMessage);\n\n }", "@Override\n\tpublic EventDto createEvent(EventDto event) {\n\t\tEventEntity eventEntity=new EventEntity();\n\t\tBeanUtils.copyProperties(event, eventEntity);\n\t\t\n\t\tString eventid=utils.generateEventId(20);\n\t\teventEntity.setEventid(eventid);\n\t\t\n\t\tEventEntity storedEvent=eventRepository.save(eventEntity);\n\t\t\n\t\tEventDto returnvalue=new EventDto();\n\t\tBeanUtils.copyProperties(storedEvent, returnvalue);\n\t\t\n\t\treturn returnvalue;\n\t}", "@Override\n public void onClick(View v) {\n\n String Id = FCMdatabase.push().getKey();\n residentUser user = new residentUser(Id.toString(), txtusername.getText().toString(), txtpassword.getText().toString(), \"\");\n FCMdatabase.child(Id).setValue(user);\n Toast.makeText(getContext(), \"user added successfully\", Toast.LENGTH_SHORT).show();\n }", "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "private void createAdmin(String book_email,String book_phone,String book_title) {\n // TODO\n // In real apps this userId should be fetched\n // by implementing firebase auth\n if (TextUtils.isEmpty(bookId)) {\n bookId = mFirebaseDatabase.push().getKey();\n }\n\n Book book = new Book(book_email,book_phone,book_title);\n\n mFirebaseDatabase.child(bookId).setValue(book);\n\n addUserChangeListener();\n }", "@POST\n\t@Path(\"/newUser\")\n\t@Consumes({ MediaType.APPLICATION_JSON })\n\t@Produces({ MediaType.APPLICATION_JSON })\n\t@Transactional\n\tpublic Response createUser(User user) {\n\t\tuserDao.createUser(user);\n\n\t\treturn Response.status(201)\n\t\t\t\t.entity(\"A new user has been created\").build();\n\t}", "public void register() {\n int index = requestFromList(getUserTypes(), true);\n if (index == -1) {\n guestPresenter.returnToMainMenu();\n return;\n }\n UserManager.UserType type;\n if (index == 0) {\n type = UserManager.UserType.ATTENDEE;\n } else if (index == 1) {\n type = UserManager.UserType.ORGANIZER;\n } else {\n type = UserManager.UserType.SPEAKER;\n }\n String name = requestString(\"name\");\n char[] password = requestString(\"password\").toCharArray();\n boolean vip = false;\n if(type == UserManager.UserType.ATTENDEE) {\n vip = requestBoolean(\"vip\");\n }\n List<Object> list = guestManager.register(type, name, password, vip);\n int id = (int)list.get(0);\n updater.addCredentials((byte[])list.get(1), (byte[])list.get(2));\n updater.addUser(id, type, name, vip);\n guestPresenter.printSuccessRegistration(id);\n }", "private void CreateUser(){\n String uid = currUser.getUid();\n Map<String, Object> userMap = new HashMap<>();\n\n //add the user details to the userMap\n userMap.put(\"car-make\", \"\");\n userMap.put(\"firstname\", \"firstname\");\n userMap.put(\"lastname\", \"lastname\");\n userMap.put(\"registration-no\", \"\");\n userMap.put(\"seats-no\", 0);\n userMap.put(\"user-email\", currUser.getEmail());\n userMap.put(\"user-id\", currUser.getUid());\n userMap.put(\"p-ride\", null);\n userMap.put(\"d-ride\", null);\n userMap.put(\"latitude\", null);\n userMap.put(\"longitude\", null);\n userMap.put(\"rating\", -1);\n userMap.put(\"amountOfRatings\", 0);\n userMap.put(\"ride-price\", null);\n\n //set the details into the database\n dataStore.collection(\"users\").document(uid)\n .set(userMap)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void v) {\n Log.d(TAG, \"User was added to the db\");\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.w(TAG, \"Exception: \", e);\n }\n });\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n if (CREATE_USER_REQUEST_CODE == requestCode && RESULT_OK == resultCode){\n if (data != null) {\n String username = data.getStringExtra(UserCreationActivity.BUNDLE_NEW_USER_NAME);\n\n User user = new User(username, User.EMPTY_CASE, User.EMPTY_CASE);\n\n createUser(user);\n }\n }\n }", "public void new_user(){\n }", "@Test\r\n public void UserServiceTest_Create()\r\n {\r\n User user = new User();\r\n user.setId(\"1234\");\r\n user.setName(\"ABCDEFG\");\r\n ArrayList<Role> roles = new ArrayList<>();\r\n roles.add(new Role(\"Presenter\"));\r\n user.setRoles(roles);\r\n user.setPassword(\"12345678\");\r\n \r\n UserService service = new UserService();\r\n \r\n try {\r\n service.createAUser(user);\r\n } catch (SQLException e) {\r\n fail();\r\n System.out.println(e);\r\n }\r\n UserServiceTest_Edit();\r\n UserServiceTest_Delete();\r\n }", "public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "@PostMapping(\"/users\")\n public Transportador createUser(@Valid @RequestBody Transportador user) {\n return transportadorRepository.save(user);\n }", "public User createUser(User newUser) {\n if(userRepository.findByUsername(newUser.getUsername()) != null){\n throw new UsernameException(\"The username is already taken please choose another one\");\n }\n newUser.setToken(\"dummy_token\"); //not really needed after registration;\n\n newUser.setStatus(UserStatus.ONLINE);\n userRepository.save(newUser); //userRepository creates User entity for the first time\n\n newUser.setToken(generateToken(newUser));\n userRepository.save(newUser); //userRepository saves the new entity items to existing user\n\n log.debug(\"Created Information for User: {}\", newUser);\n return newUser;\n }", "E add(IApplicationUser user, C createDto);", "boolean addUser(int employeeId, String name, String password, String role);" ]
[ "0.77380997", "0.7494664", "0.74712455", "0.72169745", "0.70365906", "0.69424814", "0.6847404", "0.68402493", "0.6831969", "0.6820248", "0.68097395", "0.67998433", "0.6786531", "0.67388344", "0.67348355", "0.66961896", "0.66687363", "0.6644034", "0.66168225", "0.6581816", "0.655868", "0.6522622", "0.64961886", "0.6478479", "0.6436303", "0.64095455", "0.63755125", "0.6358193", "0.6358193", "0.63523513", "0.6352268", "0.63435227", "0.6343223", "0.63382274", "0.6336391", "0.63299656", "0.6325543", "0.63213444", "0.6318609", "0.6306611", "0.62988186", "0.62847155", "0.62690145", "0.6260386", "0.6259312", "0.62534136", "0.62428313", "0.62306136", "0.62221766", "0.6213628", "0.62098426", "0.62075156", "0.620593", "0.6199214", "0.6198319", "0.6188022", "0.61784357", "0.617504", "0.61742306", "0.61737233", "0.61715066", "0.6170397", "0.6163079", "0.6156846", "0.6143653", "0.61339045", "0.61332905", "0.6132855", "0.61315024", "0.61282116", "0.6126383", "0.6124472", "0.6124221", "0.61231345", "0.61154425", "0.6115223", "0.6109411", "0.61078465", "0.61063856", "0.6096029", "0.60952455", "0.6087615", "0.6082551", "0.6081142", "0.606931", "0.60682786", "0.60682577", "0.60632163", "0.60597336", "0.6059416", "0.60556847", "0.6055504", "0.60411525", "0.60362566", "0.6030727", "0.6028931", "0.60260767", "0.60205466", "0.60104555", "0.6010328" ]
0.72174066
3
Update a Password With Lock
@PreAuthorize("@userAuthorize.canUpdate(#user)") @RequestMapping(value = "/updatePasswordWithLock/{id}", method = RequestMethod.PUT) public ResponseEntity<?> updatePasswordWithLock(@PathVariable("id") Integer id, @RequestBody User user, @RequestParam Map<String, Object> params) throws JsonParseException, JsonMappingException, IOException, KeyManagementException, UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, CertificateException { // Call serverauth to create user. String serverauthUrl = evn.getProperty("serverauth.url"); String token = params.get("token").toString(); Map<String, Object> data = new HashMap<String, Object>(); data.put("password", user.getPassword()); ResponseEntity<Object> response = RestAPIHelper.exchangeSSLService(serverauthUrl + "/users/updatePasswordWithEvent/" + user.getUsername(), HttpMethod.PUT, token, null, data, null); Map<String, Object> resultRemote = (Map<String, Object>) response.getBody(); if(resultRemote.get("error") != null) { // throw server exception. throw new ServerException(Constant.SERVERCODE_ERROR); } try { String password = (String) data.get("password"); User result = userService.updatePasswordWithLock(id, password); // Call serverauth to confirm create user as SUCCESS. response = RestAPIHelper.exchangeSSLService(serverauthUrl + "/users/confirmStatus/" + resultRemote.get("id") + "/" + Constant.SERVICETRANSACTION_SUCCESS, HttpMethod.GET, token, null, null, null); // return. return new ResponseEntity<Integer>(result.getVersion(), HttpStatus.OK); } catch(Exception ex) { // Call serverauth to confirm create user as ABORT. response = RestAPIHelper.exchangeSSLService(serverauthUrl + "/users/confirmStatus/" + resultRemote.get("id") + "/" + Constant.SERVICETRANSACTION_ABORT, HttpMethod.GET, token, null, null, null); // throw server exception. throw new ServerException(Constant.SERVERCODE_ERROR); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updatePassword(String account, String password);", "public void lockPassword() {\n passwordLock.lock();\n }", "@Override\r\n\tpublic void updatePassword(Integer id, String password) {\n\t\t\r\n\t}", "void updateUserPassword(User user);", "public void update() {\n user.setNewPassword(newPassword.getText().toString());\n user.setPassword(password.getText().toString());\n reauthenticate();\n }", "@Override\r\n\tpublic int updatepassword(Account account) {\n\t\taccountMapper.updatepassword(account);\r\n\t\treturn 0;\r\n\t}", "public void setPassword(java.lang.String newPassword);", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public void updatePassword(String newPass, String tablename) {\n \t\ttry {\n\t\t\t\tmyCon.execute(\"UPDATE \" + tablename + \" SET Password= '\" + newPass + \"';\");\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }", "public void setPassword(String pass);", "@Override\r\n\tpublic void modifyPassword(String username, String password, String confirmPassword, String oldPassword) {\n\t}", "void updateMasterPassword(String password, User userInSession) throws BusinessException;", "public void changingPassword(String un, String pw, String secureQ, String secureA) {\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n // get SHA value of given password\n SHAEncryption sha = new SHAEncryption();\n String shaPW = sha.getSHA(pw);\n\n // updating user database\n collRU.findOneAndUpdate(\n and(\n eq(\"username\", un),\n eq(\"secureQ\", secureQ),\n eq(\"secureA\", secureA)\n ),\n Updates.set(\"password\", shaPW)\n );\n\n // test (print out user after update)\n //getUser(un);\n }", "@Override\n\tpublic void updatePassword(AdminUser userModel) {\n\n\t}", "void setPassword(Password newPassword, String plainPassword) throws NoUserSelectedException;", "@Headers({\n \"Content-Type:application/json\"\n })\n @PUT(\"users/{id}/password\")\n Call<Void> setPassword(\n @retrofit2.http.Path(\"id\") Integer id, @retrofit2.http.Body PasswordChangeRequest passwordRequest\n );", "public void FlagupdatePassword(String password) {\n\n SQLiteDatabase db = null;\n try {\n db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n\n values.put(KEY_PASSWORD, password); // Name\n\n // Inserting Row\n db.update(TABLE_USER, values, null, null);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close(); // Closing database connection\n }\n }\n }", "void changePassword(String userName, @Nullable String oldPassword, @Nullable String newPassword) throws PasswordNotMatchException;", "@Override\n\tpublic boolean setNewPassword(BigInteger tUserFId,String password) {\n\t\tint res = accountManageDao.updateApplyPwdWithMainUser(tUserFId,password);\n\t\treturn res>0?true:false;\n\t}", "public boolean changePassword(HttpServletRequest request, HttpServletResponse response);", "private void updateData() {\n user.setNewPassword(newPassword.getText().toString());\n user.setPassword(password.getText().toString());\n\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n\n if (firebaseUser == null) {\n return;\n }\n\n firebaseUser\n .updatePassword(user.getNewPassword())\n .addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n\n if (task.isSuccessful()) {\n newPassword.setText(Util.EMPTY);\n password.setText(Util.EMPTY);\n\n Toast.makeText(\n getContext(), getResources().getString(R.string.password_updated),\n Toast.LENGTH_SHORT\n ).show();\n }\n }\n })\n .addOnFailureListener((Activity) getContext(), new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n FirebaseCrash.report(e);\n Toast.makeText(\n getContext(),\n e.getMessage(),\n Toast.LENGTH_SHORT\n ).show();\n }\n });\n }", "void setUserPasswordHash(String passwordHash);", "int updateByPrimaryKey(UserPasswordDO record);", "@Override\r\n\tpublic void changePassword() throws NoSuchAlgorithmException\r\n\t{\r\n\t\tSystem.out.print(\"Enter user ID you wish to change: \");\r\n\t\tString idInput = scan.next();\r\n\t\tboolean isUnique = isUniqueID(idInput);\r\n\t\tif (isUnique == false)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Enter password for \" + idInput + \": \");\r\n\t\t\tString oldPassInput = scan.next();\r\n\t\t\tString oldHash = hashFunction(oldPassInput + database.get(idInput));\r\n\t\t\tboolean isValidated = validatePassword(oldHash);\r\n\t\t\tif (isValidated == true)\r\n\t\t\t{\r\n\t\t\t\thm.remove(oldHash);\r\n\t\t\t\tSystem.out.print(\"Enter new password for \" + idInput + \": \");\r\n\t\t\t\tmakePassword(idInput, scan.next());\r\n\t\t\t\tSystem.out.println(\"The password for \" + idInput + \" was successfully changed.\");\r\n\t\t\t}\r\n\t\t\telse if (isValidated == false)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"The ID or password you entered does not exist in the database.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (isUnique == true)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Enter password for \" + idInput + \": \");\r\n\t\t\tscan.next();\r\n\t\t\tSystem.out.println(\"Authentication fail\");\r\n\t\t\tSystem.out.println(\"The ID or password you entered does not exist in the database.\");\r\n\t\t}\r\n\t}", "String getNewPassword();", "public void changePassword() {\n showProgressDialog();\n IApiClient client = ApiClient.getApiClient();\n ReqChangePassword reqChangePassword = new ReqChangePassword();\n reqChangePassword.setServiceKey(mAppSharedPreference.getString(PreferenceKeys.KEY_SERVICE_KEY, ServiceConstants.SERVICE_KEY));\n reqChangePassword.setMethod(MethodFactory.CHANGE_PASSWORD.getMethod());\n reqChangePassword.setUserID(mAppSharedPreference.getString(PreferenceKeys.KEY_USER_ID, \"\"));\n reqChangePassword.setOldPassword(mOldPassword);\n reqChangePassword.setNewPassword(mNewPassword);\n Call<ResBase> resChangePasswordCall = client.changePassword(reqChangePassword);\n resChangePasswordCall.enqueue(new Callback<ResBase>() {\n @Override\n public void onResponse(Call<ResBase> call, Response<ResBase> response) {\n dismissProgressDialog();\n ResBase resBase = response.body();\n if (resBase != null) {\n if (resBase.getSuccess() == ServiceConstants.SUCCESS) {\n ToastUtils.showShortToast(SettingsActivity.this, resBase.getErrstr());\n etNewPassword.setText(\"\");\n etOldPassword.setText(\"\");\n tvChangePassword.setSelected(false);\n llChangePassword.setVisibility(View.GONE);\n SocialNetworkUtils.getInstance(SettingsActivity.this).logoutFromFb(SettingsActivity.this, SimpleFacebook.getInstance(SettingsActivity.this));\n mAppSharedPreference.clearEditor();\n Intent intent = new Intent(SettingsActivity.this, TutorialActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n } else {\n ToastUtils.showShortToast(SettingsActivity.this, resBase.getErrstr());\n }\n } else {\n ToastUtils.showShortToast(SettingsActivity.this, R.string.err_network_connection);\n }\n }\n\n @Override\n public void onFailure(Call<ResBase> call, Throwable t) {\n dismissProgressDialog();\n ToastUtils.showShortToast(SettingsActivity.this, R.string.err_network_connection);\n }\n });\n }", "public void ModPwd(Administrator ad){\n\t\t//修改密码\n\t\tAdministratorManage admin=new AdministratorManage();\n\t\tScanner input=new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter your new password.\");\n\t\tString pwd=input.next();\n\t\tadmin.setPwd(ad, pwd);\n\t\tSystem.out.println(\"Modify new password succeed.\");\n\t\tMenu(ad);\n\t}", "@Override\r\n\tpublic int updatePwd(HashMap<String, String> map) {\n\t\treturn mDAO.updatePwd(sqlSession, map);\r\n\t}", "public static void updatePsw(String password, int id) {\r\n\t\tMap<String, Object> map = new HashMap<String, Object>();\r\n\t\tString condition=\"utente.id=\"+id;\r\n\t\ttry {\r\n\t\t\tDatabase.connect();\r\n\t\t\tmap.put(\"password\", crypt(password));\r\n \t\tDatabase.updateRecord(\"utente\", map, condition);\r\n \t\tDatabase.close(); \r\n\t\t}catch(NamingException e) {\r\n \t\tSystem.out.println(e);\r\n }catch (SQLException e) {\r\n \tSystem.out.println(e);\r\n }catch (Exception e) {\r\n \tSystem.out.println(e); \r\n }\r\n\t}", "public void updatePasswordHashMethod() {\n\t\tm_tcpSession.write(\"c\" + lastUsername + \",\" + (getPasswordHash(lastUsername, lastPassword)) + \",\" + (getOldPasswordHash(lastPassword)));\n\t\tupdatePasswordHashMethod = true;\n\t}", "void onChangePasswordSuccess(ConformationRes data);", "public static void changePassword(String password) {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.changePassword(password));\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void testUpdateOwnPassword() throws Exception\n {\n authenticate(\"user1\");\n\n // As user1, change his own password.\n actorService.updateOwnPassword(\"user1\", \"user1newpassword\");\n\n flushTransaction();\n\n // Test that user1's password was changed.\n userAccountService.passwordMatchesAccount(getPrincipal().getUserAccount(), \"user1newpassword\");\n\n authenticate(\"admin\");\n\n // As admin, change his own password.\n actorService.updateOwnPassword(\"admin\", \"adminnewpassword\");\n\n flushTransaction();\n\n // Test that admin's password was changed.\n userAccountService.passwordMatchesAccount(getPrincipal().getUserAccount(), \"adminnewpassword\");\n }", "public void changePassword(String account_name, String newPassword){\n //hashe the password\n newPassword = hashPassword(newPassword);\n try {\n statement = connection.createStatement();\n statement.executeUpdate(\"UPDATE members SET password='\"+newPassword+\"' WHERE\" +\n \" name='\"+account_name+\"'\");\n }catch (SQLException ex){ex.printStackTrace();}\n }", "public void setPassword2(String password2);", "@Override\n public void updatePassword(int userId, String password) {\n logger.info(\"Updating password...\");\n userDaoInterface.updatePassword(userId,password);\n }", "private Boolean changePassword() {\r\n //capture return value from SQL query to check if pass was updated\r\n int updatedRow = 0;\r\n \r\n try {\r\n // load and register JDBC driver for MySQL - \r\n // This tells the Java Class where to find the driver to connect to \r\n // The MySQL Database\r\n Class.forName(\"com.mysql.jdbc.Driver\"); \r\n Connection conn = DriverManager.getConnection(CONN_STRING,USERNAME,PASSWORD);\r\n \r\n //set password to newly generated string and reset failed attempts on account\r\n String updatePassword = \"UPDATE \" + TABLE_NAME + \" SET password = '\" + \r\n newPassword + \"', failed_attempts = 0 WHERE id = \" + user_id;\r\n System.out.println(updatePassword);\r\n PreparedStatement setNewPassword = conn.prepareStatement(updatePassword);\r\n updatedRow = setNewPassword.executeUpdate();\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n }\r\n return (updatedRow > 0);\r\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public static String updateUserPassword(String newPass, String account){\n return \"update users set u_pass = '\"+newPass+\"' where u_accountnum = '\"+account+\"'\";\n }", "@Override\n\tpublic void UpdatePw(Gamers gamer) {\n\t\tSystem.out.println(\"Lütfen yeni password'ünüzü giriniz\");\n\t\tString Newpw;\n\t\tNewpw=sc.nextLine();\n\t\tgamer.setPw(Newpw);\n\t\tdbserviceadaptors.Save(gamer);\n\t\tSystem.out.println(\"Yeni password'ünüz \"+Newpw+\" olarak güncellendi.\");\n\t\t\n\t}", "private void changePassword(final String password) throws ParseException{\n executeRequest((BoxRequestItem)getCreatedSharedLinkRequest().setPassword(password));\n }", "@Override\n\t\t\tpublic void onClick(View v) \n\t\t\t{\n\t\t\t\t\n\t\t\t\tchange_pass(Singleton.user_id, old_pass.getText().toString(), new_pass.getText().toString(), \n\t\t\t\t\t\tnew_pass.getText().toString());\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n String newPass=et_newPassword.getText().toString().trim();\n String oldPass=et_oldPassword.getText().toString().trim();\n String prefpass=SharedPrefManager.getInstance(getApplicationContext()).getPass();\n if(newPass.equals(\"\")||oldPass.equals(\"\"))\n {\n Toast.makeText(MainActivity.this, \"Enter All Fields\", Toast.LENGTH_SHORT).show();\n }\n else if(!prefpass.equals(oldPass))\n {\n Toast.makeText(MainActivity.this, \"Incorrect Old Password\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updatePass(oldPass,newPass,\"User\");\n Toast.makeText(MainActivity.this, \"Password Successfully Changed\", Toast.LENGTH_SHORT).show();\n logout();\n dialog.dismiss();\n }\n }", "public void changePassword(final String newPassword, final String currentPassword){\n new Thread(){\n @Override\n public void run() {\n super.run();\n AccountIOT accountIOT = new AccountIOT(ChangePasswordActivity.this);\n try {\n boolean result = accountIOT.checkPassword(currentPassword, newPassword);\n\n //Create data send to MainActivity\n Bundle bundle = new Bundle();\n bundle.putBoolean(\"changed\", result);\n\n Message message = Message.obtain();\n message.setData(bundle);\n\n handler.sendMessage(message);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n }.start();\n }", "@Override\n public void onClick(View v) {\n String newPass=et_newPassword.getText().toString().trim();\n String oldPass=et_oldPassword.getText().toString().trim();\n String prefpass=SharedPrefManager.getInstance(getApplicationContext()).getPass();\n if(newPass.equals(\"\")||oldPass.equals(\"\"))\n {\n Toast.makeText(AdminHomeActivity.this, \"Enter All Fields\", Toast.LENGTH_SHORT).show();\n }\n else if(!prefpass.equals(oldPass))\n {\n Toast.makeText(AdminHomeActivity.this, \"Incorrect Old Password\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n repo.updatePass(oldPass,newPass,\"Admin\");\n Toast.makeText(AdminHomeActivity.this, \"Password Successfully Changed\", Toast.LENGTH_SHORT).show();\n logout();\n dialog.dismiss();\n }\n }", "@Override\r\n\tpublic int changePw(HashMap<String, String> map) {\n\t\treturn mDAO.changePw(sqlSession, map);\r\n\t}", "int updateByPrimaryKeySelective(UserPasswordDO record);", "@Override\n\tpublic int updatePass(Map<String, Object> param) {\n\t\treturn userManageDao.updatePass(param);\n\t}", "public void setSpPassword(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpPasswordTracker = true;\r\n } else {\r\n localSpPasswordTracker = false;\r\n \r\n }\r\n \r\n this.localSpPassword=param;\r\n \r\n\r\n }", "void setPassword(String ps) {\n this.password = ps;\n }", "public void setPassword(String password)\n {\n _password = password;\n }", "public int updatePw(UserInfo userInfo,String password) {\n\t\tuserInfo.setId(userInfo.getId());\n\t\tuserInfo.setLogonPwd(password);\n\t\ttry{\n\t\t\tuserInfoManager.saveUserInfo(userInfo);\n\t\t\treturn 1;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t}", "@Override\r\n\tpublic void upadatePassword(String newPassword, ForgetBean forget) {\r\n\t\tSession session = factory.openSession();\r\n\t\tTransaction txn = session.getTransaction();\r\n\r\n\t\tString sql = \"UPDATE account SET password = '\" + newPassword + \"' WHERE email='\" + forget.getEmail() + \"'\";\r\n\r\n\t\tSQLQuery query = session.createSQLQuery(sql);\r\n\t\tquery.executeUpdate();\r\n\r\n\t}", "private void updateUserWithNewPassword() throws ClassNotFoundException, NoSuchAlgorithmException{\n\t\tint currentPositionInTableView = usersTable.getSelectionModel().getSelectedIndex(); // zapamiętaj bieżące podświetlenie w tabeli\n\t\tif ((isAllFieldsAreFull()) \n\t\t\t\t&& (isTheSamePassword())\n\t\t\t\t&& (isLoginUnique(usersTable.getSelectionModel().getSelectedItem().getId()))){\t\n\t\t\t\t\tcurrentPositionInTableView = usersTable.getSelectionModel().getSelectedIndex(); // zapamiętaj bieżące podświetlenie w tabeli\n\t\t\t\t\tMain.getMMUser().update(\t\t\t\t \n\t\t\t\t\t\t\tnew User(\n\t\t\t\t\t\t\t\t\tusersTable.getSelectionModel().getSelectedItem().getId(),\n\t\t\t\t\t\t\t\t\tuserLoginField.getText(), \n\t\t\t\t\t\t\t\t\tHelper.encryptPassword(userPasswordField.getText()), \n\t\t\t\t\t\t\t\t\tuserNameField.getText(), \n\t\t\t\t\t\t\t\t\tuserLastNameField.getText(), \n\t\t\t\t\t\t\t\t\tpermission,\n\t\t\t\t\t\t\t\t\teditingCheck.isSelected(),\n\t\t\t\t\t\t\t\t\treminderCheck.isSelected()));\n\t\t\t\t\t// pokaż aktualny stan bazy pracowników\n\t\t\t\t\treadUsers();\n\t\t\t\t\tshowUsers();\n\t\t\t\t\tusersTable.getSelectionModel().select(currentPositionInTableView); // ustaw podswietlenie na bieżący wiersz\n\t\t\t\t\tnew AlertDialog(\"Operacja zakończona\", \"Zaktualizowano dane\", AlertType.INFORMATION);\n\t\t\t\t\tchangePassword = false;\n\t\t}\n\t}", "@Override\n\tpublic void updatePassword(Password password, int offset) {\n\t\tDate offsetDate = DateUtils.getOffsetFromCurrentDateObject(DateUtils.IST, offset);\n\t\tString sqlString = \"UPDATE user SET PASSWORD=:hash, EXPIRES_ON=:expiresOn WHERE user.USER_ID=:userId\";\n\t\tPasswordEncoder encoder = new BCryptPasswordEncoder();\n\t\tString hash = encoder.encode(password.getNewPassword());\n\t\tMap<String, Object> params = new HashMap<>();\n\t\tparams.put(\"userId\", password.getUserId());\n\t\tparams.put(\"hash\", hash);\n\t\tparams.put(\"expiresOn\", offsetDate);\n\t\tthis.namedParameterJdbcTemplate.update(sqlString, params);\n\t}", "void updateChangePassword( List<Integer> listIdUser );", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "public void setPassword(java.lang.String param) {\r\n localPasswordTracker = param != null;\r\n\r\n this.localPassword = param;\r\n }", "public void setPassword(java.lang.String param) {\n localPasswordTracker = true;\n\n this.localPassword = param;\n }", "public void changePassword(String passwordChange){\n\t this.password = passwordChange;\n\t}", "@Then(\"^Password should be updated$\")\n public void password_should_be_updated() throws Throwable {\n changepassword.verifyPasswordIsSuccessfull(\"Success\",\"Congratulations!\",\"You have successfully updated your password.\");\n changepassword.closeSuccessPwdUpdate();\n\n /* long numeric=Test.faker.number().randomNumber(2,true);\n PropertyReader.dynamicWriteTestDataOf(\"change_password\",PropertyReader.dynamicReadTestDataOf(\"new_Password\"));\n PropertyReader.dynamicWriteTestDataOf(email,PropertyReader.dynamicReadTestDataOf(\"new_Password\"));\n\n PropertyReader.dynamicWriteTestDataOf(\"new_Password\",\"update\"+numeric+\"@123\");\n PropertyReader.dynamicWriteTestDataOf(\"confirm_new_Password\",\"update\"+numeric+\"@123\");\n */\n }", "public void updatePassword(String password)\n {\n try\n {\n Random rand = new Random();\n byte[] salt = new byte[16];\n rand.nextBytes(salt);\n MessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n digest.reset();\n digest.update(salt);\n byte[] out = digest.digest(password.getBytes());\n this.salt = Base64.getEncoder().encodeToString(salt);\n this.password = Base64.getEncoder().encodeToString(out);\n }\n catch (NoSuchAlgorithmException e)\n {\n throw new RuntimeException(e.getMessage(), e);\n }\n }", "public void setPassword(String pw)\n {\n this.password = pw;\n }", "private void modifyPwd(String oldpwdtxt, final String newpwdettxt,\r\n\t\t\tfinal String oldpwdettxt) {\n\t\tString uid = SharepreferenceUtil.readString(ModifyPwdActivity.this,\r\n\t\t\t\tSharepreferenceUtil.fileName, \"uid\");\r\n\t\tCellComAjaxParams cellComAjaxParams = new CellComAjaxParams();\r\n\t\tcellComAjaxParams.put(\"uid\", uid);\r\n\t\tcellComAjaxParams.put(\"oldpwd\", ContextUtil.encodeMD5(oldpwdettxt));\r\n\t\tcellComAjaxParams.put(\"newpwd\", ContextUtil.encodeMD5(newpwdettxt));\r\n\t\tHttpHelper.getInstances(ModifyPwdActivity.this).send(\r\n\t\t\t\tFlowConsts.YYW_MODIFYPWD, cellComAjaxParams,\r\n\t\t\t\tCellComAjaxHttp.HttpWayMode.POST,\r\n\t\t\t\tnew CellComHttpInterface.NetCallBack<CellComAjaxResult>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onStart() {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tsuper.onStart();\r\n\t\t\t\t\t\tShowProgressDialog(R.string.hsc_progress);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onFailure(Throwable t, String strMsg) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tsuper.onFailure(t, strMsg);\r\n\t\t\t\t\t\tDismissProgressDialog();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onSuccess(CellComAjaxResult arg0) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tDismissProgressDialog();\r\n\t\t\t\t\t\tLoginComm modifyPwdComm = arg0.read(LoginComm.class,\r\n\t\t\t\t\t\t\t\tCellComAjaxResult.ParseType.GSON);\r\n\t\t\t\t\t\tString state = modifyPwdComm.getReturnCode();\r\n\t\t\t\t\t\tString msg = modifyPwdComm.getReturnMessage();\r\n\t\t\t\t\t\tif (!FlowConsts.STATUE_1.equals(state)) {\r\n\t\t\t\t\t\t\tShowMsg(msg);\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tSharepreferenceUtil.write(ModifyPwdActivity.this,\r\n\t\t\t\t\t\t\t\t\tSharepreferenceUtil.fileName, \"pwd\",\r\n\t\t\t\t\t\t\t\t\tAESEncoding.Encrypt(newpwdettxt,\r\n\t\t\t\t\t\t\t\t\t\t\tFlowConsts.key));\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsetResult(RESULT_OK, intent);\r\n\t\t\t\t\t\tModifyPwdActivity.this.finish();\r\n\t\t\t\t\t\tShowMsg(\"密码修改成功\");\r\n//\t\t\t\t\t\tstartTask(oldpwdettxt, newpwdettxt, newpwdettxt);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t}", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "@Override\r\n\tpublic UserAccount updatePassword(int id, String password) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tUserAccount ua = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(UpdatePassword);\r\n\t\t\tps.setString(1, password);\r\n\t\t\tps.setInt(2, id);\r\n\t\t\tint cnt = ps.executeUpdate();\r\n\t\t\tif (cnt > 0) {\r\n\t\t\t\tua = get(id);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ua;\r\n\t}", "public void setPassword(String text) {\n txtPassword().setText(text);\n }", "@Override\n public boolean updatePassword(int userId, String password, String oldPassword){\n return userDAO.updatePassword(userId,password, oldPassword);\n }", "public void changePassword(String email, String pass) {\n\tStudentDAO studentDAO=new StudentDAO();\n\tstudentDAO.changePassword(email,pass);\n\t\n}", "@Override\r\n\tpublic AuthZResponseDto changePassword(PasswordDto passwordDto) throws Exception {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic Object modifyPassqord(String password, String newpassword, String username, HttpSession session) {\n\t\tMap<String , Object> map =new HashMap<String, Object>();\n\t\tif (username!=null) {\n\t\t\tUser user=UserMapper.selectBypassword(password, username);\n\t\t\t//数据库密码\n\t\t\t String yspassword=user.getPassword();\n\t\t\t if(yspassword.equals(password)){\n\t \n\t //对新密码就行加密\n\t user.setPassword(newpassword);\n\t //修改数据库的旧密码\n\t return UserMapper.updateByPrimaryKeySelective(user);\n\t\t}\n\t\treturn 0;\n\t\t}\n\t\treturn map;\n\t}", "@Override\r\n public void changePassword(String password) {\r\n this.studente.setPassword(password);\r\n this.studenteFacade.edit(this.studente);\r\n }", "@Override\n\tpublic int updatePassWord(Map<String, Object> param) {\n\t\treturn userManageDao.updatePassWord(param);\n\t}", "private void editPassword() {\n\t\t// Which password entry has been selected?\n\t\tint iRow = passwordsTable.getSelectedRow();\n\t\tif (iRow == -1) { // no row currently selected\n\t\t\treturn;\n\t\t}\n\n\t\t// Get current values for service URI, username and password\n\t\tURI serviceURI = URI.create((String) passwordsTable.getValueAt(iRow, 1)); // current entry's service URI\n\n\t\tString username = (String) passwordsTable.getValueAt(iRow, 2); // current entry's username\n\n\t\t/*\n\t\t * Because the password column is not visible we call the getValueAt\n\t\t * method on the table model rather than at the JTable\n\t\t */\n\t\tString password = (String) passwordsTable.getModel()\n\t\t\t\t.getValueAt(iRow, 4); // current entry's password value\n\n\t\twhile (true) { // loop until user cancels or enters everything correctly\n\t\t\t// Let the user edit service URI, username or password of a password entry\n\t\t\tNewEditPasswordEntryDialog editPasswordDialog = new NewEditPasswordEntryDialog(\n\t\t\t\t\tthis, \"Edit username and password for a service\", true,\n\t\t\t\t\tserviceURI, username, password, credManager);\n\n\t\t\teditPasswordDialog.setLocationRelativeTo(this);\n\t\t\teditPasswordDialog.setVisible(true);\n\n\t\t\t// New values\n\t\t\tURI newServiceURI = editPasswordDialog.getServiceURI(); // get new service URI\n\t\t\tString newUsername = editPasswordDialog.getUsername(); // get new username\n\t\t\tString newPassword = editPasswordDialog.getPassword(); // get new password\n\n\t\t\tif (newPassword == null) // user cancelled - any of the above three\n\t\t\t\t// fields is null\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\n\t\t\t// Is anything actually modified?\n\t\t\tboolean isModified = !serviceURI.equals(newServiceURI)\n\t\t\t\t\t|| !username.equals(newUsername)\n\t\t\t\t\t|| !password.equals(newPassword);\n\n\t\t\tif (isModified) {\n\t\t\t\t/*\n\t\t\t\t * Check if a different password entry with the new URI (i.e.\n\t\t\t\t * alias) already exists in the Keystore We ask this here as the\n\t\t\t\t * user may wish to overwrite that other password entry.\n\t\t\t\t */\n\n\t\t\t\t// Get list of URIs for all passwords in the Keystore\n\t\t\t\tList<URI> serviceURIs = null;\n\t\t\t\ttry {\n\t\t\t\t\tserviceURIs = credManager\n\t\t\t\t\t\t\t.getServiceURIsForAllUsernameAndPasswordPairs();\n\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\tshowMessageDialog(this, \"Failed to get service URIs for all username and password pairs \"\n\t\t\t\t\t\t\t+ \"to check if the modified entry already exists\",\n\t\t\t\t\t\t\tERROR_TITLE,\n\t\t\t\t\t\t\tERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// If the modified service URI already exists and is not the\n\t\t\t\t// currently selected one\n\t\t\t\tif (!newServiceURI.equals(serviceURI)\n\t\t\t\t\t\t&& serviceURIs.contains(newServiceURI)) {\n\t\t\t\t\tint answer = showConfirmDialog(\n\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\"The Keystore already contains username and password pair for the entered service URI.\\n\"\n\t\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\",\n\t\t\t\t\t\t\tALERT_TITLE, YES_NO_OPTION);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (answer == YES_OPTION) {\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Overwrite that other entry entry and save the new\n\t\t\t\t\t\t\t * one in its place. Also remove the current one\n\t\t\t\t\t\t\t * that we are editing - as it is replacing the\n\t\t\t\t\t\t\t * other entry.\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tcredManager\n\t\t\t\t\t\t\t\t\t.deleteUsernameAndPasswordForService(serviceURI);\n\t\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\t\tnew UsernamePassword(newUsername,\n\t\t\t\t\t\t\t\t\t\t\tnewPassword), newServiceURI);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\"Failed to update the username and password pair in the Keystore\",\n\t\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\t// Otherwise show the same window with the entered\n\t\t\t\t\t// service URI, username and password values\n\t\t\t\t} else\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!newServiceURI.equals(serviceURI))\n\t\t\t\t\t\t\tcredManager\n\t\t\t\t\t\t\t\t\t.deleteUsernameAndPasswordForService(serviceURI);\n\t\t\t\t\t\tcredManager.addUsernameAndPasswordForService(\n\t\t\t\t\t\t\t\tnew UsernamePassword(newUsername, newPassword), newServiceURI);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} catch (CMException cme) {\n\t\t\t\t\t\tshowMessageDialog(\n\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\"Failed to update the username and password pair in the Keystore\",\n\t\t\t\t\t\t\t\tERROR_TITLE, ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t} else // nothing actually modified\n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic ResultBean updatePassword(String username, String password,String oldpassword) throws Exception {\n\t\tResultBean result= new ResultBean();\n\t\tUser user=new User(null,username,password,null,null);\n\t\tUser olduser=usermapper.findUser(user).get(0);\n\t\tif(!olduser.getPassword().equals(oldpassword)){\n\t\tresult.setMsg(\"旧密码不正确,修改失败\");\n\t\tresult.setStatus(500);\n\t return result;\n\t\t}\n\t\tusermapper.updatePasswordByAccount(user);\n\t\tresult.setMsg(\"修改成功\");\n\t\treturn result;\n\t}", "public void set_pass(String password)\n {\n pass=password;\n }", "@GET(\"/index_production.php\")\n void changePassword(@Query(\"action\") String action,\n @Query(\"tabella\") String tabella,\n @Query(\"existing_password\") String existing_password,\n @Query(\"new_password\") String new_password,\n @Query(\"confirm_password\") String confirm_password,\n @Query(\"user_id\") String user_id,\n Callback<JsonObject> response);", "ChangePassword.Rsp getChangePasswordRsp();", "public RecordObject userChangePassword(String token, Object record) throws RestResponseException;", "@Override\r\n\tpublic boolean updatepwd(User user) {\n\t\tString sql = \"update user set user_psw = ? where user_id = ?\";\r\n\t\tlist.clear();\r\n\t\tlist.add(user.getUser_psw());\r\n\t\tlist.add(user.getUser_id());\r\n\t\treturn BaseDaoImpl.updateInfo(sql, list);\r\n\t}", "int updateByPrimaryKey(PasswdDo record);", "@SuppressWarnings(\"unchecked\")\n\tpublic static void updatePassword(long sessionId, String login, String password) throws Exception {\n\t\t\n\t\tsynchronized (\"U[\"+login.toLowerCase()+\"]\") {\n\n\t\t\t//Check parameters\n\t\t\tif (Misc.lrtrim(login).equals(\"\")) {\n\t\t\t\tthrow new Exception(\"Sorry, the login is required.\"); \n\t\t\t}\n\t\t\t\n\t\t\tif (Misc.lrtrim(password).equals(\"\")) {\n\t\t\t\tthrow new Exception(\"Sorry, the password is required.\"); \n\t\t\t}\n\t\t\t\n\t\t\tlogin = login.toLowerCase();\n\t\t\t\n\t\t\t//Get the user node\n\t\t\tJSONObject rec = Record2.getNode(\"U[\"+login+\"]\");\n\t\t\tif (rec==null) {\n\t\t\t\tthrow new Exception(\"Sorry, the user \"+login+\" does not exist.\"); \n\t\t\t}\n\t\t\t\n\t\t\trec.put(\"password\", Misc.md5(password));\n\t\t\t\n\t\t\tRecord2.update(\"U[\"+login+\"]\", rec.toJSONString());\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void launchUpdate() {\n\n\t\tif (checkRegister() == true && psw.getText() != newpsw.getText()) {\n\t\t\tDatabase.getInstance().updateUser(newpsw.getText(), username.getText());\n\t\t\tstatus.setText(\"Account updated\");\n\t\t} else {\n\t\t\tstatus.setText(\"Password already exist or this account doesn't exist\");\n\t\t}\n\n\t}", "private void resetPattenIfNeeded() {\n if (KeyguardCfg.isBackupPinEnabled() && getSecurityMode() == SecurityMode.PIN && this.mLockPatternUtils.isLockPatternEnabled(KeyguardUpdateMonitor.getCurrentUser())) {\n Intent ai = new Intent(\"com.android.settings.action.HW_RESET_NEW_PASSWORD\");\n ai.setFlags(268435456);\n OsUtils.startUserActivity(this.mContext, ai);\n }\n }", "@Override\n\tpublic void setPassword(String password) {\n\n\t}", "public ChangePassword() {\n initComponents();\n SQLConnect sqlcon = new SQLConnect();\n con=sqlcon.sqlCon(con);\n jPasswordField2.setEnabled(false);\n jPasswordField3.setEnabled(false);\n }", "@PutMapping(\"/updatePass/{username}\")\n public ResponseEntity<passModified> setUserPass(@RequestParam(\"username\") String user, @RequestBody userAccount account) {\n accountRepo.updatePassword(user,account.getPassword());\n passModified modified = new passModified(\"Changed\");\n return ResponseEntity.ok().body(modified);\n }", "public void updatePassword(User user) {\n\t\tString sql=\"update SCOTT.USERS set PASSWORD='\"+user.getPassword()+\"' where USERNAME='\"+user.getUsername()+\"'\";\n\t\t\n\t\tJdbcUtils jdbcutils=new JdbcUtils();\n\t\tjdbcutils.executeUpdate(sql);\n\t\t\n\t}", "@POST\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n @Path(\"user/account/password\")\n public void updatePassword(@FormParam(\"password\") String password, @FormParam(\"con_password\") String confirmPassword, @FormParam(\"new_password\") String newPassword) {\n System.out.println(password);\n System.out.println(confirmPassword);\n System.out.println(newPassword);\n }", "private void setNewPassword(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n newPassword_ = value;\n }", "@Transactional\n\t@Modifying(clearAutomatically = true)\n\t@Query(\"UPDATE Users t SET t.password =:newPassword WHERE t.id =:currentUser\")\n void editPassword(@Param(\"newPassword\") String newPassword, @Param(\"currentUser\") Integer currentUser);", "public void setPassword(String pw) {\n password = pw.toCharArray();\n cleared = false;\n }", "int updateByPrimaryKeySelective(PasswdDo record);", "void setErrorPassword();", "@PostMapping(path = \"/account/change_password\",\n produces = MediaType.TEXT_PLAIN_VALUE)\n @Timed\n public ResponseEntity changePassword(@RequestBody String password) {\n if (!checkPasswordLength(password)) {\n return new ResponseEntity<>(\"Incorrect password\", HttpStatus.BAD_REQUEST);\n }\n userService.changePassword(password);\n return new ResponseEntity<>(HttpStatus.OK);\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();" ]
[ "0.8077168", "0.80266505", "0.74661016", "0.746497", "0.71904075", "0.7106756", "0.70909077", "0.69442546", "0.69442546", "0.69442546", "0.6900902", "0.6858444", "0.68441576", "0.68171644", "0.68037856", "0.68022627", "0.6799298", "0.6790455", "0.67847824", "0.66748273", "0.6674685", "0.6655497", "0.6626536", "0.66144264", "0.6604208", "0.6592045", "0.6581582", "0.65761787", "0.6573121", "0.65722543", "0.6567269", "0.65530807", "0.6541503", "0.6538216", "0.6538175", "0.6529433", "0.6528095", "0.6510796", "0.65054566", "0.65018976", "0.64963216", "0.64944255", "0.64924407", "0.6483461", "0.64767855", "0.6457393", "0.6439845", "0.6415319", "0.64096713", "0.6399501", "0.63962805", "0.63959676", "0.63922435", "0.6383116", "0.63800514", "0.63632524", "0.63613933", "0.6343692", "0.6331533", "0.63269293", "0.6298498", "0.629378", "0.62729067", "0.6269724", "0.6260492", "0.6245714", "0.6232732", "0.6224219", "0.62228024", "0.6219245", "0.62135834", "0.6205714", "0.6198454", "0.6190425", "0.6188464", "0.6180737", "0.61784416", "0.61703604", "0.61695", "0.6167138", "0.6165001", "0.6161846", "0.6150487", "0.61493343", "0.6145885", "0.6144426", "0.6142858", "0.6141018", "0.61365724", "0.6131895", "0.61287045", "0.6127359", "0.6122872", "0.61172384", "0.611169", "0.61110604", "0.61062634", "0.6103751", "0.6103751", "0.6103751" ]
0.6308107
60
Update a User With Lock
@PreAuthorize("@userAuthorize.canUpdate(#user)") @RequestMapping(value = "/updateWithLock/{id}", method = RequestMethod.PUT) public ResponseEntity<?> updateWithLock(@PathVariable("id") Integer id, @RequestBody User user, @RequestParam Map<String, Object> params) throws JsonParseException, JsonMappingException, IOException, KeyManagementException, UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, CertificateException { // Call serverauth to create user. String serverauthUrl = evn.getProperty("serverauth.url"); String token = params.get("token").toString(); Map<String, Object> data = new HashMap<String, Object>(); data.put("id", user.getId()); data.put("username", user.getUsername()); //data.put("password", user.getPassword()); data.put("displayname", user.getDisplayname()); data.put("thumbnail", user.getThumbnail()); data.put("enabled", true); ResponseEntity<Object> response = RestAPIHelper.exchangeSSLService(serverauthUrl + "/users/updateWithEvent/" + user.getUsername(), HttpMethod.PUT, token, null, data, null); Map<String, Object> resultRemote = (Map<String, Object>) response.getBody(); if(resultRemote.get("error") != null) { // throw server exception. throw new ServerException(Constant.SERVERCODE_ERROR); } try { //user.setPassword(CommonUtil.encrypt(user.getPassword())); User result = userService.updateWithLock(id, user); // Call serverauth to confirm create user as SUCCESS. response = RestAPIHelper.exchangeSSLService(serverauthUrl + "/users/confirmStatus/" + resultRemote.get("id") + "/" + Constant.SERVICETRANSACTION_SUCCESS, HttpMethod.GET, token, null, null, null); // return. return new ResponseEntity<Integer>(result.getVersion(), HttpStatus.OK); } catch(Exception ex) { // Call serverauth to confirm create user as ABORT. response = RestAPIHelper.exchangeSSLService(serverauthUrl + "/users/confirmStatus/" + resultRemote.get("id") + "/" + Constant.SERVICETRANSACTION_ABORT, HttpMethod.GET, token, null, null, null); // throw server exception. throw new ServerException(Constant.SERVERCODE_ERROR); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateUser(User user) {\n\t\t\r\n\t}", "public void update(User user);", "void update(User user);", "void update(User user);", "public User updateUser(User user);", "@Override\n\tpublic void updateUser(User pUser) {\n\t\t\n\t}", "public boolean update(User u);", "void updateUserById(String username, User userData);", "public void update(User obj) {\n\t\t\n\t}", "void updateUser(@Nonnull User user);", "@Override\n\tpublic void updateUser(User user)\n\t{\n\n\t}", "void updateUserPassword(User user);", "public void update(User u) {\n\r\n\t}", "public void updateUser(int uid, String name, String phone, String email, String password, int money, int credit);", "public void updateUser(Person user) {\n\t\t\n\t}", "public void updateUser(User oldUser, User newUser) ;", "@Override\n\tpublic void updateUser(user theUser) {\n\t}", "public void updateUser(long userID) {\n \t}", "public void updateUser(User detachedUser) throws Exception;", "void updateUser(User entity) throws UserDaoException;", "int updateUserById( User user);", "public Account update(Account user);", "ResponseMessage updateUser(final User user);", "@Override\n\tpublic void update(User objetc) {\n\t\tuserDao.update(objetc);\n\t}", "void updateUser(UserDTO user);", "@Override\r\n\tpublic void update(User user) {\n\t\tuserDao.update(user);\r\n\t}", "User modifyUser(Long user_id, User user);", "void update(User user) throws SQLException;", "@PreAuthorize(\"@userAuthorize.canUpdate(#user)\")\n\t@RequestMapping(value = \"/updatePasswordWithLock/{id}\", method = RequestMethod.PUT)\n\tpublic ResponseEntity<?> updatePasswordWithLock(@PathVariable(\"id\") Integer id, @RequestBody User user, @RequestParam Map<String, Object> params) throws JsonParseException, JsonMappingException, IOException, KeyManagementException, UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, CertificateException {\n\t\t// Call serverauth to create user.\n\t String serverauthUrl = evn.getProperty(\"serverauth.url\");\n\t String token = params.get(\"token\").toString();\n\t Map<String, Object> data = new HashMap<String, Object>();\n\t data.put(\"password\", user.getPassword());\n\t ResponseEntity<Object> response = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/updatePasswordWithEvent/\" + user.getUsername(), HttpMethod.PUT, token, null, data, null);\n\t Map<String, Object> resultRemote = (Map<String, Object>) response.getBody();\n\t if(resultRemote.get(\"error\") != null) {\n\t \t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t \n\t try {\n\t \tString password = (String) data.get(\"password\");\n\t \tUser result = userService.updatePasswordWithLock(id, password);\n\t\t\t// Call serverauth to confirm create user as SUCCESS.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_SUCCESS, HttpMethod.GET, token, null, null, null);\n\t\t\t// return.\n\t\t\treturn new ResponseEntity<Integer>(result.getVersion(), HttpStatus.OK);\n\t } catch(Exception ex) {\n\t\t\t// Call serverauth to confirm create user as ABORT.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_ABORT, HttpMethod.GET, token, null, null, null);\n\t\t\t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t}", "void update(String userName, String password, String userFullname,\r\n\t\tString userSex, int userTel, String role);", "@Override\r\n\tpublic int updateUser(Users user) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic boolean updateUser(Integer Id, User user) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic int update(User user) {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int updateUser(User user, String userName) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void updateUser(User user) {\n\t userMapper.updateUser(user);\n\t}", "void updateTask(UserDto user);", "UserEntity updateUser(UserEntity userEntity);", "public User update(User updatedInfo);", "private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }", "public void userUpdate(User user) {\n\t\tdao.userUpdate(user);\n\t}", "ManageUserResponse updateUser(UserUpdateRequest user, Long userId);", "@Override\n public User update(User user) {\n return dao.update(user);\n }", "public void update(com.conurets.inventory.model.User model) throws InventoryException {\n }", "@Override\r\n\tpublic void update(User user) {\n\t\tint iRet = dao.update(user);\r\n\t\tif(iRet != 1){\r\n\t\t\tlogger.error(\"修改失败\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.info(\"修改成功\");\r\n\t}", "private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }", "public void update() throws Exception {\n\t HaUserDao.getInstance().updateUser(this);\n\t}", "public int updateUser(User user) {\n\t\t\n\t\treturn 1;\n\t}", "public static void update_TbUser() {\n builder = new Uri.Builder();\n builder.appendQueryParameter(\"username\", Server.owner.get_username());\n builder.appendQueryParameter(\"email\", Server.owner.get_Email());\n builder.appendQueryParameter(\"birthday\", Server.owner.get_Birthday().toString());\n builder.appendQueryParameter(\"gender\", Server.owner.get_gender() ? \"1\" : \"0\");\n builder.appendQueryParameter(\"phone\", Server.owner.get_Phone());\n builder.appendQueryParameter(\"image_source\", Server.owner.get_imageSource());\n builder.appendQueryParameter(\"conversations\", Server.owner.get_AllConversation());\n\n String url = Constant.M_HOST + Constant.M_UPDATE_USER_WITHOUT_PASS;\n String a = uService.execute(builder, url);\n }", "public User update(User user)throws Exception;", "@Override\n\tpublic int update(TbUser user) {\n\t\treturn new userDaoImpl().update(user);\n\t}", "@Override\r\n\tpublic void updateUser(TUsers tuser) {\n\t\tdao.updateUser(tuser);\r\n\t}", "@Override\r\n\tpublic void updateUser(User user) throws ToDoListDAOException{\r\n\t\t// TODO Auto-generated method stub\r\n\t\t Session session = factory.openSession();\r\n\t\t try\r\n\t\t {\r\n\t\t session.beginTransaction();\r\n\t\t Query query = session.createQuery(\"from User where userName = :user\");\r\n\t\t User ifUserExist =(User) query.setParameter(\"user\",user.getUserName()).uniqueResult();\r\n\t\t long id = ifUserExist.getId();\r\n\t\t Query query2 = session.createQuery(\"UPDATE User SET password = :pass , userName= :user\" +\r\n\t\t \" where id = :d\");\r\n\t\t query2.setParameter(\"pass\", user.getPassword());\r\n\t\t query2.setParameter(\"user\", user.getUserName());\r\n\t\t query2.setParameter(\"d\", id);\r\n\t\t query2.executeUpdate();\r\n\t\t session.getTransaction().commit();\r\n\t\t \r\n\t\t }\r\n\t\t catch (HibernateException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t if(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t }\r\n\t\t finally\r\n\t\t {\r\n\t\t\t if(session != null) \r\n\t\t\t\t{ \r\n\t\t\t\t\tsession.close(); \r\n\t\t\t\t} \r\n\t\t } \r\n\t}", "@Override\r\n\tpublic int update(SpUser t) {\n\t\treturn 0;\r\n\t}", "void editUser(String uid, User newUser);", "@Override\n\tpublic void updateOne(User u) {\n\t\tdao.updateInfo(u);\n\t}", "@Override\n\tpublic void update(User user)\n\t{\n\t\tuserDAO.update(user);\n\t}", "private void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }", "@Override\n public void updateUser(User user){\n try {\n runner.update(con.getThreadConnection(),\"update user set username=?,address=?,sex=?,birthday=? where id=?\"\n ,user.getUsername(),user.getAddress(),user.getSex(),user.getBirthday(),user.getId());\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void updateUserProfile(User user) throws Exception {\n\n\t}", "@Override\n public void updateUser(EntityManager entityManager,User user) {\n entityManager.merge(user);\n //entityManager.getTransaction().commit();\n }", "@Override\n\tpublic void updateUser(SpaceUserVO spaceUserVO) throws Exception {\n\t\t\n\t}", "void updateUser(Integer id, Long version, UserBuilder userBuilder);", "public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}", "public void update(User user){\n this.enabled = user.isEnabled();\n this.firstName = user.getFirstName();\n this.lastName = user.getLastName();\n this.telephone = user.getTelephone();\n this.email = user.getEmail();\n this.gender = user.getGender();\n this.roleEnum = user.getRoleEnum();\n if(!this.password.equals(user.getPassword())){\n //If a password has been changed, update timestamp\n lastPasswordResetDate = new Timestamp((new Date()).getTime());\n }else{\n lastPasswordResetDate = user.getLastPasswordResetDate();\n }\n this.password = user.getPassword();\n this.address = user.getAddress();\n this.authorities = user.authorities;\n }", "@Override\n public boolean updateUser(User user) {\n return controller.updateUser(user);\n }", "public void updateUser(User user) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().update(user);\r\n\t\t\r\n\t}", "void update(User user, Connection connection) throws DAOException;", "@RequestMapping(value = \"/updateWithLockAndEvent/{username}\", method = RequestMethod.PUT)\n\tpublic ResponseEntity<?> updateWithLockAndEvent(@PathVariable(\"username\") String username, @RequestBody User user) throws InterruptedException, JsonParseException, JsonMappingException, IOException {\n\t\tMap<String, Object> syncObject = new HashMap<String, Object>();\n\t\tInteger iduser = SecurityUtil.getIdUser();\n\t\tsyncObject.put(\"iduser\", iduser);\n\t\tUser userDb = userService.getByUsername(username);\n\t\tInteger id = userDb.getId();\n\t\tThread thread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tuserService.updateWithLockAndEvent(id, user, syncObject);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tsyncObject.put(\"error\", e.getMessage());\n\t\t\t\t\tsyncObject.notify();\n\t\t\t\t\tlogger.error(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tthread.start();\n\t\t\n\t\tsynchronized(syncObject) {\n\t\t\tsyncObject.wait();\n\t\t}\n\t\t// return.\n\t\treturn new ResponseEntity<Map<String, Object>>(syncObject, HttpStatus.OK);\n\t}", "@Override\n\tpublic Boolean updateUser(User user) {\n\t\treturn null;\n\t}", "public void update(User user) {\n repository.update(user);\n }", "@Override\n\tpublic void update(User user) throws DAOException {\n\t\t\n\t}", "public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}", "UpdateUserResult updateUser(UpdateUserRequest updateUserRequest);", "private void updateUserLogin() {\n\t\tSessionManager sessionManager = new SessionManager(\n\t\t\t\tMyApps.getAppContext());\n\n\t\tRequestParams params = new RequestParams();\n\t\tparams.add(\"user_id\", sessionManager.getUserDetail().getUserID());\n\n\t\tLog.d(\"EL\", \"userID: \" + sessionManager.getUserDetail().getUserID());\n\n\t\tKraveRestClient.post(WebServiceConstants.AV_UPDATE_USER_PROFILE_DATA_1,\n\t\t\t\tparams, new JsonHttpResponseHandler() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tJSONObject response) {\n\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLog.d(\"EL\", \"response: \" + response.toString(2));\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\n\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n\tpublic int modifyUser(User user) {\n\t\tuser.setUpdateTime(new Date());\n\t\treturn userDao.updateUserById(user);\n\t}", "private void safeUpdate(User user) {\n this.writeLock.lock();\n try {\n JSONMapper.copyAndUpdate(\n this.onlinePath,\n user,\n UserViews.Online.class\n );\n } catch (IOException e) {\n // It has some data lost\n Config.getInstance().debugLogger(e, \"[USER STORAGE]\");\n } finally {\n this.writeLock.unlock();\n }\n }", "public void updateUser() {\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n Statement stmt = conn.createStatement();\n String query = \"update users set first_name='\" + firstName + \"', \";\n query += \"last_name='\" + lastName + \"', \";\n query += \"phone_number='\" + phoneNumber + \"', \";\n query += \"email='\" + email + \"', \";\n query += \"address='\" + address + \"', \";\n query += \"id_city='\" + idCity + \"' \";\n query += \"where id_user = \" + id;\n stmt.executeUpdate(query);\n\n User updatedUser = findUser(id);\n updatedUser.setFirstName(firstName);\n updatedUser.setLastName(lastName);\n updatedUser.setPhoneNumber(phoneNumber);\n updatedUser.setEmail(email);\n updatedUser.setIdCity(idCity);\n updatedUser.setAddress(address);\n\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n }", "@Override\r\n\tpublic void updateUser(User user) {\n\t\tuserReposotory.save(user);\r\n\t\t\r\n\t}", "public void updateUsuario(Usuario usuario) {\n\t\t\n\t}", "public void update(User user) {\n\t\tuserDao.update(user);\n\t}", "@Override\r\n\tpublic boolean updateUser(user user) {\n\t\tif(userdao.updateByPrimaryKey(user)==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "private void updateUser(SessionEntity sessionEntity, UserEntity userEntity) {\n userEntity.setSessionId(sessionEntity.getSessionId());\n userEntity.setGuestUser(!sessionEntity.isSuccess());\n userEntity.setHasOpenSession(sessionEntity.isSuccess());\n this.userRepository.updateUser(userEntity).subscribe();\n }", "public void update(User user) {\n\t\tmapper.update(user);\n\t}", "public User UpdateUser(User user){\n\t\t\treturn user;\n\t\t}", "public User update(User user) throws DataAccessException;", "@Override\n public boolean updateUserById(User user ) {\n boolean tag=false;\n this.sqlSession = MyBatisUtils.getSqlSession();\n tag = this.sqlSession.getMapper(UserDao.class).updateUserInfoById(user);\n sqlSession.commit();\n return tag;\n }", "@Override\n public void update(Usuario usuario) {\n }", "@Override\n\tpublic void updateUser(User user) {\n\t\tiUserDao.updateUser(user);\n\t}", "@Override\n public void updateUser(User u) {\n Session session = this.sessionFactory.getCurrentSession();\n session.update(u);\n logger.info(\"User updated successfully, User Details=\"+u);\n }", "@Override\n\tpublic int updateUser(User user) {\n\t\treturn userDao.updateUser(user);\n\t}", "@Override\n\tpublic int update(Users user) {\n\t\treturn userDAO.update(user);\n\t}", "public String update() {\r\n\t\tuserService.update(userEdit);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"update\";\r\n\t}", "private void updateUserWithoutPassword() throws ClassNotFoundException, NoSuchAlgorithmException{\n\t\tint currentPositionInTableView = usersTable.getSelectionModel().getSelectedIndex(); // zapamiętaj bieżące podświetlenie w tabeli\n\t\tif ((isAllFieldsAreFull()) \n\t\t\t\t&& (isLoginUnique(usersTable.getSelectionModel().getSelectedItem().getId()))){\t\n\t\t\t\t\tMain.getMMUser().update(\t\t\t\t \n\t\t\t\t\t\t\tnew User(\n\t\t\t\t\t\t\t\t\tusersTable.getSelectionModel().getSelectedItem().getId(),\n\t\t\t\t\t\t\t\t\tuserLoginField.getText(), \n\t\t\t\t\t\t\t\t\tusersTable.getSelectionModel().getSelectedItem().getPassword(), \n\t\t\t\t\t\t\t\t\tuserNameField.getText(), \n\t\t\t\t\t\t\t\t\tuserLastNameField.getText(), \n\t\t\t\t\t\t\t\t\tpermission,\n\t\t\t\t\t\t\t\t\teditingCheck.isSelected(),\n\t\t\t\t\t\t\t\t\treminderCheck.isSelected()));\n\t\t\t\t\t// pokaż aktualny stan bazy pracowników\n\t\t\t\t\treadUsers();\n\t\t\t\t\tshowUsers();\n\t\t\t\t\tusersTable.getSelectionModel().select(currentPositionInTableView); // ustaw podswietlenie na bieżący wiersz\n\t\t\t\t\tnew AlertDialog(\"Operacja zakończona\", \"Zaktualizowano dane\", AlertType.INFORMATION);\n\t\t}\n\t}", "@Override\n\tpublic int update(Usuario us) {\n\t\tString SQL =\"update user set nomuser = ?, passuser =?\";\n\t\treturn jdbc.update(SQL, us.getUsername(), us.getPassword());\n\t}", "@Override\r\n\tpublic boolean updateUsuario(Usuario user) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic User updateUser(User user) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void update(Usuario t) {\n\t\t\r\n\t}", "@Override\n\tpublic int updateUser(SmbmsUser user) {\n\t\treturn sud.updateUser(user);\n\t}", "public void update() throws NotFoundException {\n\tUserDA.update(this);\n }", "public void locking(int id) {\n\t\tAccount account=userDao.getAccount(id);\r\n\t\tStatus status=userDao.getStatus(\"¶³½á\");\r\n\t\taccount.setStatus(status);\r\n\t\tuserDao.updateAccount(account);\r\n\t}" ]
[ "0.7677944", "0.7623794", "0.7605534", "0.7605534", "0.74938524", "0.7466897", "0.7416691", "0.73388857", "0.7330206", "0.7312404", "0.72997636", "0.7268542", "0.72615814", "0.72466487", "0.7227305", "0.717899", "0.71690834", "0.7108349", "0.7092876", "0.7045663", "0.7019248", "0.69942385", "0.69589347", "0.6952027", "0.6949434", "0.69113743", "0.6906643", "0.69008195", "0.68856955", "0.6873064", "0.68670154", "0.68648684", "0.68589574", "0.6842475", "0.68410665", "0.68129045", "0.6810532", "0.6804933", "0.67953223", "0.6793559", "0.6790134", "0.67853624", "0.67787623", "0.67743003", "0.67690367", "0.6768669", "0.67534196", "0.6750746", "0.6745217", "0.6725972", "0.67051995", "0.66969174", "0.6690582", "0.66856754", "0.66771245", "0.6666773", "0.665611", "0.66542125", "0.6647097", "0.6644176", "0.6642167", "0.6641321", "0.6636394", "0.6630566", "0.6629026", "0.6617126", "0.6615312", "0.66064143", "0.66054976", "0.6598771", "0.65766466", "0.6563166", "0.6546837", "0.6530334", "0.65279347", "0.6520145", "0.65184003", "0.6515603", "0.65154266", "0.6515049", "0.65086085", "0.64951116", "0.64729106", "0.64647245", "0.64521104", "0.6444658", "0.64378214", "0.64374346", "0.64256084", "0.6425133", "0.6423423", "0.64182544", "0.6417619", "0.6417396", "0.6417019", "0.64166313", "0.6412352", "0.6409767", "0.64069855", "0.6405773" ]
0.7208518
15
Update a User With Lock And Event
@RequestMapping(value = "/updateWithLockAndEvent/{username}", method = RequestMethod.PUT) public ResponseEntity<?> updateWithLockAndEvent(@PathVariable("username") String username, @RequestBody User user) throws InterruptedException, JsonParseException, JsonMappingException, IOException { Map<String, Object> syncObject = new HashMap<String, Object>(); Integer iduser = SecurityUtil.getIdUser(); syncObject.put("iduser", iduser); User userDb = userService.getByUsername(username); Integer id = userDb.getId(); Thread thread = new Thread() { public void run() { try { userService.updateWithLockAndEvent(id, user, syncObject); } catch (Exception e) { syncObject.put("error", e.getMessage()); syncObject.notify(); logger.error(e.getMessage()); } } }; thread.start(); synchronized(syncObject) { syncObject.wait(); } // return. return new ResponseEntity<Map<String, Object>>(syncObject, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void update(User user);", "void update(User user);", "public void update(User user);", "public void updateUser(User user) {\n\t\t\r\n\t}", "@Override\n\tpublic void updateUser(User pUser) {\n\t\t\n\t}", "public void update(User obj) {\n\t\t\n\t}", "@PreAuthorize(\"@userAuthorize.canUpdate(#user)\")\n\t@RequestMapping(value = \"/updateWithLock/{id}\", method = RequestMethod.PUT)\n\tpublic ResponseEntity<?> updateWithLock(@PathVariable(\"id\") Integer id, @RequestBody User user, @RequestParam Map<String, Object> params) throws JsonParseException, JsonMappingException, IOException, KeyManagementException, UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, CertificateException {\n\t\t// Call serverauth to create user.\n\t String serverauthUrl = evn.getProperty(\"serverauth.url\");\n\t String token = params.get(\"token\").toString();\n\t Map<String, Object> data = new HashMap<String, Object>();\n\t data.put(\"id\", user.getId());\n\t data.put(\"username\", user.getUsername());\n\t //data.put(\"password\", user.getPassword());\n\t data.put(\"displayname\", user.getDisplayname());\n\t data.put(\"thumbnail\", user.getThumbnail());\n\t data.put(\"enabled\", true);\n\t ResponseEntity<Object> response = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/updateWithEvent/\" + user.getUsername(), HttpMethod.PUT, token, null, data, null);\n\t Map<String, Object> resultRemote = (Map<String, Object>) response.getBody();\n\t if(resultRemote.get(\"error\") != null) {\n\t \t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t \n\t try {\n\t \t//user.setPassword(CommonUtil.encrypt(user.getPassword()));\n\t \tUser result = userService.updateWithLock(id, user);\n\t\t\t// Call serverauth to confirm create user as SUCCESS.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_SUCCESS, HttpMethod.GET, token, null, null, null);\n\t\t\t// return.\n\t\t\treturn new ResponseEntity<Integer>(result.getVersion(), HttpStatus.OK);\n\t } catch(Exception ex) {\n\t\t\t// Call serverauth to confirm create user as ABORT.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_ABORT, HttpMethod.GET, token, null, null, null);\n\t\t\t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t}", "public void update(User u) {\n\r\n\t}", "@Override\n\tpublic void updateUser(User user)\n\t{\n\n\t}", "public User updateUser(User user);", "@Override\n\tpublic void updateUser(user theUser) {\n\t}", "public boolean update(User u);", "public void updateUser(int uid, String name, String phone, String email, String password, int money, int credit);", "void setUserUpdated(final Long userUpdated);", "void updateUserById(String username, User userData);", "public void updateUser(Person user) {\n\t\t\n\t}", "public void updateUser(User oldUser, User newUser) ;", "private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }", "private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }", "@Override\n\tpublic void update(User objetc) {\n\t\tuserDao.update(objetc);\n\t}", "public void updateUser(long userID) {\n \t}", "void updateUserPassword(User user);", "@Override\r\n\tpublic int update(SpUser t) {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void update(Usuario t) {\n\t\t\r\n\t}", "@Override\n public void update(Usuario usuario) {\n }", "public void updateUser(User detachedUser) throws Exception;", "Long getUserUpdated();", "void updateUser(User entity) throws UserDaoException;", "void update(String userName, String password, String userFullname,\r\n\t\tString userSex, int userTel, String role);", "void updateUser(@Nonnull User user);", "@Override\r\n\tpublic int update(User user) {\n\t\treturn 0;\r\n\t}", "private void updateUser(SessionEntity sessionEntity, UserEntity userEntity) {\n userEntity.setSessionId(sessionEntity.getSessionId());\n userEntity.setGuestUser(!sessionEntity.isSuccess());\n userEntity.setHasOpenSession(sessionEntity.isSuccess());\n this.userRepository.updateUser(userEntity).subscribe();\n }", "public User update(User updatedInfo);", "void updateTask(UserDto user);", "@Override\n\tpublic void updateUser(UserInfo ui) {\n\n\t}", "public void updateUsuario(Usuario usuario) {\n\t\t\n\t}", "public void update(com.conurets.inventory.model.User model) throws InventoryException {\n }", "@Override\n\t\tpublic void onUserProfileUpdate(User arg0) {\n\t\t\t\n\t\t}", "public Account update(Account user);", "@Override\r\n\tpublic int updateUser(Users user) {\n\t\treturn 0;\r\n\t}", "UserEntity updateUser(UserEntity userEntity);", "public static void update_TbUser() {\n builder = new Uri.Builder();\n builder.appendQueryParameter(\"username\", Server.owner.get_username());\n builder.appendQueryParameter(\"email\", Server.owner.get_Email());\n builder.appendQueryParameter(\"birthday\", Server.owner.get_Birthday().toString());\n builder.appendQueryParameter(\"gender\", Server.owner.get_gender() ? \"1\" : \"0\");\n builder.appendQueryParameter(\"phone\", Server.owner.get_Phone());\n builder.appendQueryParameter(\"image_source\", Server.owner.get_imageSource());\n builder.appendQueryParameter(\"conversations\", Server.owner.get_AllConversation());\n\n String url = Constant.M_HOST + Constant.M_UPDATE_USER_WITHOUT_PASS;\n String a = uService.execute(builder, url);\n }", "int updateUserById( User user);", "void editUser(String uid, User newUser);", "public void update() throws Exception {\n\t HaUserDao.getInstance().updateUser(this);\n\t}", "void updateUser(UserDTO user);", "public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}", "@PreAuthorize(\"@userAuthorize.canUpdate(#user)\")\n\t@RequestMapping(value = \"/updatePasswordWithLock/{id}\", method = RequestMethod.PUT)\n\tpublic ResponseEntity<?> updatePasswordWithLock(@PathVariable(\"id\") Integer id, @RequestBody User user, @RequestParam Map<String, Object> params) throws JsonParseException, JsonMappingException, IOException, KeyManagementException, UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, CertificateException {\n\t\t// Call serverauth to create user.\n\t String serverauthUrl = evn.getProperty(\"serverauth.url\");\n\t String token = params.get(\"token\").toString();\n\t Map<String, Object> data = new HashMap<String, Object>();\n\t data.put(\"password\", user.getPassword());\n\t ResponseEntity<Object> response = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/updatePasswordWithEvent/\" + user.getUsername(), HttpMethod.PUT, token, null, data, null);\n\t Map<String, Object> resultRemote = (Map<String, Object>) response.getBody();\n\t if(resultRemote.get(\"error\") != null) {\n\t \t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t \n\t try {\n\t \tString password = (String) data.get(\"password\");\n\t \tUser result = userService.updatePasswordWithLock(id, password);\n\t\t\t// Call serverauth to confirm create user as SUCCESS.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_SUCCESS, HttpMethod.GET, token, null, null, null);\n\t\t\t// return.\n\t\t\treturn new ResponseEntity<Integer>(result.getVersion(), HttpStatus.OK);\n\t } catch(Exception ex) {\n\t\t\t// Call serverauth to confirm create user as ABORT.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_ABORT, HttpMethod.GET, token, null, null, null);\n\t\t\t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t}", "void updateUserActivateStatus(User user, int newStatus);", "@Override\r\n\tpublic int updateUser(User user, String userName) {\n\t\treturn 0;\r\n\t}", "public void grantModerate(User user) throws ServiceException{\n }", "void setUserLocked(boolean b);", "@Override\r\n\tpublic int update(PtHrUserBak t) {\n\t\treturn 0;\r\n\t}", "ResponseMessage updateUser(final User user);", "public User update(User user)throws Exception;", "User modifyUser(Long user_id, User user);", "private void setUpdateUser(entity.User value) {\n __getInternalInterface().setFieldValue(UPDATEUSER_PROP.get(), value);\n }", "void update(User user) throws SQLException;", "@Override\n\tpublic void updateOne(User u) {\n\t\tdao.updateInfo(u);\n\t}", "private void updateUserLogin() {\n\t\tSessionManager sessionManager = new SessionManager(\n\t\t\t\tMyApps.getAppContext());\n\n\t\tRequestParams params = new RequestParams();\n\t\tparams.add(\"user_id\", sessionManager.getUserDetail().getUserID());\n\n\t\tLog.d(\"EL\", \"userID: \" + sessionManager.getUserDetail().getUserID());\n\n\t\tKraveRestClient.post(WebServiceConstants.AV_UPDATE_USER_PROFILE_DATA_1,\n\t\t\t\tparams, new JsonHttpResponseHandler() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tJSONObject response) {\n\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLog.d(\"EL\", \"response: \" + response.toString(2));\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\n\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n\tpublic boolean updateUser(Integer Id, User user) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void updateUser(SpaceUserVO spaceUserVO) throws Exception {\n\t\t\n\t}", "@Override\r\n\tpublic void updateUser(TUsers tuser) {\n\t\tdao.updateUser(tuser);\r\n\t}", "public void userUpdate(User user) {\n\t\tdao.userUpdate(user);\n\t}", "@Override\r\n\tpublic void update(User user) {\n\t\tuserDao.update(user);\r\n\t}", "@Override\r\n\tpublic boolean updateUsuario(Usuario user) {\n\t\treturn false;\r\n\t}", "@RequestMapping(value = \"/updateForDeleteWithLockAndEvent/{username}/{version}\", method = RequestMethod.PUT)\n\tpublic ResponseEntity<?> updateForDeleteWithLockAndEvent(@PathVariable(\"username\") String username, @PathVariable(\"version\") final Integer version) throws InterruptedException {\n\t\tMap<String, Object> syncObject = new HashMap<String, Object>();\n\t\tUser userDb = userService.getByUsername(username);\n\t\tInteger id = userDb.getId();\n\t\tThread thread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tuserService.updateForDeleteWithLockAndEvent(id, version, syncObject);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tsyncObject.put(\"error\", e.getMessage());\n\t\t\t\t\tsyncObject.notify();\n\t\t\t\t\tlogger.error(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tthread.start();\n\t\t\n\t\tsynchronized(syncObject) {\n\t\t\tsyncObject.wait();\n\t\t}\n\t\t// return.\n\t\treturn new ResponseEntity<Map<String, Object>>(syncObject, HttpStatus.OK);\n\t}", "public void update(User user){\n this.enabled = user.isEnabled();\n this.firstName = user.getFirstName();\n this.lastName = user.getLastName();\n this.telephone = user.getTelephone();\n this.email = user.getEmail();\n this.gender = user.getGender();\n this.roleEnum = user.getRoleEnum();\n if(!this.password.equals(user.getPassword())){\n //If a password has been changed, update timestamp\n lastPasswordResetDate = new Timestamp((new Date()).getTime());\n }else{\n lastPasswordResetDate = user.getLastPasswordResetDate();\n }\n this.password = user.getPassword();\n this.address = user.getAddress();\n this.authorities = user.authorities;\n }", "@Override\n public void updateUser(EntityManager entityManager,User user) {\n entityManager.merge(user);\n //entityManager.getTransaction().commit();\n }", "@Override\r\n\tpublic boolean updateUser() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic void update(User user) {\n\t\tint iRet = dao.update(user);\r\n\t\tif(iRet != 1){\r\n\t\t\tlogger.error(\"修改失败\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.info(\"修改成功\");\r\n\t}", "public void editUser(User user) {\n\t\t\n\t}", "public int updateUser(User user) {\n\t\t\n\t\treturn 1;\n\t}", "@Override\n\tpublic Boolean updateUser(User user) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void update(User entity) {\n\t\tif (userlist.get(String.valueOf(entity.getDni())) != null) {\n\t\t\tuserlist.put(String.valueOf(entity.getDni()), entity);\n\t\t} else {\n\t\t\tEnviromentVariables.UPDATEUSERERRORNOEXISTE = \"El usuario no existe\";\n\t\t}\n\t}", "public void handleUserSwtiched(int newUserId) {\n }", "public void update() throws NotFoundException {\n\tUserDA.update(this);\n }", "@Override\n\tpublic void updateUsuario(Usuario p) {\n\t\t\n\t}", "void updateAccount();", "@Override\r\n\tpublic void updateUser(User user) throws ToDoListDAOException{\r\n\t\t// TODO Auto-generated method stub\r\n\t\t Session session = factory.openSession();\r\n\t\t try\r\n\t\t {\r\n\t\t session.beginTransaction();\r\n\t\t Query query = session.createQuery(\"from User where userName = :user\");\r\n\t\t User ifUserExist =(User) query.setParameter(\"user\",user.getUserName()).uniqueResult();\r\n\t\t long id = ifUserExist.getId();\r\n\t\t Query query2 = session.createQuery(\"UPDATE User SET password = :pass , userName= :user\" +\r\n\t\t \" where id = :d\");\r\n\t\t query2.setParameter(\"pass\", user.getPassword());\r\n\t\t query2.setParameter(\"user\", user.getUserName());\r\n\t\t query2.setParameter(\"d\", id);\r\n\t\t query2.executeUpdate();\r\n\t\t session.getTransaction().commit();\r\n\t\t \r\n\t\t }\r\n\t\t catch (HibernateException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t if(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t }\r\n\t\t finally\r\n\t\t {\r\n\t\t\t if(session != null) \r\n\t\t\t\t{ \r\n\t\t\t\t\tsession.close(); \r\n\t\t\t\t} \r\n\t\t } \r\n\t}", "public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}", "@Override\n public void updateUser(User user){\n try {\n runner.update(con.getThreadConnection(),\"update user set username=?,address=?,sex=?,birthday=? where id=?\"\n ,user.getUsername(),user.getAddress(),user.getSex(),user.getBirthday(),user.getId());\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void update(ERS_USERS entity) {\n\t\t\n\t}", "@Override\n\tpublic void updateUser(User user) {\n\t userMapper.updateUser(user);\n\t}", "public String update() {\r\n\t\tuserService.update(userEdit);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"update\";\r\n\t}", "@Override\r\n public void profileUpdate(User user) throws RemoteException, SQLException {\r\n property.firePropertyChange(\"gameRentalUpdate\", null, user);\r\n }", "@Override\n\tpublic void updateUserProfile(User user) throws Exception {\n\n\t}", "@Test\n\tpublic void test_update_user_success(){\n\t\tUser user = new User(null, \"fengt\", \"fengt2@itiaoling.com\", \"12345678\");\n\t\ttemplate.put(REST_SERVICE_URI + \"/20\" + ACCESS_TOKEN + token, user);\n\t}", "@Override\n\tpublic void editUser(ERSUser user) {\n\t\tuserDao.updateUser(user);\n\t}", "private void updateUserAccount() {\n final UserDetails details = new UserDetails(HomeActivity.this);\n //Get Stored User Account\n final Account user_account = details.getUserAccount();\n //Read Updates from Firebase\n final Database database = new Database(HomeActivity.this);\n DatabaseReference user_ref = database.getUserReference().child(user_account.getUser().getUser_id());\n user_ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n //Read Account Balance\n String account_balance = dataSnapshot.child(Database.USER_ACC_BALANCE).getValue().toString();\n //Read Expire date\n String expire_date = dataSnapshot.child(Database.USER_ACC_SUB_EXP_DATE).getValue().toString();\n //Read Bundle Type\n String bundle_type = dataSnapshot.child(Database.USER_BUNDLE_TYPE).getValue().toString();\n //Attach new Values to the Account Object\n user_account.setBalance(Double.parseDouble(account_balance));\n //Attach Expire date\n user_account.setExpire_date(expire_date);\n //Attach Bundle Type\n user_account.setBundle_type(bundle_type);\n //Update Local User Account\n details.updateUserAccount(user_account);\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n //No Implementation\n }\n });\n }", "ManageUserResponse updateUser(UserUpdateRequest user, Long userId);", "@Override\n\tpublic void update(User user) throws DAOException {\n\t\t\n\t}", "@Override\n\tpublic String updateUser(String user) {\nreturn null;\n\t}", "ManagementLockObject.Update update();", "void update(User user, Connection connection) throws DAOException;", "@Override\n\tpublic int modifyUser(User user) {\n\t\tuser.setUpdateTime(new Date());\n\t\treturn userDao.updateUserById(user);\n\t}", "void updateUser(Integer id, Long version, UserBuilder userBuilder);", "@Override\n public User update(User user) {\n return dao.update(user);\n }", "UpdateUserResult updateUser(UpdateUserRequest updateUserRequest);", "@Override\n\tpublic User update(User t) {\n\t\treturn null;\n\t}" ]
[ "0.7297247", "0.7297247", "0.7263053", "0.71575546", "0.7087804", "0.7074117", "0.7012254", "0.69772154", "0.6936898", "0.69117826", "0.6896715", "0.6881112", "0.6837006", "0.6800599", "0.6796924", "0.6789954", "0.67674", "0.67245156", "0.6707793", "0.668843", "0.66494775", "0.6605851", "0.66050977", "0.6602724", "0.6599629", "0.65874004", "0.6578226", "0.65753835", "0.65738225", "0.6542937", "0.653001", "0.6518827", "0.6495874", "0.6487877", "0.6480664", "0.6453418", "0.64405304", "0.6429704", "0.6428615", "0.64144534", "0.64113265", "0.64066374", "0.6389476", "0.6388965", "0.6380088", "0.6374006", "0.6371621", "0.6330467", "0.6320026", "0.63164043", "0.6310846", "0.6309526", "0.63027453", "0.6292986", "0.62828815", "0.62784916", "0.627509", "0.6271687", "0.62684613", "0.6266047", "0.6251021", "0.6226754", "0.621433", "0.6209323", "0.6194698", "0.6191211", "0.6184896", "0.6184453", "0.6180004", "0.61730087", "0.6166248", "0.61600447", "0.61582816", "0.6152096", "0.61400443", "0.6131971", "0.612971", "0.61254424", "0.61164033", "0.6109515", "0.61000884", "0.6090554", "0.60883296", "0.60867476", "0.60798687", "0.60785854", "0.6077317", "0.60546285", "0.60510516", "0.6050959", "0.6044181", "0.60397387", "0.6032991", "0.60322446", "0.6030836", "0.6030497", "0.601969", "0.60056114", "0.6002025", "0.60000014" ]
0.69008726
10
Update For Delete a User
@PreAuthorize("@userAuthorize.canUpdateForDelete(#id, #version)") @RequestMapping(value = "/updateForDelete/{id}/{version}", method = RequestMethod.PUT) public ResponseEntity<?> updateForDelete(@PathVariable("id") Integer id, @PathVariable("version") Integer version) throws JsonParseException, JsonMappingException, IOException { User result = userService.updateForDelete(id, version); // return. return new ResponseEntity<Integer>(result.getVersion(), HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delete(User user);", "void delete(User user);", "public void deleteUser(User userToDelete) throws Exception;", "void deleteUser(String deleteUserId);", "public User delete(User user);", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "public boolean delete(User user);", "@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}", "public void delete(User user)throws Exception;", "public User delete(String user);", "public void delete(User obj) {\n\t\t\n\t}", "@Override\n\tpublic void delete(User entity) {\n\t\t\n\t}", "boolean delete(User user);", "public void delete(User usuario);", "void deleteUser(String userId);", "@Override\n\tpublic void deleteUser(User user) {\n\t\topenSession().createQuery(\"DELETE FROM User where userId =\" + user.getUserId()).executeUpdate();\n\t\t\n\t}", "@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}", "void deleteUserById(Long id);", "@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}", "void deleteUser(int id);", "public void deleteUser(long userId);", "DeleteUserResult deleteUser(DeleteUserRequest deleteUserRequest);", "@Override\n\tpublic String deleteUser(Map<String, Object> reqs) {\n\t\tString result = \"success\";\n\t\tString sql = \"delete from tp_users where userId=:userId\";\n\t\n\t\ttry {\n\t\t\tjoaSimpleDao.executeUpdate(sql, reqs);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tresult = \"failed\";\n\t\t}\n\t\treturn result;\n\t}", "public void deleteUser(String name);", "public void deleteUser(User user) {\n update(\"DELETE FROM user WHERE id = ?\",\n new Object[] {user.getId()});\n }", "void deleteUserById(Integer id);", "@Override\r\n public void userdelete(Integer[] u_id) {\n userMapper.userdelete(u_id);\r\n }", "void DeleteCompteUser(int id);", "public void deleteUserById(Long userId);", "@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}", "@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}", "public void delete(User user){\n userRepository.delete(user);\n }", "@Override\r\n\tpublic void deleteUser(String userid) {\n\t\ttry{\r\n\t\t\tString sql = \"delete from vipuser where id=?\";\r\n\t\t\tObject[] args = new Object[]{userid};\r\n\t\t\tdaoTemplate.update(sql, args, false);\r\n\t\t}catch (Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void delete(JTable tblUser)\n {\n int i = tblUser.getSelectedRow();\n \n if(i != -1)\n {\n usersDto = users[i];\n \n if(usersDto.getState() != 3)\n {\n if(JOptionPane.showConfirmDialog(null, \"¿Está seguro que desea eliminar el registro?\", \"Eliminar\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n {\n try {\n usersDto.setState((short) 3);\n \n if(usersDao.update(usersDto.createPk(), usersDto)) {\n tableModel = (DefaultTableModel) tblUser.getModel();\n tableModel.setValueAt(\"*\", i, 6);\n }\n \n } catch (UsersDaoException exception) {}\n }\n \n } else { JOptionPane.showMessageDialog(null, \"El registro ya está eliminado\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n \n } else { JOptionPane.showMessageDialog(null, \"Seleccione un registro a eliminar\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n }", "@Override\n public void deleteUser(Integer id){\n try {\n runner.update(con.getThreadConnection(),\"delete from user where id=?\",id);\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void deleteUser(String userId) {\n\t\t\n\t}", "public void deleteUser(Integer id) throws BadRequestException;", "@Override\n\tpublic void deleteUser(NguoiDung nd) {\n\n\t}", "@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}", "@Override\n public boolean deleteUser(User user) {\n return false;\n }", "@Override\n public void delete(User user) {\n dao.delete(user);\n }", "public void deleteUser(long id){\n userRepository.deleteById(id);\n }", "@Override\n\tpublic void deleteOne(User u) {\n\t\tdao.deleteOne(u);\n\t}", "@Override\r\n\tpublic void delete(User user) {\n\t\tuserDao.delete(user);\r\n\t}", "public void deleteUser(View v){\n Boolean deleteSucceeded = null;\n\n int userId = users.get(userSpinner.getSelectedItemPosition() - 1).getId();\n\n // Delete user from database\n deleteSucceeded = udbHelper.deleteUser(userId);\n\n String message = \"\";\n if(deleteSucceeded){\n message = \"Successfully removed user with id {\" + userId + \"} from database!\";\n }\n else {\n message = \"Failed to save user!\";\n }\n Toast.makeText(ManageAccountsActivity.this, message, Toast.LENGTH_LONG).show();\n\n reloadUserLists();\n }", "public void deleteUser(Integer uid);", "public void deleteUser(String username);", "public void deleteUserById(int id){\n userListCtrl.deleteUser(id);\n }", "@Override\n\tpublic void deleteUser(int id) {\n\t\tuserMapper.deleteUser(id);\n\t}", "@Override\r\n\tpublic void deleteByIdUser(int id) {\n\t\tuserReposotory.deleteById(id);\r\n\t}", "public String deleteUser(){\n\t\tusersservice.delete(usersId);\n\t\treturn \"Success\";\n\t}", "void deleteUser( String username );", "@Override\n\tpublic void delete(User user)\n\t{\n\t\tuserDAO.delete(user);\n\t}", "public static int delete(User u){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection(); \n //melakukan query database untuk menghapus data berdasarkan id atau primary key\n PreparedStatement ps=con.prepareStatement(\"delete from t_user where id=?\"); \n ps.setInt(1,u.getId()); \n status=ps.executeUpdate(); \n }catch(Exception e){System.out.println(e);} \n\n return status; \n }", "public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}", "@Override\r\n\tpublic void delete(UserMain user) {\n\t\tusermaindao.delete(user);\r\n\t}", "void deleteUser(String username) throws UserDaoException;", "@Override\n\tpublic int delete(Users user) {\n\t\t\n\t\treturn userDAO.delete(user);\n\t}", "public void delete() throws NotFoundException {\n\tUserDA.delete(this);\n }", "@Override\n\tpublic void delete(Connection conn, User user) throws SQLException {\n\t\tString deleteSql=\"delete from tbl_user where id=?\";\n\t\tPreparedStatement ps=conn\n\t\t\t\t.prepareCall(deleteSql);\n\t\tps.setLong(1, user.getId());\n\t\tps.execute();\n\t\t\n\t}", "@Override\n\tpublic void delete_User(String user_id) {\n\t\tuserInfoDao.delete_User(user_id);\n\t}", "@Override\n public boolean deleteUser(User user) {\n return controller.deleteUser(user);\n }", "public User updateUser(User user);", "@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }", "public void deleteUser(ExternalUser userMakingRequest, String userId);", "@RolesAllowed(\"admin\")\n @DELETE\n public Response delete() {\n synchronized (Database.users) {\n User user = Database.users.remove(username);\n if (user == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' not found\\r\\n\").\n build();\n } else {\n Database.usersUpdated = new Date();\n synchronized (Database.contacts) {\n Database.contacts.remove(username);\n }\n }\n }\n return Response.ok().build();\n }", "public boolean update(User u);", "public boolean delete(int userId);", "@Override\n\tpublic Boolean deleteUser(User user) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void delete(User user) throws DAOException {\n\t\t\n\t}", "@Override\n\tpublic User delete(User t) {\n\t\treturn null;\n\t}", "public int delete(Long userId) {\n LOGGER.debug(\"delete a User\");\n Session s = getSession();\n Query query = s.createQuery(\"delete User where id = :ID\");\n query.setParameter(\"ID\", userId);\n int result = query.executeUpdate();\n return result;\n }", "public void deleteUser(Integer id) {\n UserModel userModel;\n try {\n userModel = userRepository.findById(id).orElseThrow(IOException::new);\n }\n catch (IOException e) {\n System.out.println(\"User not found\");\n userModel = null;\n }\n userRepository.delete(userModel);\n }", "@RequestMapping(value = \"/delete\", method = RequestMethod.DELETE)\n\tpublic void delete(@RequestBody User entity) {\n\t\tdao.delete(entity);\n\t}", "public void delete(String username);", "public void delete(User user) {\n repository.delete(user);\n }", "@Override\r\n\tpublic boolean delete(int id) {\r\n\t\treturn executeAndIsModified(DELETE_USER, id);\r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tUserDAO dao = new UserDAO(context);\r\n\t\t\t\tboolean b = dao.delete(\"id=?\", new String[] { id + \"\" });\r\n\t\t\t\tif (b) {\r\n\t\t\t\t\tToast.makeText(context, \"删除成功\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\tcontext.sendBroadcast(new Intent(\"UPDATE\"));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tToast.makeText(context, \"删除失败\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\t\t\t}", "@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}", "@Override\n\tpublic void deleteItem(Long id) {\n\t\tUser user = new User();\n\t\tuser.setId(id);\n\t\tuserRepository.delete(user);\n\t\tSystem.out.println(\"user deleted with succes !\");\n\t}", "@Transactional\n\t@Modifying\n\t@Query(\"DELETE FROM Users t WHERE t.email =:email AND t.password =:password\")\n void deleteUser(@Param(\"email\") String email, @Param(\"password\") String password);", "public void deleteUser(int userid) {\n\t\t\n\t}", "public void deleteUser(int id) {\r\n userRepo.deleteById(id);\r\n }", "public void deleteUser(IndividualUser user) {\n try{\n PreparedStatement s = sql.prepareStatement(\"DELETE FROM Users WHERE userName=? AND id=? AND firstName=? AND lastName=?;\");\n s.setString(1, user.getId());\n s.setInt(2,user.getIdNum());\n s.setString(3, user.getFirstName());\n s.setString(4, user.getLastName());\n s.execute();\n s.close();\n } catch (SQLException e) {\n sqlException(e);\n }\n }", "void deleteUser(int id) throws DataAccessException;", "@Override\r\n\tpublic void delete(User user) {\n\t\tint iRet = dao.delete(user);\r\n\t\tif(iRet != 1){\r\n\t\t\tlogger.error(\"删除失败\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.info(\"删除成功\");\r\n\t}", "@Override\n\tpublic void delete(ERS_USERS entity) {\n\t\t\n\t}", "@Override\n\tpublic void delete(List<User> entity) {\n\t\t\n\t}", "@FXML\n\tpublic void deleteUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString id = txtDeleteUserId.getText();\n\t\tif (!id.equals(empty)) {\n\t\t\tboolean found = restaurant.findUser(id);\n\t\t\tif (found == true) {\n\t\t\t\ttry {\n\t\t\t\t\trestaurant.deleteUser(txtDeleteUserId.getText());\n\t\t\t\t\trestaurant.saveUsersData();\n\t\t\t\t\tAlert alert = new Alert(AlertType.CONFIRMATION);\n\t\t\t\t\talert.setTitle(\"Confirmation Dialog\");\n\t\t\t\t\talert.setHeaderText(\"Delete User\");\n\t\t\t\t\talert.setContentText(\"The user has been deleted\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t\ttxtDeleteUserId.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los datos\");\n\t\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"El usuario no existe\");\n\t\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Ingrese la identificacion del usuario a eliminar\");\n\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "public void deleteUser(int id){\r\n\t\tconfigDao.deleteUserById(id);\r\n\t}", "public void deleteUserRecord() {\n\t\tSystem.out.println(\"Calling deleteUserRecord() Method To Delete User Record\");\n\t\tuserDAO.deleteUser(user);\n\t}", "public void deleteUser(User user) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().delete(user);\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void delete(int userId) {\n\t\ttheUserRepository.deleteById(userId);\r\n\t}", "@RequestMapping(value=\"/user/{id}\",method=RequestMethod.DELETE)\n\t\t\tpublic @ResponseBody ResponseEntity<User> deleteUser(@PathVariable Long id)throws Exception{\n\t\t\t\tUser user=null;\n\t\t\t\tList<Purchases> purchase=null;\n\t\t\t\tuser=userDAO.findOne(id);\n\t\t\t\tif(user!=null)\n\t\t\t\t{\ttry{\t\n\t\t\t\t\t\t\tuser.setLastModifiedTime(new Date());\n\t\t\t\t\t\t\tpurchase=purchaseDAO.findByUserId(user.getId());\n\t\t\t\t\t\t\tif(user.getIsActive())\t\n\t\t\t\t\t\t\t\t{\tfor(Purchases purch : purchase){\t\t\t //getting all the payments of that user and making it offline \n\t\t\t\t\t\t\t\t\t\tpurch.setLastModifiedTime(new Date());\n\t\t\t\t\t\t\t\t\t\tpurch.setIsActive(false);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tuser.setIsActive(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\tfor(Purchases purch : purchase){\n\t\t\t\t\t\t\t\t\t\tpurch.setLastModifiedTime(new Date());\n\t\t\t\t\t\t\t\t\t\tpurch.setIsActive(true);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tuser.setIsActive(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tuserDAO.save(user);\n\t\t\t\t\t\t\tpurchaseDAO.save(purchase);\t\t\t\t\t\t\t\t//user status and his payment details also modified\n\t\t\t\t\t\t\treturn new ResponseEntity<User>(user, HttpStatus.OK);\n\t\t\t\t\t\t}catch(Exception e){\n\t\t\t\t\t\t\tthrow new Exception(\"Could not change status of the user. \",e);\n\t\t\t\t\t\t}\n\t\t\t\t}else\n\t\t\t\t\treturn new ResponseEntity<User>(HttpStatus.NOT_FOUND); \n\t\t\t}", "@Override\n\tpublic String delete(User user) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void delUser(String[] id) {\n\n\t}", "public void deleteUser(int id) {\n\t\tuserRepository.delete(id);\r\n\t}", "@Override\r\n\tpublic void delete( UserFields fields ) {\n\t\t\r\n\t}", "public String deleteUser(){\n\t\ttry{\n\t\t\tnew UtenteDao().deleteUser(utente_target);\n\t\t\treturn \"Utente eliminato con successo!\";\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\tpublic boolean delUser(user user) {\n\t\tif(userdao.deleteByPrimaryKey(user.gettUserid())==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}" ]
[ "0.75626224", "0.75626224", "0.754613", "0.7525153", "0.7496546", "0.7471374", "0.7434684", "0.74326724", "0.7419285", "0.7396973", "0.73913133", "0.73776096", "0.7331409", "0.73236465", "0.72936314", "0.7285861", "0.7283426", "0.7280039", "0.7279406", "0.7257198", "0.72545385", "0.7196112", "0.71865195", "0.71778125", "0.7169535", "0.7168532", "0.71425366", "0.71200335", "0.7110513", "0.7107194", "0.7103673", "0.7094056", "0.7089915", "0.7077554", "0.70590246", "0.70496815", "0.7043613", "0.7026611", "0.7022661", "0.70090944", "0.7008527", "0.7004119", "0.7000354", "0.69824886", "0.69476604", "0.6943323", "0.6932124", "0.69238126", "0.6894078", "0.68790406", "0.68772334", "0.68722045", "0.68469876", "0.6830383", "0.68291706", "0.6822408", "0.6817008", "0.6816806", "0.68158245", "0.6813531", "0.68121284", "0.68109715", "0.6808138", "0.68052685", "0.68022233", "0.67936194", "0.6779475", "0.677876", "0.67776", "0.67519605", "0.6748509", "0.67450327", "0.67434096", "0.6740791", "0.673921", "0.67385876", "0.6736041", "0.67305946", "0.67303425", "0.6724005", "0.67176926", "0.67162037", "0.67094576", "0.67038053", "0.6700761", "0.67004526", "0.66990286", "0.6687497", "0.66859275", "0.6678251", "0.66716516", "0.66709435", "0.66697305", "0.6666796", "0.66662526", "0.6658973", "0.665275", "0.6646554", "0.66459244", "0.6640757", "0.66386056" ]
0.0
-1
Update For Delete a User With Lock
@PreAuthorize("@userAuthorize.canUpdateForDelete(#id, #version)") @RequestMapping(value = "/updateForDeleteWithLock/{id}/{version}", method = RequestMethod.PUT) public ResponseEntity<?> updateForDeleteWithLock(@PathVariable("id") Integer id, @PathVariable("version") Integer version) throws JsonParseException, JsonMappingException, IOException { User result = userService.updateForDeleteWithLock(id, version); // return. return new ResponseEntity<Integer>(result.getVersion(), HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delete(User user);", "void delete(User user);", "public void deleteUser(User userToDelete) throws Exception;", "@Override\n public void deleteUser(Integer id){\n try {\n runner.update(con.getThreadConnection(),\"delete from user where id=?\",id);\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n e.printStackTrace();\n }\n }", "public User delete(User user);", "public void deleteUser(long userId);", "public void delete(User user)throws Exception;", "@Override\n\tpublic void delete(User entity) {\n\t\t\n\t}", "@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}", "public void delete(User obj) {\n\t\t\n\t}", "public boolean delete(User user);", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}", "boolean delete(User user);", "void deleteUser(String deleteUserId);", "public void delete(Long id, Integer userVersion) throws ResourceNotFoundException, CustomValidationException {\n User user = userRepository.findOneByIdWithEagerRelationships(id)\n .orElseThrow(() -> new ResourceNotFoundException(\"User not found\"));\n\n if (!userVersion.equals(user.getVersion()))\n throw new OptimisticLockException(user);\n\n if (userRepository.countByRoleName(RolesConstants.ADMIN) <= 1)\n throw new CustomValidationException(\n \"Roles are invalid. Minimum one SUPER_ADMIN role in the application is required\");\n userRepository.delete(user);\n }", "void deleteUserById(Long id);", "@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}", "void DeleteCompteUser(int id);", "public void delete(User usuario);", "@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}", "@Override\n\tpublic void deleteUser(User user) {\n\t\topenSession().createQuery(\"DELETE FROM User where userId =\" + user.getUserId()).executeUpdate();\n\t\t\n\t}", "void deleteUser(int id);", "public User delete(String user);", "void deleteUser(String userId);", "@Override\n public boolean deleteUser(User user) {\n return false;\n }", "@Override\n\tpublic String deleteUser(Map<String, Object> reqs) {\n\t\tString result = \"success\";\n\t\tString sql = \"delete from tp_users where userId=:userId\";\n\t\n\t\ttry {\n\t\t\tjoaSimpleDao.executeUpdate(sql, reqs);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tresult = \"failed\";\n\t\t}\n\t\treturn result;\n\t}", "public void deleteUserById(Long userId);", "@Override\r\n\tpublic void deleteUser(String userid) {\n\t\ttry{\r\n\t\t\tString sql = \"delete from vipuser where id=?\";\r\n\t\t\tObject[] args = new Object[]{userid};\r\n\t\t\tdaoTemplate.update(sql, args, false);\r\n\t\t}catch (Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void updateUser(User detachedUser) throws Exception;", "public static int delete(User u){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection(); \n //melakukan query database untuk menghapus data berdasarkan id atau primary key\n PreparedStatement ps=con.prepareStatement(\"delete from t_user where id=?\"); \n ps.setInt(1,u.getId()); \n status=ps.executeUpdate(); \n }catch(Exception e){System.out.println(e);} \n\n return status; \n }", "void deleteUser(int id) throws DataAccessException;", "@Override\r\n\tpublic void delete(UserMain user) {\n\t\tusermaindao.delete(user);\r\n\t}", "@Override\n public void delete(User user) {\n dao.delete(user);\n }", "@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}", "@Override\n public void delete(Long i) {\n String sql = \"UPDATE users SET status=FALSE WHERE id=?\";\n jdbcTemplate.update(sql, i);\n\n\n }", "public boolean delete(int userId);", "@Override\r\n public void userdelete(Integer[] u_id) {\n userMapper.userdelete(u_id);\r\n }", "public int Rejuser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"delete from login where login_id=\"+id+\"\");\r\n\treturn i;\r\n\t\r\n}", "int deleteByPrimaryKey(Integer user);", "@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}", "void deleteUserById(Integer id);", "public void delete(User user){\n userRepository.delete(user);\n }", "@Override\r\n\tpublic void delete(User user) {\n\t\tuserDao.delete(user);\r\n\t}", "public void deleteUser(String name);", "@Override\n\tpublic User delete(User t) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void deleteUser(String userId) {\n\t\t\n\t}", "@Override\n\tpublic int delete(int id) {\n\t\tString SQL=\" update user set estado = 0 where idUsuario = ?\";\n\t\treturn jdbc.update(SQL, id);\n\t}", "public void delete() throws NotFoundException {\n\tUserDA.delete(this);\n }", "@Override\n\tpublic void delete(User user) throws DAOException {\n\t\t\n\t}", "@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}", "public void deleteUser(Integer uid);", "@Override\r\n\tpublic void delete(User user) {\n\t\tint iRet = dao.delete(user);\r\n\t\tif(iRet != 1){\r\n\t\t\tlogger.error(\"删除失败\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.info(\"删除成功\");\r\n\t}", "void deleteUser(String username) throws UserDaoException;", "public User updateUser(User user);", "@Delete({\r\n \"delete from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n int deleteByPrimaryKey(Integer user_id);", "@Override\r\n\tpublic void updateUser(User user) throws ToDoListDAOException{\r\n\t\t// TODO Auto-generated method stub\r\n\t\t Session session = factory.openSession();\r\n\t\t try\r\n\t\t {\r\n\t\t session.beginTransaction();\r\n\t\t Query query = session.createQuery(\"from User where userName = :user\");\r\n\t\t User ifUserExist =(User) query.setParameter(\"user\",user.getUserName()).uniqueResult();\r\n\t\t long id = ifUserExist.getId();\r\n\t\t Query query2 = session.createQuery(\"UPDATE User SET password = :pass , userName= :user\" +\r\n\t\t \" where id = :d\");\r\n\t\t query2.setParameter(\"pass\", user.getPassword());\r\n\t\t query2.setParameter(\"user\", user.getUserName());\r\n\t\t query2.setParameter(\"d\", id);\r\n\t\t query2.executeUpdate();\r\n\t\t session.getTransaction().commit();\r\n\t\t \r\n\t\t }\r\n\t\t catch (HibernateException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t if(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t }\r\n\t\t finally\r\n\t\t {\r\n\t\t\t if(session != null) \r\n\t\t\t\t{ \r\n\t\t\t\t\tsession.close(); \r\n\t\t\t\t} \r\n\t\t } \r\n\t}", "public void deleteUser(User user) {\n update(\"DELETE FROM user WHERE id = ?\",\n new Object[] {user.getId()});\n }", "@Override\n\tpublic void deleteOne(User u) {\n\t\tdao.deleteOne(u);\n\t}", "public void deleteUser(ExternalUser userMakingRequest, String userId);", "public void delete(String username);", "public void deleteUser(long id){\n userRepository.deleteById(id);\n }", "public boolean update(User u);", "@Override\n\tpublic void deleteUser(NguoiDung nd) {\n\n\t}", "@Override\r\n\tpublic void delete(Usuario t) {\n\t\t\r\n\t}", "public int Rejectuser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"delete from login where loginid=\"+id+\"\");\r\n\treturn i;\r\n\r\n}", "@RolesAllowed(\"admin\")\n @DELETE\n public Response delete() {\n synchronized (Database.users) {\n User user = Database.users.remove(username);\n if (user == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' not found\\r\\n\").\n build();\n } else {\n Database.usersUpdated = new Date();\n synchronized (Database.contacts) {\n Database.contacts.remove(username);\n }\n }\n }\n return Response.ok().build();\n }", "@Override\r\n\tpublic void deleteByIdUser(int id) {\n\t\tuserReposotory.deleteById(id);\r\n\t}", "void updateUser(User entity) throws UserDaoException;", "@Transactional\n\t@Modifying\n\t@Query(\"DELETE FROM Users t WHERE t.email =:email AND t.password =:password\")\n void deleteUser(@Param(\"email\") String email, @Param(\"password\") String password);", "public void deleteUser(View v){\n Boolean deleteSucceeded = null;\n\n int userId = users.get(userSpinner.getSelectedItemPosition() - 1).getId();\n\n // Delete user from database\n deleteSucceeded = udbHelper.deleteUser(userId);\n\n String message = \"\";\n if(deleteSucceeded){\n message = \"Successfully removed user with id {\" + userId + \"} from database!\";\n }\n else {\n message = \"Failed to save user!\";\n }\n Toast.makeText(ManageAccountsActivity.this, message, Toast.LENGTH_LONG).show();\n\n reloadUserLists();\n }", "@Override\n\tpublic void delete(List<User> entity) {\n\t\t\n\t}", "public boolean deleteUser() {\n\n //The query to send to SQLite to update a password (have to change for the proper field name\n //\n String deleteUserQuery = \"DELETE FROM UserAccount WHERE id=\" + this.ID;\n boolean updated = false;\n\n //Try / catch because when connection to database there is possible problem\n //Can handle connection problem, etc.\n try{\n //Code to delete the user\n\n\n\n if(updated){//If the updated worked\n this.userName = \"\";\n this.password = \"\";\n\n return(true);//return true\n }\n }\n catch(Exception ex)//Error in database, lost connection or something\n {\n return(false);\n }\n\n return(false);\n }", "void deleteUser( String username );", "public void deleteUser(String username);", "public void deleteUser(Integer id) throws BadRequestException;", "@Override\n public void delete(Usuario usuario) {\n }", "@Override\r\n\tpublic boolean delUser(user user) {\n\t\tif(userdao.deleteByPrimaryKey(user.gettUserid())==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "@Override\n\tpublic void delete(User user)\n\t{\n\t\tuserDAO.delete(user);\n\t}", "int delTravelByIdUser(Long id_user);", "public void delete(JTable tblUser)\n {\n int i = tblUser.getSelectedRow();\n \n if(i != -1)\n {\n usersDto = users[i];\n \n if(usersDto.getState() != 3)\n {\n if(JOptionPane.showConfirmDialog(null, \"¿Está seguro que desea eliminar el registro?\", \"Eliminar\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n {\n try {\n usersDto.setState((short) 3);\n \n if(usersDao.update(usersDto.createPk(), usersDto)) {\n tableModel = (DefaultTableModel) tblUser.getModel();\n tableModel.setValueAt(\"*\", i, 6);\n }\n \n } catch (UsersDaoException exception) {}\n }\n \n } else { JOptionPane.showMessageDialog(null, \"El registro ya está eliminado\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n \n } else { JOptionPane.showMessageDialog(null, \"Seleccione un registro a eliminar\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n }", "@Override\n\tpublic Boolean deleteUser(User user) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void deleteUser(String userName) throws ToDoListDAOException{\r\n\t\tSession session = factory.openSession();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t session.beginTransaction();\r\n\t \t Query query = session.createQuery(\"delete from User where userName = :user\");\r\n\t \t query.setParameter(\"user\", userName);\r\n\t \t int id= query.executeUpdate();\r\n\t \t System.out.println(id);\r\n\r\n\t \t session.getTransaction().commit();\r\n\t\t}\r\n\t\tcatch (HibernateException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tif(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tif(session != null) \r\n\t\t\t{ \r\n\t\t\t\tsession.close(); \r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "public boolean delete(int userId){\r\n try {\r\n PreparedStatement preSta = conn.prepareStatement(sqlDeleteUser);\r\n preSta.setInt(1, userId);\r\n if(preSta.executeUpdate() >0){\r\n return true;\r\n }\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(UserDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n finally{\r\n error =\"khong ton cai user \"+ userId;\r\n return false;\r\n }\r\n }", "public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}", "public void deleteUser(int userid) {\n\t\t\n\t}", "int deleteByPrimaryKey(String pkUserid);", "@Override\n\tpublic void delete(Connection conn, User user) throws SQLException {\n\t\tString deleteSql=\"delete from tbl_user where id=?\";\n\t\tPreparedStatement ps=conn\n\t\t\t\t.prepareCall(deleteSql);\n\t\tps.setLong(1, user.getId());\n\t\tps.execute();\n\t\t\n\t}", "@Override\r\n\tpublic boolean deleteUser() {\n\t\treturn false;\r\n\t}", "public String deleteUserDetails() {\n\r\n EntityManager em = CreateEntityManager.getEntityManager();\r\n EntityTransaction etx = em.getTransaction(); \r\n\r\n try { \r\n etx.begin(); \r\n if (golfUserDetails.getUserId() != null) {\r\n em.remove(em.merge(golfUserDetails));\r\n }\r\n etx.commit();\r\n em.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"deleteCourseDetails - remove : Exception : \" + ex.getMessage());\r\n }\r\n \r\n return displayHomePage();\r\n }", "@Override\n\tpublic String userDelete(Map<String, Object> reqs, Map<String, Object> conds) {\n\t\treturn null;\n\t}", "public void update(User user);", "public void update(Privilege pri) throws Exception {\n\t\tCommandUpdatePrivilege com=new CommandUpdatePrivilege(AuthModel.getInstance().getUser(),pri);\r\n\t\tClient.getInstance().write(com);\r\n\t\tObject obj=Client.getInstance().read();\r\n\t\tif(obj instanceof Command){\r\n\t\t\tdirty=true;\r\n\t\t\tlist=this.get(cond);\r\n\t\t\tthis.fireModelChange(list);\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tthrow new Exception(\"Delete privilege failed...\"+list);\r\n\t}", "int deleteByPrimaryKey(Long userId);", "int deleteByPrimaryKey(Long userId);", "int deleteByPrimaryKey(Long userId);", "@RequestMapping(value = \"/updateForDeleteWithLockAndEvent/{username}/{version}\", method = RequestMethod.PUT)\n\tpublic ResponseEntity<?> updateForDeleteWithLockAndEvent(@PathVariable(\"username\") String username, @PathVariable(\"version\") final Integer version) throws InterruptedException {\n\t\tMap<String, Object> syncObject = new HashMap<String, Object>();\n\t\tUser userDb = userService.getByUsername(username);\n\t\tInteger id = userDb.getId();\n\t\tThread thread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tuserService.updateForDeleteWithLockAndEvent(id, version, syncObject);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tsyncObject.put(\"error\", e.getMessage());\n\t\t\t\t\tsyncObject.notify();\n\t\t\t\t\tlogger.error(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tthread.start();\n\t\t\n\t\tsynchronized(syncObject) {\n\t\t\tsyncObject.wait();\n\t\t}\n\t\t// return.\n\t\treturn new ResponseEntity<Map<String, Object>>(syncObject, HttpStatus.OK);\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic Result deleteEntity(UacUser t) {\n\t\tResult result = new Result();\r\n\t\tt = userDao.getEntity(UacUser.class, t.getId());\r\n\t\tif(t!=null){\r\n\t\t\tuserDao.deleteEntity(t);\r\n\t\t\tresult.setRetCode(0);\r\n\t\t\tresult.setRetMsg(true);\r\n\t\t\tresult.setRetData(1);\r\n\t\t}else{\r\n\t\t\tresult.setRetCode(1001);\r\n\t\t\tresult.setRetMsg(false);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n protected Void doInBackground(Void... voids) {\n mDb.getAppDatabase()\n .mydao()\n .delete(userToDel);\n\n return null;\n }", "@Override\n\tpublic boolean doDelete(SysUser b) throws Exception {\n\t\treturn false;\n\t}" ]
[ "0.6921969", "0.6921969", "0.68809116", "0.68526113", "0.6791814", "0.6791118", "0.67369473", "0.67269045", "0.67216545", "0.67156684", "0.66983134", "0.66780776", "0.66694814", "0.66618496", "0.664999", "0.66169685", "0.6611284", "0.6609536", "0.66015303", "0.65955806", "0.6593533", "0.65728515", "0.6504052", "0.6499632", "0.6491551", "0.64890295", "0.64682835", "0.64636785", "0.64510965", "0.644222", "0.643319", "0.6427292", "0.6426699", "0.6421622", "0.6384156", "0.63754886", "0.6374187", "0.6367202", "0.6336269", "0.6328067", "0.63260823", "0.6315002", "0.6313542", "0.6313471", "0.63064015", "0.6295127", "0.62935054", "0.6287428", "0.6286398", "0.6276878", "0.62739646", "0.6252589", "0.62468034", "0.6237204", "0.6227466", "0.62260765", "0.62166995", "0.6211122", "0.62108755", "0.62069815", "0.62013394", "0.61970973", "0.619557", "0.61943954", "0.61890846", "0.6186114", "0.6181883", "0.61786956", "0.61784047", "0.6175211", "0.6168617", "0.6163642", "0.6158182", "0.6155459", "0.6150747", "0.61492544", "0.6144682", "0.61435735", "0.61350405", "0.61336136", "0.6133389", "0.61318827", "0.6125943", "0.6124669", "0.6123847", "0.61232436", "0.6122624", "0.6119467", "0.6097802", "0.6087581", "0.60853297", "0.60716", "0.60692286", "0.6068828", "0.6068828", "0.6068828", "0.6059273", "0.6059007", "0.6047515", "0.60388803" ]
0.6457344
28
Update For Delete a User With Lock And Event
@RequestMapping(value = "/updateForDeleteWithLockAndEvent/{username}/{version}", method = RequestMethod.PUT) public ResponseEntity<?> updateForDeleteWithLockAndEvent(@PathVariable("username") String username, @PathVariable("version") final Integer version) throws InterruptedException { Map<String, Object> syncObject = new HashMap<String, Object>(); User userDb = userService.getByUsername(username); Integer id = userDb.getId(); Thread thread = new Thread() { public void run() { try { userService.updateForDeleteWithLockAndEvent(id, version, syncObject); } catch (Exception e) { syncObject.put("error", e.getMessage()); syncObject.notify(); logger.error(e.getMessage()); } } }; thread.start(); synchronized(syncObject) { syncObject.wait(); } // return. return new ResponseEntity<Map<String, Object>>(syncObject, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void delete(User entity) {\n\t\t\n\t}", "void delete(User user);", "void delete(User user);", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}", "@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}", "@Override\n public void deleteUser(Integer id){\n try {\n runner.update(con.getThreadConnection(),\"delete from user where id=?\",id);\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n e.printStackTrace();\n }\n }", "public void delete(User user)throws Exception;", "@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}", "public void delete(User obj) {\n\t\t\n\t}", "public void delete(User usuario);", "public void deleteUser(User userToDelete) throws Exception;", "void DeleteCompteUser(int id);", "public User delete(User user);", "@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void deleteUser(NguoiDung nd) {\n\n\t}", "public void deleteUser(long userId);", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tUserDAO dao = new UserDAO(context);\r\n\t\t\t\tboolean b = dao.delete(\"id=?\", new String[] { id + \"\" });\r\n\t\t\t\tif (b) {\r\n\t\t\t\t\tToast.makeText(context, \"删除成功\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\tcontext.sendBroadcast(new Intent(\"UPDATE\"));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tToast.makeText(context, \"删除失败\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n\tpublic void delete(Usuario t) {\n\t\t\r\n\t}", "public boolean delete(User user);", "boolean delete(User user);", "@Override\n\tpublic String deleteUser(Map<String, Object> reqs) {\n\t\tString result = \"success\";\n\t\tString sql = \"delete from tp_users where userId=:userId\";\n\t\n\t\ttry {\n\t\t\tjoaSimpleDao.executeUpdate(sql, reqs);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tresult = \"failed\";\n\t\t}\n\t\treturn result;\n\t}", "@Override\n\tpublic void delete(List<User> entity) {\n\t\t\n\t}", "@Override\n public void delete(Usuario usuario) {\n }", "@Override\r\n public void userdelete(Integer[] u_id) {\n userMapper.userdelete(u_id);\r\n }", "void deleteUser(String deleteUserId);", "void deleteUserById(Long id);", "@Override\n public boolean deleteUser(User user) {\n return false;\n }", "public void delete(Long id, Integer userVersion) throws ResourceNotFoundException, CustomValidationException {\n User user = userRepository.findOneByIdWithEagerRelationships(id)\n .orElseThrow(() -> new ResourceNotFoundException(\"User not found\"));\n\n if (!userVersion.equals(user.getVersion()))\n throw new OptimisticLockException(user);\n\n if (userRepository.countByRoleName(RolesConstants.ADMIN) <= 1)\n throw new CustomValidationException(\n \"Roles are invalid. Minimum one SUPER_ADMIN role in the application is required\");\n userRepository.delete(user);\n }", "void deleteUser(int id);", "@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}", "@Override\n\tpublic void deleteUser(User user) {\n\t\topenSession().createQuery(\"DELETE FROM User where userId =\" + user.getUserId()).executeUpdate();\n\t\t\n\t}", "@Override\n\t\tpublic void onUserListDeletion(User arg0, UserList arg1) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void delete(ERS_USERS entity) {\n\t\t\n\t}", "@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }", "public static int delete(User u){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection(); \n //melakukan query database untuk menghapus data berdasarkan id atau primary key\n PreparedStatement ps=con.prepareStatement(\"delete from t_user where id=?\"); \n ps.setInt(1,u.getId()); \n status=ps.executeUpdate(); \n }catch(Exception e){System.out.println(e);} \n\n return status; \n }", "@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}", "public void handleDelete(ActionEvent event) throws InterruptedException{\r\n \t tempUser.removeUser(currentUser);\r\n \t feedback_Manage.setText(\"User Remove Successful!\");\r\n \t this.changeView(\"../view/Login.fxml\");\r\n }", "void deleteUser(String userId);", "@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic String userDelete(Map<String, Object> reqs, Map<String, Object> conds) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void deleteUser(String userId) {\n\t\t\n\t}", "@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic User delete(User t) {\n\t\treturn null;\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic Result deleteEntity(UacUser t) {\n\t\tResult result = new Result();\r\n\t\tt = userDao.getEntity(UacUser.class, t.getId());\r\n\t\tif(t!=null){\r\n\t\t\tuserDao.deleteEntity(t);\r\n\t\t\tresult.setRetCode(0);\r\n\t\t\tresult.setRetMsg(true);\r\n\t\t\tresult.setRetData(1);\r\n\t\t}else{\r\n\t\t\tresult.setRetCode(1001);\r\n\t\t\tresult.setRetMsg(false);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "private void deleteTodoMenu(User u) {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(UserMain user) {\n\t\tusermaindao.delete(user);\r\n\t}", "@Override\r\n\tpublic void delete( UserFields fields ) {\n\t\t\r\n\t}", "public void deleteUserById(Long userId);", "public User delete(String user);", "@Override\n\tpublic void onUserListDeletion(User listOwner, UserList list) {\n\n\t}", "@Override\r\n\tpublic void deleteUser(String userid) {\n\t\ttry{\r\n\t\t\tString sql = \"delete from vipuser where id=?\";\r\n\t\t\tObject[] args = new Object[]{userid};\r\n\t\t\tdaoTemplate.update(sql, args, false);\r\n\t\t}catch (Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void onUserListMemberDeletion(User arg0, User arg1, UserList arg2) {\n\t\t\t\n\t\t}", "@Override\n public void delete(User user) {\n dao.delete(user);\n }", "int deleteByPrimaryKey(Integer user);", "public void deleteUser(ExternalUser userMakingRequest, String userId);", "public void deleteUser(View v){\n Boolean deleteSucceeded = null;\n\n int userId = users.get(userSpinner.getSelectedItemPosition() - 1).getId();\n\n // Delete user from database\n deleteSucceeded = udbHelper.deleteUser(userId);\n\n String message = \"\";\n if(deleteSucceeded){\n message = \"Successfully removed user with id {\" + userId + \"} from database!\";\n }\n else {\n message = \"Failed to save user!\";\n }\n Toast.makeText(ManageAccountsActivity.this, message, Toast.LENGTH_LONG).show();\n\n reloadUserLists();\n }", "public void deleteUser(String name);", "public void deleteAccount() {\n final FirebaseUser currUser = FirebaseAuth.getInstance().getCurrentUser();\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference ref = database.getReference();\n ref.addListenerForSingleValueEvent( new ValueEventListener() {\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot userSnapshot : dataSnapshot.child(\"User\").getChildren()) {\n if (userSnapshot.child(\"userId\").getValue().toString().equals(currUser.getUid())) {\n //if the userId is that of the current user, check mod status\n System.out.println(\"Attempting delete calls\");\n //dataSnapshot.getRef().child(\"User\").orderByChild(\"userId\").equalTo(currUser.getUid());\n userSnapshot.getRef().removeValue();\n currUser.delete();\n //take user back to starting page\n Intent intent = new Intent(SettingsActivity.this, MainActivity.class);\n startActivity(intent);\n }\n }\n }\n public void onCancelled(DatabaseError databaseError) {\n System.out.println(\"The read failed: \" + databaseError.getCode());\n }\n });\n signOut();\n }", "@Delete({\r\n \"delete from umajin.user_master\",\r\n \"where user_id = #{user_id,jdbcType=INTEGER}\"\r\n })\r\n int deleteByPrimaryKey(Integer user_id);", "void deleteUser(int id) throws DataAccessException;", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete FiestaUserSync : {}\", id);\n fiestaUserSyncRepository.delete(id);\n }", "public void deleteUser(Integer uid);", "public boolean delete(int userId);", "public String deleteUserDetails() {\n\r\n EntityManager em = CreateEntityManager.getEntityManager();\r\n EntityTransaction etx = em.getTransaction(); \r\n\r\n try { \r\n etx.begin(); \r\n if (golfUserDetails.getUserId() != null) {\r\n em.remove(em.merge(golfUserDetails));\r\n }\r\n etx.commit();\r\n em.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"deleteCourseDetails - remove : Exception : \" + ex.getMessage());\r\n }\r\n \r\n return displayHomePage();\r\n }", "@PreAuthorize(\"@userAuthorize.canUpdateForDelete(#id, #version)\")\n\t@RequestMapping(value = \"/updateForDeleteWithLock/{id}/{version}\", method = RequestMethod.PUT)\n\tpublic ResponseEntity<?> updateForDeleteWithLock(@PathVariable(\"id\") Integer id, @PathVariable(\"version\") Integer version) throws JsonParseException, JsonMappingException, IOException {\n\t\tUser result = userService.updateForDeleteWithLock(id, version);\n\t\t// return.\n\t\treturn new ResponseEntity<Integer>(result.getVersion(), HttpStatus.OK);\n\t}", "@Override\n\tpublic void delete(User user) throws DAOException {\n\t\t\n\t}", "void deleteUserById(Integer id);", "public void delete(JTable tblUser)\n {\n int i = tblUser.getSelectedRow();\n \n if(i != -1)\n {\n usersDto = users[i];\n \n if(usersDto.getState() != 3)\n {\n if(JOptionPane.showConfirmDialog(null, \"¿Está seguro que desea eliminar el registro?\", \"Eliminar\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)\n {\n try {\n usersDto.setState((short) 3);\n \n if(usersDao.update(usersDto.createPk(), usersDto)) {\n tableModel = (DefaultTableModel) tblUser.getModel();\n tableModel.setValueAt(\"*\", i, 6);\n }\n \n } catch (UsersDaoException exception) {}\n }\n \n } else { JOptionPane.showMessageDialog(null, \"El registro ya está eliminado\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n \n } else { JOptionPane.showMessageDialog(null, \"Seleccione un registro a eliminar\", \"ERROR\", JOptionPane.ERROR_MESSAGE); }\n }", "private void deleteLeftOversFromDB(String uid, String message){\n Toast.makeText(RegistrationActivity.this, message, Toast.LENGTH_LONG).show();\n database.getReference(\"ids\").child(uid).removeValue(); //remove the id from ids if user wasn't created eventually\n mAuth.getCurrentUser().delete(); // remove the user from the authentication db if user not created\n }", "public void delete() throws NotFoundException {\n\tUserDA.delete(this);\n }", "@Override\n public void delete(Long i) {\n String sql = \"UPDATE users SET status=FALSE WHERE id=?\";\n jdbcTemplate.update(sql, i);\n\n\n }", "@Override\n\tpublic int delete(int id) {\n\t\tString SQL=\" update user set estado = 0 where idUsuario = ?\";\n\t\treturn jdbc.update(SQL, id);\n\t}", "public void updateUser(User detachedUser) throws Exception;", "public int Rejectuser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"delete from login where loginid=\"+id+\"\");\r\n\treturn i;\r\n\r\n}", "@Override\n\tpublic void deleteOne(User u) {\n\t\tdao.deleteOne(u);\n\t}", "@Transactional\n\t@Modifying\n\t@Query(\"DELETE FROM Users t WHERE t.email =:email AND t.password =:password\")\n void deleteUser(@Param(\"email\") String email, @Param(\"password\") String password);", "public int Rejuser(Long id) throws SQLException {\n\tint i=DbConnect.getStatement().executeUpdate(\"delete from login where login_id=\"+id+\"\");\r\n\treturn i;\r\n\t\r\n}", "@Override\n\tpublic void delete(Usuario object) {\n\n\t}", "int delTravelByIdUser(Long id_user);", "@RolesAllowed(\"admin\")\n @DELETE\n public Response delete() {\n synchronized (Database.users) {\n User user = Database.users.remove(username);\n if (user == null) {\n return Response.status(404).\n type(\"text/plain\").\n entity(\"User '\" + username + \"' not found\\r\\n\").\n build();\n } else {\n Database.usersUpdated = new Date();\n synchronized (Database.contacts) {\n Database.contacts.remove(username);\n }\n }\n }\n return Response.ok().build();\n }", "@Override\n\tpublic boolean doDelete(SysUser b) throws Exception {\n\t\treturn false;\n\t}", "void deleteUser(String username) throws UserDaoException;", "public void removeUser(int id) throws AdminPersistenceException {\n CallBackManager.invoke(CallBackManager.ACTION_BEFORE_REMOVE_USER, id, null,\n null);\n \n UserRow user = getUser(id);\n if (user == null)\n return;\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" des groupes dans la base\", null);\n GroupRow[] groups = organization.group.getDirectGroupsOfUser(id);\n for (int i = 0; i < groups.length; i++) {\n organization.group.removeUserFromGroup(id, groups[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" des rôles dans la base\", null);\n UserRoleRow[] roles = organization.userRole.getDirectUserRolesOfUser(id);\n for (int i = 0; i < roles.length; i++) {\n organization.userRole.removeUserFromUserRole(id, roles[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Suppression de \" + user.login\n + \" en tant que manager d'espace dans la base\", null);\n SpaceUserRoleRow[] spaceRoles = organization.spaceUserRole\n .getDirectSpaceUserRolesOfUser(id);\n for (int i = 0; i < spaceRoles.length; i++) {\n organization.spaceUserRole.removeUserFromSpaceUserRole(id,\n spaceRoles[i].id);\n }\n \n SynchroReport.info(\"UserTable.removeUser()\", \"Delete \" + user.login\n + \" from user favorite space table\", null);\n UserFavoriteSpaceDAO ufsDAO = DAOFactory.getUserFavoriteSpaceDAO();\n if (!ufsDAO.removeUserFavoriteSpace(new UserFavoriteSpaceVO(id, -1))) {\n throw new AdminPersistenceException(\"UserTable.removeUser()\",\n SilverpeasException.ERROR, \"admin.EX_ERR_DELETE_USER\");\n }\n \n SynchroReport.debug(\"UserTable.removeUser()\", \"Suppression de \"\n + user.login + \" (ID=\" + id + \"), requête : \" + DELETE_USER, null);\n \n // updateRelation(DELETE_USER, id);\r\n // Replace the login by a dummy one that must be unique\r\n user.login = \"???REM???\" + Integer.toString(id);\n user.accessLevel = \"R\";\n user.specificId = \"???REM???\" + Integer.toString(id);\n updateRow(UPDATE_USER, user);\n }", "public void deleteUserJoinsbyTid(Integer tid);", "public void update(Privilege pri) throws Exception {\n\t\tCommandUpdatePrivilege com=new CommandUpdatePrivilege(AuthModel.getInstance().getUser(),pri);\r\n\t\tClient.getInstance().write(com);\r\n\t\tObject obj=Client.getInstance().read();\r\n\t\tif(obj instanceof Command){\r\n\t\t\tdirty=true;\r\n\t\t\tlist=this.get(cond);\r\n\t\t\tthis.fireModelChange(list);\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tthrow new Exception(\"Delete privilege failed...\"+list);\r\n\t}", "@Override\r\n\tpublic void delete(User user) {\n\t\tint iRet = dao.delete(user);\r\n\t\tif(iRet != 1){\r\n\t\t\tlogger.error(\"删除失败\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.info(\"删除成功\");\r\n\t}", "@Override\r\n\tpublic void delete(User user) {\n\t\tuserDao.delete(user);\r\n\t}", "@Override\n\tpublic Boolean deleteUser(User user) {\n\t\treturn null;\n\t}", "@Override\n public Completable invalidateSession(UserEntity userEntity) {\n userEntity.setGuestUser(true);\n userEntity.setTMDBPassword(\"\");\n userEntity.setTMDBUsername(\"Guest\");\n userEntity.setSessionId(\"\");\n userEntity.setHasOpenSession(false);\n return this.userRepository.updateUser(userEntity);\n }", "@Override\r\n\tpublic boolean deleteUser() {\n\t\treturn false;\r\n\t}", "void onUserRemoved(@UserIdInt int userId);", "@Override\r\n\tpublic boolean delUser(user user) {\n\t\tif(userdao.deleteByPrimaryKey(user.gettUserid())==1){\r\n\t\t\treturn true;}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t}", "public void delete(String username);", "void deleteUser( String username );", "public void delete(User user){\n userRepository.delete(user);\n }", "CratePrize removeEditingUser(Player player);", "@Override\r\n\tpublic void deleteUser(String userName) throws ToDoListDAOException{\r\n\t\tSession session = factory.openSession();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t session.beginTransaction();\r\n\t \t Query query = session.createQuery(\"delete from User where userName = :user\");\r\n\t \t query.setParameter(\"user\", userName);\r\n\t \t int id= query.executeUpdate();\r\n\t \t System.out.println(id);\r\n\r\n\t \t session.getTransaction().commit();\r\n\t\t}\r\n\t\tcatch (HibernateException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tif(session.getTransaction()!=null) session.getTransaction().rollback();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tif(session != null) \r\n\t\t\t{ \r\n\t\t\t\tsession.close(); \r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "@DeleteMapping(\"/{userId}\")\n @PreAuthorize(\"hasAnyAuthority('ADMIN','MANAGER')\")\n public void delete(@PathVariable(value=\"userId\") int userId){\n userService.delete(userData,userId);\n }", "@PreAuthorize(\"@userAuthorize.canUpdate(#user)\")\n\t@RequestMapping(value = \"/updateWithLock/{id}\", method = RequestMethod.PUT)\n\tpublic ResponseEntity<?> updateWithLock(@PathVariable(\"id\") Integer id, @RequestBody User user, @RequestParam Map<String, Object> params) throws JsonParseException, JsonMappingException, IOException, KeyManagementException, UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, CertificateException {\n\t\t// Call serverauth to create user.\n\t String serverauthUrl = evn.getProperty(\"serverauth.url\");\n\t String token = params.get(\"token\").toString();\n\t Map<String, Object> data = new HashMap<String, Object>();\n\t data.put(\"id\", user.getId());\n\t data.put(\"username\", user.getUsername());\n\t //data.put(\"password\", user.getPassword());\n\t data.put(\"displayname\", user.getDisplayname());\n\t data.put(\"thumbnail\", user.getThumbnail());\n\t data.put(\"enabled\", true);\n\t ResponseEntity<Object> response = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/updateWithEvent/\" + user.getUsername(), HttpMethod.PUT, token, null, data, null);\n\t Map<String, Object> resultRemote = (Map<String, Object>) response.getBody();\n\t if(resultRemote.get(\"error\") != null) {\n\t \t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t \n\t try {\n\t \t//user.setPassword(CommonUtil.encrypt(user.getPassword()));\n\t \tUser result = userService.updateWithLock(id, user);\n\t\t\t// Call serverauth to confirm create user as SUCCESS.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_SUCCESS, HttpMethod.GET, token, null, null, null);\n\t\t\t// return.\n\t\t\treturn new ResponseEntity<Integer>(result.getVersion(), HttpStatus.OK);\n\t } catch(Exception ex) {\n\t\t\t// Call serverauth to confirm create user as ABORT.\n\t\t\tresponse = RestAPIHelper.exchangeSSLService(serverauthUrl + \"/users/confirmStatus/\" + resultRemote.get(\"id\") + \"/\" + Constant.SERVICETRANSACTION_ABORT, HttpMethod.GET, token, null, null, null);\n\t\t\t// throw server exception.\n\t\t \tthrow new ServerException(Constant.SERVERCODE_ERROR);\n\t }\n\t}" ]
[ "0.66837937", "0.6577753", "0.6577753", "0.65436524", "0.6488864", "0.6483357", "0.6471322", "0.64534146", "0.64358795", "0.6435511", "0.64169604", "0.63895535", "0.6387497", "0.63816655", "0.635978", "0.6342296", "0.6341075", "0.63245237", "0.62972426", "0.6293678", "0.6286943", "0.6278094", "0.62677264", "0.6247799", "0.62419796", "0.6222451", "0.6190028", "0.6186292", "0.61499697", "0.614757", "0.61452615", "0.6141366", "0.61242", "0.6123379", "0.6092169", "0.6085509", "0.6080054", "0.607952", "0.60781777", "0.60762733", "0.6073834", "0.60538274", "0.60520715", "0.60466856", "0.60452855", "0.6038053", "0.6035105", "0.60271025", "0.60270476", "0.60069174", "0.6002652", "0.60018593", "0.5998933", "0.59954864", "0.5994931", "0.59912246", "0.5990024", "0.59830624", "0.5980323", "0.5964157", "0.59591746", "0.59465194", "0.59362715", "0.59325707", "0.5931079", "0.5917094", "0.59141994", "0.5911888", "0.5908996", "0.5908684", "0.58983177", "0.58937126", "0.58931315", "0.5892469", "0.58877534", "0.58794636", "0.5874756", "0.5873771", "0.58708173", "0.5867265", "0.5865409", "0.58646286", "0.58531857", "0.5850762", "0.5850273", "0.5849413", "0.5847771", "0.5845173", "0.5825302", "0.58128166", "0.58117783", "0.581019", "0.58038116", "0.5801079", "0.58007276", "0.5798274", "0.5794674", "0.57931536", "0.5793008", "0.57901603" ]
0.6294092
19
Delete a User With Event
@PreAuthorize("@userAuthorize.canDelete(#id)") @RequestMapping(value = "/deleteWithEvent/{id}", method = RequestMethod.DELETE) public ResponseEntity<?> deleteWithEvent(@PathVariable("id") Integer id) throws InterruptedException { Map<String, Object> syncObject = new HashMap<String, Object>(); Thread thread = new Thread() { public void run() { try { userService.deleteWithEventById(id, syncObject); } catch (Exception e) { syncObject.put("error", e.getMessage()); syncObject.notify(); logger.error(e.getMessage()); } } }; thread.start(); synchronized(syncObject) { syncObject.wait(); } // return. return new ResponseEntity<Map<String, Object>>(syncObject, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void delete(User user);", "void delete(User user);", "public void deleteUser(User userToDelete) throws Exception;", "public void delete(User usuario);", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "public void delete(User user)throws Exception;", "@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}", "public User delete(User user);", "public boolean delete(User user);", "public void delete(Long id) {\n log.debug(\"Request to delete UserEvents : {}\", id);\n userEventsRepository.delete(id);\n }", "boolean delete(User user);", "void deleteUser(int id);", "public abstract CalendarEvent removeEvent(User user, String id);", "@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }", "void deleteUser(String deleteUserId);", "@Override\n\tpublic void delete(User entity) {\n\t\t\n\t}", "void deleteUser(String userId);", "public User delete(String user);", "@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}", "public void deleteUser(long userId);", "void deleteUserById(Integer id);", "public void deleteEvent() {\r\n database.eventDao().delete(event.uid);\r\n finish();\r\n }", "void deleteUserById(Long id);", "public void deleteUser(String name);", "@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}", "public void delete(User obj) {\n\t\t\n\t}", "void deleteEvent(Long id);", "@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}", "@Override\n\tpublic void deleteUserById(Integer id) {\n\n\t}", "@Override\n\tpublic void deleteUser(NguoiDung nd) {\n\n\t}", "@FXML\n\tpublic void deleteUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString id = txtDeleteUserId.getText();\n\t\tif (!id.equals(empty)) {\n\t\t\tboolean found = restaurant.findUser(id);\n\t\t\tif (found == true) {\n\t\t\t\ttry {\n\t\t\t\t\trestaurant.deleteUser(txtDeleteUserId.getText());\n\t\t\t\t\trestaurant.saveUsersData();\n\t\t\t\t\tAlert alert = new Alert(AlertType.CONFIRMATION);\n\t\t\t\t\talert.setTitle(\"Confirmation Dialog\");\n\t\t\t\t\talert.setHeaderText(\"Delete User\");\n\t\t\t\t\talert.setContentText(\"The user has been deleted\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t\ttxtDeleteUserId.setText(\"\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los datos\");\n\t\t\t\t\tdialog.setTitle(\"Error guardar datos\");\n\t\t\t\t\tdialog.show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"El usuario no existe\");\n\t\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Ingrese la identificacion del usuario a eliminar\");\n\t\t\tdialog.setTitle(\"Error al eliminar usuario\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "public void deleteExercise(User user) {\n\n\t}", "public void deleteUser(Integer id) throws BadRequestException;", "public void deleteUser(ExternalUser userMakingRequest, String userId);", "public void deleteUser(String username);", "@Override\n\tpublic void deleteUser(String userId) {\n\t\t\n\t}", "public void deleteUserById(Long userId);", "void deleteUser( String username );", "public void deleteUser(Integer uid);", "DeleteUserResult deleteUser(DeleteUserRequest deleteUserRequest);", "public void destroy(User user);", "@Override\n\tpublic int deleteEventFromEventSignUpDAO(EventSignUp e) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}", "@Override\n public boolean deleteUser(User user) {\n return false;\n }", "@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}", "public void delete(User user){\n userRepository.delete(user);\n }", "@Override\n public void delete(Usuario usuario) {\n }", "@Override\n\tpublic void deleteUser(User user) {\n\t\topenSession().createQuery(\"DELETE FROM User where userId =\" + user.getUserId()).executeUpdate();\n\t\t\n\t}", "@Override\n\tpublic void deleteOne(User u) {\n\t\tdao.deleteOne(u);\n\t}", "@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}", "@Override\n\tpublic void delete(ERS_USERS entity) {\n\t\t\n\t}", "public void deleteUserRequest(UserRequest request){\n userRequests.remove(request);\n }", "void deleteEvent(String actorId, String objectId, Date eventTime);", "@Override\r\n\tpublic void delete(Usuario t) {\n\t\t\r\n\t}", "void deleteUser(User user, String token) throws AuthenticationException;", "void DeleteCompteUser(int id);", "public void deleteUsuario(Usuario usuario) {\n\t\t\n\t}", "void deleteUser(String username) throws UserDaoException;", "public void delete(String username);", "private void deleteEventsWithUser(Person userToDelete) {\n ArrayList<Event> deletedEvents = new ArrayList<>();\n for (Event event : versionedAddressBook.getEventList()) {\n if (event.getOrganiser().equals(userToDelete)) {\n deletedEvents.add(event);\n }\n event.deletePerson(userToDelete);\n }\n for (Event event : deletedEvents) {\n versionedAddressBook.removeEvent(event);\n }\n }", "int removeUser(User user);", "@Override\n public void delete(User user) {\n dao.delete(user);\n }", "int deleteByExample(EventExample example);", "@Override\r\n public void userdelete(Integer[] u_id) {\n userMapper.userdelete(u_id);\r\n }", "@Override\n\tpublic void delUser(String[] id) {\n\n\t}", "@Override\n\tpublic User delete(User t) {\n\t\treturn null;\n\t}", "void removeUser(Long id);", "@RequestMapping(value = \"/{userSlug}/remove-event\", method = RequestMethod.POST)\n\tpublic User removeEvent(@RequestBody User entity) {\n\t\tdao.saveOrUpdate(entity);\n User user = (User)dao.getBySlug(entity.getSlug());\n\t\treturn user;\n\t}", "public String deleteUser(){\n\t\tusersservice.delete(usersId);\n\t\treturn \"Success\";\n\t}", "public void deleteUser(User user) {\n update(\"DELETE FROM user WHERE id = ?\",\n new Object[] {user.getId()});\n }", "@Override\r\n\tpublic void delete(UserMain user) {\n\t\tusermaindao.delete(user);\r\n\t}", "int deleteByExample(EventDetail eventDetail);", "@Override\n\tpublic Boolean deleteUser(User user) {\n\t\treturn null;\n\t}", "public void deleteEvents(String userName)\n throws DatabaseException {\n\n PreparedStatement stmt = null;\n try {\n String sql =\n \"delete from Events \" +\n \"where Descendant = ?\";\n stmt = connection.prepareStatement(sql);\n stmt.setString(1, userName);\n\n stmt.executeUpdate();\n\n } catch (SQLException e) {\n throw new DatabaseException(e);\n } finally {\n\n if (stmt != null) {\n try {\n stmt.close();\n } catch (SQLException e) {\n logger.log(Level.FINEST, e.getMessage(), e);\n }\n }\n\n }\n }", "public boolean delete(int userId);", "public String deleteUser(){\n\t\ttry{\n\t\t\tnew UtenteDao().deleteUser(utente_target);\n\t\t\treturn \"Utente eliminato con successo!\";\n\t\t}\n\t\tcatch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void delete(User user) {\n\t\tuserDao.delete(user);\r\n\t}", "private void deleteTodoMenu(User u) {\n\t\t\n\t}", "public void deleteEvent(View v)\n\t{\n\t\tmEvent.deleteInBackground();\n\t\tToast.makeText(getApplicationContext(), \"Event deleted.\", Toast.LENGTH_SHORT).show();\n\t\tfinish();\n\t}", "public void deleteUser(int userid) {\n\t\t\n\t}", "int deleteByExample(UUserExample example);", "@Override\n\tpublic void delete(UserRole vo) {\n\n\t}", "public void deleteUser(long id){\n userRepository.deleteById(id);\n }", "@Test\n\tpublic void test_delete_user_success(){\n template.delete(REST_SERVICE_URI + \"/\" + getLastUser().getId() + ACCESS_TOKEN + token);\n }", "public void handleDelete(ActionEvent event) throws InterruptedException{\r\n \t tempUser.removeUser(currentUser);\r\n \t feedback_Manage.setText(\"User Remove Successful!\");\r\n \t this.changeView(\"../view/Login.fxml\");\r\n }", "void onUserRemoved(@UserIdInt int userId);", "public void removeUser(Customer user) {}", "public void deleteUserById(int id){\n userListCtrl.deleteUser(id);\n }", "@Override\n\tpublic String delete(User user) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void delete(List<User> entity) {\n\t\t\n\t}", "@Override\n\tpublic void delete_User(String user_id) {\n\t\tuserInfoDao.delete_User(user_id);\n\t}", "@Override\n\tpublic void delete(User user)\n\t{\n\t\tuserDAO.delete(user);\n\t}", "public void deleteUser(View v){\n Boolean deleteSucceeded = null;\n\n int userId = users.get(userSpinner.getSelectedItemPosition() - 1).getId();\n\n // Delete user from database\n deleteSucceeded = udbHelper.deleteUser(userId);\n\n String message = \"\";\n if(deleteSucceeded){\n message = \"Successfully removed user with id {\" + userId + \"} from database!\";\n }\n else {\n message = \"Failed to save user!\";\n }\n Toast.makeText(ManageAccountsActivity.this, message, Toast.LENGTH_LONG).show();\n\n reloadUserLists();\n }", "void deleteUser(int id) throws DataAccessException;", "@Override\n public boolean deleteUser(User user) {\n return controller.deleteUser(user);\n }", "@Delete\n void delete(UsersEntity usersEntity);", "@Override\n\tpublic void delete(User user) throws DAOException {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tUserDAO dao = new UserDAO(context);\r\n\t\t\t\tboolean b = dao.delete(\"id=?\", new String[] { id + \"\" });\r\n\t\t\t\tif (b) {\r\n\t\t\t\t\tToast.makeText(context, \"删除成功\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\tcontext.sendBroadcast(new Intent(\"UPDATE\"));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tToast.makeText(context, \"删除失败\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\tpublic int delete(Users user) {\n\t\t\n\t\treturn userDAO.delete(user);\n\t}", "public void delete(User user) {\n repository.delete(user);\n }", "public void delete() throws NotFoundException {\n\tUserDA.delete(this);\n }" ]
[ "0.7470391", "0.7470391", "0.73792017", "0.73768634", "0.7363339", "0.73625183", "0.73254126", "0.72965705", "0.72634953", "0.7198895", "0.7197418", "0.71663207", "0.7157415", "0.7149586", "0.71479106", "0.7140904", "0.7138531", "0.7133298", "0.7116126", "0.7074156", "0.7056557", "0.70507264", "0.70346594", "0.7031686", "0.7020679", "0.7019851", "0.70068663", "0.69702363", "0.69434685", "0.69330573", "0.68990684", "0.68819416", "0.6879954", "0.6874212", "0.68687147", "0.68662375", "0.68303615", "0.6821543", "0.6818227", "0.679992", "0.67961365", "0.67870957", "0.6773763", "0.6770013", "0.67659205", "0.67361", "0.6730921", "0.6722186", "0.66937965", "0.6688743", "0.66801876", "0.66766137", "0.66721", "0.66717595", "0.66708016", "0.66518277", "0.6640411", "0.66168", "0.6613862", "0.6611837", "0.6605636", "0.6602765", "0.6594409", "0.65891474", "0.65854836", "0.65844816", "0.65790945", "0.65754014", "0.657048", "0.65581137", "0.6546053", "0.65360683", "0.6534099", "0.65329134", "0.6529011", "0.6525857", "0.6518396", "0.65168554", "0.6514873", "0.65120935", "0.65045136", "0.6504152", "0.6497981", "0.6495308", "0.64895993", "0.6479931", "0.6466515", "0.64589626", "0.64551026", "0.64480305", "0.6423557", "0.6423094", "0.6420887", "0.64195585", "0.64138496", "0.6411373", "0.6410281", "0.6406751", "0.6406076", "0.64026845", "0.6402027" ]
0.0
-1
Retrieve User Info By UserName
@RequestMapping(value = "/getUserInfoByUsername/{username}", method = RequestMethod.GET) public ResponseEntity<?> getUserInfoByUsername(@PathVariable("username") String username, HttpServletRequest request) throws JsonProcessingException { User user = userService.getByUsername(username); // User info. Map<String, Object> userinfo = new HashMap<String, Object>(); userinfo.put("iduser", user.getId()); userinfo.put("url", CommonUtil.getBaseUrl(request)); // Encrypt. ObjectMapper objectMapper = new ObjectMapper(); Map<String, Object> result = new HashMap<String, Object>(); result.put("iduser", user.getId()); result.put("username", username); // Ecrypt userinfo. String info = CommonUtil.encrypt(objectMapper.writeValueAsString(userinfo)); result.put("info", info); // return. return new ResponseEntity<Map<String, Object>>(result, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User search_userinfo(String user_name);", "UserInfo getUserInfo(String username);", "@Override\n\tpublic User getUserInfoByName(String name) {\n\t\treturn userRepository.getUserInfoByName(name);\n\t}", "@Override\n public User getUserInfo(String userName) {\n Map params = new HashMap<String, Object>();\n params.put(CommonSqlProvider.PARAM_WHERE_PART, User.QUERY_WHERE_USERNAME);\n params.put(User.PARAM_USERNAME, userName);\n return getRepository().getEntity(User.class, params);\n }", "public User getUser(String name);", "public User getUser(String name);", "public User getUserByName(String username);", "public User getUserByName(String username);", "User getUserByUsername(String name) throws InvalidUserException;", "@Override\r\n\tpublic Userinfo findbyname(String name) {\n\t\treturn userDAO.searchUserByName(name);\r\n\t}", "public User getUserByUserName(String username);", "public User getSpecificUser(String username);", "public User getUserByUserName(String userName);", "java.lang.String getUser();", "public User getUser(String username);", "User loadUserByUserName(String userName);", "public User getUser(String userName);", "public User getUserDetails(String username);", "public AgtUser findUserByName(String username);", "User getUserInformation(Long user_id);", "@Override\n public User getUserByUsername(String name) {\n \tSession session = this.sessionFactory.getCurrentSession(); \n \tQuery query = session.createQuery(\"from User where username=:username\");\n\t\tquery.setParameter(\"username\", name);\n\t\tUser u = (User) query.uniqueResult();\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }", "public User getUserByUsername(String username);", "User getUserByUsername(String username);", "User getUserByUsername(String username);", "User getUserByUsername(String username);", "String getUser();", "String getUser();", "User getUser(String username);", "@Override\n\tpublic String getUser(String uname) {\n\t\tReadSQLUtil.sqlSource = config.getProperty(\"SQLDirectory\");\n\t\tMap<String, String> aPs = new HashMap<String, String>();\n\t\taPs.put(\"u_name\", uname);\n\t\tString fileName = \"user/Users.txt\";\n\t\tString aSql = ReadSQLUtil.ReadSqlFile(fileName);\n\t\tString sql = dbUtils.getSQL(aSql, aPs);\n\t\tJSONArray aJson = dbDao.getTable(sql);\n\t\tString res = JSON.toJSONString(aJson);\n\t\treturn res;\n\t}", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public User getUser (String userName);", "private String getUser(String name) {\n\t\treturn null;\n\t}", "public User get(String username);", "String getUserName(String userId);", "public String getUserName(int userId);", "User getUser(String userName) throws UserNotFoundException;", "public MetaUser getMetaUser(String sName);", "public UserQueryEntity getByName(String userName);", "public User getProf(String name) { return userDAO.getProfile(name); }", "List<User> getUserByName(String name);", "public User getUser (String userName) {\n return userMap.get(userName);\n }", "public User retrieveUser(String name)\r\n\t{\r\n\t\t\r\n\t\treturn users.get(name);\r\n\t}", "String getUserName();", "String getUserName();", "public User getUserFromUname(String u_Name){\n return userDao.getUserFromUsername(u_Name).get(0); \n }", "User getByName(String name);", "@Override\n public User getUserByName(final String name){\n Query query = sessionFactory.getCurrentSession().createQuery(\"from User where username = :name\");\n query.setParameter(\"name\", name);\n return (User) query.uniqueResult();\n }", "User findUserByName(String name);", "User get(String username) throws UserNotFoundException, SQLException;", "User browseUserByUsername(String username);", "private String searchForUser() {\n String userId = \"\";\n String response = given().\n get(\"/users\").then().extract().asString();\n List usernameId = from(response).getList(\"findAll { it.username.equals(\\\"Samantha\\\") }.id\");\n if (!usernameId.isEmpty()) {\n userId = usernameId.get(0).toString();\n }\n return userId;\n }", "User getUser(String userName) throws InstanceNotFoundException;", "@Override\r\n public User getUserByName(String username) {\n return userMapper.getUserByName(username);\r\n }", "@Override\n public User getUser(String username) {\n return userDataMapper.getUserByUserName(username);\n }", "public User whoIsTheUser(String name){\n boolean space5 = false;\n User userPrivate = null;\n for(int i = 0; i<MAX_USER && !space5; i++){\n userPrivate = user[i];\n if(userPrivate.getUserName().equals(name)){\n space5 = true;\n }\n }\n return userPrivate;\n }", "@Override\n public User getUserByName(String userName) {\n return userRepository.findUserByUserName(userName);\n }", "User get(String name);", "public User queryUserByUsername(String username);", "public MsUser getUser(final String name) {\n return users.get(name);\n }", "public String userInfo(String name){\r\n\t\tString message=\"Este usuario NO existe \";\r\n\t\tint[] info = findUser(name);\r\n\t\tif(info[0]==1)\r\n\t\t\tmessage=user[info[1]].showInfo();\r\n\t\treturn message;\r\n\t}", "@Override\n\tpublic UserDetails loadUserByUsername(String arg0) throws UsernameNotFoundException {\n\t\tList <UserDetailsPojo> list=dao.getUserByName(arg0);\n\t\tif(list==null || list.size()==0){\t\t\n\t\tthrow new UsernameNotFoundException(\"No user available\");\n\t\t}\n\t\t\n\t\tUserDetailsPojo user=list.get(0);\n\t\t\n\t\treturn user;\n\t}", "public UserProfile getUserProfile(String username);", "KingdomUser getUser(String username);", "@Override\n\tpublic User getUserInfo(String username) throws BusinessException, UserException {\n\t\tUser user = new User();\n\t\tuser = (User) userDao.getUserByUsername(username);\n\t\treturn user;\n\t}", "@Override\n\tpublic User getByName(String name) {\n\t\treturn userDao.getByName(name);\n\t}", "User loadUser( String username ) throws UserNotFoundException;", "@Override\n\tpublic User getUserByName(String name) {\n\t\tweibo4j.model.User u = null;\n\t\ttry {\n\t\t\tu = um.showUserByName(name);\n\t\t} catch (WeiboException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tlog.error(WeiboExceptionHandle.getErrorString(e, \"获取最新用户\" + name\n\t\t\t\t\t+ \"错误\"));\n\t\t\treturn null;\n\t\t}\n\t\treturn userConverter.convert(u);\n\t}", "public boolean getUser(String name) {\r\n PomoServer server = new PomoServer();\r\n String parameters = PomoServer.MODE_SELECT + \"&\" + \"name=\" + name;\r\n String url = PomoServer.DOMAIN_URL + PomoServer.SERVLET_USER;\r\n String data = server.get(url, parameters);\r\n return data.equals(\"1\");\r\n }", "@Override\n\tpublic UserProfile getUserByUserName(String userName) {\n\t\tMongoOperations mongoOp = (MongoOperations) mongoTemplate;\n\t\t\n\t\t//Query 'Patient' collection by Health Code\n\t\tQuery searchByUserName = new Query(Criteria\n\t\t\t\t\t\t\t\t.where(\"userName\")\n\t\t\t\t\t\t\t\t.is(userName)); \n\t\tUserProfile userProfile = mongoOp.findOne(searchByUserName,UserProfile.class);\n\t\treturn userProfile;\n\t}", "public static EaseUser getUserInfo(String username){\n if(userProvider != null)\n return userProvider.getUser(username);\n \n return null;\n }", "@Override\n\tpublic UserInfo getUserInfo() {\n\t\tHttpSession session = RpcContext.getHttpSession();\n String auth = (String)session.getAttribute(\"auth\");\n UserInfo ui = null;\n if (auth != null) {\n\t switch(AuthType.valueOf(auth)) {\n\t\t case Database: {\n\t\t String username = (String)session.getAttribute(\"username\");\n\t\t \t\tui = _uim.select(username);\n\t\t \t\tbreak;\n\t\t }\n\t\t case OAuth: {\n\t\t \t\tString googleid = (String)session.getAttribute(\"googleid\");\n\t\t \t\tui = _uim.selectByGoogleId(googleid);\n\t\t \t\tbreak;\n\t\t }\n\t }\n }\n\t\treturn ui;\n\t}", "String getUserUsername();", "User getByUsername(String username);", "public String[] getUserInfo(String usr, String key);", "String extractUserNameFromData(String userInfoDataFromServer);", "String getUserInfoFromServer(String userID);", "public int search_userid(String user_name);", "@Override\r\n\tpublic User findUser(String name) {\n\t\tSession session=DaoUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.\r\n\t\t\r\n\t\t\r\n\t\treturn user;\r\n\t}", "UserInfo getUserById(Integer user_id);", "public boolean findUserBYName(String name);", "public User getUserByName(String name) {\n return getDbContext().select().from(USER).where(USER.USER_NAME.eq(name)).fetchOneInto(User.class);\n }", "UserInfo getUserInfo();", "@Override\n\tpublic User getUserInfoById(String idUser) {\n\t\treturn userRepository.getUserInfoById(idUser);\n\t}", "@Override\n\tpublic Map<String, Object> getUserAccountInfo(String userId) {\n\t\tString sql = \"select userId,userName,realName where userId=:userId\";\n\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\tparams.put(\"userId\", userId);\n\t\treturn joaSimpleDao.queryForList(sql, params).get(0);\n\t}", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getUserName();", "@Override\n\tpublic Map<String, Object> getUserInfoDetail(Map<String, Object> reqs) {\n\t\treturn joaSimpleDao.retrieve(\"tp_users\", reqs);\n\t}", "public SecurityUser findByName(String username);", "public void onGetName(String user,String name);", "@AutoEscape\n\tpublic String getUser_name();", "@Override\n public User getUser(String userName) {\n\n return null;\n }" ]
[ "0.7971221", "0.76925045", "0.76479864", "0.75937533", "0.7517123", "0.7517123", "0.7511347", "0.7511347", "0.7449696", "0.73614264", "0.73445755", "0.7318502", "0.7312526", "0.71706396", "0.71535164", "0.71272707", "0.7117517", "0.70929605", "0.7088698", "0.70886326", "0.70812184", "0.70724034", "0.7045175", "0.7045175", "0.7045175", "0.7040722", "0.7040722", "0.70341754", "0.70231926", "0.7019119", "0.7019119", "0.7019119", "0.7008713", "0.6992636", "0.6962457", "0.69563204", "0.6929244", "0.6912782", "0.68900067", "0.68806905", "0.6875626", "0.68711126", "0.6870929", "0.68568027", "0.6846223", "0.6846223", "0.6838082", "0.6825806", "0.67803806", "0.67761487", "0.67685443", "0.6759238", "0.67413545", "0.6739754", "0.67332447", "0.6732581", "0.6708077", "0.6707074", "0.6706371", "0.6704926", "0.668605", "0.66859955", "0.66822344", "0.66722065", "0.6670847", "0.66696", "0.66577226", "0.66566056", "0.6649948", "0.6647599", "0.66374743", "0.66316414", "0.6623802", "0.66229737", "0.6617874", "0.6614183", "0.6606547", "0.66035134", "0.6602164", "0.65979856", "0.6579111", "0.65789086", "0.65554845", "0.6554478", "0.65529823", "0.653255", "0.6527854", "0.6527854", "0.6527854", "0.6527854", "0.6527854", "0.6527854", "0.6527854", "0.6527854", "0.6527854", "0.6521203", "0.6517623", "0.65175974", "0.65093064", "0.65092504", "0.64853746" ]
0.0
-1
Retrieve List Of Users With A Criteria
@RequestMapping(value = "/listWithCriteria", method = RequestMethod.POST) public ResponseEntity<?> listWithCriteria(@RequestBody SearchCriteria searchCriteria) { List<User> users = userService.listWithCritera(searchCriteria); // return. return new ResponseEntity<List<User>>(users, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getUsers(User user);", "List<User> getUsers();", "List<User> getUsers();", "List<KingdomUser> getUsers();", "List<AdminUser> selectByExample(AdminUserCriteria example);", "List<AdminUser> selectByExample(AdminUserCriteria example);", "public List getAllUsers();", "public List<User> listUsers(String userName);", "public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;", "public List<User> getUsers();", "List<User> getUserByName(String name);", "public List<User> getUserList();", "public List<User> getEnabledUsers();", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "List<User> searchUsersByUsername(String username);", "public List<UserDTO> getUsers();", "List<User> fetchAllUSers();", "public List<User> getAllUsers();", "List<KingdomUser> getAllUsers();", "List<User> getAllUsers();", "List<User> getAllUsers();", "List<User> loadActiveUsers(User user);", "public List<Utilizator> listUsers();", "com.google.ads.googleads.v6.resources.UserList getUserList();", "public List<User> searchUser(String searchValue);", "com.heroiclabs.nakama.api.User getUsers(int index);", "Iterable<User> getAllUsers();", "List<UserRepresentation> searchUserAccount(final String username);", "public List<User> getSpecificUsers(String searchQuery) {\n logger.info(\"Currently in method 'getSpecificUsers()'.\");\n Database database = Database.getInstance();\n Connection connection = null;\n List<User> specificUsers = new ArrayList<User>();\n String sql = \"SELECT * FROM users WHERE id LIKE '%\" + searchQuery +\n \"%' OR first_name LIKE '%\" + searchQuery +\n \"%' or last_name LIKE '%\" + searchQuery +\n \"%' or date_of_birth LIKE '%\" + searchQuery + \"%'\";\n\n try {\n database.connect();\n connection = database.getConnection();\n Statement selectStatement = connection.createStatement();\n ResultSet results = selectStatement.executeQuery(sql);\n while (results.next()) {\n User employee = createUserFromResults(results);\n specificUsers.add(employee);\n }\n database.disconnect();\n } catch (SQLException e) {\n logger.error(\"Encountered an SQLException: \", e);\n } catch (Exception e) {\n logger.error(\"Encountered an Exception: \", e);\n }\n return specificUsers;\n }", "List<UserRepresentation> getUsers(final String realm);", "@Override\n\tpublic List<User> findUserByCondition(UserQuery query) throws Exception {\n\t\treturn userDao.findUserByCondition(query);\n\t}", "List<User> getActivatedUserList();", "com.rpg.framework.database.Protocol.User getUsers(int index);", "com.rpg.framework.database.Protocol.User getUsers(int index);", "public List<User> getUsersStartingWith(String startsWith, Boolean enabled, int offset, int length) throws UserManagementException;", "@Override\n public List<UserInfo> findList(UserListFilterDto dto) {\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<UserInfo> criteriaQuery = criteriaBuilder.createQuery(UserInfo.class);\n Root<UserInfo> root = criteriaQuery.from(UserInfo.class);\n Predicate predicate1\n = criteriaBuilder.equal(root.get(\"office\").get(\"id\"), dto.getOfficeId());\n Predicate finalPredicate = criteriaBuilder.and(predicate1);\n if (dto.getFirstName() != null) {\n Predicate predicate2\n = criteriaBuilder.equal(root.get(\"firstName\"), dto.getFirstName());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate2);\n }\n if (dto.getSecondName() != null) {\n Predicate predicate3\n = criteriaBuilder.equal(root.get(\"secondName\"), dto.getSecondName());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate3);\n }\n if (dto.getMiddleName() != null) {\n Predicate predicate4\n = criteriaBuilder.equal(root.get(\"middleName\"), dto.getMiddleName());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate4);\n }\n if (dto.getPosition() != null) {\n Predicate predicate5\n = criteriaBuilder.equal(root.get(\"position\"), dto.getPosition());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate5);\n }\n if (dto.getDocCode() != null) {\n Predicate predicate6\n = criteriaBuilder.equal(root.get(\"userDoc\").get(\"doc\").get(\"code\"), dto.getDocCode());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate6);\n }\n if (dto.getCitizenshipCode() != null) {\n Predicate predicate7\n = criteriaBuilder.equal(root.get(\"country\").get(\"code\"), dto.getCitizenshipCode());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate7);\n }\n criteriaQuery.select(root).where(finalPredicate);\n return entityManager.createQuery(criteriaQuery).getResultList();\n }", "public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;", "public List<User> listSearch(String search);", "List<User> selectAll();", "List<User> selectAll();", "@Transactional (propagation = Propagation.REQUIRES_NEW, isolation = Isolation.SERIALIZABLE)\n\t@Override\n\tpublic List<UserBO> listUser(String criteria) {\n\t\tlogger.info(\"Begin : \" + getClass().getName() + \" : listUser()\");\n\t\tList<UserBO> userBOList = securityDao.listUser(criteria);\n\t\tlogger.info(\"User list 1st fetched : \" + userBOList.size());\n\t\t\n\t\tuserBOList = securityDao.listUser(criteria);\n\t\tlogger.info(\"User list 2nd fetched : \" + userBOList.size());\n\t\treturn userBOList;\n\t}", "public List<User> getUsersByRole(Role role);", "List<User> findUsers(User.UserGroup group, Long id, String fname, String lname, String email) throws Exception;", "List<UserDTO> getAllUsers();", "Optional<List<User>> findAllUser() throws LogicException;", "@Override\n\tpublic ArrayList<User> searchUsers() {\n\t\treturn userDao.searchUsers();\n\t}", "@Override\n public List<MtUser> getUsersByClause(Map clause) {\n return null;\n }", "public List<IUser> getUsers();", "List<UserDisplayDto> getAllUsers();", "public List<UserVO> pagingUser(Criteria cri);", "@Override\n\tpublic List<Map<String, Object>> getUserList() {\n\t\tList<Map<String, Object>> list = new ArrayList<Map<String,Object>>();\n\t\tString sql = \"select * from tp_users where userType = 2\";\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\tlist = joaSimpleDao.queryForList(sql, map);\n\t\treturn list;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<User> findAllUsers() {\n\t\tCriteria crit = createEntityCriteria();\r\n\t\tcrit.addOrder(Order.asc(\"firstname\")).setResultTransformer(CriteriaSpecification.DISTINCT_ROOT_ENTITY);\r\n\t\tList<User> users = (List<User>)crit.list();\r\n\t\treturn users;\r\n\t}", "Collection<GetUserDto> getAllUsers();", "private void readUsers(String filter) {\n Filter userFilter = Filter.createORFilter(\n Filter.createSubAnyFilter(\"cn\", filter),\n Filter.createSubAnyFilter(\"sn\", filter),\n Filter.createSubAnyFilter(\"givenname\", filter)\n );\n\n SearchResult searchResult = OpenLDAP.searchUser(userFilter);\n for (int i = 0; i < searchResult.getEntryCount(); i++) {\n SearchResultEntry entry = searchResult.getSearchEntries().get(i);\n User user = new User();\n user.setDistinguishedName(entry.getDN());\n user.setUsername(entry.getAttributeValue(\"cn\"));\n user.setFirstname(entry.getAttributeValue(\"givenname\"));\n user.setLastname(entry.getAttributeValue(\"sn\"));\n user.setEmail(entry.getAttributeValue(\"mail\"));\n user.setMobile(entry.getAttributeValue(\"mobile\"));\n getUsers().put(user.getUsername(), user);\n }\n }", "@Override\n\tpublic ArrayList<User> queryUserByCondition(User u) {\n\t\treturn userDao.queryUserByCondition(u);\n\t}", "public String[] listUsers();", "List<UserGift> selectByExample(UserGiftCriteria example);", "Data<User> getUserSearch(String user, String fields);", "public List<User> getActiveUsers(boolean active);", "@GET\r\n public List<EnterpriseUserDTO> getEnterpriseUserList(){\r\n List <EnterpriseUserEntity> enterpriseUsers = enterpriseUsersLogic.obtenerEnterpriseUsers();\r\n return EnterpriseUserDTO.toEnterpriseUserList(enterpriseUsers);\r\n }", "public List<Login> getUsers(Date startDate, Date endDate);", "public List<Users> getUserList(){\n\t\tList<Users> users = (List<Users>) this.userDao.findAll();\n\t\treturn users;\n\t}", "public List<User> searchUsers(String arg) {\n\n\t\tMUser mu = new MUser();\n\t\tList<User> searchUsers = mu.searchUsers(arg);\n\t\tif (searchUsers == null) {\n\t\t\terrorMsg = mu.errorMsg;\n\t\t\treturn null;\n\t\t}\n\t\treturn searchUsers;\n\n\t}", "public List<UserParam> findListForManagement(UserEntity userEntity);", "List<Userinfo> selectAll();", "List<UserDO> getUserListByOrgId(Long orgId);", "List<User> getMembers(String companyId, String name);", "public ArrayList<Users> ListUsers(String ValToSearch) {\n ArrayList<Users> usersList = new ArrayList<Users>();\n\n Statement st;\n ResultSet rs;\n\n try {\n Connection con = getConnection();\n st = con.createStatement();\n String searchQuery = \"SELECT * FROM `tbl_registered` WHERE CONCAT(`user_id`,'username', `firstname`,`middlename`, `lastname`, `email`)LIKE '%\" + ValToSearch + \"%'\";\n rs = st.executeQuery(searchQuery);\n\n Users user;\n\n while (rs.next()) {\n user = new Users(\n rs.getString(\"username\"),\n rs.getString(\"firstname\"),\n rs.getString(\"middlename\"),\n rs.getString(\"lastname\"),\n rs.getString(\"email\"),\n rs.getInt(\"user_id\"));\n\n usersList.add(user);\n }\n\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage());\n }\n\n return usersList;\n }", "List<ROmUsers> selectByExample(ROmUsersExample example);", "List<ClientResponse> findUsersClient(User user) throws BaseException;", "List<Accessprofile> listWithCritera(SearchCriteria searchCriteria);", "List<User> searchUsers(String searchTerm) {\n return null;\n }", "Collection<User> getUsers() throws DataAccessException;", "public List<TestUser> getAllUsers(){\n\t\tSystem.out.println(\"getting list of users..\");\n\t\tList<TestUser> user=new ArrayList<TestUser>();\n\t\tuserRepositary.findAll().forEach(user::add);\n\t\t//System.out.println(\"data: \"+userRepositary.FindById(\"ff80818163731aea0163731b190c0000\"));\n\t\treturn user;\n\t}", "protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}", "public List<EOSUser> findUsers(List<String> logins);", "@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.queryUser();\n\t}", "@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}", "public UserRow[] searchUsers(UserRow userModel, boolean isAnd)\n throws AdminPersistenceException {\n boolean concatAndOr = false;\n String andOr;\n StringBuffer theQuery = new StringBuffer(SELECT_SEARCH_USERS);\n Vector<Integer> ids = new Vector<Integer>();\n Vector<String> params = new Vector<String>();\n \n if (isAnd) {\n andOr = \") AND (\";\n } else {\n andOr = \") OR (\";\n }\n concatAndOr = addIdToQuery(ids, theQuery, userModel.id, \"id\", concatAndOr,\n andOr);\n concatAndOr = addIdToQuery(ids, theQuery, userModel.domainId, \"domainId\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.specificId,\n \"specificId\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.login, \"login\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.firstName,\n \"firstName\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.lastName,\n \"lastName\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.eMail, \"email\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.accessLevel,\n \"accessLevel\", concatAndOr, andOr);\n concatAndOr =\n addParamToQuery(params, theQuery, userModel.loginQuestion, \"loginQuestion\", concatAndOr,\n andOr);\n concatAndOr =\n addParamToQuery(params, theQuery, userModel.loginAnswer, \"loginAnswer\", concatAndOr, andOr);\n if (concatAndOr) {\n theQuery.append(\") AND (accessLevel <> 'R')\");\n } else {\n theQuery.append(\" WHERE (accessLevel <> 'R')\");\n }\n theQuery.append(\" order by UPPER(lastName)\");\n \n int[] idsArray = new int[ids.size()];\n for (int i = 0; i < ids.size(); i++) {\n idsArray[i] = ids.get(i).intValue();\n }\n \n return getRows(theQuery.toString(), idsArray, params.toArray(new String[0])).toArray(\n new UserRow[0]);\n }", "public ArrayList<IndividualUser> listAllUsers() {\n try {\n PreparedStatement s = sql.prepareStatement(\"SELECT id, userName, firstName, lastName FROM Users \");\n s.execute();\n ResultSet results = s.getResultSet();\n ArrayList<IndividualUser> users = new ArrayList<>();\n if (!results.isBeforeFirst()) {\n results.close();\n s.close();\n return users;\n }\n\n while (!results.isLast()) {\n results.next();\n IndividualUser u = new IndividualUser(results.getInt(1), results.getString(2), results.getString(3), results.getString(4));\n\n users.add(u);\n\n }\n\n results.close();\n s.close();\n\n return users;\n } catch (SQLException e) {\n sqlException(e);\n return null;\n }\n }", "public List<User> list();", "public static List<user> getAll() throws SQLException {\n\t\ttry {\n\t\t\tuserExample example = new userExample();\n\t\t\tList<Integer> values = new ArrayList<Integer>();\n\t\t\tvalues.add(0);\n\t\t\tvalues.add(1);\n\t\t\texample.or().andStatusIn(values);\n\n\t\t\treturn mapper.selectByExample(example);\n\n\t\t} finally {\n\t\t\tsqlSession.close();\n\t\t}\n\t}", "abstract ArrayList<User> getAllUsers();", "List<User> selectByExample(UserExample example);", "List<User> selectByExample(UserExample example);", "List<User> selectByExample(UserExample example);", "@SuppressWarnings(\"unchecked\")\n @Override\n public List<User> listUsers() {\n Session session = this.sessionFactory.getCurrentSession();\n List<User> UsersList = session.createQuery(\"from User\").list();\n for(User u : UsersList){\n logger.info(\"User List::\"+u);\n }\n return UsersList;\n }", "List<UUser> selectByExample(UUserExample example);", "@RequestMapping(value = {\"/users/list\"}, method = RequestMethod.GET)\n\tpublic ResponseEntity<List<User>> fetchUsers() {\n\t\t\tSystem.out.println(\"fetching users\");\n\t\t\tList<User> user = userDAO.list(\"APPROVED\");\n\t\t\tSystem.out.println(user);\n\t\t\treturn new ResponseEntity<List<User>>(user, HttpStatus.OK);\n\t\t}", "@PreAuthorize(\"@userAuthorize.canList(#searchCriterias)\")\n\t@RequestMapping(value = \"/listWithCriterias\", method = RequestMethod.POST)\n\tpublic ResponseEntity<?> listWithCriterias(@RequestBody List<SearchCriteria> searchCriterias) {\n\t\tList<User> users = userService.listWithCriteras(searchCriterias);\n\t\t// return.\n\t\treturn new ResponseEntity<List<User>>(users, HttpStatus.OK);\n\t}", "@Override\r\n\tpublic List<SysUser> getByConditionPage(SysUserQueryModel sysUserQueryModel) {\n\t\treturn sysUserMapper.getByConditionPage(sysUserQueryModel);\r\n\t}", "List<UserDTO> getUserByOccupation( String occupation );", "@PreAuthorize(\"hasAnyAuthority(T(rs.acs.uns.sw.sct.util.AuthorityRoles).ADMIN, T(rs.acs.uns.sw.sct.util.AuthorityRoles).ADVERTISER, T(rs.acs.uns.sw.sct.util.AuthorityRoles).VERIFIER)\")\n @GetMapping(\"/users/search\")\n public ResponseEntity<List<UserDTO>> search(@RequestParam(value = \"username\", required = false) String username,\n @RequestParam(value = \"email\", required = false) String email,\n @RequestParam(value = \"firstName\", required = false) String firstName,\n @RequestParam(value = \"lastName\", required = false) String lastName,\n @RequestParam(value = \"phoneNumber\", required = false) String phoneNumber,\n @RequestParam(value = \"companyName\", required = false) String companyName,\n Pageable pageable) {\n\n List<UserDTO> list = userService.findBySearchTerm(username, email, firstName, lastName, phoneNumber, companyName, pageable)\n .stream().map(user -> user.convertToDTO()).collect(Collectors.toList());\n\n return new ResponseEntity<>(list, HttpStatus.OK);\n }", "@GET(\"users\")\n Call<PageResourceUserBaseResource> getUsers(\n @retrofit2.http.Query(\"filter_displayname\") String filterDisplayname, @retrofit2.http.Query(\"filter_email\") String filterEmail, @retrofit2.http.Query(\"filter_firstname\") String filterFirstname, @retrofit2.http.Query(\"filter_fullname\") String filterFullname, @retrofit2.http.Query(\"filter_lastname\") String filterLastname, @retrofit2.http.Query(\"filter_username\") String filterUsername, @retrofit2.http.Query(\"filter_tag\") String filterTag, @retrofit2.http.Query(\"filter_group\") String filterGroup, @retrofit2.http.Query(\"filter_role\") String filterRole, @retrofit2.http.Query(\"filter_last_activity\") String filterLastActivity, @retrofit2.http.Query(\"filter_id_list\") String filterIdList, @retrofit2.http.Query(\"filter_search\") String filterSearch, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );", "List<IDiscussionUser> getUsersByIds(Collection<String> userIds);", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<User> getUsers() \r\n\t{\n\t\tSession session = sessionFactory.getCurrentSession();\r\n String sql = \"select * from users\";\r\n Query query = session.createSQLQuery(sql).addEntity(User.class);\r\n\t\tSystem.out.println(\"getUsers list is : \" + query.list().size());\r\n\t\treturn query.list();\r\n\t}", "public List<User> listAll() throws Exception;" ]
[ "0.758001", "0.7247664", "0.7247664", "0.72206116", "0.7210732", "0.7210732", "0.71850145", "0.715056", "0.71341234", "0.706371", "0.70134944", "0.70074445", "0.69823384", "0.6974215", "0.69702715", "0.6921173", "0.69204", "0.6907058", "0.68729365", "0.68713987", "0.68713987", "0.685511", "0.6853012", "0.68267107", "0.6816551", "0.6781226", "0.67781293", "0.6766856", "0.67636895", "0.67633045", "0.6760611", "0.6729106", "0.6726722", "0.67256635", "0.6724477", "0.67142725", "0.67129344", "0.6709294", "0.6708928", "0.67008704", "0.6699808", "0.66848433", "0.66848433", "0.66749936", "0.6664481", "0.6655955", "0.6652732", "0.6645128", "0.6642665", "0.66393715", "0.6633556", "0.6625274", "0.6608451", "0.66049767", "0.6594271", "0.6591849", "0.65895575", "0.6568399", "0.65595084", "0.6559452", "0.65233696", "0.65204215", "0.6517099", "0.6501372", "0.6498722", "0.6498132", "0.6497759", "0.6496765", "0.6474873", "0.64659584", "0.64611095", "0.6459158", "0.6452263", "0.64510185", "0.6440352", "0.64293754", "0.642812", "0.6428067", "0.6419571", "0.6413915", "0.640415", "0.63997287", "0.63964236", "0.63964087", "0.63751453", "0.6361651", "0.6358649", "0.6358649", "0.6358649", "0.6357178", "0.63550955", "0.6345292", "0.63412756", "0.633743", "0.6330575", "0.6324399", "0.63207304", "0.63170767", "0.631638", "0.6316177" ]
0.6746657
31
Retrieve List Of Users With Many Criteria
@PreAuthorize("@userAuthorize.canList(#searchCriterias)") @RequestMapping(value = "/listWithCriterias", method = RequestMethod.POST) public ResponseEntity<?> listWithCriterias(@RequestBody List<SearchCriteria> searchCriterias) { List<User> users = userService.listWithCriteras(searchCriterias); // return. return new ResponseEntity<List<User>>(users, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getUsers(User user);", "List<AdminUser> selectByExample(AdminUserCriteria example);", "List<AdminUser> selectByExample(AdminUserCriteria example);", "public List<User> getEnabledUsers();", "List<User> getUsers();", "List<User> getUsers();", "@Override\n public List<UserInfo> findList(UserListFilterDto dto) {\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<UserInfo> criteriaQuery = criteriaBuilder.createQuery(UserInfo.class);\n Root<UserInfo> root = criteriaQuery.from(UserInfo.class);\n Predicate predicate1\n = criteriaBuilder.equal(root.get(\"office\").get(\"id\"), dto.getOfficeId());\n Predicate finalPredicate = criteriaBuilder.and(predicate1);\n if (dto.getFirstName() != null) {\n Predicate predicate2\n = criteriaBuilder.equal(root.get(\"firstName\"), dto.getFirstName());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate2);\n }\n if (dto.getSecondName() != null) {\n Predicate predicate3\n = criteriaBuilder.equal(root.get(\"secondName\"), dto.getSecondName());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate3);\n }\n if (dto.getMiddleName() != null) {\n Predicate predicate4\n = criteriaBuilder.equal(root.get(\"middleName\"), dto.getMiddleName());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate4);\n }\n if (dto.getPosition() != null) {\n Predicate predicate5\n = criteriaBuilder.equal(root.get(\"position\"), dto.getPosition());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate5);\n }\n if (dto.getDocCode() != null) {\n Predicate predicate6\n = criteriaBuilder.equal(root.get(\"userDoc\").get(\"doc\").get(\"code\"), dto.getDocCode());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate6);\n }\n if (dto.getCitizenshipCode() != null) {\n Predicate predicate7\n = criteriaBuilder.equal(root.get(\"country\").get(\"code\"), dto.getCitizenshipCode());\n finalPredicate = criteriaBuilder.and(finalPredicate, predicate7);\n }\n criteriaQuery.select(root).where(finalPredicate);\n return entityManager.createQuery(criteriaQuery).getResultList();\n }", "List<KingdomUser> getUsers();", "public List<User> getUsers();", "Iterable<User> getAllUsers();", "List<UserGift> selectByExample(UserGiftCriteria example);", "public List getAllUsers();", "public List<UserDTO> getUsers();", "public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;", "public List<UserParam> findListForManagement(UserEntity userEntity);", "public List<User> getUserList();", "List<User> selectAll();", "List<User> selectAll();", "List<User> loadActiveUsers(User user);", "public List<User> getAllUsers();", "Optional<List<User>> findAllUser() throws LogicException;", "List<IDiscussionUser> getUsersByIds(Collection<String> userIds);", "public UserRow[] searchUsers(UserRow userModel, boolean isAnd)\n throws AdminPersistenceException {\n boolean concatAndOr = false;\n String andOr;\n StringBuffer theQuery = new StringBuffer(SELECT_SEARCH_USERS);\n Vector<Integer> ids = new Vector<Integer>();\n Vector<String> params = new Vector<String>();\n \n if (isAnd) {\n andOr = \") AND (\";\n } else {\n andOr = \") OR (\";\n }\n concatAndOr = addIdToQuery(ids, theQuery, userModel.id, \"id\", concatAndOr,\n andOr);\n concatAndOr = addIdToQuery(ids, theQuery, userModel.domainId, \"domainId\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.specificId,\n \"specificId\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.login, \"login\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.firstName,\n \"firstName\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.lastName,\n \"lastName\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.eMail, \"email\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.accessLevel,\n \"accessLevel\", concatAndOr, andOr);\n concatAndOr =\n addParamToQuery(params, theQuery, userModel.loginQuestion, \"loginQuestion\", concatAndOr,\n andOr);\n concatAndOr =\n addParamToQuery(params, theQuery, userModel.loginAnswer, \"loginAnswer\", concatAndOr, andOr);\n if (concatAndOr) {\n theQuery.append(\") AND (accessLevel <> 'R')\");\n } else {\n theQuery.append(\" WHERE (accessLevel <> 'R')\");\n }\n theQuery.append(\" order by UPPER(lastName)\");\n \n int[] idsArray = new int[ids.size()];\n for (int i = 0; i < ids.size(); i++) {\n idsArray[i] = ids.get(i).intValue();\n }\n \n return getRows(theQuery.toString(), idsArray, params.toArray(new String[0])).toArray(\n new UserRow[0]);\n }", "List<User> fetchAllUSers();", "Collection<GetUserDto> getAllUsers();", "List<User> getAllUsers();", "List<User> getAllUsers();", "List<Accessprofile> listWithCriteras(List<SearchCriteria> searchCriterias);", "List<Accessprofile> listWithCritera(SearchCriteria searchCriteria);", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }", "public List<User> getUsersByRole(Role role);", "List<Sex> getUsersWithCorrectedGender(List<User> users);", "public List<Utilizator> listUsers();", "List<KingdomUser> getAllUsers();", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<User> findAllUsers() {\n\t\tCriteria crit = createEntityCriteria();\r\n\t\tcrit.addOrder(Order.asc(\"firstname\")).setResultTransformer(CriteriaSpecification.DISTINCT_ROOT_ENTITY);\r\n\t\tList<User> users = (List<User>)crit.list();\r\n\t\treturn users;\r\n\t}", "List<User> getActivatedUserList();", "public List<UserVO> pagingUser(Criteria cri);", "public Set<P2PUser> getUsers();", "public List<User> listUsers(String userName);", "List<User> findUsers(User.UserGroup group, Long id, String fname, String lname, String email) throws Exception;", "List<User> searchUsersByUsername(String username);", "List<UserDTO> getAllUsers();", "public List<UsersRobots> findAll(){\n CriteriaBuilder cb = entityManager.getCriteriaBuilder();\n CriteriaQuery<UsersRobots> cq = cb.createQuery(UsersRobots.class);\n Root<UsersRobots> rootEntry = cq.from(UsersRobots.class);\n CriteriaQuery<UsersRobots> all = cq.select(rootEntry);\n TypedQuery<UsersRobots> allQuery = entityManager.createQuery(all);\n return allQuery.getResultList();\n }", "com.google.ads.googleads.v6.resources.UserList getUserList();", "@Override\n\tpublic List<User> findUserByCondition(UserQuery query) throws Exception {\n\t\treturn userDao.findUserByCondition(query);\n\t}", "@Override\n\tpublic ArrayList<User> queryUserByCondition(User u) {\n\t\treturn userDao.queryUserByCondition(u);\n\t}", "@RequestMapping(value = \"/listWithCriteria\", method = RequestMethod.POST)\n\tpublic ResponseEntity<?> listWithCriteria(@RequestBody SearchCriteria searchCriteria) {\n\t\tList<User> users = userService.listWithCritera(searchCriteria);\n\t\t// return.\n\t\treturn new ResponseEntity<List<User>>(users, HttpStatus.OK);\n\t}", "public List<IUser> getUsers();", "@Transactional (propagation = Propagation.REQUIRES_NEW, isolation = Isolation.SERIALIZABLE)\n\t@Override\n\tpublic List<UserBO> listUser(String criteria) {\n\t\tlogger.info(\"Begin : \" + getClass().getName() + \" : listUser()\");\n\t\tList<UserBO> userBOList = securityDao.listUser(criteria);\n\t\tlogger.info(\"User list 1st fetched : \" + userBOList.size());\n\t\t\n\t\tuserBOList = securityDao.listUser(criteria);\n\t\tlogger.info(\"User list 2nd fetched : \" + userBOList.size());\n\t\treturn userBOList;\n\t}", "List<UserRepresentation> getUsers(final String realm);", "List<User> getUserByName(String name);", "public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;", "List<UserDisplayDto> getAllUsers();", "public List<EOSUser> findUsers(List<String> logins);", "List<Userinfo> selectAll();", "List<ROmUsers> selectByExample(ROmUsersExample example);", "@Override\n public List<MtUser> getUsersByClause(Map clause) {\n return null;\n }", "com.heroiclabs.nakama.api.User getUsers(int index);", "com.rpg.framework.database.Protocol.User getUsers(int index);", "com.rpg.framework.database.Protocol.User getUsers(int index);", "List<UserRepresentation> searchUserAccount(final String username);", "public static List<user> getAll() throws SQLException {\n\t\ttry {\n\t\t\tuserExample example = new userExample();\n\t\t\tList<Integer> values = new ArrayList<Integer>();\n\t\t\tvalues.add(0);\n\t\t\tvalues.add(1);\n\t\t\texample.or().andStatusIn(values);\n\n\t\t\treturn mapper.selectByExample(example);\n\n\t\t} finally {\n\t\t\tsqlSession.close();\n\t\t}\n\t}", "private List<ParseUser> filterUsers(List<ParseUser> pUsers, String searchTerm) {\n List<ParseUser> filteredUsers = new ArrayList<>();\n for (ParseUser pU : pUsers) {\n User u = new User(pU);\n if (u.getName().toLowerCase().contains(searchTerm.toLowerCase())) {\n filteredUsers.add(pU);\n }\n }\n return filteredUsers;\n }", "List<UsersDTO> findAll();", "@GET\r\n public List<EnterpriseUserDTO> getEnterpriseUserList(){\r\n List <EnterpriseUserEntity> enterpriseUsers = enterpriseUsersLogic.obtenerEnterpriseUsers();\r\n return EnterpriseUserDTO.toEnterpriseUserList(enterpriseUsers);\r\n }", "@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}", "public List<User> getDisabledUsers();", "public UserBaseEntity getSubscriberByUserNameAndEmail(List<String> attributes, List<String> values);", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "@Override\n\tpublic ArrayList<User> searchUsers() {\n\t\treturn userDao.searchUsers();\n\t}", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "Collection<User> getUsers() throws DataAccessException;", "List<UserRole> searchUserRole(UserRole userRole);", "public List<User> searchUser(String searchValue);", "public List<User> getSpecificUsers(String searchQuery) {\n logger.info(\"Currently in method 'getSpecificUsers()'.\");\n Database database = Database.getInstance();\n Connection connection = null;\n List<User> specificUsers = new ArrayList<User>();\n String sql = \"SELECT * FROM users WHERE id LIKE '%\" + searchQuery +\n \"%' OR first_name LIKE '%\" + searchQuery +\n \"%' or last_name LIKE '%\" + searchQuery +\n \"%' or date_of_birth LIKE '%\" + searchQuery + \"%'\";\n\n try {\n database.connect();\n connection = database.getConnection();\n Statement selectStatement = connection.createStatement();\n ResultSet results = selectStatement.executeQuery(sql);\n while (results.next()) {\n User employee = createUserFromResults(results);\n specificUsers.add(employee);\n }\n database.disconnect();\n } catch (SQLException e) {\n logger.error(\"Encountered an SQLException: \", e);\n } catch (Exception e) {\n logger.error(\"Encountered an Exception: \", e);\n }\n return specificUsers;\n }", "List<ClientResponse> findUsersClient(User user) throws BaseException;", "@Override\n\tpublic List<Map<String, Object>> getUserList() {\n\t\tList<Map<String, Object>> list = new ArrayList<Map<String,Object>>();\n\t\tString sql = \"select * from tp_users where userType = 2\";\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\tlist = joaSimpleDao.queryForList(sql, map);\n\t\treturn list;\n\t}", "private void readUsers(String filter) {\n Filter userFilter = Filter.createORFilter(\n Filter.createSubAnyFilter(\"cn\", filter),\n Filter.createSubAnyFilter(\"sn\", filter),\n Filter.createSubAnyFilter(\"givenname\", filter)\n );\n\n SearchResult searchResult = OpenLDAP.searchUser(userFilter);\n for (int i = 0; i < searchResult.getEntryCount(); i++) {\n SearchResultEntry entry = searchResult.getSearchEntries().get(i);\n User user = new User();\n user.setDistinguishedName(entry.getDN());\n user.setUsername(entry.getAttributeValue(\"cn\"));\n user.setFirstname(entry.getAttributeValue(\"givenname\"));\n user.setLastname(entry.getAttributeValue(\"sn\"));\n user.setEmail(entry.getAttributeValue(\"mail\"));\n user.setMobile(entry.getAttributeValue(\"mobile\"));\n getUsers().put(user.getUsername(), user);\n }\n }", "public List<User> getUsersStartingWith(String startsWith, Boolean enabled, int offset, int length) throws UserManagementException;", "public List<User> getActiveUsers(boolean active);", "@Override\r\n\tpublic List<SysUser> getByConditionPage(SysUserQueryModel sysUserQueryModel) {\n\t\treturn sysUserMapper.getByConditionPage(sysUserQueryModel);\r\n\t}", "public UsersExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public List<UserModel> getAllUsers() {\n List<UserModel> totalUsers = userRepository.findAll();\n URole role = uRoleRepository.findByName(\"ROLE_ADMIN\");\n return totalUsers\n .stream()\n .filter(userModel -> !userModel.getRoles().contains(role))\n .collect(Collectors.toList());\n }", "Data<User> getUserSearch(String user, String fields);", "List<User> getMembers(String companyId, String name);", "public Future<List<io.remicro.saga.entities.tables.pojos.Person>> findManyByUserId(List<String> values) {\n return findManyByCondition(Person.PERSON.USER_ID.in(values));\n }", "abstract ArrayList<User> getAllUsers();", "public List<UserJoins> listUserJoinsbyUid(int uid);", "List<User> selectByExample(UserExample example);", "List<User> selectByExample(UserExample example);", "List<User> selectByExample(UserExample example);", "public List<TestUser> getAllUsers(){\n\t\tSystem.out.println(\"getting list of users..\");\n\t\tList<TestUser> user=new ArrayList<TestUser>();\n\t\tuserRepositary.findAll().forEach(user::add);\n\t\t//System.out.println(\"data: \"+userRepositary.FindById(\"ff80818163731aea0163731b190c0000\"));\n\t\treturn user;\n\t}", "List<UserDTO> getUserByOccupation( String occupation );", "@Override\r\n public List<User> userfindAll() {\n return userMapper.userfindAll();\r\n }", "public List<Login> getUsers(Date startDate, Date endDate);", "List<Registration> allRegUser(long idUser);", "List<UserDO> getUserListByOrgId(Long orgId);", "@Override\r\n\tpublic List<User> queryAllUsers() {\n\t\tList<User> users = userMapper.queryAllUsers();\r\n\t\treturn users;\r\n\t}", "public List<Map<String, Object>> getAllUsers() {\n Result<Record2<Long, String>> result = getDbContext().select(USER.USER_ID, USER.USER_NAME).from(USER).fetch();\n return result.intoMaps();\n }" ]
[ "0.6935887", "0.6821535", "0.6821535", "0.66251194", "0.66096175", "0.66096175", "0.6564875", "0.6543151", "0.64874864", "0.64757174", "0.6443185", "0.643818", "0.64166516", "0.6369248", "0.63612413", "0.6341263", "0.6323415", "0.6323415", "0.6296201", "0.6291035", "0.62840116", "0.6282083", "0.62716055", "0.625646", "0.6252722", "0.62461054", "0.62461054", "0.6230169", "0.62298703", "0.62157285", "0.6214215", "0.62098205", "0.6203572", "0.6197091", "0.6188451", "0.61864454", "0.61708885", "0.61680365", "0.6166778", "0.6158752", "0.6155733", "0.6155184", "0.6144722", "0.61393875", "0.61336595", "0.61327875", "0.61201084", "0.61125", "0.6098934", "0.60922056", "0.6075194", "0.6061346", "0.6059238", "0.6057494", "0.6053535", "0.60463977", "0.60224336", "0.60151166", "0.60088396", "0.60067743", "0.600552", "0.5997173", "0.59902215", "0.5976143", "0.59750104", "0.5966296", "0.595742", "0.5957195", "0.59554225", "0.59517735", "0.595157", "0.5950985", "0.59485936", "0.594349", "0.59429586", "0.5937911", "0.5931854", "0.5930477", "0.59263706", "0.5920543", "0.59177196", "0.5909514", "0.59068346", "0.59016186", "0.58952385", "0.58948576", "0.58911294", "0.5884292", "0.5878714", "0.5874008", "0.5874008", "0.5874008", "0.5864688", "0.58516014", "0.58502513", "0.5840095", "0.5835713", "0.58351576", "0.58290714", "0.58279246" ]
0.6117597
47
Retrieve All Users By Page
@RequestMapping(value = "/listAllByPage", method = RequestMethod.GET) public ResponseEntity<Page<User>> listAllByPage(Pageable pageable) { Page<User> users = userService.listAllByPage(pageable); // return. return new ResponseEntity<Page<User>>(users, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<String> getUsers(String page);", "@Override\n\tpublic List<User> listByPage(int page) throws Exception {\n\t\treturn null;\n\t}", "List<Registration> allRegUserPagination(long idUser, int currentPage, int elementPerPage);", "public Page<User> findAll(Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "public PageList<User> getUserPageList(User user, int pageSize, int pageNum) throws DataAccessException;", "@Override\r\n\tpublic Page<HistoryGroupBy> findUsers(Page<HistoryGroupBy> page)\r\n\t\t\tthrows Exception {\n\t\tString hql=\"from HistoryGroupBy s\";\r\n\t\treturn historyGroupByDao.findPage(page, hql);\r\n\t}", "@Override\r\n\tpublic PageInfo<User> selects(String username, Integer page, Integer pageSize) {\n\t\tPageMethod.startPage(page, pageSize);\r\n\t\tList<User> list = um.selects(username);\r\n\t\treturn new PageInfo<User>(list);\r\n\t}", "public List getAllUsers();", "@Override\n\tpublic JSONObject getUserByPage(String param) {\n\t\tJSONObject data = new JSONObject();\n\t\tJSONObject result = new JSONObject();\n\t\tMainUtility mainUtil = new MainUtility();\n\t\tJSONObject jsonParams = mainUtil.stringToJson(param);\n\t\tStringBuilder builder = new StringBuilder();\n\t\tStringBuilder builderGetTotal = new StringBuilder();\n\n\t\tbuilder.append(\"SELECT user_id, user_login, full_name, email, group_id \"\n\t\t\t\t+ \"FROM crm_user \"\n\t\t\t\t+ \"WHERE group_id IN (2,3) \");\n\t\tbuilderGetTotal.append(\"SELECT COUNT(1) FROM crm_user \"\n\t\t\t\t+ \"WHERE group_id IN (2,3) \");\n\t\tif (jsonParams.get(\"user_login\") != null && !\"\".equals(jsonParams.get(\"user_login\").toString())) {\n\t\t\tbuilder.append(\" AND user_login LIKE N'%\" + jsonParams.get(\"user_login\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t\t\t.append(\" AND user_login LIKE N'%\" + jsonParams.get(\"user_login\").toString() + \"%'\");\n\t\t}\n\t\tif (jsonParams.get(\"full_name\") != null && !\"\".equals(jsonParams.get(\"full_name\").toString())) {\n\t\t\tbuilder.append(\" AND full_name LIKE N'%\" + jsonParams.get(\"full_name\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t.append(\" AND full_name LIKE N'%\" + jsonParams.get(\"full_name\").toString() + \"%'\");\n\t\t}\n\t\tif (jsonParams.get(\"email\") != null && !\"\".equals(jsonParams.get(\"email\").toString())) {\n\t\t\tbuilder.append(\" AND email LIKE N'%\" + jsonParams.get(\"email\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t.append(\" AND email LIKE N'%\" + jsonParams.get(\"email\").toString() + \"%'\");\n\t\t}\n\t\t// sortby\n\t\tif (jsonParams.get(\"sortField\") != null && !\"\".equals(jsonParams.get(\"sortField\").toString())) {\n\t\t\tswitch (jsonParams.get(\"sortField\").toString()) {\n\t\t\tdefault:\n\t\t\t\tbuilder.append(\" ORDER BY crm_user.created_date DESC\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// sortOrder chỉ là descend và ascend hoặc rỗng\n\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"descend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n\t\t\t\tbuilder.append(\" DESC\");\n\t\t\t}\n\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"ascend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n\t\t\t\tbuilder.append(\" ASC\");\n\t\t\t}\n\t\t}\n\t\t// lấy các biến từ table (limit, offset)\n\t\tmainUtil.getLimitOffset(builder, jsonParams);\n\t\ttry {\n\t\t\tint totalRow = this.jdbcTemplate.queryForObject(builderGetTotal.toString(), Integer.class);\n\t\t\tList<Map<String, Object>> listUser = this.jdbcTemplate.queryForList(builder.toString());\n\t\t\tJSONObject results = new JSONObject();\n\t\t\tresults.put(\"results\", listUser);\n\t\t\tresults.put(\"total\", totalRow);\n\t\t\tdata.put(\"data\", results);\n\t\t\tdata.put(\"success\", true);\n\t\t} catch (Exception e) {\n\t\t\tdata.put(\"success\", false);\n\t\t\tdata.put(\"err\", e.getMessage());\n\t\t\tdata.put(\"msg\", \"Lấy danh sách người dùng thất bại\");\n\t\t}\n\t\treturn data;\n\t}", "public List<AgtUser> findAllUserByPage(Map<String,Object> map);", "@Override\r\n\tpublic List<MemberVO> selectuserall(PageCriteria c) {\n\t\treturn sqlSession.selectList(NAMESPACE + \".select_page\" ,c);\r\n\t}", "@GetMapping\n\tpublic List<UserRest> getUsers(@RequestParam(value = \"page\", defaultValue = \"0\") int page,\n\t\t\t@RequestParam(value = \"limit\", defaultValue = \"25\") int limit){\n\t\t\n\t\tList<UserRest> returnValue = new ArrayList<>();\n\t\t\n\t\tList<UserDTO> users = userService.getUsers(page, limit);\n\t\t\n\t\tfor (UserDTO userDTO : users) {\n\t\t\tUserRest userModel = new UserRest();\n\t\t\tBeanUtils.copyProperties(userDTO, userModel);\n\t\t\treturnValue.add(userModel);\n\t\t}\n\t\t\n\t\treturn returnValue;\n\t}", "@Override\n\tpublic List<SysUser> getAllByPage(PageBean<SysUser> pageBean) throws Exception {\n\t\treturn null;\n\t}", "Page<Accessprofile> listAllByPage(Pageable pageable);", "public List getUsers(User user);", "Page<User> getAll(Pageable pageable, String search);", "@Override\n\tpublic List<User> listByPage(Params params) throws Exception {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<User> selectAllUser(int pageNumber,int pageSize) {\n\t\tList<User> result = null;\r\n\t\tresult = userMapper.selectAllUser(pageNumber,pageSize);\r\n\t\treturn null == result ? new ArrayList<User>() : result;\r\n\t}", "public List<UserVO> pagingUser(Criteria cri);", "Iterable<User> getAllUsers();", "com.heroiclabs.nakama.api.User getUsers(int index);", "List<User> getAllUsers();", "List<User> getAllUsers();", "public List<User> getAllUsers();", "public Page<ExtraUser> getAllByUser(Pageable pageable) {\n log.debug(\"Request extra info by User: {}\", SecurityUtils.getCurrentUserLogin());\n Optional<User> login = userRepository.findOneByLogin(SecurityUtils.getCurrentUserLogin());\n return extraUserRepository.findAllByUser(pageable,login.isPresent() ? login.get() : null);\n }", "@Override\n\tpublic List<User> getList(Integer page, Integer Limit) {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<User> listByPage(int page, int listSize) throws Exception {\n\t\treturn null;\n\t}", "public Page<Search> getAll(Integer page) {\r\n\t\tUser user = userService.getLoggedUser();\r\n\t\treturn searchRepository.findAllByUser(user, user.getUserPreferences().getSearchCount().getPageable(page));\r\n\t}", "public List<UserInfo> resultUserList(PageBean pBean) {\n\t\treturn adminSearchDao.resultUserList(pBean);\n\t}", "Page<ExamPackage> getPageByUsername(String username, int pageNo, int pageSize);", "@GetMapping\n public String getPage(Map<String, Object> model) {\n model.put(\"users\", userService.getAll());\n return \"users\";\n }", "private void getAllUsers(){\n\t\t\n\t\tSystem.out.println(\"Retrieving Social Graph Data from tibbr...\"); \n\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\n\t\tString params = \"?sort=firstNameAsc&fields=name,jive.username,-resources&count=5000&startIndex=0\"; \n\t\tHttpGet getRequest = new HttpGet(urlBase+\"/api/core/v3/people/@all\"+params);\n\t\t\n\n\t\t\t \n\t\tgetRequest.setHeader(\"Authorization\", \"Basic \" + this.auth);\n\t\t\n\t\t\t\n\t\ttry {\n\t\t\tHttpResponse response = httpClient.execute(getRequest);\n\t\t\tString jsonOut = readStream(response.getEntity().getContent());\n\t\t // Remove throwline if present\n\t\t\tjsonOut = removeThrowLine(jsonOut);\n\t\t getAllUserElements(jsonOut);\n\t\t \n\t \n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "@GET(\"users\")\n Call<PageResourceUserBaseResource> getUsers(\n @retrofit2.http.Query(\"filter_displayname\") String filterDisplayname, @retrofit2.http.Query(\"filter_email\") String filterEmail, @retrofit2.http.Query(\"filter_firstname\") String filterFirstname, @retrofit2.http.Query(\"filter_fullname\") String filterFullname, @retrofit2.http.Query(\"filter_lastname\") String filterLastname, @retrofit2.http.Query(\"filter_username\") String filterUsername, @retrofit2.http.Query(\"filter_tag\") String filterTag, @retrofit2.http.Query(\"filter_group\") String filterGroup, @retrofit2.http.Query(\"filter_role\") String filterRole, @retrofit2.http.Query(\"filter_last_activity\") String filterLastActivity, @retrofit2.http.Query(\"filter_id_list\") String filterIdList, @retrofit2.http.Query(\"filter_search\") String filterSearch, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );", "List<User> loadActiveUsers(User user);", "List<User> fetchAllUSers();", "@GetMapping\n public String getUsers(@RequestParam(value =\"page\", defaultValue = \"1\") int page,\n @RequestParam(value = \"limit\", defaultValue = \"25\") int limit)\n {\n return \"Get users for page \" + page + \" limit \" + limit;\n }", "List<KingdomUser> getAllUsers();", "List<User> getUsers();", "List<User> getUsers();", "com.rpg.framework.database.Protocol.User getUsers(int index);", "com.rpg.framework.database.Protocol.User getUsers(int index);", "@Override\r\n\tpublic Page<User> findByPage(Pageable page) {\n\t\treturn null;\r\n\t}", "List<User> loadAll();", "public void getAllUsers() {\n\t\t\n\t}", "Page<ServiceUserDTO> findAll(Pageable pageable);", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "public List<User> getUsers();", "Page<ChatDTO> findAllByUser(String username, Pageable pageable);", "@Override\n public List<UserContact> getUserContacts(User user, Integer offset) {\n Pageable pageable = PageRequest.of(offset, 10,\n Sort.by(Sort.Direction.ASC,\"username\", \"byname\"));\n// Sort.by(\"contact\").descending().and(Sort.by(\"username\")));\n Page<UserContact> page = repository.findByUser(user, pageable);\n// page.getContent().forEach(System.out::println);\n// pageable = page.nextPageable();\n return page.getContent();\n }", "public Page<Account> getAccPage(Pageable page);", "List<KingdomUser> getUsers();", "private void listUsers(Request request, Response response) {\r\n\t\tList<UserBean> userList = null;\r\n\r\n\t\ttry {\r\n\t\t\tuserList = userService.findUsers();\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(Status.SERVER_ERROR_INTERNAL, e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tlog.error(e);\r\n\t\t} finally {\r\n\t\t\txmlSerializationService.generateXMLResponse(request, response,\r\n\t\t\t\t\tuserList);\r\n\t\t}\r\n\t}", "@GetMapping(\"/allusers\")\n\t@Secured({CommonConstants.ROLE_EMPLOYEE,CommonConstants.ROLE_ADMIN})\n\tpublic ResponseEntity<List<UserEntity>> fetchUsers(){\n\t\treturn new ResponseEntity<List<UserEntity>>(this.service.findAll(), HttpStatus.OK);\n\t}", "Page<ParaUserDTO> findAll(Pageable pageable);", "public List<User> listUsers(String userName);", "@Override\n\tpublic List<User_role> findAllUserLimit(Integer currentPage,Integer pageSize)throws Exception {\n\t\treturn userMapper.findAllUserLimit(currentPage,pageSize);\n\t}", "public void testGetUserPageList() throws Exception\r\n {\r\n assertSizeEquals(4, uHandler.getUserPageList(10).getAll());\r\n }", "@Transactional(readOnly = true)\n public Page<UserDTO> getAllManagedUsers(Pageable pageable) {\n log.debug(\"Request to get all Users\");\n return userRepository.findAllByLoginNot(pageable, Constants.ANONYMOUS_USER)\n .map(userMapper::userToUserDTO);\n }", "Page<LoginHistoryEntity> findAll(Integer page);", "List<User> getUnapprovedUserListByPage(UserVo userVo);", "@RequestMapping(value = \"/users/list\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<UsersDTO> findAllUsers() {\n\t\tlogger.info(\"Return All Users.\");\t\n\t\treturn (List<UsersDTO>) usersService.findAllUsers();\n\t}", "public Page getCustomerProfiles(Integer pageNumber,String requestPage) throws EOTException;", "public List<User> getAllUsers(){\n return userRepository.findAll();\n }", "List<UserDTO> getAllUsers();", "public List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }", "@GET\n\t@Path(\"/allUsers\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Map<String, List<User>> getUser() throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tMap<String, List<User>> user = userDao.getUser();\n\t\t\n\t\treturn user; \n\t}", "public List<User> listAll() throws Exception;", "List<BlogUser> getUsers() throws DAOException;", "@GetMapping(path=\"/all\")\n\tpublic @ResponseBody Iterable<User> getAllUsers() {\n\t\t// This returns a JSON or XML with the users\n\t\treturn userRepository.findAll();\n\t}", "@Test\n public void test1(){\n PageInfo<User> page = iUserService.selectWithPage(new User(),new Page(1,10,null));\n List<User> list = page.getList();\n\n System.out.println(list.toString());\n\n\n List<User> user = new ArrayList<User>();\n User user1 = new User();\n user1.setId(1);\n user.add(user1);\n System.out.println(user.toString());\n }", "public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;", "@RequestMapping(method = RequestMethod.GET, value = \"/user/{id}/page/{page}/items/{size}\")\r\n public Page<Alert> getAllByUser(@PathVariable(\"id\") String id, @PathVariable(\"page\") String page,\r\n @PathVariable(\"size\") String size, HttpServletRequest request) {\r\n Pageable pageable = new PageRequest(Integer.parseInt(page), Integer.parseInt(size));\r\n UserProfile profile = userProfileRepository.findOne(id);\r\n List<String> alertTypes = new ArrayList<>();\r\n profile.getGroups().forEach((group) -> {\r\n alertTypes.addAll(group.getNotificationIds());\r\n });\r\n\r\n// DateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n// Date today = new Date();\r\n// try {\r\n// today = formatter.parse(formatter.format(new Date()));\r\n// } catch (ParseException ex) {\r\n// Logger.getLogger(AlertController.class.getName()).log(Level.SEVERE, null, ex);\r\n// }\r\n//\r\n// Calendar c = Calendar.getInstance();\r\n// c.setTime(today);\r\n// c.add(Calendar.DATE, 1);\r\n// c.add(Calendar.SECOND, -1);\r\n//\r\n// Page<Alert> res = alertRepository.findByAlertTypeInAndDateTimeBetweenOrderByDateTimeDesc(alertTypes, today,\r\n// c.getTime(), pageable);\r\n\r\n Page<Alert> res = alertRepository.findByAlertTypeInOrderByDateTimeDesc(alertTypes, pageable);\r\n return res;\r\n }", "public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }", "public List<Utilizator> listUsers();", "public List<User> findAll();", "public List<User> findAll();", "Page<ExamPackage> getPageByUsername(String username, int pageNo, int pageSize, Sort sort);", "@RequestMapping(\"/user/all\")\n public @ResponseBody Iterable<Tbl_Web_User_Info> getAllUsers(){\n \treturn userRepository.findAll();\n }", "@RequestMapping(value = {\"/users/list\"}, method = RequestMethod.GET)\n\tpublic ResponseEntity<List<User>> fetchUsers() {\n\t\t\tSystem.out.println(\"fetching users\");\n\t\t\tList<User> user = userDAO.list(\"APPROVED\");\n\t\t\tSystem.out.println(user);\n\t\t\treturn new ResponseEntity<List<User>>(user, HttpStatus.OK);\n\t\t}", "@Override\r\n public List<User> userfindAll() {\n return userMapper.userfindAll();\r\n }", "@RequestMapping(method = RequestMethod.GET, path = \"/allUsers\")\n\t\tpublic List<leaderBoard> getAllUsers(){\n\t\t\t logger.info(\"Entered into Controller Layer\");\n\t\t List<leaderBoard> results = leaderboardrepository.findAll();\n\t\t logger.info(\"Number of Records Fetched:\" + results.size());\n\t\t \n\t\t return results;\n\t\t //this works\n\t\t \n\t\t \n\t\t}", "@GET(\"user-relation?expand=userOne,userTwo&per-page=333\")\n Call<UserRelationVisitsResponse>getUsersRelationForVisits();", "@RequestMapping(value = USER_SVC_PATH + \"/topUser\", method = RequestMethod.GET)\n public @ResponseBody\n java.util.Iterator<UserInfo> getTopUser() {\n Page<UserInfo> result = userRepository.findAll(new PageRequest(0,10, Sort.Direction.DESC,\"points\"));\n\n return result.iterator();\n }", "public String[] listUsers();", "Collection<GetUserDto> getAllUsers();", "@RequestMapping(value = \"/list\", method = RequestMethod.GET)\n public String loadUsers(Model model) {\n if (logger.isInfoEnabled()) {\n logger.info(\"TCH User Management sub menu Viewed by user {}\", SecurityContextHolder.getContext()\n .getAuthentication().getName());\n }\n List<UserConfigurationProperties> userConfigurationProperties = userConfigurationService.loadUsers();\n model.addAttribute(\"users\",\n new JsonObjectConverter<List<UserConfigurationProperties>>().stringify(userConfigurationProperties));\n model.addAttribute(C_MODEL_ATTR_ROLES, userConfigurationService.getAllRoles());\n model.addAttribute(C_MODEL_ATTR_ISSUER, issuerService.getIssuersSortedAscendingByName());\n return V_USER_PAGE;\n\n }", "List<User> findAll();", "List<User> findAll();", "List<User> findAll();", "List<User> findAll();", "public List<User> loadAllUserDetails()throws Exception;", "Collection<User> getUsers() throws DataAccessException;", "List<Userinfo> selectAll();", "@Transactional(readOnly = true)\n public Page<ExtraUser> findAll(Pageable pageable) {\n log.debug(\"Request to get all ExtraUsers\");\n return extraUserRepository.findAll(pageable);\n }", "public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;", "@RequestMapping(value = \"/users\", method = RequestMethod.GET)\n public ResponseEntity getUsers() {\n logger.debug(\"HTTP GET /users called\");\n List<User> userList = userService.getUsers(0.00, 4000.00);\n\n return new ResponseEntity(new UserResponse(userList), HttpStatus.OK);\n }", "@Override\n\tpublic User[] searchUsersLikeNickname(String nickname, int page) {\n\t\tint pageSize = 15;\n\t\tnickname = '%' + nickname + '%';\n\t\tUser[] users = null;\n\t\tPageHelperInterceptor.startPage(page, pageSize);\n\t\tusers = userDao.searchUsersLikeNickname(nickname);\n\t\tPage<User> myPage = PageHelperInterceptor.endPage();\n\t\tList<User> list = myPage.getResult();\n\t\tusers = (User[]) list.toArray(new User[list.size()]);\n\t\t\n\t\tfor (int i = 0;i < users.length; i++) {\n\t\t\tint id = users[i].getId();\n\t\t\tint user_fans_num = userDao.getUserFansNumById(id);\n\t\t\tint user_focus_num = userDao.getUserFocusNumById(id);\n\t\t\tusers[i].setFocus_num(user_focus_num);\n\t\t\tusers[i].setFriend_num(user_fans_num);\n\t\t}\n\t\treturn users;\n\t}", "@RequestMapping (\"/members\")\r\n\tpublic String list(@RequestParam(\"page\") int page, Model model) {\n\t\tint pagenumber = page;\r\n\t\tmodel.addAttribute(\"pagenumber\", pagenumber);\r\n\t\t\r\n\t\t//Row count for following calculations\r\n\t\tint maxrows = membersService.getMemberCount();\r\n\t\t\r\n\t\t//Find the Max number of pages and see if an extra page is needed\r\n\t\tif (maxrows >= 7){\r\n\t\t\tint maxpages = maxrows / 7;\r\n\t\t\tint pageTest = maxpages * 7; \r\n\t\t\tint addPage = maxrows - pageTest;\r\n\t\t\tint zero = 0;\r\n\t\t//Add an extra page if TRUE\r\n\t\t\tif (addPage > zero){\r\n\t\t\t\tint extraPage = maxpages + 1;\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", extraPage);\r\n\t\t//Do not add an extra page if FALSE\t\t\r\n\t\t\t}else {\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", maxpages);\r\n\t\t\t}\r\n\t\t//Only one page is needed because at least 7 rows are not available \r\n\t\t}else{\r\n\t\t\tmodel.addAttribute(\"maxpages\", 1);\r\n\t\t }\r\n\t\t//pull the first 7 on page 1\r\n\t\tif (pagenumber <= 1) {\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(0, 7));\r\n\t\t}else{\r\n\t\t\tint stopSQL = 7; //Offset\r\n\t\t\tint pageNumber = pagenumber - 1; \r\n\t\t\tint startSQL = 7 * pageNumber; //What row should the query start at, e.g. 7 * 2 = 14 (start at row 14 and pull the next 7 rows)\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(startSQL, stopSQL));\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn \"members\";\r\n\t}", "@GET\n\tpublic ArrayList<User> getAllUsers(@QueryParam(\"start\") int start,\n\t\t\t\t\t\t\t\t\t @QueryParam(\"size\") int size) {\n\t\treturn new ArrayList<User>();\n\t}" ]
[ "0.8257", "0.73688036", "0.71658844", "0.70978576", "0.7079041", "0.70652103", "0.69746876", "0.69289213", "0.689609", "0.686069", "0.6853152", "0.6851236", "0.68016106", "0.6796345", "0.6794603", "0.67915666", "0.6790871", "0.67868525", "0.6772641", "0.6718649", "0.6703452", "0.6683608", "0.66818666", "0.66818666", "0.6671977", "0.6661839", "0.6626573", "0.6607003", "0.65590733", "0.65572476", "0.6548564", "0.65482754", "0.65370864", "0.65258145", "0.6524942", "0.6522465", "0.6497466", "0.6466404", "0.6450439", "0.6450439", "0.6442317", "0.6442004", "0.64406866", "0.64177465", "0.6394703", "0.63695616", "0.6366147", "0.6352212", "0.634721", "0.62983185", "0.6292065", "0.62763005", "0.6269262", "0.62605155", "0.62574404", "0.62453765", "0.624301", "0.62185615", "0.6194237", "0.6189264", "0.6175061", "0.61626166", "0.61613226", "0.6151117", "0.6148388", "0.6141647", "0.6138643", "0.61379963", "0.6132708", "0.6127483", "0.61270344", "0.6125566", "0.6119726", "0.6101929", "0.6100048", "0.6099816", "0.6099816", "0.60986894", "0.6090162", "0.60765916", "0.6071421", "0.6068187", "0.6065191", "0.6061188", "0.60581636", "0.6039528", "0.6037802", "0.6031297", "0.6031297", "0.6031297", "0.6031297", "0.60268235", "0.60201186", "0.6019972", "0.60188544", "0.60176235", "0.60173476", "0.60074997", "0.6007001", "0.6000703" ]
0.63217354
49
Retrieve List Of Users With A Criteria By Page
@RequestMapping(value = "/listWithCriteriaByPage", method = RequestMethod.POST) public ResponseEntity<?> listWithCriteriaByPage(@RequestBody SearchCriteria searchCriteria, Pageable pageable) { Page<User> users = userService.listWithCriteraByPage(searchCriteria, pageable); // return. return new ResponseEntity<Page<User>>(users, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<String> getUsers(String page);", "public List<UserVO> pagingUser(Criteria cri);", "public PageList<User> getUserPageList(User user, int pageSize, int pageNum) throws DataAccessException;", "Page<Accessprofile> listWithCriteraByPage(SearchCriteria searchCriteria, Pageable pageable);", "List<Registration> allRegUserPagination(long idUser, int currentPage, int elementPerPage);", "Page<Accessprofile> listWithCriterasByPage(List<SearchCriteria> searchCriterias, Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<Accessprofile> listAllByPage(Pageable pageable);", "public Page<User> findAll(Pageable pageable);", "Page<ExamPackage> getPageByUsername(String username, int pageNo, int pageSize);", "@Override\r\n\tpublic List<MemberVO> selectuserall(PageCriteria c) {\n\t\treturn sqlSession.selectList(NAMESPACE + \".select_page\" ,c);\r\n\t}", "public List<AgtUser> findAllUserByPage(Map<String,Object> map);", "@Override\n\tpublic List<User> listByPage(int page) throws Exception {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic PageInfo<User> selects(String username, Integer page, Integer pageSize) {\n\t\tPageMethod.startPage(page, pageSize);\r\n\t\tList<User> list = um.selects(username);\r\n\t\treturn new PageInfo<User>(list);\r\n\t}", "List<User> getUnapprovedUserListByPage(UserVo userVo);", "Page<User> getAll(Pageable pageable, String search);", "@Override\n\tpublic JSONObject getUserByPage(String param) {\n\t\tJSONObject data = new JSONObject();\n\t\tJSONObject result = new JSONObject();\n\t\tMainUtility mainUtil = new MainUtility();\n\t\tJSONObject jsonParams = mainUtil.stringToJson(param);\n\t\tStringBuilder builder = new StringBuilder();\n\t\tStringBuilder builderGetTotal = new StringBuilder();\n\n\t\tbuilder.append(\"SELECT user_id, user_login, full_name, email, group_id \"\n\t\t\t\t+ \"FROM crm_user \"\n\t\t\t\t+ \"WHERE group_id IN (2,3) \");\n\t\tbuilderGetTotal.append(\"SELECT COUNT(1) FROM crm_user \"\n\t\t\t\t+ \"WHERE group_id IN (2,3) \");\n\t\tif (jsonParams.get(\"user_login\") != null && !\"\".equals(jsonParams.get(\"user_login\").toString())) {\n\t\t\tbuilder.append(\" AND user_login LIKE N'%\" + jsonParams.get(\"user_login\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t\t\t.append(\" AND user_login LIKE N'%\" + jsonParams.get(\"user_login\").toString() + \"%'\");\n\t\t}\n\t\tif (jsonParams.get(\"full_name\") != null && !\"\".equals(jsonParams.get(\"full_name\").toString())) {\n\t\t\tbuilder.append(\" AND full_name LIKE N'%\" + jsonParams.get(\"full_name\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t.append(\" AND full_name LIKE N'%\" + jsonParams.get(\"full_name\").toString() + \"%'\");\n\t\t}\n\t\tif (jsonParams.get(\"email\") != null && !\"\".equals(jsonParams.get(\"email\").toString())) {\n\t\t\tbuilder.append(\" AND email LIKE N'%\" + jsonParams.get(\"email\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t.append(\" AND email LIKE N'%\" + jsonParams.get(\"email\").toString() + \"%'\");\n\t\t}\n\t\t// sortby\n\t\tif (jsonParams.get(\"sortField\") != null && !\"\".equals(jsonParams.get(\"sortField\").toString())) {\n\t\t\tswitch (jsonParams.get(\"sortField\").toString()) {\n\t\t\tdefault:\n\t\t\t\tbuilder.append(\" ORDER BY crm_user.created_date DESC\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// sortOrder chỉ là descend và ascend hoặc rỗng\n\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"descend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n\t\t\t\tbuilder.append(\" DESC\");\n\t\t\t}\n\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"ascend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n\t\t\t\tbuilder.append(\" ASC\");\n\t\t\t}\n\t\t}\n\t\t// lấy các biến từ table (limit, offset)\n\t\tmainUtil.getLimitOffset(builder, jsonParams);\n\t\ttry {\n\t\t\tint totalRow = this.jdbcTemplate.queryForObject(builderGetTotal.toString(), Integer.class);\n\t\t\tList<Map<String, Object>> listUser = this.jdbcTemplate.queryForList(builder.toString());\n\t\t\tJSONObject results = new JSONObject();\n\t\t\tresults.put(\"results\", listUser);\n\t\t\tresults.put(\"total\", totalRow);\n\t\t\tdata.put(\"data\", results);\n\t\t\tdata.put(\"success\", true);\n\t\t} catch (Exception e) {\n\t\t\tdata.put(\"success\", false);\n\t\t\tdata.put(\"err\", e.getMessage());\n\t\t\tdata.put(\"msg\", \"Lấy danh sách người dùng thất bại\");\n\t\t}\n\t\treturn data;\n\t}", "Page<ExamPackage> getPageByUsername(String username, int pageNo, int pageSize, Sort sort);", "@Override\r\n\tpublic Page<HistoryGroupBy> findUsers(Page<HistoryGroupBy> page)\r\n\t\t\tthrows Exception {\n\t\tString hql=\"from HistoryGroupBy s\";\r\n\t\treturn historyGroupByDao.findPage(page, hql);\r\n\t}", "@GET(\"users\")\n Call<PageResourceUserBaseResource> getUsers(\n @retrofit2.http.Query(\"filter_displayname\") String filterDisplayname, @retrofit2.http.Query(\"filter_email\") String filterEmail, @retrofit2.http.Query(\"filter_firstname\") String filterFirstname, @retrofit2.http.Query(\"filter_fullname\") String filterFullname, @retrofit2.http.Query(\"filter_lastname\") String filterLastname, @retrofit2.http.Query(\"filter_username\") String filterUsername, @retrofit2.http.Query(\"filter_tag\") String filterTag, @retrofit2.http.Query(\"filter_group\") String filterGroup, @retrofit2.http.Query(\"filter_role\") String filterRole, @retrofit2.http.Query(\"filter_last_activity\") String filterLastActivity, @retrofit2.http.Query(\"filter_id_list\") String filterIdList, @retrofit2.http.Query(\"filter_search\") String filterSearch, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );", "Results getResultsPage(FilterSpecifier.ListBy listBy, int page) throws SearchServiceException;", "@PreAuthorize(\"@userAuthorize.canList(#searchCriterias)\")\n\t@RequestMapping(value = \"/listWithCriteriasByPage\", method = RequestMethod.POST)\n\tpublic ResponseEntity<?> listWithCriteriasByPage(@RequestBody List<SearchCriteria> searchCriterias, Pageable pageable) {\n\t\tPage<User> users = userService.listWithCriterasByPage(searchCriterias, pageable);\n\t\t// return.\n\t\treturn new ResponseEntity<Page<User>>(users, HttpStatus.OK);\n\t}", "public List getUsers(User user);", "@Override\n\tpublic List<User> listByPage(int page, int listSize) throws Exception {\n\t\treturn null;\n\t}", "@GetMapping\n\tpublic List<UserRest> getUsers(@RequestParam(value = \"page\", defaultValue = \"0\") int page,\n\t\t\t@RequestParam(value = \"limit\", defaultValue = \"25\") int limit){\n\t\t\n\t\tList<UserRest> returnValue = new ArrayList<>();\n\t\t\n\t\tList<UserDTO> users = userService.getUsers(page, limit);\n\t\t\n\t\tfor (UserDTO userDTO : users) {\n\t\t\tUserRest userModel = new UserRest();\n\t\t\tBeanUtils.copyProperties(userDTO, userModel);\n\t\t\treturnValue.add(userModel);\n\t\t}\n\t\t\n\t\treturn returnValue;\n\t}", "List<T> findPage(int pageNumber);", "Page<ServiceUserDTO> findAll(Pageable pageable);", "@Override\n public List<UserContact> getUserContacts(User user, Integer offset) {\n Pageable pageable = PageRequest.of(offset, 10,\n Sort.by(Sort.Direction.ASC,\"username\", \"byname\"));\n// Sort.by(\"contact\").descending().and(Sort.by(\"username\")));\n Page<UserContact> page = repository.findByUser(user, pageable);\n// page.getContent().forEach(System.out::println);\n// pageable = page.nextPageable();\n return page.getContent();\n }", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "@Override\n\tpublic List<User> getList(Integer page, Integer Limit) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<User> selectAllUser(int pageNumber,int pageSize) {\n\t\tList<User> result = null;\r\n\t\tresult = userMapper.selectAllUser(pageNumber,pageSize);\r\n\t\treturn null == result ? new ArrayList<User>() : result;\r\n\t}", "com.heroiclabs.nakama.api.User getUsers(int index);", "@Override\n\tpublic List<User> listByPage(Params params) throws Exception {\n\t\treturn null;\n\t}", "Page<ParaUserDTO> findAll(Pageable pageable);", "@GET(\"user-relation?expand=userOne,userTwo&per-page=333\")\n Call<UserRelationVisitsResponse>getUsersRelationForVisits();", "@GetMapping\n public String getUsers(@RequestParam(value =\"page\", defaultValue = \"1\") int page,\n @RequestParam(value = \"limit\", defaultValue = \"25\") int limit)\n {\n return \"Get users for page \" + page + \" limit \" + limit;\n }", "private void getPaginatedSearchResults(HttpServletRequest request, NewUserActionForm newUserBean,\r\n\t\t\t\tIExtendedPaginatedList thePage)throws BaseAppException{\r\n\t\tUserRegistrationService service = new UserRegistrationService();\r\n\t\tthePage = thePage == null ? getPaginatedListFromRequest(request) : thePage ;\r\n\t\t\t\r\n\t\tString strEmailId = newUserBean.getSch_EmailID();\r\n\t\tString strFirstName = newUserBean.getSch_FirstName();\r\n\t\tString strlastName = newUserBean.getSch_LastName();\r\n\t\tInteger regStatus = newUserBean.getSch_RegStatus().equals(\"\") ? null : new Integer(Integer.parseInt(newUserBean.getSch_RegStatus()));\r\n\t\tint roleId = Integer.parseInt(EducationConstant.AFFILIATE_USER_ROLE);\r\n\t\tString frmDate = newUserBean.getSch_fromDate();\r\n\t\tString toDate = newUserBean.getSch_toDate();\r\n\t\t\r\n\t\tint totalnoOfRecords = service.getUsersCountByRoleId(roleId,strEmailId,\r\n\t\t\t\tstrFirstName,strlastName,regStatus,frmDate,toDate);\t\t\r\n\t\tint frmRecordNo = thePage.getFirstRecordIndex();\r\n\t\tint noOfRecords = thePage.getPageSize();\r\n\t\tthePage.setTotalNumberOfRows(totalnoOfRecords);\r\n\t\t\r\n\t\tArrayList searchResults = service.getUsersByRoleId(roleId,strEmailId,strFirstName,\r\n\t\t\t\tstrlastName,regStatus,frmDate,toDate,frmRecordNo,noOfRecords);\r\n\t\tthePage.setList(searchResults);\r\n\t\tnewUserBean.setPgSearchResults(thePage);\r\n\t\t//Take backup of Search criteria \r\n\t\t NewUserListSearchCriteria searchCriteria = new NewUserListSearchCriteria();\r\n\t\t Utilities.copyProperties(searchCriteria,newUserBean);\r\n\t\t//store searchCriteria \r\n\t\t((PaginatedListImpl)thePage).setSearchCriteria(searchCriteria);\r\n\t\t//cache search results in session\r\n\t\tcacheSearchResult(request,SessionConstants.SCH_RESULTS_NEWUSER_AFFILIATE_LIST, thePage);\t\t\r\n\t}", "public Page<T> list(DetachedCriteria criteria, Integer pageNumber, Integer pageSize);", "@Override\r\n\tpublic List<SysUser> getByConditionPage(SysUserQueryModel sysUserQueryModel) {\n\t\treturn sysUserMapper.getByConditionPage(sysUserQueryModel);\r\n\t}", "List<User> loadActiveUsers(User user);", "List<E> page(Page page, Long...params);", "List<Activity> findAllPageable(int page, int size);", "public Page getCustomerProfiles(Integer pageNumber,String requestPage) throws EOTException;", "Page<ParaUserDTO> search(String query, Pageable pageable);", "public List<Object> retrievePagingList(PageBean pageBean) ;", "List<CustomerInformation> queryListByCustomer(Integer page, Integer rows, CustomerInformation cust);", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "public List<UserInfo> resultUserList(PageBean pBean) {\n\t\treturn adminSearchDao.resultUserList(pBean);\n\t}", "Page<Student> findPaginated(int pageNo, int pageSize);", "@Test\n public void test1(){\n PageInfo<User> page = iUserService.selectWithPage(new User(),new Page(1,10,null));\n List<User> list = page.getList();\n\n System.out.println(list.toString());\n\n\n List<User> user = new ArrayList<User>();\n User user1 = new User();\n user1.setId(1);\n user.add(user1);\n System.out.println(user.toString());\n }", "@Override\n\tpublic List<User_role> findAllUserLimit(Integer currentPage,Integer pageSize)throws Exception {\n\t\treturn userMapper.findAllUserLimit(currentPage,pageSize);\n\t}", "public void testGetUserPageList() throws Exception\r\n {\r\n assertSizeEquals(4, uHandler.getUserPageList(10).getAll());\r\n }", "@Override\n\tpublic List<User> listByPage(int page, int listSize, String searchType, String searchValue) throws Exception {\n\t\treturn null;\n\t}", "Data<List<User>> getfollowingUsers(Integer limit);", "Page<ChatDTO> findAllByUser(String username, Pageable pageable);", "Page<Person> listByCriteria(SearchCriteria searchCriteria, String sort, Integer pageIndex, Integer pageSize) throws ServiceException;", "public Page<ExtraUser> getAllByUser(Pageable pageable) {\n log.debug(\"Request extra info by User: {}\", SecurityUtils.getCurrentUserLogin());\n Optional<User> login = userRepository.findOneByLogin(SecurityUtils.getCurrentUserLogin());\n return extraUserRepository.findAllByUser(pageable,login.isPresent() ? login.get() : null);\n }", "public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;", "@Override\n public List getPagesWithActiveUsers(Long count, String orderBy) {\n log.debug(\"This method fetches most active users\");\n SimpleDateFormat datetimeFormatter = new SimpleDateFormat(\n \"yyyy-MM-dd HH:mm:ss\");\n LocalDateTime currentDateTime = LocalDateTime.now();\n List<CsvModel> csvModelList = csvRepository.findAll();\n List<String> responseList = new ArrayList<>();\n if (csvModelList == null) {\n throw new CsvException(String.format(\"records not found , please insert some records\"));\n }\n if (csvModelList != null && csvModelList.size() > 0) {\n for (CsvModel e : csvModelList) {\n Duration diff = Duration.between(currentDateTime, e.getLast_updated_at().toLocalDateTime());\n if (diff.toDays() < 60) {\n responseList.add(e.getUuid());\n }\n }\n }\n log.debug(\"Most active users fetched successfully\");\n return responseList;\n }", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "public List<User> findEmployees(String companyShortName, int start, int rows, String sortBy, String sortHow);", "public List<UnusualUserInfo> queryUnusualUserList(int chainId, int groupId, String userName,\n Integer pageNumber, Integer pageSize) throws BaseException {\n log.debug(\"start queryUnusualUserList groupId:{} userName:{} pageNumber:{} pageSize:{}\",\n groupId, userName, pageNumber, pageSize);\n\n Integer start =\n Optional.ofNullable(pageNumber).map(page -> (page - 1) * pageSize).orElse(null);\n String tableName = TableName.PARSER.getTableName(chainId, groupId);\n List<String> nameList =\n Arrays.asList(\"tableName\", \"groupId\", \"userName\", \"start\", \"pageSize\");\n List<Object> valueList = Arrays.asList(tableName, groupId, userName, start, pageSize);\n Map<String, Object> param = CommonTools.buidMap(nameList, valueList);\n\n List<UnusualUserInfo> listOfUnusualUser = parserMapper.listOfUnusualUser(param);\n return listOfUnusualUser;\n }", "@Query(value = \"SELECT user FROM User user WHERE user.active = :active\")\n Page<User> findByUserIsActive(Pageable pageable, @Param(\"active\") Integer active);", "public Page<Account> getAccPage(Pageable page);", "com.rpg.framework.database.Protocol.User getUsers(int index);", "com.rpg.framework.database.Protocol.User getUsers(int index);", "@Override\r\n\tpublic PageInfo<Users> getFans(Integer userId,Integer pageNum,Integer pageSize) {\n\t\tPageHelper.startPage(pageNum, pageSize, true);\r\n\t\tList<Users> fans = this.uMapper.getFans(userId);\r\n\t\treturn new PageInfo<>(fans);\r\n\t}", "Page<LoginHistoryEntity> findAll(Integer page);", "public List<EOSUser> listUsers(List<EOSState> states, int limit, int offset);", "List<ShopItem> findAllByInTopPageTrue();", "public List<User> getUsersByPage(User user, int pageSize, int currentPageNo) {\n\t\treturn userDao.getUsersByPage(user, pageSize, currentPageNo);\r\n\t}", "public PageList query(String logonName, String nickName, String certNo, String status,\n Date gmtCreate, Date gmtModify, int pageSize, int pageNum)\n throws DataAccessException {\n Map param = new HashMap();\n\n param.put(\"logonName\", logonName);\n param.put(\"nickName\", nickName);\n param.put(\"certNo\", certNo);\n param.put(\"status\", status);\n param.put(\"gmtCreate\", gmtCreate);\n param.put(\"gmtModify\", gmtModify);\n param.put(\"pageSize\", new Integer(pageSize));\n param.put(\"pageNum\", new Integer(pageNum));\n\n Paginator paginator = new Paginator();\n paginator.setItemsPerPage(pageSize);\n paginator.setPage(pageNum);\n\n paginator.setItems(((Integer) getSqlMapClientTemplate().queryForObject(\n \"MS-DC-USER-QUERY-COUNT-FOR-PAGING\", param)).intValue());\n\n PageList pageList = new PageList();\n pageList.setPaginator(paginator);\n\n if (paginator.getBeginIndex() <= paginator.getItems()) {\n param.put(\"startRow\", new Integer(paginator.getBeginIndex()));\n param.put(\"endRow\", new Integer(paginator.getEndIndex()));\n pageList.addAll(getSqlMapClientTemplate().queryForList(\"MS-DC-USER-QUERY\", param));\n }\n\n return pageList;\n }", "List<KingdomUser> getUsers();", "List<User> getUsers();", "List<User> getUsers();", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "@Override\r\n\tpublic List<UserDto> findUserListDTO(int age, Pageable page) {\n\t\treturn userDao.findUserListDTO(age, page);\r\n\t}", "public interface CustomerRepository extends JpaRepository<Customer,Long> {\n\n @Query(\"select customer from Customer customer where customer.user.login = ?#{principal.username}\")\n List<Customer> findByUserIsCurrentUser();\n \n @Query(\"select customer from Customer customer where customer.user.login = ?#{principal.username}\")\n Page<Customer> findByUserIsCurrentUser(Pageable page);\n\n}", "public List<User> getUsersStartingWith(String startsWith, Boolean enabled, int offset, int length) throws UserManagementException;", "List<RiceCooker> getPerPage(long startRow, long maxRows);", "public abstract <T> Page<T> list(Pageable pageable, Class<T> clazz);", "public List<User> listUsers(String userName);", "@RequestMapping (\"/members\")\r\n\tpublic String list(@RequestParam(\"page\") int page, Model model) {\n\t\tint pagenumber = page;\r\n\t\tmodel.addAttribute(\"pagenumber\", pagenumber);\r\n\t\t\r\n\t\t//Row count for following calculations\r\n\t\tint maxrows = membersService.getMemberCount();\r\n\t\t\r\n\t\t//Find the Max number of pages and see if an extra page is needed\r\n\t\tif (maxrows >= 7){\r\n\t\t\tint maxpages = maxrows / 7;\r\n\t\t\tint pageTest = maxpages * 7; \r\n\t\t\tint addPage = maxrows - pageTest;\r\n\t\t\tint zero = 0;\r\n\t\t//Add an extra page if TRUE\r\n\t\t\tif (addPage > zero){\r\n\t\t\t\tint extraPage = maxpages + 1;\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", extraPage);\r\n\t\t//Do not add an extra page if FALSE\t\t\r\n\t\t\t}else {\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", maxpages);\r\n\t\t\t}\r\n\t\t//Only one page is needed because at least 7 rows are not available \r\n\t\t}else{\r\n\t\t\tmodel.addAttribute(\"maxpages\", 1);\r\n\t\t }\r\n\t\t//pull the first 7 on page 1\r\n\t\tif (pagenumber <= 1) {\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(0, 7));\r\n\t\t}else{\r\n\t\t\tint stopSQL = 7; //Offset\r\n\t\t\tint pageNumber = pagenumber - 1; \r\n\t\t\tint startSQL = 7 * pageNumber; //What row should the query start at, e.g. 7 * 2 = 14 (start at row 14 and pull the next 7 rows)\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(startSQL, stopSQL));\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn \"members\";\r\n\t}", "public Map<String, String> listUserData(String login, int limit, int offset);", "Page<AccountDTO> coverListAccountToListEmpDTO(Page<Account> accounts);", "List<User> searchUsersByUsername(String username);", "@GET(\"/api/users\")\n Call<Example> getUserDetails(@Query(\"page\") Integer sort);", "@Test\n public void queryByPage() {\n List<Album> albums = albumDao.SelectByPage(1, 5);\n for (Album album : albums) {\n System.out.println(album);\n }\n }", "public PagedList<User> getFriendListProfiles(Integer limit, Integer offset, Long since, Long until) {\n return this.getFriendListProfiles(\"me\", limit, offset, since, until);\n }", "Iterable<User> getAllUsers();", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "@RequestMapping(\"/test/page\")\n public Page<User> testPage(@PageableDefault(value = 15, sort = { \"id\" },direction = Sort.Direction.DESC) Pageable pageable,\n User user) throws Exception{\n return findCriteriaPagable(user, pageable);\n }", "public List getAllUsers();", "public Criteria buildQueryCriteria(Session session,\n PageCriteria<SortType> pageCriteria) {\n Criteria crit = session.createCriteria(clazz);\n\n // If page size is -1, that means get all users\n if (pageCriteria.getPageSize() > 0) {\n crit.setMaxResults(pageCriteria.getPageSize());\n\n int firstResult = 0;\n if (pageCriteria.getPageNumber() > 1) {\n firstResult = (pageCriteria.getPageNumber() - 1) *\n pageCriteria.getPageSize();\n }\n crit.setFirstResult(firstResult);\n }\n\n for (Order order : buildOrders(pageCriteria)) {\n crit.addOrder(order);\n }\n\n Criterion orCriterion = null;\n for (String[] pair : pageCriteria.getOrCriteria()) {\n if (orCriterion == null) {\n orCriterion = Restrictions.ilike(pair[0], pair[1],\n MatchMode.ANYWHERE);\n } else {\n orCriterion = Restrictions.or(orCriterion,\n Restrictions.ilike(pair[0], pair[1],\n MatchMode.ANYWHERE));\n }\n }\n if (orCriterion != null) {\n crit.add(orCriterion);\n }\n\n return crit;\n }", "List<Accessprofile> listWithCritera(SearchCriteria searchCriteria);", "List<User> fetchAllUSers();", "public List<User> listSearch(String search);", "public Result findByPage(Page page,String hql, Object... params) ;", "Page<ExamPackage> searchListByUsernameAuthor(String username, int categoryID, int pageNo, int pageSize,Sort sort);", "public List<User> getUsers();" ]
[ "0.79801905", "0.7597542", "0.7439454", "0.7204894", "0.7151192", "0.71195155", "0.7057242", "0.6914709", "0.69139904", "0.68951315", "0.6876671", "0.6838331", "0.6759444", "0.6755624", "0.6669969", "0.6643688", "0.6623812", "0.6622553", "0.6619761", "0.65426254", "0.65390223", "0.6519133", "0.64614666", "0.6429957", "0.638347", "0.636006", "0.63522375", "0.6345558", "0.6304195", "0.6300646", "0.62782633", "0.62612134", "0.62451327", "0.6239572", "0.62222385", "0.62196606", "0.6193169", "0.6185548", "0.6172951", "0.6168983", "0.61544055", "0.6148362", "0.61381817", "0.6136302", "0.6132962", "0.6130989", "0.61305857", "0.6113389", "0.61106056", "0.6107817", "0.61062884", "0.61059684", "0.6100938", "0.60880995", "0.6085726", "0.60815346", "0.6067693", "0.6064179", "0.60389304", "0.6009109", "0.5989428", "0.5989142", "0.59842765", "0.5979739", "0.5975795", "0.597543", "0.5972926", "0.5972729", "0.59647375", "0.5954393", "0.59518665", "0.5931894", "0.59151715", "0.5905876", "0.5905876", "0.590457", "0.58880377", "0.5887965", "0.5887", "0.5876226", "0.58758336", "0.58747536", "0.58732516", "0.5849236", "0.58479714", "0.5844659", "0.5844313", "0.5833871", "0.58311766", "0.5818058", "0.58134836", "0.5810174", "0.5803532", "0.5791862", "0.5791858", "0.5776441", "0.57753235", "0.57746935", "0.5774238", "0.57711506" ]
0.6793135
12
Retrieve List Of Users With Multiple Criteria By Page
@PreAuthorize("@userAuthorize.canList(#searchCriterias)") @RequestMapping(value = "/listWithCriteriasByPage", method = RequestMethod.POST) public ResponseEntity<?> listWithCriteriasByPage(@RequestBody List<SearchCriteria> searchCriterias, Pageable pageable) { Page<User> users = userService.listWithCriterasByPage(searchCriterias, pageable); // return. return new ResponseEntity<Page<User>>(users, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Set<String> getUsers(String page);", "public List<UserVO> pagingUser(Criteria cri);", "public PageList<User> getUserPageList(User user, int pageSize, int pageNum) throws DataAccessException;", "Page<Accessprofile> listWithCriterasByPage(List<SearchCriteria> searchCriterias, Pageable pageable);", "List<Registration> allRegUserPagination(long idUser, int currentPage, int elementPerPage);", "Page<Accessprofile> listWithCriteraByPage(SearchCriteria searchCriteria, Pageable pageable);", "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "Page<Accessprofile> listAllByPage(Pageable pageable);", "@Override\r\n\tpublic List<MemberVO> selectuserall(PageCriteria c) {\n\t\treturn sqlSession.selectList(NAMESPACE + \".select_page\" ,c);\r\n\t}", "public List<AgtUser> findAllUserByPage(Map<String,Object> map);", "public Page<User> findAll(Pageable pageable);", "@RequestMapping(value = \"/listWithCriteriaByPage\", method = RequestMethod.POST)\n\tpublic ResponseEntity<?> listWithCriteriaByPage(@RequestBody SearchCriteria searchCriteria, Pageable pageable) {\n\t\tPage<User> users = userService.listWithCriteraByPage(searchCriteria, pageable);\n\t\t// return.\n\t\treturn new ResponseEntity<Page<User>>(users, HttpStatus.OK);\n\t}", "Page<ExamPackage> getPageByUsername(String username, int pageNo, int pageSize);", "@Override\r\n\tpublic Page<HistoryGroupBy> findUsers(Page<HistoryGroupBy> page)\r\n\t\t\tthrows Exception {\n\t\tString hql=\"from HistoryGroupBy s\";\r\n\t\treturn historyGroupByDao.findPage(page, hql);\r\n\t}", "@Override\r\n\tpublic PageInfo<User> selects(String username, Integer page, Integer pageSize) {\n\t\tPageMethod.startPage(page, pageSize);\r\n\t\tList<User> list = um.selects(username);\r\n\t\treturn new PageInfo<User>(list);\r\n\t}", "@GET(\"users\")\n Call<PageResourceUserBaseResource> getUsers(\n @retrofit2.http.Query(\"filter_displayname\") String filterDisplayname, @retrofit2.http.Query(\"filter_email\") String filterEmail, @retrofit2.http.Query(\"filter_firstname\") String filterFirstname, @retrofit2.http.Query(\"filter_fullname\") String filterFullname, @retrofit2.http.Query(\"filter_lastname\") String filterLastname, @retrofit2.http.Query(\"filter_username\") String filterUsername, @retrofit2.http.Query(\"filter_tag\") String filterTag, @retrofit2.http.Query(\"filter_group\") String filterGroup, @retrofit2.http.Query(\"filter_role\") String filterRole, @retrofit2.http.Query(\"filter_last_activity\") String filterLastActivity, @retrofit2.http.Query(\"filter_id_list\") String filterIdList, @retrofit2.http.Query(\"filter_search\") String filterSearch, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );", "List<User> getUnapprovedUserListByPage(UserVo userVo);", "@GET(\"user-relation?expand=userOne,userTwo&per-page=333\")\n Call<UserRelationVisitsResponse>getUsersRelationForVisits();", "@Override\n\tpublic JSONObject getUserByPage(String param) {\n\t\tJSONObject data = new JSONObject();\n\t\tJSONObject result = new JSONObject();\n\t\tMainUtility mainUtil = new MainUtility();\n\t\tJSONObject jsonParams = mainUtil.stringToJson(param);\n\t\tStringBuilder builder = new StringBuilder();\n\t\tStringBuilder builderGetTotal = new StringBuilder();\n\n\t\tbuilder.append(\"SELECT user_id, user_login, full_name, email, group_id \"\n\t\t\t\t+ \"FROM crm_user \"\n\t\t\t\t+ \"WHERE group_id IN (2,3) \");\n\t\tbuilderGetTotal.append(\"SELECT COUNT(1) FROM crm_user \"\n\t\t\t\t+ \"WHERE group_id IN (2,3) \");\n\t\tif (jsonParams.get(\"user_login\") != null && !\"\".equals(jsonParams.get(\"user_login\").toString())) {\n\t\t\tbuilder.append(\" AND user_login LIKE N'%\" + jsonParams.get(\"user_login\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t\t\t.append(\" AND user_login LIKE N'%\" + jsonParams.get(\"user_login\").toString() + \"%'\");\n\t\t}\n\t\tif (jsonParams.get(\"full_name\") != null && !\"\".equals(jsonParams.get(\"full_name\").toString())) {\n\t\t\tbuilder.append(\" AND full_name LIKE N'%\" + jsonParams.get(\"full_name\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t.append(\" AND full_name LIKE N'%\" + jsonParams.get(\"full_name\").toString() + \"%'\");\n\t\t}\n\t\tif (jsonParams.get(\"email\") != null && !\"\".equals(jsonParams.get(\"email\").toString())) {\n\t\t\tbuilder.append(\" AND email LIKE N'%\" + jsonParams.get(\"email\").toString() + \"%'\");\n\t\t\tbuilderGetTotal\n\t\t\t.append(\" AND email LIKE N'%\" + jsonParams.get(\"email\").toString() + \"%'\");\n\t\t}\n\t\t// sortby\n\t\tif (jsonParams.get(\"sortField\") != null && !\"\".equals(jsonParams.get(\"sortField\").toString())) {\n\t\t\tswitch (jsonParams.get(\"sortField\").toString()) {\n\t\t\tdefault:\n\t\t\t\tbuilder.append(\" ORDER BY crm_user.created_date DESC\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// sortOrder chỉ là descend và ascend hoặc rỗng\n\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"descend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n\t\t\t\tbuilder.append(\" DESC\");\n\t\t\t}\n\t\t\tif (jsonParams.get(\"sortOrder\") != null && \"ascend\".equals(jsonParams.get(\"sortOrder\").toString())) {\n\t\t\t\tbuilder.append(\" ASC\");\n\t\t\t}\n\t\t}\n\t\t// lấy các biến từ table (limit, offset)\n\t\tmainUtil.getLimitOffset(builder, jsonParams);\n\t\ttry {\n\t\t\tint totalRow = this.jdbcTemplate.queryForObject(builderGetTotal.toString(), Integer.class);\n\t\t\tList<Map<String, Object>> listUser = this.jdbcTemplate.queryForList(builder.toString());\n\t\t\tJSONObject results = new JSONObject();\n\t\t\tresults.put(\"results\", listUser);\n\t\t\tresults.put(\"total\", totalRow);\n\t\t\tdata.put(\"data\", results);\n\t\t\tdata.put(\"success\", true);\n\t\t} catch (Exception e) {\n\t\t\tdata.put(\"success\", false);\n\t\t\tdata.put(\"err\", e.getMessage());\n\t\t\tdata.put(\"msg\", \"Lấy danh sách người dùng thất bại\");\n\t\t}\n\t\treturn data;\n\t}", "Results getResultsPage(FilterSpecifier.ListBy listBy, int page) throws SearchServiceException;", "Page<User> getAll(Pageable pageable, String search);", "public List getUsers(User user);", "Page<ExamPackage> getPageByUsername(String username, int pageNo, int pageSize, Sort sort);", "@Override\n\tpublic List<User> listByPage(int page) throws Exception {\n\t\treturn null;\n\t}", "Page<ServiceUserDTO> findAll(Pageable pageable);", "Data<List<User>> getfollowingUsers(Integer limit);", "Page<ParaUserDTO> findAll(Pageable pageable);", "@GetMapping\n\tpublic List<UserRest> getUsers(@RequestParam(value = \"page\", defaultValue = \"0\") int page,\n\t\t\t@RequestParam(value = \"limit\", defaultValue = \"25\") int limit){\n\t\t\n\t\tList<UserRest> returnValue = new ArrayList<>();\n\t\t\n\t\tList<UserDTO> users = userService.getUsers(page, limit);\n\t\t\n\t\tfor (UserDTO userDTO : users) {\n\t\t\tUserRest userModel = new UserRest();\n\t\t\tBeanUtils.copyProperties(userDTO, userModel);\n\t\t\treturnValue.add(userModel);\n\t\t}\n\t\t\n\t\treturn returnValue;\n\t}", "@Override\n public List<UserContact> getUserContacts(User user, Integer offset) {\n Pageable pageable = PageRequest.of(offset, 10,\n Sort.by(Sort.Direction.ASC,\"username\", \"byname\"));\n// Sort.by(\"contact\").descending().and(Sort.by(\"username\")));\n Page<UserContact> page = repository.findByUser(user, pageable);\n// page.getContent().forEach(System.out::println);\n// pageable = page.nextPageable();\n return page.getContent();\n }", "com.heroiclabs.nakama.api.User getUsers(int index);", "@Override\r\n\tpublic List<User> selectAllUser(int pageNumber,int pageSize) {\n\t\tList<User> result = null;\r\n\t\tresult = userMapper.selectAllUser(pageNumber,pageSize);\r\n\t\treturn null == result ? new ArrayList<User>() : result;\r\n\t}", "Page<ServiceUserDTO> search(String query, Pageable pageable);", "private void getPaginatedSearchResults(HttpServletRequest request, NewUserActionForm newUserBean,\r\n\t\t\t\tIExtendedPaginatedList thePage)throws BaseAppException{\r\n\t\tUserRegistrationService service = new UserRegistrationService();\r\n\t\tthePage = thePage == null ? getPaginatedListFromRequest(request) : thePage ;\r\n\t\t\t\r\n\t\tString strEmailId = newUserBean.getSch_EmailID();\r\n\t\tString strFirstName = newUserBean.getSch_FirstName();\r\n\t\tString strlastName = newUserBean.getSch_LastName();\r\n\t\tInteger regStatus = newUserBean.getSch_RegStatus().equals(\"\") ? null : new Integer(Integer.parseInt(newUserBean.getSch_RegStatus()));\r\n\t\tint roleId = Integer.parseInt(EducationConstant.AFFILIATE_USER_ROLE);\r\n\t\tString frmDate = newUserBean.getSch_fromDate();\r\n\t\tString toDate = newUserBean.getSch_toDate();\r\n\t\t\r\n\t\tint totalnoOfRecords = service.getUsersCountByRoleId(roleId,strEmailId,\r\n\t\t\t\tstrFirstName,strlastName,regStatus,frmDate,toDate);\t\t\r\n\t\tint frmRecordNo = thePage.getFirstRecordIndex();\r\n\t\tint noOfRecords = thePage.getPageSize();\r\n\t\tthePage.setTotalNumberOfRows(totalnoOfRecords);\r\n\t\t\r\n\t\tArrayList searchResults = service.getUsersByRoleId(roleId,strEmailId,strFirstName,\r\n\t\t\t\tstrlastName,regStatus,frmDate,toDate,frmRecordNo,noOfRecords);\r\n\t\tthePage.setList(searchResults);\r\n\t\tnewUserBean.setPgSearchResults(thePage);\r\n\t\t//Take backup of Search criteria \r\n\t\t NewUserListSearchCriteria searchCriteria = new NewUserListSearchCriteria();\r\n\t\t Utilities.copyProperties(searchCriteria,newUserBean);\r\n\t\t//store searchCriteria \r\n\t\t((PaginatedListImpl)thePage).setSearchCriteria(searchCriteria);\r\n\t\t//cache search results in session\r\n\t\tcacheSearchResult(request,SessionConstants.SCH_RESULTS_NEWUSER_AFFILIATE_LIST, thePage);\t\t\r\n\t}", "public void testGetUserPageList() throws Exception\r\n {\r\n assertSizeEquals(4, uHandler.getUserPageList(10).getAll());\r\n }", "@Override\n\tpublic List<User> listByPage(int page, int listSize) throws Exception {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<SysUser> getByConditionPage(SysUserQueryModel sysUserQueryModel) {\n\t\treturn sysUserMapper.getByConditionPage(sysUserQueryModel);\r\n\t}", "List<Activity> findAllPageable(int page, int size);", "void findWithPagination(Pagination<Activity, Assignment> pagination);", "List<CustomerInformation> queryListByCustomer(Integer page, Integer rows, CustomerInformation cust);", "@Override\n\tpublic List<User_role> findAllUserLimit(Integer currentPage,Integer pageSize)throws Exception {\n\t\treturn userMapper.findAllUserLimit(currentPage,pageSize);\n\t}", "List<E> page(Page page, Long...params);", "Page<ParaUserDTO> search(String query, Pageable pageable);", "@GetMapping\n public String getUsers(@RequestParam(value =\"page\", defaultValue = \"1\") int page,\n @RequestParam(value = \"limit\", defaultValue = \"25\") int limit)\n {\n return \"Get users for page \" + page + \" limit \" + limit;\n }", "public List<UserInfo> resultUserList(PageBean pBean) {\n\t\treturn adminSearchDao.resultUserList(pBean);\n\t}", "@Test\n public void test1(){\n PageInfo<User> page = iUserService.selectWithPage(new User(),new Page(1,10,null));\n List<User> list = page.getList();\n\n System.out.println(list.toString());\n\n\n List<User> user = new ArrayList<User>();\n User user1 = new User();\n user1.setId(1);\n user.add(user1);\n System.out.println(user.toString());\n }", "List<T> findPage(int pageNumber);", "public Page<ExtraUser> getAllByUser(Pageable pageable) {\n log.debug(\"Request extra info by User: {}\", SecurityUtils.getCurrentUserLogin());\n Optional<User> login = userRepository.findOneByLogin(SecurityUtils.getCurrentUserLogin());\n return extraUserRepository.findAllByUser(pageable,login.isPresent() ? login.get() : null);\n }", "Page<ChatDTO> findAllByUser(String username, Pageable pageable);", "@Override\n\tpublic List<User> getList(Integer page, Integer Limit) {\n\t\treturn null;\n\t}", "List<User> loadActiveUsers(User user);", "public List<UnusualUserInfo> queryUnusualUserList(int chainId, int groupId, String userName,\n Integer pageNumber, Integer pageSize) throws BaseException {\n log.debug(\"start queryUnusualUserList groupId:{} userName:{} pageNumber:{} pageSize:{}\",\n groupId, userName, pageNumber, pageSize);\n\n Integer start =\n Optional.ofNullable(pageNumber).map(page -> (page - 1) * pageSize).orElse(null);\n String tableName = TableName.PARSER.getTableName(chainId, groupId);\n List<String> nameList =\n Arrays.asList(\"tableName\", \"groupId\", \"userName\", \"start\", \"pageSize\");\n List<Object> valueList = Arrays.asList(tableName, groupId, userName, start, pageSize);\n Map<String, Object> param = CommonTools.buidMap(nameList, valueList);\n\n List<UnusualUserInfo> listOfUnusualUser = parserMapper.listOfUnusualUser(param);\n return listOfUnusualUser;\n }", "@Override\n public List getPagesWithActiveUsers(Long count, String orderBy) {\n log.debug(\"This method fetches most active users\");\n SimpleDateFormat datetimeFormatter = new SimpleDateFormat(\n \"yyyy-MM-dd HH:mm:ss\");\n LocalDateTime currentDateTime = LocalDateTime.now();\n List<CsvModel> csvModelList = csvRepository.findAll();\n List<String> responseList = new ArrayList<>();\n if (csvModelList == null) {\n throw new CsvException(String.format(\"records not found , please insert some records\"));\n }\n if (csvModelList != null && csvModelList.size() > 0) {\n for (CsvModel e : csvModelList) {\n Duration diff = Duration.between(currentDateTime, e.getLast_updated_at().toLocalDateTime());\n if (diff.toDays() < 60) {\n responseList.add(e.getUuid());\n }\n }\n }\n log.debug(\"Most active users fetched successfully\");\n return responseList;\n }", "@Override\n\tpublic List<User> listByPage(Params params) throws Exception {\n\t\treturn null;\n\t}", "public List<Object> retrievePagingList(PageBean pageBean) ;", "com.rpg.framework.database.Protocol.User getUsers(int index);", "com.rpg.framework.database.Protocol.User getUsers(int index);", "public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;", "Page<Student> findPaginated(int pageNo, int pageSize);", "public List<User> getUsersByNumberOfPosts(int N);", "public List<EOSUser> listUsers(List<EOSState> states, int limit, int offset);", "public List<User> findEmployees(String companyShortName, int start, int rows, String sortBy, String sortHow);", "public Page getCustomerProfiles(Integer pageNumber,String requestPage) throws EOTException;", "public Page<T> list(DetachedCriteria criteria, Integer pageNumber, Integer pageSize);", "Page<AccountDTO> coverListAccountToListEmpDTO(Page<Account> accounts);", "List<RiceCooker> getPerPage(long startRow, long maxRows);", "List<ShopItem> findAllByInTopPageTrue();", "Iterable<User> getAllUsers();", "@Override\r\n\tpublic PageInfo<Users> getFans(Integer userId,Integer pageNum,Integer pageSize) {\n\t\tPageHelper.startPage(pageNum, pageSize, true);\r\n\t\tList<Users> fans = this.uMapper.getFans(userId);\r\n\t\treturn new PageInfo<>(fans);\r\n\t}", "@Override\n\tpublic List<User> listByPage(int page, int listSize, String searchType, String searchValue) throws Exception {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<UserDto> findUserListDTO(int age, Pageable page) {\n\t\treturn userDao.findUserListDTO(age, page);\r\n\t}", "Data<List<User>> getFollowers(Integer limit);", "List<User> getUsers();", "List<User> getUsers();", "public UserRow[] searchUsers(UserRow userModel, boolean isAnd)\n throws AdminPersistenceException {\n boolean concatAndOr = false;\n String andOr;\n StringBuffer theQuery = new StringBuffer(SELECT_SEARCH_USERS);\n Vector<Integer> ids = new Vector<Integer>();\n Vector<String> params = new Vector<String>();\n \n if (isAnd) {\n andOr = \") AND (\";\n } else {\n andOr = \") OR (\";\n }\n concatAndOr = addIdToQuery(ids, theQuery, userModel.id, \"id\", concatAndOr,\n andOr);\n concatAndOr = addIdToQuery(ids, theQuery, userModel.domainId, \"domainId\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.specificId,\n \"specificId\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.login, \"login\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.firstName,\n \"firstName\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.lastName,\n \"lastName\", concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.eMail, \"email\",\n concatAndOr, andOr);\n concatAndOr = addParamToQuery(params, theQuery, userModel.accessLevel,\n \"accessLevel\", concatAndOr, andOr);\n concatAndOr =\n addParamToQuery(params, theQuery, userModel.loginQuestion, \"loginQuestion\", concatAndOr,\n andOr);\n concatAndOr =\n addParamToQuery(params, theQuery, userModel.loginAnswer, \"loginAnswer\", concatAndOr, andOr);\n if (concatAndOr) {\n theQuery.append(\") AND (accessLevel <> 'R')\");\n } else {\n theQuery.append(\" WHERE (accessLevel <> 'R')\");\n }\n theQuery.append(\" order by UPPER(lastName)\");\n \n int[] idsArray = new int[ids.size()];\n for (int i = 0; i < ids.size(); i++) {\n idsArray[i] = ids.get(i).intValue();\n }\n \n return getRows(theQuery.toString(), idsArray, params.toArray(new String[0])).toArray(\n new UserRow[0]);\n }", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "public Map<String, String> listUserData(String login, int limit, int offset);", "public interface CustomerRepository extends JpaRepository<Customer,Long> {\n\n @Query(\"select customer from Customer customer where customer.user.login = ?#{principal.username}\")\n List<Customer> findByUserIsCurrentUser();\n \n @Query(\"select customer from Customer customer where customer.user.login = ?#{principal.username}\")\n Page<Customer> findByUserIsCurrentUser(Pageable page);\n\n}", "public List<User> getUsersStartingWith(String startsWith, Boolean enabled, int offset, int length) throws UserManagementException;", "Page<LoginHistoryEntity> findAll(Integer page);", "Page<Person> listByCriteria(SearchCriteria searchCriteria, String sort, Integer pageIndex, Integer pageSize) throws ServiceException;", "@RequestMapping (\"/members\")\r\n\tpublic String list(@RequestParam(\"page\") int page, Model model) {\n\t\tint pagenumber = page;\r\n\t\tmodel.addAttribute(\"pagenumber\", pagenumber);\r\n\t\t\r\n\t\t//Row count for following calculations\r\n\t\tint maxrows = membersService.getMemberCount();\r\n\t\t\r\n\t\t//Find the Max number of pages and see if an extra page is needed\r\n\t\tif (maxrows >= 7){\r\n\t\t\tint maxpages = maxrows / 7;\r\n\t\t\tint pageTest = maxpages * 7; \r\n\t\t\tint addPage = maxrows - pageTest;\r\n\t\t\tint zero = 0;\r\n\t\t//Add an extra page if TRUE\r\n\t\t\tif (addPage > zero){\r\n\t\t\t\tint extraPage = maxpages + 1;\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", extraPage);\r\n\t\t//Do not add an extra page if FALSE\t\t\r\n\t\t\t}else {\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", maxpages);\r\n\t\t\t}\r\n\t\t//Only one page is needed because at least 7 rows are not available \r\n\t\t}else{\r\n\t\t\tmodel.addAttribute(\"maxpages\", 1);\r\n\t\t }\r\n\t\t//pull the first 7 on page 1\r\n\t\tif (pagenumber <= 1) {\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(0, 7));\r\n\t\t}else{\r\n\t\t\tint stopSQL = 7; //Offset\r\n\t\t\tint pageNumber = pagenumber - 1; \r\n\t\t\tint startSQL = 7 * pageNumber; //What row should the query start at, e.g. 7 * 2 = 14 (start at row 14 and pull the next 7 rows)\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(startSQL, stopSQL));\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn \"members\";\r\n\t}", "List<Accessprofile> listWithCritera(SearchCriteria searchCriteria);", "Results setRowsPerPage(FilterSpecifier.ListBy listBy, int rowsPerPage) throws SearchServiceException;", "List<KingdomUser> getUsers();", "Data<User> getUserSearch(String user, String fields);", "@Test\n public void queryByPage() {\n List<Album> albums = albumDao.SelectByPage(1, 5);\n for (Album album : albums) {\n System.out.println(album);\n }\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/user/{id}/page/{page}/items/{size}\")\r\n public Page<Alert> getAllByUser(@PathVariable(\"id\") String id, @PathVariable(\"page\") String page,\r\n @PathVariable(\"size\") String size, HttpServletRequest request) {\r\n Pageable pageable = new PageRequest(Integer.parseInt(page), Integer.parseInt(size));\r\n UserProfile profile = userProfileRepository.findOne(id);\r\n List<String> alertTypes = new ArrayList<>();\r\n profile.getGroups().forEach((group) -> {\r\n alertTypes.addAll(group.getNotificationIds());\r\n });\r\n\r\n// DateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n// Date today = new Date();\r\n// try {\r\n// today = formatter.parse(formatter.format(new Date()));\r\n// } catch (ParseException ex) {\r\n// Logger.getLogger(AlertController.class.getName()).log(Level.SEVERE, null, ex);\r\n// }\r\n//\r\n// Calendar c = Calendar.getInstance();\r\n// c.setTime(today);\r\n// c.add(Calendar.DATE, 1);\r\n// c.add(Calendar.SECOND, -1);\r\n//\r\n// Page<Alert> res = alertRepository.findByAlertTypeInAndDateTimeBetweenOrderByDateTimeDesc(alertTypes, today,\r\n// c.getTime(), pageable);\r\n\r\n Page<Alert> res = alertRepository.findByAlertTypeInOrderByDateTimeDesc(alertTypes, pageable);\r\n return res;\r\n }", "public PageList query(String logonName, String nickName, String certNo, String status,\n Date gmtCreate, Date gmtModify, int pageSize, int pageNum)\n throws DataAccessException {\n Map param = new HashMap();\n\n param.put(\"logonName\", logonName);\n param.put(\"nickName\", nickName);\n param.put(\"certNo\", certNo);\n param.put(\"status\", status);\n param.put(\"gmtCreate\", gmtCreate);\n param.put(\"gmtModify\", gmtModify);\n param.put(\"pageSize\", new Integer(pageSize));\n param.put(\"pageNum\", new Integer(pageNum));\n\n Paginator paginator = new Paginator();\n paginator.setItemsPerPage(pageSize);\n paginator.setPage(pageNum);\n\n paginator.setItems(((Integer) getSqlMapClientTemplate().queryForObject(\n \"MS-DC-USER-QUERY-COUNT-FOR-PAGING\", param)).intValue());\n\n PageList pageList = new PageList();\n pageList.setPaginator(paginator);\n\n if (paginator.getBeginIndex() <= paginator.getItems()) {\n param.put(\"startRow\", new Integer(paginator.getBeginIndex()));\n param.put(\"endRow\", new Integer(paginator.getEndIndex()));\n pageList.addAll(getSqlMapClientTemplate().queryForList(\"MS-DC-USER-QUERY\", param));\n }\n\n return pageList;\n }", "@GET(\"/api/users\")\n Call<Example> getUserDetails(@Query(\"page\") Integer sort);", "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "public Criteria buildQueryCriteria(Session session,\n PageCriteria<SortType> pageCriteria) {\n Criteria crit = session.createCriteria(clazz);\n\n // If page size is -1, that means get all users\n if (pageCriteria.getPageSize() > 0) {\n crit.setMaxResults(pageCriteria.getPageSize());\n\n int firstResult = 0;\n if (pageCriteria.getPageNumber() > 1) {\n firstResult = (pageCriteria.getPageNumber() - 1) *\n pageCriteria.getPageSize();\n }\n crit.setFirstResult(firstResult);\n }\n\n for (Order order : buildOrders(pageCriteria)) {\n crit.addOrder(order);\n }\n\n Criterion orCriterion = null;\n for (String[] pair : pageCriteria.getOrCriteria()) {\n if (orCriterion == null) {\n orCriterion = Restrictions.ilike(pair[0], pair[1],\n MatchMode.ANYWHERE);\n } else {\n orCriterion = Restrictions.or(orCriterion,\n Restrictions.ilike(pair[0], pair[1],\n MatchMode.ANYWHERE));\n }\n }\n if (orCriterion != null) {\n crit.add(orCriterion);\n }\n\n return crit;\n }", "@Query(value = \"SELECT user FROM User user WHERE user.active = :active\")\n Page<User> findByUserIsActive(Pageable pageable, @Param(\"active\") Integer active);", "public PagedList<User> getFriendListProfiles(Integer limit, Integer offset, Long since, Long until) {\n return this.getFriendListProfiles(\"me\", limit, offset, since, until);\n }", "List<User> searchUsersByUsername(String username);", "Page<Visited> findAll(Pageable pageable);", "Page<UserPortfolioDTO> findAll(Pageable pageable);", "List<Accessprofile> listWithCriteras(List<SearchCriteria> searchCriterias);", "public List<User> getUsersByPage(User user, int pageSize, int currentPageNo) {\n\t\treturn userDao.getUsersByPage(user, pageSize, currentPageNo);\r\n\t}", "Page<ParaUserDTO> findAllWithEagerRelationships(Pageable pageable);" ]
[ "0.7804747", "0.7401979", "0.72224367", "0.71534604", "0.71097255", "0.7010981", "0.68902296", "0.6757036", "0.6737556", "0.67349166", "0.67086434", "0.66265535", "0.6607883", "0.6529546", "0.6526367", "0.65040904", "0.64713275", "0.6468892", "0.64617586", "0.6423429", "0.6394833", "0.6328479", "0.63283384", "0.62793446", "0.6239578", "0.62080353", "0.6203356", "0.6201913", "0.61984307", "0.6163273", "0.61487526", "0.613044", "0.61210406", "0.6111824", "0.6103423", "0.60955805", "0.60933906", "0.6089675", "0.6077778", "0.6071417", "0.6027503", "0.6014104", "0.60116595", "0.60103565", "0.59960073", "0.5977805", "0.59633446", "0.59578276", "0.59480965", "0.5942648", "0.5937352", "0.5935846", "0.59347236", "0.593463", "0.5901349", "0.59007794", "0.5900488", "0.5881789", "0.58772504", "0.58686316", "0.58604485", "0.585713", "0.5846597", "0.58384085", "0.5830347", "0.5821481", "0.5817294", "0.5808757", "0.5796323", "0.5780343", "0.57752675", "0.577103", "0.577103", "0.57613105", "0.5759688", "0.57576746", "0.5750179", "0.5741333", "0.5735254", "0.57294554", "0.57265425", "0.5720858", "0.5719506", "0.57174987", "0.57133424", "0.5706404", "0.5698438", "0.569772", "0.56943566", "0.56911975", "0.5690105", "0.5686997", "0.5682816", "0.56814754", "0.56808585", "0.5678964", "0.56697863", "0.5664153", "0.5662267", "0.56610304" ]
0.6544876
13
Retrieve All User For Select
@RequestMapping(value = "/listAllForSelect", method = RequestMethod.GET) public ResponseEntity<List<Map<String, Object>>> listAllForSelect() { List<Map<String, Object>> usernames = userService.listAllForSelect(); // return. return new ResponseEntity<List<Map<String, Object>>>(usernames, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<User> selectAllUser() {\n\t\tList<User> users = null;\n\t\ttry {\n\t\t\tusers = client.queryForList(\"selectAllUser\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn users;\n\n\t}", "List<Userinfo> selectAll();", "List<User> selectAll();", "List<User> selectAll();", "List<SysUser> selectAll();", "@Override\n\tpublic List<User> selectall() {\n\t\treturn userMapper.selectall();\n\t}", "public List<User> selectAllUser() {\n\t\treturn userMapper.selectAllUser();\n\t}", "public List getAllUsers();", "@Override\n\tpublic List<User> selectAllUser() {\n\t\treturn null;\n\t}", "@Override\n public List<User> selectAllUsers() {\n\n List<User> userList = new ArrayList<>();\n\n try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n String sql = \"SELECT * FROM ers_users\";\n\n PreparedStatement ps = connection.prepareStatement(sql);\n\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n userList.add(\n new User(\n rs.getInt(1)\n , rs.getString(2)\n , rs.getString(3)\n , rs.getString(4)\n , rs.getString(5)\n , rs.getString(6)\n , rs.getInt(7)\n )\n );\n }\n }\n\n catch (SQLException e) {\n\n e.printStackTrace();\n }\n\n return userList;\n }", "@Override\r\n\t\tpublic List<Dev_User> selAll() {\n\t\t\tList<Dev_User> list =session.selectList(\"com.app.dao.AppMapper.selAll\");\r\n\t\t\treturn list;\r\n\t\t}", "List<BaseUser> selectAll();", "public List<User> selectAll() {\n\t\treturn mapper.selectAll();\n\t}", "@Override\n public List<User> getAllUser() {\n// SQLParameter sqlParameter = DSL.select()\n// .from(TableOperand.table(User.class))\n// .build();\n// return executor.selectList(sqlParameter);\n return null;\n }", "public List<User> getAllUsers();", "@Override\r\n\tpublic List<AdminUser> selectAll() {\n\t\treturn adminUserMapper.selectAll();\r\n\t}", "public List<Person> UserSelect() {\n\t\t System.out.println(\"UserSelect\");\n\t\t return personDAO.getPersons();\n\t}", "@Override\r\n public List<User> userfindAll() {\n return userMapper.userfindAll();\r\n }", "List<User> getAllUsers();", "List<User> getAllUsers();", "@Override\r\n\tpublic User getAllUser() {\n\t\tList<User> list=null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT * FROM USER\";\r\n\t\t\treturn qr.query(sql, new BeanHandler<User>(User.class));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "List<User> fetchAllUSers();", "public void selectAllUser() {\n String sql = \"SELECT id, user, publickey, password, salt FROM users\";\n\n try (Connection conn = this.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n // loop through the result set\n while (rs.next()) {\n System.out.println(rs.getInt(\"id\") + \"\\t\" + rs.getString(\"user\") + \"\\t\" + rs.getDouble(\"publickey\")\n + \"\\t\" + rs.getString(\"password\") + \"\\t\" + rs.getString(\"salt\"));\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public List getUsers(User user);", "public void getAllUsers() {\n\t\t\n\t}", "Iterable<User> getAllUsers();", "List<User> getUsers();", "List<User> getUsers();", "List<User> loadAll();", "public static ObservableList<User> selectAll() {\n DBConnection.startConnection();\n ObservableList<User> userList = FXCollections.observableArrayList();\n\n try (PreparedStatement ps = DBConnection.getConnection().prepareStatement(SELECT_ALL)) {\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n int id = rs.getInt(\"User_ID\");\n\n User user = selectById(id);\n userList.add(user);\n }\n\n } catch (SQLException err) {\n err.printStackTrace();\n }\n\n return userList;\n }", "List<KingdomUser> getAllUsers();", "@Override\r\n\tpublic List<User> queryAllUsers() {\n\t\tList<User> users = userMapper.queryAllUsers();\r\n\t\treturn users;\r\n\t}", "public static ArrayList<User> selectUsers() {\n \n ArrayList<User> users = new ArrayList<>();\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n\n String query = \"SELECT * FROM users \";\n \n try {\n ps = connection.prepareStatement(query);\n rs = ps.executeQuery();\n ResultSetMetaData mD = rs.getMetaData();\n int colCount = mD.getColumnCount();\n User user = null;\n \n for (int i = 0; i < colCount; i++) {\n if (rs.next()) {\n user = new User();\n user.setUserID(rs.getInt(\"userID\"));\n user.setFirstName(rs.getString(\"firstName\"));\n user.setLastName(rs.getString(\"lastName\"));\n user.setEmail(rs.getString(\"email\"));\n user.setAddr1(rs.getString(\"addr1\"));\n user.setAddr2(rs.getString(\"addr2\"));\n user.setCity(rs.getString(\"city\"));\n user.setStateRegion(rs.getString(\"state\"));\n user.setZipcode(rs.getInt(\"zip\"));\n user.setCountry(rs.getString(\"country\"));\n user.setRoleName(rs.getString(\"roleName\"));\n System.out.println(user.getFirstName());\n users.add(user);\n }\n }\n return users;\n } catch (SQLException e) {\n System.out.println(e);\n return null;\n } finally {\n DBUtil.closeResultSet(rs);\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }", "public List<User> getUsers();", "@Override\r\n\tpublic List<Map<String, Object>> findAllUser() {\n\t\treturn userMapper.findAllUser();\r\n\t}", "@Override\r\n\tpublic List<User> selectAllUser(int pageNumber,int pageSize) {\n\t\tList<User> result = null;\r\n\t\tresult = userMapper.selectAllUser(pageNumber,pageSize);\r\n\t\treturn null == result ? new ArrayList<User>() : result;\r\n\t}", "@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}", "public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;", "public List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }", "@Override\n public List<User> findAll() {\n try {\n return runner.query(con.getThreadConnection(),\"select * from user\",new BeanListHandler<User>(User.class));\n } catch (SQLException e) {\n System.out.println(\"执行失败\");\n throw new RuntimeException(e);\n }\n }", "public List<User> listAll() throws Exception;", "@Override\n\tpublic List<User> getAllUser() {\n\t\tList<User> users = dao.searchAllUser();\n\t\treturn users;\n\t}", "@GetMapping(\"/allusers\")\n\t@Secured({CommonConstants.ROLE_EMPLOYEE,CommonConstants.ROLE_ADMIN})\n\tpublic ResponseEntity<List<UserEntity>> fetchUsers(){\n\t\treturn new ResponseEntity<List<UserEntity>>(this.service.findAll(), HttpStatus.OK);\n\t}", "List<User_Role> selectAll();", "@Override\n\tpublic List<User> getallUserDetail() {\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\t// select all from table user\n\t\tString sql = \"SELECT * FROM user\";\n\t\tList<User> listuser = jdbcTemplate.query(sql, new RowMapper<User>() {\n\n\t\t\t@Override\n\t\t\tpublic User mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\t\tUser user = new User();\n\t\t\t\t// set parameters\n\t\t\t\tuser.setUserid(rs.getLong(\"user_id\"));\n\t\t\t\tuser.setEmailid(rs.getString(\"emailid\"));\n\t\t\t\tuser.setAppversion(rs.getString(\"appversion\"));\n\t\t\t\tuser.setGcmregistartionkey(rs.getString(\"gcmregistartionkey\"));\n\t\t\t\tuser.setMobileno(rs.getString(\"mobileno\"));\n\t\t\t\tuser.setUuid(rs.getString(\"uuid\"));\n\t\t\t\tuser.setUsername(rs.getString(\"username\"));\n\t\t\t\tuser.setCreateddate(rs.getDate(\"createddate\"));\n\t\t\t\treturn user;\n\t\t\t}\n\n\t\t});\n\n\t\treturn listuser;\n\n\t}", "@GET\n\t@Path(\"/allUsers\")\n\t@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\tpublic Map<String, List<User>> getUser() throws JsonGenerationException, JsonMappingException, IOException {\n\t\t\n\t\tMap<String, List<User>> user = userDao.getUser();\n\t\t\n\t\treturn user; \n\t}", "@Override\n\tpublic ArrayList<User> findAll() {\n\t\t\n\t\treturn userDao.querydAll();\n\t}", "List<KingdomUser> getUsers();", "public List<TestUser> getAllUsers(){\n\t\tSystem.out.println(\"getting list of users..\");\n\t\tList<TestUser> user=new ArrayList<TestUser>();\n\t\tuserRepositary.findAll().forEach(user::add);\n\t\t//System.out.println(\"data: \"+userRepositary.FindById(\"ff80818163731aea0163731b190c0000\"));\n\t\treturn user;\n\t}", "@Override\r\n\tpublic List<User> selectList(User user) {\n\t\tList<User> userList = new ArrayList<>();\r\n\t\tuserList = dao.selectList(\"selectUsersByUsername\", user,false);\r\n\t\tif(userList == null || userList.size()<=0){\r\n\t\t\tlogger.info(\"查询用户信息信息为空\");\r\n\t\t}\r\n\t\t\r\n\t\treturn userList;\r\n\t}", "@Override\r\n\tpublic List<User> getAllUser() {\n\t\tList<User> listStudents = new ArrayList<User>();\r\n\t\tlistStudents = userReposotory.findAll();\r\n\t\treturn listStudents;\r\n\t}", "List<UserDTO> getAllUsers();", "protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}", "@Override\r\n\tpublic List<User1> getAll() {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tQuery query = session.createQuery(\"FROM User1\");\r\n\t\treturn query.list();\r\n\t}", "public ResultSet fetchSelectAllUsers() {\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tTo create connection to the DataBase\r\n\t\t\t*/\r\n\t\t\tnew DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tStore the table data in ResultSet rs and then return it\r\n\t\t\t*/\r\n\t\t\trs = stmt.executeQuery(SELECT_ALL_USERS_QUERY);\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch(ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\tcloseDbConnection();\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t\treturn rs;\r\n\t}", "public List<User> fetchAll()\n {\n String query = \"SELECT * FROM user\";\n RowMapper<User> userRowMapper = new BeanPropertyRowMapper<>(User.class); // a collection type that holds the results of the query\n List<User> userList; // list of users that will be returned\n try\n {\n userList = template.query(query, userRowMapper); // call the database and assign the results to the userList\n } catch (EmptyResultDataAccessException e)\n {\n userList = new ArrayList<>(); // return an empty arrayList\n }\n return userList;\n }", "@Override\n\tpublic List All() {\n\t\treturn new userDaoImpl().All();\n\t}", "public List<User> getUserList();", "@Override\r\n\tpublic List<?> getAllUser() {\n\t\treturn userQueryRepositoryImpl.getAllUser();\r\n\t}", "@Override\r\n\tpublic List findAll() {\n\t\treturn usermaindao.findAll();\r\n\t}", "List<User> getAll() throws SQLException;", "@Override\n\tpublic List<User> getUserList() {\n\t\treturn userDao.queryUser();\n\t}", "@Override\n\tpublic List reterive() {\n\t\tString str=\"SELECT allusers FROM User allusers\";\n\t\tTypedQuery<User> query=em.createQuery(str,User.class);\n\t\treturn query.getResultList();\n\t\t\n\t}", "List<UserDisplayDto> getAllUsers();", "@Override\r\n\tpublic List listAllUser() {\n\t\treturn userDAO.getUserinfoList();\r\n\t}", "@Override\n\tpublic Collection<Users> read() {\n\t\treturn userDAO.readAll();\n\t}", "public Users findAll() {\n\tthis.createConnection();\n try {\n Connection con = this.getCon();\n PreparedStatement stmnt = con.prepareStatement(this.getAllQuery());\n ResultSet rs = stmnt.executeQuery();\n return get(rs);\n } catch (SQLException e) {\n System.out.println(\"SQL Exception\" + e.getErrorCode() + e.getMessage());\n e.getStackTrace();\n return new Users();\n }\n }", "public List<User> getAllUsers(){\n return userRepository.findAll();\n }", "@Override\n public List<User> findAll() {\n return dao.findAll();\n }", "@Override\n\tpublic List<User> getAll() {\n\t\treturn userDao.getAll();\n\t}", "public List<User> queryAllUsers() {\n \tList<User> userList = new ArrayList<>();\n\tUser user;\n String sql = \"SELECT * FROM users\";\n\ttry {\t\n this.statement = connection.prepareStatement(sql);\n this.resultSet = this.statement.executeQuery();\n while(this.resultSet.next()) {\n\t\tuser = new User();\n user.setUserName(this.resultSet.getString(\"user_name\"));\n user.setHashedPassword(this.resultSet.getString(\"hashed_password\"));\n\t\tuser.setEmail(this.resultSet.getString(\"email\"));\n user.setHashedAnswer(this.resultSet.getString(\"hashed_answer\"));\n user.setIsActivated(this.resultSet.getInt(\"is_activated\"));\n user.setPublicKey(this.resultSet.getString(\"pubkey\"));\n\t\tuserList.add(user);\n }\t\n this.statement.close();\n\t} \n catch(SQLException ex) {\n Logger.getLogger(UserDBManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n return userList;\n }", "@Override\r\n\tpublic List<User> getAll() {\n\t\treturn users;\r\n\t}", "List<QnowUser> findAll();", "public ArrayList<IndividualUser> listAllUsers() {\n try {\n PreparedStatement s = sql.prepareStatement(\"SELECT id, userName, firstName, lastName FROM Users \");\n s.execute();\n ResultSet results = s.getResultSet();\n ArrayList<IndividualUser> users = new ArrayList<>();\n if (!results.isBeforeFirst()) {\n results.close();\n s.close();\n return users;\n }\n\n while (!results.isLast()) {\n results.next();\n IndividualUser u = new IndividualUser(results.getInt(1), results.getString(2), results.getString(3), results.getString(4));\n\n users.add(u);\n\n }\n\n results.close();\n s.close();\n\n return users;\n } catch (SQLException e) {\n sqlException(e);\n return null;\n }\n }", "@RequestMapping(\"/alluser\")\n\t@ResponseBody\n\t@Secured({CommonConstants.ROLE_EMPLOYEE,CommonConstants.ROLE_ADMIN})\n\tpublic List<UserEntity> findAll() {\n\t\treturn this.service.findAll();\n\t}", "@Select({\n \"select\",\n \"username, password\",\n \"from tb_user\"\n })\n @Results({\n @Result(column=\"username\", property=\"username\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"password\", property=\"password\", jdbcType=JdbcType.VARCHAR)\n })\n List<User> selectAll();", "@Override\n\tpublic List<User> selectUserByName(String name) {\n\t\tList<User> users = null;\n\t\ttry {\n\t\t\tusers = client.queryForList(\"selectUserByName\", name);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn users;\n\n\t}", "List<User> loadActiveUsers(User user);", "@RequestMapping(value = \"/users/list\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<UsersDTO> findAllUsers() {\n\t\tlogger.info(\"Return All Users.\");\t\n\t\treturn (List<UsersDTO>) usersService.findAllUsers();\n\t}", "@RequestMapping(method = RequestMethod.GET)\n\tpublic List<User> getAll() {\n\t\tList<User> users = dao.getAll();\n\t\treturn users;\n\t}", "Collection<GetUserDto> getAllUsers();", "public List<String> getAll() {\r\n List<String> listOfUser = new ArrayList<>();\r\n for(User user : userRepository.findAll()){\r\n listOfUser.add(user.toString());\r\n }\r\n return listOfUser;\r\n }", "@SelectProvider(type = UserProviders.class, method = \"getAllUsersProvider\")\n @Results({\n @Result(column = \"created_at\", property = \"createdAt\")\n })\n List<User> getAllUsers();", "public List<UserDTO> getUsers();", "public List<Users> getUserList(){\n\t\tList<Users> users = (List<Users>) this.userDao.findAll();\n\t\treturn users;\n\t}", "@Override\n\tpublic List<User> list() \n\t{\n\t\treturn userDAO.list();\n\t}", "public String[] listUsers();", "@GetMapping()\n @ResponseBody\n public List<UserResult> findAll() {\n return userService.findAll();\n }", "@Override\n\tpublic List<User> findAllUser() {\n\t\treturn mapper.findAllUser();\n\t}", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}", "@Override\n\tpublic List<User> selectList(User vo) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Object getList() {\n\t\treturn userDao.getList();\r\n\t}", "@Override\n\tpublic List<Map<String, Object>> getUserList() {\n\t\tList<Map<String, Object>> list = new ArrayList<Map<String,Object>>();\n\t\tString sql = \"select * from tp_users where userType = 2\";\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\tlist = joaSimpleDao.queryForList(sql, map);\n\t\treturn list;\n\t}", "public List<User> loadAllUserDetails()throws Exception;", "@Override\n\tpublic List<User> getAll() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<User> getAll() {\n\t\treturn null;\n\t}", "List<TmpUserPayAccount> selectAll();", "public List<Utilizator> listUsers();" ]
[ "0.8107858", "0.80924547", "0.80583906", "0.80583906", "0.7892383", "0.782197", "0.779279", "0.7776949", "0.77733445", "0.769123", "0.76390284", "0.7632376", "0.76202255", "0.7562983", "0.7489191", "0.7486447", "0.74557537", "0.7444501", "0.7432206", "0.7432206", "0.7358876", "0.73567563", "0.7351991", "0.7325268", "0.7280349", "0.724298", "0.7240847", "0.7240847", "0.72213066", "0.72149414", "0.7211816", "0.7209961", "0.72014093", "0.7184621", "0.716173", "0.7159662", "0.71572936", "0.7153022", "0.7143989", "0.71329564", "0.7129778", "0.71269256", "0.71116215", "0.710803", "0.70961773", "0.7093606", "0.7084712", "0.7084317", "0.7082417", "0.7078807", "0.707115", "0.70644724", "0.7061657", "0.7055631", "0.7050474", "0.70496315", "0.7049326", "0.70471054", "0.70455617", "0.70449466", "0.7040039", "0.7039325", "0.70268524", "0.70093375", "0.69964474", "0.6995826", "0.6991613", "0.69778085", "0.6973544", "0.6973194", "0.69704026", "0.6964937", "0.6956747", "0.6954743", "0.6949875", "0.69494855", "0.6941229", "0.69403225", "0.693799", "0.69372994", "0.6934324", "0.6933203", "0.6932415", "0.6920404", "0.692008", "0.6920009", "0.69168484", "0.6915928", "0.69099855", "0.69065726", "0.69054985", "0.6902057", "0.68949217", "0.68933487", "0.68929213", "0.6883393", "0.68811744", "0.68811744", "0.68802375", "0.6875742" ]
0.7123978
42
Return Client by id
@RequestMapping(value = "/clients/{id}", method = RequestMethod.GET) public ResponseEntity<Client> selectById(@PathVariable("id") Long id) { Client client = clientService.selectById(id); return new ResponseEntity<Client>(client, HttpStatus.OK); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Client findClientById(Long id) throws BaseException;", "Client getClient(int id) throws ClientNotFoundException;", "default Client getClient(Long id) {\r\n return get(Client.class, id);\r\n }", "public Client find(int id) throws DataAccessLayerException {\n try {\n Subject.doAs(LoginController.getLoginContext().getSubject(), new MyPrivilegedAction(\"CLIENT\", Permission.READ));\n return (Client) super.find(Client.class, id);\n } catch (AccessControlException e) {\n e.printStackTrace();\n }\n return null;\n }", "@Override\n\tpublic Client getClientById(int id) {\n\t\treturn null;\n\t}", "public Client buscarClientePorId(String id){\n Client client = new Client();\n \n // Faltaaaa\n \n \n \n \n \n return client;\n }", "Client findClientById(int clientId) throws ClientNotFoundException;", "Client getClientById(Integer id) throws SQLException;", "public Client getByIDClient(int id) {\n\t\tPreparedStatement ps = null;\n\t\tResultSet resultatRequete =null;\n\t\t\n\t\ttry {\n\t\t\tString requeteSqlGetById=\"SELECT * FROM clients WHERE id_client = ?\";\n\t\t\tps = this.connection.prepareStatement(requeteSqlGetById);\n\t\t\tps.setInt(1, id);\n\t\t\t\n\t\t\tresultatRequete = ps.executeQuery();\n\t\t\tClient client = null;\n\t\t\t\n\t\t\tresultatRequete.next();\n\t\t\tint idClient = resultatRequete.getInt(1);\n\t\t\tString prenom = resultatRequete.getString(2);\n\t\t\tString nom = resultatRequete.getString(3);\n\t\t\tString adresse = resultatRequete.getString(4);\n\t\t\tString ville = resultatRequete.getString(5);\n\t\t\tString codePostal = resultatRequete.getString(6);\n\t\t\t\n\t\t\tString telephone = resultatRequete.getString(7);\n\n\t\t\tclient = new Client(idClient, nom, prenom, adresse, ville, codePostal, telephone);\n\t\t\t\n\t\t\treturn client;\n\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\n\t\t\ttry {\n\t\t\t\tif(resultatRequete!= null) resultatRequete.close();\n\t\t\t\tif(ps!= null) ps.close();\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "ClientDTO findOne(final Long id);", "public Client findById(Integer id) throws\n\t EntityNotFoundException;", "@Path(\"{id}\")\n public RealmClientResource getClient(final @PathParam(\"id\") String id) {\n ClientModel clientModel = realm.getClientById(id);\n if (clientModel == null) {\n throw new NotFoundException(\"Could not find client\");\n }\n\n session.getContext().setClient(clientModel);\n\n RealmClientResource clientResource = new RealmClientResource(realm, clientModel);\n ResteasyProviderFactory.getInstance().injectProperties(clientResource);\n return clientResource;\n }", "public static ClientGateway findByID(int id)\n {\n Session s = NewHibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n try{\n tx = s.beginTransaction();\n List clients = s.createQuery(\"FROM ClientGateway\").list(); \n System.out.println(\"ceva\");\n for (Iterator iterator = clients.iterator(); iterator.hasNext();)\n {\n ClientGateway client; \n client = (ClientGateway) iterator.next();\n if(client.getCid() == id) return client;\n }\n tx.commit();\n }catch (HibernateException e) {\n if (tx!=null) tx.rollback();\n }finally {\n s.close(); \n }\n return null;\n }", "public Client getClient(int Id) {\r\n\t\tfor (int i = 0; i < clients.length; i++) {\r\n\t\t\tClient currClient = clients[i];\r\n\t\t\tif (currClient != null && currClient.getId() == Id) {\r\n\t\t\t\treturn currClient;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Client loadClient(int id) {\n\t\treturn null;\n\t}", "public Client findClientById(Long idClient) throws SQLException {\n\t\treturn iDaoClient.findClientById(idClient);\n\t}", "ClientDTO getById(String sessionId, int id) throws RemoteException, UserNotLoggedInException;", "@GetMapping(\"/clientes/{id}\")\n\tpublic Cliente buscarXid(@PathVariable Integer id) {\n\t\tCliente cliente = null;\n\t\ttry {\n\t\t\tcliente = this.getClienteService().findById(id);\n\t\t} catch (ExceptionService e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn cliente;\n\t}", "private Client lireClientServ(int idClient) {\n\t\tClient client = daoclient.readClientDaoById(idClient);\n\t\treturn client;\n\t}", "public void getClientFromBon(int id) {\n\t\tClient client = clientOperations.getClientFromBon(id);\n\t\tSystem.out.println(client.toString());\n\t}", "@Override\n\t\tpublic Client getClient(int idClient) {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic List<Cliente> getByIdCliente(long id) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Cliente> clients =getCurrentSession().createQuery(\"from Cliente c join fetch c.grupos grupos join fetch grupos.clientes where c.id='\"+id+\"' and c.activo=1\" ).list();\n return clients;\n\t}", "@Override\r\n\tpublic ComercialSolicitudServicioAlCliente findOne(Long id) {\n\t\treturn repository.findById(id).orElse(null);\r\n\t}", "public Cliente obtenerClienteId(Long id) throws Exception {\n\t\tCliente r=clienteRep.buscarClienteId(id);\n\t\tif(r==null) {\n\t\t\tthrow new Exception(\"No se encuentra autor en BDD\");\n\t\t}else {\n\t\t\treturn r;\n\t\t}\n\t}", "public static Attachment getClient(int id)\n {\n for(Attachment client : clients)\n {\n if (client.clientId == id)\n return client;\n }\n return null;\n }", "RiceCooker getById(long id);", "public ClientsModel show(int id) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic Cliente buscarPorId(int id) throws ExceptionUtil {\n\t\t\treturn daoCliente.buscarPorId(id);\n\t\t}", "@Override\n\tpublic Optional<Cliente> findById(int id) throws Exception {\n\t\treturn clienteRepository.findById(id);\n\t}", "@Override\n\tpublic Cliente buscarPorId(int id) throws ExceptionUtil {\n\t\treturn daoCliente.buscarPorId(id);\n\t}", "public Cliente findByPrimaryKey(int idCliente) throws ClienteDaoException;", "public Optional<Cliente>obtenerId(Long id){\n return clienteRepositori.findById(id);\n }", "@Override\r\n\tpublic Shop_Client findShopClientByID(String c_id) {\n\t\t return shopuserDao.findShopClientByID(c_id);\r\n\t}", "public void getClient(String id, AsyncCallback<Client> cb);", "public Cliente buscarClientePorDocumento(String id) throws ExceptionService {\n Optional<Cliente> verificar = repositorio.findById(Long.parseLong(id));\n if (verificar.isPresent()) { //verificamos que traiga un resultado\n Cliente cliente = verificar.get(); //con el get obtenemos del optional el objeto en este caso de tipo cliente\n return cliente;\n } else {\n throw new ExceptionService(\"no se encontro el cliente con el documento indicado\");\n }\n }", "Client findByName(String name){\n return new Client();\n }", "public Client getUserById(String clientID){\n\n String sql = \"SELECT * FROM bankclient WHERE id = :id\";\n Map paramMap = new HashMap();\n paramMap.put(\"id\", new BigDecimal(clientID));\n // check if user by given id exists\n List<Client> clients = jdbcTemplate.query(sql, paramMap, new ClientRowMapper());\n\n if(clients.size() == 0){\n throw new ApplicationException(\"User not found!\");\n }\n\n Client result = jdbcTemplate.queryForObject(sql, paramMap, new ClientRowMapper());\n return result;\n }", "@Override\n\tpublic List<Cliente> getbyidAndGrupo(long id, Long idGrupo) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Cliente> clients =getCurrentSession().createQuery(\"from Cliente c join fetch c.grupos grupos where grupos.id='\"+idGrupo+\"' and c.id=\"+id+\" and c.activo=1\" ).list();\n \tif(clients != null){\n \treturn clients;}\n \telse {return null;}\n\t}", "public int getIdClient() {\r\n return idClient;\r\n }", "RequesterVO get(int id);", "@Override\n\t@Transactional(readOnly = true)\n\tpublic Optional<Cliente> findById(Integer id) throws Exception {\n\t\treturn clienteRepository.findById(id);\n\t}", "public ClienteEmpresa obtenerClienteEmpresa(Integer id) {\n return this.clienteEmpresaFacade.find(id);\n }", "@Override\n public Client get(String uuid) {\n return null;\n }", "java.lang.String getClientId();", "public Cliente obterDescricaoIdCliente(Integer idImovel) throws ControladorException {\r\n\r\n\t\tCliente cliente = null;\r\n\r\n\t\ttry {\r\n\t\t\tObject[] objetoCliente = this.repositorioImovel.obterDescricaoIdCliente(idImovel);\r\n\r\n\t\t\tif (objetoCliente != null) {\r\n\t\t\t\tcliente = new Cliente();\r\n\t\t\t\tcliente.setId((Integer) objetoCliente[0]);\r\n\t\t\t\tcliente.setNome((String) objetoCliente[1]);\r\n\t\t\t}\r\n\t\t} catch (ErroRepositorioException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tthrow new ControladorException(\"erro.sistema\", ex);\r\n\t\t}\r\n\r\n\t\treturn cliente;\r\n\t}", "String getClientId();", "String getClientId();", "private Client findClient() {\n if ( key != null )\n return clientConnections.getConnection(key);\n else { //use keyCluster to find client\n return clientConnections.getConnection( keyCluster.getCluster(), keyCluster.getIndex());\n }\n }", "private Client readClient() {\n System.out.println(\"Read client {id,name,age,membership}\");\n\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());// ...\n String name = bufferRead.readLine();\n int age = Integer.parseInt(bufferRead.readLine());\n String membership = bufferRead.readLine();\n\n Client client = new Client(name, age, membership);\n client.setId(id);\n\n return client;\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "@GetMapping(\"/api/rents/findbyclient/{id}\")\r\n public ResponseEntity<Optional<Rent>> findByClientId(@PathVariable(name = \"id\") Long id){\r\n final Optional<Rent> rent = rentService.findByClientId(id);\r\n return rent != null\r\n ? new ResponseEntity<>(rent, HttpStatus.OK)\r\n : new ResponseEntity<>(HttpStatus.NOT_FOUND);\r\n }", "UUID clientId();", "public Cliente carregarPorId(int id) throws Exception {\n \n Cliente c = new Cliente();\n String sql = \"SELECT * FROM cliente WHERE idCliente = ?\";\n PreparedStatement pst = conn.prepareStatement(sql);\n pst.setInt(1, id);\n ResultSet rs = pst.executeQuery();\n if (rs.next()) {\n c.setIdCliente(rs.getInt(\"idCliente\"));\n c.setEndereco(rs.getString(\"endereco\"));\n c.setCidade(rs.getString(\"cidade\"));\n c.setDdd(rs.getInt(\"ddd\"));\n c.setNome(rs.getString(\"nome\"));\n c.setUf(rs.getString(\"uf\"));\n c.setTelefone(rs.getString(\"telefone\"));\n Empresa e = new Empresa();\n EmpresaDAO ePB = new EmpresaDAO();\n ePB.conectar();\n e = ePB.carregarPorCnpj(rs.getString(\"Empresa_cnpj\"));\n ePB.desconectar();\n Usuario p = new Usuario();\n UsuarioDAO pPB = new UsuarioDAO();\n pPB.conectar();\n p = pPB.carregarPorId(rs.getInt(\"Usuario_idUsuario\"));\n pPB.desconectar();\n c.setEmpresa(e);\n c.setUsuario(p);\n }\n return c;\n }", "int getClientId();", "public Object getClientId()\n {\n return clientId; // Field is final; no need to sync.\n }", "Client findClientByName(Bank bank, String name) throws ClientNotFoundException;", "public Object clientId() {\n return this.clientId;\n }", "public Cliente[] findWhereIdClienteEquals(int idCliente) throws ClienteDaoException;", "public List<Client> getClientsByConseillerId(long idConseiller) throws SQLException {\r\n\t\tPreparedStatement st = null;\r\n\t\tResultSet rs =null;\r\n\t\tClient client = new Client();\r\n\t\tList<Client> clients = new ArrayList<Client>();\r\n\t\tConnection connection = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tconnection = getConnection();\r\n\t\t\tString selectSQL = \"select surname, name, email , adress from client where idConseiller = ?\";\r\n\t\t\tst = connection.prepareStatement(selectSQL);\r\n\t\t\tst.setLong(1, idConseiller);\r\n\t\t\t\r\n\t\t\trs = st.executeQuery();\r\n\t\t\t\r\n\t\t\t\r\n\t\twhile (rs.next()) {\r\n\t\t\t\r\n\t\t\tclient = new Client();\r\n\t\t\tclient.setSurname(rs.getString(\"surname\"));\r\n\t\t\tclient.setName(rs.getString(\"name\"));\r\n\t\t\tclient.setEmail(rs.getString(\"email\"));\r\n\t\t\tclient.setAdress(rs.getString(\"adress\"));\r\n\t\t\t\r\n\t\t\tclients.add(client);\r\n\t\t }\r\n\t\t\treturn clients;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif (st != null)\r\n\t\t\t\t\tst.close();\r\n\t\t\t\tif (connection != null)\r\n\t\t\t\t\tconnection.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor(int i=0; i<clients.size();i++) {\r\n\t\t\t\tSystem.out.println(\"la donnée associée à l'indice \"+ i + \" est \" + clients.get(i));\r\n\t\t\t}\r\n\t\t\treturn clients;\t\t\r\n\t\t\r\n\t}", "public Integer getClientId() { return clientId; }", "Clothes getById(int id);", "@GET\n\t@Path(\"/gerente/consultarBuenosClientes/{id: \\\\d+}\")\n\t@Produces({ MediaType.APPLICATION_JSON })\n\t@Consumes(MediaType.APPLICATION_JSON)\n\tpublic Response consultarBuenosClientes(@PathParam(\"id\") int id)throws Exception\n\t{\n\t\tArrayList<Cliente> mens = null;\n\t\tMaster mas = Master.darInstancia(getPath());\n\t\ttry \n\t\t{\n\t\t\tmens = mas.consultarBuenosClientes(id);\n\t\t\tSystem.out.println(mens);\n\t\t} catch (Exception e) {\n\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\n\t\t}\n\t\treturn Response.status(200).entity(mens).build();\n\t}", "@Override\n\tpublic Customer getCustomer(long id) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\tCustomer customer = new Customer();\n\t\ttry {\n\t\t\tString getCustomer = String.format(\"select * from customer where id in('%d')\", id);\n\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getCustomer);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\tcustomer.setPassword(rs.getString(\"Password\"));\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Customer \" + customer.getCustName() + \" ID: \" + customer.getId() + \" was retrived.\");\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"Customer with ID: \" + id + \" was not found in the DB.\");\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close connection\");\n\t\t\t}\n\t\t}\n\t\treturn customer;\n\t}", "@RequestMapping(value=\"/by-id/{id}\",method=RequestMethod.GET)\r\n\tpublic ResponseEntity<?> listarById(@PathVariable(\"id\") long id) {\r\n\t\treturn new ResponseEntity<List<Cliente>>(clienteService.listarById(id), HttpStatus.OK);\r\n\t}", "private DBObject getById(MongoDbServer entity, String id) throws Exception {\n MongoClient mongoClient = new MongoClient(entity.getAttribute(SoftwareProcess.HOSTNAME));\n try {\n DB db = mongoClient.getDB(TEST_DB);\n DBCollection testCollection = db.getCollection(TEST_COLLECTION);\n DBObject doc = testCollection.findOne(new BasicDBObject(\"_id\", new ObjectId(id)));\n return doc;\n } finally {\n mongoClient.close();\n }\n }", "Contract findById(int id);", "@Override\n\tpublic Clientes findByIdCliente(Long tdocCodigo) throws Exception {\n\t\treturn clienteLogic.findById(tdocCodigo);\n\t}", "public String getClientID(){\n return clientID;\n }", "AppStandard selectById(String id);", "public CyPoj findById(Integer id) {\n\t\treturn d.findById(id);\r\n\t}", "public Cliente findByPrimaryKey(ClientePk pk) throws ClienteDaoException;", "public Client getSomeClient() {\n return new Client(3L, \"Yulian\", \"Tsvetkovskiy\", 20, null);\n }", "private int findClient(int ID) {\r\n\t\tfor (int i=0; i < clientCount; i++) {\t//cycles the list, looking for an ID match\r\n\t\t\tif(clients[i].getID() == ID){\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\t\t\t\t\t\t//if no client was found with that ID, return -1\r\n\t}", "@GetMapping(\"/klient/{id}\")\n public ResponseEntity<ClientDto> getAddressById(@PathVariable(value = \"id\") int clientId)\n throws ResourceNotFoundException {\n ClientDto clientDto = clientRepository.findById(clientId)\n .orElseThrow(() -> new ResourceNotFoundException(\"Address not found for this id: \" + clientId));\n return ResponseEntity.ok().body(clientDto);\n }", "@Override\n\tpublic Contract get(String id) {\n\t\treturn contractDao.findOne(id);\n\t}", "public UUID clientId() {\n return clientId;\n }", "public List<Client> getAllClient();", "public Integer getClientId() {\r\n\t\treturn clientId;\r\n\t}", "public Candidat getUserByid(int id) {\n Candidat candidat = StaticVars.currentCandidat;\n String url = StaticVars.baseURL + \"/userbyid\";\n ConnectionRequest req = new ConnectionRequest();\n req.setUrl(url);\n req.setPost(false);\n\n req.addResponseListener(new ActionListener<NetworkEvent>() {\n @Override\n public void actionPerformed(NetworkEvent evt) {\n result = req.getResponseCode();\n }\n\n });\n NetworkManager.getInstance().addToQueueAndWait(req);\n\n return candidat;\n\n }", "public String clientId() {\n return clientId;\n }", "@Override\r\n\tpublic UserAccount get(int id) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tUserAccount ua = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetById);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tua = generate(rs);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn ua;\r\n\t}", "public Contact getContact(UUID id) {\n\t\treturn this.contacts.get(id);\n\t}", "public Client findClient(String clientName) {\n\t\t\n\t\tClient searchedClient = null;\n\t\t\n\t\tConnection dbConnection = ConnectionFactory.getConnection();\n\t\tPreparedStatement findByNameStatement = null;\n\t\tResultSet resultSet = null;\n\t\t\n\t\ttry {\n\t\t\tfindByNameStatement = dbConnection.prepareStatement(findByNameStatementString);\n\t\t\tfindByNameStatement.setString(1, clientName);\n\t\t\t\n\t\t\tresultSet = findByNameStatement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\t\n\t\t\t\tint searchedClientId = resultSet.getInt(\"id\");\n\t\t\t\tString searchedClientName = resultSet.getString(\"name\");\n\t\t\t\tString searchedClientAddress = resultSet.getString(\"address\");\n\t\t\t\tString searchedClientEmail = resultSet.getString(\"email\");\n\t\t\t\t\n\t\t\t\tsearchedClient = new Client(searchedClientId, searchedClientName, searchedClientAddress, searchedClientEmail);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, \"ClientDAO : findByName \" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionFactory.close(resultSet);\n\t\t\tConnectionFactory.close(findByNameStatement);\n\t\t\tConnectionFactory.close(dbConnection);\n\t\t}\n\t\t\n\t\treturn searchedClient;\n\t}", "@Override\n public ResultSet getByID(String id) throws SQLException {\n return db.getConnection().createStatement().executeQuery(\"select * from comic where idcomic=\"+id);\n }", "public String getClientId() {\n return clientId;\n }", "@Override\r\n\tpublic Integer getId() {\n\t\treturn codigoCliente;\r\n\t}", "@Override\n\t@Transactional\n\tpublic Cliente getClienteIdgrupoIdclienteUser(long id, Long idClienteUser,Long idGrupo) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Cliente> client =getCurrentSession().createQuery(\"from Cliente c join fetch c.grupos grupos join fetch grupos.clientes where grupos.id='\"+idGrupo+\"' and c.id='\"+id+\"'\").list();\n\t\tif(client!=null && !client.isEmpty()){\n\t\t\tCliente c =(Cliente)getCurrentSession().load(Cliente.class, id);\n\t\t\treturn c;\n\t\t}else{\n\n\t\treturn null;\n\t}\n\t\t}", "public Reservation[] findResaClient(int id_client){\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tPreparedStatement prepare;\r\n\t\t\tprepare = SC.prepareStatement(\"SELECT * FROM reservation where id_client=?\");\r\n\t\t\tprepare.setInt(1, id_client);\r\n\t\t\tResultSet result = prepare.executeQuery();\r\n\t\t\t\r\n\t\t\tPreparedStatement prepareCount = SC.prepareStatement(\"SELECT COUNT(*) FROM reservation where id_client=?\"); \r\n\t\t\tprepareCount.setInt(1, id_client);\r\n\t\t\tResultSet resultCount = prepareCount.executeQuery();\r\n\t\t\t\r\n\t\t\tReservation[] reservation = new Reservation[resultCount.getInt(1)];\r\n\t\t\tfor(int i=0; i<reservation.length;i++){\r\n\t\t\t\treservation[i] = find(result.getInt(\"Id_reservation\"));\r\n\t\t\t\tresult.next();\r\n\t\t\t}\r\n\t\t\treturn reservation;\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public String getClientId() {\n \treturn clientId;\n }", "@RequestMapping(value=\"/client/{clientId}\", method = RequestMethod.GET)\n\tpublic OauthClientDetails getClient(@PathVariable(\"clientId\") String clientId) {\n\t\tlogger.debug(\"Query a client by the client ID {}\", clientId);\n\t\treturn authService.getClient(clientId);\n\t}", "public SerCj getByIdGui(String id) {\n\t\treturn sercjmapper.getByIdz(id);\n\t}", "Chofer findOne(Long id);", "Company getCompany(int id);", "public String getClientId() {\n return clientId;\n }", "@Override\n\t@Transactional\n\tpublic List<Cliente> getAll(Long idCliente) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Cliente> client =getCurrentSession().createQuery(\"from Cliente where activo=true and id='\"+idCliente+\"'\").list();\n \treturn client;\n\t}", "String get(String id);", "@Override\n\tpublic Connexion getConnexion(int idConnexion) {\n\t\treturn dao.getConnexion(idConnexion);\n\t}", "@Override\r\n\tpublic List<Client> selectclient() {\n\t\tList<Client> list=this.getSqlSessionTemplate().selectList(changToNameSpace(\"selectclient\"));\r\n\t\treturn list;\r\n\t}", "@Override\r\n public ClientDetails loadClientByClientId(String clientId) throws ClientRegistrationException {\r\n OAuthClientDetail clientDetail =\r\n clientService\r\n .getOAuthClientDetail(clientId)\r\n .orElseThrow(\r\n () -> new ClientRegistrationException(\"Client \" + clientId + \" not exists.\"));\r\n return new AuthClientDetails(clientDetail);\r\n }", "@Override\n\tpublic Company getOne(Long id) {\n\t\treturn dao.getById(id);\n\t}", "public ClientID getClientID() {\n return clientID;\n }" ]
[ "0.84851825", "0.84684604", "0.844528", "0.8011801", "0.78659093", "0.7839533", "0.7826599", "0.7788279", "0.77772593", "0.7774666", "0.7685076", "0.7670309", "0.75976014", "0.7588659", "0.74373525", "0.73850244", "0.7368942", "0.7294743", "0.7285478", "0.72571456", "0.7185247", "0.70668215", "0.70283943", "0.7012503", "0.70023745", "0.69982815", "0.69266015", "0.68854624", "0.68672556", "0.6865419", "0.6799173", "0.67861927", "0.67320347", "0.66709876", "0.66336226", "0.66245437", "0.6554576", "0.65540123", "0.65514797", "0.6514434", "0.6510339", "0.6504317", "0.6501306", "0.6483393", "0.64573723", "0.644563", "0.644563", "0.64048773", "0.640413", "0.63909805", "0.6355803", "0.63520783", "0.6290468", "0.62820065", "0.62497944", "0.62372565", "0.61994153", "0.6186246", "0.6175185", "0.61688477", "0.61587435", "0.6152727", "0.61482954", "0.612951", "0.61207235", "0.61180705", "0.61018467", "0.6100149", "0.60990345", "0.6090856", "0.6080707", "0.6080366", "0.6079934", "0.6071665", "0.60540336", "0.6025177", "0.6020794", "0.60034764", "0.600339", "0.59862286", "0.5977455", "0.59667253", "0.59636664", "0.59636503", "0.5963128", "0.59617823", "0.5957611", "0.5955938", "0.59406877", "0.59362376", "0.59340566", "0.59338", "0.593311", "0.5929858", "0.59289575", "0.5927172", "0.5926735", "0.59260905", "0.5923738", "0.5921786" ]
0.7622057
12
Create a new HttpClient and Post Header
@Override protected Void doInBackground(String ... params) { HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost_ac_wemo_on; httppost_ac_wemo_on = new HttpPost(url_ac_wemo_on); try { // Execute HTTP Post Request HttpResponse response_1 = httpclient.execute(httppost_ac_wemo_on); // HttpResponse response_7 = httpclient.execute(httppost); // HttpResponse response_8 = httpclient.execute(httppost); // HttpResponse response_9 = httpclient.execute(httppost); } catch (ClientProtocolException e) { // TODO Auto-generated catch block Log.e("salim",e.getMessage().toString()); } catch (IOException e) { // TODO Auto-generated catch block Log.e("salim",e.getMessage().toString()); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HttpClientHelper() {\n defaultHeaders.put(\"Content-Type\", \"application/json\");\n defaultHeaders.put(\"Accept-Encoding\", \"gzip\");\n\n //postDefaultHeaders.put(\"Content-Type\", \"application/json\");\n //postDefaultHeaders.put(\"Content-Encoding\", \"gzip\");\n\n String key = MessageFormat.format(\"{0}#{1}\", UserUtil.getUserUuid(), UserUtil.getUserId());\n\n //postDefaultHeaders.put(\"X-CLIENT-KEY\", key);\n defaultHeaders.put(\"X-CLIENT-KEY\", key);\n client.setTimeout(3000);\n }", "public static final DefaultHttpClient createHttpClient() {\n\t\treturn createHttpClient(3);\n\t}", "private static HttpClient getNewHttpClient(){\n HttpParams params = new BasicHttpParams();\n return new DefaultHttpClient(params);\n }", "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "private DefaultHttpClient createHttpClient()\n throws IOException\n {\n XCapCredentialsProvider credentialsProvider\n = new XCapCredentialsProvider();\n credentialsProvider.setCredentials(\n AuthScope.ANY,\n new UsernamePasswordCredentials(getUserName(), password));\n\n return HttpUtils.getHttpClient(\n null , null, uri.getHost(), credentialsProvider);\n }", "private HttpClient prepareHttpClient() {\n\t\tHttpClientParams htcParams = new HttpClientParams();\n\t\tmHttpClient = new HttpClient();\n\t\thtcParams.setConnectionManagerTimeout(300000);\n\t\thtcParams.setSoTimeout(300000);\n\t\tmHttpClient.setParams(htcParams);\n\t\treturn mHttpClient;\n\t}", "@Test\n public void createPost() throws IOException {\n PostData postData = new PostData()\n .withId(101)\n .withUserId(1)\n .withTitle(\"New Post\")\n .withBody(\"This is the body of the post.\");\n\n // Create an HTTP Post Request\n HttpPost post = new HttpPost(POSTS);\n\n // Set the \"Content-type\" header of the\n // HTTP Post Request to \"Application/json; charset=UTF-8\"\n post.setHeader(\n CONTENT_TYPE,\n \"Application/json; charset=UTF-8\"\n );\n\n // Create a String Entity out of the JSON data and add it\n // to the HTTP Post Request.\n //\n // This will serialize the JSON data into a String\n post.setEntity(\n new StringEntity(\n this.gson.toJson(postData)\n )\n );\n\n // Execute the HTTP Post with the client\n HttpResponse response = this.httpClient.execute(post);\n\n // Get a PostData class instance from the response\n PostData responsePostData = getPostData(response);\n\n // Make assertions about the response\n assertThat(response.getStatusLine().getStatusCode())\n .isEqualTo(201);\n\n // Make assertions about the data returned\n assertThat(responsePostData.getId()).isEqualTo(101);\n assertThat(responsePostData.getUserId()).isEqualTo(1);\n assertThat(responsePostData.getTitle())\n .isEqualTo(postData.getTitle());\n assertThat(responsePostData.getBody())\n .isEqualTo(postData.getBody());\n }", "private static HttpResponse sendPost() throws Exception {\n // Create the Call using the URL\n HttpPost http = new HttpPost(url);\n // Set the credentials set earlier into the headers\n Header header = new BasicScheme(StandardCharsets.UTF_8).authenticate(creds, http, null);\n // Set the header into the HTTP request\n http.addHeader(header);\n // Print the response\n return httpClient.execute(http);\n }", "public static HttpClient Factory() {\n\t\treturn httpclient;\n\t}", "HttpClientRequest addHeader(CharSequence name, CharSequence value);", "public interface HttpClientInterface {\n byte[] post(String url, byte[] body);\n}", "public interface HttpClientFactory {\n CloseableHttpClient newHttpClient();\n}", "public HttpEntity openHttpEntityViaPost(URL url, List<NameValuePair> nvps) throws IOException {\r\n Logger.getLogger(TargetAuthenticationStrategy.class).setLevel(Level.ERROR);\r\n Logger.getLogger(RequestTargetAuthentication.class).setLevel(Level.ERROR);\r\n DefaultHttpClient httpclient = new DefaultHttpClient();\r\n \r\n httpclient.setRedirectStrategy(new LaxRedirectStrategy());\r\n\r\n httpclient.getParams().setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.BROWSER_COMPATIBILITY);\r\n CookieStore store = new BasicCookieStore();\r\n for (Cookie cookie : cookies) {\r\n store.addCookie(cookie);\r\n }\r\n httpclient.setCookieStore(store);\r\n\r\n httpclient.getParams().setParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true);\r\n\r\n if (socketTimeout > -1) {\r\n httpclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, socketTimeout);\r\n }\r\n if (connectionTimeout > -1) {\r\n httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, connectionTimeout);\r\n }\r\n\r\n String domain = this.domain;\r\n String username = this.username;\r\n String password = this.password;\r\n if (serviceAccountPropertiesFileName != null) {\r\n Properties serviceAccountProperties = new Properties();\r\n if (new File(serviceAccountPropertiesFileName).exists()) {\r\n serviceAccountProperties.load(new FileReader(serviceAccountPropertiesFileName));\r\n } else {\r\n try {\r\n serviceAccountProperties.load(this.getClass().getResourceAsStream(serviceAccountPropertiesFileName));\r\n } catch (Exception e) {\r\n }\r\n }\r\n domain = serviceAccountProperties.getProperty(\"http.serviceaccount.domain\", domain);\r\n username = serviceAccountProperties.getProperty(\"http.serviceaccount.username\", username);\r\n password = serviceAccountProperties.getProperty(\"http.serviceaccount.password\", password);\r\n }\r\n\r\n if (username != null && password != null) {\r\n String decryptedPassword = password;\r\n try {\r\n decryptedPassword = new StringEncrypter().decrypt(password);\r\n } catch (Exception e) {\r\n }\r\n NTCredentials creds = new NTCredentials(username, decryptedPassword, getCanonicalHostName()[0], domain);\r\n httpclient.getCredentialsProvider().setCredentials(AuthScope.ANY, creds);\r\n httpclient.getAuthSchemes().unregister(AuthPolicy.SPNEGO);\r\n httpclient.getAuthSchemes().unregister(AuthPolicy.KERBEROS);\r\n }\r\n HttpHost target = new HttpHost(url.getHost(), url.getPort(), url.getProtocol());\r\n HttpContext localContext = new BasicHttpContext();\r\n HttpPost post = new HttpPost(url.getFile());\r\n \r\n post.setEntity(new UrlEncodedFormEntity(nvps, Charset.forName(\"UTF-8\")));\r\n\r\n HttpResponse httpResponse = httpclient.execute(target, post, localContext);\r\n this.lastStatusLine = httpResponse.getStatusLine();\r\n lastCookies = httpclient.getCookieStore().getCookies();\r\n\r\n return httpResponse.getEntity();\r\n }", "static Http1Client create() {\n return create(Http1ClientConfig.create());\n }", "@Before\n public void buildClient() {\n BasicCookieStore cookieStore = new BasicCookieStore();\n\n // Build Apache Http Client to execute requests\n this.httpClient = HttpClientBuilder.create()\n .setDefaultCookieStore(cookieStore)\n .setRedirectStrategy(new LaxRedirectStrategy())\n .build();\n }", "private OkHttpClient createClient(){\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n return new OkHttpClient.Builder()\n .addInterceptor(logging)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS)\n .build();\n }", "public PostBuilder() {\n httpClient = HttpClients.createDefault();\n httpPost = new HttpPost(localTesting ? \"http://localhost:8080\" : \"https://netflixstatistixserver.herokuapp.com\");\n attributes = new ArrayList<>();\n }", "public HttpPost() {\n super();\n parameters = new HashMap<>();\n }", "HttpClientRequest addCookie(Cookie cookie);", "private HttpClient() {\n\t}", "HttpClientRequest header(CharSequence name, CharSequence value);", "HttpResponse post(URL url, Map<String, String> headers, byte[] body, String mediaType)\n throws IOException;", "private static void sendPosts(HttpClient httpClient) {\n HttpTextResponse httpResponse = httpClient.post(\"/hello/mom\");\n puts(httpResponse);\n\n\n /* Send one param post. */\n httpResponse = httpClient.postWith1Param(\"/hello/singleParam\", \"hi\", \"mom\");\n puts(\"single param\", httpResponse);\n\n\n /* Send two param post. */\n httpResponse = httpClient.postWith2Params(\"/hello/twoParams\",\n \"hi\", \"mom\", \"hello\", \"dad\");\n puts(\"two params\", httpResponse);\n\n\n /* Send two param post. */\n httpResponse = httpClient.postWith3Params(\"/hello/3params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\");\n puts(\"three params\", httpResponse);\n\n\n /* Send four param post. */\n httpResponse = httpClient.postWith4Params(\"/hello/4params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\",\n \"yo\", \"pets\");\n puts(\"4 params\", httpResponse);\n\n /* Send five param post. */\n httpResponse = httpClient.postWith5Params(\"/hello/5params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\",\n \"yo\", \"pets\",\n \"hola\", \"neighbors\");\n puts(\"5 params\", httpResponse);\n\n\n /* Send six params with post. */\n\n final HttpRequest httpRequest = httpRequestBuilder()\n .setUri(\"/sixPost\")\n .setMethod(\"POST\")\n .addParam(\"hi\", \"mom\")\n .addParam(\"hello\", \"dad\")\n .addParam(\"greetings\", \"kids\")\n .addParam(\"yo\", \"pets\")\n .addParam(\"hola\", \"pets\")\n .addParam(\"salutations\", \"all\").build();\n\n\n httpResponse = httpClient.sendRequestAndWait(httpRequest);\n puts(\"6 params\", httpResponse);\n\n\n //////////////////\n //////////////////\n\n\n /* Using Async support with lambda. */\n httpClient.postAsync(\"/hi/async\", (code, contentType, body) -> puts(\"Async text with lambda\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith1Param(\"/hi/async\", \"hi\", \"mom\", (code, contentType, body) -> puts(\"Async text with lambda 1 param\\n\", body));\n\n Sys.sleep(100);\n\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith2Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n (code, contentType, body) -> puts(\"Async text with lambda 2 params\\n\", body));\n\n Sys.sleep(100);\n\n\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith3Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n (code, contentType, body) -> puts(\"Async text with lambda 3 params\\n\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith4Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n \"p4\", \"v4\",\n (code, contentType, body) -> puts(\"Async text with lambda 4 params\\n\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith5Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n \"p4\", \"v4\",\n \"p5\", \"v5\",\n (code, contentType, body) -> puts(\"Async text with lambda 5 params\\n\", body));\n\n Sys.sleep(100);\n\n\n }", "public HttpClient build() {\n\t\tCloseableHttpClient httpClient = httpClientBuilder.build();\n\t\treturn new ApacheHttpClient(this.configuration, httpClient);\n\t}", "public static final DefaultHttpClient createHttpClient(int retryCount) {\n\t\tHttpParams params = new BasicHttpParams();\n\t\tHttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\n\t\tHttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\n\t\t// HttpProtocolParams.setUseExpectContinue(params, true);\n\t\t// Turn off stale checking. Our connections break all the time anyway,\n\t\t// and it's not worth it to pay the penalty of checking every time.\n\t\tHttpConnectionParams.setStaleCheckingEnabled(params, false);\n\n\t\t// Default connection and socket timeout of 30 seconds. Tweak to taste.\n\t\tHttpConnectionParams.setConnectionTimeout(params, 15 * 1000);\n\t\tHttpConnectionParams.setSoTimeout(params, 20 * 1000);\n\t\tHttpConnectionParams.setSocketBufferSize(params, 8192);\n\n\t\tHttpClientParams.setRedirecting(params, true);\n\n\t\tConnManagerParams.setTimeout(params, 5 * 1000);\n\t\tConnManagerParams.setMaxConnectionsPerRoute(params,\n\t\t\t\tnew ConnPerRouteBean(50));\n\t\tConnManagerParams.setMaxTotalConnections(params, 200);\n\n\t\t// Sets up the http part of the service.\n\t\tfinal SchemeRegistry supportedSchemes = new SchemeRegistry();\n\n\t\t// Register the \"http\" protocol scheme, it is required\n\t\t// by the default operator to look up socket factories.\n\t\tfinal SocketFactory sf = PlainSocketFactory.getSocketFactory();\n\t\tsupportedSchemes.register(new Scheme(\"http\", sf, 80));\n\t\tsupportedSchemes.register(new Scheme(\"https\", SSLSocketFactory\n\t\t\t\t.getSocketFactory(), 443));\n\t\tfinal ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager(\n\t\t\t\tparams, supportedSchemes);\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient(ccm, params);\n\t\thttpClient\n\t\t\t\t.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(\n\t\t\t\t\t\tretryCount, true));\n\t\t// Add gzip header to requests using an interceptor\n\t\thttpClient.addRequestInterceptor(new GzipHttpRequestInterceptor());\n\t\t// Add gzip compression to responses using an interceptor\n\t\thttpClient.addResponseInterceptor(new GzipHttpResponseInterceptor());\n\n\t\treturn httpClient;\n\t}", "public HttpComponentsClientHttpRequest(HttpClient httpClient, HttpUriRequest httpRequest)\r\n/* 25: */ {\r\n/* 26:54 */ this.httpClient = httpClient;\r\n/* 27:55 */ this.httpRequest = httpRequest;\r\n/* 28: */ }", "public HttpAction<HttpPost> post(HttpClient client, String path, HttpEntity entity, Header... headers)\n throws Exception\n {\n HttpPost request = new HttpPost(getBaseURL() + getContextPath() + path);\n if (headers != null && headers.length > 0)\n {\n request.setHeaders(headers);\n }\n if (entity != null)\n {\n request.setEntity(entity);\n }\n request.setEntity(null);\n HttpContext context = new BasicHttpContext();\n HttpResponse response = client.execute(request, context);\n\n return new HttpAction<HttpPost>(client, context, request, response, getBaseURL(), getContextPath());\n }", "public interface HttpPoster {\n\n /**\n * Post data to the provided URL.\n *\n * @param url http url to be reached\n * @param headers headers to be sent\n * @param body body to be sent\n * @param mediaType media type definition\n * @return http response from the POST request\n * @throws IOException in case of http request error\n */\n HttpResponse post(URL url, Map<String, String> headers, byte[] body, String mediaType)\n throws IOException;\n}", "@BeforeClass\n public static void createClient() {\n client = HttpClients.createDefault();\n }", "public TestState httpClient(HttpClient httpClient) {\n this.httpClient = httpClient;\n return this;\n }", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "Header createHeader();", "HttpResponse httpPost(URI uri);", "private DefaultHttpClient createHttpsClient() throws HttpException {\n DefaultHttpClient client = new DefaultHttpClient();\n SSLContext ctx = null;\n X509TrustManager tm = new TrustAnyTrustManager();\n try {\n ctx = SSLContext.getInstance(\"TLS\");\n ctx.init(null, new TrustManager[] { tm }, null);\n } catch (NoSuchAlgorithmException | KeyManagementException e) {\n throw new HttpException(\"Can't create a Trust Manager.\", e);\n }\n SSLSocketFactory ssf = new SSLSocketFactory(ctx, SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n client.getConnectionManager().getSchemeRegistry().register(new Scheme(\"https\", 443, ssf));\n return client;\n }", "public void setHttpClient( HttpClient req ) {\r\n\tclient=req;\r\n }", "public void postData(String autho, String iVector) {\n HttpClient httpclient = new DefaultHttpClient();\n HttpGet httppost = new HttpGet(url);\n\n try {\n // Add your data\n// List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n// nameValuePairs.add(new BasicNameValuePair(\"username\", uName));\n// nameValuePairs.add(new BasicNameValuePair(\"password\", pWord));\n// nameValuePairs.add(new BasicNameValuePair(\"ivector\", iVector));\n\n// httppost.addHeader(\"username\", uName);\n// httppost.addHeader(\"password\", pWord);\n httppost.addHeader(\"Authorization\", autho);\n httppost.addHeader(\"ivector\", iVector);\n\n // Execute HTTP Post Request\n HttpResponse response = httpclient.execute(httppost);\n String responseStr = EntityUtils.toString(response.getEntity());\n\n httppost.releaseConnection();\n httpclient.getConnectionManager().shutdown();\n\n\n handleResponse(responseStr);\n\n\n\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n //doNotification();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n\n //doNotification();\n }\n catch (RuntimeException e)\n {\n //doNotification();\n// text = \"Incorrect Username and/or Password\";\n// toast = Toast.makeText(context,text, duration);\n// toast.show();\n }\n }", "@Bean\n public HttpClient httpClient() {\n return new HttpClient(multiThreadedHttpConnectionManager());\n }", "@Test\n public void postRequest() {\n str = METHOD_POST + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": www.site.ru\" + ENDL +\n \"Referer: \"+ URI_SAMPLE + ENDL +\n \"Cookie: income=1\" + ENDL +\n \"Content-Type: application/x-www-form-urlencoded\" + ENDL +\n \"Content-Length: 35\" + ENDL +\n \"login=Petya%20Vasechkin&password=qq\";\n\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.POST);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(HOST_HEADER), \"www.site.ru\");\n assertEquals(request.getHeader(\"Referer\"), URI_SAMPLE);\n assertEquals(request.getHeader(\"Cookie\"), \"income=1\");\n assertEquals(request.getHeader(\"Content-Type\"), \"application/x-www-form-urlencoded\");\n assertEquals(request.getHeader(\"Content-Length\"), \"35\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n\n assertEquals(request.getParameter(\"login\"), \"Petya Vasechkin\");\n assertEquals(request.getParameter(\"password\"), \"qq\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }", "RequestHeaders headers();", "public Request<E, T> buildHttpPost ()\n\t{\n\t\treturn new HttpPostRequest<E, T>(this);\n\t}", "private static HttpClient getHttpClient() {\n if (mHttpClient == null) {\n mHttpClient = new DefaultHttpClient();\n final HttpParams params = mHttpClient.getParams();\n HttpConnectionParams.setConnectionTimeout(params, HTTP_TIMEOUT);\n HttpConnectionParams.setSoTimeout(params, HTTP_TIMEOUT);\n ConnManagerParams.setTimeout(params, HTTP_TIMEOUT);\n }\n return mHttpClient;\n }", "public static HttpClient getHttpClient() {\n HttpClient httpClient = new DefaultHttpClient();\n final HttpParams params = httpClient.getParams();\n HttpConnectionParams.setConnectionTimeout(params,\n HTTP_REQUEST_TIMEOUT_MS);\n HttpConnectionParams.setSoTimeout(params, HTTP_REQUEST_TIMEOUT_MS);\n ConnManagerParams.setTimeout(params, HTTP_REQUEST_TIMEOUT_MS);\n return httpClient;\n }", "ApacheHttpClientBuilder getApacheHttpClientBuilder();", "public interface HttpClient {\n\n\torg.apache.http.client.HttpClient getClient();\n\n\tString fetch(URI uri) throws IOException;\n\n\tvoid init() throws KeyManagementException, NoSuchAlgorithmException;\n}", "@Test\n public void getEndpoint() throws IOException {\n CloseableHttpClient httpclient = HttpClients.createDefault();\n\n //Creating a HttpGet object\n HttpPost httppost = new HttpPost(\"https://api.github.com/user/repos\");\n String auth=Credentials.getEmail()+\":\"+Credentials.getPassWard();\n byte[] encodedAuth = Base64.encodeBase64(auth.getBytes(Charset.forName(\"ISO-8859-1\")));\n String authHeader=\"Basic \"+new String(encodedAuth);\n httppost.setHeader(HttpHeaders.AUTHORIZATION,authHeader);\n String json=\"{\\\"name\\\": \\\"ploiko\\\"}\";\n httppost.setEntity(new StringEntity(json, ContentType.APPLICATION_JSON));\n HttpResponse httpresponse = httpclient.execute(httppost);\n System.out.println(httpresponse.getStatusLine());\n int actual=httpresponse.getStatusLine().getStatusCode();\n Assert.assertEquals(actual,201);\n //System.out.println(getHeaders(httpresponse,\"Access-Control-Allow-Methods\"));\n //System.out.println(httpresponse.getAllHeaders().toString());\n\n }", "public HttpClient(String host, int port)\n\t{\n\t\tsuper(host, port);\n\t\tclient = new org.apache.commons.httpclient.HttpClient();\n\t}", "public static Object httpClient() {\n return new Object();\n// return HttpClient.newBuilder()\n// .version(HttpClient.Version.HTTP_1_1)\n// .followRedirects(HttpClient.Redirect.NORMAL)\n// .connectTimeout(Duration.ofSeconds(300))\n// .build();\n }", "private static OkHttpClient getOkHttpClient() {\n OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder()\n .addInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request original = chain.request();\n\n Request.Builder requestBuilder = original.newBuilder()\n .method(original.method(), original.body());\n\n addAdditionalHttpHeaders(requestBuilder);\n addParleyHttpHeaders(requestBuilder);\n\n Request request = requestBuilder.build();\n return chain.proceed(request);\n }\n })\n .connectTimeout(30, TimeUnit.SECONDS)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS);\n\n applySslPinning(okHttpClientBuilder);\n\n return okHttpClientBuilder.build();\n }", "public CloseableHttpClient build() {\n\t\tCloseableHttpClient httpClient = httpClientBuilder.build();\n\t\treturn httpClient;\n\t}", "public WeChatPayHttpComponentsClient(final HttpClient httpClient) {\n checkNotNull(httpClient, \"httpClient\");\n\n this.basePath = WeChatPayClient.BASE_PATH;\n this.httpClient = httpClient;\n }", "public static final DefaultHttpClient createHttpClient(int retryCount,\n\t\t\tint timeout) {\n\t\tHttpParams params = new BasicHttpParams();\n\t\tHttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\n\t\tHttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\n\t\t// HttpProtocolParams.setUseExpectContinue(params, true);\n\t\t// Turn off stale checking. Our connections break all the time anyway,\n\t\t// and it's not worth it to pay the penalty of checking every time.\n\t\tHttpConnectionParams.setStaleCheckingEnabled(params, false);\n\n\t\t// Default connection and socket timeout of 30 seconds. Tweak to taste.\n\t\tHttpConnectionParams.setConnectionTimeout(params, timeout);\n\t\tHttpConnectionParams.setSoTimeout(params, timeout);\n\t\tHttpConnectionParams.setSocketBufferSize(params, 8192);\n\n\t\tHttpClientParams.setRedirecting(params, true);\n\n\t\tConnManagerParams.setTimeout(params, timeout);\n\t\tConnManagerParams.setMaxConnectionsPerRoute(params,\n\t\t\t\tnew ConnPerRouteBean(50));\n\t\tConnManagerParams.setMaxTotalConnections(params, 200);\n\n\t\t// Sets up the http part of the service.\n\t\tfinal SchemeRegistry supportedSchemes = new SchemeRegistry();\n\n\t\t// Register the \"http\" protocol scheme, it is required\n\t\t// by the default operator to look up socket factories.\n\t\tfinal SocketFactory sf = PlainSocketFactory.getSocketFactory();\n\t\tsupportedSchemes.register(new Scheme(\"http\", sf, 80));\n\t\tsupportedSchemes.register(new Scheme(\"https\", SSLSocketFactory\n\t\t\t\t.getSocketFactory(), 443));\n\t\tfinal ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager(\n\t\t\t\tparams, supportedSchemes);\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient(ccm, params);\n\t\thttpClient\n\t\t\t\t.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(\n\t\t\t\t\t\tretryCount, true));\n\t\t// Add gzip header to requests using an interceptor\n\t\t// httpClient.addRequestInterceptor(new GzipHttpRequestInterceptor());\n\t\t// Add gzip compression to responses using an interceptor\n\t\t// httpClient.addResponseInterceptor(new GzipHttpResponseInterceptor());\n\n\t\treturn httpClient;\n\t}", "private HttpResponse executeHttpPost(String apiUrl) throws OAuthMessageSignerException,\r\n\t\t\tOAuthExpectationFailedException, OAuthCommunicationException, IOException {\r\n\t\tHttpPost httprequest = new HttpPost(apiUrl);\r\n\t\tgetOAuthConsumer().sign(httprequest);\r\n\t\tHttpClient client = new DefaultHttpClient();\r\n\t\tHttpResponse httpresponse = client.execute(httprequest);\r\n\t\tint statusCode = httpresponse.getStatusLine().getStatusCode();\r\n\t\tSystem.out.println(statusCode + \":\" + httpresponse.getStatusLine().getReasonPhrase());\r\n\t\treturn httpresponse;\r\n\t}", "private HttpEntity<?> setTokenToHeaders() {\n HttpHeaders headers = new HttpHeaders();\n headers.set(\"Authorization\", this.token.getToken_type() + \" \" + this.token.getAccess_token());\n headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n return new HttpEntity<>(null, headers);\n }", "private CloseableHttpClient getHttpClient() {\n return HttpClients.custom()\n .setConnectionManager(httpClientConnectionManager)\n .setConnectionManagerShared(true)\n .build();\n }", "@Bean\n\tpublic HttpClient httpClient() {\n\t\treturn new HttpClient(this.multiThreadedHttpConnectionManager);\n\t}", "public void sendHttp() {\n String url = \"https://openwhisk.ng.bluemix.net/api/v1/namespaces/1tamir198_tamirSpace/actions/testing_trigger\";\n //api key that i got from blumix EndPoins\n String apiKey = \"530f095a-675e-4e1c-afe0-4b421201e894:0HriiSRoYWohJ4LGOjc5sGAhHvAka1gwASMlhRN8kA5eHgNu8ouogt8BbmXtX21N\";\n try {\n //JSONObject jsonObject = new JSONObject().put(\"openwhisk.ng.bluemix.net\" ,\"c1165fd1-f4cf-4a62-8c64-67bf20733413:hdVl64YRzbHBK0n2SkBB928cy2DUO5XB3yDbuXhQ1uHq8Ir0dOEwT0L0bqMeWTTX\");\n String res = (new HttpRequest(url)).prepare(HttpRequest.Method.POST).withData(apiKey).sendAndReadString();\n //String res = new HttpRequest(url).prepare(HttpRequest.Method.POST).withData(jsonObject.toString()).sendAndReadString();\n System.out.println( res + \"***********\");\n\n } catch ( IOException exception) {\n exception.printStackTrace();\n System.out.println(exception + \" some some some\");\n System.out.println(\"catched error from response ***********\");\n }\n }", "protected HttpClient getHttpClient( ) {\r\n\t\treturn httpClient;\r\n\t}", "public HttpEntity openHttpEntity(URL url) throws IOException {\r\n Logger.getLogger(TargetAuthenticationStrategy.class).setLevel(Level.ERROR);\r\n Logger.getLogger(RequestTargetAuthentication.class).setLevel(Level.ERROR);\r\n DefaultHttpClient httpclient = new DefaultHttpClient();\r\n\r\n for (Cookie cookie : cookies) {\r\n httpclient.getCookieStore().addCookie(cookie);\r\n }\r\n\r\n httpclient.getParams().setParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true);\r\n\r\n if (socketTimeout > -1) {\r\n httpclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, socketTimeout);\r\n }\r\n if (connectionTimeout > -1) {\r\n httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, connectionTimeout);\r\n }\r\n\r\n String domain = this.domain;\r\n String username = this.username;\r\n String password = this.password;\r\n if (serviceAccountPropertiesFileName != null) {\r\n Properties serviceAccountProperties = new Properties();\r\n if (new File(serviceAccountPropertiesFileName).exists()) {\r\n serviceAccountProperties.load(new FileReader(serviceAccountPropertiesFileName));\r\n } else {\r\n try {\r\n serviceAccountProperties.load(this.getClass().getResourceAsStream(serviceAccountPropertiesFileName));\r\n } catch (Exception e) {\r\n }\r\n }\r\n domain = serviceAccountProperties.getProperty(\"http.serviceaccount.domain\", domain);\r\n username = serviceAccountProperties.getProperty(\"http.serviceaccount.username\", username);\r\n password = serviceAccountProperties.getProperty(\"http.serviceaccount.password\", password);\r\n }\r\n\r\n if (username != null && password != null) {\r\n String decryptedPassword = password;\r\n try {\r\n decryptedPassword = new StringEncrypter().decrypt(password);\r\n } catch (Exception e) {\r\n }\r\n NTCredentials creds = new NTCredentials(username, decryptedPassword, getCanonicalHostName()[0], domain);\r\n httpclient.getCredentialsProvider().setCredentials(AuthScope.ANY, creds);\r\n httpclient.getAuthSchemes().unregister(AuthPolicy.SPNEGO);\r\n httpclient.getAuthSchemes().unregister(AuthPolicy.KERBEROS);\r\n }\r\n HttpHost target = new HttpHost(url.getHost(), url.getPort(), url.getProtocol());\r\n HttpContext localContext = new BasicHttpContext();\r\n HttpGet httpGet = new HttpGet(url.getFile());\r\n HttpResponse httpResponse = httpclient.execute(target, httpGet, localContext);\r\n this.lastStatusLine = httpResponse.getStatusLine();\r\n lastCookies = httpclient.getCookieStore().getCookies();\r\n\r\n return httpResponse.getEntity();\r\n }", "private static HttpRequest buildRequest(final URI uri, final String host) {\n FullHttpRequest request = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1,\n getHttpMethod(), uri.getRawPath());\n request.headers().set(HttpHeaderNames.HOST, host);\n request.headers().set(HttpHeaderNames.CONNECTION, HttpHeaderValues.CLOSE);\n request.headers().set(HttpHeaderNames.ACCEPT_ENCODING,\n HttpHeaderValues.GZIP);\n request.headers().set(HttpHeaderNames.CONTENT_TYPE,\n \"application/json; charset=UTF-8\");\n\n // Set some example cookies.\n request.headers().set(HttpHeaderNames.COOKIE,\n ClientCookieEncoder.STRICT.encode(\n new DefaultCookie(\"my-cookie\", \"foo\"),\n new DefaultCookie(\"another-cookie\", \"bar\")));\n\n // set content\n final ByteBuf buffer = request.content().clear();\n final String json = \"hello, json\";\n int p0 = buffer.writerIndex();\n buffer.writeBytes(json.getBytes(CharsetUtil.UTF_8));\n int p1 = buffer.writerIndex();\n request.headers().set(HttpHeaderNames.CONTENT_LENGTH,\n Integer.toString(p1 - p0));\n\n return request;\n }", "public static HttpURLConnection makePost(URL baseUrl, String path, String params)\n throws IOException {\n URL url = new URL(String.format(\"%s/%s\", baseUrl.toString(), path));\n Log.d(TAG, \"POST \" + url.toString() + \" \" + params);\n\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setRequestMethod(\"POST\");\n connection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n connection.setRequestProperty(\"Content-Length\", Integer.toString(params.getBytes().length));\n\n // FIXME: Investigate proper usage of Content-Language\n connection.setRequestProperty(\"Content-Language\", \"en-US\");\n setAcceptLanguage(connection);\n\n connection.setUseCaches(false);\n connection.setDoInput(true);\n connection.setDoOutput(true);\n\n // Send the request\n DataOutputStream wr = new DataOutputStream(connection.getOutputStream());\n wr.writeBytes(params);\n wr.flush();\n wr.close();\n return connection;\n }", "public CurlRequest newRequest(final String action, final String body) {\n\t\tfinal var builder = AWS4SignatureQuery.builder().service(\"cognito-idp\").body(\"&Version=2016-04-18\");\n\t\tfinal var headers = new HashMap<String, String>();\n\t\theaders.put(\"x-amz-target\", \"AWSCognitoIdentityProviderService.\" + action);\n\t\theaders.put(\"Content-Type\", \"application/x-amz-json-1.1\");\n\t\tfinal var query = builder.accessKey(accessKey).secretKey(secretKey).region(region).path(\"/\").headers(headers)\n\t\t\t\t.body(body).host(URI.create(url).getHost()).build();\n\t\tfinal var authorization = signer.computeSignature(query);\n\t\tfinal var request = new CurlRequest(query.getMethod(), url, query.getBody());\n\t\trequest.getHeaders().putAll(query.getHeaders());\n\t\trequest.getHeaders().put(\"Authorization\", authorization);\n\t\trequest.setSaveResponse(true);\n\t\treturn request;\n\t}", "public static String post(String url, String s,Map<String, String> headers) {\n AsyncHttpClient.BoundRequestBuilder builder = asyncHttpClient.preparePost(url);\n builder.setBodyEncoding(DEFAULT_CHARSET);\n builder.setBody(s);\n useCookie(builder);\n builder.setHeader(\"Content-Type\", DEFAULT_CONTENT_TYPE);\n if (headers != null && !headers.isEmpty()) {\n Set<String> keys = headers.keySet();\n for (String key : keys) {\n builder.addHeader(key, headers.get(key));\n }\n }\n Future<Response> f = builder.execute();\n String body = null;\n try {\n body = f.get().getResponseBody(DEFAULT_CHARSET);\n addCookie(f.get().getCookies());\n } catch (Exception e) {\n logger.error(LogUtil.builder().method(\"Post Request(the result is String,the param is a string in request body)\").msg(\"error,url={}\").build(), url, e);\n }\n return body;\n }", "@Override\n\tprotected HttpRequest createHttpRequest() {\n HttpGet httpGet = new HttpGet(getHost() + \"/repos/\" + owner + \"/\" + repo + \"/pulls?state=\" + state);\n httpGet.setHeader(\"Accept\", GITHUB_ACCEPT_HEADER);\n if (username != null && password != null) {\n \thttpGet.setHeader(\"Authentication\", AuthenticationUtils.getBasicAuthentication(username, password));\n }\n return httpGet;\n }", "private void CreateConnection()\n throws IOException {\n URL url = new URL(requestURL);\n //creates connection\n httpConn = (HttpURLConnection) url.openConnection();\n //sets headers\n Set<Map.Entry<String, String>> set = headers.entrySet();\n for (Map.Entry<String, String> me : set) {\n httpConn.setRequestProperty(me.getKey(), me.getValue());\n }\n //sets method\n httpConn.setRequestMethod(method);\n httpConn.setUseCaches(false);\n if (method == \"POST\") {\n httpConn.setDoOutput(true);\n httpConn.setDoInput(true);\n }\n\n }", "public static void main(String[] args) {\n\t\tHttpClient client = new HttpClient();\n\t\tPostMethod myPost = new PostMethod(string );\n\t\ttry{\n\t\t\t//��������ͷ������ \n\t\t\tmyPost.setRequestHeader(\"Content-Type\", \"text/xml\");\n\t\t\tmyPost.setRequestHeader(\"charset\", \"utf-8\");\n\t\t\tmyPost.setRequestHeader(\"x-app-key\", \"c85d54f1\");\n\t\t\tmyPost.setRequestHeader(\"x-sdk-version\", \"3.1\");\n\n\t\t\tString date = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\").format(new Date());\n\t\t\tmyPost.setRequestHeader(\"x-request-date\", date);\n\t\t\tString x_task_config = \"capkey=hwr.cloud.letter\";\n\t\t\tmyPost.setRequestHeader(\"x-task-config\", x_task_config);\n//\t\t\tString b = new String(g_sShortData);\n\t\t\tString str = \"712ddd892cf9163e6383aa169e0454e3\" + date + x_task_config ;\n//\t\t\tSystem.out.println(str);\n\t\t\tmyPost.setRequestHeader(\"x-auth\", MD5.getMD5((str + g_sShortData.toString()).getBytes()));\n//\t\t\tmyPost.setRequestHeader(\"x-udid\", \"101:123456789\");\n\t\t\tSystem.out.println(g_sShortData.length);\n\t\t\tbyte[] b = new byte[g_sShortData.length];\n\t\t\tfor(int i=0; i<g_sShortData.length; i++){\n\t\t\t\tb[i] = (byte) g_sShortData[i];\n\t\t\t}\n\t\t\t\n\t\t\tRequestEntity entity = new StringRequestEntity(new String(b, \"iso-8859-1\"), \"application/octet-stream\", \"iso-8859-1\");\n\t\t\tmyPost.setRequestEntity(entity);\n\t\t\tint statusCode = client.executeMethod(myPost);\n\t\t\tString.format(\"%d\", statusCode);\n\t\t\tSystem.out.println(statusCode);\n\t\t\t\n\t\t\tif (statusCode == HttpStatus.SC_OK) {\n\t\t\t\tInputStream txtis = myPost.getResponseBodyAsStream(); \n\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(txtis, \"utf-8\"));\n\t\t\t\t\n\t\t\t\tString tempbf;\n\t\t\t\tStringBuffer html = new StringBuffer(256);\n\t\t\t\twhile((tempbf = br.readLine()) != null){\n\t\t\t\t\thtml.append(tempbf);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(html.toString());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public HttpClient post(final Env env, StringValue uri, final Callback handler) {\n client.post(uri.toString(), createResponseHandler(env, handler));\n return this;\n }", "HttpHeaderType createHttpHeaderType();", "private CloseableHttpAsyncClient createHttpClient() {\n RequestConfig.Builder requestConfigBuilder = RequestConfig.custom()\n .setConnectTimeout(Timeout.ofMilliseconds(DEFAULT_CONNECT_TIMEOUT_MILLIS))\n .setResponseTimeout(Timeout.ofMilliseconds(DEFAULT_RESPONSE_TIMEOUT_MILLIS));\n if (requestConfigCallback != null) {\n requestConfigBuilder = requestConfigCallback.customizeRequestConfig(requestConfigBuilder);\n }\n\n try {\n final TlsStrategy tlsStrategy = ClientTlsStrategyBuilder.create()\n .setSslContext(SSLContext.getDefault())\n // See https://issues.apache.org/jira/browse/HTTPCLIENT-2219\n .setTlsDetailsFactory(new Factory<SSLEngine, TlsDetails>() {\n @Override\n public TlsDetails create(final SSLEngine sslEngine) {\n return new TlsDetails(sslEngine.getSession(), sslEngine.getApplicationProtocol());\n }\n })\n .build();\n\n final PoolingAsyncClientConnectionManager connectionManager = PoolingAsyncClientConnectionManagerBuilder.create()\n .setMaxConnPerRoute(DEFAULT_MAX_CONN_PER_ROUTE)\n .setMaxConnTotal(DEFAULT_MAX_CONN_TOTAL)\n .setTlsStrategy(tlsStrategy)\n .build();\n\n HttpAsyncClientBuilder httpClientBuilder = HttpAsyncClientBuilder.create()\n .setDefaultRequestConfig(requestConfigBuilder.build())\n .setConnectionManager(connectionManager)\n .setTargetAuthenticationStrategy(DefaultAuthenticationStrategy.INSTANCE)\n .disableAutomaticRetries();\n if (httpClientConfigCallback != null) {\n httpClientBuilder = httpClientConfigCallback.customizeHttpClient(httpClientBuilder);\n }\n\n final HttpAsyncClientBuilder finalBuilder = httpClientBuilder;\n return AccessController.doPrivileged((PrivilegedAction<CloseableHttpAsyncClient>) finalBuilder::build);\n } catch (NoSuchAlgorithmException e) {\n throw new IllegalStateException(\"could not create the default ssl context\", e);\n }\n }", "public static Client getHttpClient() {\r\n return c;\r\n }", "public DefaultHttpClientImpl() {\n SchemeRegistry schemeRegistry = new SchemeRegistry();\n schemeRegistry.register(new Scheme(\n \"http\", PlainSocketFactory.getSocketFactory(), 80));\n\n schemeRegistry.register(new Scheme(\n \"https\", SSLSocketFactory.getSocketFactory(), 443));\n conman = new ThreadSafeClientConnManager(params, schemeRegistry);\n }", "public DefaultHttpRequestBuilder (final DefaultHttpClient client) {\r\n\t\tif (client == null) {\r\n\t\t\tthrow new NullPointerException (\"client cannot be null\");\r\n\t\t}\r\n\t\t\r\n\t\tthis.client = client;\r\n\t}", "public static HttpCarbonMessage createHttpCarbonMessage() {\n HttpCarbonMessage httpCarbonMessage;\n httpCarbonMessage = new HttpCarbonMessage(\n new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK));\n return httpCarbonMessage;\n }", "public void enablePOST() {\n\t\thttpPost = new HttpPost(\"http://23.21.229.136/message.php\");\n\t\thttpPostLog = new HttpPost(\n\t\t\t\t\"http://capstonecontrol.appspot.com/LogModuleEventServlet\");\n\t\thttpPostScheduledEvent = new HttpPost(\n\t\t\t\t\"http://capstonecontrol.appspot.com/ScheduleEvent\");\n\t\tHttpParams httpParameters = new BasicHttpParams();\n\t\t// Set the timeout in milliseconds until a connection is established.\n\t\tint timeoutConnection = 3000;\n\t\tHttpConnectionParams.setConnectionTimeout(httpParameters,\n\t\t\t\ttimeoutConnection);\n\t\t// Set the default socket timeout (SO_TIMEOUT)\n\t\t// in milliseconds which is the timeout for waiting for data.\n\t\tint timeoutSocket = 3000;\n\t\tHttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);\n\n\t\thttpClient = new DefaultHttpClient(httpParameters);\n\t}", "public void post(Controller controller) {\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n executorService.execute(() -> {\n String responseString = null;\n try {\n httpPost.setEntity(new UrlEncodedFormEntity(attributes, \"UTF-8\"));\n HttpResponse response = httpClient.execute(httpPost);\n HttpEntity entity = response.getEntity();\n if (entity != null) {\n responseString = EntityUtils.toString(entity);\n }\n } catch (Exception exc) {\n exc.printStackTrace();\n }\n controller.handleResponse(responseString);\n });\n }", "public HTTPResponse( Transaction t, Content ct, Headers hd ){\n super();\n\n Pia.debug(this, \"Constructor-- [ transaction t, content ct, headers hd ] on duty...\");\n\n contentObj = ct;\n headersObj = hd; // maybe generate?\n\n if( contentObj != null )\n contentObj.setHeaders( headersObj );\n \n requestTran = t;\n fromMachine( t.toMachine() );\n toMachine( t.fromMachine() );\n\n startThread();\n }", "static Http1Client create(Http1ClientConfig clientConfig) {\n return new Http1ClientImpl(WebClient.create(it -> it.from(clientConfig)), clientConfig);\n }", "@SuppressWarnings(\"deprecation\")\n\tprotected static HttpUriRequest createHttpRequest(Request<?> request, Map<String, String> additionalHeaders) throws AuthFailureError {\n\t\tswitch (request.getMethod()) {\n\t\tcase Method.DEPRECATED_GET_OR_POST: {\n\t\t\t// This is the deprecated way that needs to be handled for backwards compatibility.\n\t\t\t// If the request's post body is null, then the assumption is that the request is\n\t\t\t// GET. Otherwise, it is assumed that the request is a POST.\n\t\t\tbyte[] postBody = request.getPostBody();\n\t\t\tif (postBody != null) {\n\t\t\t\tHttpPost postRequest = new HttpPost(request.getUrl());\n\t\t\t\tpostRequest.addHeader(HEADER_CONTENT_TYPE, request.getPostBodyContentType());\n\t\t\t\tHttpEntity entity;\n\t\t\t\tentity = new ByteArrayEntity(postBody);\n\t\t\t\tpostRequest.setEntity(entity);\n\t\t\t\treturn postRequest;\n\t\t\t} else {\n\t\t\t\treturn new HttpGet(request.getUrl());\n\t\t\t}\n\t\t}\n\t\tcase Method.GET:\n\t\t\treturn new HttpGet(request.getUrl());\n\t\tcase Method.DELETE:\n\t\t\treturn new HttpDelete(request.getUrl());\n\t\tcase Method.POST: {\n\t\t\tHttpPost postRequest = new HttpPost(request.getUrl());\n\t\t\tpostRequest.addHeader(HEADER_CONTENT_TYPE, request.getBodyContentType());\n\t\t\tsetEntityIfNonEmptyBody(postRequest, request);\n\t\t\treturn postRequest;\n\t\t}\n\t\tcase Method.PUT: {\n\t\t\tHttpPut putRequest = new HttpPut(request.getUrl());\n\t\t\tputRequest.addHeader(HEADER_CONTENT_TYPE, request.getBodyContentType());\n\t\t\tsetEntityIfNonEmptyBody(putRequest, request);\n\t\t\treturn putRequest;\n\t\t}\n\t\tdefault:\n\t\t\tthrow new IllegalStateException(\"Unknown request method.\");\n\t\t}\n\t}", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "public <T> T create(String baseUrl, Class<T> clz) {\n String service_url = \"\";\n try {\n Field field1 = clz.getField(\"BASE_URL\");\n service_url = (String) field1.get(clz);\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.getMessage();\n e.printStackTrace();\n }\n return createApiClient(\n TextUtils.isEmpty(service_url) ? baseUrl : service_url).create(clz);\n }", "public interface HttpClientable {\n\n void get(String url);\n\n void get(String url, ParamStore params);\n\n void get(String url, ParamStore params, String tag);\n\n void post(String url, SparseArray<String> params);\n\n void post(String url, SparseArray<String> params, String tag);\n\n void upload(String url, HashMap<String, Object> params);\n\n void upload(String url, HashMap<String, Object> params, String tag);\n\n void download(String url);\n\n void download(String url, String tag);\n\n void cancelAll();\n\n void cancel(String tag);\n\n}", "public ResponseFromHTTP makeRequest() throws CustomRuntimeException\n\t{\n\t\tResponseFromHTTP result=null;\n\t\tCloseableHttpClient httpclient=null;\n\t\tCloseableHttpResponse response=null;\n\t\tboolean needAuth=false;\n\t\tboolean viaProxy=httpTransportInfo.isUseProxy() && StringUtils.isNotBlank(httpTransportInfo.getProxyHost());\n\n\t\tHttpHost target = new HttpHost(httpTransportInfo.getHost(), httpTransportInfo.getPort(),httpTransportInfo.getProtocol());\n\t\t//basic auth for request\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tif(StringUtils.isNotBlank(httpTransportInfo.getLogin()) && \n\t\t\t\tStringUtils.isNotBlank(httpTransportInfo.getPassword()))\n\t\t{\n\t\t\tcredsProvider.setCredentials(\n\t\t\t\t\tnew AuthScope(target.getHostName(), target.getPort()),\n\t\t\t\t\tnew UsernamePasswordCredentials(httpTransportInfo.getLogin(), httpTransportInfo.getPassword()));\n\t\t\tneedAuth=true;\n\t\t}\n\n\t\t//proxy auth?\n\t\tif(viaProxy && StringUtils.isNotBlank(httpTransportInfo.getProxyLogin()) &&\n\t\t\t\tStringUtils.isNotBlank(httpTransportInfo.getProxyPassword()))\n\t\t{\n\t\t\t//proxy auth setting\n\t\t\tcredsProvider.setCredentials(\n\t\t\t\t\tnew AuthScope(httpTransportInfo.getProxyHost(), httpTransportInfo.getProxyPort()),\n\t\t\t\t\tnew UsernamePasswordCredentials(httpTransportInfo.getProxyLogin(), httpTransportInfo.getProxyPassword()));\n\t\t}\n\n\t\ttry\n\t\t{\n\n\t\t\tHttpClientBuilder httpclientBuilder = HttpClients.custom()\n\t\t\t\t\t.setDefaultCredentialsProvider(credsProvider);\n\t\t\t//https\n\t\t\tif(\"https\".equalsIgnoreCase(httpTransportInfo.getProtocol()))\n\t\t\t{\n\t\t\t\t//A.K. - Set stub for check certificate - deprecated from 4.4.1\n\t\t\t\tSSLContextBuilder sslContextBuilder=SSLContexts.custom();\n\t\t\t\tTrustStrategyLZ trustStrategyLZ=new TrustStrategyLZ();\n\t\t\t\tsslContextBuilder.loadTrustMaterial(null,trustStrategyLZ);\n\t\t\t\tSSLContext sslContext = sslContextBuilder.build();\n\t\t\t\tSSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslContext,SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n\t\t\t\thttpclientBuilder.setSSLSocketFactory(sslsf);\n\t\t\t}\n\n\t\t\thttpclient=httpclientBuilder.build();\n\n\t\t\t//timeouts\n\t\t\tBuilder builder = RequestConfig.custom()\n\t\t\t\t\t.setSocketTimeout(httpTransportInfo.getSocketTimeoutSec()*1000)\n\t\t\t\t\t.setConnectTimeout(httpTransportInfo.getConnectTimeoutSec()*1000);\n\n\t\t\t//via proxy?\n\t\t\tif(viaProxy)\n\t\t\t{\n\t\t\t\t//proxy setting\n\t\t\t\tHttpHost proxy = new HttpHost(httpTransportInfo.getProxyHost(),httpTransportInfo.getProxyPort(),httpTransportInfo.getProxyProtocol());\n\t\t\t\tbuilder.setProxy(proxy);\n\t\t\t}\n\n\t\t\tRequestConfig requestConfig=builder.build();\n\n\t\t\t// Create AuthCache instance\n\t\t\tAuthCache authCache = new BasicAuthCache();\n\t\t\t// Generate BASIC scheme object and add it to the local\n\t\t\t// auth cache\n\t\t\tBasicScheme basicAuth = new BasicScheme();\n\t\t\tauthCache.put(target, basicAuth);\n\n\t\t\t// Add AuthCache to the execution context\n\t\t\tHttpClientContext localContext = HttpClientContext.create();\n\t\t\tlocalContext.setAuthCache(authCache);\n\n\t\t\tPathParser parsedPath=new PathParser(getUri());\n\t\t\tif(restMethodDef.isUseOriginalURI())\n\t\t\t{\n\t\t\t\t//in this case params from URI will not add to all params\n\t\t\t\tparsedPath.getParams().clear();\n\t\t\t}\n\t\t\tparsedPath.getParams().addAll(getRequestDefinition().getParams());\n\t\t\t//prepare URI\n\t\t\tURIBuilder uriBuilder = new URIBuilder().setPath(parsedPath.getUri());\n\t\t\tif(!getRequestDefinition().isHttpMethodPost())\n\t\t\t{\n\t\t\t\t//form's parameters - GET/DELETE/OPTIONS/PUT\n\t\t\t\tfor(NameValuePair nameValuePair : parsedPath.getParams())\n\t\t\t\t{\n\t\t\t\t\turiBuilder.setParameter(nameValuePair.getName(),nameValuePair.getValue());\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tURI resultUri =(restMethodDef.isUseOriginalURI())?new URI(getUri()):uriBuilder.build();\n\n\t\t\t//\t\t\tHttpRequestBase httpPostOrGet=(getRequestDefinition().isHttpMethodPost())?\n\t\t\t//\t\t\t\t\tnew HttpPost(resultUri):\n\t\t\t//\t\t\t\t\tnew HttpGet(resultUri);\n\n\t\t\tHttpRequestBase httpPostOrGetEtc=null;\n\t\t\t//\n\t\t\tswitch(getRequestDefinition().getHttpMethod())\n\t\t\t{\n\t\t\t\tcase POST: httpPostOrGetEtc=new HttpPost(resultUri);break;\n\t\t\t\tcase DELETE: httpPostOrGetEtc=new HttpDelete(resultUri);break;\n\t\t\t\tcase OPTIONS: httpPostOrGetEtc=new HttpOptions(resultUri);break;\n\t\t\t\tcase PUT: httpPostOrGetEtc=new HttpPut(resultUri);break;\n\n\t\t\t\tdefault: httpPostOrGetEtc=new HttpGet(resultUri);break;\n\t\t\t}\n\n\t\t\t//Specifie protocol version\n\t\t\tif(httpTransportInfo.isVersionHttp10())\n\t\t\t\thttpPostOrGetEtc.setProtocolVersion(HttpVersion.HTTP_1_0);\n\n\t\t\t//user agent\n\t\t\thttpPostOrGetEtc.setHeader(HttpHeaders.USER_AGENT,httpTransportInfo.getUserAgent());\n\t\t\t//заголовки из запроса\n\t\t\tif(getRequestDefinition().getHeaders().size()>0)\n\t\t\t{\n\t\t\t\tfor(NameValuePair nameValuePair : getRequestDefinition().getHeaders())\n\t\t\t\t{\n\t\t\t\t\tif(org.apache.commons.lang.StringUtils.isNotBlank(nameValuePair.getName()) &&\n\t\t\t\t\t\t\torg.apache.commons.lang.StringUtils.isNotBlank(nameValuePair.getValue()))\n\t\t\t\t\t{\n\t\t\t\t\t\thttpPostOrGetEtc.setHeader(nameValuePair.getName(),nameValuePair.getValue());\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Additional HTTP headers from httpTransportInfo\n\t\t\tif(httpTransportInfo.getAddHeaders()!=null)\n\t\t\t{\n\t\t\t\tfor(Map.Entry<String, String> entry:httpTransportInfo.getAddHeaders().entrySet())\n\t\t\t\t{\n\t\t\t\t\tif(org.apache.commons.lang.StringUtils.isNotBlank(entry.getKey()) &&\n\t\t\t\t\t\t\torg.apache.commons.lang.StringUtils.isNotBlank(entry.getValue()))\n\t\t\t\t\t{\n\t\t\t\t\t\thttpPostOrGetEtc.setHeader(entry.getKey(),entry.getValue());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\thttpPostOrGetEtc.setConfig(requestConfig);\n\t\t\t//Form's parameters, request POST\n\t\t\tif(getRequestDefinition().isHttpMethodPost())\n\t\t\t{\n\t\t\t\tif(getPostBody()!=null)\n\t\t\t\t{\n\t\t\t\t\tStringEntity stringEntity=new StringEntity(getPostBody(),httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPost) (httpPostOrGetEtc)).setEntity(stringEntity);\n\t\t\t\t}\n\t\t\t\telse if(parsedPath.getParams().size()>0)\n\t\t\t\t{\n\t\t\t\t\tUrlEncodedFormEntity entityForm = new UrlEncodedFormEntity(parsedPath.getParams(), httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPost) (httpPostOrGetEtc)).setEntity(entityForm);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Body for PUT\n\t\t\tif(getRequestDefinition().getHttpMethod()==HttpMethod.PUT)\n\t\t\t{\n\t\t\t\tif(getPostBody()!=null)\n\t\t\t\t{\n\t\t\t\t\tStringEntity stringEntity=new StringEntity(getPostBody(),httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPut) (httpPostOrGetEtc)).setEntity(stringEntity);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresponse = httpclient.execute(target, httpPostOrGetEtc, (needAuth)?localContext:null);\n\t\t\t//response.\n\t\t\tHttpEntity entity = response.getEntity();\n\t\t\tif(entity!=null)\n\t\t\t{\n\t\t\t\t//charset\n\t\t\t\tContentType contentType = ContentType.get(entity);\n\t\t\t\tString currentCharSet=httpTransportInfo.getCharset();\n\t\t\t\tif(contentType!=null)\n\t\t\t\t{\n\t\t\t\t\t//String mimeType = contentType.getMimeType();\n\t\t\t\t\tif(contentType.getCharset()!=null)\n\t\t\t\t\t\tcurrentCharSet=contentType.getCharset().name();\n\t\t\t\t}\n\t\t\t\tInputStream inputStream=entity.getContent();\n\t\t\t\tif(getRequestDefinition().isBinaryResponseBody())\n\t\t\t\t{\n\t\t\t\t\t//binary content\n\t\t\t\t\tbyte[] bodyBin = IOUtils.toByteArray(inputStream);\n\t\t\t\t\tresult=new ResponseFromHTTP(response.getAllHeaders(),bodyBin,response.getStatusLine().getStatusCode());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//copy content to string\n\t\t\t\t\tStringWriter writer = new StringWriter();\n\t\t\t\t\tIOUtils.copy(inputStream, writer, currentCharSet);\n\t\t\t\t\tresult=new ResponseFromHTTP(response.getAllHeaders(),writer.toString(),response.getStatusLine().getStatusCode());\n\t\t\t\t}\n\t\t\t\tinputStream.close();\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new CustomRuntimeException(\"fetchData over http uri: \"+getUri(),e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(response!=null)\n\t\t\t\t\tresponse.close();\n\t\t\t\tif(httpclient!=null)\n\t\t\t\t\thttpclient.close();\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t} \t\n\t\t}\t\t\n\t\treturn result;\n\n\t}", "void addHttpContent(HttpContent httpContent);", "public void postAny(String postUrl, StringEntity postingString) {\r\n try {\r\n HttpPost post = new HttpPost(postUrl);\r\n TrustStrategy acceptingTrustStrategy = new TrustSelfSignedStrategy();\r\n SSLContext sslContext = org.apache.http.ssl.SSLContexts.custom().loadTrustMaterial(null, acceptingTrustStrategy)\r\n .build();\r\n SSLConnectionSocketFactory scsf = new SSLConnectionSocketFactory(sslContext, NoopHostnameVerifier.INSTANCE);\r\n HttpClient httpClient = HttpClients.custom().setSSLSocketFactory(scsf).build();\r\n post.addHeader(\"accept\", \"application/json\");\r\n post.setHeader(\"Content-type\", \"application/json\");\r\n post.setEntity(postingString);\r\n HttpResponse response = httpClient.execute(post);\r\n\r\n System.out.println(\"Response is \" + response.toString());\r\n } catch (Exception e) {\r\n System.out.println(\"Exception \" + e);\r\n }\r\n }", "public static final DefaultHttpClient createHttpClient(String proxyUri,\n\t\t\tint port) {\n\t\t// Shamelessly cribbed from AndroidHttpClient\n\t\tHttpParams params = new BasicHttpParams();\n\t\tHttpHost host = new HttpHost(proxyUri, port);\n\t\tparams.setParameter(ConnRouteParams.DEFAULT_PROXY, host);\n\n\t\tHttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\n\t\tHttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\n\t\t// HttpProtocolParams.setUseExpectContinue(params, true);\n\t\t// Turn off stale checking. Our connections break all the time anyway,\n\t\t// and it's not worth it to pay the penalty of checking every time.\n\t\tHttpConnectionParams.setStaleCheckingEnabled(params, false);\n\n\t\t// Default connection and socket timeout of 30 seconds. Tweak to taste.\n\t\tHttpConnectionParams.setConnectionTimeout(params, 10 * 1000);\n\t\tHttpConnectionParams.setSoTimeout(params, 20 * 1000);\n\t\tHttpConnectionParams.setSocketBufferSize(params, 8192);\n\n\t\tHttpClientParams.setRedirecting(params, true);\n\n\t\tConnManagerParams.setTimeout(params, 5 * 1000);\n\t\tConnManagerParams.setMaxConnectionsPerRoute(params,\n\t\t\t\tnew ConnPerRouteBean(50));\n\t\tConnManagerParams.setMaxTotalConnections(params, 200);\n\n\t\t// Sets up the http part of the service.\n\t\tfinal SchemeRegistry supportedSchemes = new SchemeRegistry();\n\n\t\t// Register the \"http\" protocol scheme, it is required\n\t\t// by the default operator to look up socket factories.\n\t\tfinal SocketFactory sf = PlainSocketFactory.getSocketFactory();\n\t\tsupportedSchemes.register(new Scheme(\"http\", sf, 80));\n\t\tsupportedSchemes.register(new Scheme(\"https\", SSLSocketFactory\n\t\t\t\t.getSocketFactory(), 443));\n\t\tfinal ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager(\n\t\t\t\tparams, supportedSchemes);\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient(ccm, params);\n\t\thttpClient\n\t\t\t\t.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(\n\t\t\t\t\t\t3, true));\n\t\t// Add gzip header to requests using an interceptor\n\t\thttpClient.addRequestInterceptor(new GzipHttpRequestInterceptor());\n\t\t// Add gzip compression to responses using an interceptor\n\t\thttpClient.addResponseInterceptor(new GzipHttpResponseInterceptor());\n\n\t\treturn httpClient;\n\t}", "public MercadoPagoAPI() {\n\t\tsuper();\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(HEADER_AUTHORIZATION, authorizationToken);\n\t\theaders.set(HEADER_CONTENT_TYPE, JSON_CONTENT_TYPE);\n\t\tHEADER = new HttpEntity<Object>(headers);\n\t}", "public MockHttpServletRequest newPost(String url) {\n return new MockHttpServletRequest(\"POST\", url);\n }", "private <T> HttpEntity createHttpEntityForJson(T body) {\r\n\t\tString dataForEntity;\r\n\t\tif (!(body instanceof String)) {\r\n\t\t\tdataForEntity = gson.toJson(body);\r\n\t\t} else {\r\n\t\t\tdataForEntity = (String) body;\r\n\t\t}\r\n\t\t// try {\r\n\t\treturn new StringEntity(dataForEntity, Charset.forName(\"utf-8\"));\r\n\t\t// } catch (UnsupportedEncodingException e) {\r\n\t\t// e.printStackTrace();\r\n\t\t// }\r\n\t\t// return null;\r\n\t}", "private OkHttpClient Create() {\n final OkHttpClient.Builder baseClient = new OkHttpClient().newBuilder()\n .connectTimeout(CONNECTION_TIMEOUT, TimeUnit.SECONDS)\n .writeTimeout(WRITE_TIMEOUT, TimeUnit.SECONDS)\n .readTimeout(READ_TIMEOUT, TimeUnit.SECONDS);\n\n // If there's no proxy just create a normal client\n if (appProps.getProxyHost().isEmpty()) {\n return baseClient.build();\n }\n\n final OkHttpClient.Builder proxyClient = baseClient\n .proxy(new java.net.Proxy(java.net.Proxy.Type.HTTP, new InetSocketAddress(appProps.getProxyHost(), Integer.parseInt(appProps.getProxyPort()))));\n\n if (!appProps.getProxyUsername().isEmpty() && !appProps.getProxyPassword().isEmpty()) {\n\n Authenticator proxyAuthenticator;\n String credentials;\n\n credentials = Credentials.basic(appProps.getProxyUsername(), appProps.getProxyPassword());\n\n // authenticate the proxy\n proxyAuthenticator = (route, response) -> response.request().newBuilder()\n .header(\"Proxy-Authorization\", credentials)\n .build();\n proxyClient.proxyAuthenticator(proxyAuthenticator);\n }\n return proxyClient.build();\n\n }", "private final static HttpRequest createRequest() {\r\n\r\n HttpRequest req = new BasicHttpRequest\r\n (\"GET\", \"/\", HttpVersion.HTTP_1_1);\r\n //(\"OPTIONS\", \"*\", HttpVersion.HTTP_1_1);\r\n\r\n return req;\r\n }", "@Provides\n @Singleton\n Client provideHttpClient(Environment environment, PermissionsAppConfig config) {\n HttpClientConfiguration httpClientConfiguration = new HttpClientConfiguration();\n httpClientConfiguration.setTimeout(Duration.milliseconds(7000));\n\n HttpClientBuilder clientBuilder = new HttpClientBuilder(environment);\n clientBuilder.using(httpClientConfiguration);\n\n JerseyClientBuilder builder = new JerseyClientBuilder(environment);\n builder.setApacheHttpClientBuilder(clientBuilder);\n\n Client client = builder.build(\"jerseyClient\");\n client.register(ClientCorrelationIdFilter.class, 1);\n client.register(JerseyLoggingFilter.class, 2);\n return client;\n }", "public static void main(String[] args) throws Exception {\n\n CloseableHttpClient aDefault = HttpClients.createDefault();\n\n\n /* HttpPost httpPost = new HttpPost(\"http://172.16.18.88:8080/toLogin.do\");\n List<NameValuePair> paramList = new ArrayList<>();\n paramList.add(new BasicNameValuePair(\"email\", \"hf\"));\n paramList.add(new BasicNameValuePair(\"pwd\", \"1234\"));\n paramList.add(new BasicNameValuePair(\"url\", \"\"));\n UrlEncodedFormEntity postEntity = new UrlEncodedFormEntity(paramList, \"UTF-8\");\n httpPost.setEntity(postEntity);\n HttpEntity entity = aDefault.execute(httpPost).getEntity();\n System.out.println(EntityUtils.toString(entity,DEFAULT_CHARSET));*/\n\n\n HttpGet httpGet = new HttpGet(\"http://e-hentai.org\");\n httpGet.setHeader(\"User-Agent\", DEFAULT_USER_AGENT);\n CloseableHttpResponse execute = aDefault.execute(httpGet);\n System.out.println(EntityUtils.toString(execute.getEntity(), DEFAULT_CHARSET));\n\n\n String phone = \"13920266937\";\n String code = \"北京,邢台,上海。\";\n String tplId = \"39638\";\n String url = \"http://v.juhe.cn/sms/send?mobile=\" + phone + \"&tpl_id=\" + tplId + \"&tpl_value=%23code%23%3D\" + code + \"&key=e3d4c483e58d86102bce4e05dcf071c1\";\n String s = httpPost(url);\n System.out.println(s);\n }", "protected WebTestArtifact makeHttpRequest(String resource, String httpMethod)\r\n {\r\n return new WebTestArtifact(resource, httpMethod);\r\n }", "public BitbucketServiceFactory() {\n this.httpClient = HttpClient::create;\n }", "public AsyncHttpResponse(String url, HttpResponseHeaders headers, byte[] payload) {\n mUrl = url;\n mHeaders = headers;\n mPayload = payload;\n mException = null;\n }", "private HttpHeaders getHttpHeaders()\r\n\t{\n HttpHeaders lHttpHeaders = new HttpHeaders();\r\n lHttpHeaders.setContentType(MediaType.APPLICATION_JSON);\r\n lHttpHeaders.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\r\n // set basic authorization with api key and its value\r\n lHttpHeaders.setBasicAuth( PaymentConstant.API_KEY_ID, PaymentConstant.API_KEY_PASSWORD );\r\n return lHttpHeaders;\r\n\t}", "@Provides\n @Singleton\n OkHttpClient provideOkHttpClient() {\n final HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();\n loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder()\n .addInterceptor(loggingInterceptor);\n\n return clientBuilder.build();\n }", "CompletableFuture<PostResponse> createNewPost(Post post);", "public HttpEntity openHttpEntityViaPost(URL url, Map<String, String> params) throws IOException {\r\n List<NameValuePair> nvps = new ArrayList<NameValuePair>();\r\n for (String pName : params.keySet()) {\r\n nvps.add(new BasicNameValuePair(pName, params.get(pName)));\r\n }\r\n return openHttpEntityViaPost(url, nvps);\r\n }", "public Builder httpClientInstance(okhttp3.OkHttpClient httpClientInstance) {\r\n configurationBuilder.httpClientInstance(httpClientInstance);\r\n return this;\r\n }", "String addclient(ContentValues client);", "ResponseHandler createResponseHandler();" ]
[ "0.6946483", "0.6791638", "0.6690835", "0.64410734", "0.62591386", "0.6240455", "0.6178956", "0.6175448", "0.61484545", "0.6023752", "0.5957844", "0.59496754", "0.5921056", "0.59040177", "0.59015733", "0.5873391", "0.5845826", "0.58342654", "0.58114904", "0.5791647", "0.5717884", "0.56985545", "0.569217", "0.5644128", "0.56242037", "0.56102854", "0.5597314", "0.55541474", "0.55323434", "0.5526996", "0.5520274", "0.55161846", "0.54995114", "0.5497852", "0.54958993", "0.5477244", "0.54433244", "0.5438142", "0.54338247", "0.54281527", "0.5414742", "0.54139376", "0.53647244", "0.53617865", "0.5339481", "0.53380865", "0.53364104", "0.5334233", "0.5329836", "0.53268313", "0.53247386", "0.5323812", "0.5317347", "0.5308425", "0.52751386", "0.5274291", "0.5265499", "0.52582216", "0.5252781", "0.5249137", "0.5244037", "0.5211955", "0.52056456", "0.5201673", "0.5200589", "0.5200061", "0.51961195", "0.51808876", "0.51779777", "0.5166962", "0.5153572", "0.51530576", "0.5147452", "0.513328", "0.51292074", "0.5104871", "0.51039267", "0.50986284", "0.5091155", "0.5090944", "0.50671417", "0.5056048", "0.5045958", "0.5044684", "0.50350004", "0.50224197", "0.5014609", "0.4993788", "0.4986222", "0.49804986", "0.49729627", "0.49706396", "0.49675897", "0.4950506", "0.4947168", "0.4942878", "0.49418905", "0.4939811", "0.4936247", "0.4921142", "0.4908117" ]
0.0
-1
TODO: get strings from resources
public static ActionType convertTagToActionType(String tag) { if ("helista".equals(tag)) { return CALL; } if ("vali".equals(tag)) { return DIAL; } return VIEW; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getResourceName();", "String getResource();", "public String getResourceName();", "List<String> externalResources();", "protected String getResourceString (String key)\n {\n try {\n if (_bundle != null) {\n return _bundle.getString(key);\n }\n \n } catch (MissingResourceException mre) {\n Log.warning(\"Missing translation message \" +\n \"[bundle=\" + _path + \", key=\" + key + \"].\");\n }\n return null;\n }", "private String getStringFromResource(String resourcePath) {\n String str = \"\";\n ClassLoader classloader = getClass().getClassLoader();\n if (classloader == null) {\n return str;\n }\n if (logger.isTraceEnabled()) {\n URL resourceurl = classloader.getResource(resourcePath);\n logger.trace(\"URL=\" + resourceurl.toString());\n }\n InputStream instream = classloader.getResourceAsStream(resourcePath);\n if (instream == null) {\n logger.warn(\"Could not read resource from path \" + resourcePath);\n return null;\n }\n try {\n str = stringFromInputStream(instream);\n } catch (IOException ioe) {\n logger.warn(\"Could not create string from stream: \", ioe);\n return null;\n }\n return str;\n }", "public java.lang.String getResources(int index) {\n return resources_.get(index);\n }", "public java.lang.String getResources(int index) {\n return resources_.get(index);\n }", "private void setStrings(){\n ip = context.getResources().getString(R.string.ip);\n port = context.getResources().getString(R.string.port);\n dbName = context.getResources().getString(R.string.db_name);\n user = context.getResources().getString(R.string.masterUser);\n pass = context.getResources().getString(R.string.masterPass);\n }", "private String getDataFromClassResourceFile(String file) {\n\n StringBuffer sb = new StringBuffer();\n String str = \"\";\n\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(file);\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n if (is != null) {\n while ((str = reader.readLine()) != null) {\n sb.append(str + \"\\n\");\n }\n }\n } catch (IOException ioe) {\n ioe.printStackTrace();\n } finally {\n try {\n is.close();\n } catch (Throwable ignore) {\n }\n }\n return sb.toString();\n\n }", "public String getString(String key) {\n\t\tif (RESOURCE_BUNDLE == null) {\n\t\t\tthrow new IllegalStateException(\"RESOURCE BUNDLE not yet initialized.\");\n\t\t}\n\t\ttry {\n\t\t\treturn RESOURCE_BUNDLE.getString(key);\n\t\t} catch (MissingResourceException e) {\n\t\t\tif (bundles != null) {\n\t\t\t\t// look in added bundles\n\t\t\t\tfor (int i = 0; i < bundles.size(); i++) {\n\t\t\t\t\tResourceBundle bundle = bundles.get(i);\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn bundle.getString(key);\n\t\t\t\t\t} catch (MissingResourceException mre) {\n\t\t\t\t\t\t// resource not found\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// key unkown\n\t\t\treturn '!' + key + '!';\n\t\t}\n\t}", "String resourceType();", "public static String getResourceString(String key)\n {\n ResourceBundle bundle = XMLPlugin.getDefault().getResourceBundle();\n\n try\n {\n return bundle.getString(key);\n }\n catch (MissingResourceException e)\n {\n return key;\n }\n }", "private List<String> readSrc(){\n //daclarations\n InputStream stream;\n List<String> lines;\n String input;\n BufferedReader reader;\n StringBuilder buf;\n\n //Inlezen van bestand\n stream = this.getClass().getResourceAsStream(RESOURCE);\n lines = new LinkedList<>();\n\n // laad de tekst in \n reader = new BufferedReader(new InputStreamReader(stream));\n buf = new StringBuilder();\n\n if(stream != null){\n try{\n while((input = reader.readLine()) != null){\n buf.append(input);\n System.out.println(input);\n lines.add(input);\n }\n } catch(IOException ex){\n System.out.println(ex);// anders schreeuwt hij in mijn gezicht:\n }\n }\n return lines;\n }", "static private String getRawString(String key) {\n try {\n return _resources.getString(key);\n } catch (MissingResourceException mre) {\n return \"Missing resource for: \" + key;\n }\n }", "public String getStringResourceById(int resourceId) {\n \treturn mContext.getResources().getString(resourceId);\n }", "List<Resource> resources();", "public String getString(String abc) {\n\n int resID = getResources().getIdentifier(abc, \"string\", getPackageName());\n\n return getResources().getString(resID);\n }", "public static String getResourceString(String key) {\n \t\tResourceBundle bundle = XSDEditorPlugin.getDefault().getResourceBundle();\n \t\ttry {\n \t\t\treturn (bundle != null) ? bundle.getString(key) : key;\n \t\t} catch (MissingResourceException e) {\n \t\t\treturn key;\n \t\t}\n \t}", "public String getString(String key, Object s1) {\n return MessageFormat.format(Platform.getResourceBundle(getBundle()).getString(key), new Object[]{s1});\n }", "static String readResource(String name) throws IOException {\n InputStream is = Server.class.getResourceAsStream(name);\n String value = new Scanner(is).useDelimiter(\"\\\\A\").next();\n is.close();\n return value;\n }", "Resource getResource();", "public String getString( String key )\n {\n String translation = key;\n\n if ( specificResourceBundle != null )\n {\n try\n {\n translation = specificResourceBundle.getString( key );\n }\n catch ( MissingResourceException ignored )\n {\n }\n }\n\n if ( translation.equals( key ) && globalResourceBundle != null )\n {\n try\n {\n translation = globalResourceBundle.getString( key );\n }\n catch ( MissingResourceException ignored )\n {\n }\n }\n\n return translation;\n }", "static private String getString(String key) {\n try {\n return removeMnemonic(_resources.getString(key));\n } catch (MissingResourceException mre) {\n return \"Missing resource for: \" + key;\n }\n }", "@Override\r\n\tpublic String[] getFormatStrings() {\r\n\t\ttry {\r\n\t\t\treturn getResourceString(KEY_FORMAT_STRINGS).split(\", *\");\r\n\t\t} catch (MissingResourceException mre) {\r\n\t\t\treturn formatStrings;\r\n\t\t}\r\n\t}", "protected String getResourceString(String key)\r\n\t\t\tthrows MissingResourceException {\r\n\t\treturn StripesFilter.getConfiguration().getLocalizationBundleFactory()\r\n\t\t\t\t.getErrorMessageBundle(locale).getString(key);\r\n\t\t\r\n\t}", "public static String getResourceString (String aResourceString)\n {\n String resourceFile = ADMIN_CONSOLE_BUNDLE;\n String str = getResourceString(aResourceString, \"\");\n return str;\n }", "public String getString(int id) {\n return context.getResources().getString(id);\n }", "public static String getString(String key) {\n try {\n return RESOURCE_BUNDLE.getString(key); // Devuelve una entrada de la tabla \n } catch (MissingResourceException e) {\n return '!' + key + '!';\n }\n }", "public String getResourceName() {\n return getBaseName() + getNameSuffix();\n }", "String getString(String bundleKey, String bundleBaseName);", "private static String p_readFromResource(String path) {\n StringBuffer content = new StringBuffer();\n\n InputStream istream = NamedTemplate.class.getResourceAsStream(path);\n\n if (istream != null) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(istream));\n\n try {\n String line = reader.readLine();\n while (line != null) {\n content.append(line).append(\"\\n\");\n\n line = reader.readLine();\n }\n } catch (IOException e) {\n logger.error(\"NamedTemplate: unable to read template from \" + path, e);\n }\n } else {\n return null;\n }\n\n return content.toString();\n }", "public static String getString(String key) {\n\t\ttry {\n\t\t\treturn RESOURCE_BUNDLE.getString(key);\n\t\t} catch (MissingResourceException e) {\n\t\t\treturn '!' + key + '!';\n\t\t}\n\t}", "java.lang.String getResourceUri();", "public static String readTemplate(Class c, String resourceName)\n {\n InputStream stream = c.getResourceAsStream(resourceName);\n Scanner sc = new Scanner(stream);\n String text = sc.useDelimiter(\"\\\\A\").next();\n sc.close();\n try {\n stream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return text;\n }", "private Resources getLocalizedResources(Context context) {\n Configuration conf = context.getResources().getConfiguration();\n conf = new Configuration(conf);\n conf.setLocale(new Locale(LocaleHelper.getLocaleCode(context)));\n Context localizedContext = context.createConfigurationContext(conf);\n return localizedContext.getResources();\n }", "public interface StringMapResource<V> extends SharedResourceObject, Iterable<String> {\n /**\n * Return the mapped value V for a given key.\n * \n * @param key to fetch the value V for\n * @return the value V mapped to the key\n */\n public V get(String key);\n\n /**\n * Check if the given key exists.\n * \n * @param key to check\n * @return <code>true</code> if the key is known to the resource\n */\n public boolean containsKey(String key);\n \n /**\n * Return the number of keys.\n * \n * @return the number of keys known by this resource.\n */\n public int size();\n\n /**\n * Fetch an iterator for the keys.\n * \n * @return a key iterator\n */\n public Iterator<String> iterator();\n\n /**\n * Get the name of this resource.\n * \n * @return resource name\n */\n public String getResourceName();\n\n /**\n * Get the URL or URI of this resource.\n * \n * @return the resource URL string or <code>null</code>\n */\n public String getUrl();\n}", "String getLocalization();", "final String[] getResourceStringArray(final int id) {\n String[] retArray = getArrayStringResource(id);\n return retArray;\n }", "private String readResource(String name) throws IOException {\n ClassLoader cl = Thread.currentThread().getContextClassLoader();\n try (InputStream in = cl.getResourceAsStream(name)) {\n return new String(EncodingUtils.readAll(in), StandardCharsets.US_ASCII);\n }\n }", "public List<String> getResources() {\n return resources;\n }", "public String getResourceName(String ref){\n\t\treturn getResourceName(ref, true);\n\t}", "CharSequence getResourceText(int ident) {\n\t\tTypedValue tmpValue = mValue;\n\t\tint block = loadResourceValue(ident, tmpValue, true);\n\t\tif (block >= 0) {\n\t\t\tif (tmpValue.type == TypedValue.TYPE_STRING) {\n\t\t\t\treturn mStringBlocks[block].get(tmpValue.data);\n\t\t\t}\n\t\t\treturn tmpValue.coerceToString();\n\t\t}\n\t\treturn null;\n\t}", "private static synchronized ResourceBundle getBundle() throws IdealException {\n if (stringBundle == null) {\n if (Util.log.isDebugEnabled())\n Util.log.debug(\" Initialising Strings\");\n try {\n String bundleName = Strings.class.getPackage().getName().replace('.', '/') + \"/strings\";\n stringBundle = ResourceBundle.getBundle(bundleName);\n } catch (Exception e) {\n IdealException ex = new IdealException(ErrorCodes.IMEXME01, \"Unable to load string catalog.\", e);\n ex.setSuggestedAction(\"Distribution is corrupt, redownload from the idealdesk. \");\n throw ex;\n }\n }\n return stringBundle;\n }", "public String getString(String key)\r\n {\r\n debug(\"getString(\" + key + \") - retrieving Key...\");\r\n String value = null;\r\n try\r\n {\r\n value = getResourceBundle().getString(key);\r\n }\r\n catch (MissingResourceException e)\r\n {\r\n System.out.println(\"java.util.MissingResourceException: \" + \"Couldn't find value for: \" + key);\r\n }\r\n if (value == null)\r\n {\r\n value = \"Could not find resource: \" + key + \" \";\r\n }\r\n debug(\"getString(\" + key + \") - value ==> \" + value);\r\n debug(\"getString(\" + key + \") - retrieving Key...Done\");\r\n return value;\r\n }", "protected abstract String getXmppConfigResources();", "public static I18NBundle getStrings() {\n\t\treturn strings;\n\t}", "private void loadResourcesData(){\n //showResourceListView();\n\n String [] resourceData = new String [20];\n\n for(int stringCount = 1; stringCount <= 20; stringCount++) {\n resourceData[stringCount - 1] = \"Title \" + stringCount;\n }\n\n mResourceListAdapter.setResourceData(resourceData);\n }", "private String getResourceName(String resourceId)\n/* */ {\n/* 1165 */ HashMap<String, String> managedObject = (HashMap)this.managedObjectVsResourceIdMap.get(resourceId);\n/* 1166 */ StringBuffer toReturn = new StringBuffer();\n/* 1167 */ String type = (String)managedObject.get(\"TYPE\");\n/* 1168 */ if ((!\"HAI\".equals(type)) && (!this.monitors.contains(resourceId)))\n/* */ {\n/* 1170 */ toReturn.append(\"\\\"\").append(getParentResourceDisplayname(resourceId)).append(\"\\\"\").append(\",\");\n/* */ }\n/* 1172 */ else if ((!\"HAI\".equals(type)) && (this.monitors.contains(resourceId)))\n/* */ {\n/* 1174 */ toReturn.append(\",\");\n/* */ }\n/* 1176 */ toReturn.append(\"\\\"\").append((String)managedObject.get(\"DISPLAYNAME\")).append(\"\\\"\");\n/* 1177 */ return toReturn.toString();\n/* */ }", "public String getStringResource(LocaleResource resource){\n\t\tContext c = ConnectedApp.getContextStatic();\n\t\tswitch(resource){\t\t\n\t\tcase support_contact:\n default:\n\t\t\tint resId= c.getResources().getIdentifier(resource.toString()+\"_\"+ getCountryCode().toLowerCase(Locale.US), \"string\",\n\t\t\t\t\tc.getPackageName());\n\t\t\treturn c.getString(resId);\n\t\t}\n\t\t//return null;\n\t}", "public static String getResourceString(String key) {\r\n\t\tResourceBundle bundle = APLDebugCorePlugin.getDefault().getResourceBundle();\r\n\t\ttry {\r\n\t\t\treturn (bundle != null) ? bundle.getString(key) : key;\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\treturn key;\r\n\t\t}\r\n\t}", "public String getResourceName() {\n\treturn this.resrcName;\n }", "public interface IResourceSource\n{\n /**\n * Get resource location based on resource name.\n *\n * @param name Name of resource to be searched\n * @return URL of resource\n */\n public URL getResourceLocation( String name );\n\n /**\n * Get resource locations based on resource name.\n *\n * @param name Name of resources to be searched\n * @return Enumeration of URLs of resources\n */\n public Enumeration getResourceLocations( String name );\n\n /**\n * Get resource path this resource source references. Each entry including the last must be\n * terminated with a semicolon.\n *\n * @return Resource path this resource source references\n */\n public String getResourcePath();\n}", "public static String getString(String key) {\r\n\t\ttry {\r\n\t\t\treturn resourceBundle.getString(key);\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\tlogger.error(\"Unable to find key \" + key);\r\n\t\t\treturn '!' + key + '!';\r\n\t\t}\r\n\t}", "ResourceType getResource();", "String getResourceType();", "public String getResourceName() {\n return this.resourceName;\n }", "public String getLocalizedString( String name ) {\n\t\tString outString = \"\";\r\n\t\tint id = getResources().getIdentifier( name, \"string\", getPackageName() );\r\n\t\tif ( id == 0 )\r\n\t\t{\r\n\t\t\t// 0 is not a valid resource id\r\n\t\t\tLog.v(\"VrLocale\", name + \" is not a valid resource id!!\" );\r\n\t\t\treturn outString;\r\n\t\t} \r\n\t\tif ( id != 0 ) \r\n\t\t{\r\n\t\t\toutString = getResources().getText( id ).toString();\r\n\t\t\t//Log.v(\"VrLocale\", \"getLocalizedString resolved \" + name + \" to \" + outString);\r\n\t\t}\r\n\t\treturn outString;\r\n\t}", "protected String getString(String key) {\r\n\t\ttry {\r\n\t\t\tResourceBundle bundle = ResourceBundle.getBundle(bundleName);\r\n\t\t\treturn bundle.getString(key);\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static String getString(JTEResourceType stringName) {\r\n rb = ResourceBundle.getBundle(PropertiesManager.getPropertiesManager().\r\n getProperty(JTEPropertyType.RESOURCE_LOCATION));\r\n return rb.getString(stringName.toString());\r\n }", "public List<String> getDistinctResourceName(){\n\t\treturn jtemp.queryForList(\"SELECT DISTINCT resource_type_id||resource_name FROM resources\", String.class);\n\t}", "String getCharacterVDBResource(String resourcePath) throws Exception;", "private static String readResource(String resource) {\n String sresults = \"\";\n String sparql = \"SELECT DISTINCT *\\n\"\n + \"WHERE {\\n\"\n + \" GRAPH ?g {\\n\"\n + \" <\" + resource + \"> ?p ?o\\n\"\n + \" }\\n\"\n + \"}\";\n\n Query query = QueryFactory.create(sparql);\n String endpoint = \"http://localhost:3030/RDFChess/query\";\n QueryExecution qexec = QueryExecutionFactory.sparqlService(endpoint, query);\n// QueryExecution qexec = QueryExecutionFactory.create(query, model);\n ResultSet results = qexec.execSelect();\n for (; results.hasNext();) {\n QuerySolution soln = results.nextSolution();\n Resource p = soln.getResource(\"p\"); // Get a result variable by name.\n RDFNode o = soln.get(\"o\"); // Get a result variable - must be a resource\n String so = \"\";\n if (o.isLiteral()) {\n so = \"\\\"\" + o.toString() + \"\\\"\";\n } else {\n so = \"<\" + o.toString() + \">\";\n }\n\n sresults += \"<\" + resource + \"> <\" + p.toString() + \"> \" + so + \" . \\n\";\n }\n\n return sresults;\n }", "public static String getString(String key) throws MissingResourceException {\n\t\treturn resourceBundle.getString(key);\n\t}", "public static String getResourceString(String key) {\n ResourceBundle bundle = IvyPlugin.getDefault().getResourceBundle();\n try {\n return (bundle != null) ? bundle.getString(key) : key;\n } catch (MissingResourceException e) {\n return key;\n }\n }", "public static String getResourceString(String aResourceFile,\n String aResourceString,\n String aDefaultString) \n {\n Locale loc = FacesContext.getCurrentInstance().getViewRoot().getLocale();\n String result = null;\n String resourceString = \"\";\n if (aResourceString == null)\n {\n resourceString = aDefaultString.trim();\n }\n else\n {\n resourceString = aResourceString.trim();\n }\n if (resourceString.length() > 0)\n {\n try\n {\n ResourceBundle resource = ResourceBundle.getBundle(aResourceFile, loc);\n result = resource.getString(resourceString);\n }\n catch (java.util.MissingResourceException e)\n {\n result = resourceString;\n }\n }\n\n return result;\n }", "public static String getString(String key) {\r\n\t\ttry {\r\n\t\t\treturn RESOURCE_BUNDLE.getString(key);\r\n\t\t} catch (MissingResourceException e) {\r\n\t\t\treturn \"Message retrieval error, please notify an administrator.\";\r\n\t\t}\r\n\t}", "String getString(String bundleKey, String bundleBaseName, Locale locale);", "protected String getResourceName() {\n\t\treturn resourceName;\n\t}", "public static String getStringInRcse(int resourceId) {\n Resources resource = null;\n String string = null;\n try {\n resource =\n AndroidFactory.getApplicationContext().getPackageManager()\n .getResourcesForApplication(CoreApplication.APP_NAME);\n } catch (android.content.pm.PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n }\n if (null != resource) {\n string = resource.getString(resourceId);\n } else {\n Logger.e(TAG, \"getStringInRcse(), resource is null!\");\n }\n return string;\n }", "public static String getString(Context context, String name)\n\t{\n\t\treturn context.getResources().getString(RR.getStringId(name));\n\t}", "public static String getResource(String inResName) {\n\n return stringFromInputStream(getStream(inResName));\n\n }", "public IPath[] getAdditionalResources();", "public String getResourceName() {\n return resourceName;\n }", "public List<IResource> getResources();", "public String getStringContent() throws IOException;", "@Override\n\tpublic Vector<String[]> getResourceList() throws RemoteException {\n\t\tVector<String[]> resourceList = new Vector<String[]>();\n\t\tfor (Resource singleResource : resourceModel.getResources()) {\n\t\t\tresourceList.add(singleResource.toArrayStrings());\n\t\t}\n\t\treturn resourceList;\n\t}", "String encodeResourceToString(IBaseResource theResource) throws DataFormatException;", "public java.lang.String getResourceNames(int index) {\n return resourceNames_.get(index);\n }", "public String getRes(){\r\n \r\n String resName = \"\";\r\n return resName;\r\n }", "public String getS(String name){\t\n\t\t\n\t\tString packageName = activity.getPackageName();\n\t\tint resId = activity.getResources().getIdentifier(name, \"string\", packageName);\n\t\treturn activity.getString(resId);\n\t\t \n\t}", "String getString(String bundleKey);", "public String getStringFile(){\n return fileView(file);\n }", "public static String getString(String key) {\n\t\ttry {\n\t\t\tResourceBundle bundle = Beans.isDesignTime() ? loadBundle() : RESOURCE_BUNDLE;\n\t\t\treturn bundle.getString(key);\n\t\t} catch (MissingResourceException e) {\n\t\t\treturn key;\n\t\t}\n\t}", "public int getContents( Resource.Type type );", "public static String getFileInput( String resource ){\t\n\t\tString input = new String();\n\t\t\n\t\ttry { // try to catch all errors\n\t\t\t// get file path to resource\n\t\t\tString resourcePath = getResourcePath( resource );\n\t\t\t\n\t\t\t// create path object to file\n\t\t\tPath path = FileSystems.getDefault().getPath( resourcePath );\n\t\t\t\n\t\t\t// read all lines use java-7-Files to read in an efficient way\n\t\t\tList<String> inputLines = Files.readAllLines( path, Charsets.UTF_8 );\n\t\t\t\n\t\t\t// organize lines into string\n\t\t\tfor ( String line : inputLines ) {\n\t\t\t\tinput += line + \"\\n\";\n\t\t\t}\n\t\t} catch ( IllegalArgumentException iae ) { // cannot found file\n\t\t\tSystem.err.println( \"No resources found at: \" + resource );\n\t\t\tiae.printStackTrace();\n\t\t} catch ( IllegalStateException ise ) { // cannot walk through directory tree\n\t\t\tSystem.err.println( \"Cannot get resources from: \" + resource );\n\t\t\tSystem.err.println();\n\t\t\tise.printStackTrace();\n\t\t} catch ( SecurityException se ) { // absence of rights to read from file\n\t\t\tSystem.err.println( \"You need the rights to read from file: \" + resource );\n\t\t\tSystem.err.println();\n\t\t\tse.printStackTrace();\n\t\t} catch ( IOException ioe ) { // cannot read from file\n\t\t\tSystem.err.println( \"An error has occurred. Cannot read from file: \" + resource );\n\t\t\tSystem.err.println();\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\t\n\t\t// return input\n\t\treturn input;\n\t}", "private String getLocalizedString(String key) {\n\t\treturn new StringResourceModel(key, null).getObject();\n\t}", "public String getResourceName() {\n return resourceName;\n }", "public String readResource(String resourcePath) throws IOException {\n InputStream resourceStream = this.getClass().getResourceAsStream(resourcePath);\n StringBuilder builder = new StringBuilder();\n int ch;\n while ((ch = resourceStream.read()) != -1) {\n builder.append((char) ch);\n }\n return builder.toString();\n }", "abstract public String asString(final A resource);", "protected static String m94909a(Context context, int i) {\n return context.getResources().getString(i);\n }", "public java.lang.String getResourceNames(int index) {\n return resourceNames_.get(index);\n }", "private static ResourceBundle getResourceBundleFor(String text) {\n ResourceBundle ret;\n\n String bundle = text.split(\"\\\\.\")[0];\n\n if (\"game\".equals(bundle)) {\n ret = AppText.gameText;\n } else if (\"menu\".equals(bundle)) {\n ret = AppText.menuText;\n } else {\n ret = AppText.globalText;\n }\n\n return ret;\n }", "public static String getLabelBundle(String key){\r\n \tFacesContext context = FacesContext.getCurrentInstance();\r\n \tResourceBundle bundle = context.getApplication().getResourceBundle(context, Constantes.RESOURCE_BUNDLE_VAR);\r\n \treturn bundle.getString(key);\r\n }", "public static void updateStrings() {\n String pathName;\n switch (Parameters.getLanguage()) {\n case ENGLISH:\n default:\n pathName = englishStringPath;\n break;\n case SPANISH:\n pathName = spanishStringPath;\n break;\n case CATALAN:\n pathName = catalanStringPath;\n break;\n }\n updateStrings(pathName);\n }", "public String loadJSONFromAsset() {\n String json;\n String file = \"assets/words.json\";\n\n try {\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(file);\n int size = is.available();\n byte[] buffer = new byte[size];\n is.read(buffer);\n is.close();\n json = new String(buffer, \"UTF-8\");\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return json;\n }", "@Override\n public Resources getResources() {\n //Set font size, language\n return super.getResources();\n }", "public static String getString(Context context,int resID){\n\t\treturn context.getResources().getString(resID);\n\t}", "java.lang.String getContents();", "java.lang.String getContents();", "@Override\r\n public String toString()\r\n {\r\n return \"baseResource=[\" + baseResource_ + \"], subResource=[\"\r\n + subResource_ + \"]\";\r\n }" ]
[ "0.7170699", "0.6908196", "0.68185365", "0.6785714", "0.6580166", "0.6568885", "0.65036434", "0.64395237", "0.62951154", "0.6279921", "0.62674445", "0.6246266", "0.6211847", "0.61815256", "0.6173814", "0.61436456", "0.6140101", "0.6139906", "0.6127028", "0.61265045", "0.61247516", "0.61112094", "0.6104405", "0.6090937", "0.6059139", "0.60424906", "0.6037549", "0.6013167", "0.5997132", "0.5986986", "0.59852475", "0.59812677", "0.59629446", "0.59596413", "0.595571", "0.5952283", "0.59482545", "0.59475726", "0.5937851", "0.593635", "0.59226334", "0.59160584", "0.5915157", "0.5913875", "0.5913093", "0.5912159", "0.59099966", "0.59031963", "0.5892106", "0.5878503", "0.5876366", "0.58752704", "0.58738595", "0.58729714", "0.586969", "0.5865905", "0.5855729", "0.5854851", "0.58545643", "0.58529234", "0.58526266", "0.5851572", "0.5839065", "0.5832091", "0.58308345", "0.58225834", "0.582194", "0.58217716", "0.5816656", "0.5811316", "0.58109266", "0.58090276", "0.5806418", "0.5806391", "0.579156", "0.5787875", "0.57593995", "0.5758585", "0.57585526", "0.5751651", "0.57450217", "0.57253766", "0.57210803", "0.5715794", "0.57141465", "0.5708268", "0.570805", "0.57068104", "0.57034844", "0.57010597", "0.568495", "0.5681817", "0.56770295", "0.5659642", "0.5659364", "0.5652578", "0.56302637", "0.56300926", "0.5625117", "0.5625117", "0.5618176" ]
0.0
-1
this method caculate result of handshake by reculsively
public static int handShake(int n) { if (n == 0) { return 1; } else { return n * handShake(n - 1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void handshake() {\n Log.d(TAG, \"handshake: called\");\n\n if (takeBertyService()) {\n if (takeBertyCharacteristics()) {\n // Speed up connection\n requestMtu(PeerDevice.MAX_MTU);\n\n // send local PID\n if (!write(getPIDCharacteristic() ,mLocalPID.getBytes(), true)) {\n Log.e(TAG, String.format(\"handshake error: failed to send local PID: device=%s\", getMACAddress()));\n disconnect();\n }\n\n // get remote PID\n if (!read(getPIDCharacteristic())) {\n Log.e(TAG, String.format(\"handshake error: failed to read remote PID: device=%s\", getMACAddress()));\n disconnect();\n }\n\n return ;\n }\n }\n Log.e(TAG, String.format(\"handshake error: failed to find berty service: device=%s\", getMACAddress()));\n disconnect();\n }", "@Override\n protected void prepareHandshakeMessageContents() {\n }", "private void doHandshake()throws Exception {\n\t\tHttpClient httpClient = new HttpClient();\n\t\t// Here set up Jetty's HttpClient, for example:\n\t\t// httpClient.setMaxConnectionsPerDestination(2);\n\t\thttpClient.start();\n\n\t\t// Prepare the transport\n\t\tMap<String, Object> options = new HashMap<String, Object>();\n\t\tClientTransport transport = new LongPollingTransport(options, httpClient);\n\n\t\t// Create the BayeuxClient\n\t\tClientSession client = new BayeuxClient(\"http://localhost:8080/childrenguard-server/cometd\", transport);\n\n\t\tclient.handshake(null,new ClientSessionChannel.MessageListener()\n\t\t{\n\t\t public void onMessage(ClientSessionChannel channel, Message message)\n\t\t {\n\t\t \tSystem.out.println(\"fail to connect to server.\");\n\t\t if (message.isSuccessful())\n\t\t {\n\t\t \tSystem.out.println(message);\n\t\t // Here handshake is successful\n\t\t }\n\t\t }\n\t\t});\n\t\t\n\t\t// Here set up the BayeuxClient, for example:\n\t\t//client.getChannel(Channel.META_CONNECT).addListener(new ClientSessionChannel.MessageListener() { });\n\n\t\t\n\t}", "private void handshakeRes(ClientMessageUnpacker unpacker, ProtocolVersion proposedVer)\n throws IgniteClientConnectionException, IgniteClientAuthenticationException {\n try (unpacker) {\n ProtocolVersion srvVer = new ProtocolVersion(unpacker.unpackShort(), unpacker.unpackShort(),\n unpacker.unpackShort());\n\n var errCode = unpacker.unpackInt();\n\n if (errCode != ClientErrorCode.SUCCESS) {\n var msg = unpacker.unpackString();\n\n if (errCode == ClientErrorCode.AUTH_FAILED)\n throw new IgniteClientAuthenticationException(msg);\n else if (proposedVer.equals(srvVer))\n throw new IgniteClientException(\"Client protocol error: unexpected server response.\");\n else if (!supportedVers.contains(srvVer))\n throw new IgniteClientException(String.format(\n \"Protocol version mismatch: client %s / server %s. Server details: %s\",\n proposedVer,\n srvVer,\n msg\n ));\n else { // Retry with server version.\n handshake(srvVer);\n }\n\n throw new IgniteClientConnectionException(msg);\n }\n\n var featuresLen = unpacker.unpackBinaryHeader();\n unpacker.skipValue(featuresLen);\n\n var extensionsLen = unpacker.unpackMapHeader();\n unpacker.skipValue(extensionsLen);\n\n protocolCtx = protocolContextFromVersion(srvVer);\n }\n }", "void handshake() throws SyncConnectionException;", "public HandShakeMessage(){\r\n\t\tthis.type = OperationCodeConstants.HANDSHAKE;\r\n\t\tthis.msg = BinaryHelper.shortToByte(type);\r\n\t}", "@Override\n protected void connectionEstablished()\n {\n peer.resetConnectionClosed();\n\n // send our handshake directly as it doesn't fit into peer message\n // and there is always space in send buffer on new connection\n //enqueue(pmCache.handshake(torrent.getTorrentId(), torrent.getClientId()));\n }", "@Override\n\tpublic void handshakeCompleted(HandshakeCompletedEvent evt) {\n\t\t\n\t}", "public void setHandshake(Handshake handshake)\n {\n this.handshake = handshake;\n }", "private void handshake() {\n JsonNode helloResponse = this.readNextResponse();\n\n if (!helloResponse.has(\"hello\")) {\n throw new JsiiError(\"Expecting 'hello' message from jsii-runtime\");\n }\n\n String runtimeVersion = helloResponse.get(\"hello\").asText();\n assertVersionCompatible(JSII_RUNTIME_VERSION, runtimeVersion);\n }", "public final HandshakeStatus getHandshakeStatus() {\n/* 209 */ return this.handshakeStatus;\n/* */ }", "private void handshake() {\n JsonNode helloResponse = this.readNextResponse();\n\n if (!helloResponse.has(\"hello\")) {\n throw new JsiiException(\"Expecting 'hello' message from jsii-runtime\");\n }\n\n String runtimeVersion = helloResponse.get(\"hello\").asText();\n assertVersionCompatible(JSII_RUNTIME_VERSION, runtimeVersion);\n }", "public Handshake()\n\t{\n\t this(-1);\n\t}", "@Override\n protected void handshakeCompleted()\n {\n if (0 < torrent.pieces.cardinality()) {\n enqueue(pmCache.bitfield((int)torrent.metainfo.pieces, torrent.pieces));\n }\n\n /*\n todo\n if (client.node != null) {\n pc.enqueue(StdPeerMessage.port(client.node.port));\n }\n */\n }", "private void shakeHands() throws IOException {\n HttpRequest req = new HttpRequest(inputStream);\n String requestLine = req.get(HttpRequest.REQUEST_LINE);\n handshakeComplete = checkStartsWith(requestLine, \"GET /\")\n && checkContains(requestLine, \"HTTP/\")\n && req.get(\"Host\") != null\n && checkContains(req.get(\"Upgrade\"), \"websocket\")\n && checkContains(req.get(\"Connection\"), \"Upgrade\")\n && \"13\".equals(req.get(\"Sec-WebSocket-Version\"))\n && req.get(\"Sec-WebSocket-Key\") != null;\n String nonce = req.get(\"Sec-WebSocket-Key\");\n if (handshakeComplete) {\n byte[] nonceBytes = BaseEncoding.base64().decode(nonce);\n if (nonceBytes.length != HANDSHAKE_NONCE_LENGTH) {\n handshakeComplete = false;\n }\n }\n // if we have met all the requirements\n if (handshakeComplete) {\n outputPeer.write(asUTF8(\"HTTP/1.1 101 Switching Protocols\\r\\n\"));\n outputPeer.write(asUTF8(\"Upgrade: websocket\\r\\n\"));\n outputPeer.write(asUTF8(\"Connection: upgrade\\r\\n\"));\n outputPeer.write(asUTF8(\"Sec-WebSocket-Accept: \"));\n HashFunction hf = Hashing.sha1();\n HashCode hc = hf.newHasher()\n .putString(nonce, StandardCharsets.UTF_8)\n .putString(WEBSOCKET_ACCEPT_UUID, StandardCharsets.UTF_8)\n .hash();\n String acceptKey = BaseEncoding.base64().encode(hc.asBytes());\n outputPeer.write(asUTF8(acceptKey));\n outputPeer.write(asUTF8(\"\\r\\n\\r\\n\"));\n }\n outputPeer.setHandshakeComplete(handshakeComplete);\n }", "@Override\r\n\tpublic void run() {\r\n\t\ttry {\r\n\t\t\tthis.inputStream = socket.getInputStream();\r\n\t\t\tthis.outputStream = socket.getOutputStream();\r\n\t\t\t// Get the peer that is asking me for fragments.\r\n\t\t\tpeerState = torrentClient.getPeerStateList().getByAddress(\r\n\t\t\t\t\tsocket.getInetAddress().getHostAddress(), socket.getPort());\r\n\t\t\t// read handhake\r\n\t\t\tbyte[] received = new byte[68];\r\n\t\t\tinputStream.read(received);\r\n\t\t\t//Parse the handshake received\r\n\t\t\tHandsake handshakeMessage = Handsake\r\n\t\t\t\t\t.parseStringToHandsake(new String(received));\r\n\t\t\t// validate hash\r\n\t\t\tString torrentHash = new String(torrentClient.getMetainf()\r\n\t\t\t\t\t.getInfo().getInfoHash());\r\n\t\t\t//if the received handshake is correct send my handshake\r\n\t\t\tif (Handsake.isValidHandsakeForBitTorrentProtocol(handshakeMessage,\r\n\t\t\t\t\ttorrentHash)) {\r\n\t\t\t\t// send handshake\r\n\t\t\t\tHandsake handShakeToSend = new Handsake(torrentHash,\r\n\t\t\t\t\t\tthis.torrentClient.getPeerId());\r\n\t\t\t\tthis.outputStream.write(handShakeToSend.getBytes());\r\n\t\t\t\t// enviar bitfield\r\n\t\t\t\ttry {\r\n\t\t\t\t\tthis.sendBitfield();\r\n\t\t\t\t\t// leer\r\n\t\t\t\t\tPeerProtocolMessage message = this.readNormalMessage();\r\n\t\t\t\t\t// Check if I have received an interested message\r\n\t\t\t\t\tif (message.getType().equals(\r\n\t\t\t\t\t\t\tPeerProtocolMessage.Type.INTERESTED)) {\r\n\t\t\t\t\t\tif (this.peerState != null) {\r\n\t\t\t\t\t\t\tpeerState = torrentClient.getPeerStateList()\r\n\t\t\t\t\t\t\t\t\t.getByAddress(\r\n\t\t\t\t\t\t\t\t\t\t\tsocket.getInetAddress()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getHostAddress(),\r\n\t\t\t\t\t\t\t\t\t\t\tsocket.getPort());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//Set the peer status\r\n\t\t\t\t\t\tif (this.peerState != null) {\r\n\t\t\t\t\t\t\tthis.peerState.setPeer_interested(true);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// send unchoke to the peer\r\n\t\t\t\t\t\tthis.outputStream.write(new UnChokeMsg().getBytes());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//set the peer status\r\n\t\t\t\t\t\tif (this.peerState != null) {\r\n\t\t\t\t\t\t\tthis.peerState.setAm_choking(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Continue receiveing messages if the message type is Keep_alive, Request or Have.\r\n\t\t\t\t\t\tboolean continueReading = true;\r\n\t\t\t\t\t\twhile (continueReading) {\r\n\t\t\t\t\t\t\tmessage = this.readNormalMessage();\r\n\t\t\t\t\t\t\tcontinueReading = processMessage(message);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// if I have not received interested send unchoke\r\n\t\t\t\t\t\tthis.outputStream.write(new ChokeMsg().getBytes());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// close connection\r\n\t\t\tthis.inputStream.close();\r\n\t\t\tthis.outputStream.close();\r\n\t\t\tsocket.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"Sending thread closed\");\r\n\t\t\te.printStackTrace();\r\n\t\t\ttry {\r\n\t\t\t\tthis.inputStream.close();\r\n\t\t\t\tthis.outputStream.close();\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private SSLEngineResult.HandshakeStatus doTasks() {\r\n\r\n Runnable runnable;\r\n\r\n /*\r\n * We could run this in a separate thread, but do in the current for now.\r\n */\r\n while ((runnable = tlsEngine.getDelegatedTask()) != null) {\r\n runnable.run();\r\n }\r\n return tlsEngine.getHandshakeStatus();\r\n }", "boolean onHandshakeResponse(\n HttpMessage httpMessage,\n Socket inSocket,\n @SuppressWarnings(\"deprecation\") ZapGetMethod method);", "@Test\n\tpublic void testHandshakesExecuted() throws KeyManagementException, NoSuchAlgorithmException, IOException {\n\t\tExperimentalTrustManager handler = new ExperimentalTrustManager();\n\t\tinitContext(handler);\n\t\tURL fbUrl = new URL(\"https://www.facebook.com\");\n\t\tHttpsURLConnection con = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Firstime handshake should occur\", 1, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tcon = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Second handshake didn't occur because of shared ssl session\", 1, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tURL ytUrl = new URL(\"https://www.youtube.com/\");\n\t\tcon = createConnection(ytUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Connection to other location is in other ssl session so handshage occurs\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tcon = createConnection(ytUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Seccond session is also shared - no handshake\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\t// once again try first connection if session was forgotten or not\n\t\tcon = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"First session is still valid - no handshage\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t}", "public void test() throws IOException {\n SocketChannel socketChannel = SocketChannel.open();\n socketChannel.configureBlocking(false);\n socketChannel.connect(new InetSocketAddress(BuildConfig.API_URL, ServerIP.PORT));\n\n// Complete connection\n while (!socketChannel.finishConnect()) {\n // do something until connect completed\n }\n\n// Create byte buffers to use for holding application and encoded data\n SSLSession session = sslEngine.getSession();\n ByteBuffer myAppData = ByteBuffer.allocate(session.getApplicationBufferSize());\n ByteBuffer myNetData = ByteBuffer.allocate(session.getPacketBufferSize());\n ByteBuffer peerAppData = ByteBuffer.allocate(session.getApplicationBufferSize());\n ByteBuffer peerNetData = ByteBuffer.allocate(session.getPacketBufferSize());\n\n// Do initial handshake\n// doHandshake(socketChannel, sslEngine, myNetData, peerNetData);\n\n myAppData.put(\"hello\".getBytes());\n myAppData.flip();\n\n while (myAppData.hasRemaining()) {\n // Generate SSL/TLS encoded data (handshake or application data)\n SSLEngineResult res = sslEngine.wrap(myAppData, myNetData);\n\n // Process status of call\n if (res.getStatus() == SSLEngineResult.Status.OK) {\n myAppData.compact();\n\n // Send SSL/TLS encoded data to peer\n while(myNetData.hasRemaining()) {\n int num = socketChannel.write(myNetData);\n if (num == 0) {\n // no bytes written; try again later\n }\n }\n }\n\n // Handle other status: BUFFER_OVERFLOW, CLOSED\n }\n\n // Read SSL/TLS encoded data from peer\n int num = socketChannel.read(peerNetData);\n if (num == -1) {\n // The channel has reached end-of-stream\n } else if (num == 0) {\n // No bytes read; try again ...\n } else {\n // Process incoming data\n peerNetData.flip();\n SSLEngineResult res = sslEngine.unwrap(peerNetData, peerAppData);\n\n if (res.getStatus() == SSLEngineResult.Status.OK) {\n peerNetData.compact();\n\n if (peerAppData.hasRemaining()) {\n // Use peerAppData\n }\n }\n // Handle other status: BUFFER_OVERFLOW, BUFFER_UNDERFLOW, CLOSED\n }\n }", "public interface Handshaker {\n /**\n * Performs handshake. This method is blocking. After it has successfully finished, input/output\n * should be ready for normal message-based communication. In case method fails with IOException,\n * input and output are returned in undefined state.\n * @throws IOException if handshake process failed physically (input or output has unexpectedly\n * closed) or logically (if unexpected message came from remote).\n */\n void perform(LineReader input, OutputStream output) throws IOException;\n}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint people = scan.nextInt();\n\t\t\n\t\tlong[] memo = new long[people+1];\n\t\tlong ret = Handshake_memo(people, memo);\n\t\tSystem.out.println(\"Handshake_memo \" + ret + \" cnt \" + cnt);\n\t\tcnt = 0;\n\t\t\n\t\tHashMap<Integer, Long> mem = new HashMap<Integer, Long>();\n\t\tlong result = Handshake(people, mem);\n\t\tSystem.out.println(\"Handshake_hashmap \" + result + \" cnt \" + cnt);\n\t\tcnt = 0;\n\t\t\n\t\t\n\t\t/*\n\t\t\n\t\tbefore = System.currentTimeMillis();\n\t\tlong result = Handshake(people, mem);\n\t\tafter = System.currentTimeMillis();\n\t\tSystem.out.println(result + \" time \" + (after-before) + \" cnt \" + cnt);\n\t\t\n\t\t\n\t\tcnt = 0;\n\t\tSystem.out.println(\"_____________________________\");\n\t\tbefore = System.currentTimeMillis();\n\t\tlong result1 = Handshaking(people);\n\t\tafter = System.currentTimeMillis();\n\t\tSystem.out.println(result1 + \" time \" + (after-before) + \" cnt \" + cnt);*/\n\t\t\n\t\tlong result1 = Handshaking(people);\n\t\tSystem.out.println(\"Handshake normal \"+ result1 + \" cnt \" + cnt);\n\t\t\n\t\tcnt = 0;\n\t\tlong result2 = handShaking_DP(people);\n\t\tSystem.out.println(\"DP \"+ result2 + \" cnt \" + cnt);\n\t\t\n\t\t\n\t\tscan.close();\n\t}", "private void finishConnection(Map<String, String> headers, SelectionKey clientKey)\r\n {\r\n // Local Variable Declaration\r\n String SWSKey;\r\n byte[] rsp; \r\n SocketChannel sc = null; \r\n \r\n try \r\n {\r\n // Get the socketchannel from the key representing the connecting client \r\n sc = (SocketChannel) clientKey.channel();\r\n \r\n // Get the Sec-WebSocketData-Key\r\n SWSKey = headers.get(\"Sec-WebSocket-Key\");\r\n\r\n // Build response header to send to client to complete handshake\r\n rsp = (this.HND_SHK_HDR\r\n + Base64.getEncoder().encodeToString(MessageDigest\r\n .getInstance(\"SHA-1\").digest((SWSKey + this.magicString)\r\n .getBytes(\"UTF-8\"))) + \"\\r\\n\\r\\n\").getBytes(\"UTF-8\");\r\n\r\n // Write the response header back to the connection client. That's it!\r\n sc.write(ByteBuffer.wrap(rsp));\r\n } \r\n catch (IOException ex) \r\n { \r\n ex.printStackTrace();\r\n } \r\n catch (NoSuchAlgorithmException ex) \r\n {\r\n Logger.getLogger(RecptionRoom.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "private byte[] createHandshake(String base64Key) {\n StringBuilder builder = new StringBuilder();\n\n String path = uri.getRawPath();\n String query = uri.getRawQuery();\n\n String requestUri;\n if (query == null) {\n requestUri = path;\n } else {\n requestUri = path + \"?\" + query;\n }\n\n builder.append(\"GET \" + requestUri + \" HTTP/1.1\");\n builder.append(\"\\r\\n\");\n\n String host;\n if (uri.getPort() == -1) {\n host = uri.getHost();\n } else {\n host = uri.getHost() + \":\" + uri.getPort();\n }\n\n builder.append(\"Host: \" + host);\n builder.append(\"\\r\\n\");\n\n builder.append(\"Upgrade: websocket\");\n builder.append(\"\\r\\n\");\n\n builder.append(\"Connection: Upgrade\");\n builder.append(\"\\r\\n\");\n\n builder.append(\"Sec-WebSocket-Key: \" + base64Key);\n builder.append(\"\\r\\n\");\n\n builder.append(\"Sec-WebSocket-Version: 13\");\n builder.append(\"\\r\\n\");\n\n for (Map.Entry<String, String> entry : headers.entrySet()) {\n builder.append(entry.getKey() + \": \" + entry.getValue());\n builder.append(\"\\r\\n\");\n }\n\n builder.append(\"\\r\\n\");\n\n String handshake = builder.toString();\n return handshake.getBytes(Charset.forName(\"ASCII\"));\n }", "private void runCach() throws GeneralSecurityException, IOException {\n byte[] dig = getDig(); // Get the digest of the remote WPC Certificate Chain\n WpcCrtChn chn = getChn(dig); // Search WPC Certificate Chain in the cache\n if (chn == null) { // No WPC Certificate Chain found in the cache?\n chn = getChn(); // Request the WPC Certificate Chain\n mCach.add(chn); // Add Certificate Chain to Certificate cache\n }\n mCom.setChn(chn); // Register used WPC Cartificate chain\n ByteBuffer msg = getAth(); // Create CHALLENGE request\n byte[] res = sndAth(msg); // Send the CHALLENGE Request message\n dig = WpcAthRsp.getSigDig(chn.getDig(), msg.array(), res); // Get the Digest for the challenge\n byte[] sig = Arrays.copyOfRange(res, WpcAthRsp.LEN_ATH, res.length); // Get the signature from the CHALLENGE_AUTH Response\n verify(dig, sig, chn.getPu()); // Verify the signature\n }", "private AppHandShake m10411a(AppHandShake appHandShake, String str) {\n AppResponseJson appResponseJson;\n AppRequestJson appRequestJson = null;\n if (!(appHandShake == null || appHandShake.getRequestJson() == null)) {\n switch (appHandShake.getRequestJson().getTp()) {\n case 0:\n boolean z = !C3608c.m10650c();\n appResponseJson = AppResponseJson.ResponseTypeGeneral(this.f9296e, z ? 1 : 0, Bridgefy.getInstance().getBridgefyClient().getUserUuid());\n break;\n case 1:\n if (!C3608c.m10650c()) {\n appResponseJson = AppResponseJson.ResponseTypeTelephone(null, Bridgefy.getInstance().getBridgefyClient().getUserUuid());\n appResponseJson.setDn(true);\n break;\n } else {\n appResponseJson = AppResponseJson.ResponseTypeTelephone(C3608c.m10654g(), Bridgefy.getInstance().getBridgefyClient().getUserUuid());\n appResponseJson.setDn(false);\n break;\n }\n }\n }\n appResponseJson = null;\n if (!(appHandShake == null || appHandShake.getResponseJson() == null)) {\n switch (appHandShake.getResponseJson().getTp()) {\n case 0:\n if (appHandShake.getResponseJson().getUid() != null) {\n FriendDTO c = this.f9293b.query_friend_dto_by_id(appHandShake.getResponseJson().getUid());\n if (c == null) {\n c = new FriendDTO(appHandShake.getResponseJson().getUid(), appHandShake.getResponseJson().getUn(), null);\n this.f9293b.set_friend_dto(c);\n }\n if (c.getPhoneNumber() == null && appHandShake.getResponseJson().getVrf() != 1) {\n appRequestJson = new AppRequestJson(1, BleHandshake.DEVICE_TYPE);\n break;\n }\n }\n break;\n case 1:\n if (!appHandShake.getResponseJson().isDn()) {\n FriendDTO c2 = this.f9293b.query_friend_dto_by_id(str);\n c2.setPhoneNumber(appHandShake.getResponseJson().getPh());\n this.f9293b.set_friend_dto(c2);\n break;\n } else {\n appResponseJson = AppResponseJson.ResponseTypeHandshakeFinished(str);\n m10413a(str);\n break;\n }\n case 2:\n if (this.f9293b.query_friend_dto_by_id(str) == null) {\n appRequestJson = new AppRequestJson(0, BleHandshake.DEVICE_TYPE);\n break;\n } else {\n m10413a(str);\n return null;\n }\n }\n }\n FriendDTO c3 = this.f9293b.query_friend_dto_by_id(str);\n if (appRequestJson == null && c3 == null) {\n appRequestJson = new AppRequestJson(0, BleHandshake.DEVICE_TYPE);\n } else if (!(c3 == null || ((c3.getPhoneNumber() != null && c3.getPhoneNumber().trim().length() != 0) || appHandShake == null || appHandShake.getResponseJson() == null || appHandShake.getResponseJson().getVrf() == 1 || appHandShake.getResponseJson().isDn()))) {\n appRequestJson = new AppRequestJson(1, BleHandshake.DEVICE_TYPE);\n }\n if (!(appHandShake == null || appHandShake.getRequestJson() != null || appRequestJson != null || appHandShake.getResponseJson() == null || appHandShake.getResponseJson().getTp() == 2)) {\n appResponseJson = AppResponseJson.ResponseTypeHandshakeFinished(str);\n m10413a(str);\n }\n if (appRequestJson == null && appResponseJson == null) {\n appResponseJson = AppResponseJson.ResponseTypeHandshakeFinished(str);\n m10413a(str);\n }\n return new AppHandShake(appRequestJson, appResponseJson);\n }", "@Override\n\tpublic void challenge11() {\n\n\t}", "byte[] clientVerifyHash(String HashType, byte[] mastersecret, byte[] handshakemessages) throws NoSuchAlgorithmException, IOException{\n MessageDigest hasher = MessageDigest.getInstance(HashType);\r\n \r\n int padsize = 1;\r\n \r\n switch(HashType){\r\n case \"MD5\": \r\n padsize = 48;\r\n break;\r\n case \"SHA-1\":\r\n padsize = 40;\r\n break;\r\n }\r\n \r\n byte[] pad1 = new byte[padsize];\r\n byte[] pad2 = new byte[padsize];\r\n \r\n for (int i = 0; i < padsize; i++){\r\n pad1[i] = (0x36);\r\n pad2[i] = (0x5C);\r\n }\r\n \r\n baos.write(handshakemessages);\r\n baos.write(mastersecret);\r\n baos.write(pad1);\r\n \r\n byte[] before_HSM = baos.toByteArray();\r\n byte[] hashedHSM = hasher.digest(before_HSM);\r\n \r\n baos.reset();\r\n \r\n baos.write(mastersecret);\r\n baos.write(pad2);\r\n baos.write(hashedHSM);\r\n \r\n byte[] before_complete = baos.toByteArray();\r\n byte[] whole_hash = hasher.digest(before_complete);\r\n \r\n baos.reset();\r\n \r\n System.out.println(\"This is the client certificate verification: \" + Base64.getEncoder().encodeToString(whole_hash));\r\n \r\n return whole_hash;\r\n }", "private void runSmpl() throws GeneralSecurityException, IOException {\n WpcCrtChn chn = getChn(); // Request the WPC Certificate Chain\n ByteBuffer msg = getAth(); // Create CHALLENGE request\n byte[] res = sndAth(msg); // Send the CHALLENGE Request message\n byte[] dig = WpcAthRsp.getSigDig(chn.getDig(), msg.array(), res); // Get the Digest for the challenge\n byte[] sig = Arrays.copyOfRange(res, WpcAthRsp.LEN_ATH, res.length); // Get the signature from the CHALLENGE_AUTH Response\n verify(dig, sig, chn.getPu()); // Verify the signature\n }", "@Override\n\tpublic void challenge6() {\n\n\t}", "private void _initChallengeResponse() throws InvalidKeyException, SecurityFeaturesException, InvalidChallengeException {\n _requestSessionKey();\n }", "private void runAth1() throws GeneralSecurityException, IOException {\n final ByteBuffer msg = getAth(); // Create CHALLENGE request\n final byte[] res = sndAth(msg); // Send the CHALLENGE Request message\n final byte[] sig = Arrays.copyOfRange(res, WpcAthRsp.LEN_ATH, res.length); // Get the signature from the CHALLENGE_AUTH Response\n if (!verify1(msg.array(), res, sig)) { // Verification of the signature failed?\n final WpcCrtChn chn = getChn(); // Request the WPC Certificate Chain\n final byte[] dig = WpcAthRsp.getSigDig(chn.getDig(), msg.array(), res); // Get the Digest for the challenge\n verify(dig, sig, chn.getPu()); // Verification of the signature failed?\n mCach.add(chn); // Add Certificate Chain to Certificate cache\n }\n }", "@Override\n\tpublic void challenge8() {\n\n\t}", "public Object run()\r\n {\n \tapph.setCertificateHashFilter(certificateHashFilter.replaceAll(\"[^\\\\x00-\\\\x7F]\", \"\"));\r\n \t\r\n \treturn null;\r\n }", "public static javax.net.ssl.HttpsURLConnection m20154a(android.content.Context r7, java.lang.String r8, java.lang.String r9, boolean r10, boolean r11) {\n /*\n r0 = 0;\n if (r11 == 0) goto L_0x0007;\n L_0x0003:\n r8 = com.huawei.android.pushagent.p018c.p027c.C4116f.m20151a(r7, r9, r11);\n L_0x0007:\n if (r8 != 0) goto L_0x0011;\n L_0x0009:\n r1 = \"PushLogAC2712\";\n r2 = \"TRSUrl is null, cannot create connection.\";\n com.huawei.android.pushagent.c.a.e.a(r1, r2);\n L_0x0010:\n return r0;\n L_0x0011:\n r1 = \"PushLogAC2712\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"TRS httpUrl = \";\n r2 = r2.append(r3);\n r2 = r2.append(r8);\n r3 = \",useDefaultPort = \";\n r2 = r2.append(r3);\n r2 = r2.append(r11);\n r2 = r2.toString();\n com.huawei.android.pushagent.c.a.e.a(r1, r2);\n r1 = com.huawei.android.pushagent.p018c.p027c.C4116f.m20156b(r7, r8, r10);\t Catch:{ IOException -> 0x00ee, Exception -> 0x00eb }\n r2 = \"PushLogAC2712\";\n r3 = \"get connection success.\";\n com.huawei.android.pushagent.c.a.e.a(r2, r3);\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n r1.connect();\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n r3 = r1.getOutputStream();\t Catch:{ Exception -> 0x0095, all -> 0x00d8 }\n r2 = com.huawei.android.pushagent.p018c.p027c.C4116f.m20155b(r7, r9);\t Catch:{ Exception -> 0x00f3 }\n r4 = \"UTF-8\";\n r2 = r2.getBytes(r4);\t Catch:{ Exception -> 0x00f3 }\n r3.write(r2);\t Catch:{ Exception -> 0x00f3 }\n r3.flush();\t Catch:{ Exception -> 0x00f3 }\n if (r3 == 0) goto L_0x005a;\n L_0x0057:\n r3.close();\t Catch:{ Exception -> 0x0063, IOException -> 0x006e }\n L_0x005a:\n r2 = \"PushLogAC2712\";\n r3 = \"call conn.connect() success\";\n com.huawei.android.pushagent.c.a.e.a(r2, r3);\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n r0 = r1;\n goto L_0x0010;\n L_0x0063:\n r2 = move-exception;\n r3 = \"PushLogAC2712\";\n r4 = r2.toString();\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n com.huawei.android.pushagent.c.a.e.c(r3, r4, r2);\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n goto L_0x005a;\n L_0x006e:\n r2 = move-exception;\n r6 = r2;\n r2 = r1;\n r1 = r6;\n L_0x0072:\n r3 = \"PushLogAC2712\";\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"connect to TRS cause IOException:\";\n r4 = r4.append(r5);\n r1 = r1.toString();\n r1 = r4.append(r1);\n r1 = r1.toString();\n com.huawei.android.pushagent.c.a.e.d(r3, r1);\n if (r2 == 0) goto L_0x0010;\n L_0x0090:\n r2.disconnect();\n goto L_0x0010;\n L_0x0095:\n r2 = move-exception;\n r3 = r0;\n L_0x0097:\n r4 = \"PushLogAC2712\";\n r5 = r2.toString();\t Catch:{ all -> 0x00f1 }\n com.huawei.android.pushagent.c.a.e.c(r4, r5, r2);\t Catch:{ all -> 0x00f1 }\n if (r3 == 0) goto L_0x005a;\n L_0x00a2:\n r3.close();\t Catch:{ Exception -> 0x00a6, IOException -> 0x006e }\n goto L_0x005a;\n L_0x00a6:\n r2 = move-exception;\n r3 = \"PushLogAC2712\";\n r4 = r2.toString();\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n com.huawei.android.pushagent.c.a.e.c(r3, r4, r2);\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n goto L_0x005a;\n L_0x00b1:\n r2 = move-exception;\n r6 = r2;\n r2 = r1;\n r1 = r6;\n L_0x00b5:\n r3 = \"PushLogAC2712\";\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"connect to TRS cause Exception:\";\n r4 = r4.append(r5);\n r5 = r1.toString();\n r4 = r4.append(r5);\n r4 = r4.toString();\n com.huawei.android.pushagent.c.a.e.c(r3, r4, r1);\n if (r2 == 0) goto L_0x0010;\n L_0x00d3:\n r2.disconnect();\n goto L_0x0010;\n L_0x00d8:\n r2 = move-exception;\n r3 = r0;\n L_0x00da:\n if (r3 == 0) goto L_0x00df;\n L_0x00dc:\n r3.close();\t Catch:{ Exception -> 0x00e0, IOException -> 0x006e }\n L_0x00df:\n throw r2;\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n L_0x00e0:\n r3 = move-exception;\n r4 = \"PushLogAC2712\";\n r5 = r3.toString();\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n com.huawei.android.pushagent.c.a.e.c(r4, r5, r3);\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n goto L_0x00df;\n L_0x00eb:\n r1 = move-exception;\n r2 = r0;\n goto L_0x00b5;\n L_0x00ee:\n r1 = move-exception;\n r2 = r0;\n goto L_0x0072;\n L_0x00f1:\n r2 = move-exception;\n goto L_0x00da;\n L_0x00f3:\n r2 = move-exception;\n goto L_0x0097;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.huawei.android.pushagent.c.c.f.a(android.content.Context, java.lang.String, java.lang.String, boolean, boolean):javax.net.ssl.HttpsURLConnection\");\n }", "private void performHandShake() {\n try {\n boolean OK = false;\n // String rsp= new String( this.defaultComTool.WriteAndRead((String) command.get(\"restore_defaults\")));\n // while(!OK) { }\n this.defaultComTool.WriteAndRead((String) command.get(\"disable_echo\"));\n this.defaultComTool.WriteAndRead((String) command.get(\"disable_linefeed\"));\n this.defaultComTool.WriteAndRead((String) command.get(\"disable_headers\"));\n this.defaultComTool.WriteAndRead((String) command.get(\"disable_spaces\"));\n this.defaultComTool.WriteAndRead((String) command.get(\"protocol auto set\"));\n Thread.sleep(3000);\n\n this.CheckRequiredCommands_Availability(FIRSTLEVEL_CHECK);\n //Thread.sleep(2000);\n\n this.CheckRequiredCommands_Availability(SECONDLEVEL_CHECK);\n for (int i = 1; i < 6; i++) {\n switch (i) {\n case 1:\n if (av_commands[i] == false) {\n Kernel.interfc.sim.log.append(\"WARNING: RPM Reading is NOT SUPPORTED\\n APP forcestopped!!\\n\");\n synchronized (this) {\n Kernel.forcedstopped = true;\n\n }\n\n }\n break;\n case 2:\n if (av_commands[i] == false) {\n Kernel.interfc.sim.log.append(\"WARNING: SPEED Reading is NOT SUPPORTED\\n APP forcestopped!!\\n\");\n synchronized (this) {\n Kernel.forcedstopped = true;\n\n }\n\n }\n break;\n case 3:\n if (av_commands[i] == false) {\n Kernel.interfc.sim.log.append(\"WARNING: COOLANT TEMP Reading is NOT SUPPORTED\\n APP forcestopped!!\\n\");\n synchronized (this) {\n Kernel.forcedstopped = true;\n\n }\n\n }\n break;\n case 4:\n if (av_commands[i] == false) {\n int arbFuel;\n Random rnd = new Random();\n arbFuel = rnd.nextInt(100) + 1;\n Kernel.interfc.sim.log.append(\"WARNING: FUEL LVL Reading is NOT SUPPORTED\\n Arbitrary value (\" + arbFuel + \") set!! \\n\");\n\n }\n break;\n case 5:\n if (av_commands[i] == false) {\n int arbCheck;\n Random rnd = new Random();\n arbCheck = rnd.nextInt(2);\n Kernel.interfc.sim.log.append(\"WARNING: CheckEngine Light Reading is NOT SUPPORTED\\n Arbitrary value (\" + arbCheck + \") set!! \\n\");\n\n }\n break;\n\n }\n }\n {\n Kernel.interfc.sim.log.append(\"HANDSHAKE PERFORMED...Awaiting for SelfTest\\n\");\n\n }\n\n } catch (Exception e) {\n System.out.println(\"PERFORM HANDSHAKE:\" + e.getMessage() + \" \" + e.getLocalizedMessage());\n }\n }", "public void handshakeCompleted(ShellLaunchEvent ev);", "private static void runTest(SSLEngine ssle) throws Exception {\n byte[] msg_clihello = {\n (byte)0x16, (byte)0x03, (byte)0x01, (byte)0x00,\n (byte)0x6f, (byte)0x01, (byte)0x00, (byte)0x00,\n (byte)0x6b, (byte)0x03, (byte)0x01, (byte)0x48,\n (byte)0x90, (byte)0x71, (byte)0xfc, (byte)0xf9,\n (byte)0xa2, (byte)0x3a, (byte)0xd7, (byte)0xa8,\n (byte)0x0b, (byte)0x25, (byte)0xf1, (byte)0x2b,\n (byte)0x88, (byte)0x80, (byte)0x66, (byte)0xca,\n (byte)0x07, (byte)0x78, (byte)0x2a, (byte)0x08,\n (byte)0x9d, (byte)0x62, (byte)0x1d, (byte)0x89,\n (byte)0xc9, (byte)0x1e, (byte)0x1f, (byte)0xe5,\n (byte)0x92, (byte)0xfe, (byte)0x8d, (byte)0x00,\n (byte)0x00, (byte)0x24, (byte)0x00, (byte)0x88,\n (byte)0x00, (byte)0x87, (byte)0x00, (byte)0x39,\n (byte)0x00, (byte)0x38, (byte)0x00, (byte)0x84,\n (byte)0x00, (byte)0x35, (byte)0x00, (byte)0x45,\n (byte)0x00, (byte)0x44, (byte)0x00, (byte)0x33,\n (byte)0x00, (byte)0x32, (byte)0x00, (byte)0x41,\n (byte)0x00, (byte)0x04, (byte)0x00, (byte)0x05,\n (byte)0x00, (byte)0x2f, (byte)0x00, (byte)0x16,\n (byte)0x00, (byte)0x13, (byte)0xfe, (byte)0xff,\n (byte)0x00, (byte)0x0a, (byte)0x01, (byte)0x00,\n (byte)0x00, (byte)0x1e, (byte)0x00, (byte)0x00,\n (byte)0x00, (byte)0x16, (byte)0x00, (byte)0x14,\n (byte)0x00, (byte)0x00, (byte)0x11, (byte)0x6a,\n (byte)0x75, (byte)0x73, (byte)0x74, (byte)0x69,\n (byte)0x6e, (byte)0x2e, (byte)0x75, (byte)0x6b,\n (byte)0x2e, (byte)0x73, (byte)0x75, (byte)0x6e,\n (byte)0x2e, (byte)0x63, (byte)0x6f, (byte)0x6d,\n (byte)0x00, (byte)0x23, (byte)0x00, (byte)0x00\n };\n ByteBuffer bf_clihello = ByteBuffer.wrap(msg_clihello);\n\n SSLSession session = ssle.getSession();\n int appBufferMax = session.getApplicationBufferSize();\n int netBufferMax = session.getPacketBufferSize();\n\n ByteBuffer serverIn = ByteBuffer.allocate(appBufferMax + 50);\n ByteBuffer serverOut = ByteBuffer.wrap(\"I'm Server\".getBytes());\n ByteBuffer sTOc = ByteBuffer.allocate(netBufferMax);\n\n ssle.beginHandshake();\n\n // unwrap the clientHello message.\n SSLEngineResult result = ssle.unwrap(bf_clihello, serverIn);\n System.out.println(\"server unwrap \" + result);\n runDelegatedTasks(result, ssle);\n\n // one more step, ensure the clientHello message is parsed.\n SSLEngineResult.HandshakeStatus status = ssle.getHandshakeStatus();\n if ( status == HandshakeStatus.NEED_UNWRAP) {\n result = ssle.unwrap(bf_clihello, serverIn);\n System.out.println(\"server unwrap \" + result);\n runDelegatedTasks(result, ssle);\n } else if ( status == HandshakeStatus.NEED_WRAP) {\n result = ssle.wrap(serverOut, sTOc);\n System.out.println(\"server wrap \" + result);\n runDelegatedTasks(result, ssle);\n } else {\n throw new Exception(\"unexpected handshake status \" + status);\n }\n\n // enough, stop\n }", "@Override // javax.net.ssl.SSLSocket\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void startHandshake() {\n /*\n // Method dump skipped, instructions count: 634\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C58602mC.startHandshake():void\");\n }", "@Override\n\tpublic void challenge16() {\n\n\t}", "@Override\n public void start() {\n long originalSendNextNumber = sendNextNumber;\n sendNextNumber += 1L;\n\n // Send the first part of the handshake\n currentState = SYN_SENT;\n sendWithResend(createPacket(\n 0, // Data size (byte)\n originalSendNextNumber, // Seq number\n 0, // Ack number\n false, // ACK\n true, // SYN\n false // ECE\n ));\n\n // System.out.println(\"3-WAY HANDSHAKE: 0. Sender sent SYN.\");\n\n // Preserve space as this field will never be used\n this.selectiveAckSet = null;\n\n }", "@WangZheng\n public void getChallengeCode(){\n try {\n sendMessage(\"getChallengeCodeCallBack\");\n } catch (Exception e) {\n dealWithException(e);\n }\n }", "@Override\n\tpublic void challenge12() {\n\n\t}", "private String getChallengeResponse(\n\t\t\tString chalstr,\n\t\t\tString username,\n\t\t\tString password,\n\t\t\tString language,\n\t\t\tString database,\n\t\t\tString hash\n\t) throws MCLParseException, MCLException, IOException {\n\t\tString response;\n\t\tString algo;\n\n\t\t// parse the challenge string, split it on ':'\n\t\tString[] chaltok = chalstr.split(\":\");\n\t\tif (chaltok.length <= 4) throw\n\t\t\tnew MCLParseException(\"Server challenge string unusable! Challenge contains too few tokens: \" + chalstr);\n\n\t\t// challenge string to use as salt/key\n\t\tString challenge = chaltok[0];\n\t\tString servert = chaltok[1];\n\t\ttry {\n\t\t\tversion = Integer.parseInt(chaltok[2].trim());\t// protocol version\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new MCLParseException(\"Protocol version unparseable: \" + chaltok[3]);\n\t\t}\n\n\t\t// handle the challenge according to the version it is\n\t\tswitch (version) {\n\t\t\tdefault:\n\t\t\t\tthrow new MCLException(\"Unsupported protocol version: \" + version);\n\t\t\tcase 9:\n\t\t\t\t// proto 9 is like 8, but uses a hash instead of the\n\t\t\t\t// plain password, the server tells us which hash in the\n\t\t\t\t// challenge after the byte-order\n\n\t\t\t\t/* NOTE: Java doesn't support RIPEMD160 :( */\n\t\t\t\tif (chaltok[5].equals(\"SHA512\")) {\n\t\t\t\t\talgo = \"SHA-512\";\n\t\t\t\t} else if (chaltok[5].equals(\"SHA384\")) {\n\t\t\t\t\talgo = \"SHA-384\";\n\t\t\t\t} else if (chaltok[5].equals(\"SHA256\")) {\n\t\t\t\t\talgo = \"SHA-256\";\n\t\t\t\t/* NOTE: Java doesn't support SHA-224 */\n\t\t\t\t} else if (chaltok[5].equals(\"SHA1\")) {\n\t\t\t\t\talgo = \"SHA-1\";\n\t\t\t\t} else if (chaltok[5].equals(\"MD5\")) {\n\t\t\t\t\talgo = \"MD5\";\n\t\t\t\t} else {\n\t\t\t\t\tthrow new MCLException(\"Unsupported password hash: \" +\n\t\t\t\t\t\t\tchaltok[5]);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tMessageDigest md = MessageDigest.getInstance(algo);\n\t\t\t\t\tmd.update(password.getBytes(\"UTF-8\"));\n\t\t\t\t\tbyte[] digest = md.digest();\n\t\t\t\t\tpassword = toHex(digest);\n\t\t\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t\t\tthrow new AssertionError(\"internal error: \" + e.toString());\n\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\tthrow new AssertionError(\"internal error: \" + e.toString());\n\t\t\t\t}\n\n\t\t\t\t// proto 7 (finally) used the challenge and works with a\n\t\t\t\t// password hash. The supported implementations come\n\t\t\t\t// from the server challenge. We chose the best hash\n\t\t\t\t// we can find, in the order SHA1, MD5, plain. Also,\n\t\t\t\t// the byte-order is reported in the challenge string,\n\t\t\t\t// which makes sense, since only blockmode is supported.\n\t\t\t\t// proto 8 made this obsolete, but retained the\n\t\t\t\t// byte-order report for future \"binary\" transports. In\n\t\t\t\t// proto 8, the byte-order of the blocks is always little\n\t\t\t\t// endian because most machines today are.\n\t\t\t\tString hashes = (hash == null ? chaltok[3] : hash);\n\t\t\t\tSet<String> hashesSet = new HashSet<String>(Arrays.asList(hashes.toUpperCase().split(\"[, ]\")));\n\n\t\t\t\t// if we deal with merovingian, mask our credentials\n\t\t\t\tif (servert.equals(\"merovingian\") && !language.equals(\"control\")) {\n\t\t\t\t\tusername = \"merovingian\";\n\t\t\t\t\tpassword = \"merovingian\";\n\t\t\t\t}\n\t\t\t\tString pwhash;\n\t\t\t\talgo = null;\n\t\t\t\t\n\t\t\t\tif (hashesSet.contains(\"SHA512\")) {\n\t\t\t\t\talgo = \"SHA-512\";\n\t\t\t\t\tpwhash = \"{SHA512}\";\n\t\t\t\t} else if (hashesSet.contains(\"SHA384\")) {\n\t\t\t\t\talgo = \"SHA-384\";\n\t\t\t\t\tpwhash = \"{SHA384}\";\n\t\t\t\t} else if (hashesSet.contains(\"SHA256\")) {\n\t\t\t\t\talgo = \"SHA-256\";\n\t\t\t\t\tpwhash = \"{SHA256}\";\n\t\t\t\t} else if (hashesSet.contains(\"SHA1\")) {\n\t\t\t\t\talgo = \"SHA-1\";\n\t\t\t\t\tpwhash = \"{SHA1}\";\n\t\t\t\t} else if (hashesSet.contains(\"MD5\")) {\n\t\t\t\t\talgo = \"MD5\";\n\t\t\t\t\tpwhash = \"{MD5}\";\n\t\t\t\t} else {\n\t\t\t\t\tthrow new MCLException(\"no supported password hashes in \" + hashes);\n\t\t\t\t}\n\t\t\t\tif (algo != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tMessageDigest md = MessageDigest.getInstance(algo);\n\t\t\t\t\t\tmd.update(password.getBytes(\"UTF-8\"));\n\t\t\t\t\t\tmd.update(challenge.getBytes(\"UTF-8\"));\n\t\t\t\t\t\tbyte[] digest = md.digest();\n\t\t\t\t\t\tpwhash += toHex(digest);\n\t\t\t\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t\t\t\tthrow new AssertionError(\"internal error: \" + e.toString());\n\t\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t\tthrow new AssertionError(\"internal error: \" + e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// TODO: some day when we need this, we should store\n\t\t\t\t// this\n\t\t\t\tif (chaltok[4].equals(\"BIG\")) {\n\t\t\t\t\t// byte-order of server is big-endian\n\t\t\t\t} else if (chaltok[4].equals(\"LIT\")) {\n\t\t\t\t\t// byte-order of server is little-endian\n\t\t\t\t} else {\n\t\t\t\t\tthrow new MCLParseException(\"Invalid byte-order: \" + chaltok[5]);\n\t\t\t\t}\n\n\t\t\t\t// generate response\n\t\t\t\tresponse = \"BIG:\";\t// JVM byte-order is big-endian\n\t\t\t\tresponse += username + \":\" + pwhash + \":\" + language;\n\t\t\t\tresponse += \":\" + (database == null ? \"\" : database) + \":\";\n\t\t\t\t\n\t\t\t\treturn response;\n\t\t}\n\t}", "public HandshakeBuilder onHandshakeRecievedAsServer( WebSocket conn , Draft draft , Handshakedata request ) throws IOException;", "private void sendReceiveRes(){\n\t}", "public void receiveResultpassResult(\n loadbalance.LoadBalanceStub.PassResultResponse result\n ) {\n }", "@Override\r\n public synchronized void connect(SelectionKey clientKey)\r\n { \r\n // Local Variable Declaration \r\n Map<String, String> headers = new HashMap<>(); \r\n String headerString = \"\", rqsMethod = \"\", socKey = \"\";\r\n float rqsVersion = 0;\r\n \r\n // Read headers from socket client\r\n headerString = receiveHeaders(clientKey);\r\n \r\n // Parse and validate the headers if the headerString could be read\r\n if(!headerString.equals(null))\r\n {\r\n headers = parseAndValidateHeaders(headerString);\r\n \r\n // Extract the HTTP method and version used in this connection request\r\n rqsMethod = headers.get(RQS_METHOD);\r\n rqsVersion = Float.parseFloat(headers.get(RQS_VERSION));\r\n socKey = headers.get(\"Sec-WebSocket-Key\");\r\n }\r\n \r\n /* Make sure the header contained the GET method has a version higher \r\n * 1.1 and that the socket key exists */ \r\n if (!headerString.equals(null) && rqsMethod.equals(new String(\"GET\")) && \r\n rqsVersion >= 1.1 && socKey != null)\r\n {\r\n // Complete handshake, by sending response header confirming connection terms\r\n finishConnection(headers, clientKey);\r\n \r\n // Add the socket to the map of sockets by the name passed \r\n this.sockets.put(clientKey, new WebSocketData()); \r\n }\r\n else\r\n {\r\n // Send a Bad Request HTTP response \r\n SocketChannel sc = (SocketChannel) clientKey.channel();\r\n \r\n try \r\n {\r\n // Build a response header for the error \r\n byte rsp[] = (this.BAD_RQST_HDR \r\n + \"Malformed request. The connection request must \"\r\n + \"use a 'GET' method, must have a version greater \"\r\n + \"than 1.1 and have 'Sec-WebSocket-Key'. Please\"\r\n + \"check your headers\"\r\n + \"\\\\r\\\\n\").getBytes(\"UTF-8\");\r\n \r\n // Send the response error header to the client\r\n sc.write(ByteBuffer.wrap(rsp));\r\n } \r\n catch (IOException ex) \r\n {\r\n Logger.getLogger(RecptionRoom.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "BaseConnet(){\n// pool = ThreadPool.getInstance();\n// sc = SendCommand.getInstance();\n HEART_CMD = new byte[]{\n\n WiStaticComm.UTRAL_H0,\n WiStaticComm.UTRAL_H1,\n WiStaticComm.UTRAL_H2,\n 0x00,\n 0x13,\n 0x00,\n 0x06,\n 0x01,\n 0x00,\n 0x00,\n 0x52,\n 0x00,\n 0x00,\n 0x00,\n 0x00,\n 0x0A,\n (byte) 0xF4,\n (byte) 0xAA,\n 0x40\n };\n byte checkSum = HEART_CMD[0];\n for (int i = 1; i < 19; i++)\n {\n if (i != 19 - 5)\n checkSum ^= HEART_CMD[i];\n\n }\n HEART_CMD[19 - 5] = checkSum;\n }", "@Override\n\tpublic void challenge10() {\n\n\t}", "private void enviarLlaveSimetricaYReto() {\n\t\tString reto = \"reto\";\n\n\t\ttry {\n\t\t\tllaveSecreta = generarLlave(algSimetrica);\n\t\t\tbyte[] llaveSim=llaveSecreta.getEncoded();\n\t\t\tbyte[] simetrica = encriptarAsimetrico(llaveSim, llavePublica, algAsimetrica);\n\t\t\tout.println(printBase64Binary(simetrica));\n\t\t\tout.println(reto);\n\t\t\tString linea = in.readLine();\n\t\t\tbyte[] msg = parseBase64Binary(linea);\n\t\t\tbyte[] msgDecifrado = decriptadoSimetrico(msg, llaveSecreta, algSimetrica);\n\t\t\tSystem.out.println(\"Este es el mensaje descifrado:\" +printBase64Binary(msgDecifrado));\n\t\t\tif(!printBase64Binary(msgDecifrado).equals(\"reto\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Error al decifrar el mensaje\");\n\t\t\t\tout.println(ERROR);\n\t\t\t}\n\t\t\tout.println(OK);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error generando llave simetrica\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\n\tpublic void challenge7() {\n\n\t}", "public SSLEngineResult(Status paramStatus, HandshakeStatus paramHandshakeStatus, int paramInt1, int paramInt2) {\n/* 182 */ if (paramStatus == null || paramHandshakeStatus == null || paramInt1 < 0 || paramInt2 < 0)\n/* */ {\n/* 184 */ throw new IllegalArgumentException(\"Invalid Parameter(s)\");\n/* */ }\n/* */ \n/* 187 */ this.status = paramStatus;\n/* 188 */ this.handshakeStatus = paramHandshakeStatus;\n/* 189 */ this.bytesConsumed = paramInt1;\n/* 190 */ this.bytesProduced = paramInt2;\n/* */ }", "@Override\n public HealthCheckResponse call() {\n HealthCheckResponseBuilder hcrb = HealthCheckResponse.named(\"WorldClockAPIHealtCheck\");\n try(Socket socket = new Socket()) {\n socket.connect(new InetSocketAddress(\"worldclockapi.com\", 80), 1000);\n hcrb.up();\n } catch (IOException e) {\n hcrb.down();\n }\n return hcrb.build();\n }", "private void doTunnelHandshake(Socket tunnel, String host, int port) throws IOException {\n OutputStream out = tunnel.getOutputStream();\n String msg = \"CONNECT \" + host + \":\" + port + \" HTTP/1.0\\n\"\n + \"\\r\\n\\r\\n\";\n out.write(msg.getBytes(StandardCharsets.UTF_8));\n out.flush();\n\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(\n tunnel.getInputStream(), encoding.name()));\n List<String> headers = getHeaderLines(reader);\n\n // verify successful connection\n if (!headers.get(0).contains(\"200 OK\")) {\n throw new IOException(\"Unable to connect to proxy, error message: \" + headers.get(0));\n }\n }", "public void sendAuthPackge() throws IOException {\n // 生成认证数据\n byte[] rand1 = RandomUtil.randomBytes(8);\n byte[] rand2 = RandomUtil.randomBytes(12);\n\n // 保存认证数据\n byte[] seed = new byte[rand1.length + rand2.length];\n System.arraycopy(rand1, 0, seed, 0, rand1.length);\n System.arraycopy(rand2, 0, seed, rand1.length, rand2.length);\n this.seed = seed;\n\n // 发送握手数据包\n HandshakePacket hs = new HandshakePacket();\n hs.packetId = 0;\n hs.protocolVersion = Versions.PROTOCOL_VERSION;\n hs.serverVersion = Versions.SERVER_VERSION;\n hs.threadId = id;\n hs.seed = rand1;\n hs.serverCapabilities = getServerCapabilities();\n // hs.serverCharsetIndex = (byte) (charsetIndex & 0xff);\n hs.serverStatus = 2;\n hs.restOfScrambleBuff = rand2;\n hs.write(this);\n\n // asynread response\n // 这里阻塞了不好\n this.asynRead();\n }", "@Override\n\tpublic void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response) {\n\t\tsuper.modifyHandshake(sec, request, response);\n\t\tHttpSession session = (HttpSession)request.getHttpSession();\n\t\tsec.getUserProperties().put(\"session\",session);\t\t\n\t}", "@Test\r\n\tpublic void testC() {\r\n\t\t\r\n\t\tObjectHandshake h = new ObjectHandshake();\r\n\t\th.setUuid( UuidTool.getOne() );\r\n\t\t\r\n\t\tRunProtocol run = null;\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_A, 100, 200, true, true);\r\n\t\tassertTrue(run.beginA());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_B, 100, 200, true, true);\r\n\t\tassertTrue(run.commitA());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_B, 100, 200, true, true);\r\n\t\tassertTrue(run.beginB());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_A, 100, 200, true, true);\r\n\t\tassertTrue(run.commitB());\r\n\t\t\r\n\t\tassertEquals(h.getLog(), \"1-1-100-2-1-101-2-2-200-1-2-201-\");\r\n\t}", "public LWTRTPdu connectRsp() throws IncorrectTransitionException;", "private void verifyServerHandshake(InputStream inputStream, String secWebSocketKey) throws IOException {\n try {\n SessionInputBufferImpl sessionInputBuffer = new SessionInputBufferImpl(new HttpTransportMetricsImpl(),\n 8192);\n sessionInputBuffer.bind(inputStream);\n HttpMessageParser<HttpResponse> parser = new DefaultHttpResponseParser(sessionInputBuffer);\n HttpResponse response = parser.parse();\n\n StatusLine statusLine = response.getStatusLine();\n if (statusLine == null) {\n throw new InvalidServerHandshakeException(\"There is no status line\");\n }\n\n int statusCode = statusLine.getStatusCode();\n if (statusCode != 101) {\n throw new InvalidServerHandshakeException(\n \"Invalid status code. Expected 101, received: \" + statusCode);\n }\n\n Header[] upgradeHeader = response.getHeaders(\"Upgrade\");\n if (upgradeHeader.length == 0) {\n throw new InvalidServerHandshakeException(\"There is no header named Upgrade\");\n }\n String upgradeValue = upgradeHeader[0].getValue();\n if (upgradeValue == null) {\n throw new InvalidServerHandshakeException(\"There is no value for header Upgrade\");\n }\n upgradeValue = upgradeValue.toLowerCase();\n if (!upgradeValue.equals(\"websocket\")) {\n throw new InvalidServerHandshakeException(\n \"Invalid value for header Upgrade. Expected: websocket, received: \" + upgradeValue);\n }\n\n Header[] connectionHeader = response.getHeaders(\"Connection\");\n if (connectionHeader.length == 0) {\n throw new InvalidServerHandshakeException(\"There is no header named Connection\");\n }\n String connectionValue = connectionHeader[0].getValue();\n if (connectionValue == null) {\n throw new InvalidServerHandshakeException(\"There is no value for header Connection\");\n }\n connectionValue = connectionValue.toLowerCase();\n if (!connectionValue.equals(\"upgrade\")) {\n throw new InvalidServerHandshakeException(\n \"Invalid value for header Connection. Expected: upgrade, received: \" + connectionValue);\n }\n\n// Header[] secWebSocketAcceptHeader = response.getHeaders(\"Sec-WebSocket-Accept\");\n// if (secWebSocketAcceptHeader.length == 0) {\n// throw new InvalidServerHandshakeException(\"There is no header named Sec-WebSocket-Accept\");\n// }\n// String secWebSocketAcceptValue = secWebSocketAcceptHeader[0].getValue();\n// if (secWebSocketAcceptValue == null) {\n// throw new InvalidServerHandshakeException(\"There is no value for header Sec-WebSocket-Accept\");\n// }\n\n// String keyConcatenation = secWebSocketKey + GUID;\n// byte[] sha1 = DigestUtils.sha1(keyConcatenation);\n// String secWebSocketAccept = Base64.encodeBase64String(sha1);\n// if (!secWebSocketAcceptValue.equals(secWebSocketAccept)) {\n// throw new InvalidServerHandshakeException(\n// \"Invalid value for header Sec-WebSocket-Accept. Expected: \" + secWebSocketAccept\n// + \", received: \" + secWebSocketAcceptValue);\n// }\n } catch (HttpException e) {\n throw new InvalidServerHandshakeException(e.getMessage());\n }\n }", "@Override\n\tpublic void afterHandshake(ServerHttpRequest request, ServerHttpResponse response, WebSocketHandler wsHandler,\n\t\t\tException ex) {\n\t\tSystem.out.println(\"after handshake\");\n\n\t\tHttpServletRequest rq = ((ServletServerHttpRequest) request).getServletRequest();\n\t\tHttpSession session = rq.getSession();\n\t\tsuper.afterHandshake(request, response, wsHandler, ex);\n\n\t}", "@Test\n\tpublic void testFastHandshakePeerIDHaveAll() throws Exception {\n\n\t\t// Given\n\t\tPieceDatabase pieceDatabase = MockPieceDatabase.create (\"1\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tBitField wantedPieces = pieceDatabase.getPresentPieces().not();\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), null);\n\t\twhen(peerSetContext.requestManager.piecesAvailable (any (ManageablePeer.class))).thenReturn (false);\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), true, false);\n\n\t\t// When\n\t\tmockConnection.mockInput (PeerProtocolBuilder.bitfieldMessage (wantedPieces));\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.haveAllMessage());\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (0));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}", "public String toString() {\n/* 235 */ return \"Status = \" + this.status + \" HandshakeStatus = \" + this.handshakeStatus + \"\\nbytesConsumed = \" + this.bytesConsumed + \" bytesProduced = \" + this.bytesProduced;\n/* */ }", "@Test\r\n\tpublic void testG() {\r\n\t\t\r\n\t\tObjectHandshake h = new ObjectHandshake();\r\n\t\th.setUuid( UuidTool.getOne() );\r\n\t\t\r\n\t\tRunProtocol run = null;\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_A);\r\n\t\tassertTrue(run.beginA());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_A);\r\n\t\tassertTrue(run.commitA());\r\n\t\t\r\n\t\trun.reset();\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_B);\r\n\t\tassertFalse(run.beginB());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_B);\r\n\t\tassertFalse(run.commitB());\r\n\t\t\r\n\t\t//analyze the reset\r\n\t\tLogAnalyzer aly = run.getCurrentAnalyzer();\r\n\t\t//The value, the reset occurs\r\n\t\tassertEquals( 200, aly.getCurrentPartValue() );\r\n\t\t//The part is not available\r\n\t\tassertEquals( LogAnalyzer.THE_PART_IS_NOT_KNOWN, aly.getPart() );\r\n\t\t\r\n\t\tassertFalse( aly.isAfterPart0() );\r\n\t\tassertFalse( aly.isAfterPart1() );\r\n\t\t//The parts 0 and 1 run properly\r\n\t\tassertTrue( aly.isAfterPart2() );\r\n\t\t//The part 3 is not reached, because of the reset\r\n\t\tassertFalse( aly.isAfterPart3() );\r\n\t\t\r\n\t\t//There is no part\r\n\t\tassertFalse( aly.isPart1() );\r\n\t\tassertFalse( aly.isPart2() );\r\n\t\tassertFalse( aly.isPart3() );\r\n\t\tassertFalse( aly.isPart4() );\r\n\t\t\r\n\t\t//There are 3 entries in the list.\r\n\t\tassertEquals( 3, aly.getList().size() );\r\n\t\t//The last entry has the RST_FLAG set\r\n\t\tassertEquals( IHandshake.RST_FLAG, aly.getCurrentPartType() );\r\n\t\t\r\n\t\tassertEquals(h.getLog(), \"1-1-100-1-1-101-1-4-200-\");\r\n\t}", "@Override\n\tpublic void challenge15() {\n\n\t}", "public void mo4677d() {\n this.f3118j = new ArrayList<>();\n this.f3119k = new byte[1];\n this.f3114f = true;\n new Thread(new Runnable() {\n public void run() {\n C1140n.m5266a(\"开启socket读取线程!socket = \" + C1149t.this.f3111c);\n while (C1149t.this.f3114f) {\n if (!(C1149t.this.f3111c == null || C1149t.this.f3113e == null)) {\n try {\n C1149t.this.f3113e.read(C1149t.this.f3119k);\n if (C1149t.this.f3118j.size() != 0) {\n C1149t.this.f3118j.add(Integer.valueOf(C1149t.this.f3119k[0] & 255));\n } else if ((C1149t.this.f3119k[0] & 255) == 1) {\n C1149t.this.f3118j.add(Integer.valueOf(C1149t.this.f3119k[0] & 255));\n C1149t.this.m5304a(\"socket读取,头校验成功\");\n }\n if (C1149t.this.f3118j.size() == 3) {\n Integer unused = C1149t.this.f3120l = (Integer) C1149t.this.f3118j.get(2);\n }\n if (C1149t.this.f3118j.size() > 3 && C1149t.this.f3118j.size() == C1149t.this.f3120l.intValue() + 3) {\n int i = 0;\n for (int i2 = 0; i2 < C1149t.this.f3118j.size() - 1; i2++) {\n i += ((Integer) C1149t.this.f3118j.get(i2)).intValue();\n }\n if (i % 256 == ((Integer) C1149t.this.f3118j.get(C1149t.this.f3118j.size() - 1)).intValue()) {\n C1149t.this.m5304a(\"socket读取,数据校验成功!\");\n byte[] bArr = new byte[C1149t.this.f3118j.size()];\n for (int i3 = 0; i3 < C1149t.this.f3118j.size(); i3++) {\n bArr[i3] = (byte) ((Integer) C1149t.this.f3118j.get(i3)).intValue();\n }\n if (C1149t.this.f3110b != null) {\n C1149t.this.f3110b.mo4520a(bArr);\n } else {\n C1140n.m5269b(\"数据校验:listener监听为null\");\n }\n }\n C1149t.this.f3118j.clear();\n Integer unused2 = C1149t.this.f3120l = 0;\n }\n } catch (SocketTimeoutException e) {\n C1139m.m5264a(\"socket read and parse out of time! e = \" + e.toString());\n C1140n.m5269b(\"socket连接超时:\" + e.toString());\n if (!C1149t.this.f3122n) {\n C1141o.m5272a().mo4665b();\n boolean unused3 = C1149t.this.f3122n = true;\n if (C1149t.this.f3111c != null) {\n try {\n C1149t.this.f3111c.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n Socket unused4 = C1149t.this.f3111c = null;\n try {\n if (C1149t.this.f3113e != null) {\n C1149t.this.f3113e.close();\n }\n if (C1149t.this.f3112d != null) {\n C1149t.this.f3112d.close();\n }\n } catch (IOException e3) {\n e3.printStackTrace();\n }\n InputStream unused5 = C1149t.this.f3113e = null;\n OutputStream unused6 = C1149t.this.f3112d = null;\n C1149t.this.m5315f();\n }\n } catch (IOException e4) {\n e4.printStackTrace();\n C1140n.m5269b(\"socket read error: \" + e4.toString());\n C1149t.this.m5302a(2000);\n }\n }\n }\n }\n }).start();\n }", "@Override\n public void processResponse(ChannelSession chnl, TransportBuffer buffer)\n { \n if (buffer.length() < 40)\n return;\n \n outputString.delete(0, outputString.length());\n \n // If message, display which channel Session this is on\n for (int i = 0; i < channelSessions.size(); ++i)\n {\n if (channelSessions.get(i).channelInfo().channel() == ((EDFChannelSession)chnl).channelInfo().channel())\n {\n outputString.append(\"\\n<Realtime Channel \" + i + \"> \");\n break;\n }\n }\n \n // clear decode iterator\n dIter.clear();\n \n outputString.append(\"SEQ NO: \" + ((EDFChannelSession)chnl).channelInfo().readArgs().seqNum() + \" \");\n \n // set buffer and version info\n dIter.setBufferAndRWFVersion(buffer, chnl.channel().majorVersion(), chnl.channel()\n .minorVersion());\n\n int ret = responseMsg.decode(dIter);\n if (ret != CodecReturnCodes.SUCCESS)\n {\n System.out.println(\"\\nDecodeMsg(): Error \" + ret + \" on SessionData Channel=\"\n + chnl.channel().selectableChannel() + \" Size \"\n + (buffer.data().limit() - buffer.data().position()));\n closeChannel();\n System.exit(TransportReturnCodes.FAILURE);\n }\n\n ChannelInfo channelInfo = ((EDFChannelSession) chnl).channelInfo();\n\n for (ChannelInfo chanInfo : ((EDFChannelSession)chnl).channels())\n {\n if (chanInfo.connectOptions().unifiedNetworkInfo().address() == channelInfo.connectOptions().unifiedNetworkInfo().address() &&\n chanInfo.connectOptions().unifiedNetworkInfo().serviceName() == channelInfo.connectOptions().unifiedNetworkInfo().serviceName())\n {\n \n if ( channelInfo.readArgs().seqNum() > chanInfo.gapInfo().start + 1 && chanInfo.gapInfo().start != 0)\n {\n gapDetected = true;\n chanInfo.gapInfo().start = chanInfo.gapInfo().start + 1;\n chanInfo.gapInfo().end = channelInfo.readArgs().seqNum() - 1;\n }\n else\n {\n chanInfo.gapInfo().start = channelInfo.readArgs().seqNum();\n chanInfo.gapInfo().end = channelInfo.readArgs().seqNum();\n }\n \n // Check if address and port are on this gapInfo, if not, put it on based on channel's info\n if (chanInfo.gapInfo().address.data() == null)\n {\n chanInfo.gapInfo().address.data(channelInfo.connectOptions().unifiedNetworkInfo().address());\n chanInfo.gapInfo().port = Integer.valueOf(channelInfo.connectOptions().unifiedNetworkInfo().serviceName());\n }\n\n break;\n }\n }\n \n\n\n processResponse(chnl, responseMsg, dIter, outputString);\n }", "@Override\n\tpublic void onConnectDone(ConnectEvent event) {\n\t\tif(WarpResponseResultCode.SUCCESS==event.getResult()){\n\t\t\tmyGame.getLiveUserInfo(challenged);\n\t\t}\n\t}", "@Override\n public final int read() throws IOException {\n if (isClosed() || isFailed()) {\n return EOF;\n }\n if (!handshakeComplete) {\n shakeHands();\n if (!handshakeComplete) {\n failTheWebSocketConnection();\n return EOF;\n }\n }\n return nextWebSocketByte();\n }", "private void sendDeviceHandshake(SelectionKey key, boolean flag) throws IOException {\n\t\tSocketChannel channel = (SocketChannel)key.channel();\n\t\tbyte[] ackData = new byte[1];\n\t\tif(flag) {\n\t\t\tackData[0]=01;\t\n\t\t}else {\n\t\t\tackData[0]=00;\n\t\t}\n\n\n\t\tByteBuffer bSend = ByteBuffer.allocate(ackData.length);\n\t\tbSend.clear();\n\t\tbSend.put(ackData);\n\t\tbSend.flip();\n\t\twhile (bSend.hasRemaining()) {\n\t\t\ttry {\n\t\t\t\tchannel.write(bSend);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"Failed to send acknowledgement\");\n\t\t\t}\n\n\t\t}\n\t}", "public int mo742l() throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"android.support.v4.media.session.IMediaSession\");\n this.f822a.transact(32, obtain, obtain2, 0);\n obtain2.readException();\n return obtain2.readInt();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }", "public void cacheResult(wsihash wsihash);", "public final boolean isHandshakeComplete() {\n return handshakeComplete;\n }", "@Override\n\tpublic void challenge9() {\n\n\t}", "@Test\n\tpublic void retrievePasswordReplayAttackTest() throws RemoteException, NoSuchAlgorithmException, InvalidKeySpecException, IOException, InvalidKeyException, SignatureException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, UnrecoverableKeyException, KeyStoreException, CertificateException {\n\t\tPasswordManager pm = new PasswordManager(8080);\n\t\tString responseRegister = pm.registerUser(byteToString(cliPubKey.getEncoded()), \n\t\t\t\tDigitalSignature.getSignature(cliPubKey.getEncoded(),cliPrivKey));\n\n\t\t// Set global variables for Secret Key and Server Public Key based on the register\n\t\tbyte[] secretKeyByte = RSAMethods.decipher(responseRegister.split(\"-\")[2], cliPrivKey);\n\t\tString secretKeyStr = new String(secretKeyByte, \"UTF-8\");\n\t\tsecretKey = new SecretKeySpec(stringToByte(secretKeyStr), 0, stringToByte(secretKeyStr).length, \"HmacMD5\");\n\t\tservPubKey = getServerPublicKey(responseRegister.split(\"-\")[0]);\n\t\t\n\t\t// Simulate the save request from client\n\t\tString domain = \"facebook\";\n\t\tString username = \"test\";\n\t\tString password = \"123aBc456\";\n\t\tint seqNum = 0;\n\t\tString msg = messageToSend(domain,username,password,\"0\",seqNum);\n\n\t\t// Call savePassword method on server\n\t\tpm.savePassword(msg);\n\n\t\t// Simulate the retrieve request from client\n\t\tseqNum = 1;\n\t\tmsg = messageToSend(domain,username,\"\",\"1\",seqNum);\n\n\t\t// Simulate a Replay Attack by sending the same message twice\n\t\tpm.retrievePassword(msg);\n\t\tString retrieveResponse2 = pm.retrievePassword(msg);\n\t\t\n\t\t// Check the way server deals with freshness of messages\n\t\tbyte[] responseTest = RSAMethods.decipher(retrieveResponse2.split(\"-\")[0],cliPrivKey);\n\t\tString responseTestStr = new String(responseTest, \"UTF-8\");\n\t\tAssert.assertEquals(\"Error\", responseTestStr);\n\t}", "public String getClientHandshakeMessage(int identifier) {\n JSONObject model = new JSONObject();\n model.put(\"Type\", \"Handshake\");\n model.put(\"Identifier\", Integer.toString(identifier));\n //model.put(\"TcpSendBuffer\", Integer.toString(tcpSendBuffer));\n //model.put(\"TcpReceiveBuffer\", Integer.toString(tcpReceiveBuffer));\n //model.put (\"idAck\" , Integer.toString(lastReceivedMessage));\n return model.toString();\n }", "@Test\n public void remoteDoubleSynReply() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.acceptFrame();// PING\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"b\", \"banana\"));\n peer.sendFrame().ping(true, 1, 0);\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"c\", \"cola\"), false);\n Assert.assertEquals(Headers.of(\"a\", \"android\"), stream.takeHeaders());\n connection.writePingAndAwaitPong();// Ensure that the 2nd SYN REPLY has been received.\n\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n }", "@Test\n public void remoteSendsDataAfterInFinished() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.acceptFrame();// SYN_STREAM\n\n peer.sendFrame().headers(false, 3, TestUtil.headerEntries(\"a\", \"android\"));\n peer.sendFrame().data(true, 3, new Buffer().writeUtf8(\"robot\"), 5);\n peer.sendFrame().data(true, 3, new Buffer().writeUtf8(\"c3po\"), 4);\n peer.acceptFrame();// RST_STREAM\n\n peer.sendFrame().ping(false, 2, 0);// Ping just to make sure the stream was fastforwarded.\n\n peer.acceptFrame();// PING\n\n peer.play();\n // play it back\n Http2Connection connection = connect(peer);\n Http2Stream stream = connection.newStream(TestUtil.headerEntries(\"b\", \"banana\"), false);\n Assert.assertEquals(Headers.of(\"a\", \"android\"), stream.takeHeaders());\n assertStreamData(\"robot\", stream.getSource());\n // verify the peer received what was expected\n MockHttp2Peer.InFrame synStream = peer.takeFrame();\n Assert.assertEquals(TYPE_HEADERS, synStream.type);\n MockHttp2Peer.InFrame rstStream = peer.takeFrame();\n Assert.assertEquals(TYPE_RST_STREAM, rstStream.type);\n Assert.assertEquals(3, rstStream.streamId);\n MockHttp2Peer.InFrame ping = peer.takeFrame();\n Assert.assertEquals(TYPE_PING, ping.type);\n Assert.assertEquals(2, ping.payload1);\n }", "public static void main(String[] args) throws IOException, InterruptedException { HttpGet getIndex = new HttpGet(\"http://www.moswar.ru/\");\n//\n// HttpResponse indexResponse = client.execute(getIndex);\n//\n// System.out.println(indexResponse.getStatusLine());\n// System.out.println(indexResponse.toString());\n//\n//\n\n JSONObject data;\n\n login(\"sensej_sanjok@inbox.lv\",\"`1\");\n\n index();\n\n blackJackIndex();\n\n data = newBet(Bet.random());\n\n\n String mySumm = null;\n String myHand = getMyHand(data);\n if (!myHand.contains(\"A\"))\n mySumm = getMySumm(data);\n String dealerHand = getDealerHand(data);\n\n int i = 0;\n\n all:\n while(i < 100){\n //TODO if \"check\" right or left winner or looser - new game - alternative - check if > 21 then new game\n if (mySumm != null && Integer.parseInt(mySumm) > 17){\n ++i;\n if (Integer.parseInt(mySumm) <= 21)\n endGame(stand());\n else System.out.println(\"Dealer WIN\");\n data = newBet(Bet.random());\n myHand = getMyHand(data);\n mySumm = null;\n if (!myHand.contains(\"A\"))\n mySumm = getMySumm(data);\n dealerHand = getDealerHand(data);\n }\n else{\n switch (Answer.getTurn(myHand, dealerHand)){\n case \"S\": //STAND\n ++i;\n endGame(stand());\n\n// break all;\n data = newBet(Bet.random());\n myHand = getMyHand(data);\n mySumm = null;\n if (!myHand.contains(\"A\"))\n mySumm = getMySumm(data);\n dealerHand = getDealerHand(data);\n break;\n case \"H\": //HIT\n data = more();\n mySumm = getMyNextSumm(data);\n myHand = mySumm;\n break;\n case \"D\": //DOUBLE\n //TODO check if can double\n if (checkDouble(data)){\n data = doubleBet();\n mySumm = getMyNextSumm(data);\n myHand = mySumm;\n }else{\n data = more();\n mySumm = getMyNextSumm(data);\n myHand = mySumm;\n }\n break;\n case \"P\": //SPLIT\n data = more();\n mySumm = getMyNextSumm(data);\n myHand = mySumm;\n break;\n default:\n break;\n }\n\n }\n }\n\n client.getConnectionManager().shutdown();\n out.close();\n }", "public String cipher() {\n int[] r1taps = {13, 16, 17, 18};\n int[] r2taps = {20, 21};\n int[] r3taps = {7, 20, 21, 22};\n\n // Set register size and majority bits\n final int R1 = 19;\n final int R1M = 8;\n final int R2 = 22;\n final int R2M = 10;\n final int R3 = 23;\n final int R3M = 10;\n\n // Initialize variables\n String bs = \"\";\n byte[] key = HexStringToBytes(symKey);\n BitSet keySet = new BitSet();\n BitSet keyStream = new BitSet();\n BitSet messageSet = new BitSet();\n\n // Create a byte array length of sample message\n byte[] messageArray = new byte[message.length()];\n\n // Convert the sample message to a byte array\n try {\n messageArray = message.getBytes(\"ISO-8859-1\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n\n // Convert message sample byte array to string\n String as = \"\";\n for (int i = 0; i < messageArray.length; i++) {\n byte b1 = messageArray[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n as += s;\n }\n\n // Convert string of bits to a BitSet\n messageSet = BitStringToBitSet(as);\n\n // Creates string from key byte array\n for (int i = 0; i < 8; i++) {\n byte b1 = key[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n bs += s;\n }\n\n // Convert string of bits to a BitSet\n keySet = BitStringToBitSet(bs);\n\n // Initialize registers\n BitSet r1 = new BitSet();\n BitSet r2 = new BitSet();\n BitSet r3 = new BitSet();\n\n // Process key into registers\n for (int i = 0; i < 64; i++) {\n r1 = ShiftSet(r1, R1, keySet.get(i) ^ Tap(r1, r1taps));\n r2 = ShiftSet(r2, R2, keySet.get(i) ^ Tap(r2, r2taps));\n r3 = ShiftSet(r3, R3, keySet.get(i) ^ Tap(r3, r3taps));\n }\n\n // Clock additional 100 times for additional security (GSM standard)\n for (int i = 0; i < 100; i++) {\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n }\n\n // Create keystream as long as the sample message\n for (int i = 0; i < message.length() * 8; i++) {\n\n // Get keystream bit\n keyStream.set(i, r1.get(R1 - 1) ^ r2.get(R2 - 1) ^ r3.get(R3 - 1));\n\n // Shift majority registers\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n\n }\n\n // XOR the message with the created keystream and return as string\n messageSet.xor(keyStream);\n return BitStringToText(ReturnSet(messageSet, message.length() * 8));\n }", "public WarpSSLData getSSL()\r\n throws IOException {\r\n \r\n if (closed) throw new IOException(\"Stream closed\");\r\n this.packet.reset();\r\n this.packet.setType(Constants.TYPE_ASK_SSL);\r\n this.request.getConnection().send(packet);\r\n packet.reset();\r\n\r\n this.request.getConnection().recv(packet);\r\n if (closed) throw new IOException(\"Stream closed\");\r\n if (packet.getType()==Constants.TYPE_REP_SSL_NO) return(null);\r\n if (packet.getType()!=Constants.TYPE_REP_SSL)\r\n throw new IOException(\"Invalid WARP packet type for SSL data\");\r\n WarpSSLData ssldata = new WarpSSLData();\r\n ssldata.ciph = this.packet.readString();\r\n ssldata.sess = this.packet.readString();\r\n ssldata.size = this.packet.readInteger();\r\n return(ssldata);\r\n }", "public static void main(String[] args) throws IOException, CryptoException{\n\t\t\n\t\tSocket proxySocket = null;\n\t\tPrintStream out = null;\n\t\tBufferedInputStream in = null;\n\t\t\n\t\ttry{\n\t\t\tproxySocket = new Socket(\"localhost\",2222);\n\t\t\tout = new PrintStream(proxySocket.getOutputStream(),true);\n\t\t\tin = new BufferedInputStream (proxySocket.getInputStream());\n\t\t}catch (UnknownHostException e){\n\t\t\tSystem.err.println(\"Don't know about the host\");\n\t\t\tSystem.exit(1);\n\t\t}catch (IOException e){\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"connection setup @ main\");\n\t\n\t\tlong starttime = System.currentTimeMillis();\n\t\tkeyRequest(in,out);\n\t\tlong t1 = System.currentTimeMillis();\n\t\tSystem.out.println(\"Keys@Main: \"+N+\" \"+G+\" \"+H);\n\t\tscm = new Scheme(N,G,H);\t// new encryption scheme generated!\n\t\tSystem.out.println(\"Encryption scheme setup!\");\n\n\t\t\n\t\t//mock computation of similarity without l and w paras\n\t\t/*data that should be stored elsewhere in some database*/\n\t\tBigInteger[] dataA = new BigInteger[500];\n\t\tBigInteger[] dataB = new BigInteger[500];\n\t\tfor(int i=0; i<dataA.length;i++)\n\t\t\tdataA[i]=new BigInteger(2,new Random());\n\t\tfor(int i=0; i<dataB.length;i++)\n\t\t\tdataB[i]=new BigInteger(2,new Random());\n\t\tBigInteger[] sqr_dataA = new BigInteger[500];\n\t\tBigInteger[] sqr_dataB = new BigInteger[500];\n\t\tfor(int i=0; i<dataA.length; i++)\n\t\t\tsqr_dataA[i] = dataA[i].modPow(BigInteger.valueOf(2), N);\n\t\tfor(int i=0; i<dataB.length; i++)\n\t\t\tsqr_dataB[i] = dataB[i].modPow(BigInteger.valueOf(2), N);\n\t\tBigInteger[] Numerator,Denominator,d1,d2;\n\t\tint len = 0;\n\t\t//calculate numerator\n\t\tBigInteger[] temp;\n\t\tlen = dataA.length; //to be modified later\n\t\tBigInteger[] p1,p2;\n\t\tp1 = scm.encrypt(dataA[0]);\n\t\tp2 = scm.encrypt(dataB[0]);\n\t\tNumerator = secureMul(p1,p2,in,out);\n\t\tfor(int i = 1;i<len; i++)\n\t\t{\n\t\t\tp1 = scm.encrypt(dataA[0]);\n\t\t\tp2 = scm.encrypt(dataB[0]);\n\t\t\ttemp = secureMul(p1,p2,in,out);\n\t\t\tNumerator = scm.homo_add(temp,Numerator);\n\t\t}\n\t\tSystem.out.println(\"Numerator got!@Main\");\n\t\t//calculate denominator\n\t\td1 = scm.encrypt(sqr_dataA[0]);\n\t\td2 = scm.encrypt(sqr_dataA[1]);\n\t\tfor (int i =1; i<len; i++)\n\t\t{\n\t\t\td1 = scm.homo_add(d1, scm.encrypt(sqr_dataA[i]));\n\t\t\td1 = scm.homo_add(d1, scm.encrypt(sqr_dataB[i]));\n\t\t}\n\t\tDenominator = secureMul(d1,d2,in,out);\n\t\tSystem.out.println(\"Denominator got!@Main\");\n\t\t//calculate similarity\n\t\tBigInteger[] sim =pro_div(Numerator,Denominator,in,out);\n\t\tSystem.out.println(\"Similarity got!@Main \"+sim);\n\t\tlong stoptime = System.currentTimeMillis();\n\t\tlong totaltime = stoptime-starttime;\n\t\tSystem.out.println(\"Total time: \"+ totaltime + \"Key: \"+ (t1-starttime));\n\t\t\t\t\n\t\tSystem.out.println(\"Close connection @Main\");\n\t\tSystem.out.println(\"Send: \"+sent_overhead+\" Receive: \"+receive_overhead);\n\t\tout.close();\n\t\tin.close();\n\t\tproxySocket.close();\n\t}", "private void establishedHandle(FullExtTcpPacket packet) {\n if (packet.isSYN()) {\n // Re-receive the ACK+SYN, means that the receiver has not received the final ACK\n // So we re-send the ACK of the three-way handshake\n handleDataPacket(packet);\n } else if (packet.isACK()) {\n handleAcknowledgment(packet);\n } else {\n handleDataPacket(packet);\n }\n }", "void startChallenge();", "public synchronized void m29984l() {\n if (XGPushConfig.enableDebug) {\n C6864a.m29298c(\"TpnsChannel\", \"Action -> send heartbeatSlave \");\n }\n f23274i++;\n mo33398h();\n if (C6973b.m29763a().mo33291f(C6973b.m29776f())) {\n if (!C7048a.m30142d(C6973b.m29776f())) {\n C6864a.m29308i(Constants.ServiceLogTag, \"network is unreachable ,give up and go on slave service\");\n } else if (C6973b.m29776f() != null) {\n C6901c.m29459a().mo33104a((Runnable) new Runnable() {\n public void run() {\n boolean isForeiginPush = XGPushConfig.isForeiginPush(C6973b.m29776f());\n String str = Constants.ACTION_SLVAE_2_MAIN;\n String str2 = Constants.ServiceLogTag;\n if (isForeiginPush) {\n C6864a.m29308i(str2, \"isForeiginPush network is ok , switch to main service\");\n C6973b.m29767a(C6973b.m29776f(), str, 0);\n } else if (C6979b.m29795a(C6973b.m29776f()).mo33300b()) {\n C6864a.m29308i(str2, \"network is ok , switch to main service\");\n C6973b.m29767a(C6973b.m29776f(), str, 0);\n } else {\n C6864a.m29308i(str2, \"network is error , go on slave service\");\n }\n }\n });\n } else {\n C6864a.m29308i(Constants.ServiceLogTag, \"PushServiceManager.getInstance().getContext() is null\");\n }\n }\n }", "public void receiveResultpassLoad(\n loadbalance.LoadBalanceStub.PassLoadResponse result\n ) {\n }", "public void authenticate(View view) {\n String value = makeXor(xorNum.getBytes(), key.getBytes());\n\n if(socket.isConnected()){\n try {\n socket.getOutputStream().write(value.getBytes());\n socket.getOutputStream().flush();\n Toast.makeText(ControlActivity.this, \"Message Sent\", Toast.LENGTH_SHORT).show();\n } catch (IOException e) {\n e.printStackTrace();\n Toast.makeText(ControlActivity.this, \"Error in sending message\", Toast.LENGTH_SHORT).show();\n }\n }else{\n Toast.makeText(ControlActivity.this, \"Bluetooth connection lost!\", Toast.LENGTH_SHORT).show();\n }\n\n\n }", "@Override\n\tpublic void challenge14() {\n\n\t}", "public void run(){\r\n\t\ttry{\r\n\t\t\tbyte[] incommingByteArray = new byte[500000];\r\n\t\t\tint count = connectionSocketConected.getInputStream().read(incommingByteArray);\r\n//\t\t\tByteArrayInputStream bais = new ByteArrayInputStream(incommingByteArray);\r\n//\t\t\tDataInputStream inFromClient = new DataInputStream(connectionSocketConected.getInputStream());\t\t\r\n\t\t\t//Creates an object of the data which is to be send back to the client, via the connectionSocket\r\n//\t\t\tDataOutputStream outToClient = new DataOutputStream(connectionSocketConected.getOutputStream());\r\n\t\t\t//Sets client sentence equals input from client\r\n//\t\t\tincommingJson = inFromClient.toString();\t\t\r\n\t\t\t\r\n\t\t\tincommingJson = encryption.decrypt(incommingByteArray);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Besked modtaget!\");\r\n\t\t\tSystem.out.println(\"Received: \" + incommingJson);\r\n\t\t\tString returnAnswer = GS.GiantSwitchMethod(incommingJson);\r\n\t\t\tbyte[] returnAnswerCrypted = encryption.encrypt(returnAnswer);\r\n//\t\t\t//Sends the capitalized message back to client!!\r\n\t\t\tconnectionSocketConected.getOutputStream().write(returnAnswerCrypted);\r\n\t\t\t//BufferedWriter writer = new BufferedWriter(arg0)\r\n\t\t}catch(Exception exception){\r\n\t\t\tSystem.err.print(exception);\r\n\t\t}\r\n\t}", "public void mo33395e() {\n if (XGPushConfig.enableDebug) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Action -> checkAndSetupClient( tpnsClient = \");\n sb.append(this.f23297x);\n sb.append(\", isClientCreating = \");\n sb.append(this.f23298y);\n sb.append(\")\");\n C6864a.m29286a(\"TpnsChannel\", sb.toString());\n }\n synchronized (this) {\n if (this.f23297x == null && !this.f23298y) {\n this.f23298y = true;\n try {\n C6938d.m29638a().mo33180a(this.f23288H);\n } catch (Exception e) {\n C6864a.m29302d(\"TpnsChannel\", \"createOptimalSocketChannel error\", e);\n }\n } else if (!this.f23298y && this.f23297x != null && !this.f23297x.mo33374d()) {\n C6864a.m29308i(\"TpnsChannel\", \"The socket Channel is unconnected\");\n try {\n this.f23297x.mo33373c();\n C6938d.m29638a().mo33180a(this.f23288H);\n } catch (Exception e2) {\n C6864a.m29302d(Constants.ServiceLogTag, \"createOptimalSocketChannel error\", e2);\n }\n }\n }\n }", "@Override\n\tpublic void challenge13() {\n\n\t}", "private boolean m152576c(ByteBuffer byteBuffer) {\n ByteBuffer byteBuffer2;\n if (this.f113315n.capacity() == 0) {\n byteBuffer2 = byteBuffer;\n } else {\n if (this.f113315n.remaining() < byteBuffer.remaining()) {\n ByteBuffer allocate = ByteBuffer.allocate(this.f113315n.capacity() + byteBuffer.remaining());\n this.f113315n.flip();\n allocate.put(this.f113315n);\n this.f113315n = allocate;\n }\n this.f113315n.put(byteBuffer);\n this.f113315n.flip();\n byteBuffer2 = this.f113315n;\n }\n byteBuffer2.mark();\n try {\n if (this.f113314m != AbstractC32931b.EnumC32933b.SERVER) {\n if (this.f113314m == AbstractC32931b.EnumC32933b.CLIENT) {\n this.f113313l.mo133057a(this.f113314m);\n Handshakedata d = this.f113313l.mo133064d(byteBuffer2);\n if (!(d instanceof ServerHandshake)) {\n mo133097c(1002, \"wrong http function\", false);\n return false;\n }\n ServerHandshake hVar = (ServerHandshake) d;\n if (this.f113313l.mo133053a(this.f113316o, hVar) == Draft.EnumC32935b.MATCHED) {\n try {\n this.f113309h.onWebsocketHandshakeReceivedAsClient(this, this.f113316o, hVar);\n m152572a((Handshakedata) hVar);\n return true;\n } catch (InvalidDataException e) {\n mo133097c(e.mo133079a(), e.getMessage(), false);\n return false;\n } catch (RuntimeException e2) {\n this.f113309h.onWebsocketError(this, e2);\n mo133097c(-1, e2.getMessage(), false);\n return false;\n }\n } else {\n mo133082a(1002, \"draft \" + this.f113313l + \" refuses handshake\");\n }\n }\n return false;\n } else if (this.f113313l == null) {\n for (Draft aVar : this.f113312k) {\n Draft c = aVar.mo133063c();\n try {\n c.mo133057a(this.f113314m);\n byteBuffer2.reset();\n Handshakedata d2 = c.mo133064d(byteBuffer2);\n if (!(d2 instanceof ClientHandshake)) {\n m152575b(new InvalidDataException(1002, \"wrong http function\"));\n return false;\n }\n ClientHandshake aVar2 = (ClientHandshake) d2;\n if (c.mo133052a(aVar2) == Draft.EnumC32935b.MATCHED) {\n this.f113320s = aVar2.mo133146a();\n try {\n m152570a(c.mo133050a(c.mo133055a(aVar2, this.f113309h.onWebsocketHandshakeReceivedAsServer(this, c, aVar2)), this.f113314m));\n this.f113313l = c;\n m152572a((Handshakedata) aVar2);\n return true;\n } catch (InvalidDataException e3) {\n m152575b(e3);\n return false;\n } catch (RuntimeException e4) {\n this.f113309h.onWebsocketError(this, e4);\n m152569a(e4);\n return false;\n }\n }\n } catch (InvalidHandshakeException unused) {\n }\n }\n if (this.f113313l == null) {\n m152575b(new InvalidDataException(1002, \"no draft matches\"));\n }\n return false;\n } else {\n Handshakedata d3 = this.f113313l.mo133064d(byteBuffer2);\n if (!(d3 instanceof ClientHandshake)) {\n mo133097c(1002, \"wrong http function\", false);\n return false;\n }\n ClientHandshake aVar3 = (ClientHandshake) d3;\n if (this.f113313l.mo133052a(aVar3) == Draft.EnumC32935b.MATCHED) {\n m152572a((Handshakedata) aVar3);\n return true;\n }\n mo133082a(1002, \"the handshake did finaly not match\");\n return false;\n }\n } catch (InvalidHandshakeException e5) {\n try {\n mo133089a(e5);\n } catch (IncompleteHandshakeException e6) {\n if (this.f113315n.capacity() == 0) {\n byteBuffer2.reset();\n int a = e6.mo133078a();\n if (a == 0) {\n a = byteBuffer2.capacity() + 16;\n } else if (!f113304g && e6.mo133078a() < byteBuffer2.remaining()) {\n throw new AssertionError();\n }\n this.f113315n = ByteBuffer.allocate(a);\n this.f113315n.put(byteBuffer);\n } else {\n ByteBuffer byteBuffer3 = this.f113315n;\n byteBuffer3.position(byteBuffer3.limit());\n ByteBuffer byteBuffer4 = this.f113315n;\n byteBuffer4.limit(byteBuffer4.capacity());\n }\n }\n }\n }", "@Override\n\tpublic void onOpen( ServerHandshake handshakedata ) {\n\t\tlog.info(\"opened connection\");\n\t\t// if you plan to refuse connection based on ip or httpfields overload: onWebsocketHandshakeReceivedAsClient\n\t}", "boolean challengeStart (String pHostname, String pValue);", "public void receiveResultConnect(\r\n\t\t\tcom.autometrics.analytics.v9.j2ee.webservices.v1_0.ConnectResponse result) {\r\n\t}", "public String[] reload() {\n this.betRound = 0;\n this.deck.reloadDeck();\n this.playerH = new Hand(this.deck.drawFiveCards());\n this.serverH = new Hand(this.deck.drawFiveCards());\n // if player is dealer, set player not dealer and state on player starts\n if(this.dealer == 1){\n this.dealer = 0;\n this.state = 2;\n // if player is dealer, server starts \n } else{\n this.dealer = 1;\n this.state = 1;\n }\n return this.playerH.getHandAsArray();\n }", "@Test\n\tpublic void savePasswordReplayAttackTest() throws RemoteException, NoSuchAlgorithmException, InvalidKeySpecException, IOException, InvalidKeyException, SignatureException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, UnrecoverableKeyException, KeyStoreException, CertificateException {\n\t\tPasswordManager pm = new PasswordManager(8080);\n\t\tString responseRegister = pm.registerUser(byteToString(cliPubKey.getEncoded()), \n\t\t\t\tDigitalSignature.getSignature(cliPubKey.getEncoded(),cliPrivKey));\n\n\t\t// Set global variables for Secret Key and Server Public Key based on the register\n\t\tbyte[] secretKeyByte = RSAMethods.decipher(responseRegister.split(\"-\")[2], cliPrivKey);\n\t\tString secretKeyStr = new String(secretKeyByte, \"UTF-8\");\n\t\tsecretKey = new SecretKeySpec(stringToByte(secretKeyStr), 0, stringToByte(secretKeyStr).length, \"HmacMD5\");\n\t\tservPubKey = getServerPublicKey(responseRegister.split(\"-\")[0]);\n\t\t\n\t\t// Simulate the request from client\n\t\tString domain = \"facebook\";\n\t\tString username = \"test\";\n\t\tString password = \"123aBc456\";\n\t\tint seqNum = 0;\n\t\tString msg = messageToSend(domain,username,password,\"0\",seqNum);\n\t\t\n\t\t// Simulate a Replay Attack by sending the same message twice\n\t\tpm.savePassword(msg);\n\t\tString saveResponse2 = pm.savePassword(msg.toString()); // Replay attack by sending msg twice\n\t\t\n\t\t// Check the way server deals with freshness of messages\n\t\tbyte[] responseTest = RSAMethods.decipher(saveResponse2.split(\"-\")[0],cliPrivKey);\n\t\tString responseTestStr = new String(responseTest, \"UTF-8\");\n\t\tAssert.assertEquals(\"Error\", responseTestStr);\n\t}", "private byte[] sendServerCoded(byte[] message) { \n\t\tbyte[] toPayload = SecureMethods.preparePayload(username.getBytes(), message, counter, sessionKey, simMode);\n\t\tbyte[] fromPayload = sendServer(toPayload, false);\n\n\t\tbyte[] response = new byte[0];\n\t\tif (checkError(fromPayload)) {\n\t\t\tresponse = \"error\".getBytes();\n\t\t} else {\n\t\t\tresponse = SecureMethods.processPayload(\"SecretServer\".getBytes(), fromPayload, counter+1, sessionKey, simMode);\n\t\t}\n\t\tcounter = counter + 2;\n\t\treturn response;\n\t}", "@Test\r\n\tpublic void testF() {\r\n\t\t\r\n\t\tObjectHandshake h = new ObjectHandshake();\r\n\t\th.setUuid( UuidTool.getOne() );\r\n\t\t\r\n\t\tRunProtocol run = null;\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_A, 100, 200, true, false);\r\n\t\tassertTrue(run.beginA());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_B, 100, 200, true, false);\r\n\t\tassertTrue(run.commitA());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_B, 100, 200, true, false);\r\n\t\tassertTrue(run.beginB());\r\n\t\t\r\n\t\trun = new RunProtocol(h, IHandshake.PARTNER_A, 100, 200, true, false);\r\n\t\tassertTrue(run.commitB());\r\n\t\t\r\n\t\tassertEquals(h.getLog(), \"1-8-100-2-8-101-2-2-200-1-2-201-\");\r\n\t}", "private static String doLogin(Request req, Response res) {\n HashMap<String, String> respMap;\n \n res.type(Path.Web.JSON_TYPE);\n \n \n\t String email = Jsoup.parse(req.queryParams(\"email\")).text();\n \n logger.info(\"email from the client = \" + email);\n \n if(email != null && !email.isEmpty()) { \n \n\t server = new SRP6JavascriptServerSessionSHA256(CryptoParams.N_base10, CryptoParams.g_base10);\n\t \t\t\n\t gen = new ChallengeGen(email);\n\t\t\n\t respMap = gen.getChallenge(server);\n \n if(respMap != null) {\n\t\t logger.info(\"JSON RESP SENT TO CLIENT = \" + respMap.toString());\n res.status(200);\n respMap.put(\"code\", \"200\");\n respMap.put(\"status\", \"success\");\n return gson.toJson(respMap);\n }\n }\n respMap = new HashMap<>();\n \n res.status(401);\n respMap.put(\"status\", \"Invalid User Credentials\");\n respMap.put(\"code\", \"401\");\n logger.error(\"getChallenge() return null map most likely due to null B value and Invalid User Credentials\");\n \treturn gson.toJson(respMap);\n}", "public abstract ConnectionResult mo27375a();" ]
[ "0.6554614", "0.63363534", "0.63117886", "0.62873214", "0.6202303", "0.6197986", "0.60003805", "0.5956803", "0.59240294", "0.5870217", "0.58425933", "0.580047", "0.57979625", "0.57759124", "0.5756618", "0.57485527", "0.57370615", "0.57104725", "0.5624748", "0.56126875", "0.5591372", "0.55657715", "0.55614316", "0.5533434", "0.55116403", "0.5495707", "0.5481042", "0.54751426", "0.54274815", "0.5403799", "0.5394913", "0.537828", "0.5369813", "0.5354902", "0.5353691", "0.53517234", "0.534381", "0.5339564", "0.53171045", "0.52872306", "0.52813107", "0.5258709", "0.5247029", "0.52229184", "0.52020633", "0.51844496", "0.5157802", "0.5156619", "0.5151255", "0.51345235", "0.51296407", "0.5126621", "0.5123556", "0.51193416", "0.5106081", "0.5093853", "0.50909585", "0.5090564", "0.50895506", "0.5089544", "0.50757384", "0.505567", "0.5033605", "0.50332", "0.50135314", "0.50079817", "0.5005913", "0.50035894", "0.50012034", "0.49952233", "0.49908113", "0.49855274", "0.49833074", "0.49782944", "0.4969498", "0.49621642", "0.4955094", "0.49448454", "0.49443638", "0.49399135", "0.49310234", "0.4928175", "0.49224252", "0.49187586", "0.49140707", "0.49115115", "0.4904454", "0.48994127", "0.4892248", "0.48905912", "0.48889506", "0.48852563", "0.48695663", "0.48622602", "0.484839", "0.48481217", "0.48474953", "0.4843731", "0.48431033", "0.4842385", "0.48354733" ]
0.0
-1
// Alarm to getting notification only befor one hour of the main alarm
private void scheduleNotification(Notification notification) { Intent notificationIntent2 = new Intent(MainActivity.this, NotificationPublisher.class); notificationIntent2.putExtra(NotificationPublisher.NOTIFICATION_ID, 1); notificationIntent2.putExtra(NotificationPublisher.NOTIFICATION, notification); PendingIntent pendingIntent2 = PendingIntent.getBroadcast(MainActivity.this, 0, notificationIntent2, PendingIntent.FLAG_UPDATE_CURRENT); Date date = new Date(); Calendar calnoti = Calendar.getInstance(); calnoti.setTime(date); calnoti.set(Calendar.HOUR_OF_DAY, mHour-1); calnoti.set(Calendar.MINUTE, mMin); calnoti.set(Calendar.SECOND, 0); calnoti.set(Calendar.YEAR,mYear); calnoti.set(Calendar.MONTH,mMonth); calnoti.set(Calendar.DAY_OF_MONTH,mDay); //long futureInMillis2 = SystemClock.elapsedRealtime() + delay; AlarmManager alarmManager2 = (AlarmManager) getSystemService(Context.ALARM_SERVICE); alarmManager2.set(AlarmManager.RTC_WAKEUP, calnoti.getTimeInMillis(), pendingIntent2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNotificationAlarm() {\n // get hour and minute from time preference\n SharedPreferences settingsPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n String time = settingsPrefs.getString(SettingsActivity.KEY_NOTIFICATION_TIME, TimePreference.DEFAULT_TIME);\n final int notificationHour = TimePreference.getHourFromString(time);\n final int notificationMinute = TimePreference.getMinuteFromString(time);\n\n // build DateTime for next alarm\n ZonedDateTime notificationTime = ZonedDateTime.now()\n .truncatedTo(ChronoUnit.DAYS)\n .plusHours(notificationHour)\n .plusMinutes(notificationMinute);\n\n if (notificationTime.isBefore(ZonedDateTime.now())) {\n notificationTime = notificationTime.plusDays(1);\n }\n\n // create alarm\n AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);\n am.setInexactRepeating(AlarmManager.RTC_WAKEUP,\n notificationTime.toInstant().toEpochMilli(),\n AlarmManager.INTERVAL_DAY,\n buildAlarmPendingIntent());\n\n // too ensure alarm is recreated if device is restarted\n setBootReceiverEnabled(true);\n }", "Alarm createAlarm();", "private static void triggerDailyAlarm(Context context, int hour, int minute, PendingIntent alarmIntent) {\n Calendar alarmTime = getBaseCalendar();\n alarmTime.set(Calendar.HOUR_OF_DAY, hour);\n alarmTime.set(Calendar.MINUTE, minute);\n\n // Check if alarm should be in the next day.\n if (alarmTime.before(Calendar.getInstance())) {\n alarmTime.setTimeInMillis(alarmTime.getTimeInMillis() + 86400000);\n }\n\n // Cancel existing alarms.\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n alarmManager.cancel(alarmIntent);\n\n // Trigger the alarm daily on the given time.\n alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, alarmTime.getTimeInMillis(), 86400000, alarmIntent);\n }", "public void scheduleAlarm()\n {\n hour = timePicker.getCurrentHour(); //get hour\n minute = timePicker.getCurrentMinute(); //get minutes\n alarmMgr = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(getApplicationContext(), AlarmReceiver.class);\n alarmIntent = PendingIntent.getBroadcast(getApplicationContext(), 0, intent, 0);\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n calendar.set(Calendar.HOUR_OF_DAY, hour);\n calendar.set(Calendar.MINUTE, minute);\n\n alarmMgr.setInexactRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY, alarmIntent);\n Toast.makeText(this, \"Alarm scheduled for \" + hour + \":\" + minute, Toast.LENGTH_SHORT).show();\n\n }", "private void setHeartRateMonitor()\n {\n\n Calendar cal = Calendar.getInstance();\n Date now = new Date();\n cal.setTime(now);\n\n long alarm_time = cal.getTimeInMillis();\n\n// if(cal.before(Calendar.getInstance()))\n// alarm_time += 60*1000;\n\n AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n\n Intent intent = new Intent(this, HeartRateMonitor.class);\n\n PendingIntent pendingIntent = PendingIntent.getBroadcast(this, HEART_RATE_MONITOR_REQUEST_CODE, intent,PendingIntent.FLAG_UPDATE_CURRENT);\n\n alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, alarm_time,90000, pendingIntent);\n\n Log.i(\"hrmonitor\",\"hrmonitor alarm set\");\n }", "public void scheduleAlarm() {\n Log.v(getClass().getSimpleName(), \"Scheduling alarm\");\n\n // Construct an intent that will execute the AlarmReceiver\n Intent intent = new Intent(getApplicationContext(), AlarmReceiver.class);\n\n // Create a PendingIntent to be triggered when the alarm goes off\n final PendingIntent pIntent = PendingIntent.getBroadcast(this, AlarmReceiver.REQUEST_CODE,\n intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Setup periodic alarm every every half hour from this point onwards\n long firstMillis = System.currentTimeMillis(); // alarm is set right away\n AlarmManager alarm = (AlarmManager) this.getSystemService(Context.ALARM_SERVICE);\n\n // First parameter is the type: ELAPSED_REALTIME, ELAPSED_REALTIME_WAKEUP, RTC_WAKEUP\n // Interval can be INTERVAL_FIFTEEN_MINUTES, INTERVAL_HALF_HOUR, INTERVAL_HOUR, INTERVAL_DAY\n alarm.setInexactRepeating(AlarmManager.RTC_WAKEUP, firstMillis,\n AlarmManager.INTERVAL_FIFTEEN_MINUTES, pIntent);\n }", "public void updateAlarmTime (){\r\n\t\tint newHour, newMinut;\r\n\t\t\r\n\t\tif (relative) { //Before\r\n\t\t\tnewMinut = reference.getMinutes() - alarmMinutes;\r\n\t\t\tnewHour = reference.getHours() - alarmHours - ((newMinut<0)?1:0);\r\n\t\t\tnewMinut = (newMinut<0)?newMinut+60:newMinut;\r\n\t\t\tnewHour = (newHour<0)?newHour+24:newHour;\r\n\t\t} else {\r\n\t\t\tnewMinut = reference.getMinutes() + alarmMinutes;\r\n\t\t\tnewHour = reference.getHours() + alarmHours + ((newMinut>=60)?1:0);\r\n\t\t\tnewMinut = (newMinut>=60)?newMinut-60:newMinut;\r\n\t\t\tnewHour = (newHour>=240)?newHour-24:newHour;\r\n\t\t}\r\n\r\n\t\tthis.alarmTime.setHours(newHour);\r\n\t\tthis.alarmTime.setMinutes(newMinut);\r\n\t}", "public void scheduleAlarm() {\n Intent intent = new Intent(getApplicationContext(), MyAlarmReceiver.class);\n\n // Create a PendingIntent to be triggered when the alarm goes off\n final PendingIntent pendingIntent = PendingIntent.getBroadcast(this, MyAlarmReceiver.REQUEST_CODE, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n long firstMillis = System.currentTimeMillis(); // alarm is set right away\n\n AlarmManager alarm = (AlarmManager) this.getSystemService(Context.ALARM_SERVICE);\n\n // First parameter is the type: ELAPSED_REAL_TIME, ELAPSED_REAL_TIME_WAKEUP, RTC_WAKEUP\n // Interval can be INTERVAL_FIFTEEN_MINUTES, INTERVAL_HALF_HOUR, INTERVAL_HOUR, INTERVAL_DAY\n try {\n alarm.setInexactRepeating(AlarmManager.RTC_WAKEUP, firstMillis, 5000L, pendingIntent);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n\n }", "private void checkAlarm() {\n\t\tif(this.alarmHour==this.currHour && this.alarmMin==Integer.valueOf(this.currMin)) {\n\t\t\ttimer.cancel();\n\t\t\tSystem.out.println(this.alarmMsg+\"\\nThe time is \"+this.currHour+\":\"+this.currMin);\n\t\t\tString time;\n\t\t\tif(String.valueOf(alarmHour).length()==1) {\n\t\t\t\ttime= \"0\"+alarmHour+\":\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttime=alarmHour+\":\";\n\t\t\t}\n\t\t\tif(String.valueOf(alarmMin).length()==1) {\n\t\t\t\ttime+=\"0\"+alarmMin;\n\t\t\t}else {\n\t\t\t\ttime+=alarmMin;\n\t\t\t}\n\t\t\tJOptionPane.showMessageDialog(null, alarmMsg + \" - \"+ time+\"\\n\"+\"The time is \"+ time);\n\t\t}\n\t}", "@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n\n AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n Intent notificationIntent = new Intent(\"android.media.action.DISPLAY_NOTIFICATION\");\n notificationIntent.addCategory(\"android.intent.category.DEFAULT\");\n\n PendingIntent broadcast = PendingIntent.getBroadcast(this, 100, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n Calendar cal = Calendar.getInstance();\n cal.add(Calendar.HOUR, 18);\n\n\n// alarmManager.setExact(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), broadcast);\n alarmManager.setRepeating(AlarmManager.RTC, cal.getTimeInMillis(), alarmManager.INTERVAL_DAY, broadcast);\n\n\n// alarmManager.setExact(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), broadcast);\n return START_STICKY;\n }", "public static void scheduleRepeatingElapsedNotification45(Context context) {\n\n\n // Setting intent to class where notification will be handled\n Intent intent = new Intent(context, AlarmReceiver.class);\n\n // Setting pending intent to respond to broadcast sent by AlarmManager everyday at 8am\n alarmIntentElapsed = PendingIntent.getBroadcast(context, ALARM_TYPE_ELAPSED, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Getting instance of AlarmManager service\n alarmManagerElapsed = (AlarmManager)context.getSystemService(ALARM_SERVICE);\n\n // Daily inexact alarm from phone boot - current set to test for 10 seconds\n alarmManagerElapsed.setInexactRepeating(AlarmManager.ELAPSED_REALTIME, SystemClock.elapsedRealtime(), 60000 * 45, alarmIntentElapsed);\n }", "public void setAlarm() {\n\t\tid.toAlarm();\n\t}", "public void setAlarm(Context context, Alarm alarm) {\n // instantiate the system alarm service manager\n alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n // instantiate an intent for the AlarmReciever\n Intent intent = new Intent(context, AlarmReceiver.class);\n // pass the alarm id as an extra to be extracted in the receivier\n intent.putExtra(\"alarmID\", alarm.getId());\n // check if the alarm is on\n if (alarm.isOn()) {\n // if so check if it is recurring\n if (alarm.isRecurring()) {\n // for each day stipulated in the alarm, schedule an new alarm, each alarm id will\n // be multiplied with 10 and then an integer representation of each day will be\n // added i.e. alarm id = 10 and days a Sun = 1, Mon = 2... Sat = 7 therefore\n // sun alarm id = 101, Mon alarm id = 102... Sat alarm id = 107.\n for (Integer day : alarm.getDays()) {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId() * 10).intValueExact() + day, intent, 0);\n // instantiate a calander object\n Calendar calendar = Calendar.getInstance();\n // set to the current system time\n calendar.setTimeInMillis(System.currentTimeMillis());\n // set the calender day to day i.e. sun = 1, mon = 2 etc...\n calendar.set(Calendar.DAY_OF_WEEK, day);\n // set the calendar hour to alarm hour\n calendar.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n // as per hour, set to alarm minutes\n calendar.set(Calendar.MINUTE, new Integer(alarm.getMin()));\n // set seconds to 0 alarm activates close to 0th second of minute\n calendar.set(Calendar.SECOND, 0);\n // as alarm is recurring schedule the alarm to repeat every 7 day from set time\n // specified by alarm set calendar object\n alarmMgr.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY * 7, alarmIntent);\n }\n } else {\n // if the alarm is not recurring\n // uniquely identify the intent for each day and ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId() * 10).intValueExact(), intent, 0);\n // get a calendar object\n Calendar calNow = Calendar.getInstance();\n // set the time to current system time\n calNow.setTimeInMillis(System.currentTimeMillis());\n // get a second instance of calendar\n Calendar calSet = (Calendar) calNow.clone();\n // set the time of the calendar object to the alarm specified time\n calSet.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n calSet.set(Calendar.MINUTE, new Integer(alarm.getMin()));\n calSet.set(Calendar.SECOND, 0);\n // check if the alarm specified time is set to before the current time\n if (calSet.compareTo(calNow) <= 0) {\n //Today Set time passed, count to tomorrow\n calSet.add(Calendar.DATE, 1);\n }\n // set the alarm to activate at once at the calendar specified time\n alarmMgr.setExact(AlarmManager.RTC_WAKEUP,\n calSet.getTimeInMillis(), alarmIntent);\n }\n }\n }", "void setTestAlarm() \n {\n \t// start with now\n java.util.Calendar c = java.util.Calendar.getInstance();\n c.setTimeInMillis(System.currentTimeMillis());\n\n int nowHour = c.get(java.util.Calendar.HOUR_OF_DAY);\n int nowMinute = c.get(java.util.Calendar.MINUTE);\n\n int minutes = (nowMinute + 1) % 60;\n int hour = nowHour + (nowMinute == 0 ? 1 : 0);\n\n saveAlarm(this, mId, true, hour, minutes, mRepeatPref.getDaysOfWeek(),\n true, \"\", mAlarmPref.getAlertString(), true);\n }", "public void setAlarm (int alarm) { this.alarm = alarm; }", "public static void scheduleRepeatingElapsedNotification15(Context context) {\n\n\n // Setting intent to class where notification will be handled\n Intent intent = new Intent(context, AlarmReceiver.class);\n\n // Setting pending intent to respond to broadcast sent by AlarmManager everyday at 8am\n alarmIntentElapsed = PendingIntent.getBroadcast(context, ALARM_TYPE_ELAPSED, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Getting instance of AlarmManager service\n alarmManagerElapsed = (AlarmManager)context.getSystemService(ALARM_SERVICE);\n\n // Daily inexact alarm from phone boot - current set to test for 10 seconds\n alarmManagerElapsed.setInexactRepeating(AlarmManager.ELAPSED_REALTIME, SystemClock.elapsedRealtime(), 60000 * 15, alarmIntentElapsed);\n }", "public static void scheduleRepeatingElapsedNotification60(Context context) {\n\n\n // Setting intent to class where notification will be handled\n Intent intent = new Intent(context, AlarmReceiver.class);\n\n // Setting pending intent to respond to broadcast sent by AlarmManager everyday at 8am\n alarmIntentElapsed = PendingIntent.getBroadcast(context, ALARM_TYPE_ELAPSED, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Getting instance of AlarmManager service\n alarmManagerElapsed = (AlarmManager)context.getSystemService(ALARM_SERVICE);\n\n // Daily inexact alarm from phone boot - current set to test for 10 seconds\n alarmManagerElapsed.setInexactRepeating(AlarmManager.ELAPSED_REALTIME, SystemClock.elapsedRealtime(), 60000 * 60, alarmIntentElapsed);\n }", "public void setAlarmClock() {\n\n }", "public void setRepeatingAlarm(Context context, int type) {\n\n\n Intent intent = new Intent(context, AlarmReceiver.class);\n intent.putExtra(EXTRA_TYPE, type);\n\n String time = \"00:00\";\n if (type == Const.REQUEST_RELEASE_REMINDER) {\n time = Const.TIME_RELEASE_REMINDER;\n } else {\n time = Const.TIME_DAILY_REMINDER;\n }\n String[] timeArray = time.split(\":\");\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, Integer.parseInt(timeArray[0]));\n calendar.set(Calendar.MINUTE, Integer.parseInt(timeArray[1]));\n calendar.set(Calendar.SECOND, 0);\n\n PendingIntent pendingIntent = PendingIntent.getBroadcast(\n context,\n type,\n intent,\n 0);\n\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n if (alarmManager != null) {\n alarmManager.setInexactRepeating(\n AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY,\n pendingIntent\n );\n\n /*if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n alarmManager.setAndAllowWhileIdle(AlarmManager.RTC_WAKEUP, 0, pendingIntent);\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n alarmManager.setExact(AlarmManager.RTC_WAKEUP, 0, pendingIntent);\n } else {\n alarmManager.set(AlarmManager.RTC_WAKEUP, 0, pendingIntent);\n }\n */\n\n Log.d(TAG, \"setRepeatingAlarm: Set \" + type + \" = \" + time);\n }\n\n }", "public void SetAlarm(Context context)\n {\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n calendar.set(Calendar.HOUR_OF_DAY, 7);\n calendar.set(Calendar.MINUTE,20);\n Log.i(\"Set calendar\", \"for time: \" + calendar.toString());\n\n //Intent i = new Intent(context, AlarmService.class);\n Intent i = new Intent(context, Alarm.class);\n boolean alarmRunning = (PendingIntent.getBroadcast(context, 0, i, PendingIntent.FLAG_NO_CREATE) !=null);\n if (!alarmRunning) {\n //PendingIntent pi = PendingIntent.getService(context, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);\n PendingIntent pi = PendingIntent.getService(context, 0, i, 0);\n\n\n\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, i, 0);\n AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);\n am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, pendingIntent);\n //am.cancel(pi);\n }\n\n //PendingIntent pi = PendingIntent.getBroadcast(context, 0, i, 0 );\n\n\n //am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),AlarmManager.INTERVAL_DAY, pi);\n\n }", "public void OnToggleClicked(View view)\n {\n\n long time;\n if (((ToggleButton) view).isChecked())\n {\n //startActivity(Intent)\n Toast.makeText(MainActivity.this, \"ALARM ON\", Toast.LENGTH_SHORT).show();\n Calendar calendar=Calendar.getInstance();\n\n int currentApiVersion = android.os.Build.VERSION.SDK_INT;\n if (currentApiVersion > android.os.Build.VERSION_CODES.LOLLIPOP_MR1)\n {\n calendar.set(Calendar.HOUR_OF_DAY,alarmTimePicker.getHour());\n calendar.set(Calendar.MINUTE, alarmTimePicker.getMinute());\n }\n else {\n calendar.set(Calendar.HOUR_OF_DAY,alarmTimePicker.getCurrentHour());\n calendar.set(Calendar.MINUTE, alarmTimePicker.getCurrentMinute());\n }\n\n Intent intent = new Intent(this, AlarmReceiver.class);\n pendingIntent = PendingIntent.getBroadcast(this, 0, intent, 0);\n\n time=(calendar.getTimeInMillis()-(calendar.getTimeInMillis()%60000));\n if(System.currentTimeMillis()>time)\n {\n if (Calendar.AM_PM == 0)\n time = time + (1000*60*60*12);\n else\n time = time + (1000*60*60*24);\n }\n alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, time, 10000, pendingIntent);\n }\n else\n {\n alarmManager.cancel(pendingIntent);\n Toast.makeText(MainActivity.this, \"ALARM OFF\", Toast.LENGTH_SHORT).show();\n }\n //public class DeezerConnect.Builder();\n }", "public void startAlarm() {\n AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n\n Calendar calendar = Calendar.getInstance();\n\n // Set alarm only if the remained time is over 10 minutes\n if (time >10 ) {\n //TODO: Change to ((time * 60000) - 600000) for 10 minutes before\n calendar.setTimeInMillis((System.currentTimeMillis() + ((time * 1000)) - 10000)); // Alarm set to 10 sec before the booking\n\n Log.d(TAG, \"current time = \" + new Date().toLocaleString());\n// Log.d(TAG, \"current time = \" + System.currentTimeMillis());\n Log.d(TAG, \"Alarm set at = \" + calendar.getTime());\n\n /* no Repeat */\n manager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),\n 0, pendingIntent);\n }\n\n }", "public AlarmManager setMidnightAlarmManager(Context context){\n Log.d(\"AlarmRCV\", \"Set alarm\");\n Intent intent = new Intent(context, AlarmReceiver.class);\n alarmIntent = PendingIntent.getBroadcast(context,0,intent,0);\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n\n calendar.set(Calendar.HOUR_OF_DAY,23);\n calendar.set(Calendar.MINUTE,58);\n calendar.set(Calendar.SECOND,0);\n\n\n AlarmManager alarm = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n alarm.setRepeating(AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY,\n alarmIntent\n );\n\n\n return alarm;\n }", "public void setAlarm(int time, String name){\n\t}", "public void setNextAlarm(){\n }", "public void setAlarm(Context context, int pk, long time, int Hora, int Minuto) {\n\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n calendar.set(Calendar.HOUR_OF_DAY, Hora);\n calendar.set(Calendar.MINUTE, Minuto);\n\n\n //Se crea la hora correcta para el sistema\n long newTime = 1000 * 60 * 60 * time;\n AlarmManager manager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n Intent alarmIntent = new Intent(context, AlarmReceiver.class);\n alarmIntent.putExtra(\"alarma\", pk);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, pk, alarmIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n manager.setInexactRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), newTime, pendingIntent);\n\n\n\n }", "public void startAlarm(){\r\n\t\tAlarm alarm = new Alarm(\"magAanvallen\", 1 / aanvallenPerSeconden);\r\n\t\talarm.addTarget(this);\r\n\t\talarm.start();\r\n\t}", "public Alarm() {\n\n\t\tMachine.timer().setInterruptHandler(new Runnable() {\n\t\t\tpublic void run() { timerInterrupt(); }\n\t\t});\n\t}", "public void startAlarm(Context context) {\n\n System.out.println(\"startAlarm\");\n\n\n\n //creates Object of AlarmManager\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n\n //passing the Alarm to AlertReceiver Class\n Intent intent = new Intent(context, AlertReceiver.class);\n final int id = (int) System.currentTimeMillis();\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, id, intent, 0);\n\n //Compares the chosen time with the real time\n if (c.before(Calendar.getInstance())) {\n c.add(Calendar.DATE, 1);\n }\n\n alarmManager.setExact(AlarmManager.RTC_WAKEUP, c.getTimeInMillis(), pendingIntent);\n\n\n }", "public static void viewAlarms(){\r\n\t\t\r\n\t}", "public void checkTimes(){\r\n\t\tcal = Calendar.getInstance();\r\n\t\t//if(alarmList.size() != 0){\r\n\t\tfor(int i = 0; i < alarmList.size(); i++){\r\n\t\t\tAlarmTime current = alarmList.get(i);\r\n\t\t\tif(current.getYear() == cal.get(Calendar.YEAR) && current.getMonth() == cal.get(Calendar.MONTH)\r\n\t\t\t\t\t&& current.getDay() == cal.get(Calendar.DAY_OF_MONTH) && current.getHour() == cal.get(Calendar.HOUR_OF_DAY)\r\n\t\t\t\t\t&& current.getMinute() <= cal.get(Calendar.MINUTE)){\r\n\t\t\t\t//display alarm / play sound\r\n\t\t\t\t\t//alarmList.get(i).setActive(true);\r\n\t\t\t\t\tcurrent.setActive(true);\r\n\t\t\t\t//if(!alarmList.get(i).isActive){\t\t\t\t\t//this can be removed if it needs to repeatedly go off\r\n\r\n//\t\t\t\t\tif(!(activeAlarms.contains(alarmList.get(i)))){\r\n//\t\t\t\t\t\tactiveAlarms.add(alarmList.get(i));\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tif(!(activeAlarms.contains(current))){\r\n\t\t\t\t\t\tactiveAlarms.add(current);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//System.out.println(alarmList.get(i).getMinute());\r\n\t\t\t\t\t//System.out.println(current.getMinute());\r\n\t\t\t\t\tring = new AlarmRingDesign(alarmList.get(i).getMessage(), this, alarmList.get(i));\r\n\t\t\t\t\tring.init();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t//do nothing\r\n\t\t\t}\r\n\t\t}\r\n\t//}\r\n\t}", "@Override\n public void onClick(View v) {\n if(v.getId() == R.id.alarmCheck){\n // Put extras for RingtoneService\n myIntent.putExtra(\"extra\", \"no\");\n myIntent.putExtra(\"extra1\", \"main\");\n cal = Calendar.getInstance();\n // Get the time for the alarm at the index\n String tempTime = App.getTimes().get(indexofIntent);\n String[] times = tempTime.split(\":\");\n // Get the hour and minute from the string and set them to int\n int hour = Integer.parseInt(times[0]);\n int minute = Integer.parseInt(times[1]);\n // Set the alarm time\n cal.setTimeInMillis(System.currentTimeMillis());\n cal.set(Calendar.HOUR_OF_DAY, hour);\n cal.set(Calendar.MINUTE, minute);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n // State pattern used here\n state = new CreateState();\n manager = (AlarmManager) getSystemService(ALARM_SERVICE);\n // add 24 hours\n cal.setTimeInMillis(cal.getTimeInMillis() + 86400000);\n // set the reciever\n Intent intent = new Intent(this.getApplicationContext(), AlarmReceiver.class);\n intent.putExtra(\"extra\", \"yes\");\n intent.putExtra(\"index\", indexofIntent);\n // Create a new intent\n PendingIntent pending = PendingIntent.getBroadcast(this.getApplicationContext(), App.getIds(), intent, PendingIntent.FLAG_UPDATE_CURRENT);\n // Overwrite the correct intent at the index\n App.setIntentAtIndex(indexofIntent, pending);\n App.setIds(App.getIds() + 1);\n // Handle the alarm\n // State pattern used here\n state.handle(manager, pending, cal, false);\n // Turn off ringtone\n sendBroadcast(myIntent);\n\n }\n // If snoozed then stop the media player and set the timer/calendar to 10 minutes\n else if(v.getId() == R.id.snooze){\n // Put extras for RingtoneService\n myIntent.putExtra(\"extra\", \"no\");\n myIntent.putExtra(\"extra1\", \"main\");\n // initialize AlarmManager\n manager = (AlarmManager) getSystemService(ALARM_SERVICE);\n // set the state\n // State pattern used here\n state = new SnoozeState();\n cal = Calendar.getInstance();\n // Get the time the alarm was set\n String tempTime = App.getTimes().get(indexofIntent);\n String[] times = tempTime.split(\":\");\n int hour = Integer.parseInt(times[0]);\n int minute = Integer.parseInt(times[1]);\n // Set calendar to time initially set\n cal.setTimeInMillis(System.currentTimeMillis());\n cal.set(Calendar.HOUR_OF_DAY, hour);\n cal.set(Calendar.MINUTE, minute);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n // Create a new intent for alarm receiver\n Intent intent = new Intent(this.getApplicationContext(), AlarmReceiver.class);\n // Add extras for RingtoneService\n intent.putExtra(\"extra\", \"yes\");\n intent.putExtra(\"index\", indexofIntent);\n // Create a new intent wiht the BroadcastReceiver\n PendingIntent pending = PendingIntent.getBroadcast(this.getApplicationContext(), App.getIds(), intent, PendingIntent.FLAG_UPDATE_CURRENT);\n // Set the new intent in the list\n App.setIntentAtIndex(indexofIntent, pending);\n App.setIds(App.getIds() + 1);\n // handle the snooze state\n // State pattern used here\n state.handle(manager, pending, cal, false);\n //send a toast to the user letting them know it will snooze for 10 minutes\n Toast t = Toast.makeText(getApplicationContext(), \"Alarm Snoozed for 10 minutes\",\n Toast.LENGTH_SHORT);\n t.setGravity(Gravity.FILL_HORIZONTAL, 10, 1500);\n t.show();\n // Stop the current ringtone\n sendBroadcast(myIntent);\n }\n }", "public static void updateAlarm(Context context) {\n\n\t\tPreferences pref = new Preferences(context);\n\t\tWordOfTheDayTime prefTime = pref.getWordOfTheDayTime();\n\t\tint prefHour = prefTime.getHours();\n\t\tint prefMinutes = prefTime.getMinutes();\n\n\t\tupdateAlarm(context, prefHour, prefMinutes);\n\t}", "public void scheduleAlarm() {\n\n Calendar cal = Calendar.getInstance();\n Intent alarmIntent = new Intent(context, PeriodicTransactionService.class);\n alarmIntent.setAction(PeriodicTransactionService.ACTION);\n Bundle bundle = new Bundle();\n bundle.putInt(PeriodicTransactionService.USER_ID_PARAM, userId);\n alarmIntent.putExtras(bundle);\n PendingIntent pintent = PendingIntent.getService(context,\n MyAlarmManager.REQUEST_CODE,\n alarmIntent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n AlarmManager alarm = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n alarm.setInexactRepeating(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), 4 * 1000, pintent);\n }", "public void alarmOn() throws RemoteHomeConnectionException {\n m.sendCommand(getDeviceId(), \"ala\");\n setAlarmStatus(AlarmStatus.ALARM_ENABLED);\n }", "public void startAlarm() {\n Log.d(TAG, \"Starting alarm\");\n\n // Initializes the media player to play sounds and starts it\n\n mediaPlayer.start();\n alertOverlay.setVisibility(View.VISIBLE);\n sleepAlert.setVisibility(View.VISIBLE);\n\n // In main thread, starts the timer to turn the alarm off after ALARM_DURATION_MILLISECONDS seconds\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n alarmTimer = new CountDownTimer(ALARM_DURATION_MILLISECONDS, ALARM_INTERVAL_MILLISECONDS) {\n @Override\n public void onTick(long millisUntilFinished) {\n }\n\n @Override\n public void onFinish() {\n stopAlarm();\n }\n }.start();\n }\n });\n }", "void activateAlarmThenStop(){\n\t Runnable soundAlarmTask = new SoundAlarmTask();\n\t ScheduledFuture<?> soundAlarmFuture = fScheduler.schedule(\n\t soundAlarmTask, startTime, TimeUnit.SECONDS\n\t );\n\t Runnable stopAlarm = new StopAlarmTask(soundAlarmFuture);\n\t fScheduler.schedule(stopAlarm, 3601, TimeUnit.SECONDS);\n\t \n\t System.out.println(\"methodStartTime: \" + startTime);\n\t \n\t //commented out below 2 lines, b/c I don't want this to stop!\n\t //Runnable stopAlarm = new StopAlarmTask(soundAlarmFuture);\n\t //fScheduler.schedule(stopAlarm, fShutdownAfter, TimeUnit.SECONDS);\n\t }", "public void configureAlarmManager() {\n Boolean enable = sharedPreferences.getBoolean(EXTRA_ENABLE_NOTIF,false);\n\n if(enable){\n AlarmManager alarmMgr = (AlarmManager) getApplicationContext().getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(getApplicationContext(), AlarmReceiver.class);\n intent.putExtra(EXTRA_USER_ID, mCurrentUser.getUid()); // attach the userId to the intent\n PendingIntent alarmIntent = PendingIntent.getBroadcast(getApplicationContext(), 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Set the alarm to start at 12:00.\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n calendar.set(Calendar.HOUR_OF_DAY, 12);\n calendar.set(Calendar.MINUTE, 0);\n\n // setRepeating() lets you specify a precise custom interval\n if (alarmMgr != null)\n alarmMgr.setRepeating(AlarmManager.RTC, calendar.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY, alarmIntent);\n }\n }", "public static native void updateNotifierAlarm(int notifierHandle, long triggerTime);", "public void setPollEntry(String date,String alarmTime){\n \t\tsetPollEntry(date,alarmTime,String.valueOf(POLL_ABORT),true,POLL_ABORT,POLL_ABORT,POLL_ABORT);\n \t}", "public static void setOneTimeAlarm(boolean isSet, Context context,\n\t\t\tClass<?> cls, int attime) {\n\t\tPendingIntent pi = PendingIntent.getBroadcast(context, 0, new Intent(\n\t\t\t\tcontext, cls).putExtra(\"myname\", \"ahsai\"),\n\t\t\t\tPendingIntent.FLAG_ONE_SHOT);\n\t\tAlarmManager am = (AlarmManager) context\n\t\t\t\t.getSystemService(Context.ALARM_SERVICE);\n\t\tif (isSet) {\n\t\t\tLog.e(\"CatchThemAll\", \"start alarm attime:\"+attime+\" second later\");\n\t\t\tam.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis()\n\t\t\t\t\t+ (attime * 1000), pi);\n\t\t} else {\n\t\t\tLog.e(\"CatchThemAll\", \"stop alarm\");\n\t\t\tam.cancel(pi);\n\t\t}\n\t}", "public void snoozeAlarm() {\n AlarmHelper ah = new AlarmHelper();\n ah.snoozeAlarm();\n\n stopAlarmService();\n }", "private void doSomeThingRepeat() {\n\t\t\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\t\t\tint mHourNow = 0, mMinuteNow = 0;\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\t\tmHourNow = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\tmMinuteNow= c.get(Calendar.MINUTE);\n\t\t\t\ttime = prefs.getString(\"time\", \"\");\n\t\t\t\tString mHour = time.substring(0, 2);\n\t\t\t\tString mMinute = time.substring(3, 5) ;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tint mh = Integer.parseInt(mHour);\n\t\t\t\tint mm = Integer.parseInt(mMinute);\n\t\t\t\t\t\n\t\t\t\tif (mHourNow == mh && mMinuteNow == mm) {\n\t\t\t\t\tplayMediaAlarm();\n\t\t\t\t}\n\t\t\t\t\tLog.d(\"Myservice-doSomeThingRepeat\", mHourNow +\"h\"+ mMinuteNow + \"&&\" +mHour +\"h\" + mMinute);\n\t\t\t\t\n\t\t\t}\n\t\t}, 0, UPDATE);\n\t}", "@Override\n public void update(Observable o, Object o1) {\n if(model.hour==hour && model.minute==minute && model.second == 0 && model.amPm==amPm && active) { // If model time matches alarm time code within runs\n JOptionPane.showMessageDialog(null,\"ALARM\"); // Calls alarm pop up dialog\n Toolkit.getDefaultToolkit().beep(); // Makes a sound when alarm activates\n try {\n model.alarms.remove(); // Removes alarm\n } catch (QueueUnderflowException ex) {\n Logger.getLogger(Alarm.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public static void scheduleRepeatingElapsedNotification30(Context context) {\n\n // Setting intent to class where notification will be handled\n Intent intent = new Intent(context, AlarmReceiver.class);\n\n // Setting pending intent to respond to broadcast sent by AlarmManager everyday at 8am\n alarmIntentElapsed = PendingIntent.getBroadcast(context, ALARM_TYPE_ELAPSED, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Getting instance of AlarmManager service\n alarmManagerElapsed = (AlarmManager)context.getSystemService(ALARM_SERVICE);\n\n // Daily inexact alarm from phone boot - current set to test for 10 seconds\n alarmManagerElapsed.setInexactRepeating(AlarmManager.ELAPSED_REALTIME, SystemClock.elapsedRealtime(), 60000 * 30, alarmIntentElapsed);\n }", "public static void setAlarm(Context context) {\n Intent i = new Intent(context, AlarmManagerHandler.class);\n\n //helps in creating intent that must be fired at some later time\n PendingIntent pi = PendingIntent.getService(context, 0, i, 0);\n\n //schedule a repeating alarm; they are inexact\n AlarmManager mgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n mgr.setRepeating(\n AlarmManager.ELAPSED_REALTIME, //type of time(UTC, elapsed) & wake mobile or not\n SystemClock.elapsedRealtime() + PERIOD, //trigger at Milliseconds; time at which alarm should go off\n PERIOD, //interval in Milliseconds between subsequent repeat of alarm\n pi //action to perform when alarm goes off pending intent\n );\n }", "public Alarm(){\n waitingQueue = new PriorityQueue<ThreadWait>(10, new TimeCompare());\n Machine.timer().setInterruptHandler(new Runnable() {\n\t\tpublic void run() { timerInterrupt(); }\n\t });\n }", "public void setAlarmMorning(Context context, long timestampMillisKey) {\n //cancel any existing alarms and then set a new one\n cancel(context);\n\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, Constants.AFTER_HOURS_END);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.SECOND, 0);\n calendar.set(Calendar.MILLISECOND, 0);\n\n if (calendar.compareTo(Calendar.getInstance()) < 0) {\n //this means we are trying to set alarm time which is already expired, so add 24Hrs or 1 day to this and then set alarm\n calendar.add(Calendar.DATE, 1);\n }\n\n Intent alarmIntent = new Intent(context, AutoPendingNotificationTrigger.class);\n\n Bundle bundle = new Bundle();\n bundle.putLong(Constants.EXTRA_TIME_STAMP_MILLIS, timestampMillisKey);\n alarmIntent.putExtras(bundle);\n\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(context.getApplicationContext().ALARM_SERVICE);\n alarmManager.setExact(AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(),\n PendingIntent.getBroadcast(context.getApplicationContext(), ALARM_REQUEST_CODE, alarmIntent, PendingIntent.FLAG_UPDATE_CURRENT));\n }", "@Override\n public void onClick(View v) {\n calendar.set(Calendar.HOUR_OF_DAY, alarm_timepicker.getHour());\n calendar.set(Calendar.MINUTE, alarm_timepicker.getMinute());\n\n // getting the int values of the hour and minute\n int hour = alarm_timepicker.getHour();\n int minute = alarm_timepicker.getMinute();\n\n //converting the int values to strings\n String hour_string = String.valueOf(hour);\n String minute_string = String.valueOf(minute);\n\n // 10:4 -> 10:04\n if (minute < 10) {\n minute_string = \"0\" + String.valueOf(minute);\n }\n\n // method that changes the update text Textbox\n set_alarm_text(\"Alarm set to: \" + hour_string + \":\" + minute_string);\n\n\n // put in extra string into my_intent\n // tells the clock that you pressed the \"alarm on\" button\n my_intent.putExtra(\"extra\", \"alarm on\");\n\n //put in an extra long value into my intent\n //tells the clock that you want a certain value from the\n // dropdown menu/spinners\n my_intent.putExtra(\"alarm_choice\", choose_alarm_sound);\n\n // create a pending intent that delays the intent\n // until the specified calendar time\n pending_intent = PendingIntent.getBroadcast(MainActivity.this, 0, my_intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n //set the alarm manager\n alarm_manager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pending_intent);\n\n }", "public static void createWeeklyReminderAlarm(Context context) {\n String prefWeekStart = PreferenceUtils.readString(PreferenceUtils.SNOOZE_WEEK_START, context);\n int weekStartDay = DateUtils.weekdayFromPrefValue(prefWeekStart);\n int dayBeforeWeekStart = weekStartDay - 1 == 0 ? Calendar.SATURDAY : weekStartDay - 1;\n\n // Load evening start preference.\n String prefEveningStart = PreferenceUtils.readString(PreferenceUtils.SNOOZE_EVENING_START, context);\n int eveningStartHour = TimePreference.getHour(prefEveningStart);\n int eveningStartMinute = TimePreference.getMinute(prefEveningStart);\n\n // Set alarm time based on preference.\n Calendar alarmTime = getBaseCalendar();\n alarmTime.set(Calendar.HOUR_OF_DAY, eveningStartHour);\n alarmTime.set(Calendar.MINUTE, eveningStartMinute);\n alarmTime.set(Calendar.DAY_OF_WEEK, dayBeforeWeekStart);\n\n // Check if alarm should be in the next week.\n if (alarmTime.before(Calendar.getInstance())) {\n alarmTime.setTimeInMillis(alarmTime.getTimeInMillis() + 604800000);\n }\n\n // Create reminders intent.\n PendingIntent alarmIntent = getRemindersIntent(context, Intents.WEEKLY_REMINDER);\n\n // Cancel existing alarms.\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n alarmManager.cancel(alarmIntent);\n\n // Trigger the alarm weekly on the given time.\n alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, alarmTime.getTimeInMillis(), 604800000, alarmIntent);\n }", "public Alarm_Msg(Context context, Bundle extras){\n /*AlarmManager alarmMgr =\n (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(context, Alarm_Msg.class);\n intent.putExtra(REMINDER_BUNDLE, extras);\n PendingIntent pendingIntent =\n PendingIntent.getBroadcast(context, 0, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n Calendar time = Calendar.getInstance();\n time.setTimeInMillis(System.currentTimeMillis());\n time.set(Calendar.HOUR_OF_DAY, Integer.parseInt(extras.getString(\"time_h\")));\n time.set(Calendar.MINUTE, Integer.parseInt(extras.getString(\"time_m\")));\n\n alarmMgr.setRepeating(AlarmManager.RTC_WAKEUP, time.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY, pendingIntent);*/\n\n\n AlarmManager alarmMgr = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(context, Alarm_Msg.class);\n intent.putExtra(REMINDER_BUNDLE, extras);\n Bundle getBundle = intent.getBundleExtra(REMINDER_BUNDLE);\n NOTIFY_ID = NOTIFY_ID + getBundle.getInt(\"id\");\n //Toast.makeText(context, Integer.toString(NOTIFY_ID), Toast.LENGTH_LONG).show();\n PendingIntent pendingIntent =\n PendingIntent.getBroadcast(context, NOTIFY_ID, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n\n alarmMgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,\n SystemClock.elapsedRealtime() +\n 60 * 1000, pendingIntent);\n }", "@org.junit.Test\n public void testCreateAlarm() {\n System.out.println(\"CreateAlarm\");\n\n //setup\n FavoriteAlarm toConvert = new FavoriteAlarm(new LocalTime(8,00), \"www.test.com\");\n FavoriteAlarmPropertiesService instance = new FavoriteAlarmPropertiesService();\n\n //act\n SetAlarm alarm = instance.createAlarm(toConvert);\n\n //assert\n assertTrue(\"Should always be set in the future\", alarm.getTime().isAfterNow());\n assertTrue(\"Should be less than 24 hours in the future\",\n alarm.getTime().isBefore(\n new DateTime(System.currentTimeMillis()).plusDays(1)\n ));\n\n assertEquals(8, alarm.getTime().getHourOfDay());\n assertEquals(0, alarm.getTime().getMinuteOfHour());\n assertEquals(\"www.test.com\", alarm.getPath());\n }", "public void onReceive(Context context, Intent intent) {\n\n Toast.makeText(context, \"Alarm worked.\", Toast.LENGTH_LONG).show();\n final Calendar c = Calendar.getInstance();\n long mHour = c.get(Calendar.HOUR_OF_DAY);\n long mMinute = c.get(Calendar.MINUTE);\n Log.d(\"myTag\", \"Alarm executed at : \" + mHour + \":\" + mMinute);\n\n }", "public String getAlarm() {\n\t\treturn mAlarm;\n\t}", "public void setAlarm(AlarmTime alarm){\r\n\t\t//write to XML file\r\n\t\txmanager.write(alarm);\r\n\t\talarmList.add(alarm);\r\n\t}", "@Scheduled(cron = \"0 0 8-10 * * *\")\n\tpublic void scheduleTaskHourly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 8 - 10 O'clock Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Override\n public void onClick(View view) {\n calendar.set(Calendar.HOUR_OF_DAY, tp.getHour());\n calendar.set(Calendar.MINUTE, tp.getMinute());\n\n //get int value of timepicker selected time\n int hour = tp.getHour();\n int minute = tp.getMinute();\n\n String hour_string = String.valueOf(hour);\n String minute_string = String.valueOf(minute);\n\n if (hour > 12) {\n hour_string = String.valueOf(hour - 12);\n }\n\n if (minute < 10) {\n minute_string = \"0\" + String.valueOf(minute);\n }\n\n //update status box method\n alarm_text(\"Alarm set for \" + hour_string + \":\" + minute_string);\n //put extra string in my_intent\n //tells clock \"set alarm\" button pressed\n my_intent.putExtra(\"extra\", \"alarm on\");\n //create pending intent that delays intent until user selects time\n pending_intent = PendingIntent.getBroadcast(AlarmClock.this, 0, my_intent, PendingIntent.FLAG_UPDATE_CURRENT);\n //set alarm manager\n am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pending_intent);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n ArrayList<String> key=intent.getStringArrayListExtra(\"time\");\n Calendar calendar = Calendar.getInstance();\n int hours = calendar.get(Calendar.HOUR_OF_DAY);\n int minutes = calendar.get(Calendar.MINUTE);\n Toast.makeText(context, String.valueOf(key.size()), Toast.LENGTH_LONG).show();\n /*if (Data.size()>0) {\n Toast.makeText(context, Data.get(0), Toast.LENGTH_LONG).show();\n /*int hour = Integer.valueOf(Data.get(0).substring(0, Data.get(0).indexOf(\":\")));\n int minute = Integer.valueOf(Data.get(0).substring(Data.get(0).indexOf(\":\")));\n if ((hours == hour) && (minutes == minute))\n try {\n play(context, R.raw.girlfart01);//vibrator.vibrate(2000);Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);\n Data.remove(0);\n Data.remove(1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }*/\n Log.v(this.getClass().getName(), \"Timed alarm onReceive() started at time: \" + new java.sql.Timestamp(System.currentTimeMillis()).toString());\n }", "@Override\r\n public void onClick(View v) {\n Alarm alarm = new Alarm(getContext(), userId);\r\n alarm.setAlarmWithNewPracticeTimes();\r\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, hourOfDay);\n calendar.set(Calendar.MINUTE, minute - 2);\n calendar.set(Calendar.SECOND, 0);\n\n startAlarm(calendar);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(getApplicationContext(), ReminderBroadcastReceiver.class);\n intent.putExtra(\"notificationText\", reminderData.getNotificationText());\n\n // Create pending intent with time given\n PendingIntent alarmIntent = PendingIntent.getBroadcast(getApplicationContext(), notificationId,\n intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Create AlarmManager which is sent with pending intent\n AlarmManager alarm = (AlarmManager) getSystemService(ALARM_SERVICE);\n // Create time when notification will fire\n Calendar startTime = Calendar.getInstance();\n startTime.set(Calendar.DAY_OF_WEEK, startTime.get(Calendar.DAY_OF_WEEK));\n startTime.set(Calendar.HOUR_OF_DAY, timePicker.getHour());\n startTime.set(Calendar.MINUTE, timePicker.getMinute());\n startTime.set(Calendar.SECOND, 0);\n\n long alarmStartTime = startTime.getTimeInMillis();\n\n\n /* If reminder time is smaller than current time, start notification on next day, still in progress */\n\n /*\n if (startTime.getTimeInMillis() < System.currentTimeMillis()) {\n startTime.set(Calendar.DAY_OF_WEEK, startTime.get(Calendar.DAY_OF_WEEK + 1));\n alarmStartTime = startTime.getTimeInMillis();\n }\n else\n {\n alarmStartTime = startTime.getTimeInMillis();\n }\n */\n\n\n // Set alarm with (type, milliseconds, intent)\n // With RTC_WAKEUP we wake the device up and deliver the pending intent\n alarm.set(AlarmManager.RTC_WAKEUP, alarmStartTime, alarmIntent);\n saveData();\n\n }", "public void sendMessage(View v) {\n /*\n\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n EditText editText = (EditText) findViewById(R.id.edit_message);\n String message = editText.getText().toString();\n intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n\n */\n long time = currentTimeMillis();\n Date d1 = new Date();\n Date d2;\n // d2 = new Date(d1.getYear(),d1.getMonth(),d1.getDate(),d1.getHours(),d1.getMinutes(),d1.getSeconds());\n Toast.makeText(this, \"ALARM ON\", Toast.LENGTH_SHORT).show();\n // Calendar calendar = Calendar.getInstance();\n // calendar.set(Calendar.HOUR_OF_DAY, alarmTimePicker.getCurrentHour());\n // calendar.set(Calendar.MINUTE, alarmTimePicker.getCurrentMinute());\n alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(MainActivity.this, AlarmReceiver.class);\n pendingIntent = PendingIntent.getBroadcast(this, 0, intent, 0);\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n // Set the alarm's trigger time to 8:30 a.m.\n calendar.set(Calendar.HOUR_OF_DAY, 14);\n calendar.set(Calendar.MINUTE, 58);\n Toast.makeText(MainActivity.this, \"bjr\", Toast.LENGTH_SHORT).show();\n // alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, time + 5, 10000, pendingIntent);\n alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), pendingIntent);\n // Bon manque de prevenir le receiver....!!\n\n }", "public void startAlarm() {\n\n vibri.vibrate(pattern, 0);\n ringring.play();\n timer.cancel();\n }", "private void upgradeAlertsForVersion16(SQLiteDatabase database){\n\t\tCursor cursor = database.query(iStayHealthyDatabaseSchema.ALERTSTABLE, null, null, null, null, null, iStayHealthyDatabaseSchema.ALERTLABEL);\n\t\tif(1 >= cursor.getColumnCount()){\n\t\t\tcursor.close();\n\t\t\treturn;\n\t\t}\n\t\tint standardInterval = 24 * 60 * 60 * 1000;//24 hour repeat interval\n\t\tAlarmManager alarm = (AlarmManager) context.getApplicationContext().getSystemService(Context.ALARM_SERVICE);\n\t\tint requestCode = 0;\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tjava.util.Date date = new java.util.Date();\n\t\tlong now = date.getTime();\n\t\twhile(cursor.moveToNext()){\n\t\t\tlong rowId = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.KEY_ID));\n\t\t\tString label = cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTLABEL));\n\t\t\tint repeat = cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN));\n\t\t\tlong startTime = cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSTARTTIME));\n\t\t\tCalendar alarmCalendar = Calendar.getInstance();\n\t\t\talarmCalendar.setTimeInMillis(startTime);\n\t\t\tboolean isEveryDay = (0 < repeat);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, alarmCalendar.get(Calendar.HOUR_OF_DAY));\n\t\t\tcalendar.set(Calendar.MINUTE, alarmCalendar.get(Calendar.MINUTE));\n\n\t\t\tlong time = calendar.getTimeInMillis();\n\t\t\tIntent intent = new Intent(context, AlarmReceiver.class);\n\t\t\tintent.putExtra(\"Label\", label);\n\t\t\tintent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\t\n\t\t\tPendingIntent pendingSingleIntent = PendingIntent.getBroadcast(context, 0, intent, 0);\t\t\n\t\t\talarm.cancel(pendingSingleIntent);\n\t\t\t\n\t\t\t\n\t\t\tIntent newIntent = new Intent(context, AlarmReceiver.class);\n\t\t\tnewIntent.putExtra(\"Label\", label);\n\t\t\tnewIntent.putExtra(\"isVibrate\", true);\n\t\t\tnewIntent.putExtra(\"isEveryDay\", isEveryDay);\n\t\t\tnewIntent.putExtra(\"requestCode\", requestCode);\n\t\t\tPendingIntent newPendingIntent = PendingIntent.getBroadcast(context.getApplicationContext(), requestCode, newIntent, 0);\n\t\t\t\n\t\t\tif(isEveryDay){\n\t\t\t\talarm.setRepeating(AlarmManager.RTC_WAKEUP, time, standardInterval, newPendingIntent);\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlong diff = startTime - now;\n\t\t\t\tif( 0 < diff){\n\t\t\t\t\talarm.set(AlarmManager.RTC_WAKEUP, startTime, newPendingIntent);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tContentValues content = new ContentValues();\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTLABEL, label);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREPEATPATTERN, repeat);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSTARTTIME, startTime);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTREQUESTCODE, requestCode);\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTEXT, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTEXT)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTSOUND, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTSOUND)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTHOUR, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTHOUR)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.AlERTMINUTE, cursor.getInt(cursor.getColumnIndex(iStayHealthyDatabaseSchema.AlERTMINUTE)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET, cursor.getLong(cursor.getColumnIndex(iStayHealthyDatabaseSchema.ALERTTIMEZONEOFFSET)));\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.GUIDTEXT, java.util.UUID.randomUUID().toString());\n\t\t\tcontent.put(iStayHealthyDatabaseSchema.TINTABEEKEY, cursor.getString(cursor.getColumnIndex(iStayHealthyDatabaseSchema.TINTABEEKEY)));\n\t\t\tdatabase.updateWithOnConflict(iStayHealthyDatabaseSchema.ALERTSTABLE, content, iStayHealthyDatabaseSchema.KEY_ID + \"=\" + rowId, null, SQLiteDatabase.CONFLICT_IGNORE);\t\t\t\t\n\n\t\t\trequestCode = requestCode + 1;\n\t\t}\n\t\t\n\t\tcursor.close();\n\t}", "@Test\n public void testAlarmActive() {\n AlarmManager alarm = (AlarmManager) context.getSystemService(ALARM_SERVICE);\n Intent alarmIntent = new Intent(context, MyNotification.class);\n PendingIntent sendBroadcast = PendingIntent.getBroadcast(context, 0, alarmIntent, PendingIntent.FLAG_NO_CREATE);\n alarm.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis()+60*1000, sendBroadcast);\n boolean active = (PendingIntent.getBroadcast(context,0,alarmIntent,PendingIntent.FLAG_NO_CREATE))!=null;\n assertFalse(\"failed, \",active);\n }", "private void setAlarmManager() {\n\t\tLog.d(CommonUtilities.TAG, \"Set alarm manager\");\n\n\t\tIntent i = new Intent(this, MatchimiAlarmReceiver.class);\n\t\tPendingIntent pi = PendingIntent.getBroadcast(this, 0, i, 0);\n\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.setTimeInMillis(System.currentTimeMillis());\n\t\tcalendar.add(Calendar.MINUTE, 1);\n\n\t\tAlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);\n\t\tam.cancel(pi); // cancel any existing alarms\n\t\tam.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),\n\t\t\t\t1000 * 60 * 60, pi);\n\n\t\t// am.setInexactRepeating(AlarmManager.ELAPSED_REALTIME,\n\t\t// SystemClock.elapsedRealtime() +\n\t\t// AlarmManager.INTERVAL_FIFTEEN_MINUTES,\n\t\t// AlarmManager.INTERVAL_DAY, pi);\n\t}", "abstract void handleAlarmUpdate(AlarmUpdateInfo info);", "@Scheduled(cron = \"0 0/30 8-9 * * *\")\n\tpublic void scheduleTaskCustomHourly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 8:00, 8:30, 9:00, 9:30 O'clock Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Override\n protected void startCreatingAlarm() {\n mSelectedAlarm = null;\n AlarmUtils.showTimeEditDialog(getChildFragmentManager(),\n null, AlarmClockFragmentPreL.this, DateFormat.is24HourFormat(getActivity()));\n }", "public void setAlarmOn(boolean flag)\n {\n this.setProperty(GUILoggerSeverityProperty.ALARM, flag);\n }", "public static void createDailyReminderAlarm(Context context) {\n String prefWeekendDayStart = PreferenceUtils.readString(PreferenceUtils.SNOOZE_WEEKEND_DAY_START, context);\n int weekendDayStartHour = TimePreference.getHour(prefWeekendDayStart);\n int weekendDayStartMinute = TimePreference.getMinute(prefWeekendDayStart);\n\n // Create reminders intent.\n PendingIntent alarmIntent = getRemindersIntent(context, Intents.DAILY_REMINDER);\n\n // Trigger the alarm.\n triggerDailyAlarm(context, weekendDayStartHour, weekendDayStartMinute, alarmIntent);\n }", "@Override\r\n\tpublic void alarm() {\n\t\tSystem.out.println(\"H1型号是这样鸣笛的.....\");\r\n\t}", "public static Alarm alarmOf(Object obj) {\n if (obj instanceof Alarm)\n return (Alarm) obj;\n return null;\n }", "private Alarms() {}", "public void setOneTime(View view) {\n Intent intent = new Intent(this, CreateOneTimeAlarm.class);\n startActivity(intent);\n }", "public void setReminderApp(Context context) {\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(context, DailyReminderApp.class);\n\n // setting waktu, kapan notifikasi akan di keluarkan\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, 7); // waktu yang di set adalah pukul 7 pagi\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.SECOND, 0);\n\n // pending intent ini akan menjalankan fungsi onReceive\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context, ID_APP, intent, 0);\n if (alarmManager != null) {\n // statement ini berfungsi untuk mengatur jeda waktu notifikasi muncul\n // jeda waktu yang digunakan adalah sehari\n alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY, pendingIntent);\n }\n\n\n }", "public abstract boolean propagateAlarm(Player player, int addToAlarm);", "public void setAlarms()\n\t{\n\t\tSharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n\t\tAlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n\t\t\n\t\tSet<String> set;\n\t\tset=sp.getStringSet(\"lowattnotifs\", null);\n\t\tif(set!=null)\n\t\t{\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.set(Calendar.HOUR_OF_DAY, 19);\n\t\t\tcal.set(Calendar.MINUTE, 0);\n\t\t\tcal.set(Calendar.SECOND, 0);\n\t\t\t\n\t\t\tIntent attintent = new Intent(this, Monitor.class);\n\t\t\tattintent.putExtra(\"attordate\", 0);\n\t\t\tPendingIntent attpintent = PendingIntent.getService(this, 0, attintent, 0);\n\t\t\t\n\t\t\talarm.cancel(attpintent);\t\t//cancel all alarms for attendance reminders\n\t\t\t\n\t\t\t//check if set contains these days\n\t\t\tfor(int i=0; i<7; i++)\n\t\t\t{\n\t\t\t\tif(set.contains(String.valueOf(i)))\n\t\t\t\t{\n\t\t\t\t\tcal.set(Calendar.DAY_OF_WEEK, i);\n\t\t\t\t\talarm.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), attpintent);\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Set for day: \"+i, Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "void simpleNotify(SimpleAlarmMessage message);", "public int getAlarm () { return alarm; }", "public static void SetAlarm(Context context, int id, String title, LocalTime time)\n {\n // setting up time input\n Calendar c = Calendar.getInstance();\n c.set(Calendar.HOUR_OF_DAY, time.getHour());\n c.set(Calendar.MINUTE, time.getMinute());\n c.set(Calendar.SECOND, 0);\n\n // don't create alarms that have already passed\n if(c.before(Calendar.getInstance()))\n {\n return;\n }\n\n AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(context, NotificationReceiver.class);\n\n // Put our alarm's text here\n intent.putExtra(\"title\", title);\n\n // create our alarm, allowing to break through idle/doze mode to alert user\n PendingIntent pending = PendingIntent.getBroadcast(context, id, intent,0);\n alarmManager.setExactAndAllowWhileIdle(AlarmManager.RTC_WAKEUP, c.getTimeInMillis(), pending);\n }", "@Override\n public void onTimeSet(android.widget.TimePicker view, int hourOfDay, int minute) {\n boolean timeInAM = true;\n\n if(hourOfDay>=12) { //if it's pm\n hourOfDay-=12;\n timeInAM = false;\n } else { //if it's am\n timeInAM = true;\n }\n\n //update shared preferences with alarm time\n PreferenceManager.getDefaultSharedPreferences(getActivity()).edit().putInt(\"alarmHour_\"+alarmID, hourOfDay).apply(); //will be 0:00 if 12:00\n PreferenceManager.getDefaultSharedPreferences(getActivity()).edit().putInt(\"alarmMinutes_\"+alarmID, minute).apply();\n PreferenceManager.getDefaultSharedPreferences(getActivity()).edit().putBoolean(\"timeInAM_\"+alarmID, timeInAM).apply();\n\n //set minuteString of alarm time\n String minuteString;\n if(minute<10) {\n minuteString = \"0\" + PreferenceManager.getDefaultSharedPreferences(getActivity()).getInt(\"alarmMinutes_\"+alarmID, 0);\n } else {\n minuteString = \"\" + PreferenceManager.getDefaultSharedPreferences(getActivity()).getInt(\"alarmMinutes_\"+alarmID, 10);\n }\n int alarmHour = PreferenceManager.getDefaultSharedPreferences(getActivity()).getInt(\"alarmHour_\"+alarmID, 0);\n if(alarmHour<10 && alarmHour>0) {\n alarmTimeButton.setText(\" \"+alarmHour+\":\"+minuteString);\n } else if(alarmHour==0) {\n alarmTimeButton.setText(\"12:\"+minuteString);\n } else {\n alarmTimeButton.setText(alarmHour+\":\"+minuteString);\n }\n\n //show alarm time\n if(PreferenceManager.getDefaultSharedPreferences(getActivity()).getBoolean(\"timeInAM_\"+alarmID, true)) {\n dayOrNight.setText(\"AM\");\n } else {\n dayOrNight.setText(\"PM\");\n }\n\n }", "private void setAlarm(Alarm alarm, int flags) {\n // this set alarm based on TimePicker so we need to set Calendar like the\n // trigger time\n // get instant of Calendar\n Calendar myCalendar = Calendar.getInstance();\n Calendar calendar = (Calendar) myCalendar.clone();\n // set current hour for calendar\n calendar.set(Calendar.HOUR_OF_DAY, alarm.getHour_x());\n // set current minute\n calendar.set(Calendar.MINUTE, alarm.getMinute_x());\n // set current second for calendar\n calendar.set(Calendar.SECOND, 0);\n // plus one day if the time set less than the the Calendar current time\n if (calendar.compareTo(myCalendar) <= 0) {\n calendar.add(Calendar.DATE, 1);\n }\n // get id of alarm and set for PendingIntent to multiply multiple PendingIntent for cancel\n // time, this also put into PendingIntent to compare with the cancel Alarm's id=\n int alarmId = (int) alarm.getId();\n // make intent to broadCast\n Intent intent = new Intent(AlarmsetActivity.this, AlarmReceiver.class);\n // put intent type to check which intent trigger add or cancel\n intent.putExtra(\"intentType\", Constants.ADD_INTENT);\n // put id to intent\n intent.putExtra(\"PendingId\", alarmId);\n // this pendingIntent include alarm id to manage\n PendingIntent alarmIntent = PendingIntent.getBroadcast(AlarmsetActivity.this, alarmId,\n intent, flags);\n // create alarm manager ALARM_SERVICE\n AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n // Set alarm, at the trigger time \"calandar.getTimeInMillis\" this pendingIntent will be\n // sent to AlarmReceiver and then sent to alarm service to play music\n // this \"AlarmManager.INTERVAL_DAY\" mean this will set one new alarm at the trigger time\n // setInExactRepeating this may set alarm again and again also this may be not\n // trigger at the right time( at the first second start) but this will save the battery.\n // \"AlarmManager.RTC_WAKEUP\" allow this app wake device from idle time and the time\n // based on device time\n\n alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP,\n calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, alarmIntent);\n\n }", "protected void recurringAlert() {\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(DeviceTrackerApplication.getContext());\n alertDialogBuilder.setTitle(getString(R.string.app_name));\n alertDialogBuilder\n .setMessage(R.string.user_not_logged_in)\n .setCancelable(false)\n .setPositiveButton(R.string.ok_msg, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if (!Utils.isAppInForeground(LoggedInCheckService.this)) {\n Intent intent = new Intent(LoggedInCheckService.this, SplashActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n }\n });\n alertDialog = alertDialogBuilder.create();\n alertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);\n\n if (timer2 != null) {\n timer2.cancel();\n }\n\n timer2 = new Timer();\n long alertInterval = getSharedPreferences(Utility.SETTINGS_SHARED_PREFERENCE, Context.MODE_PRIVATE).getInt(Utility.ALERT_INTERVAL, 2) * 60 * 1000;\n timer2.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n Handler handler = new Handler(Looper.getMainLooper()) {\n @Override\n public void handleMessage(Message msg) {\n alertDialog.show();\n }\n };\n Message message = handler.obtainMessage();\n message.sendToTarget();\n }\n }, alertInterval , alertInterval);\n\n }", "private void nyalakanAlarm() {\n\t\t\n\t\tif (mediaplayer.isPlaying() == false) {\n\t\t\t//nyalakan alarm bahaya\n\t\t\tmediaplayer.start();\n\t\t}\n\t\telse {\n\t\t\t//tidak melakukan apa apa\n\t\t}\t\t\n\t}", "public void newAlarmManager(long time, Intent intent, int requestCode){\n\n PendingIntent pendingIntent = PendingIntent.getBroadcast(getApplicationContext(),\n requestCode, intent, PendingIntent.FLAG_UPDATE_CURRENT);\n AlarmManager startAlarmManager = (AlarmManager) getApplicationContext()\n .getSystemService(Context.ALARM_SERVICE);\n startAlarmManager.setExact(AlarmManager.RTC_WAKEUP, time, pendingIntent);\n }", "public void viewAlarm() {\n\t\tfinal Dialog dialog = new Dialog(this);\n\t\tdialog.setContentView(R.layout.date_time_picker);\n\t\tdialog.setTitle(\"Set Reminder\");\n\t\tButton saveDate = (Button)dialog.findViewById(R.id.btnSave);\n\t\tsaveDate.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tsetAlarm(dialog);\n\t\t\t}\n\t\t});\n\t\tdialog.show();\n\t}", "public static void alarmTest1() {\n\tint durations[] = {1000, 10*1000, 100*1000};\n\tlong t0, t1;\n\tfor (int d : durations) {\n\t t0 = Machine.timer().getTime();\n\t ThreadedKernel.alarm.waitUntil (d);\n\t t1 = Machine.timer().getTime();\n\t System.out.println (\"alarmTest1: waited for \" + (t1 - t0) + \" ticks\");\n\t}\n }", "public interface AlarmListener\n{\n void wakeUp();\n}", "private void alarm(String[] command) {\n\t\t// If no arguments set default 5 seconds alarm.\n\t\tif (command.length == 1) {\n\t\t\tAlfred.setAlarmClock(new AlarmClock(5));\n\t\t\t// If one argument.\n\t\t} else if (command.length == 2) {\n\t\t\t// If argument is in the format of 4 digits.\n\t\t\tif (command[1].toLowerCase().matches(\"\\\\d{4}\")) {\n\t\t\t\tif (Integer.parseInt(command[1]) < 2400) {\n\t\t\t\t\tAlfred.setAlarmClock(new AlarmClock(command[1]));\n\t\t\t\t} else\n\t\t\t\t\tSystem.out.println(\"Time must be between 0000 and 2359.\");\n\t\t\t} else if (command[1].toLowerCase().matches(\"^[0-9]\\\\d*$\")) {\n\t\t\t\tAlfred.setAlarmClock(new AlarmClock(Integer\n\t\t\t\t\t\t.parseInt(command[1])));\n\t\t\t}\n\t\t}\n\t\t// If two arguments.\n\t\telse if (command.length == 3) {\n\t\t\tif (command[1].toLowerCase().matches(\"^[0-9]\\\\d*$\")\n\t\t\t\t\t|| command[2].toLowerCase().matches(\"^[0-9]\\\\d*$\")) {\n\t\t\t\t// Alarm set with minutes, seconds arguments.\n\t\t\t\tAlfred.setAlarmClock(new AlarmClock(Integer\n\t\t\t\t\t\t.parseInt(command[1]), Integer.parseInt(command[2])));\n\t\t\t}\n\n\t\t\t// If three arguments.\n\t\t\telse if (command.length == 4) {\n\t\t\t\tif (command[1].toLowerCase().matches(\"^[0-9]\\\\d*$\")\n\t\t\t\t\t\t&& command[2].toLowerCase().matches(\"^[0-9]\\\\d*$\")\n\t\t\t\t\t\t&& command[3].toLowerCase().matches(\"^[0-9]\\\\d*$\")) {\n\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t.println(\"Three arguments currently not supported.\");\n\t\t\t\t\t// Alarm set with hours, minutes, seconds arguments.\n\n\t\t\t\t\t// This crashes with java.lang.NumberFormatException: radix\n\t\t\t\t\t// 1\n\t\t\t\t\t// less than Character.MIN_RADIX.\n\n\t\t\t\t\t// Alfred.setAlarmClock(new AlarmClock(Integer\n\t\t\t\t\t// .parseInt(command[1]), Integer.parseInt(command[2],\n\t\t\t\t\t// Integer.parseInt(command[3]))));\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else\n\t\t\tSystem.out.println(\"Too many arguments.\");\n\t}", "public void startAlarm(Context context){\n Intent intent = new Intent(this,MonthlyReminderService.class);\n int received = intent.getIntExtra(\"recieved\", 0);\n intent.putExtra(\"received\", received);\n //int type = intent.getIntExtra(\"type\", 0);\n //Log.e(\"SurveyType\", Integer.toString(type));\n //intent.putExtra(\"type\", type);\n //intent.putExtra(\"date\", surveyDate);\n //intent.putExtra(\"type\", \"Health Literacy\");\n //Calendar now = Calendar.getInstance();\n //intent.putExtra(\"dayofYear\",now.get(Calendar.DAY_OF_YEAR));\n startService(intent);\n }", "@Override\n public void onClick(View v) {\n SunriseScheduler.rescheduleSunriseAlarm(Main.this, true);\n }", "public Future<?> doGetActiveAlarmsNow()\n\t{\n\t\tNacAlarmDao dao = this.getAlarmDao();\n\t\treturn NacAlarmDatabase.getExecutor().submit(dao::getActiveAlarmsNow);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch (id){\n case R.id.action_save:\n ahour = timer.getCurrentHour();\n amin = timer.getCurrentMinute();\n if ( ahour < 10) {\n shour = \"0\" + String.valueOf(ahour);\n } else {\n shour = String.valueOf(ahour);\n }\n if (amin < 10) {\n smin = \"0\" + String.valueOf(amin);\n } else {\n smin = String.valueOf(amin);\n }\n stime = shour + \":\" + smin;\n am = new MyAlarmManager(getApplicationContext());\n\n if (shour == null || smin ==null) {\n Toast.makeText(\n this,\n \"Please enter timer\",\n Toast.LENGTH_LONG\n ).show();\n } else {\n ContentValues values = new ContentValues();\n values.put(MyContract.Alarms.COLUMN_TIME, stime);\n\n\n // updated\n\n Uri uri = ContentUris.withAppendedId(MyContentprovider.CONTENT_URI, timeId);\n String selection = MyContract.Alarms.COLUMN_ID + \" = ?\";\n String[] selectionArgs = new String[] { Long.toString(timeId) };\n getContentResolver().update(\n uri,\n values,\n selection,\n selectionArgs\n );\n\n\n Intent intent = new Intent(EditActivity.this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n am.setAlarm();\n startActivity(intent);\n finish();\n }\n\n break;\n case R.id.action_delete:\n\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);\n alertDialog.setTitle(\"アラーム削除\");\n alertDialog.setMessage(\"このアラームを削除してもいいですか?\");\n\n alertDialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n am = new MyAlarmManager(getApplicationContext());\n Uri uri = ContentUris.withAppendedId(MyContentprovider.CONTENT_URI, timeId);\n String selection = MyContract.Alarms.COLUMN_ID + \" = ?\";\n String[] selectionArgs = new String[] { Long.toString(timeId) };\n getContentResolver().delete(\n uri,\n selection,\n selectionArgs\n );\n\n Intent intent = new Intent(EditActivity.this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n am.setAlarm();\n startActivity(intent);\n finish();\n }\n }).show();\n\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "static void scheduleNextNotificationRefresh(Context context, AlarmManagerInterface manager,\n long alarmTime) {\n scheduleAlarmHelper(context, manager, alarmTime, true);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n\n long when = System.currentTimeMillis();\n NotificationManager notificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n\n Intent notificationIntent = new Intent(context, MainActivity.class);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,\n notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\n NotificationCompat.Builder mNotifyBuilder = new NotificationCompat.Builder(\n context).setSmallIcon(R.drawable.ic_file_download)\n .setContentTitle(\"App of the Day\")\n .setContentText(\"Get today's App of the Day...\").setSound(alarmSound)\n .setAutoCancel(true).setWhen(when)\n .setContentIntent(pendingIntent)\n .setVibrate(new long[]{1000, 1000, 1000, 1000, 1000});\n notificationManager.notify(MID, mNotifyBuilder.build());\n MID++;\n\n }", "public void run() {\n\t\t\tCalendar c = new GregorianCalendar();\n\t\t\tcurrHour = c.get(Calendar.HOUR);\n\t\t\tcurrMin = String.valueOf(c.get(Calendar.MINUTE));\n\t\t\tif(currMin.length()==1) {\n\t\t\t\tcurrMin = \"0\"+currMin;\n\t\t\t}\n\t\t\tcheckAlarm();\n\t\t}", "@Override\n public void onClick(View v) {\n\n if(wake!=null && sleep!=null){\n int id= db.insertSleepReminder(\"\"+sleep.getTimeInMillis(),\"\"+wake.getTimeInMillis());\n Intent intent = new Intent(AddSleep.this, UnlockReceiver.class);\n intent.putExtra(\"wake_up\",\"\"+wake.getTimeInMillis());\n intent.putExtra(\"sleep\",\"\"+sleep.getTimeInMillis());\n intent.putExtra(\"id\",\"\"+id );\n\n PendingIntent intent1 = PendingIntent.getBroadcast(AddSleep.this,id,intent,PendingIntent.FLAG_UPDATE_CURRENT);\n AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE);\n alarmManager.setExact(AlarmManager.RTC, sleep.getTimeInMillis(),intent1);\n\n intent = new Intent(AddSleep.this, WakeUpReceiver.class);\n intent.putExtra(\"wake_up\",\"\"+wake.getTimeInMillis());\n intent.putExtra(\"sleep\",\"\"+sleep.getTimeInMillis());\n intent.putExtra(\"id\",\"\"+id);\n\n intent1 = PendingIntent.getBroadcast(AddSleep.this,id,intent,PendingIntent.FLAG_UPDATE_CURRENT);\n\n alarmManager.setExact(AlarmManager.RTC, wake.getTimeInMillis(),intent1);\n\n Intent intent2 = new Intent(AddSleep.this,Reminder.class);\n startActivity(intent2);\n finish();} else\n {\n Toast.makeText(AddSleep.this,\"Please,Enter Sleep and Wake Up Time!\",Toast.LENGTH_SHORT).show();\n\n }\n\n\n }", "public void setReminder(Context context, String type, String time, String message){\n AlarmManager alarmManager = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);\n Intent intent = new Intent(context, ReminderReceiver.class);\n intent.putExtra(EXTRA_MESSAGE,message);\n intent.putExtra(EXTRA_TYPE,type);\n String timeArray[] = time.split(\":\");\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY,Integer.parseInt(timeArray[0]));\n calendar.set(Calendar.MINUTE,Integer.parseInt(timeArray[1]));\n calendar.set(Calendar.SECOND,0);\n\n int requestCode = NOTIF_ID_REMINDER;\n PendingIntent pendingIntent = PendingIntent.getBroadcast(context,requestCode,intent,0);\n alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, pendingIntent);\n\n Toast.makeText(context,\"Reminder berhasil disimpan\",Toast.LENGTH_SHORT).show();\n }", "public static void m23123a(Context context, C9450h hVar) {\n PendingIntent service = PendingIntent.getService(context, hVar.mo25348k(), PlatformAlarmServiceExact.m23096a(context, hVar.mo25348k(), hVar.mo25352o()), 134217728);\n ((AlarmManager) context.getSystemService(\"alarm\")).setExact(1, System.currentTimeMillis() + TimeUnit.DAYS.toMillis(1000), service);\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n AppUtils.setMorningAlarm(context);\n }" ]
[ "0.6889392", "0.6825418", "0.6816855", "0.6760524", "0.67434525", "0.67119914", "0.6707362", "0.66539794", "0.65458596", "0.6526659", "0.6495818", "0.6495509", "0.6465222", "0.6438659", "0.64293754", "0.64203423", "0.64177734", "0.64162534", "0.6380295", "0.6371913", "0.63456774", "0.6343346", "0.6326019", "0.63245547", "0.62633693", "0.6235141", "0.62236154", "0.62060535", "0.619766", "0.6195869", "0.6157113", "0.61427295", "0.61374205", "0.6119647", "0.6111508", "0.609515", "0.6076992", "0.603224", "0.6018011", "0.5990914", "0.59874356", "0.5977946", "0.5968049", "0.59532475", "0.5951809", "0.5942952", "0.59319276", "0.59198433", "0.59060025", "0.5878632", "0.5833163", "0.58303696", "0.5828511", "0.5824877", "0.5816203", "0.57956153", "0.5788731", "0.5785227", "0.57680625", "0.57672894", "0.5762723", "0.5747991", "0.57402503", "0.57342744", "0.5721745", "0.57018906", "0.5701859", "0.5700464", "0.56943285", "0.5683697", "0.5683239", "0.5683101", "0.56823134", "0.5680827", "0.56801707", "0.56765586", "0.5675197", "0.567355", "0.5670162", "0.5663828", "0.56619996", "0.56536543", "0.5649853", "0.5636838", "0.563218", "0.5606817", "0.5606525", "0.5601442", "0.557584", "0.5575496", "0.5574038", "0.55723864", "0.5564606", "0.55630994", "0.5562686", "0.5550804", "0.5539271", "0.5534052", "0.55339986", "0.5532576", "0.5532485" ]
0.0
-1
Internal use: common code block for most of the file commands Returns Vector of Directory
static Vector __common__(CommandOption option_, Paths[] pathss_, boolean sort_, Shell shell_) { option_.sort = sort_; Vector v_ = new Vector(); // store Directory for (int i=0; i<pathss_.length; i++) { // append "*" if a path ends with "/" if (pathss_[i].paths != null && option_.expand) // expand used here?? for (int j=0; j<pathss_[i].paths.length; j++) { String path_ = pathss_[i].paths[j]; if (path_.length() > 1 && path_.charAt(path_.length()-1) == '/') pathss_[i].paths[j] = path_ + "*"; } Directory[] tmp_ = Common.resolveOnePaths(pathss_[i], option_, shell_); if (tmp_ == null) continue; for (int j=0; j<tmp_.length; j++) { v_.addElement(tmp_[j]); } } return v_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String[] nlstHelper(String args) {\n // Construct the name of the directory to list.\n String filename = currDirectory;\n if (args != null) {\n filename = filename + fileSeparator + args;\n }\n\n // Now get a File object, and see if the name we got exists and is a\n // directory.\n File f = new File(filename);\n\n if (f.exists() && f.isDirectory()) {\n return f.list();\n } else if (f.exists() && f.isFile()) {\n String[] allFiles = new String[1];\n allFiles[0] = f.getName();\n return allFiles;\n } else {\n return null;\n }\n }", "AntiIterator<FsPath> listFilesAndDirectories(FsPath dir);", "Object getDir();", "public abstract List<String> getDirs( );", "private Vector getDirectoryEntries(File directory) {\n Vector files = new Vector();\n\n // File[] filesInDir = directory.listFiles();\n String[] filesInDir = directory.list();\n\n if (filesInDir != null) {\n int length = filesInDir.length;\n\n for (int i = 0; i < length; ++i) {\n files.addElement(new File(directory, filesInDir[i]));\n }\n }\n\n return files;\n }", "private File[] getFilesInDirectory() {\n\t\t//Show Directory Dialog\n\t\tDirectoryChooser dc = new DirectoryChooser();\n\t\tdc.setTitle(\"Select Menu File Directory\");\n\t\tString folderPath = dc.showDialog(menuItemImport.getParentPopup().getScene().getWindow()).toString();\n\t\t\n\t\t//Update Folder location text\n\t\ttxtFolderLocation.setText(\"Import Folder: \" + folderPath);\n\t\t//Now return a list of all the files in the directory\n\t\tFile targetFolder = new File(folderPath);\n\t\t\n\t\treturn targetFolder.listFiles(); //TODO: This returns the names of ALL files in a dir, including subfolders\n\t}", "List<Path> getFiles();", "List<File> list(String directory) throws FindException;", "public String[] listDirectory( String directory, FileType type );", "public String getDir();", "@Override\n public String getFileList() {\n StringBuilder string = null;\n //if (parentFile.isDirectory()) {\n File parentFile = currentDir;\n string = new StringBuilder();\n for (File childFile : parentFile.listFiles()) {\n try {\n //TODO: Verify that Paths.get() is retrieving a valid path relative to the project's location.\n Path file = Paths.get(childFile.getPath());\n\n BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"M\");\n String month = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"d\");\n String dayOfMonth = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"y\");\n String year = dateFormat.format(attr.creationTime().toMillis());\n\n char fileType = childFile.isDirectory() ? 'd' : '-'; //'-' represents a file.\n string.append(String.format(\"%srw-r--r--\", fileType)); //Linux style permissions\n string.append(\"\\t\");\n string.append(\"1\"); //?\n string.append(\" \");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(childFile.length()); //Length\n string.append(\" \");\n string.append(month); //Month\n string.append(\" \");\n string.append(dayOfMonth); //Day\n string.append(\" \");\n string.append(\" \");\n string.append(year); //Year\n string.append(\" \");\n string.append(childFile.getName());\n string.append(System.getProperty(\"line.separator\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //}\n\n String format = \"%S\\t%d %d\\t%d\\t%d %S %d %d %S\";\n //return \"-rw-r--r-- 1 0 0 1073741824000 Feb 19 2016 1000GB.zip\";\n if (!string.equals(null)) {\n return string.toString();\n } else {\n return \"Error when creating file list.\";\n }\n }", "private void getDirectoryContents() {\n\t File directory = Utilities.prepareDirectory(\"Filtering\");\n\t if(directory.exists()) {\n\t FilenameFilter filter = new FilenameFilter() {\n\t public boolean accept(File dir, String filename) {\n\t return filename.contains(\".pcm\") || filename.contains(\".wav\");\n\t }\n\t };\n\t fileList = directory.list(filter);\n\t }\n\t else {\n\t fileList = new String[0];\n\t }\n\t}", "String getDir();", "public abstract List<String> getFiles( );", "public String[] do_dir(String pathOnServer) throws RemoteException {\r\n\t\tString sDir = pathOnServer;\r\n\t\tFile dir = new File(sDir);\r\n\t\tif (dir.isDirectory() && dir.exists()) {\r\n\t\t\tSystem.out.println(\"directory path found\");\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"directory path is not a directory path or doesn't exist\");\t\r\n\t\t}\r\n\t\treturn dir.list();\r\n\t}", "public String[] listFiles() throws FileSystemUtilException \r\n\t{\r\n\t\tString remoteDir = null;\r\n\t\tString remoteFileName = null;\r\n\t\tString command = null;\r\n\t\tint signal = -1;\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":listFiles()\");\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconnect(); \r\n\t\t\t\r\n\t\t\tint lastSeperatorIndex = -1;\r\n\t\r\n\t\t\tif(remoteFilePath.lastIndexOf(\"/\") != -1){\r\n\t\t\t\tlastSeperatorIndex = remoteFilePath.lastIndexOf(\"/\");\r\n\t\t\t}else if(remoteFilePath.lastIndexOf(\"\\\\\") != -1){\r\n\t\t\t\tlastSeperatorIndex = remoteFilePath.lastIndexOf(\"\\\\\");\r\n\t\t\t}\r\n\t\t\tif(lastSeperatorIndex == remoteFilePath.length()-1)\r\n\t\t\t{\r\n\t\t\t\tremoteDir = remoteFilePath;\r\n\t\t\t\tremoteFileName = \"\";\r\n\t\t\t\tlogger.debug(\"file path ends with / - directory is \"+remoteDir+\" , filename is \"+remoteFileName);\r\n\t\t\t\tcommand = \"cd \"+remoteDir;\t\t\t\r\n\t\t\t\tsignal = executeSimpleCommand(command);\r\n\t\r\n\t\t\t\tif(signal != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t//invlid directory/file\r\n\t\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tremoteDir = remoteFilePath.substring(0,lastSeperatorIndex+1);\r\n\t\t\t\tremoteFileName = remoteFilePath.substring(lastSeperatorIndex+1,remoteFilePath.length());\r\n\t\t\t\tlogger.debug(\"file path not ends with / - directory is \"+remoteDir+\" , filename is \"+remoteFileName);\r\n\t\t\t\tcommand = \"cd \"+remoteDir;\r\n\t\t\t\tsignal = executeSimpleCommand(command);\r\n\t\t\t\tif(signal != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t//invlid directory/file\r\n\t\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tif(!remoteFileName.startsWith(\"*.\") && !remoteFileName.endsWith(\".*\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tlogger.debug(\"file/directory name \"+remoteFileName+\" not started with *. or ends wirh .*\");\r\n\t\t\t\t\tcommand = \"cd \"+remoteDir+remoteFileName;\r\n\t\t\t\t\tsignal = executeSimpleCommand(command);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\tif(signal != 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tboolean isFile = false;\r\n\t\t\t\t\t\tcommand = \"ls \"+remoteDir;\r\n\t\t\t\t\t\texecuteSimpleCommand(command);\r\n\t\t\t\t\t\tString[] tempFileNames = getFileNamesArray(output);\r\n\t\t\t\t\t\tfor(int j = 0; j < tempFileNames.length; j++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(remoteFileName.equals(tempFileNames[j]))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tisFile = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(!isFile)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//invlid directory/file\r\n\t\t\t\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tlogger.debug(remoteFileName+\" is a file\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.debug(remoteFileName+\" is a directory\");\r\n\t\t\t\t\t\tremoteDir = remoteDir+remoteFileName;\r\n\t\t\t\t\t\tremoteFileName = \"\";\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlogger.debug(\"Before getting list of files : current dir \"+remoteDir+\" getting files list for \"+remoteFileName);\r\n\t\t\tcommand = \"cd \"+remoteDir+\";ls -F \"+remoteFileName;\r\n\t\t\tsignal = executeSimpleCommand(command);\r\n\t\t\tdisconnect();\r\n\t\t\tif(signal != 0)\r\n\t\t\t{\t\t\t \r\n\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t}\r\n\t\t\tString[] filesList = getFileNamesArray(output);\t\t\r\n\t\t\tlogger.debug(\"End: \"+getClass().getName()+\":listFiles()\");\r\n\t\t\treturn filesList;\r\n\t\t}\r\n\t\t\r\n\t\tcatch(FileSystemUtilException e)\r\n\t\t{\r\n\t\t disconnect();\r\n\t\t if(e.getMessage() != null && e.getMessage().equals(\"FL0071\")){\r\n\t\t \tthrow new FileSystemUtilException(\"FL0071\");\r\n\t\t }\r\n\t\t\tthrow new FileSystemUtilException(e.getErrorCode(),e.getException());\r\n\t\t}\r\n\t\t\r\n\t}", "private static List<File> listChildFiles(File dir) throws IOException {\n\t\t List<File> allFiles = new ArrayList<File>();\n\t\t \n\t\t File[] childFiles = dir.listFiles();\n\t\t for (File file : childFiles) {\n\t\t if (file.isFile()) {\n\t\t allFiles.add(file);\n\t\t } else {\n\t\t List<File> files = listChildFiles(file);\n\t\t allFiles.addAll(files);\n\t\t }\n\t\t }\n\t\t return allFiles;\n\t\t }", "private List<String> processDirectory(Path path) {\n\t\treturn null;\r\n\t}", "static void walkTheDir(){ \n\t try (Stream<Path> paths = Files.walk(Paths.get(\"/ownfiles/tullverketCert/source\"))) {\n\t \t paths\n\t \t .filter(Files::isRegularFile)\n\t \t //.forEach(System.out::println);\n\t \t .forEach( e ->{\n\t \t \t\tSystem.out.println(e);\n\t \t \t\tSystem.out.println(e.getParent());\n\t \t \t\t\n\t \t \t});\n\t \t \n \t}catch (Exception e) { \n\t System.out.println(\"Exception: \" + e); \n\t } \n\t }", "private static ArrayList<File> buildFilesArray() {\n ArrayList<File> result = new ArrayList<>();\n rAddFilesToArray(workingDirectory, result);\n return result;\n }", "protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }", "private List<File> getSearchFiles() {\n\t\tif (searchDirs == null || searchDirs.size() <= 0) {\n\n\t\t\tsearchDirs = new ArrayList<File>();\n\t\t\t\n\t\t\tsearchDirs.add(StorageUtils.getLocalCacheDir(this));\n//\t\t\tsearchDirs.add(StorageUtils.getExternalCacheDir(this));\n\t\t\tsearchDirs.add(StorageUtils.getFavorDir(this));\n\t\t}\n\t\treturn searchDirs;\n\t}", "List<IDirectory> getSourcePath();", "public static void main(String[] args) { String dirname = \"/home/diego/IdeaProjects/JAVAStuff/src/tmp/dirTest.txt\";\n// File d = new File(dirname);\n// d.mkdirs();\n//\n File file = null;\n String[] paths;\n\n try {\n file = new File(\"/home/diego/IdeaProjects/JAVAStuff/src\");\n paths = file.list();\n\n for(String s: paths) {\n System.out.println(s);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }", "public static void dir(String currentPath){}", "public abstract List<LocalFile> getAllFiles();", "public List <WebFile> getChildFiles()\n{\n if(_type==FileType.SOURCE_DIR) return getSourceDirChildFiles();\n return _file.getFiles();\n}", "private ArrayList<char[]> subdirectoriesToFiles(ArrayList<char[]> currentList, ArrayList<char[]> fullFileList) throws IOException {\t\t\n\t\tfor (File file: currentList) {\n\t\t\tif (isJavaFile(file)) \n\t\t\t\tfullFileList.add(file);\n\t\t\telse if (file.isDirectory()){\n\t\t\t\t$.log(file.toString());\n\t\t\t\tsubdirectoriesToFiles(file.getAbsolutePath(), fullFileList);\n\t\t\t}\n\t\t\telse if (isJarFile(file))\n\t\t\t\tsubdirectoriesToFiles(jarToFile(file), fullFileList);\n\t\t}\n\t\treturn fullFileList;\n\t}", "public List<String> getFiles();", "public Directory parseDirectory() {\n\n\t// Create a buffer for the result.\n\tDirectory result = new DirectoryImpl( this);\n\n\t// The track and sector pos of the currency directory sector.\n\tint trackIndex = 18;\n\tint sectorIndex = 1;\n\n\t// The directory starts at track 18, sector 1 and normally continues to sector 18.\n\twhile( ( trackIndex != 0) && (sectorIndex != 0)) {\n\n\t // Get the data of the current sector.\n\t byte [] sectorData = getSector( trackIndex, sectorIndex).getDataBytes();\n\n\t // Parse the directory entries in this sector.\n\t for( int currentEntry = 0; currentEntry < 8; ++currentEntry) {\n\n\t\t// Calculate the byte, where the directory entry starts.\n\t\tint entryOffset = 32 * currentEntry;\n\n\t\t// Check, if this entry is a deleted file.\n\t\tif( sectorData[ entryOffset + 2] == 0) { \n\n\t\t continue; // This entry is deleted.\n\t\t}\n\n\t\t// Get the name of the filename.\n\t\tStringBuffer filenameBuffer = new StringBuffer();\n\n\t\tfor( int filenameIndex = 5; filenameIndex <= 14; ++filenameIndex) {\n\n\t\t // Get the current byte of the filename.\n\t\t byte currentFilenameChar = sectorData[ entryOffset + filenameIndex];\n\n\t\t if( currentFilenameChar == 0xa0) { // This is a padding byte. Filename is complete.\n\t\t\t\n\t\t\tbreak;\n\n\t\t } else { // Convert this petscii char and add it to the filename.\n\t\t\t\n\t\t\tfilenameBuffer.append( CharsetUtils.getInstance().petscii2ascii( currentFilenameChar));\n\t\t }\n\t\t}\n\n\t\t// Get the type of the file.\n\t\tbyte currentFileType = (byte)( sectorData[ entryOffset + 2] & (byte)7);\n\t\tString currentFileTypeName = \"\";\n\n\t\tswitch( currentFileType) {\n\t\tcase 1: currentFileTypeName = \"SEQ\"; break;\n\t\tcase 2: currentFileTypeName = \"PRG\"; break;\n case 3: currentFileTypeName = \"USR\"; break;\n\t\tcase 4: currentFileTypeName = \"REL\"; break;\n\t\t}\n\n\t\t// Try to approximate the filesize. The c64 only stores blocks of 254 bytes and not \n\t\t// the actual filesize in bytes.\n\t\tint filesize = sectorData[ entryOffset + 0x1e] + ( 256 * sectorData[ entryOffset + 0x1f]);\n\t\t\n\t\t// Create a directory entry and add it to the result.\n\t\tresult.addDirectoryEntry( new D64DirectoryEntry( filenameBuffer.toString()\n\t\t\t\t\t\t\t\t , filesize\n\t\t\t\t\t\t\t\t , currentFileTypeName\n\t\t\t\t\t\t\t\t , sectorData[ entryOffset + 3] // Track index of the first sector.\n\t\t\t\t\t\t\t\t , sectorData[ entryOffset + 4] // Sector index of the first sector.\n\t\t\t\t\t\t\t\t , result));\n\t }\n\n\t // Get the track and sector of the next directory sector from the current sector;\n\t trackIndex = sectorData[ 0];\n\t sectorIndex = sectorData[ 1];\n\t}\n\n\t// Return the parsed directory.\n\treturn result;\n }", "private static void getFiles(String root, Vector files) {\n Location f = new Location(root);\n String[] subs = f.list();\n if (subs == null) subs = new String[0];\n Arrays.sort(subs);\n \n // make sure that if a config file exists, it is first on the list\n for (int i=0; i<subs.length; i++) {\n if (subs[i].endsWith(\".bioformats\") && i != 0) {\n String tmp = subs[0];\n subs[0] = subs[i];\n subs[i] = tmp;\n break;\n }\n }\n \n if (subs == null) {\n LogTools.println(\"Invalid directory: \" + root);\n return;\n }\n \n ImageReader ir = new ImageReader();\n Vector similarFiles = new Vector();\n \n for (int i=0; i<subs.length; i++) {\n LogTools.println(\"Checking file \" + subs[i]);\n subs[i] = new Location(root, subs[i]).getAbsolutePath();\n if (isBadFile(subs[i]) || similarFiles.contains(subs[i])) {\n LogTools.println(subs[i] + \" is a bad file\");\n String[] matching = new FilePattern(subs[i]).getFiles();\n for (int j=0; j<matching.length; j++) {\n similarFiles.add(new Location(root, matching[j]).getAbsolutePath());\n }\n continue;\n }\n Location file = new Location(subs[i]);\n \n if (file.isDirectory()) getFiles(subs[i], files);\n else if (file.getName().equals(\".bioformats\")) {\n // special config file for the test suite\n configFiles.add(file.getAbsolutePath());\n }\n else {\n if (ir.isThisType(subs[i])) {\n LogTools.println(\"Adding \" + subs[i]);\n files.add(file.getAbsolutePath());\n }\n else LogTools.println(subs[i] + \" has invalid type\");\n }\n file = null;\n }\n }", "public String[] list() {\n String[] list = _file.list();\n if (list == null) {\n return null;\n }\n for (int i = list.length; i-- > 0; ) {\n if (new File(_file, list[i]).isDirectory() && !list[i].endsWith(\"/\")) {\n list[i] += \"/\";\n }\n }\n return list;\n }", "public List<File> getFiles();", "List<File> getSystemDescriptionFiles();", "protected abstract String[] getFolderList() throws IOException;", "protected List <WebFile> getSourceDirChildFiles()\n{\n // Iterate over source dir and add child packages and files\n List children = new ArrayList();\n for(WebFile child : getFile().getFiles()) {\n if(child.isDir() && child.getType().length()==0)\n addPackageDirFiles(child, children);\n else children.add(child);\n }\n \n return children;\n}", "public File getDirectoryValue();", "public List<LsFileEntry> lsFiles() \n \tthrows CorruptObjectException, IOException {\n \t\tMap<String, LsFileEntry> cachedEntries = new TreeMap<String, LsFileEntry>(); \n \t\t\n \t\t//first read all the files which are the Index\n \t\tfinal DirCache cache = DirCache.read(db);\n \t\tfor (int i = 0; i < cache.getEntryCount(); i++) {\n \t\t\tfinal DirCacheEntry ent = cache.getEntry(i);\n \t\t\t\n \t\t\t//X TODO this is surely not enough ;)\n \t\t\tLsFileStatus fs = LsFileStatus.CACHED;\n \t\t\tLsFileEntry fileEntry = new LsFileEntry(ent.getPathString(), fs, ent.getObjectId());\n \t\t\tcachedEntries.put(ent.getPathString(), fileEntry);\n \t\t}\n \n \t\t// now read all the files on the disk\n \t\tSet<String> filesOnDisk = new TreeSet<String>(); \n \t\tFile workDir = db.getWorkDir();\n \t\taddFiles(filesOnDisk, \"\", workDir);\n \t\t\n \t\t// and now compare them. since both are already sorted because we used TreeMap and TreeSort\n \t\t// we can simply crawl over them end compare them. kind of a merge sort though...\n \t\tArrayList<LsFileEntry> fileEntries = new ArrayList<LsFileEntry>();\n \n \t\tIterator<String> cacheIt = cachedEntries.keySet().iterator();\n \t\tIterator<String> fileIt = filesOnDisk.iterator();\n \t\t\n \t\tString cachedPath = null;\n \t\tString fsPath = null;\n \t\twhile (cacheIt.hasNext() || fileIt.hasNext()) {\n \t\t\t\n \t\t\tif (cachedPath == null && cacheIt.hasNext()) {\n \t\t\t\tcachedPath = cacheIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath == null && fileIt.hasNext()) {\n \t\t\t\tfsPath = fileIt.next();\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && cachedPath.equals(fsPath)) {\n \t\t\t\t// oh found in both systems\n \t\t\t\tfileEntries.add(cachedEntries.get(cachedPath));\n \t\t\t\tcachedPath = null;\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (cachedPath != null && !fileEntries.contains(cachedPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(cachedPath, LsFileStatus.REMOVED, null));\n \t\t\t\tcachedPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tif (fsPath != null && !cachedEntries.keySet().contains(fsPath)) {\n \t\t\t\tfileEntries.add(new LsFileEntry(fsPath, LsFileStatus.OTHER, null));\n \t\t\t\tfsPath = null;\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tcachedPath = null;\n \t\t\tfsPath = null;\n \t\t\t\n \t\t}\n \t\t\n \t\treturn fileEntries;\n \t}", "private static String files()\n\t{\n\t\tString path = dirpath + \"\\\\Server\\\\\";\n\t\tFile folder = new File(path);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tString msg1 = \"\";\n\n\t\tfor (int i = 0; i < listOfFiles.length; i++)\n\t\t{\n\t\t\tif (listOfFiles[i].isFile())\n\t\t\t{\n\t\t\t\tmsg1 = msg1 + \"&\" + listOfFiles[i].getName();\n\t\t\t}\n\t\t}\n\t\tmsg1 = msg1 + \"#\" + path + \"\\\\\";\n\t\treturn msg1;\n\t}", "@Override\n public List<GEMFile> getLocalFiles(String directory) {\n File dir = new File(directory);\n List<GEMFile> resultList = Lists.newArrayList();\n File[] fList = dir.listFiles();\n if (fList != null) {\n for (File file : fList) {\n if (file.isFile()) {\n resultList.add(new GEMFile(file.getName(), file.getParent()));\n } else {\n resultList.addAll(getLocalFiles(file.getAbsolutePath()));\n }\n }\n gemFileState.put(STATE_SYNC_DIRECTORY, directory);\n }\n return resultList;\n }", "public interface FileSystem {\n\n /**\n * Add the specified file system entry (file or directory) to this file system\n *\n * @param entry - the FileSystemEntry to add\n */\n public void add(FileSystemEntry entry);\n\n /**\n * Return the List of FileSystemEntry objects for the files in the specified directory path. If the\n * path does not refer to a valid directory, then an empty List is returned.\n *\n * @param path - the path of the directory whose contents should be returned\n * @return the List of FileSystemEntry objects for all files in the specified directory may be empty\n */\n public List listFiles(String path);\n\n /**\n * Return the List of filenames in the specified directory path. The returned filenames do not\n * include a path. If the path does not refer to a valid directory, then an empty List is\n * returned.\n *\n * @param path - the path of the directory whose contents should be returned\n * @return the List of filenames (not including paths) for all files in the specified directory\n * may be empty\n * @throws AssertionError - if path is null\n */\n public List listNames(String path);\n\n /**\n * Delete the file or directory specified by the path. Return true if the file is successfully\n * deleted, false otherwise. If the path refers to a directory, it must be empty. Return false\n * if the path does not refer to a valid file or directory or if it is a non-empty directory.\n *\n * @param path - the path of the file or directory to delete\n * @return true if the file or directory is successfully deleted\n * @throws AssertionError - if path is null\n */\n public boolean delete(String path);\n\n /**\n * Rename the file or directory. Specify the FROM path and the TO path. Throw an exception if the FROM path or\n * the parent directory of the TO path do not exist; or if the rename fails for another reason.\n *\n * @param fromPath - the source (old) path + filename\n * @param toPath - the target (new) path + filename\n * @throws AssertionError - if fromPath or toPath is null\n * @throws FileSystemException - if the rename fails.\n */\n public void rename(String fromPath, String toPath);\n\n /**\n * Return the formatted directory listing entry for the file represented by the specified FileSystemEntry\n *\n * @param fileSystemEntry - the FileSystemEntry representing the file or directory entry to be formatted\n * @return the the formatted directory listing entry\n */\n public String formatDirectoryListing(FileSystemEntry fileSystemEntry);\n\n //-------------------------------------------------------------------------\n // Path-related Methods\n //-------------------------------------------------------------------------\n\n /**\n * Return true if there exists a file or directory at the specified path\n *\n * @param path - the path\n * @return true if the file/directory exists\n * @throws AssertionError - if path is null\n */\n public boolean exists(String path);\n\n /**\n * Return true if the specified path designates an existing directory, false otherwise\n *\n * @param path - the path\n * @return true if path is a directory, false otherwise\n * @throws AssertionError - if path is null\n */\n public boolean isDirectory(String path);\n\n /**\n * Return true if the specified path designates an existing file, false otherwise\n *\n * @param path - the path\n * @return true if path is a file, false otherwise\n * @throws AssertionError - if path is null\n */\n public boolean isFile(String path);\n\n /**\n * Return true if the specified path designates an absolute file path. What\n * constitutes an absolute path is dependent on the file system implementation.\n *\n * @param path - the path\n * @return true if path is absolute, false otherwise\n * @throws AssertionError - if path is null\n */\n public boolean isAbsolute(String path);\n\n /**\n * Build a path from the two path components. Concatenate path1 and path2. Insert the file system-dependent\n * separator character in between if necessary (i.e., if both are non-empty and path1 does not already\n * end with a separator character AND path2 does not begin with one).\n *\n * @param path1 - the first path component may be null or empty\n * @param path2 - the second path component may be null or empty\n * @return the path resulting from concatenating path1 to path2\n */\n public String path(String path1, String path2);\n\n /**\n * Returns the FileSystemEntry object representing the file system entry at the specified path, or null\n * if the path does not specify an existing file or directory within this file system.\n *\n * @param path - the path of the file or directory within this file system\n * @return the FileSystemEntry containing the information for the file or directory, or else null\n */\n public FileSystemEntry getEntry(String path);\n\n /**\n * Return the parent path of the specified path. If <code>path</code> specifies a filename,\n * then this method returns the path of the directory containing that file. If <code>path</code>\n * specifies a directory, the this method returns its parent directory. If <code>path</code> is\n * empty or does not have a parent component, then return an empty string.\n * <p/>\n * All path separators in the returned path are converted to the system-dependent separator character.\n *\n * @param path - the path\n * @return the parent of the specified path, or null if <code>path</code> has no parent\n * @throws AssertionError - if path is null\n */\n public String getParent(String path);\n\n}", "public List listFiles(String path);", "List<String> getFiles(String path) throws IOException;", "GitFile[] getFilesImpl() throws Exception\n {\n TreeWalk twalk = new TreeWalk(getRepo()); twalk.addTree(_rev);\n List <GitFile> files = new ArrayList();\n while(twalk.next()) {\n ObjectId id = twalk.getObjectId(0);\n RevObject rid = getRevObject(id);\n String path = _path + (_path.length()>1? \"/\" : \"\") + twalk.getNameString();\n GitFile child = rid instanceof RevTree? new GitTree((RevTree)rid, path) : new GitBlob((RevBlob)rid, path);\n files.add(child);\n }\n return files.toArray(new GitFile[files.size()]);\n }", "public static File[] getFiles() /*throws IOException*/ {\n\n String os = (System.getProperty(\"os.name\")).toUpperCase();\n File path;\n if (os.contains(\"WIN\")) {\n path = new File(System.getenv(\"APPDATA\")+\"\\\\SudokuGR04\");\n }\n else\n {\n path = new File(System.getProperty(\"user.home\" + \"/Library/Application Support/SudokuGR04\" ));\n }\n\n FileFilter fileFilter = dir -> {\n return dir.isFile();\n };\n //in the files-array there is a list of all files in the dir\n files = path.listFiles(fileFilter);\n return files;\n }", "private ArrayList<char[]> getJavaFileList(String inputDir){\n\t\ttry {\n\t\t\treturn subdirectoriesToFiles(inputDir, new ArrayList<char[]>());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "private File[] getFiles() {\n\n if (mPPTFilePath == null) {\n mPPTFilePath = getArguments().getString(PPTPathString);\n }\n\n String Path = mPPTFilePath;\n File mFile = new File(Path);\n if (mFile.exists() && mFile.isDirectory() && mFile.listFiles()!=null) {\n\n return mFile.listFiles();\n } else {\n Log.d(TAG, \"File==null\");\n return null;\n }\n }", "@Override\n public boolean isDir() { return true; }", "private static String[] findFiles(String dirpath) {\n\t\tString fileSeparator = System.getProperty(\"file.separator\");\n\t\tVector<String> fileListVector = new Vector<String>();\n\t\tFile targetDir = null;\n\t\ttry {\n\t\t\ttargetDir = new File(dirpath);\n\t\t\tif (targetDir.isDirectory())\n\t\t\t\tfor (String val : targetDir.list(new JavaFilter()))\n\t\t\t\t\tfileListVector.add(dirpath + fileSeparator + val);\n\t\t} catch(Exception e) {\n\t\t\tlogger.error(e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tString fileList = \"\";\n\t\tfor (String filename : fileListVector) {\n\t\t\tString basename = filename.substring(filename.lastIndexOf(fileSeparator) + 1);\n\t\t\tfileList += \"\\t\" + basename;\n\t\t}\n\t\tif (fileList.equals(\"\")) \n\t\t\tfileList += \"none.\";\n\t\tlogger.trace(\"Unpackaged source files found in dir \" + dirpath + fileSeparator + \": \" + fileList);\n\t\t\n\t\treturn (String[]) fileListVector.toArray(new String[fileListVector.size()]);\n\t}", "public Vector getTypedFilesForDirectory(File dir) {\r\n\tboolean useCache = dir.equals(getCurrentDirectory());\r\n\r\n\tif(useCache && currentFilesFresh) {\r\n\t return currentFiles;\r\n\t} else {\r\n\t Vector resultSet;\r\n\t if (useCache) {\r\n\t\tresultSet = currentFiles;\r\n\t\tresultSet.removeAllElements();\r\n\t } else {\r\n\t\tresultSet = new Vector();\r\n\t }\r\n\t \r\n\t String[] names = dir.list();\r\n\r\n\t int nameCount = names == null ? 0 : names.length;\r\n\t for (int i = 0; i < nameCount; i++) {\r\n\t\tTypedFile f;\r\n\t\tif (dir instanceof WindowsRootDir) {\r\n\t\t f = getTypedFile(names[i]);\r\n\t\t} else {\r\n\t\t f = getTypedFile(dir.getPath(), names[i]);\r\n\t\t}\r\n\r\n\t\tFileType t = f.getType();\r\n\t\tif ((shownType == null || t.isContainer() || shownType == t)\r\n\t\t && (hiddenRule == null || !hiddenRule.testFile(f))) {\r\n\t\t resultSet.addElement(f);\r\n\t\t}\r\n\t }\r\n\r\n\t // The fake windows root dir will get mangled by sorting\r\n\t if (!(dir instanceof DirectoryModel.WindowsRootDir)) {\r\n\t\tsort(resultSet);\r\n\t }\r\n\r\n\t if (useCache) {\r\n\t\tcurrentFilesFresh = true;\r\n\t }\r\n\r\n\t return resultSet;\r\n\t}\r\n }", "public static ArrayList B() {\n int n10;\n ArrayList<String[]> arrayList = new ArrayList<String[]>();\n Object object = Environment.getRootDirectory().getAbsoluteFile();\n ((StringBuilder)((Object)arrayList)).append(object);\n object = File.separator;\n ((StringBuilder)((Object)arrayList)).append((String)object);\n Object object2 = \"etc\";\n ((StringBuilder)((Object)arrayList)).append((String)object2);\n ((StringBuilder)((Object)arrayList)).append((String)object);\n object = \"vold.fstab\";\n ((StringBuilder)((Object)arrayList)).append((String)object);\n arrayList = ((StringBuilder)((Object)arrayList)).toString();\n Object object3 = new File((String)((Object)arrayList));\n arrayList = new ArrayList<String[]>();\n boolean bl2 = ((File)object3).exists();\n if (!bl2) {\n return arrayList;\n }\n object = new ArrayList();\n try {\n object.clear();\n Object object4 = new FileReader((File)object3);\n object2 = new BufferedReader((Reader)object4);\n while ((object3 = ((BufferedReader)object2).readLine()) != null) {\n object4 = \"dev_mount\";\n n10 = ((String)object3).startsWith((String)object4);\n if (n10 == 0) continue;\n object.add(object3);\n }\n ((BufferedReader)object2).close();\n object.trimToSize();\n }\n catch (IOException iOException) {}\n object3 = object.iterator();\n while (bl2 = object3.hasNext()) {\n int n11;\n object = (String)object3.next();\n if (object == null || (object = object.split((String)(object2 = \" \"))) == null || (n11 = ((String[])object).length) < (n10 = 4) || (object = object[n11 = 2]) == null || (n11 = (int)(((File)(object2 = new File((String)object))).exists() ? 1 : 0)) == 0) continue;\n arrayList.add((String[])object);\n }\n return arrayList;\n }", "private List<File> getFileList(File root){\n\t List<File> returnable = new ArrayList<File>();\n\t if(root.exists()){\n\t\t for(File currentSubFile : root.listFiles()){\n\t\t\t if(currentSubFile.isDirectory()){\n\t\t\t\t returnable.addAll(getFileList(currentSubFile));\n\t\t\t } else {\n\t\t\t\t returnable.add(currentSubFile);\n\t\t\t }\n\t\t }\n\t }\n\t return returnable;\n }", "public abstract List<File> listFiles() throws AccessException;", "private void get_file_List() {\n\tString file_name=null;\r\n\tfor (int i = 0; i < listOfFiles.length; i++) \r\n\t {\r\n\t \r\n\t if (listOfFiles[i].isFile()) \r\n\t {\r\n\t\t file_name = listOfFiles[i].getName();\r\n\t if (file_name.endsWith(\".xml\") || file_name.endsWith(\".XML\"))\r\n\t {\r\n\t file_list.add(file_name) ;\r\n\t }\r\n\t }\r\n\t }\r\n\t\r\n}", "public interface IReadDirectory {\n\n /**\n * List all files existing in the given directory.\n * \n * @param directory\n * @return file list\n * @throws FindException\n */\n List<File> list(String directory) throws FindException;\n\n}", "private static ArrayList<String> getImagesInFileSystem() {\n\t\t// get file list in database\n\t\tArrayList<String> fileNameList = new ArrayList<String>();\n\t\t\n\t\tFile folder = new File(IMAGE_DIRECTORY);\n\t File[] listOfFiles = folder.listFiles();\n\t \n\t for (File currFile : listOfFiles) {\n\t if (currFile.isFile() && !currFile.getName().startsWith(\".\")) {\n\t \t fileNameList.add(currFile.getName());\n\t }\n\t }\n\t \n\t return fileNameList;\n\t}", "public ArrayList<String> traverseFiles(File inputDir, ArrayList<String> Documents2 )\n\t{\n\t\tif (inputDir.isDirectory()) {\n\t\t\t//System.out.println(\"Checking for directory...\");\n\t String[] children = inputDir.list();\n\t for (int i = 0; children != null && i < children.length; i++) {\n\t traverseFiles(new File(inputDir, children[i]), Documents2);\n\t }\n\t }\n\t if (inputDir.isFile()) \n\t \t{ Documents2.add(inputDir.getAbsolutePath());}//change it if needed\n\t \n\t return Documents2;\n\t // System.out.println(Documents.size());\n\t}", "public static File[] getDicomExportDirectoryFiles() {\n\t\tif (xml == null) return new File[0];\n\t\treturn dicomExportDirectoryFiles;\n\t}", "private ArrayList<char[]> subdirectoriesToFiles(String inputDir, ArrayList<char[]> fullFileList) throws IOException {\n\t\tArrayList<char[]> currentList =\n\t\t\t\tnew ArrayList<char[]>(Arrays.asList(new File(inputDir).listFiles()));\n\t\t\n\t\tfor (File file: currentList) {\n\t\t\tif (isJavaFile(file)) \n\t\t\t\tfullFileList.add(file);\n\t\t\t\n\t\t\telse if (file.isDirectory())\n\t\t\t\tsubdirectoriesToFiles(file.getPath(), fullFileList);\n\t\t\t\n\t\t\telse if (isJarFile(file))\n\t\t\t\tsubdirectoriesToFiles(jarToFile(file), fullFileList);\n\t\t}\n\t\treturn fullFileList;\n\t}", "private static File[] filesMiner(String path) {\n try {\n File directoryPath = new File(path);\n FileFilter onlyFile = new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n return pathname.isFile();\n }\n }; // filter directories\n return directoryPath.listFiles(onlyFile);\n } catch (Exception e) {\n System.err.println(UNKNOWN_ERROR_WHILE_ACCESSING_FILES);\n return null;\n }\n\n }", "public Vector<String> listFiles()\n {\n Vector<String> fileNames = new Vector<String>();\n\n File[] files = fileLocation.listFiles();\n\n for (File file : files)\n {\n fileNames.add(file.getName());\n }\n\n return fileNames;\n }", "java.io.File getBaseDir();", "public final List<File> mo14817d() {\n ArrayList arrayList = new ArrayList();\n try {\n if (mo14820g().exists()) {\n if (mo14820g().listFiles() != null) {\n for (File file : mo14820g().listFiles()) {\n if (!file.getCanonicalPath().equals(mo14819f().getCanonicalPath())) {\n arrayList.add(file);\n }\n }\n return arrayList;\n }\n }\n return arrayList;\n } catch (IOException e) {\n f6563c.mo14884b(6, \"Could not process directory while scanning installed packs. %s\", new Object[]{e});\n }\n }", "java.util.List<entities.Torrent.FileInfo>\n getFilesList();", "List<String> getDirectories(String path) throws IOException;", "public Vector getTypedFiles() {\r\n\treturn getTypedFilesForDirectory(getCurrentDirectory());\r\n }", "public static void main(String[] args) {\n File directoryPath = new File(\"C:\\\\Users\\\\jarek\\\\Downloads\");\n //List of all files and directories\n String[] contents = directoryPath.list();\n\n Pattern p= Pattern.compile(\"zip$\");\n Matcher m;\n Vector<String> lis = new Vector<>();\n for(int i = 0; i< Objects.requireNonNull(contents).length; i++){\n m=p.matcher(contents[i]);\n if(m.find()) lis.addElement(contents[i]);\n }\n System.out.println(\"List of files and directories in the specified directory:\");\n for (String content : contents) {\n System.out.println(content);\n }\n }", "public interface DirectoryService {\n\n List<File> searchByName(String name);\n\n List<File> searchByExtension(String extension);\n\n Long getDirectorySize(File directory, boolean recursive);\n\n void appendLinesToFile(File file, List<String> lines);\n\n void zip(File fileToZip);\n\n void unZip(File fileToZip);\n\n void delete(File toDelete);\n}", "@Override\n public Iterable<File> list(File storageDirectory) {\n\treturn null;\n }", "FsPath baseDir();", "public ArrayList<File> getFileList(File file){\r\n\t\tFile dir = new File(file.getParent());\r\n\t\r\n\t\tString filename = file.getName();\r\n\t\t//get all files with the same beginning and end\r\n\t\tint index = filename.indexOf(\"Version\");\r\n\t\tString stringStart = filename.substring(0, index-1);\r\n\t\t\r\n\t\tArrayList<File> files = new ArrayList<File>();\r\n\t\t\r\n\t\tfor(File f:dir.listFiles()){\r\n\t\t\tif(f.getName().contains(stringStart))files.add(f);\r\n\t\t}\r\n\t\t\r\n\t\treturn files;\t\r\n\t}", "public List<File> getFiles(String dir)\r\n\t{\r\n\t\tList<File> result = null;\r\n\t\tFile folder = new File(dir);\r\n\t\tif (folder.exists() && folder.isDirectory())\r\n\t\t{\r\n\t\t\tFile[] listOfFiles = folder.listFiles(); \r\n\t\t\t \r\n\t\t\tresult = new ArrayList<File>();\r\n\t\t\tfor (File file : listOfFiles)\r\n\t\t\t{\r\n\t\t\t\tif (file.isFile())\r\n\t\t\t\t\tresult.add(file);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tlogger.error(\"check to make sure that \" + dir + \" exists and you have permission to read its contents\");\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public boolean isDir() { return false; }", "public File[] listFiles() {\n\n\t\tFileFilter Ff = f -> true;\n\t\treturn this.listFiles(Ff);\n\t}", "private static void rAddFilesToArray(File workingDirectory, ArrayList<File> result) {\n File[] fileList = workingDirectory.listFiles();\n if (fileList == null) return;\n for (File file : fileList) {\n String name = file.getName();\n int lastDotIndex = name.lastIndexOf('.');\n String ext = (lastDotIndex == -1) ? \"\" : name.substring(lastDotIndex + 1);\n if (file.isDirectory())\n rAddFilesToArray(file, result);\n if (!file.equals(remainderFile) && ext.equals(\"xml\")) {\n result.add(file);\n }\n }\n }", "public String[] listFiles(boolean isFoldersRequired, boolean isSort, boolean isFilesOnly) throws FileSystemUtilException \r\n\t{\r\n\r\n\t\tString remoteDir = null;\r\n\t\tString remoteFileName = null;\r\n\t\tString command = null;\r\n\t\tint signal = -1;\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":listFiles()\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconnect(); \r\n\t\t\t\r\n\t\t\tint lastSeperatorIndex = -1;\r\n\t\r\n\t\t\tif(remoteFilePath.lastIndexOf(\"/\") != -1){\r\n\t\t\t\tlastSeperatorIndex = remoteFilePath.lastIndexOf(\"/\");\r\n\t\t\t}else if(remoteFilePath.lastIndexOf(\"\\\\\") != -1){\r\n\t\t\t\tlastSeperatorIndex = remoteFilePath.lastIndexOf(\"\\\\\");\r\n\t\t\t}\r\n\t\t\tif(lastSeperatorIndex == remoteFilePath.length()-1)\r\n\t\t\t{\r\n\t\t\t\tremoteDir = remoteFilePath;\r\n\t\t\t\tremoteFileName = \"\";\r\n\t\t\t\tlogger.debug(\"file path ends with / - directory is \"+remoteDir+\" , filename is \"+remoteFileName);\r\n\t\t\t\tcommand = \"cd \"+remoteDir;\t\t\t\r\n\t\t\t\tsignal = executeSimpleCommand(command);\r\n\t\r\n\t\t\t\tif(signal != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t//invlid directory/file\r\n\t\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tremoteDir = remoteFilePath.substring(0,lastSeperatorIndex+1);\r\n\t\t\t\tremoteFileName = remoteFilePath.substring(lastSeperatorIndex+1,remoteFilePath.length());\r\n\t\t\t\tlogger.debug(\"file path not ends with / - directory is \"+remoteDir+\" , filename is \"+remoteFileName);\r\n\t\t\t\tcommand = \"cd \"+remoteDir;\r\n\t\t\t\tsignal = executeSimpleCommand(command);\r\n\t\t\t\tif(signal != 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t//invlid directory/file\r\n\t\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\tif(!remoteFileName.startsWith(\"*.\") && !remoteFileName.endsWith(\".*\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tlogger.debug(\"file/directory name \"+remoteFileName+\" not started with *. or ends wirh .*\");\r\n\t\t\t\t\tcommand = \"cd \"+remoteDir+remoteFileName;\r\n\t\t\t\t\tsignal = executeSimpleCommand(command);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\tif(signal != 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tboolean isFile = false;\r\n\t\t\t\t\t\tcommand = \"ls \"+remoteDir;\r\n\t\t\t\t\t\texecuteSimpleCommand(command);\r\n\t\t\t\t\t\tString[] tempFileNames = getFileNamesArray(output);\r\n\t\t\t\t\t\tfor(int j = 0; j < tempFileNames.length; j++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(remoteFileName.equals(tempFileNames[j]))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tisFile = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(!isFile)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t//invlid directory/file\r\n\t\t\t\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tlogger.debug(remoteFileName+\" is a file\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.debug(remoteFileName+\" is a directory\");\r\n\t\t\t\t\t\tremoteDir = remoteDir+remoteFileName;\r\n\t\t\t\t\t\tremoteFileName = \"\";\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlogger.debug(\"Before getting list of files : current dir \"+remoteDir+\" getting files list for \"+remoteFileName);\r\n\t\t\tif(!isSort)\r\n\t\t\t\tcommand = \"cd \"+remoteDir+\";ls -F \"+remoteFileName;\r\n\t\t\tif(isSort)\r\n\t\t\t\tcommand = \"cd \"+remoteDir+\";ls -Ftr \"+remoteFileName;\r\n\t\t\tsignal = executeSimpleCommand(command);\r\n\t\t\tdisconnect();\r\n\t\t\tif(signal != 0)\r\n\t\t\t{\t\t\t \r\n\t\t\t\tthrow new FileSystemUtilException(\"ET0017\");\r\n\t\t\t}\r\n\t\t\tString[] filesList=null;\r\n\t\t\tif(!isFoldersRequired && isFilesOnly)\r\n\t\t\t{//it displays only files\r\n\t\t\t\tfilesList = getFileNames(output,isFoldersRequired);\t\r\n\t\t\t}\r\n\t\t\telse if(isFoldersRequired && !isFilesOnly)\r\n\t\t\t{//it displays only folders\r\n\t\t\t\tfilesList = getFileNames(output,isFoldersRequired);\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{//it is used when files and folders required required\r\n\t\t\t\tfilesList = getFileNamesArray(output);\t\t\r\n\t\t\t}\r\n\t\t\tlogger.debug(\"End: \"+getClass().getName()+\":listFiles()\");\r\n\t\t\treturn filesList;\r\n\t\t}\r\n\t\t\r\n\t\tcatch(FileSystemUtilException e)\r\n\t\t{\r\n\t\t disconnect();\r\n\t\t\tthrow new FileSystemUtilException(e.getErrorCode(),e.getException());\r\n\t\t}\r\n\t}", "public Files files();", "public List<Resource> getFileLocations() throws IOException;", "public String execute() {\n String output = \"\";\n String tempOut = \"\";\n FSElement file;\n ArrayList<FSElement> recfiles;\n for (String fileName : dirArray) {\n file = Traverse.accessFS(fileName, root);\n if (file != null) {\n if (file instanceof File) {\n tempOut = getContent((File) file);\n if (!(output.contains(tempOut))) {\n output += tempOut;\n }\n } else if (subdir) {\n recfiles = Traverse.getAllDirs((Directory) file);\n for (FSElement temp : recfiles) {\n if (temp instanceof File) {\n tempOut = getContent((File) temp);\n if (!(output.contains(tempOut))) {\n output += tempOut;\n }\n }\n }\n }\n } else {\n Output.pathIncorrect(fileName);\n }\n }\n if (!(output.equals(\"\"))) {\n output = output.substring(0, output.length() - 2);\n return output;\n } else {\n Output.NoFilesFound();\n return null;\n }\n }", "private void processDir(){\n // get the location of ISAW code base\n String isaw_home=SharedData.getProperty(\"ISAW_HOME\");\n if(isaw_home==null)\n throw new InstantiationError(\"Could not find directory:ISAW_HOME is null\");\n isaw_home=FilenameUtil.setForwardSlash(isaw_home+\"/\");\n\n // get the name of the directory to check\n String dir=FilenameUtil.setForwardSlash(isaw_home\n +\"DataSetTools/parameter/\");\n\n // check that the directory is okay to work with\n if(DEBUG) System.out.println(\"Looking in \"+dir);\n File paramDir=new File(dir);\n if( !(paramDir.exists()) || !(paramDir.isDirectory()) )\n throw new InstantiationError(\"Could not find directory \" + dir);\n\n // get the list of all possible classes\n File[] files=paramDir.listFiles();\n String filename=null;\n for( int i=0 ; i<files.length ; i++ ){\n filename=checkName(files[i].toString(),isaw_home.length());\n if(filename!=null) addParameter(filename);\n }\n \n \n\n dir=FilenameUtil.setForwardSlash(isaw_home\n +\"gov/anl/ipns/Parameters/\");\n\n // check that the directory is okay to work with\n if(DEBUG) System.out.println(\"Looking in \"+dir);\n paramDir=new File(dir);\n if( !(paramDir.exists()) || !(paramDir.isDirectory()) )\n throw new InstantiationError(\"Could not find directory \" + dir);\n\n // get the list of all possible classes\n files=paramDir.listFiles();\n filename=null;\n for( int i=0 ; i<files.length ; i++ ){\n filename=checkName(files[i].toString(),isaw_home.length());\n if(filename!=null) addParameter(filename);\n }\n\n }", "public abstract List<String> path();", "private Path[] getPathArray(List<String> commandLineArgs) {\n int numOfFiles = commandLineArgs.size();\n Path[] filePathArray = new Path[numOfFiles];\n Path currentDir = Paths.get(Jsh.getCurrentDirectory());\n for (int i = 0; i < numOfFiles; i++) {\n filePathArray[i] = currentDir.resolve(commandLineArgs.get(i));\n }\n return filePathArray;\n }", "public List<File> getListing(){\n\t return getFileList(new File(defaultPath));\n }", "private Directories() {\n\n\t}", "private List<DMTFile> listFilesRecursive(String path) {\n\t\tList<DMTFile> list = new ArrayList<DMTFile>();\n\t\tDMTFile file = getFile(path); //Get the real file\n\t\t\n\t\tif (null != file ){ //It checks if the file exists\n\t\t\tif (! file.isDirectory()){\n\t\t\t\tlist.add(file);\n\t\t\t} else {\n\t\t\t\tDMTFile[] files = listFilesWithoutConsoleMessage(file.getPath());\n\t\t\t\tfor (int x = 0; x < files.length; x++) {\n\t\t\t\t\tDMTFile childFile = files[x];\t\t \n\t\t\t\t\tif (childFile.isDirectory()){\n\t\t\t\t\t\tlist.addAll(listFilesRecursive(childFile.getPath()));\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.add(childFile);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "protected File getDir() {\n return hasSubdirs ? DatanodeUtil.idToBlockDir(baseDir,\n getBlockId()) : baseDir;\n }", "public ArrayList<String> getDirFiles(String filePath){\n ArrayList<String> results = new ArrayList<String>();\n File[] files = new File(filePath).listFiles();\n\n for (File file : files){\n if (file.isFile()) {\n results.add(file.getName());\n }\n }\n return results;\n }", "@Override\r\n public List<File> getValues(final String term) throws IOException {\n {\r\n File file = new File(term);\r\n // is a directory -> get all children\r\n if (file.exists() && file.isDirectory()) {\r\n return children(file, fileFilter);\r\n }\r\n File parent = file.getParentFile();\r\n // is not a directory but has parent -> get siblings\r\n if (parent != null && parent.exists()) {\r\n return children(parent, normalizedFilter(term));\r\n }\r\n }\r\n // case 2: relative path\r\n {\r\n for (File path : paths) {\r\n File file = new File(path, term);\r\n // is a directory -> get all children\r\n if (file.exists() && file.isDirectory()) {\r\n return toRelativeFiles(children(file, fileFilter), path);\r\n }\r\n File parent = file.getParentFile();\r\n // is not a directory but has parent -> get siblings\r\n if (parent != null && parent.exists()) {\r\n return toRelativeFiles(children(parent, normalizedFilter(file.getAbsolutePath())), path);\r\n }\r\n }\r\n }\r\n return Collections.emptyList();\r\n }", "@Override\r\n public void dirToPath(String[] arr) {\n\r\n }", "public static List<String> dummyListFiles(String startDir) {\n String[] array;\n List<String> list = new ArrayList<>();\n\n File f = new File(startDir);\n\n array = f.list();\n\n for (String item : array) {\n list.add(item);\n }\n\n return list;\n }", "public static void [] consult(String directoryName)\n {\n\n }", "public synchronized int load()\n {\n int cb = (maxFiles * maxChars * SysLib.CBCHAR) + \n (maxFiles * SysLib.CBINT);\n byte b[] = new byte[cb];\n files.clear();\n int fileNameOffset = maxFiles * SysLib.CBINT;\n int offset = 0;\n\n // Read the entire potential directory listing\n if (inode.read(0, b) < 0)\n {\n return -1;\n }\n\n for (int i = 0; i < maxFiles; i++)\n {\n // Read the file name length\n int strLen = SysLib.bytes2int(b, offset);\n offset += SysLib.CBINT;\n\n // Read the file name, if one is stored\n if (strLen > 0)\n {\n byte strBytes[] = new byte[strLen * SysLib.CBCHAR];\n\n System.arraycopy(b, fileNameOffset, strBytes, 0,\n strBytes.length);\n\n files.add(new String(strBytes));\n\n fileNameOffset += strLen;\n }\n // Add a zero-length placeholder for this listing\n else\n {\n files.add(new String(\"\"));\n }\n }\n\n return 0;\n }", "protected Set<File> getDataFiles(File directory){\n\t\tSet<File> files = new HashSet<File>();\n\t\t\n\t\tfor(File file : directory.listFiles()){\n\t\t\tif(file.isDirectory()){\n\t\t\t\tfiles.addAll(this.getDataFiles(file));\n\t\t\t} else {\n\t\t\t\tif(file.getName().equals(DATA_FILE)){\n\t\t\t\t\tfiles.add(file);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn files;\n\t}", "public File getDirectory()\n {\n return directory;\n }", "private List<String> returnFiles(int selection) {\n\t\tString path = System.getProperty(\"user.dir\");\n\t\tList<String> allImages = new ArrayList<String>();\n\t\tpath += this.setFolderPath(selection);\n\t\tFile[] files = new File(path).listFiles();\n\n\t\tfor (File file : files) {\n\t\t\tif (file.isFile() && isCorrectFile(file)) {\n\t\t\t\tallImages.add(file.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t\treturn allImages;\n\t}", "static void viewFiles()\r\n\t {\n\t\t File directoryPath = new File(\"D:\\\\java_project\");\r\n\t File filesList[] = directoryPath.listFiles();\r\n System.out.println(\"List of files and directories in the specified directory:\");\r\n\t for(File file : filesList) \r\n\t {\r\n\t System.out.println(\"File name: \"+file.getName());\r\n\t System.out.println(\"File path: \"+file.getAbsolutePath());\r\n\t System.out.println(\"Size :\"+file.getTotalSpace());\r\n\t System.out.println(\"last time file is modified :\"+new Date(file.lastModified()));\r\n System.out.println(\" \");\r\n\t }\r\n }", "public static void getListOfAllFileVarianta2() {\n\t\tPath pathToSrc = Paths.get(\"D:\\\\TorrentsMd\");\r\n\t\ttry {\r\n\t\t\t//cu method references\r\n//\t\t\tFiles.walk(pathToSrc)\r\n//\t\t\t\t.map(Path::toFile)\r\n//\t\t\t\t.filter(File::isFile)\r\n//\t\t\t\t.map(File::getName)\r\n//\t\t\t\t.sorted()\r\n//\t\t\t\t.forEach(System.out::println);\r\n\t\t\t\r\n\t\t\t//cu lambda, dar dpdv semantic sunt identice\r\n\t\t\tFiles.walk(pathToSrc)\r\n\t\t\t\t .map(path -> path.toFile()) //trasnform fiecare Path din stream intr-un File\r\n\t\t\t\t .filter(file -> file.isFile()) //filtrez doar fisierele\r\n\t\t\t\t .map(file -> file.getName())//transform fiecare File din stream intr-un String, care e numele sau\r\n\t\t\t\t .sorted()\r\n\t\t\t\t .forEach(file -> System.out.println(file));\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public interface FileUtils {\n /**\n * {@link org.apache.commons.io.FileUtils#copyDirectoryToDirectory(java.io.File, java.io.File)}\n *\n * @param from Source path\n * @param to Target directory path\n */\n void copyDirectoryToDirectory(File from, File to) throws IOException;\n\n /**\n * {@link org.apache.commons.io.FileUtils#copyFileToDirectory(java.io.File, java.io.File)}\n *\n * @param from Source path\n * @param to Target directory path\n */\n void copyFileToDirectory(File from, File to) throws IOException;\n\n /**\n * {@link java.nio.file.Files#createDirectories(java.nio.file.Path,\n * java.nio.file.attribute.FileAttribute[])}\n *\n * @param path Path to create\n */\n void createDirectories(Path path) throws IOException;\n\n /**\n * {@link java.nio.file.Files#createTempDirectory(\n * String, java.nio.file.attribute.FileAttribute[])}\n *\n * @param dirPrefix prefix of temporary directory\n * @return Path to created directory\n */\n Path createTempDirectory(String dirPrefix) throws IOException;\n\n /**\n * {@link org.apache.commons.io.FileUtils#deleteQuietly(java.io.File)}\n *\n * @param file File to delete\n * @return true iff directory was deleted\n */\n boolean deleteQuietly(File file);\n\n /**\n * {@link java.nio.file.Files#exists(java.nio.file.Path, java.nio.file.LinkOption...)}\n *\n * @param path path to check\n * @return true iff exists\n */\n boolean exists(Path path);\n\n /**\n * {@link java.nio.file.Files#isDirectory(java.nio.file.Path, java.nio.file.LinkOption...)}\n *\n * @param path path to check\n * @return true iff path is a directory\n */\n boolean isDirectory(Path path);\n\n /**\n * {@link java.lang.ProcessBuilder}\n *\n * @param command command to run\n * @param pwdFile working directory of the process\n * @return process running the command\n */\n Process runCommand(List<String> command, File pwdFile) throws IOException;\n\n /**\n * {@link java.nio.file.Files#write(java.nio.file.Path, Iterable, java.nio.charset.Charset,\n * java.nio.file.OpenOption...)}\n *\n * @param path Path of file to write to.\n * @param content String to be written to file.\n */\n void write(Path path, String content) throws IOException;\n}", "private static List<File> rootFiles(final File metaDir) throws IOException {\n File containerFile = new File(metaDir, \"container.xml\");\n if(!containerFile.exists()) {\n throw new IOException(\"Missing 'META-INF/container.xml'\");\n }\n\n List<File> rootFiles = Lists.newArrayListWithExpectedSize(2);\n try(FileInputStream fis = new FileInputStream(containerFile)) {\n Document doc = Jsoup.parse(fis, Charsets.UTF_8.name(), \"\", Parser.xmlParser());\n Elements elements = doc.select(\"rootfile[full-path]\");\n for(Element element : elements) {\n String path = element.attr(\"full-path\").trim();\n if(path.isEmpty()) {\n continue;\n } else if(path.startsWith(\"/\")) {\n path = path.substring(1);\n }\n File rootFile = new File(metaDir.getParent(), path);\n if(!rootFile.exists()) {\n throw new IOException(String.format(\"Missing file, '%s'\", rootFile.getAbsolutePath()));\n }\n rootFiles.add(rootFile);\n }\n }\n\n return rootFiles;\n }", "@Override\n public List<Directory> get()\n {\n return getAllDirectories();\n }", "public Stream<Path> loadAll() {\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(\"File Retrived\");\n\t\t\treturn Files.walk(this.path, 1).filter(path->!path.equals(this.path)).map(this.path::relativize);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"File Retrived Error\");\n\t\t}\n\t\treturn null;\n\t}" ]
[ "0.70620334", "0.70196944", "0.692921", "0.6857643", "0.6845467", "0.6824795", "0.6822912", "0.6801218", "0.6747699", "0.6667798", "0.6655961", "0.6636174", "0.6615682", "0.6614273", "0.6606827", "0.6598224", "0.65053743", "0.6487829", "0.64751184", "0.64699364", "0.64634347", "0.64632386", "0.64182484", "0.64174825", "0.64167225", "0.64073807", "0.6370504", "0.63697654", "0.63312036", "0.632963", "0.63284177", "0.62869674", "0.62703586", "0.6269548", "0.6265144", "0.62597305", "0.6257449", "0.624842", "0.6230141", "0.62290233", "0.6223966", "0.6216841", "0.6206959", "0.62044525", "0.61690927", "0.615842", "0.6152339", "0.6143393", "0.6136776", "0.61206156", "0.6094905", "0.6091053", "0.6085023", "0.6084638", "0.60841346", "0.6079714", "0.607376", "0.60705715", "0.607034", "0.6056362", "0.6055921", "0.604439", "0.60378426", "0.60362655", "0.60287493", "0.602296", "0.60207796", "0.6010831", "0.6001851", "0.59974927", "0.5996634", "0.59924096", "0.5987602", "0.59871274", "0.59779805", "0.59743273", "0.5970554", "0.597049", "0.5969904", "0.59664214", "0.5964149", "0.5960074", "0.5958181", "0.5936948", "0.59328926", "0.5931196", "0.59229594", "0.5917998", "0.59097254", "0.58946157", "0.5893332", "0.58874714", "0.58797437", "0.586916", "0.5865868", "0.5864045", "0.5857812", "0.5849926", "0.58484757", "0.5848174", "0.5847689" ]
0.0
-1